/* =============================================================================
   GN Devices — Electronic Torque Wrenches
   Design system: graphite/steel instrument base + single torque-orange accent.
   Native CSS, zero build step. Locked page theme (light/dark), one accent,
   one radius scale, mono-for-data type signature.

   Fonts: system grotesk + system mono (fast, no external requests, on-brand for
   a precision-instrument voice). To upgrade later, self-host Geist / Space
   Grotesk and swap --font-display / --font-mono below.
   ========================================================================== */

/* ----------------------------------------------------------------- Reset -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* --------------------------------------------------------------- Tokens --- */
:root {
  color-scheme: light;

  --canvas:      #ffffff;   /* page background */
  --surface:     #ffffff;   /* cards, header, inputs */
  --surface-2:   #f6f7f9;   /* nested tiles, alt sections (steel-50) */

  /* Product "stage" behind photos. Light in light mode, graphite in dark mode,
     so transparent product shots (with dark carbon parts) read in both. */
  --stage-a:     #f5f7fa;
  --stage-b:     #e6ebf1;
  --stage-bd:    rgba(20, 24, 31, .10);

  --ink:         #1e2530;   /* headings, strong text */
  --text:        #3f4753;   /* body */
  /* steel-500/400 from the RU scale, nudged one step darker: the source values
     read at 4.4:1 and 2.2:1 on the alt surface, below AA for body text. */
  --muted:       #646d79;   /* secondary text, labels */
  --faint:       #6f7783;   /* tertiary */

  --line:        #e4e7ec;   /* borders (steel-200) */
  --line-strong: #cfd4db;   /* steel-300 */

  /* Accent as two tokens (GitHub Primer model, same structure as the RU site):
       --accent       text, icons, borders (foreground)
       --accent-fill  solid fills that carry white text (background emphasis)
     They coincide in light and diverge in dark. Tone stays torque orange. */
  --accent:      #c6451a;   /* torque orange — deep enough for AA on white */
  --accent-fill: #c6451a;
  --accent-2:    #a83a13;   /* hover / pressed on fills */
  --accent-soft: #fceee6;   /* flat tint behind icons and tiles */
  --accent-fg:   #ffffff;   /* text on accent fill */

  /* Layered shadows — premium depth */
  --shadow-sm: 0 1px 2px rgba(20,24,31,.05), 0 1px 3px rgba(20,24,31,.04);
  --shadow-md: 0 2px 4px rgba(20,24,31,.05), 0 18px 40px -20px rgba(20,24,31,.28);
  --shadow-lg: 0 2px 6px rgba(20,24,31,.06), 0 24px 55px -26px rgba(20,24,31,.34);

  /* Instrument radii: sharp on controls, soft only on large cards. */
  --r-card: 16px;
  --r-btn:  3px;
  --r-tile: 3px;
  --r-pill: 999px;

  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body:    var(--font-display);
  --font-mono:    ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", "Consolas", monospace;

  --maxw: 1200px;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  /* "Graphite" palette (GitHub Primer model): the background is not black,
     depth comes in steps of lightness, and the accent splits into a text tone
     and a fill tone. */
  --canvas:      #161b22;
  --surface:     #1c222b;   /* cards: one step above the page */
  --surface-2:   #1a2028;   /* alt sections */

  --stage-a:     #3a414e;
  --stage-b:     #2a2f39;
  --stage-bd:    rgba(255, 255, 255, .10);

  --ink:         #e6edf3;   /* not pure white: less halo */
  --text:        #c9d1db;
  --muted:       #9aa4b2;   /* 6.9:1 on canvas */
  --faint:       #7d8590;

  --line:        #30363d;
  --line-strong: #444c56;

  --accent:      #f0883e;   /* text, icons, borders — 6.8:1 */
  --accent-fill: #c2410c;   /* fills under white text — 5.2:1 */
  --accent-2:    #9a3412;   /* hover on fills */
  --accent-soft: #3a1d0b;
  --accent-fg:   #ffffff;

  /* On dark, depth comes from a lit top edge plus a dense shadow. */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.03);
  --shadow-md: 0 1px 0 rgba(255,255,255,.05) inset, 0 20px 45px -22px rgba(0,0,0,.7);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.05) inset, 0 26px 60px -28px rgba(0,0,0,.75);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas:#161b22; --surface:#1c222b; --surface-2:#1a2028;
    --stage-a:#3a414e; --stage-b:#2a2f39; --stage-bd:rgba(255,255,255,.10);
    --ink:#e6edf3; --text:#c9d1db; --muted:#9aa4b2; --faint:#7d8590;
    --line:#30363d; --line-strong:#444c56;
    --accent:#f0883e; --accent-fill:#c2410c; --accent-2:#9a3412;
    --accent-soft:#3a1d0b; --accent-fg:#ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.03);
    --shadow-md: 0 1px 0 rgba(255,255,255,.05) inset, 0 20px 45px -22px rgba(0,0,0,.7);
    --shadow-lg: 0 1px 0 rgba(255,255,255,.05) inset, 0 26px 60px -28px rgba(0,0,0,.75);
  }
}

/* ----------------------------------------------------------------- Base --- */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 16px;
}
::selection { background: var(--accent-fill); color: var(--accent-fg); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- Layout ----- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px){ .container { padding-inline: 32px; } }

.section { padding-block: 84px; }
@media (min-width: 768px){ .section { padding-block: 108px; } }
.section--tight { padding-block: 64px; }
.bg-alt { background: var(--surface-2); }

.section-head { max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem);
  margin-top: 14px;
}
.section-head p {
  margin-top: 18px;
  font-size: 1.075rem;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.65;
}
.section-head--center p { margin-inline: auto; }

/* Eyebrow — mono instrument label with a short tick. Used sparingly. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent);
}
.eyebrow--center { justify-content: center; }

/* ------------------------------------------------------------- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--r-btn);
  font-size: .95rem; font-weight: 700; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s cubic-bezier(.16,1,.3,1), background-color .18s, border-color .18s, box-shadow .18s;
}
.btn svg { width: 18px; height: 18px; }
/* Primary — chamfered face, flat fill. No gradient and no coloured glow: those
   are exactly what make a button look templated. */
.btn--primary {
  --ch: 11px;
  background: var(--accent-fill); color: var(--accent-fg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)),
                     calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
.btn--primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
/* clip-path would crop an outline, so the focus ring is drawn inside. */
.btn--primary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #fff, inset 0 1px 0 rgba(255,255,255,.16);
}
/* Secondary — instrument style: tight radius, flat, no drop shadow. */
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--line-strong); transform: translateY(-1px); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* --------------------------------------------------------------- Cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card--hover:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }

/* ------------------------------------------------------------- Chips ------ */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-tile);
  border: 1px solid var(--line); background: var(--surface);
  font-size: .82rem; font-weight: 600; color: var(--text);
}
.chip svg { width: 15px; height: 15px; color: var(--accent); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* --------------------------------------------------------- Icon plate ----- */
/* One icon tile: chamfer plus a flat accent tint. The rounded gradient tile is
   dropped on purpose — it is the single most recognisable templated device. */
.iplate {
  --ch: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none;
  color: var(--accent);
  background: var(--accent-soft);
  border: 0; box-shadow: none;
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)),
                     calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
  transition: transform .25s ease, background-color .25s ease;
}
.iplate svg { width: 22px; height: 22px; }
.iplate--solid { background: var(--accent-fill); color: var(--accent-fg); }

/* ------------------------------------------------------- Tick ruler bg ---- */
.tick-ruler {
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 11px);
}

/* ------------------------------------------------ Instrument utilities ---- */
/* Chamfer — a cut corner, like a part off the machine. An accent device, not a
   rule: buttons, icon tiles, key cards. Ordinary blocks keep their radius. */
.chamfer {
  clip-path: polygon(var(--ch, 12px) 0, 100% 0, 100% calc(100% - var(--ch, 12px)),
                     calc(100% - var(--ch, 12px)) 100%, 0 100%, 0 var(--ch, 12px));
}

/* Hairline rule that fades at both ends */
.hr-fade {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

/* Grain — a faint noise film over the flat surfaces (sits under header/modals) */
.grain-overlay {
  position: fixed; inset: 0; z-index: 45; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}
:root[data-theme="dark"] .grain-overlay { opacity: .06; mix-blend-mode: soft-light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .grain-overlay { opacity: .06; mix-blend-mode: soft-light; }
}

/* ============================================================== HEADER ==== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 1.12rem; color: var(--ink); }
.brand__name b { color: var(--accent); font-weight: 800; }

/* Header brand mark: the circular logoGN icon. Transparent + orange/white, so it
   reads on both themes without a plate. */
.brand__icon { flex: none; width: 38px; height: 38px; object-fit: contain; }
.brand__icon--lg { width: 44px; height: 44px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand__name { font-size: 1.25rem; }

.nav__links { display: none; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 13px; border-radius: var(--r-tile); font-size: .9rem; font-weight: 600; color: var(--muted);
  transition: color .18s, background-color .18s;
}
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-tile); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background-color .18s, border-color .18s;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--line-strong); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .theme-toggle .sun { display:block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display:none; }
}

.nav__cta { display: none; }
.burger {
  width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-tile); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.burger svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .burger { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 68px 0 0; z-index: 49;
  background: var(--canvas); padding: 22px 20px 40px; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 15px 6px; font-size: 1.15rem; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { width: 100%; margin-top: 22px; }

/* ================================================================ HERO ==== */
.hero { position: relative; overflow: hidden; }
.hero__glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__glow::before {
  content: ""; position: absolute; top: -160px; left: -120px; width: 560px; height: 560px;
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%);
  filter: blur(30px);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: 40px; align-items: center;
  padding-block: 56px 60px;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.02fr 0.98fr; gap: 48px; padding-block: 80px 84px; }
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.05rem, 1.1rem + 3.4vw, 3.2rem);
}
.hero h1 .accent { color: var(--accent); }
.hero__lead {
  margin-top: 22px; max-width: 34rem; font-size: 1.14rem; line-height: 1.6; color: var(--muted);
}
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 22px; display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--muted); }
.hero__note svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

.hero__media { position: relative; }
.hero__media img { width: 100%; height: auto; object-fit: contain;
  filter: drop-shadow(0 34px 50px rgba(20,24,31,.30)); }
:root[data-theme="dark"] .hero__media img { filter: drop-shadow(0 34px 54px rgba(0,0,0,.6)); }

/* Stat band */
.statband { border-block: 1px solid var(--line); background: var(--surface); position: relative; }
.statband::before { content:""; position:absolute; inset-inline:0; top:0; height:6px; opacity:.4; }
.statband .grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px){ .statband .grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 26px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
@media (max-width: 899px){ .stat:nth-child(2n){ border-right: 0; } .stat:nth-child(-n+2){ border-bottom: 1px solid var(--line);} }
.stat__v { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem); letter-spacing: -0.03em; }
.stat__v small { font-size: .5em; font-weight: 600; color: var(--muted); margin-left: 4px; }
.stat__l { margin-top: 8px; display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.stat__l .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ================================================= STANDARDS STRIP ======== */
.stdstrip-wrap { border-bottom: 1px solid var(--line); background: var(--surface); }
.stdstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 18px 0; }
.stdstrip__label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stdstrip__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px){ .stdstrip__list { margin-left: auto; } }
.stdstrip__list li { font-family: var(--font-mono); font-size: .76rem; font-weight: 600; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px; white-space: nowrap; }

/* ============================================================ PLATFORM ==== */
.flow { display: grid; gap: 16px; margin-top: 52px; }
@media (min-width: 900px){ .flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; } }
.flow__node { padding: 28px; }
.flow__node .top { display: flex; align-items: center; justify-content: space-between; }
.flow__node .step { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.flow__node h3 { margin-top: 20px; font-size: 1.25rem; font-weight: 700; }
.flow__node ul { margin-top: 16px; display: grid; gap: 11px; list-style: none; }
.flow__node li { display: flex; gap: 10px; font-size: .95rem; color: var(--text); }
.flow__node li svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
.flow__arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.flow__arrow svg { width: 26px; height: 26px; }
@media (max-width: 899px){ .flow__arrow { transform: rotate(90deg); } }
.flow__caps { margin-top: 22px; }

/* ========================================================= CONFIGURATOR === */
.shots { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 640px){ .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .shots { grid-template-columns: repeat(3, 1fr); } }
.shot { overflow: hidden; cursor: zoom-in; text-align: left; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.shot__img { display: block; position: relative; aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.shot__b { display: block; }
.shot__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top; transition: transform .3s; }
.shot:hover .shot__img img { transform: scale(1.03); }
.shot__b { padding: 18px 20px; }
.shot__b h3 { font-size: 1.02rem; font-weight: 700; }
.shot__b p { margin-top: 6px; font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* ============================================================= DEMO VIDEO = */
.videoshow { position: relative; max-width: 980px; margin: 44px auto 0; }
.videoshow__glow { position: absolute; inset: -20px; z-index: 0; pointer-events: none; border-radius: 40px;
  background: radial-gradient(55% 60% at 50% 42%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%); }
.videoshow__frame { position: relative; z-index: 1; padding: 8px; border-radius: 22px;
  background: linear-gradient(160deg, #232a35, #14181f); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 44px 90px -34px rgba(0,0,0,.6); }
.videoshow__video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 15px; background: #000; object-fit: cover; }

/* ========================================================== CAPABILITIES == */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 720px){ .bento { grid-template-columns: repeat(6, 1fr); } }
.b { padding: 28px; display: flex; flex-direction: column; }
.b .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.b .metric { font-family: var(--font-mono); font-weight: 700; color: var(--muted); font-size: 1rem; }
.b h3 { font-size: 1.15rem; font-weight: 700; }
.b p { margin-top: 9px; font-size: .95rem; color: var(--text); line-height: 1.6; }
@media (min-width: 720px){
  .b--wide { grid-column: span 3; }
  .b--third { grid-column: span 2; }
  .b--half { grid-column: span 3; }
}
/* feature cell with accent fill */
.b--accent { background: linear-gradient(155deg, var(--accent-fill), var(--accent-2)); border-color: transparent; color: var(--accent-fg); }
.b--accent h3, .b--accent .metric { color: var(--accent-fg); }
.b--accent p { color: color-mix(in srgb, var(--accent-fg) 86%, transparent); }
.b--accent .iplate { background: rgba(255,255,255,.16); color: var(--accent-fg); border-color: rgba(255,255,255,.22); }
/* feature cell with image */
.b--media { padding: 0; overflow: hidden; position: relative; min-height: 240px;
  background: linear-gradient(160deg, var(--stage-a), var(--stage-b)); }
.b--media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b--media .cap { position: relative; margin-top: auto; padding: 20px 24px; background: linear-gradient(to top, rgba(15,18,23,.9), transparent); color: #fff; z-index: 1; width: 100%; }
.b--media .cap h3 { color: #fff; font-size: 1.1rem; }
.b--media .cap p { color: rgba(255,255,255,.82); }
/* patterned cell */
.b--pattern { background:
  radial-gradient(color-mix(in srgb, var(--accent) 30%, transparent) 1.1px, transparent 1.2px) 0 0 / 20px 20px,
  var(--surface); }

/* ============================================================== DEVICE ==== */
/* Inlined SVG (transparent outer bg, currentColor labels) on a theme-aware stage. */
.screens-single { max-width: 940px; margin: 8px auto 0; border-radius: 18px; overflow: hidden;
  padding: 22px; color: var(--muted);
  background: linear-gradient(160deg, var(--stage-a), var(--stage-b));
  border: 1px solid var(--stage-bd); box-shadow: var(--shadow-lg); }
.screens-single svg, .screens-single img { display: block; width: 100%; height: auto; }

/* =============================================================== RANGE ==== */
/* Selector panel: the target value on the left, the full log scale on the right. */
.selector { padding: 22px; margin-top: 10px; }
@media (min-width: 640px){ .selector { padding: 26px 30px; } }
.selector__row { display: grid; gap: 22px; }
@media (min-width: 1024px){ .selector__row { grid-template-columns: auto 1fr; align-items: end; gap: 44px; } }
.selector__lbl { font-family: var(--font-mono); font-size: .95rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.selector__val .value { margin-top: 4px; display: flex; align-items: baseline; gap: 9px; }
.selector__val input {
  width: 4.5ch; border: 0; background: transparent; padding: 0; color: var(--ink); caret-color: var(--accent);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 8vw, 3.8rem); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield; line-height: 1;
}
.selector__val input::-webkit-outer-spin-button,
.selector__val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.selector__val input:focus { outline: none; }
.selector__val .unit { font-size: 1.7rem; color: var(--muted); font-weight: 700; }
.selector__scale { min-width: 0; }
.selector__meta { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.selector__meta-r { display: none; }
@media (min-width: 640px){ .selector__meta-r { display: inline; } }
.slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 7px; margin-top: 0;
  border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, var(--accent) 0 var(--sfill, 50%), var(--surface-2) var(--sfill, 50%) 100%);
}
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); box-shadow: var(--shadow-md); cursor: pointer; transition: transform .12s ease; }
.slider::-webkit-slider-thumb:hover, .slider:active::-webkit-slider-thumb { transform: scale(1.12); }
.slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); box-shadow: var(--shadow-md); cursor: pointer; }
/* Ruler under the slider. A 10px side inset keeps the divisions aligned with the
   centre of the thumb at both extremes. */
.ruler { position: relative; height: 32px; margin: 9px 10px 0; user-select: none; }
.ruler__base { position: absolute; inset-inline: 0; top: 0; height: 1px; background: var(--line); }
.ruler__t { position: absolute; top: 0; width: 1px; height: 6px; background: var(--line-strong); }
.ruler__M { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.ruler__M i { width: 1px; height: 12px; background: var(--faint); }
/* Ruler labels stay a touch smaller on narrow screens: the 100 and 200 marks sit
   closest together on the log scale and must not touch. */
.ruler__M b { margin-top: 4px; font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 640px){ .ruler__M b { font-size: .88rem; } }
.ruler__cur { position: absolute; top: 0; width: 2px; height: 14px; background: var(--accent); transform: translateX(-50%); transition: left .1s linear; }

/* Match results */
.matches-head { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; }
.matches-head__l { font-size: 1.14rem; color: var(--muted); }
.matches-head__l b { color: var(--ink); font-weight: 700; }
.matches-head__l #matchCount { color: var(--accent); }
.matches-head__r { font-size: .95rem; color: var(--muted); }
.matches { margin-top: 16px; display: grid; gap: 14px; }
@media (min-width: 700px){ .matches { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px){ .matches { grid-template-columns: repeat(3, 1fr); } }
.match { padding: 18px; display: flex; flex-direction: column; }
.match--best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.match__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.match__badge { font-family: var(--font-mono); font-size: .88rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-fg); background: var(--accent-fill); padding: 5px 12px; border-radius: var(--r-tile); }
.match__alt, .match__series { font-family: var(--font-mono); font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.match__id { margin-top: 15px; display: flex; align-items: center; gap: 14px; }
.match__ph { flex: none; width: 104px; height: 68px; border: 1px solid var(--line); border-radius: var(--r-tile); overflow: hidden;
  background: linear-gradient(160deg, var(--stage-a), var(--stage-b)); }
.match__ph img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.match__name { min-width: 0; display: flex; flex-direction: column; }
.match__name b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.match__name span { font-family: var(--font-mono); font-size: 1rem; color: var(--muted); }
.match__load { margin-top: 16px; }
.match__loadl { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--font-mono); font-size: .92rem; color: var(--muted); }
.match__loadl .pct { font-weight: 700; color: var(--text); }
.match__loadl .pct.hot { color: var(--accent); }
.match__desc { margin-top: 13px; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.match-empty { padding: 26px; text-align: center; }
.match-empty p { color: var(--muted); font-size: 1.05rem; }
.match-empty a { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--accent); }
.match-empty a:hover { text-decoration: underline; }

/* Flat instrument tiles for specifications */
.specgrid { margin-top: 14px; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px){ .specgrid { grid-template-columns: repeat(3, 1fr); } }
.specgrid--2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px){ .specgrid--2 { grid-template-columns: repeat(2, 1fr); } }
.sp { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-tile); padding: 10px 13px; }
.sp__l { display: block; font-family: var(--font-mono); font-size: .87rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sp__v { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--ink); }

/* Catalogue header */
.catalogue { margin-top: 58px; }
.catalogue__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.catalogue__head h3 { font-size: clamp(1.5rem, 1rem + 2vw, 2.1rem); }
.catalogue__head p { margin-top: 6px; color: var(--muted); font-size: 1.06rem; }
.catalogue__head p b { color: var(--ink); }
.catalogue__actions { display: flex; align-items: center; gap: 10px; font-size: .96rem; color: var(--faint); }
.catalogue__actions button { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; color: var(--muted); transition: color .18s; }
.catalogue__actions button:hover { color: var(--accent); }

/* Series cards: large photo, coverage on the shared scale, specs, model table. */
.series-list { display: grid; gap: 14px; }
.series { overflow: hidden; padding: 0; }
.series.match { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.series__top { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px){ .series__top { grid-template-columns: minmax(0, 280px) 1fr; } }
.series__ph { position: relative; min-height: 150px; border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, var(--stage-a), var(--stage-b)); }
@media (min-width: 760px){ .series__ph { border-bottom: 0; border-right: 1px solid var(--line); } }
.series__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.series__tag { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: .88rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-tile);
  background: var(--ink); color: var(--canvas); }
.series__b { padding: 20px; }
@media (min-width: 640px){ .series__b { padding: 22px 24px; } }
.series__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
.series__h h4 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.series__h .rng { font-family: var(--font-mono); font-weight: 700; font-size: 1.28rem; color: var(--accent); }
.series .desc { margin-top: 7px; font-size: 1.06rem; line-height: 1.5; color: var(--muted); }
.cover { margin-top: 16px; }
.cover__scale { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--font-mono); font-size: .9rem; color: var(--muted); }
.cover__scale span:nth-child(2) { letter-spacing: .1em; text-transform: uppercase; }

.rangebar .track { position: relative; height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.rangebar .fill { position: absolute; top: 0; height: 100%; border-radius: 999px; background: var(--line-strong); transition: background-color .25s; }
.rangebar .fill.in { background: var(--accent); }
.rangebar .marker { position: absolute; top: 50%; width: 13px; height: 13px; transform: translate(-50%,-50%); border-radius: 50%;
  background: var(--ink); border: 2px solid var(--surface); box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .2s, left .1s linear; }
.series.match .rangebar .marker, .match .rangebar .marker { opacity: 1; }

.series__toggle { margin-top: 15px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0;
  cursor: pointer; font-size: 1.02rem; font-weight: 700; color: var(--accent); }
.series__toggle:hover .lbl { text-decoration: underline; }
.series__toggle .chev { width: 18px; height: 18px; transition: transform .25s; }
.series.open .series__toggle .chev { transform: rotate(180deg); }
.series__models { max-height: 0; overflow: hidden; transition: max-height .3s ease; border-top: 1px solid transparent; }
.series.open .series__models { border-top-color: var(--line); overflow-x: auto; }

table.models { width: 100%; min-width: 500px; border-collapse: collapse; font-size: 1.02rem; }
table.models th { text-align: left; padding: 12px 15px; background: var(--surface-2); font-family: var(--font-mono);
  font-size: .88rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
table.models td { padding: 12px 15px; border-top: 1px solid var(--line); color: var(--text); white-space: nowrap; }
table.models td.m { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
table.models tbody tr:hover { background: var(--surface-2); }

/* ============================================================ COMPARISON == */
.tablewrap { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.tablescroll { overflow-x: auto; }
table.gen { width: 100%; min-width: 720px; border-collapse: collapse; }
table.gen th, table.gen td { text-align: left; padding: 16px 20px; vertical-align: top; }
table.gen thead th { border-bottom: 1px solid var(--line); }
table.gen .colname { font-size: 1rem; font-weight: 700; color: var(--text); }
table.gen .colsub { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
table.gen th.hl, table.gen td.hl { background: var(--accent-soft); border-inline: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
table.gen .hl .colname { color: var(--ink); }
table.gen .hl .colsub { color: var(--accent); }
table.gen tbody tr { border-bottom: 1px solid var(--line); }
table.gen tbody tr:last-child { border-bottom: 0; }
table.gen .rlabel { font-size: .85rem; color: var(--muted); }
table.gen td .cell { font-size: .9rem; color: var(--text); display: inline-flex; gap: 8px; }
table.gen td.hl .cell { color: var(--ink); font-weight: 600; }
table.gen .cell svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }
table.gen .cell.neg { color: var(--muted); }
table.gen .cell.neg svg { color: var(--muted); }

/* =============================================================== PROOF ==== */
.proof { display: grid; gap: 30px; align-items: start; }
@media (min-width: 880px){ .proof { grid-template-columns: 5fr 7fr; gap: 48px; } }
.proof__intro h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 2.9rem); }
.proof__intro p { margin-top: 18px; color: var(--muted); font-size: 1.075rem; line-height: 1.65; max-width: 46ch; }
.proof__intro .btn { margin-top: 26px; }
.proof__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px){ .proof__list { grid-template-columns: 1fr 1fr; } }
.proof__list li { display: flex; gap: 15px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.proof__list .iplate { flex: none; width: 42px; height: 42px; }
.proof__list .iplate svg { width: 20px; height: 20px; }
.proof__list h3 { font-size: 1.02rem; font-weight: 700; }
.proof__list p { margin-top: 6px; font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* ==================================== SOVEREIGN INFRASTRUCTURE ============ */
/* Theme-aware "vault" panel: light in light mode, graphite in dark mode. */
.sovereign { position: relative; overflow: hidden; border-radius: 24px; padding: 40px 24px;
  background: linear-gradient(155deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
@media (min-width: 760px){ .sovereign { padding: 52px 48px; } }
.sovereign::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(58% 60% at 88% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
.sovereign > * { position: relative; z-index: 1; }
.sovereign__head { max-width: 720px; }
.sovereign__badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-size: .84rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.sovereign__badge svg { width: 16px; height: 16px; color: var(--accent); }
.sovereign__head h2 { color: var(--ink); font-size: clamp(1.8rem, 1.2rem + 3vw, 2.7rem); }
.sovereign__head p { margin-top: 18px; color: var(--text); font-size: 1.05rem; line-height: 1.65; max-width: 62ch; }
.sovereign__grid { margin-top: 38px; display: grid; gap: 20px 34px; grid-template-columns: 1fr; }
@media (min-width: 760px){ .sovereign__grid { grid-template-columns: 1fr 1fr; } }
.sovereign__item .iplate { margin-bottom: 14px; }
.sovereign__item h3 { color: var(--ink); font-size: 1.14rem; font-weight: 700; }
.sovereign__item p { margin-top: 8px; color: var(--text); font-size: .97rem; line-height: 1.6; }
.sovereign__closer { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-size: 1.12rem; line-height: 1.5;
  color: var(--ink); max-width: 60ch; }

/* =========================================================== PARTNERSHIP == */
.models { margin-top: 44px; border-top: 1px solid var(--line); }
.model {
  display: grid; gap: 18px 28px; padding: 34px 0; border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 800px){ .model { grid-template-columns: 64px 1fr 1.1fr; align-items: start; } }
.model__num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.model__h h3 { font-size: 1.4rem; font-weight: 700; }
.model__h .who { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.model__h .who .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.model__body p { color: var(--text); line-height: 1.65; }
.model__body ul { margin-top: 14px; display: grid; gap: 9px; list-style: none; }
.model__body li { display: flex; gap: 10px; font-size: .93rem; color: var(--muted); }
.model__body li svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 3px; }

/* =============================================================== SPECS ==== */
.specs { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 768px){ .specs { grid-template-columns: repeat(2, 1fr); } }
.specgroup { overflow: hidden; }
.specgroup__h { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.specgroup__h .iplate { width: 38px; height: 38px; }
.specgroup__h .iplate svg { width: 19px; height: 19px; }
.specgroup__h h3 { font-size: 1.02rem; font-weight: 700; }
.specgroup dl { margin: 0; }
.specgroup .r { display: grid; grid-template-columns: 40% 60%; gap: 14px; padding: 13px 22px; border-bottom: 1px solid var(--line); }
.specgroup .r:last-child { border-bottom: 0; }
.specgroup dt { font-size: .85rem; color: var(--muted); }
.specgroup dd { margin: 0; font-size: .88rem; color: var(--ink); font-weight: 600; }
.specgroup dd.mono { font-weight: 700; }

/* ================================================================ FAQ ===== */
.faq { max-width: 820px; margin: 8px auto 0; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 1.08rem; font-weight: 700; color: var(--ink); font-family: var(--font-display); letter-spacing: -0.02em;
}
.qa__q .ico { flex: none; width: 22px; height: 22px; position: relative; }
.qa__q .ico::before, .qa__q .ico::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .25s; }
.qa__q .ico::before { top: 10px; left: 2px; right: 2px; height: 2px; }
.qa__q .ico::after { left: 10px; top: 2px; bottom: 2px; width: 2px; }
.qa.open .qa__q .ico::after { transform: scaleY(0); }
.qa__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.qa__a .inner { padding: 0 4px 24px; color: var(--text); line-height: 1.7; font-size: .98rem; max-width: 68ch; }
.qa__a .inner a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================= CTA BAND === */
.ctaband { position: relative; overflow: hidden; border-radius: 24px; padding: 64px 32px; text-align: center;
  background: linear-gradient(155deg, #1b2029, #12151b); border: 1px solid #262c36; }
:root[data-theme="dark"] .ctaband { background: linear-gradient(155deg, #1f2530, #14181f); border-color: #2f3540; }
.ctaband::before { content:""; position:absolute; inset:0; opacity:.5;
  background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%); }
.ctaband > * { position: relative; z-index: 1; }
.ctaband h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 3vw, 2.8rem); }
.ctaband p { margin: 18px auto 0; max-width: 52ch; color: rgba(255,255,255,.72); font-size: 1.05rem; }
.ctaband .btn--primary { margin-top: 30px; }
.ctaband .demoline { margin-top: 22px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; color: rgba(255,255,255,.6); }
.ctaband .demoline b { color: var(--accent); }

/* ============================================================== FOOTER ==== */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; gap: 36px; padding-block: 56px; grid-template-columns: 1fr; }
@media (min-width: 760px){ .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 36ch; line-height: 1.65; }
.footer-col h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: .92rem; padding: 6px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-bottom, .footer-bottom a { font-size: .82rem; color: var(--faint); }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================= LIGHTBOX === */
.lightbox { position: fixed; inset: 0; z-index: 80; display: none; flex-direction: column;
  background: rgba(10,12,16,.92); backdrop-filter: blur(6px); }
.lightbox.open { display: flex; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; color: rgba(255,255,255,.8); }
.lightbox__bar .count { font-family: var(--font-mono); font-size: .85rem; }
.lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 12px 4px; position: relative; }
.lightbox__stage img { max-width: min(1000px, 92vw); max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__cap { padding: 16px 20px 26px; text-align: center; }
.lightbox__cap h4 { color: #fff; font-size: 1.05rem; }
.lightbox__cap p { color: rgba(255,255,255,.68); font-size: .88rem; margin-top: 5px; }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.5); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-btn:hover { background: rgba(0,0,0,.7); }
.lb-btn svg { width: 22px; height: 22px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__nav.prev { left: 14px; }
.lightbox__nav.next { right: 14px; }

/* ============================================================= REVEALS ==== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-delay="1"]{ transition-delay: .06s; }
[data-delay="2"]{ transition-delay: .12s; }
[data-delay="3"]{ transition-delay: .18s; }
[data-delay="4"]{ transition-delay: .24s; }

body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
