.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.nav-tools { display: flex; align-items: center; gap: 3px; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid transparent; border-radius: 50%; color: var(--muted);
  cursor: pointer; transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.icon-btn .icon { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--ink); background: rgba(255,255,255,.05); border-color: var(--line); }
.motion-icon-off { display: none; }
[data-motion="off"] .motion-icon-on { display: none; }
[data-motion="off"] .motion-icon-off { display: block; }
.cmd-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  font-family: var(--mono); font-size: .6rem; letter-spacing: .08em;
  cursor: pointer; transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.cmd-trigger:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.cmd-trigger .icon { width: 14px; height: 14px; color: var(--green); }
.cmd-trigger kbd, .kbd-shortcut {
  padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px;
  color: var(--faint); font-family: var(--mono); font-size: .52rem; letter-spacing: .04em;
}
.mobile-menu-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0; margin-top: 26px; }
.mobile-menu-actions button {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
  border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono);
  font-size: .62rem; letter-spacing: .12em; text-align: left; cursor: pointer;
}
.mobile-menu-actions button:last-child { border-bottom: 1px solid var(--line); }
.mobile-menu-actions button:hover { color: var(--green); }
.mobile-menu-actions .icon { width: 14px; height: 14px; color: var(--green); }

.hero-orbit {
  position: absolute; top: 52%; left: 50%; z-index: 3; width: min(1050px, 92vw);
  aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  animation: spin 80s linear infinite;
}
.orbit-item {
  position: absolute; display: grid; place-items: center; width: 42px; height: 42px;
  translate: -50% -50%; border: 1px solid rgba(184,255,214,.14); border-radius: 13px;
  background: rgba(6,12,8,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: rgba(184,255,214,.6); animation: spinReverse 80s linear infinite;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.orbit-item .icon { width: 17px; height: 17px; }
.oi1 { top: 0; left: 50%; }
.oi2 { top: 14%; left: 86%; }
.oi3 { top: 50%; left: 97%; }
.oi4 { top: 84%; left: 86%; }
.oi5 { top: 97%; left: 50%; }
.oi6 { top: 84%; left: 14%; }
.oi7 { top: 50%; left: 3%; }
.oi8 { top: 14%; left: 14%; }
@keyframes spinReverse { to { transform: rotate(-360deg); } }

.stats { position: relative; z-index: 5; border-block: 1px solid var(--line); background: rgba(255,255,255,.015); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  position: relative; display: flex; flex-direction: column; gap: 9px;
  padding: 28px 26px 26px; border-left: 1px solid var(--line); overflow: hidden;
}
.stat:first-child { border-left: 0; }
.stat::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.stat:hover::after { transform: scaleX(1); }
.stat-icon { color: var(--green); }
.stat-icon .icon { width: 17px; height: 17px; }
.stat-num {
  font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 900; line-height: 1;
  letter-spacing: -.06em; font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}
.stat:hover .stat-num { color: var(--green); }
.stat-num.infinity {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--muted); font-family: var(--mono); font-size: .56rem; letter-spacing: .16em; line-height: 1.7; }

.about-side { display: flex; flex-direction: column; gap: 18px; }
.now-card {
  position: relative; overflow: hidden; padding: 20px; border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(120% 100% at 100% 0%, rgba(59,245,157,.1), transparent 62%), rgba(255,255,255,.02);
}
.now-top { display: flex; align-items: center; gap: 8px; color: var(--green); font-family: var(--mono); font-size: .56rem; letter-spacing: .16em; }
.now-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(59,245,157,.9); }
.now-card p { margin-top: 10px; color: var(--muted); font-size: .84rem; line-height: 1.7; word-break: keep-all; }
.now-bars { display: flex; align-items: flex-end; gap: 4px; height: 22px; margin-top: 16px; }
.now-bars span {
  width: 4px; height: 35%; border-radius: 2px; background: var(--green); opacity: .55;
  animation: eq 1.5s ease-in-out infinite alternate;
}
.now-bars span:nth-child(2) { height: 70%; animation-delay: -.3s; }
.now-bars span:nth-child(3) { height: 48%; animation-delay: -.6s; }
.now-bars span:nth-child(4) { height: 90%; animation-delay: -.2s; }
.now-bars span:nth-child(5) { height: 58%; animation-delay: -.8s; }
.now-bars span:nth-child(6) { height: 76%; animation-delay: -.45s; }
@keyframes eq { from { transform: scaleY(.45); opacity: .3; } to { transform: scaleY(1); opacity: .8; } }
.now-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--ink);
  font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-decoration: none;
}
.now-link .icon { width: 12px; height: 12px; color: var(--green); transition: transform .3s var(--ease); }
.now-link:hover .icon { transform: translate(2px,-2px); }

.tech-grid-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 40px; color: var(--faint); font-family: var(--mono);
  font-size: .56rem; letter-spacing: .18em;
}
.tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-top: 16px; }
.tech-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 94px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.018); color: var(--muted);
  transition: transform .35s var(--ease), border-color .3s ease, background .3s ease, color .3s ease;
}
.tech-tile .icon { width: 22px; height: 22px; color: var(--green); transition: transform .4s var(--ease); }
.tech-tile span { font-family: var(--mono); font-size: .58rem; letter-spacing: .02em; }
.tech-tile:hover { transform: translateY(-4px); border-color: rgba(59,245,157,.35); background: rgba(59,245,157,.06); color: var(--ink); }
.tech-tile:hover .icon { transform: scale(1.15) rotate(-8deg); }

.project-media .media-art {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .52; transform: scale(1.03);
  transition: transform 1s var(--ease), opacity .4s ease;
}
.project-media .media-grid { z-index: 1; }
.project-media .media-num { z-index: 1; }
.project-inner:hover .media-art { transform: scale(1.09); opacity: .68; }
.project-open {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink);
  font-family: var(--mono); font-size: .58rem; letter-spacing: .1em;
  border-bottom: 1px solid transparent; cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
}
.project-open .icon { width: 12px; height: 12px; color: var(--green); transition: transform .3s var(--ease); }
.project-open:hover { color: var(--green); border-color: currentColor; }
.project-open:hover .icon { transform: translate(2px,-2px); }

.visuals { position: relative; overflow: hidden; }
.visuals::before {
  content: ""; position: absolute; top: 20%; right: -10%; width: 620px; height: 620px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(59,245,157,.08), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.visuals-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-top: 24px; }
.visuals-top .section-intro { margin-top: 0; }
.gallery-controls { display: flex; align-items: center; gap: 12px; flex: none; }
.round-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong);
  border-radius: 50%; color: var(--muted); cursor: pointer;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}
.round-btn .icon { width: 15px; height: 15px; }
.round-btn:hover { color: #04120b; background: var(--green); border-color: var(--green); transform: scale(1.04); }
.gallery-counter { color: var(--faint); font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; }
.gallery-counter span { color: var(--green); }
.gallery-counter i { color: var(--line-strong); font-style: normal; }
.gallery-wrap { position: relative; margin-top: 28px; }
.gallery {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.is-dragging .gallery-card { pointer-events: none; }
.gallery-card {
  position: relative; flex: 0 0 clamp(240px, 29vw, 360px); aspect-ratio: 4 / 5;
  overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 20px;
  background: #07100b; scroll-snap-align: start; cursor: pointer; text-align: left;
  transition: border-color .4s ease, transform .5s var(--ease), box-shadow .4s ease;
}
.gallery-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, rgba(2,6,4,.82) 100%);
}
.gallery-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter .5s ease;
}
.gallery-card:hover { border-color: rgba(59,245,157,.4); transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.gallery-card:hover img { transform: scale(1.06); filter: saturate(1.1); }
.gallery-shade { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(59,245,157,.12), transparent 50%); opacity: 0; transition: opacity .4s ease; }
.gallery-card:hover .gallery-shade { opacity: 1; }
.gallery-info {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1;
  display: flex; flex-direction: column; gap: 5px; color: var(--ink);
}
.gallery-tag { color: var(--green); font-family: var(--mono); font-size: .54rem; letter-spacing: .18em; }
.gallery-title { font-size: 1.03rem; font-weight: 700; letter-spacing: -.02em; }
.gallery-info .icon {
  position: absolute; right: 0; bottom: 2px; width: 16px; height: 16px; color: var(--green);
  opacity: 0; transform: translate(-4px,4px); transition: opacity .3s ease, transform .3s ease;
}
.gallery-card:hover .gallery-info .icon { opacity: 1; transform: none; }
.gallery-progress { height: 1px; margin-top: 4px; overflow: hidden; background: var(--line); }
.gallery-progress span { display: block; width: 100%; height: 100%; background: var(--grad); transform: scaleX(.25); transform-origin: left; transition: transform .35s var(--ease); }
.visuals-foot {
  display: flex; justify-content: space-between; gap: 20px; margin-top: 22px;
  color: var(--faint); font-family: var(--mono); font-size: .55rem; letter-spacing: .14em;
}
.visuals-foot span { display: inline-flex; align-items: center; gap: 7px; }
.visuals-foot .icon { width: 12px; height: 12px; color: var(--green); }
.side-nav {
  position: fixed; right: 24px; top: 50%; translate: 0 -50%; z-index: 80;
  display: flex; flex-direction: column; align-items: flex-end; gap: 15px;
}
.side-nav a {
  display: flex; align-items: center; gap: 10px; color: var(--faint);
  font-family: var(--mono); font-size: .5rem; letter-spacing: .16em; text-decoration: none;
}
.side-nav a span {
  opacity: 0; transform: translateX(6px); transition: opacity .25s ease, transform .25s ease, color .25s ease;
}
.side-nav a i {
  width: 5px; height: 5px; border: 1px solid rgba(184,255,214,.28); border-radius: 50%;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.side-nav a:hover span, .side-nav a.active span { opacity: 1; transform: none; color: var(--muted); }
.side-nav a:hover i, .side-nav a.active i {
  background: var(--green); border-color: var(--green); box-shadow: 0 0 12px rgba(59,245,157,.8);
}

dialog {
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0;
  background: transparent; color: var(--ink); max-width: calc(100vw - 32px);
}
dialog::backdrop {
  background: rgba(2,5,3,.74);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: fadeIn .35s ease;
}
.panel-dialog {
  width: min(980px, calc(100vw - 32px)); max-height: min(88vh, 760px);
  border: 1px solid var(--line-strong); border-radius: 28px; background: #081009;
  box-shadow: 0 40px 100px rgba(0,0,0,.65); overflow: hidden;
}
.panel-dialog[open] { animation: dialogIn .5s var(--ease); }
.dialog-shell {
  position: relative; display: grid; grid-template-columns: .92fr 1.08fr;
  max-height: min(88vh, 760px);
}
.dialog-close {
  position: absolute; top: 16px; right: 16px; z-index: 5; display: grid; place-items: center;
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(5,8,6,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--muted); cursor: pointer; transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.dialog-close:hover { color: #04120b; background: var(--green); border-color: var(--green); }
.dialog-close .icon { width: 15px; height: 15px; }
.dialog-art {
  position: relative; min-height: 520px; overflow: hidden;
  border-right: 1px solid var(--line); background: #06100b;
}
.dialog-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dialog-content {
  display: flex; flex-direction: column; gap: 14px;
  padding: 48px 38px 30px; overflow-y: auto;
}
.dialog-kicker { color: var(--green); font-family: var(--mono); font-size: .56rem; letter-spacing: .2em; }
.dialog-title { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 900; letter-spacing: -.05em; line-height: 1.1; word-break: keep-all; }
.dialog-desc { color: var(--muted); font-size: .9rem; line-height: 1.8; word-break: keep-all; }
.dialog-points { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.dialog-points li {
  position: relative; padding-left: 20px; color: #c9dbce;
  font-size: .84rem; line-height: 1.6; word-break: keep-all;
}
.dialog-points li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--green); font-size: .7rem; }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dialog-tags li {
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-family: var(--mono); font-size: .6rem;
}
.dialog-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--faint); font-family: var(--mono); font-size: .55rem; letter-spacing: .1em;
}
.dialog-close-btn { padding: 9px 16px; font-size: .76rem; }

.lightbox-dialog {
  width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  padding: 14px; border: 1px solid var(--line-strong); border-radius: 24px;
  background: #081009; box-shadow: 0 40px 100px rgba(0,0,0,.7); overflow: visible;
}
.lightbox-dialog[open] { animation: dialogIn .45s var(--ease); }
.lightbox-dialog img {
  width: 100%; max-height: 72vh; object-fit: contain;
  border-radius: 14px; background: #050806;
}
.lightbox-foot {
  display: flex; align-items: baseline; gap: 16px;
  padding: 12px 8px 4px; margin-top: 10px; border-top: 1px solid var(--line);
}
.lightbox-kicker { color: var(--green); font-family: var(--mono); font-size: .55rem; letter-spacing: .16em; flex: none; }
.lightbox-foot p { color: var(--muted); font-size: .8rem; }
.lightbox-dialog .dialog-close { top: 24px; right: 24px; background: rgba(5,8,6,.82); }

.cmd-dialog {
  width: min(640px, calc(100vw - 32px)); max-height: min(70vh, 560px);
  border: 1px solid var(--line-strong); border-radius: 22px; background: #08110c;
  box-shadow: 0 40px 100px rgba(0,0,0,.7); overflow: hidden;
}
.cmd-dialog[open] { animation: dialogIn .4s var(--ease); }
.cmd-shell { display: flex; flex-direction: column; max-height: inherit; }
.cmd-search {
  display: flex; align-items: center; gap: 10px; padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.cmd-search .icon { width: 16px; height: 16px; color: var(--green); }
.cmd-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: none;
  color: var(--ink); font: inherit; font-size: .92rem;
  user-select: text; -webkit-user-select: text;
}
.cmd-search input::placeholder { color: var(--faint); }
.cmd-search kbd, .cmd-foot kbd {
  padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px;
  color: var(--faint); font-family: var(--mono); font-size: .52rem;
}
.cmd-results { max-height: 380px; overflow-y: auto; padding: 8px; }
.cmd-group-label { padding: 10px 12px 5px; color: var(--faint); font-family: var(--mono); font-size: .5rem; letter-spacing: .18em; }
.cmd-result {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 12px; border: 1px solid transparent; border-radius: 10px;
  background: none; color: var(--muted); text-align: left; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cmd-result:hover, .cmd-result.is-active {
  background: rgba(59,245,157,.08); border-color: rgba(59,245,157,.18); color: var(--ink);
}
.cmd-result .cmd-dot {
  width: 6px; height: 6px; flex: none; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px rgba(59,245,157,.7);
}
.cmd-result .cmd-label { font-size: .85rem; font-weight: 600; }
.cmd-result .cmd-meta { margin-left: auto; color: var(--faint); font-family: var(--mono); font-size: .52rem; letter-spacing: .12em; }
.cmd-result .cmd-icon { width: 18px; height: 18px; color: var(--green); }
.cmd-empty { padding: 28px 16px; text-align: center; color: var(--faint); font-size: .8rem; }
.cmd-foot {
  display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line);
  color: var(--faint); font-family: var(--mono); font-size: .52rem; letter-spacing: .06em;
}
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 10003; translate: -50% 0;
  padding: 11px 18px; border: 1px solid rgba(59,245,157,.35); border-radius: 999px;
  background: rgba(6,14,9,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--green); font-family: var(--mono); font-size: .62rem; letter-spacing: .06em;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: none; }

.footer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.footer-action {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  font-family: var(--mono); font-size: .56rem; letter-spacing: .08em; cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.footer-action:hover { color: var(--green); border-color: rgba(59,245,157,.35); background: rgba(59,245,157,.04); }
.footer-action .icon { width: 12px; height: 12px; color: var(--green); }
.hosted { display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.hosted .icon { width: 12px; height: 12px; }

.error-body { min-height: 100vh; }
.error-page {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; padding: 140px 8vw 90px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 500px at 80% 20%, rgba(59,245,157,.12), transparent 60%),
    radial-gradient(700px 500px at 10% 80%, rgba(200,255,98,.06), transparent 60%);
}
.error-page::before {
  content: "404"; position: absolute; right: -2vw; bottom: -9vw; z-index: -1;
  color: transparent; font-size: clamp(15rem, 40vw, 34rem); font-weight: 900;
  letter-spacing: -.08em; line-height: .8; -webkit-text-stroke: 1px rgba(184,255,214,.08);
  pointer-events: none;
}
.error-orbit {
  position: absolute; top: 50%; left: 60%; z-index: -1; width: min(800px, 90vw);
  aspect-ratio: 1; translate: -50% -50%; border: 1px solid rgba(59,245,157,.12); border-radius: 50%;
}
.error-orbit::before {
  content: ""; position: absolute; inset: 12%; border: 1px dashed rgba(59,245,157,.1); border-radius: 50%;
}
.error-brand { position: absolute; top: 28px; left: 8vw; z-index: 2; text-decoration: none; }
.error-kicker { color: var(--green); font-family: var(--mono); font-size: .62rem; letter-spacing: .24em; }
.error-title {
  margin-top: 18px; font-size: clamp(3.4rem, 10vw, 8rem); font-weight: 900;
  line-height: 1.02; letter-spacing: -.06em;
}
.error-title .serif { color: var(--lime); }
.error-desc { max-width: 40ch; margin-top: 22px; color: var(--muted); font-size: .96rem; line-height: 1.8; word-break: keep-all; }
.error-btn { width: fit-content; margin-top: 30px; }
.error-foot {
  position: absolute; left: 8vw; right: 8vw; bottom: 28px; display: flex;
  justify-content: space-between; gap: 20px; color: var(--faint);
  font-family: var(--mono); font-size: .55rem; letter-spacing: .14em;
}

[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}
[data-motion="off"] #starfield, [data-motion="off"] .cursor-dot, [data-motion="off"] .cursor-ring { display: none !important; }
[data-motion="off"] body.has-cursor, [data-motion="off"] body.has-cursor a,
[data-motion="off"] body.has-cursor button { cursor: auto !important; }
[data-motion="off"] .gallery { scroll-behavior: auto; }

@media (max-width: 1200px) {
  .side-nav, .hero-orbit { display: none; }
}
@media (max-width: 1180px) {
  .availability { display: none; }
}
@media (max-width: 980px) {
  .nav-tools .icon-btn[data-share], .nav-tools .icon-btn[data-motion-toggle] { display: none; }
  .cmd-trigger { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
  .cmd-trigger span, .cmd-trigger kbd { display: none; }
  .nav-tools { gap: 2px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-card { flex-basis: clamp(240px, 42vw, 340px); }
  .panel-dialog { max-height: 90vh; }
  .dialog-shell { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .dialog-art { height: 260px; min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dialog-content { padding: 28px 24px 24px; overflow: visible; }
  .dialog-close { top: 12px; right: 12px; }
  .visuals-top { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 640px) {
  .nav-shell { gap: 8px; padding-left: 14px; }
  .brand-role { display: none; }
  .icon-btn { width: 34px; height: 34px; }
  .cmd-trigger { width: 38px; height: 38px; }
  .menu-btn { width: 38px; height: 38px; }
  .menu-btn span:nth-child(1) { top: 16px; }
  .menu-btn span:nth-child(2) { top: 22px; }
  .menu-btn.active span:nth-child(1), .menu-btn.active span:nth-child(2) { top: 19px; }
  .stat { padding: 20px 18px; }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: .5rem; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .tech-tile { min-height: 82px; }
  .tech-tile span { font-size: .54rem; }
  .gallery-card { flex-basis: 78vw; border-radius: 16px; }
  .gallery-controls { gap: 8px; }
  .round-btn { width: 36px; height: 36px; }
  .gallery-info { left: 14px; right: 14px; bottom: 14px; }
  .gallery-title { font-size: .94rem; }
  .visuals-foot { flex-direction: column; gap: 6px; }
  .footer-actions { margin-top: 18px; }
  .footer-bottom { font-size: .52rem; }
  .dialog-title { font-size: 1.8rem; }
  .dialog-desc, .dialog-points li { font-size: .82rem; }
  .dialog-art { height: 220px; min-height: 220px; }
  .lightbox-dialog { padding: 10px; border-radius: 18px; }
  .lightbox-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cmd-dialog { max-height: 80vh; }
  .cmd-result { padding: 10px; }
  .cmd-foot { flex-wrap: wrap; gap: 6px 14px; }
  .error-page { padding: 120px 24px 90px; }
  .error-brand { left: 24px; }
  .error-title { font-size: 3.2rem; }
  .error-foot { left: 24px; right: 24px; flex-direction: column; gap: 6px; }
}

.mobile-menu { overflow-y: auto; }
html.dialog-open, html.dialog-open * { cursor: auto !important; }
html.dialog-open button, html.dialog-open [role="button"] { cursor: pointer !important; }
html.dialog-open .cmd-search input { cursor: text !important; }
html.dialog-open .cursor-dot, html.dialog-open .cursor-ring { display: none !important; }