/* ============================================================
   STWIR Hong Kong Limited — stylesheet
   Dark "deep-space HUD" system: void black, aurora mint + solar amber
   ============================================================ */

/* ---- 1. Tokens ---- */
:root {
  --bg:        #050807;
  --bg-2:      #080d0b;
  --surface:   #0b1210;
  --surface-2: #0f1815;
  --ink:       #e8f1ed;
  --ink-2:     #b6c5be;
  --mute:      #7f8f88;
  --faint:     #566560;
  --line:      rgba(124,245,196,.11);
  --line-2:    rgba(255,255,255,.055);
  --line-hard: rgba(124,245,196,.32);
  --neon:      #7cf5c4;
  --neon-2:    #38d9a9;
  --neon-ink:  #04120d;
  --amber:     #ffb35a;
  --amber-2:   #ff8e4a;
  --aurora:    linear-gradient(100deg, #7cf5c4 0%, #c8f08a 45%, #ffb35a 100%);
  --glow:      0 0 0 1px rgba(124,245,196,.18), 0 18px 60px -20px rgba(124,245,196,.35);

  --f-head: "Space Grotesk", "Instrument Sans", -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  --f-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gut: clamp(1rem, 4vw, 2.25rem);
  --maxw: 1180px;
  --narrow: 760px;
  --sec: clamp(4rem, 9vw, 7.5rem);
  --hdr: 66px;
  --r: 4px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
html[lang^="zh"] {
  --f-head: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Space Grotesk", sans-serif;
  --f-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Instrument Sans", sans-serif;
}

/* ---- 2. Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 20px); background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(124,245,196,.28); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--neon); color: var(--neon-ink); padding: .6rem 1rem; }
.skip:focus { left: 0; }

/* space backdrop */
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .9; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 540px at 12% -10%, rgba(124,245,196,.13), transparent 62%),
    radial-gradient(760px 520px at 92% 4%, rgba(255,179,90,.09), transparent 60%),
    radial-gradient(1100px 760px at 50% 112%, rgba(56,217,169,.08), transparent 62%);
}
main, header, footer { position: relative; z-index: 2; }

/* ---- 3. Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: var(--narrow); }
.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.008)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section--line { border-top: 1px solid var(--line-2); }
.grid { display: grid; gap: 1px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.shead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.shead--stack { grid-template-columns: 1fr; max-width: 60ch; }
@media (max-width: 820px) { .shead { grid-template-columns: 1fr; gap: .9rem; } }
.shead .lead { margin-top: 0; }

/* ---- 4. Type ---- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--neon);
  display: flex; align-items: center; gap: .7em;
  margin-bottom: 1rem;
}
.eyebrow .idx { color: var(--amber); }
.eyebrow::after { content: ""; flex: 0 0 34px; height: 1px; background: var(--aurora); opacity: .8; }
.eyebrow--bare::after { display: none; }

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; color: #fff; }
h1 em, h2 em, .h1 em { font-style: normal; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-hero { font-size: clamp(2.6rem, 6.2vw, 4.9rem); line-height: 1.0; font-weight: 500; letter-spacing: -.035em; }
.h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); letter-spacing: -.03em; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -.028em; }
.h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; }
.h4 { font-family: var(--f-sans); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.3; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.soft { color: var(--ink-2); }
.muted { color: var(--mute); font-size: .95rem; }
.small { font-size: .86rem; color: var(--mute); line-height: 1.55; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 1rem; }
.prose { max-width: 70ch; }
.prose p { color: var(--ink-2); margin-bottom: 1rem; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 2.5rem 0 .8rem; }
.prose h3 { font-size: 1.1rem; margin: 1.7rem 0 .5rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.2rem; color: var(--ink-2); }
.prose li { margin-bottom: .4rem; }
.prose a, .link { color: var(--neon); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---- 5. Buttons ---- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .8em 1.3em;
  background: var(--neon); color: var(--neon-ink);
  border: 1px solid var(--neon);
  border-radius: var(--r);
  font-size: .92rem; font-weight: 600; letter-spacing: .005em;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(124,245,196,0);
  transition: box-shadow .35s var(--ease), transform .3s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn:hover { box-shadow: 0 0 28px -4px rgba(124,245,196,.55); transform: translateY(-1px); }
.btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(255,255,255,.22); }
.btn--line:hover { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 22px -8px rgba(124,245,196,.5); }
.btn--light { background: var(--neon); color: var(--neon-ink); }
.btn--ghost-light { background: transparent; color: var(--ink); border-color: rgba(255,255,255,.22); }
.btn--ghost-light:hover { border-color: var(--neon); color: var(--neon); }
.btn--sm { padding: .55em .95em; font-size: .84rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.more {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .92rem; font-weight: 500; color: var(--neon);
  border-bottom: 1px solid transparent; transition: border-color .2s, gap .2s;
}
.more svg { width: 14px; height: 14px; }
.more:hover { border-color: var(--neon); gap: .8em; }

/* ---- 6. Header ---- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  height: var(--hdr);
  background: rgba(5,8,7,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.hdr.is-stuck { border-color: var(--line-2); background: rgba(5,8,7,.82); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); flex: none; }
.brand__mark { width: 28px; height: 28px; color: var(--neon); filter: drop-shadow(0 0 8px rgba(124,245,196,.45)); }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name b { font-family: var(--f-mono); font-weight: 500; font-size: 15px; letter-spacing: .24em; color: #fff; }
.brand__name span { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav a { padding: .45rem .72rem; font-size: .9rem; color: var(--ink-2); border-radius: var(--r); transition: color .2s, background .2s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav a.is-active { color: var(--neon); }
.nav__cta { display: none; }
.hdr__end { display: flex; align-items: center; gap: .55rem; flex: none; }

.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .45em .65em;
  background: transparent; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r);
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang__btn:hover { border-color: var(--line-hard); color: #fff; }
.lang__btn svg { width: 9px; height: 9px; transition: transform .25s; }
.lang[data-open="true"] .lang__btn svg { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px;
  background: rgba(11,18,16,.96); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.8);
  backdrop-filter: blur(16px);
  padding: .3rem;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.lang[data-open="true"] .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu a { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .65rem; font-size: .88rem; border-radius: 3px; color: var(--ink-2); }
.lang__menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.lang__menu a.is-current { color: var(--neon); }
.lang__menu a span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }

.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); cursor: pointer; }
.burger span { position: relative; display: block; width: 16px; height: 1.5px; background: #fff; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: #fff; transition: transform .3s var(--ease), top .2s; }
.burger span::before { top: -5px; } .burger span::after { top: 5px; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
body.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1040px) {
  .burger { display: inline-flex; }
  .hdr__end { margin-left: auto; }   /* меню вне потока — прижимаем язык и бургер к правому краю */
  .hdr__end .btn { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--hdr);
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5,8,7,.97); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
    padding: .75rem var(--gut) 1.5rem;
    max-height: calc(100vh - var(--hdr)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: .9rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav__cta { display: block; color: var(--neon) !important; font-weight: 500; }
}

/* ---- 7. Hero ---- */
.hero { position: relative; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); overflow: hidden; min-height: min(92svh, 860px); display: flex; align-items: center; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; width: 100%; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero { min-height: auto; } }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { max-width: 36em; }
.hero .btn-row { margin-top: 2.2rem; }

/* 3D plate stage */
.stage { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto; perspective: 1100px; perspective-origin: 50% 40%; }
.stage__floor {
  position: absolute; left: -30%; right: -30%; top: 42%; height: 90%;
  transform: rotateX(74deg); transform-origin: 50% 0;
  background-image:
    linear-gradient(to right, rgba(124,245,196,.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124,245,196,.16) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 75%);
  animation: floor 9s linear infinite;
  pointer-events: none;
}
@keyframes floor { to { background-position: 0 48px, 0 48px; } }
.stage__glow {
  position: absolute; inset: 14%;
  background: radial-gradient(circle at 50% 55%, rgba(124,245,196,.32), rgba(255,179,90,.08) 45%, transparent 70%);
  filter: blur(34px);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.plate3d {
  position: absolute; left: 50%; top: 50%;
  width: 58%; aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(var(--rx, 52deg)) rotateY(var(--ry, 0deg)) rotateZ(-18deg);
  transition: transform .9s var(--ease);
  will-change: transform;
}
.stage.is-live .plate3d { transition: none; }
.plate3d__inner { position: absolute; inset: 0; transform-style: preserve-3d; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateZ(0); } 50% { transform: translateZ(26px); } }
.plate3d__face {
  position: absolute; inset: 0;
  border-radius: 6px;
  backface-visibility: hidden;
}
.plate3d__face--top {
  transform: translateZ(8px);
  background:
    radial-gradient(120% 90% at var(--sx, 30%) var(--sy, 25%), rgba(255,255,255,.55), rgba(255,255,255,0) 38%),
    linear-gradient(135deg, rgba(124,245,196,.48) 0%, rgba(124,245,196,.12) 42%, rgba(255,179,90,.26) 100%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 0 0 1px rgba(124,245,196,.25), 0 0 60px -10px rgba(124,245,196,.55);
  overflow: hidden;
}
.plate3d__lattice {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  opacity: .9;
}
.plate3d__lattice::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.55) 1px, transparent 1.6px);
  background-size: 12.5% 12.5%;
  background-position: 6.25% 6.25%;
  opacity: .8;
}
.plate3d__label {
  position: absolute; left: 7%; bottom: 6%;
  font-family: var(--f-mono); font-size: clamp(.5rem, 1.1vw, .66rem); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.plate3d__label b { display: block; font-weight: 500; color: #fff; font-size: 1.35em; letter-spacing: .06em; margin-bottom: .25em; }
.plate3d__face--bottom { transform: translateZ(-8px) rotateY(180deg); background: rgba(10,22,18,.9); border: 1px solid rgba(124,245,196,.25); }
.plate3d__side { position: absolute; background: linear-gradient(90deg, rgba(124,245,196,.55), rgba(255,255,255,.35), rgba(124,245,196,.5)); backface-visibility: hidden; }
.plate3d__side--n, .plate3d__side--s { left: 0; width: 100%; height: 16px; top: calc(50% - 8px); }
.plate3d__side--w, .plate3d__side--e { top: 0; height: 100%; width: 16px; left: calc(50% - 8px); background: linear-gradient(180deg, rgba(124,245,196,.5), rgba(255,255,255,.3), rgba(124,245,196,.45)); }
.plate3d__side--n { transform: translateY(-50cqw) rotateX(90deg); }
.plate3d__side--s { transform: translateY(50cqw) rotateX(-90deg); }
.plate3d__side--w { transform: translateX(-50cqw) rotateY(-90deg); }
.plate3d__side--e { transform: translateX(50cqw) rotateY(90deg); }
.plate3d { container-type: inline-size; }
.plate3d__shadow {
  position: absolute; inset: 6%;
  transform: translateZ(-70px);
  background: radial-gradient(circle, rgba(0,0,0,.75), transparent 65%);
  filter: blur(18px);
}
/* HUD callouts around the plate */
.hud { position: absolute; inset: 0; pointer-events: none; transform: translate(var(--hx, 0px), var(--hy, 0px)); transition: transform .9s var(--ease); }
.stage.is-live .hud { transition: none; }
.callout {
  position: absolute; z-index: 3;
  display: grid; gap: .12rem;
  padding: .5rem .7rem;
  background: rgba(8,14,12,.78); border: 1px solid var(--line-hard); border-radius: 3px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.03);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; line-height: 1.3;
}
.callout::before { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); }
.callout b { font-weight: 500; color: var(--neon); text-transform: uppercase; font-size: .58rem; letter-spacing: .14em; }
.callout span { color: #fff; white-space: nowrap; }
.callout--tl { left: 0; top: 10%; }   .callout--tl::before { right: -3px; bottom: -3px; }
.callout--tr { right: 0; top: 20%; }  .callout--tr::before { left: -3px; bottom: -3px; }
.callout--bl { left: 2%; bottom: 14%; } .callout--bl::before { right: -3px; top: -3px; }
.callout--br { right: 0; bottom: 6%; }  .callout--br::before { left: -3px; top: -3px; }
.drawing__cap { position: absolute; left: 0; right: 0; bottom: -2.4rem; text-align: center; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 520px) { .callout { font-size: .6rem; padding: .35rem .5rem; } .callout--tl { top: 2%; } .callout--tr { top: 2%; } .callout--bl { bottom: 8%; } .callout--br { bottom: 0; } .plate3d { width: 62%; } }

/* ---- 8. Readout strip ---- */
.readout { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(124,245,196,.04), rgba(124,245,196,.01)); }
.readout__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.readout__item { padding: clamp(1.4rem, 3vw, 2rem) clamp(.9rem, 2vw, 1.5rem); border-left: 1px solid var(--line-2); position: relative; }
.readout__item:first-child { border-left: 0; }
.readout__val { font-family: var(--f-head); font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 500; line-height: 1; letter-spacing: -.03em; color: #fff; display: flex; align-items: baseline; gap: .4em; flex-wrap: wrap; }
.readout__val small { font-family: var(--f-mono); font-size: .42em; letter-spacing: .06em; color: var(--neon); font-weight: 500; }
.readout__lbl { margin-top: .6rem; font-size: .82rem; color: var(--mute); line-height: 1.45; }
@media (max-width: 760px) {
  .readout__grid { grid-template-columns: 1fr 1fr; }
  .readout__item:nth-child(odd) { border-left: 0; }
  .readout__item:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}

/* HUD corner brackets */
.hudbox { position: relative; }
.hudbox::before, .hudbox::after { content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--neon); border-style: solid; opacity: .55; transition: opacity .3s, width .3s, height .3s; pointer-events: none; }
.hudbox::before { top: 7px; left: 7px; border-width: 1px 0 0 1px; }
.hudbox::after { bottom: 7px; right: 7px; border-width: 0 1px 1px 0; }
.hudbox:hover::before, .hudbox:hover::after { opacity: 1; width: 16px; height: 16px; }

/* ---- 9. Property tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--surface); padding: 1.5rem 1.4rem 1.4rem; position: relative; transition: background .3s; }
.tile:hover { background: var(--surface-2); }
.tile__v { font-family: var(--f-head); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.05; letter-spacing: -.025em; color: #fff; display: flex; align-items: baseline; gap: .35em; flex-wrap: wrap; }
.tile__v small { font-family: var(--f-mono); font-size: .45em; letter-spacing: .05em; color: var(--neon); }
.tile__l { margin-top: .75rem; font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.tile__n { margin-top: .35rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; color: var(--faint); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: 1fr; } }

/* ---- 10. Catalogue index ---- */
.cat { border-top: 1px solid var(--line-hard); }
.cat__head { display: grid; grid-template-columns: 72px minmax(0, 1.6fr) minmax(0, 1fr) 40px; gap: 1.25rem; padding: .6rem 0; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line-2); }
.cat__row {
  display: grid; grid-template-columns: 72px minmax(0, 1.6fr) minmax(0, 1fr) 40px; gap: 1.25rem; align-items: center;
  padding: 1.25rem .75rem; margin-inline: -.75rem; border-bottom: 1px solid var(--line-2);
  position: relative; border-radius: var(--r);
  transition: background .25s;
}
.cat__row::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 2px; background: var(--aurora); opacity: 0; transition: opacity .3s; border-radius: 2px; }
.cat__row:hover { background: rgba(124,245,196,.045); }
.cat__row:hover::before { opacity: 1; }
.cat__code { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-hard); color: var(--neon); font-family: var(--f-head); font-size: 1.35rem; font-weight: 500; border-radius: 3px; background: rgba(124,245,196,.07); box-shadow: inset 0 0 18px -8px rgba(124,245,196,.5); }
.cat__name { font-family: var(--f-head); font-weight: 500; font-size: 1.15rem; line-height: 1.2; margin-bottom: .3rem; color: #fff; }
.cat__desc { font-size: .9rem; color: var(--mute); line-height: 1.5; max-width: 52ch; }
.cat__spec { font-family: var(--f-mono); font-size: .76rem; line-height: 1.6; color: var(--ink-2); letter-spacing: .01em; }
.cat__arrow { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .25s, color .25s, border-color .25s, box-shadow .25s; }
.cat__arrow svg { width: 14px; height: 14px; }
.cat__row:hover .cat__arrow { background: var(--neon); border-color: var(--neon); color: var(--neon-ink); box-shadow: 0 0 18px -4px var(--neon); }
@media (max-width: 760px) {
  .cat__head { display: none; }
  .cat__row { grid-template-columns: 52px 1fr; grid-template-areas: "code name" "spec spec"; gap: .6rem 1rem; }
  .cat__code { grid-area: code; }
  .cat__body { grid-area: name; }
  .cat__spec { grid-area: spec; padding-left: calc(52px + 1rem); }
  .cat__arrow { display: none; }
}

/* ---- 11. Glass band (routes) ---- */
.band { position: relative; }
.band > .wrap { position: relative; border: 1px solid var(--line); border-radius: 10px; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); background: linear-gradient(160deg, rgba(124,245,196,.07), rgba(255,255,255,.015) 45%, rgba(255,179,90,.06)); overflow: hidden; }
.band > .wrap::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--aurora); opacity: .8; }
.band > .wrap::after { content: ""; position: absolute; right: -10%; top: -30%; width: 46%; aspect-ratio: 1; background: radial-gradient(circle, rgba(124,245,196,.16), transparent 62%); filter: blur(30px); pointer-events: none; }
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-2); position: relative; z-index: 1; }
@media (max-width: 820px) { .routes { grid-template-columns: 1fr; } }
.route { padding: clamp(1.75rem, 3.5vw, 2.75rem) 0; }
.route + .route { border-left: 1px solid var(--line-2); padding-left: clamp(1.5rem, 4vw, 3rem); }
.route:first-child { padding-right: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 820px) { .route + .route { border-left: 0; border-top: 1px solid var(--line-2); padding-left: 0; } .route:first-child { padding-right: 0; } }
.route__k { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.route h3 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); margin-bottom: 1rem; }
.route p { color: var(--ink-2); max-width: 58ch; font-size: .98rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.tag { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: .38em .62em; border: 1px solid rgba(255,255,255,.14); border-radius: 3px; color: var(--ink-2); white-space: nowrap; background: rgba(255,255,255,.02); }

/* ---- 12. Chain stepper ---- */
.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; counter-reset: st; }
@media (max-width: 1000px) { .chain { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .chain { grid-template-columns: 1fr; gap: 0; } }
.step { position: relative; padding-top: 1.1rem; border-top: 1px solid var(--line-hard); counter-increment: st; }
.step::before { content: counter(st, decimal-leading-zero); position: absolute; top: -.7em; left: 0; background: var(--bg); padding-right: .6em; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: var(--amber); }
.section--alt .step::before { background: #080d0b; }
.step h3 { font-size: 1.08rem; margin-bottom: .55rem; }
.step p { font-size: .9rem; color: var(--mute); line-height: 1.55; }
.step .tags { margin-top: .9rem; }
@media (max-width: 640px) { .step { padding: 1.4rem 0 1.4rem 3rem; border-top: 1px solid var(--line-2); } .step::before { top: 1.5rem; } .step:last-child { border-bottom: 1px solid var(--line-2); } }
.chain-v { display: grid; }
.chain-v .step { display: grid; grid-template-columns: 70px 1fr; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--line-2); }
.chain-v .step::before { position: static; background: transparent; padding: .2em 0 0; font-size: .8rem; }
.chain-v .step:last-child { border-bottom: 1px solid var(--line-2); }
.chain-v .step h3 { font-size: 1.25rem; }
.chain-v .step p { max-width: 66ch; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 640px) { .chain-v .step { grid-template-columns: 1fr; gap: .4rem; padding-left: 0; } }

/* ---- 13. Market cards ---- */
.mcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
@media (max-width: 920px) { .mcards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mcards { grid-template-columns: 1fr; } }
.mcard { background: var(--surface); padding: 1.6rem 1.4rem 1.5rem; position: relative; transition: background .3s; }
.mcard:hover { background: var(--surface-2); }
.mcard__i { position: absolute; top: 1.2rem; right: 1.3rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; color: var(--amber); }
.mcard h3 { font-size: 1.12rem; margin-bottom: .6rem; padding-right: 2.5rem; }
.mcard p { font-size: .92rem; color: var(--mute); line-height: 1.55; }
.list { list-style: none; display: grid; gap: .35rem; margin-top: 1rem; }
.list li { position: relative; padding-left: 1rem; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--neon); box-shadow: 0 0 6px var(--neon); }
.check { list-style: none; display: grid; gap: .7rem; }
.check li { position: relative; padding-left: 1.9rem; color: var(--ink-2); line-height: 1.5; }
.check li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border: 1px solid var(--line-hard); border-radius: 3px; background: rgba(124,245,196,.08); }
.check li::after { content: ""; position: absolute; left: 6px; top: .42em; width: 6px; height: 9px; border: solid var(--neon); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }

/* ---- 14. Numbered columns ---- */
.numcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.numcols--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .numcols, .numcols--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .numcols, .numcols--4 { grid-template-columns: 1fr; } }
.numcol__n { font-family: var(--f-head); font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; margin-bottom: .9rem; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numcol h3 { font-size: 1.1rem; margin-bottom: .55rem; }
.numcol p { font-size: .92rem; color: var(--mute); line-height: 1.55; }

/* ---- 15. Tables ---- */
.tablewrap { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; overflow: hidden; }
.tablescroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec { width: 100%; min-width: 700px; border-collapse: collapse; font-size: .875rem; }
table.spec caption { text-align: left; padding: .95rem 1.2rem; font-family: var(--f-head); font-weight: 500; font-size: 1rem; color: #fff; border-bottom: 1px solid var(--line); background: rgba(124,245,196,.04); }
table.spec th, table.spec td { padding: .72rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
table.spec thead th { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 500; white-space: nowrap; background: rgba(255,255,255,.02); }
table.spec tbody th { font-weight: 500; color: #fff; white-space: nowrap; font-family: var(--f-sans); }
table.spec td { color: var(--ink-2); font-family: var(--f-mono); font-size: .78rem; line-height: 1.55; }
table.spec td:last-child { font-family: var(--f-sans); font-size: .84rem; color: var(--mute); }
table.spec--text td { font-family: var(--f-sans); font-size: .86rem; }
table.spec tbody tr:last-child th, table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr { transition: background .2s; }
table.spec tbody tr:hover { background: rgba(124,245,196,.04); }
.table-note { padding: .7rem 1.2rem; font-size: .76rem; color: var(--faint); border-top: 1px solid var(--line-2); font-family: var(--f-mono); }
.series-cell { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-hard); color: var(--neon); font-family: var(--f-head); font-size: .95rem; border-radius: 3px; background: rgba(124,245,196,.07); }

/* ---- 16. Product family blocks ---- */
.subnav { position: sticky; top: var(--hdr); z-index: 50; background: rgba(5,8,7,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
.subnav__in { display: flex; gap: .25rem; overflow-x: auto; padding: .5rem 0; scrollbar-width: none; }
@media (min-width: 1041px) { .subnav__in { flex-wrap: wrap; overflow: visible; } }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; gap: .5em; padding: .45em .8em; font-size: .82rem; color: var(--ink-2); border-radius: 3px; border: 1px solid transparent; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.subnav a b { font-family: var(--f-head); font-weight: 500; color: var(--neon); }
.subnav a:hover { background: rgba(255,255,255,.04); border-color: var(--line); }
.subnav a.is-active { background: rgba(124,245,196,.12); color: #fff; border-color: var(--line-hard); }
.fam { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(2rem, 5vw, 4.5rem); padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line-2); scroll-margin-top: calc(var(--hdr) + 56px); }
.fam:first-of-type { border-top: 0; }
@media (max-width: 860px) { .fam { grid-template-columns: 1fr; gap: 1.75rem; } }
.fam__side { position: sticky; top: calc(var(--hdr) + 72px); }
@media (max-width: 860px) { .fam__side { position: static; } }
.fam__code { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.fam__code b { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-hard); color: var(--neon); font-family: var(--f-head); font-size: 1.3rem; font-weight: 500; background: rgba(124,245,196,.07); border-radius: 3px; box-shadow: inset 0 0 18px -8px rgba(124,245,196,.5); }
.fam h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 1.2rem; }
.fam__apps h4 { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: .7rem; font-weight: 500; }
.fam__body p { color: var(--ink-2); margin-bottom: 1rem; max-width: 66ch; }
.dl { margin-top: 1.5rem; border-top: 1px solid var(--line-hard); }
.dl__h { padding: .6rem 0; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line-2); }
.dl__row { display: flex; align-items: baseline; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line-2); font-size: .86rem; }
.dl__row dt { color: var(--mute); flex: none; }
.dl__row .dots { flex: 1; border-bottom: 1px dotted rgba(255,255,255,.22); transform: translateY(-.3em); min-width: 1rem; }
.dl__row dd { font-family: var(--f-mono); font-size: .78rem; color: #fff; text-align: right; }

.kv { border-top: 1px solid var(--line-hard); }
.kv__row { display: grid; grid-template-columns: 200px 1fr; gap: 1.25rem; padding: .9rem 0; border-bottom: 1px solid var(--line-2); font-size: .93rem; }
.kv__row dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding-top: .3em; }
.kv__row dd { color: var(--ink-2); }
.kv__row dd a { color: var(--neon); }
@media (max-width: 600px) { .kv__row { grid-template-columns: 1fr; gap: .25rem; } }

/* ---- 17. Markets page rows ---- */
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(2.25rem, 5vw, 3.75rem) 0; border-top: 1px solid var(--line-2); }
.mrow:last-child { border-bottom: 1px solid var(--line-2); }
@media (max-width: 820px) { .mrow { grid-template-columns: 1fr; gap: 1rem; } }
.mrow__i { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; color: var(--amber); margin-bottom: .8rem; }
.mrow h3 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); }
.mrow p { color: var(--ink-2); max-width: 66ch; }
.mrow__s { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dotted rgba(255,255,255,.2); font-family: var(--f-mono); font-size: .74rem; color: var(--neon); letter-spacing: .02em; }
.mrow__s b { font-weight: 500; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; margin-right: .6em; }

/* ---- 18. Info cards ---- */
.icards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.icards--4 { grid-template-columns: repeat(4, 1fr); }
.icards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .icards, .icards--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .icards, .icards--4, .icards--2 { grid-template-columns: 1fr; } }
.icard { background: var(--surface); padding: 1.4rem 1.3rem; position: relative; transition: background .3s; }
.icard:hover { background: var(--surface-2); }
.icard__i { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; color: var(--amber); margin-bottom: .9rem; }
.icard h3 { font-family: var(--f-sans); font-weight: 600; font-size: 1rem; margin-bottom: .45rem; letter-spacing: -.005em; }
.icard p { font-size: .88rem; color: var(--mute); line-height: 1.55; }
.icard a { color: var(--neon); font-weight: 500; }

/* ---- 19. Forms ---- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea {
  width: 100%; padding: .74rem .85rem;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r);
  font-size: .93rem; color: #fff; appearance: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%237f8f88' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 11px; padding-right: 2.2rem; }
.field select option { background: #0b1210; color: #fff; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(124,245,196,.14); background: rgba(124,245,196,.04); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.form__note { font-size: .8rem; color: var(--mute); line-height: 1.55; max-width: 60ch; }
.form__note a { color: var(--neon); }
.form__status { display: none; padding: .8rem 1rem; border-radius: var(--r); font-size: .9rem; }
.form__status.is-ok { display: block; background: rgba(124,245,196,.1); border: 1px solid rgba(124,245,196,.35); color: #c9fbe7; }
.form__status.is-err { display: block; background: rgba(255,142,74,.1); border: 1px solid rgba(255,142,74,.4); color: #ffd4b8; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---- 20. CTA panel ---- */
.cta { padding-block: clamp(2rem, 5vw, 4rem); }
.cta__in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line); border-radius: 12px;
  background:
    radial-gradient(640px 300px at 85% 0%, rgba(124,245,196,.18), transparent 62%),
    radial-gradient(520px 280px at 8% 100%, rgba(255,179,90,.14), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  overflow: hidden;
}
.cta__in::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--aurora); }
@media (max-width: 820px) { .cta__in { grid-template-columns: 1fr; } }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: .9rem; }
.cta p { color: var(--ink-2); max-width: 46ch; }
.cta .btn-row { justify-content: flex-start; }
@media (min-width: 821px) { .cta .btn-row { justify-content: flex-end; } }

/* ---- 21. Footer ---- */
.ftr { border-top: 1px solid var(--line-2); background: linear-gradient(180deg, transparent, rgba(124,245,196,.025)); color: var(--ink-2); padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem; }
.ftr__top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-2); }
@media (max-width: 900px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__top { grid-template-columns: 1fr; } }
.ftr .brand { margin-bottom: 1rem; }
.ftr__blurb { font-size: .88rem; color: var(--mute); max-width: 36ch; line-height: 1.55; }
.ftr h4 { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; font-weight: 500; }
.ftr ul { list-style: none; display: grid; gap: .55rem; }
.ftr li a, .ftr li { font-size: .88rem; color: var(--ink-2); transition: color .2s; }
.ftr li a:hover { color: var(--neon); }
.ftr .ftr__reg { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .03em; color: var(--mute); display: inline-block; margin-top: .35rem; padding-top: .7rem; border-top: 1px solid var(--line-2); }
.ftr .ftr__reg::after { content: " ↗"; color: var(--neon); }
.ftr__bot { padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--faint); }
.ftr__bot nav { display: flex; gap: 1.2rem; }
.ftr__bot a:hover { color: var(--neon); }

/* ---- 22. Page head ---- */
.phead { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line-2); position: relative; }
.phead .lead { max-width: 56ch; margin-top: 1.25rem; }
.crumb { display: flex; align-items: center; gap: .6em; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.4rem; }
.crumb a { color: var(--mute); } .crumb a:hover { color: #fff; }
.crumb span { color: var(--amber); }
.updated { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--faint); margin-top: 1rem; }

/* ---- 23. Reveal ---- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-1 { transition-delay: .08s; } .rv-2 { transition-delay: .16s; } .rv-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .stage__floor, .stage__glow, .plate3d__inner { animation: none; } }

/* ---- 24. Utilities ---- */
.mb-lg { margin-bottom: clamp(2rem, 4.5vw, 3.25rem); }
.mb-md { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.mt-md { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.text-center { text-align: center; }
.notfound { min-height: 50vh; display: grid; place-items: center; text-align: center; padding-block: var(--sec); }
.facts { display: grid; gap: .3rem; margin-top: 1.5rem; }
.facts__row { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line-2); font-size: .88rem; }
.facts__row dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding-top: .25em; }
.facts__row dd { font-family: var(--f-mono); font-size: .8rem; color: #fff; }

/* ---- 25. Film hero (home) ---- */
body[data-page="home"] .hdr:not(.is-stuck) { background: transparent; }
.hero--film {
  position: relative; display: block; overflow: hidden;
  min-height: 100svh; padding: 0;
  margin-top: calc(-1 * var(--hdr));
  background: var(--bg);
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero--film.is-ready .hero__gl { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,8,7,.86) 0%, rgba(5,8,7,.55) 34%, rgba(5,8,7,0) 60%),
    linear-gradient(180deg, rgba(5,8,7,.55) 0%, rgba(5,8,7,0) 26%, rgba(5,8,7,0) 66%, rgba(5,8,7,.92) 100%);
}
.hero__content { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--hdr) + 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero__text { max-width: 640px; }
.hero__text h1 { margin-bottom: 1.3rem; }
.hero__text .lead { max-width: 34em; }
.hero__text .btn-row { margin-top: 2rem; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); }
.film-phase { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: baseline; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.film-phase__n { grid-row: 1 / span 2; font-family: var(--f-head); font-size: 1.9rem; letter-spacing: -.03em; line-height: 1; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.film-phase__t { color: #fff; }
.film-phase__d { color: var(--mute); text-transform: none; letter-spacing: .04em; }
.film-phase__t, .film-phase__d { transition: opacity .35s; }
.hero--film[data-phase] .film-phase__t { animation: phasein .6s var(--ease); }
@keyframes phasein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.film-bar { width: clamp(140px, 18vw, 260px); height: 2px; background: rgba(255,255,255,.12); margin-top: .9rem; overflow: hidden; }
.film-bar i { display: block; height: 100%; width: 0; background: var(--aurora); }
.film-cap { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); text-align: right; max-width: 36ch; }
.hero__chips { position: absolute; right: var(--gut); top: calc(var(--hdr) + 2.2rem); z-index: 2; display: grid; gap: .5rem; justify-items: end; }
.hero__chips .callout { position: static; }
.hero__chips .callout::before { display: none; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .4rem; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.hero__scroll::after { content: ""; width: 1px; height: 28px; background: linear-gradient(180deg, var(--neon), transparent); animation: scrollhint 2.2s ease-in-out infinite; }
@keyframes scrollhint { 0% { transform: scaleY(0); transform-origin: top; opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; } }
/* fallback: CSS plate when WebGL is not available */
.hero__fallback { display: none; position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: min(44vw, 540px); z-index: 1; }
.hero--film.no-webgl .hero__fallback { display: block; }
.hero--film.no-webgl .hero__gl, .hero--film.no-webgl .hero__foot .film-phase, .hero--film.no-webgl .film-bar { display: none; }
.hero--film.no-webgl .hero__scrim { background: linear-gradient(180deg, rgba(5,8,7,.2), rgba(5,8,7,0) 30%, rgba(5,8,7,0) 70%, rgba(5,8,7,.9)); }
@media (max-width: 900px) {
  .hero__chips, .hero__scroll { display: none; }
  .hero__scrim { background: linear-gradient(180deg, rgba(5,8,7,.5) 0%, rgba(5,8,7,0) 20%, rgba(5,8,7,0) 44%, rgba(5,8,7,.86) 64%, rgba(5,8,7,.97) 100%); }
  .hero__content { justify-content: flex-end; padding-top: calc(var(--hdr) + 42svh); }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .film-cap { text-align: left; }
  .hero__fallback { position: relative; right: auto; top: auto; transform: none; width: 100%; margin: 0 auto 1rem; }
  .hero--film.no-webgl .hero__content { padding-top: calc(var(--hdr) + 2rem); }
}
