/* Binary Academy website — design tokens v2 (proposed contract, not an implemented site). */
:root {
  color-scheme: light;

  /* Colour */
  --color-navy: #1B365D;
  --color-blue: #005A9C;
  --color-blue-hover: #004A82;
  --color-sky: #60C1E5;
  --color-ice: #A0E0EF;
  --color-paper: #F5F8FB;
  --color-white: #FFFFFF;
  --color-board: #0F2440;      /* smartboard bezel / object only */
  --color-coral: #E5484D;      /* code errors + battery sliver only */
  --color-wa: #25D366;         /* WhatsApp actions only */
  --color-wa-hover: #1EBE5A;
  --color-wa-ink: #052E1C;     /* text + glyph on WhatsApp green (7.5:1) */
  --color-wa-soft: #E9FBEF;
  --color-wa-deep: #0E6B36;    /* green text on white/soft (6.1:1) */
  --color-marker: #FFD23F;     /* highlighter, promo badge, day chip; never text */
  --color-marker-soft: #FFF3C4;
  --color-text: #1B365D;
  --color-muted: #596B80;
  --color-border: #DCE5EF;
  --color-focus: #005A9C;
  --color-bit-on: rgb(96 193 229 / 30%);

  /* Dark surfaces (v3): hero, ICT lab, FAQ terminal, final CTA + footer */
  --night: #0A1A33;
  --night-2: #0F2440;
  --night-line: rgb(160 224 239 / 18%);
  --on-night: #EAF2FA;
  --on-night-muted: #A9BCD3;

  /* Families */
  --font-display-en: "Poppins", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-bn: "Anek Bangla", "Noto Sans Bengali", system-ui, sans-serif;
  /* Latin glyphs inside Bangla lines render in Geist via the stack order. */
  --font-body: var(--font-display-en);
  --font-heading: var(--font-display-en);

  /* Type scale — English */
  --fs-display: clamp(3.25rem, 1.6rem + 6.6vw, 7.5rem);    /* 52 → 120 */
  --fs-h2: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);          /* 40 → 72 */
  --fs-hook: clamp(2.125rem, 1.3rem + 3.3vw, 4.25rem);     /* 34 → 68 */
  --fs-final: clamp(2.75rem, 1.4rem + 5.4vw, 5.5rem);      /* 44 → 88 */
  --fs-year: clamp(4.5rem, 3rem + 4vw, 6.5rem);            /* 72 → 104 */
  --fs-stamp: clamp(2.25rem, 1.6rem + 2.4vw, 4rem);        /* 36 → 64 */
  --fs-admit-year: clamp(5.5rem, 3.2rem + 6.4vw, 8.75rem); /* 88 → 140 */
  --fs-admit-value: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); /* 22 → 28 */
  --fs-omr-year: clamp(1.75rem, 1.5rem + 0.7vw, 2.25rem);  /* 28 → 36 */
  --omr-bubble: 3rem;
  --fs-h3: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);      /* 20 → 26 */
  --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);     /* 18 → 22 */
  --fs-body: 1.125rem;                                     /* 18 */
  --fs-small: 0.9375rem;                                   /* 15 */
  --fs-label: 0.8125rem;                                   /* 13 mono */
  --fs-button: 1.125rem;

  --lh-display: 0.95;
  --lh-h2: 1.0;
  --lh-body: 1.65;
  --track-display: -0.035em;
  --track-h2: -0.035em;
  --track-label: 0.08em;
  --weight-display: 700;
  --weight-h2: 650;

  /* Layout */
  --container-max: 75rem;          /* 1200 */
  --stage-max: 77.5rem;            /* 1240 */
  --page-gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section-space: clamp(3.5rem, 1rem + 8vw, 8.5rem);   /* 56 → 136 */
  --gap-grid: 1.5rem;
  --header-height: 4rem;
  --header-top: 0.875rem;
  --anchor-offset: 5.5rem;

  /* Space scale */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-14: 3.5rem; --space-16: 4rem; --space-18: 4.5rem;
  --space-24: 6rem; --space-32: 8rem;

  /* Shape */
  --radius-button: 0.75rem;
  --radius-pill: 999px;
  --radius-card: 1rem;
  --radius-tile: 1.5rem;
  --radius-stage: 1.75rem;
  --radius-board: 1.125rem;
  --button-height: 3.25rem;
  --control-height-sm: 2.5rem;
  --tap-min-size: 2.75rem;
  --border-subtle: 1px solid var(--color-border);
  --border-ink: 1.5px solid var(--color-navy);
  --shadow-float: 0 18px 50px rgb(27 54 93 / 12%), 0 2px 6px rgb(27 54 93 / 6%);
  --shadow-header: 0 6px 24px rgb(27 54 93 / 8%);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 140ms;
  --dur-base: 260ms;
  --dur-reveal: 320ms;
  --dur-draw: 600ms;
  --rise: 16px;
  --anchor-behavior: smooth;
}

:root:lang(bn) {
  --font-body: "Poppins", var(--font-bn);
  --font-heading: "Poppins", var(--font-bn);
  --fs-display: clamp(2.875rem, 1.5rem + 5.8vw, 6.5rem);  /* 46 → 104 */
  --fs-h2: clamp(2.25rem, 1.45rem + 3.2vw, 4rem);         /* 36 → 64 */
  --fs-hook: clamp(2rem, 1.3rem + 2.9vw, 3.75rem);        /* 32 → 60 */
  --fs-final: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem);     /* 40 → 76 */
  --fs-body: 1.1875rem;                                   /* 19 */
  --fs-small: 1rem;
  --fs-label: 0.875rem;
  --fs-button: 1.1875rem;
  --lh-display: 1.12;
  --lh-h2: 1.18;
  --lh-body: 1.8;
  --track-display: 0;
  --track-h2: 0;
  --track-label: 0;
  --weight-display: 800;
  --weight-h2: 700;
}

@media (max-width: 767px) {
  :root {
    --header-height: 3.75rem;
    --header-top: 0;
    --anchor-offset: 4.75rem;
    --page-gutter: 1.25rem;
    --section-space: 3.5rem;
  }
}
@media (max-width: 359px) { :root { --page-gutter: 1rem; } }

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-reveal: 0ms;
    --dur-draw: 0ms;
    --rise: 0px;
    --anchor-behavior: auto;
  }
}
/* Sky and Ice are accents; never small text on white. Coral is for code errors only.
   WhatsApp green is only for actions that open WhatsApp; Marker Yellow is a fill, never a text colour.
   Declaring tokens does not implement focus rings, anchor offsets or reduced motion. */

/* Binary Academy landing page. Tokens are prepended at build time from design/tokens.css. */

@font-face { font-family: "Poppins"; src: url(../fonts/Poppins-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/Poppins-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/Poppins-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/Poppins-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/GeistMono-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Anek Bangla"; src: url(../fonts/AnekBangla-Variable.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: var(--anchor-behavior); scroll-padding-top: var(--anchor-offset); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--color-white); color: var(--color-text); font: 400 var(--fs-body)/var(--lh-body) var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, figure, dl, dd, ol { margin: 0; }
a { color: var(--color-blue); text-underline-offset: 4px; text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
code, pre { font-family: var(--font-mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--color-navy); color: #fff; padding: 12px 18px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: calc(var(--container-max) + 2 * var(--page-gutter)); margin-inline: auto; padding-inline: var(--page-gutter); }
.wrap.narrow { max-width: calc(62rem + 2 * var(--page-gutter)); }
.sec { padding-block: var(--section-space); }
.sec-paper { background: var(--color-paper); }
.sec-head { margin-bottom: clamp(2.25rem, 5vw, 4rem); }
.label { font: 500 var(--fs-label)/1.2 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--color-blue); margin-bottom: 1.125rem; }
h2 { font: var(--weight-h2) var(--fs-h2)/var(--lh-h2) var(--font-heading); letter-spacing: var(--track-h2); text-wrap: balance; max-width: 17em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 44ch; margin-top: 1.25rem; }
.note { font-size: var(--fs-small); color: var(--color-muted); margin-top: 1.5rem; max-width: 62ch; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--button-height); padding: 0 1.5rem; border: 1.5px solid transparent; border-radius: var(--radius-button); font: 600 var(--fs-button)/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
.btn:active { transform: translateY(1px); }
.btn.p { background: var(--color-blue); color: #fff; }
.btn.p:hover { background: var(--color-blue-hover); }
.btn.s { background: #fff; color: var(--color-navy); border-color: var(--color-navy); }
.btn.s:hover { background: var(--color-paper); }
.btn.wa { background: var(--color-wa); color: var(--color-wa-ink); }
.btn.wa:hover { background: var(--color-wa-hover); }
.btn .g { width: 22px; height: 22px; flex: none; }
.btn .arr { display: inline-block; transition: transform var(--dur-fast); }
.btn:hover .arr, .promo:hover .arr { transform: translateX(3px); }
.btn.sm { height: var(--control-height-sm); padding: 0 1rem; font-size: 0.9375rem; }
.btn.sm .g { width: 20px; height: 20px; }
.btn.lg { height: 3.25rem; }
.btn.xl { height: 4rem; padding: 0 2rem; font-size: 1.25rem; }
.btn.xl .g { width: 26px; height: 26px; }
.btn.chip { height: 3rem; padding: 0 1.25rem; }
.btn.s .pinic { width: 22px; height: 22px; flex: none; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; padding: var(--header-top) var(--page-gutter) 0; pointer-events: none; }
.pill { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 1.5rem; max-width: 70rem; height: var(--header-height); margin-inline: auto; padding: 0 0.625rem 0 1.5rem; background: #fff; border: 1px solid var(--color-border); border-radius: 999px; transition: box-shadow var(--dur-base); }
.site-header.scrolled .pill { box-shadow: var(--shadow-header); }
.brand { display: block; flex: none; }
.brand img { width: 9.75rem; height: auto; }
.nav { display: flex; gap: 1.75rem; margin-inline: auto; font-size: 1rem; }
.nav a, .menu a:not(.btn), .foot-nav a { color: var(--color-navy); text-decoration: none; font-weight: 500; }
.nav a:hover, .foot-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav a[aria-current="true"]::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--color-sky); margin-right: 8px; vertical-align: 2px; }
.head-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang { display: flex; background: var(--color-paper); border-radius: 999px; padding: 3px; }
.lang button { min-width: 2.75rem; height: 2.375rem; padding: 0 0.75rem; border: 0; border-radius: 999px; background: none; color: var(--color-muted); font: 600 0.875rem/1 var(--font-display-en); cursor: pointer; }
.lang button[lang="bn"] { font-family: var(--font-bn); font-size: 0.9375rem; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--color-navy); box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
.lang button[aria-pressed="true"]::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--color-sky); margin-right: 6px; vertical-align: 2px; }
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--color-paper); cursor: pointer; place-items: center; }
.menu-btn .bars, .menu-btn .bars::before { display: block; width: 18px; height: 2px; background: var(--color-navy); border-radius: 2px; position: relative; }
.menu-btn .bars::before { content: ""; position: absolute; top: 6px; }
.menu-btn .bars { top: -3px; }
.menu { pointer-events: auto; position: absolute; left: var(--page-gutter); right: var(--page-gutter); top: calc(var(--header-top) + var(--header-height) + 0.5rem); max-width: 70rem; margin-inline: auto; display: grid; gap: 0.5rem; padding: 1rem; background: #fff; border: 1px solid var(--color-border); border-radius: 1.25rem; box-shadow: var(--shadow-float); }
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a { display: block; padding: 0.875rem 0.5rem; font-size: 1.125rem; border-bottom: 1px dashed var(--color-border); }
.menu .btn { margin-top: 0.5rem; }

/* ---------- hero */
.hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.promo { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; padding: 0.375rem 1rem 0.375rem 0.375rem; border: 1px solid var(--color-border); border-radius: 999px; background: #fff; color: var(--color-navy); text-decoration: none; font-size: 1rem; animation: rise 0.5s var(--ease-out) backwards; }
.promo:not(:has(.badge)) { padding-left: 1rem; }
.promo:hover { border-color: var(--color-navy); }
.promo .badge { background: var(--color-marker); color: var(--color-navy); font: 600 0.75rem/1 var(--font-mono); letter-spacing: 0.06em; padding: 0.4375rem 0.625rem; border-radius: 999px; }
.promo .arr { display: inline-block; transition: transform var(--dur-fast); }
.display { font: var(--weight-display) var(--fs-display)/var(--lh-display) var(--font-heading); letter-spacing: var(--track-display); margin: 1.75rem 0 1.5rem; text-wrap: balance; animation: rise 0.55s 0.08s var(--ease-out) backwards; }
.display .l1, .display .l2 { display: block; }
.hl { position: relative; display: inline-block; z-index: 0; }
.hl::before { content: ""; position: absolute; inset: 44% -5% 0 -5%; z-index: -1; background: url(../img/highlighter-swipe.svg) center / 100% 100% no-repeat; animation: swipe 0.6s 0.55s var(--ease-out) both; }
html.ready .display .hl::before { animation: none; }
.sub { font-size: var(--fs-lead); line-height: 1.55; max-width: 44ch; animation: rise 0.55s 0.16s var(--ease-out) backwards; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; animation: rise 0.55s 0.24s var(--ease-out) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(var(--rise)); } to { opacity: 1; transform: none; } }
@keyframes swipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.stage-wrap { padding-bottom: clamp(3rem, 6vw, 6rem); position: relative; z-index: 0; --color-navy: #1B365D; --color-text: #1B365D; --color-muted: #596B80; --color-border: #DCE5EF; --color-paper: #F5F8FB; color: #1B365D; }
.stage { position: relative; max-width: 75rem; margin-inline: auto; animation: rise 0.7s 0.3s var(--ease-out) both; }
.photo { width: 100%; aspect-ratio: 1200 / 640; object-fit: cover; object-position: 62% 40%; border: 1px solid var(--color-border); border-radius: var(--radius-stage); background: var(--color-paper); }
.cap { position: absolute; right: 1rem; bottom: 0.875rem; background: #fff; padding: 0.375rem 0.625rem; border-radius: 8px; font-size: 0.8125rem; color: var(--color-muted); }
.stage-wrap::before { content: ""; position: absolute; z-index: -1; left: 50%; width: 100vw; top: 52%; bottom: 0; transform: translateX(-50%); background: #fff; }
.stk img { width: 100%; height: auto; }
.stk { display: block; position: absolute; pointer-events: none; filter: drop-shadow(0 8px 14px rgb(0 0 0 / 12%)); transform: translate3d(0, var(--py, 0px), 0) rotate(var(--rot, 0deg)); }
.stk.semi { --rot: 8deg; width: 6rem; right: -1.625rem; top: -2.375rem; }
.stk.duck { --rot: -4deg; width: 7.375rem; right: -2.75rem; top: 46%; }
.bits { position: absolute; left: -1.75rem; bottom: -3.5rem; width: min(30rem, calc(100% - 1.5rem)); padding: 1.25rem 1.375rem 1.125rem; background: #fff; border: 1px solid var(--color-border); border-radius: 1.25rem; box-shadow: var(--shadow-float); text-align: left; }
.bits-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.875rem; }
.bits-title { font-weight: 600; font-size: 1.0625rem; }
.seg { display: flex; padding: 3px; background: var(--color-board); border-radius: 999px; }
.seg button { min-width: 3.5rem; height: 2.25rem; padding: 0 0.75rem; border: 0; border-radius: 999px; background: none; color: #C5D2E0; font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--color-navy); }
.bit-row, .bit-pv { display: flex; gap: 4px; }
.bit { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; height: 4rem; padding: 0; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; color: var(--color-navy); cursor: pointer; transition: background var(--dur-base), border-color var(--dur-base); }
.bit .d { font: 500 1.5rem/1 var(--font-mono); }
.bit .pv { font: 400 0.625rem/1 var(--font-mono); color: var(--color-muted); }
.bit[aria-pressed="true"] { background: var(--color-bit-on); border-color: var(--color-navy); }
.bit.flip { animation: flip 0.18s var(--ease-spring); }
@keyframes flip { 0% { transform: rotateX(80deg); } 100% { transform: none; } }
.bit-pv { margin-top: 5px; }
.bit-pv span { flex: 1; text-align: center; font: 400 0.625rem/1 var(--font-mono); color: var(--color-muted); }
.bit-out { margin-top: 0.75rem; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; min-height: 1.45em; }
.bit-out a { color: var(--color-blue); }
.tap-hint { position: absolute; right: -7.25rem; top: -3.25rem; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 0.9375rem; color: var(--color-muted); pointer-events: none; transition: opacity var(--dur-base); }
.tap-hint img { width: 5.625rem; transform: scaleX(-1) rotate(8deg); }
.tap-hint.gone { opacity: 0; }

/* ---------- hook */
.hook { padding-top: clamp(4.5rem, 9vw, 9.5rem); }
.hook .big { font: 600 var(--fs-hook)/1.3 var(--font-heading); letter-spacing: -0.02em; max-width: 65rem; text-wrap: balance; }
:root:lang(bn) .hook .big { letter-spacing: 0; line-height: 1.4; }
.hook .inl { display: inline-block; height: 1.15em; width: auto; vertical-align: -0.28em; margin-inline: 0.05em; filter: drop-shadow(0 4px 8px rgb(0 0 0 / 10%)); }
.hook .follow { margin-top: 1.25rem; font-size: var(--fs-lead); color: var(--color-muted); }

/* ---------- board */
.board-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.rail { position: relative; display: flex; flex-direction: column; }
.rail::before { content: ""; position: absolute; left: 7px; top: 1.5rem; bottom: 1.5rem; width: 2px; background: var(--color-navy); }
.ch { position: relative; display: block; width: 100%; padding: 0.875rem 0 0.875rem 2.5rem; border: 0; background: none; text-align: left; cursor: pointer; color: var(--color-navy); }
.ch::before { content: ""; position: absolute; left: 0; top: 1.375rem; width: 16px; height: 16px; background: #fff; border: 2px solid var(--color-navy); transition: transform var(--dur-base) var(--ease-spring), background var(--dur-base); }
.ch:hover::before { background: var(--color-ice); }
.ch[aria-selected="true"]::before { background: var(--color-sky); transform: scale(1.25); }
.ch .no { display: block; font: 500 0.8125rem/1.2 var(--font-mono); color: var(--color-muted); margin-bottom: 4px; }
.ch .tt { display: block; font: 600 clamp(1.125rem, 1rem + 0.5vw, 1.375rem)/1.35 var(--font-heading); }
.ch .short { display: none; }
.ch .ln { display: none; margin-top: 0.5rem; font-size: 1.0625rem; line-height: 1.55; color: var(--color-muted); }
.ch[aria-selected="true"] .ln { display: block; }
.board-wrap { min-width: 0; }
.bezel { position: relative; display: flex; aspect-ratio: 16 / 10; padding: 1rem 3.5rem 1rem 1rem; background: var(--color-board); border-radius: var(--radius-board) var(--radius-board) 0 0; }
.screen { flex: 1; min-width: 0; display: grid; align-items: center; padding: clamp(0.75rem, 2vw, 1.75rem); overflow: hidden; border-radius: 6px; background: linear-gradient(#EEF3F8 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, #EEF3F8 1px, transparent 1px) 0 0 / 24px 24px, #fff; }
.screen:focus-visible { outline-offset: -4px; }
.tools { position: absolute; right: 1.125rem; top: 50%; display: grid; gap: 0.875rem; transform: translateY(-50%); }
.tools i { width: 14px; height: 14px; border-radius: 50%; background: var(--color-navy); box-shadow: 0 0 0 2px #fff; }
.tools i:nth-child(2) { background: var(--color-sky); }
.tools i:nth-child(3) { background: var(--color-marker); }
.tools i:nth-child(4) { background: var(--color-coral); }
.tray { display: flex; align-items: center; justify-content: space-between; height: 1.875rem; padding: 0 1.25rem; background: var(--color-board); border-radius: 0 0 var(--radius-board) var(--radius-board); }
.pen { width: 3.75rem; height: 5px; border-radius: 3px; background: var(--color-sky); }
.count { font: 500 0.75rem/1 var(--font-mono); color: #C5D2E0; }
.board-line { display: none; margin-top: 1rem; font-size: 1.0625rem; color: var(--color-muted); }

.scene, .sc { width: 100%; }
.scene .dr { fill: none; stroke: var(--color-navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.6s calc(var(--i, 0) * 0.12s + 0.1s) var(--ease-out) forwards; }
.scene.done .dr { stroke-dashoffset: 0; animation: none; }
.scene .nd { fill: var(--color-sky); stroke: var(--color-navy); stroke-width: 1.8; }
.scene .nd.hub { fill: var(--color-navy); }
.scene:not(.done) :is(.ladder p, .tt tr, .res tr, .code, .go, .view, .topo figure, .tile) { opacity: 0; animation: rise 0.4s calc(var(--i, 0) * 0.3s + 0.1s) var(--ease-out) forwards; }
.buzz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.875rem; }
.buzz .tile { display: flex; align-items: center; gap: 0.625rem; min-height: 5.25rem; padding: 0.875rem; background: #fff; border: 2px solid var(--color-navy); border-radius: 12px; font: 600 clamp(0.9375rem, 0.7rem + 0.9vw, 1.3125rem)/1.25 var(--font-heading); }
.tk { display: grid; place-items: center; flex: none; width: 1.625rem; height: 1.625rem; border: 2px solid var(--color-navy); border-radius: 6px; }
.tk svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: var(--color-blue); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.tk path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene:not(.done) .tk path { animation: draw 0.4s calc(var(--i, 0) * 0.28s + 0.5s) var(--ease-out) forwards; }
.scene.done .tk path { stroke-dashoffset: 0; }
.topo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.625rem; }
.topo figure { text-align: center; }
.topo figcaption { margin-top: 0.375rem; font: 600 clamp(0.9375rem, 0.8rem + 0.6vw, 1.25rem)/1.2 var(--font-heading); }
.bin { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; align-items: center; }
.ladder p { margin: 0.375rem 0; font: 500 clamp(0.8125rem, 0.6rem + 0.9vw, 1.25rem)/1.3 var(--font-mono); }
.ladder p.res { margin-top: 0.875rem; font-weight: 600; color: var(--color-blue); background: linear-gradient(transparent 60%, var(--color-marker) 60%); display: inline-block; }
.gate svg { width: min(100%, 12.5rem); margin-inline: auto; }
.gate .lbl { font: 600 13px var(--font-mono); fill: var(--color-navy); }
.gname { text-align: center; font: 500 0.875rem var(--font-mono); color: var(--color-muted); margin: 0.25rem 0 0.5rem; }
.tt { margin-inline: auto; border-collapse: collapse; font: 500 clamp(0.75rem, 0.6rem + 0.5vw, 0.9375rem) var(--font-mono); }
.tt th, .tt td { border: 1.5px solid var(--color-navy); padding: 0.1875rem 0.75rem; text-align: center; }
.tt th { background: var(--color-ice); }
.tt td.one { background: var(--color-bit-on); font-weight: 700; }
.htm { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.code { margin: 0; padding: 1rem; background: var(--color-paper); border: 2px solid var(--color-navy); border-radius: 10px; font: 500 clamp(0.8125rem, 0.6rem + 0.9vw, 1.125rem)/1.5 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.go { font-size: 2rem; color: var(--color-blue); }
.view { overflow: hidden; background: #fff; border: 2px solid var(--color-navy); border-radius: 10px; }
.chrome { display: flex; gap: 5px; padding: 0.5rem 0.625rem; background: var(--color-ice); border-bottom: 2px solid var(--color-navy); }
.chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-navy); }
.view p { padding: 1.25rem 1rem; font: 700 clamp(1.125rem, 0.8rem + 1.4vw, 2rem)/1.2 var(--font-heading); }
.term { padding: 1.25rem; background: #fff; border: 2px solid var(--color-navy); border-radius: 12px; font: 500 clamp(0.875rem, 0.6rem + 1.1vw, 1.375rem)/1.6 var(--font-mono); }
.term .l { margin: 0.375rem 0; overflow-wrap: anywhere; }
.term .src { text-decoration: underline wavy var(--color-coral) 2px; text-underline-offset: 6px; animation: unsq 0.01s 1.1s forwards; }
.term .semi { display: inline-block; opacity: 0; color: var(--color-blue); font-weight: 700; animation: drop 0.35s 1.1s var(--ease-spring) forwards; }
.term .err { color: #C42B31; opacity: 0; animation: errin 0.3s 0.5s forwards, errout 0.3s 1.25s forwards; }
.term .out { color: var(--color-wa-deep); font-weight: 600; opacity: 0; animation: rise 0.3s 1.6s forwards; }
.scene.done .term .src { text-decoration: none; animation: none; }
.scene.done .term .semi, .scene.done .term .out { opacity: 1; animation: none; }
.scene.done .term .err { display: none; }
@keyframes unsq { to { text-decoration-color: transparent; } }
@keyframes drop { from { opacity: 0; transform: translateY(-1.2em); } to { opacity: 1; transform: none; } }
@keyframes errin { to { opacity: 1; } }
@keyframes errout { to { opacity: 0.35; } }
.sql { display: grid; gap: 1.125rem; }
.sql .kw { color: var(--color-blue); font-weight: 700; }
.sql .num { color: var(--color-wa-deep); font-weight: 700; }
.res { border-collapse: collapse; min-width: 55%; font: 500 clamp(0.8125rem, 0.6rem + 0.9vw, 1.25rem) var(--font-mono); }
.res th { background: var(--color-ice); text-align: left; }
.res th, .res td { padding: 0.5rem 1rem; border: 2px solid var(--color-navy); }

/* ---------- OMR picker + admit card */
.adm { display: grid; grid-template-columns: minmax(18.5rem, 4fr) minmax(0, 8fr); gap: 1.75rem; align-items: start; }
.omr { position: sticky; top: 6rem; min-width: 0; margin: 0; padding: 1.375rem 1.5rem 1.125rem 2.75rem; background: #fff; border: 1px solid var(--color-border); border-radius: 1.25rem; }
.omr::before { content: ""; position: absolute; left: 1rem; top: 1.5rem; bottom: 1.5rem; width: 9px; background: repeating-linear-gradient(to bottom, var(--color-blue) 0 4px, transparent 4px 18px); }
.omr legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.omr-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.375rem; font: 500 0.8125rem var(--font-mono); letter-spacing: 0.06em; color: var(--color-blue); }
.roll { display: flex; align-items: center; gap: 4px; }
.roll i { display: block; width: 16px; height: 20px; border: 1px solid var(--color-blue); }
.opt { position: relative; display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px dashed #C9D6E4; color: inherit; text-decoration: none; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bub { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 2px solid var(--color-navy); border-radius: 50%; background: #fff; font: 600 1.125rem/1 var(--font-heading); color: var(--color-navy); transition: background var(--dur-base), color var(--dur-base), transform var(--dur-base) var(--ease-spring); }
.opt input:checked + .bub { background: var(--color-navy); color: #fff; transform: scale(1.06); }
.opt input:focus-visible + .bub { outline: 2.5px solid var(--color-focus); outline-offset: 3px; }
.opt:hover .bub { background: var(--color-marker-soft); }
.opt input:checked + .bub:hover { background: var(--color-navy); }
.oy { display: block; font: 700 var(--fs-omr-year)/1.1 var(--font-heading); }
.op { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.od { display: block; font-size: 1rem; color: var(--color-muted); }
.opt.ask .bub { border-style: dashed; }
.opt.ask .od { color: var(--color-wa-deep); font-weight: 600; }
.omr .omr-foot { margin-top: 0.375rem; font-size: 0.9375rem; color: var(--color-muted); }
.cards { min-width: 0; }
.card { position: relative; overflow: hidden; background: #fff; border: 1.5px solid var(--color-navy); border-radius: 1.25rem; }
.card[hidden] { display: none; }
.card.print { animation: print 0.45s var(--ease-out) both; }
.card.print .stamp { animation: thunk 0.3s 0.42s var(--ease-spring) both; }
.card.print .chip-day { animation: pop 0.2s 0.7s var(--ease-spring) both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(12px); } to { clip-path: inset(0); transform: none; } }
@keyframes thunk { from { transform: rotate(-14deg) scale(1.3); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
.band { display: flex; align-items: center; justify-content: space-between; height: 2.75rem; padding: 0 1.75rem; background: url(../img/guilloche-band.svg) left center / 240px 20px repeat-x, rgb(160 224 239 / 45%); border-bottom: 1px solid var(--color-navy); font: 500 0.9375rem var(--font-mono); letter-spacing: 0.06em; }
.cbody { position: relative; padding: 1.75rem 2.25rem; }
.yr { font: 800 var(--fs-admit-year)/0.9 var(--font-heading); letter-spacing: -0.04em; }
:root:lang(bn) .yr { letter-spacing: 0; line-height: 1; }
.subj { margin: 0.625rem 0 1.125rem; font: 500 1.125rem var(--font-mono); color: var(--color-muted); }
.flist { display: grid; grid-template-columns: 6.5rem 1fr; max-width: calc(100% - 14.75rem); }
.flist dt, .flist dd { padding: 0.75rem 0; border-top: 1px dashed #C9D6E4; }
.flist dt { display: flex; align-items: center; font: 500 0.9375rem var(--font-mono); color: var(--color-muted); }
.flist dd { font-size: var(--fs-admit-value); font-weight: 600; line-height: 1.3; }
.photo-box { position: absolute; right: 2.25rem; top: 1.75rem; display: grid; place-items: center; width: 6.5rem; height: 8rem; padding: 0.5rem; border: 1.5px dashed #B8C7D9; border-radius: 8px; text-align: center; font-size: 0.8125rem; line-height: 1.35; color: var(--color-muted); }
.stamp { position: absolute; right: 1.375rem; top: 11rem; display: grid; place-content: center; width: 13.75rem; height: 13.75rem; padding: 1.5rem; transform: rotate(-8deg); text-align: center; color: var(--color-blue); }
.stamp img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stamp strong { position: relative; font: 700 var(--fs-stamp)/1 var(--font-display-en); letter-spacing: -0.02em; }
.stamp strong.small { font: 800 1.5rem/1.2 var(--font-heading); letter-spacing: 0; }
.stamp strong.bn { font: 800 clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem)/1 var(--font-heading); letter-spacing: 0; }
.stamp small { position: relative; display: block; margin-top: 0.5rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.priceline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem 1rem; margin-top: 1.375rem; }
.priceline s { font-size: 1.375rem; color: var(--color-muted); }
.priceline span { font-size: 1.0625rem; }
.chip-day { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 999px; background: var(--color-marker); color: var(--color-navy); font-weight: 700; font-size: 1.0625rem; }
.hookline { margin-top: 1.125rem; font: 700 1.5rem/1.35 var(--font-heading); }
.strip { position: relative; padding: 1.25rem 1.5rem; background: var(--color-paper); border-top: 2px dotted var(--color-navy); }
.strip::before, .strip::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; background: #fff; border: 1.5px solid var(--color-navy); border-radius: 50%; }
.strip::before { left: -13px; }
.strip::after { right: -13px; }
.strip .btn { width: 100%; height: 4rem; font-size: 1.25rem; }
.strip .btn .g { width: 26px; height: 26px; }

/* ---------- real talk bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.tile { position: relative; min-width: 0; overflow: hidden; border-radius: 1.5rem; background: var(--color-paper); }
.tile.desk { grid-column: 1 / 8; min-height: 28.75rem; }
.tile.keys { grid-column: 8 / 13; }
.tile.b3d { grid-column: 1 / 6; min-height: 23.75rem; background: rgb(160 224 239 / 40%); }
.tile.chat { grid-column: 6 / 13; padding: 1.5rem; background: #fff; border: 1px solid var(--color-border); }
.tile > img { width: 100%; height: 100%; object-fit: cover; }
.tile.b3d > img { object-fit: contain; padding: 6rem 1.5rem 1.5rem; }
.tile figcaption { position: absolute; left: 0.875rem; top: 0.875rem; max-width: calc(100% - 1.75rem); padding: 0.625rem 0.875rem; background: #fff; border-radius: 12px; font: 600 clamp(1.125rem, 1rem + 0.6vw, 1.625rem)/1.3 var(--font-heading); }
.chat-head { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; font-size: 1.0625rem; }
.wa-badge { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--color-wa); color: var(--color-wa-ink); }
.wa-badge .g { width: 1.25rem; height: 1.25rem; }
.msgs { display: grid; gap: 0.625rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.m { max-width: 82%; padding: 0.625rem 0.875rem; border-radius: 16px; font-size: 1.125rem; line-height: 1.45; }
.m .who { display: block; margin-bottom: 2px; font: 500 0.75rem var(--font-mono); color: var(--color-muted); }
.m.student { justify-self: end; background: var(--color-ice); border-bottom-right-radius: 4px; }
.m.student .who { color: #2F4A6A; }
.m.academy { justify-self: start; background: var(--color-paper); border: 1px solid var(--color-border); border-bottom-left-radius: 4px; }
.replies { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.reply-hint { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--color-muted); }
.js .chat:not(.in) .m { opacity: 0; transform: translateY(8px); }
.chat.in .m { animation: rise 0.35s calc(var(--i) * 0.55s + 0.2s) var(--ease-out) both; }
.chat.settled .m { animation: none; }

/* ---------- console faq */
.console { overflow: hidden; background: #fff; border: 1px solid var(--color-border); border-radius: 1.25rem; }
.titlebar { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 1.125rem; background: var(--color-paper); border-bottom: 1px solid var(--color-border); font: 500 0.8125rem var(--font-mono); color: var(--color-muted); }
.dots i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--color-ice); }
.dots i:nth-child(2) { background: var(--color-sky); }
.dots i:nth-child(3) { background: var(--color-navy); }
details.q + details.q { border-top: 1px dashed #C9D6E4; }
details.q summary { display: grid; grid-template-columns: 1.75rem auto 1fr 1.5rem; align-items: baseline; gap: 0.75rem; padding: 1.125rem 1.375rem; cursor: pointer; list-style: none; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary:hover { background: var(--color-paper); }
.q .no { font: 400 0.875rem var(--font-mono); color: var(--color-muted); }
.q .prompt { font: 500 0.9375rem var(--font-mono); color: var(--color-blue); white-space: nowrap; }
.q .qt { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.q .tog { position: relative; align-self: center; width: 16px; height: 16px; justify-self: end; }
.q .tog::before, .q .tog::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--color-navy); transition: transform var(--dur-fast); }
.q .tog::after { transform: rotate(90deg); }
details[open] .tog::after { transform: rotate(0); }
.ans { position: relative; padding: 0 1.5rem 1.375rem 4rem; font-size: 1.125rem; line-height: 1.65; }
.ans .arrow { position: absolute; left: 2.5rem; top: 0; font-family: var(--font-mono); color: var(--color-blue); }
.caret { display: inline-block; width: 0.55em; height: 1.05em; margin-left: 4px; vertical-align: -0.15em; background: var(--color-navy); opacity: 0; }
details[open].fresh .caret { animation: blink 0.6s steps(2, jump-none) 3; }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- coordinates + final cta */
.coords-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #fff; border: 1px solid var(--color-border); border-radius: 1.5rem; }
.grid-panel { position: relative; display: grid; place-items: center; min-height: 26rem; overflow: hidden; background: var(--color-paper); }
.grid-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pin { position: relative; width: min(11.25rem, 40%); }
.ring { position: absolute; left: 50%; top: 50%; width: 12.5rem; height: 12.5rem; margin: -6.25rem 0 0 -6.25rem; border: 2px solid var(--color-sky); border-radius: 50%; opacity: 0; }
.coords-card.live .ring { animation: ring 3s ease-out infinite; }
.coords-card.live .ring.r2 { animation-delay: 1.5s; }
@keyframes ring { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.4); opacity: 0; } }
.info-panel { display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 3rem); }
.city { font: 700 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1.1 var(--font-heading); letter-spacing: -0.02em; }
:root:lang(bn) .city { letter-spacing: 0; }
.coords { display: grid; gap: 0.75rem; }
.coords div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; padding-bottom: 0.75rem; border-bottom: 1px dashed #C9D6E4; }
.coords dt { min-width: 7.5rem; font: 500 0.875rem var(--font-mono); color: var(--color-muted); }
.coords dd { font: 500 clamp(1.25rem, 1rem + 0.9vw, 1.75rem)/1.2 var(--font-mono); }
.addr-note { font-size: 1.0625rem; color: var(--color-muted); }
.vbtns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.final { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; margin-top: clamp(4.5rem, 9vw, 8.75rem); text-align: center; }
.final-title { max-width: 14em; font: 700 var(--fs-final)/1.05 var(--font-heading); letter-spacing: -0.04em; text-wrap: balance; }
:root:lang(bn) .final-title { letter-spacing: 0; line-height: 1.2; }
.final .hl::before { animation: none; clip-path: inset(0 100% 0 0); transition: clip-path 0.6s 0.35s var(--ease-out); }
.final.in .hl::before, html:not(.js) .final .hl::before { clip-path: inset(0); }
.phone { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.625rem; color: var(--color-muted); }
.phone code { font-size: 1.375rem; font-weight: 500; color: var(--color-navy); user-select: all; }
.copy { display: inline-flex; align-items: center; gap: 8px; min-height: 2.75rem; padding: 0 1rem; border: 1.5px solid var(--color-border); border-radius: 10px; background: #fff; color: var(--color-navy); font-weight: 600; font-size: 0.9375rem; cursor: pointer; }
.copy:hover { border-color: var(--color-navy); }
.copy svg { width: 18px; height: 18px; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 80; padding: 0.75rem 1.25rem; border-radius: 12px; background: var(--color-navy); color: #fff; font-weight: 600; transform: translate(-50%, 1.5rem); opacity: 0; pointer-events: none; transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer */
.foot { overflow: hidden; padding-top: 3.5rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.logo-chip { display: inline-block; margin-bottom: 0.875rem; padding: 0.75rem 1rem; background: #fff; border-radius: 14px; }
.logo-chip img { width: 8.75rem; }
.foot-brand p { color: var(--color-muted); font-size: 1rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.fine { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.25rem; font-size: 0.8125rem; color: var(--color-muted); }
.giant { height: clamp(6.5rem, 15vw, 14rem); margin-top: 1.5rem; overflow: hidden; text-align: center; line-height: 1; }
.giant span { display: block; font: 700 min(22vw, 21rem)/1 var(--font-display-en); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px rgb(160 224 239 / 24%); white-space: nowrap; transform: translateY(2%); }

/* ---------- dark sections (v3) */
.dark { --color-navy: var(--on-night); --color-text: var(--on-night); --color-muted: var(--on-night-muted); --color-border: var(--night-line); --color-paper: var(--night-2); background: var(--night); color: var(--on-night); }
.dark :where(a:not(.btn)) { color: var(--color-sky); }
.dark ::selection { background: var(--color-sky); color: var(--night); }
.dark :focus-visible { outline-color: var(--color-sky); }
.dark .label { color: var(--color-sky); }
.dark .hl { color: #0A1A33; padding-inline: 0.12em; }
.dark .hl::before { inset: 4% 0 0 0; transform: rotate(-0.8deg); }
.dark .btn.p { background: var(--color-sky); color: #07203A; }
.dark .btn.p:hover { background: var(--color-ice); }
.dark .btn.s { background: transparent; color: var(--on-night); border-color: rgb(234 242 250 / 35%); }
.dark .btn.s:hover { background: rgb(255 255 255 / 8%); }
.dark .copy { background: transparent; color: var(--on-night); border-color: var(--night-line); }
.dark .copy:hover { border-color: var(--on-night); }
.btn.ghost { background: transparent; color: var(--on-night); border-color: rgb(234 242 250 / 35%); }
.btn.ghost:hover, .btn.ghost[aria-pressed="true"] { background: rgb(255 255 255 / 10%); border-color: var(--color-sky); }
.btn.ghost .pad { width: 20px; height: 20px; flex: none; }

/* hero: dark, Pong behind the headline */
.hero { background: var(--night); }
.hero-top { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4rem, 7vw, 6rem); }
.pong-bg { position: absolute; inset: 0; opacity: 0.85; }
.pong-bg canvas { display: block; width: 100%; height: 100%; }
.hero-top::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(62% 58% at 50% 46%, rgb(10 26 51 / 90%) 0%, rgb(10 26 51 / 62%) 55%, transparent 100%); transition: opacity var(--dur-base); }
.hero-text { position: relative; z-index: 2; }
.hero .promo { background: rgb(255 255 255 / 6%); border-color: var(--night-line); color: var(--on-night); }
.hero .promo:hover { border-color: var(--color-sky); }
.hero .sub { color: #C9D8EA; }
.pong-hint { margin-top: 1rem; font: 500 0.9375rem/1.4 var(--font-mono); color: var(--color-sky); }
.pong-hint[hidden] { display: none; }
.hero-top.playing { touch-action: none; }
.hero-top.playing::before { opacity: 0; }
.hero-top.playing .pong-bg { opacity: 1; }
.hero-top.playing .hero-text { pointer-events: none; }
.hero-top.playing .hero-text > :not(.ctas):not(.pong-hint) { opacity: 0.14; transition: opacity var(--dur-base); }
.hero-top.playing .ctas, .hero-top.playing .pong-hint { pointer-events: auto; }
.hero-top.playing .scroll-cue { opacity: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.25rem; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translateX(-50%); font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); text-decoration: none; transition: opacity var(--dur-base); }
.scroll-cue i { width: 1px; height: 1.75rem; background: linear-gradient(var(--color-sky), transparent); transform-origin: top; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ticker */
.ticker { position: relative; z-index: 3; width: 104%; margin: 0 0 0 -2%; overflow: hidden; background: var(--color-marker); color: #0A1A33; border-block: 2px solid #0A1A33; transform: rotate(-1deg); }
.ticker .track { display: flex; width: max-content; animation: marq 42s linear infinite; }
.ticker ul { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0.875rem 1rem; list-style: none; font: 600 clamp(1rem, 0.9rem + 0.5vw, 1.375rem)/1 var(--font-mono); white-space: nowrap; }
.ticker .sep { font-size: 0.875em; }
@keyframes marq { to { transform: translateX(-50%); } }
.ticker:hover .track { animation-play-state: paused; }


/* ICT lab */
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.panel { min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); background: var(--night-2); border: 1px solid var(--night-line); border-radius: 1.5rem; }
.panel h3 { margin-bottom: 1.25rem; font: 600 var(--fs-h3)/1.3 var(--font-heading); }
.fields, .outs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.f span, .outs span { display: block; margin-bottom: 0.375rem; font: 500 0.8125rem/1.2 var(--font-mono); letter-spacing: 0.04em; color: var(--color-muted); }
.f input { width: 100%; height: 3.5rem; padding: 0 1rem; background: var(--night); border: 1.5px solid var(--night-line); border-radius: 12px; color: #fff; font: 500 1.5rem/1 var(--font-mono); }
.f input:focus-visible { outline: none; border-color: var(--color-sky); box-shadow: 0 0 0 3px rgb(96 193 229 / 28%); }
.f input[aria-invalid="true"] { border-color: #FF9CA1; }
.outs { margin-top: 0.875rem; }
.outs div { padding: 0.875rem 1rem; border: 1px dashed var(--night-line); border-radius: 12px; }
.outs span { margin-bottom: 0.125rem; }
.outs b { font: 600 1.5rem/1.2 var(--font-mono); overflow-wrap: anywhere; }
.msg { min-height: 1.5em; margin-top: 0.75rem; font-size: 0.9375rem; color: #FFB4B8; }
.panel .hint { font-size: 0.9375rem; color: var(--color-muted); }
.steps { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--night-line); }
.steps-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.steps h4 { margin: 0; font: 600 1rem/1.3 var(--font-heading); }
.steps-h span { font: 500 0.8125rem/1.2 var(--font-mono); color: var(--color-sky); }
.steps ol { display: grid; gap: 0.25rem; margin: 0.75rem 0 0; padding: 0; list-style: none; font: 500 0.9375rem/1.5 var(--font-mono); }
.steps li { animation: rise 0.25s calc(var(--i, 0) * 30ms) var(--ease-out) both; }
.gtabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.gt { min-height: 2.75rem; padding: 0 0.875rem; background: transparent; border: 1.5px solid var(--night-line); border-radius: 999px; color: var(--on-night); font: 600 0.875rem/1 var(--font-mono); cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast); }
.gt:hover { border-color: var(--color-sky); }
.gt[aria-pressed="true"] { background: var(--color-sky); border-color: var(--color-sky); color: #07203A; }
.gstage { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.gsvg { width: 100%; height: auto; }
.gsvg .body { fill: var(--night); stroke: var(--on-night); stroke-width: 3; stroke-linejoin: round; }
.gsvg .body-line { fill: none; stroke: var(--on-night); stroke-width: 3; stroke-linecap: round; }
.gsvg .w { fill: none; stroke: #4F6A8C; stroke-width: 4; stroke-linecap: round; transition: stroke var(--dur-base); }
.gsvg .w.on { stroke: var(--color-sky); }
.gsvg .lb { font: 600 13px var(--font-mono); fill: var(--on-night-muted); }
.gsvg .lamp-c { fill: #16293F; stroke: #4F6A8C; stroke-width: 3; transition: fill var(--dur-base), stroke var(--dur-base); }
.gsvg .lamp-c.on { fill: var(--color-marker); stroke: var(--color-marker); }
.switches { display: grid; gap: 0.5rem; }
.sw { display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.25rem 0.5rem; background: none; border: 0; color: var(--on-night); font: 600 1.125rem/1 var(--font-mono); cursor: pointer; }
.sw .nm { order: 1; min-width: 1.25rem; }
.sw .knob { order: 2; position: relative; width: 3.5rem; height: 1.875rem; background: #2A4568; border-radius: 999px; transition: background var(--dur-base); }
.sw .knob::after { content: ""; position: absolute; left: 0.25rem; top: 0.25rem; width: 1.375rem; height: 1.375rem; background: #fff; border-radius: 50%; transition: transform var(--dur-base) var(--ease-spring); }
.sw[aria-checked="true"] .knob { background: var(--color-sky); }
.sw[aria-checked="true"] .knob::after { transform: translateX(1.625rem); background: #07203A; }
.sw .v { order: 3; min-width: 1ch; }
.sw:focus-visible { border-radius: 12px; }
.gdesc { margin: 1rem 0 0.75rem; font-size: 1.0625rem; color: var(--color-muted); }
.out-row { display: flex; align-items: center; gap: 0.75rem; font: 500 0.875rem/1 var(--font-mono); color: var(--color-muted); }
.out-row b { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; background: #16293F; border-radius: 10px; color: #8CA3BF; font: 700 1.375rem/1 var(--font-mono); transition: background var(--dur-base); }
.out-row b.on { background: var(--color-marker); color: #0A1A33; }
.ttwrap { margin-top: 1rem; }
.tcap { margin-bottom: 0.5rem; font: 500 0.8125rem/1.2 var(--font-mono); color: var(--color-muted); }
.ttab { border-collapse: collapse; font: 500 1rem/1.2 var(--font-mono); }
.ttab th, .ttab td { padding: 0.4375rem 1.125rem; border: 1px solid var(--night-line); text-align: center; }
.ttab th { color: var(--color-muted); font-weight: 500; }
.ttab tr.on td { background: rgb(96 193 229 / 20%); color: #fff; }
.ttab td.y { font-weight: 700; }

/* dark console FAQ, final CTA, footer */
.dark .console { background: var(--night-2); border-color: var(--night-line); }
.dark .titlebar { background: var(--night); border-color: var(--night-line); }
.dark details.q + details.q { border-top-color: var(--night-line); }
.dark details.q summary:hover { background: rgb(255 255 255 / 4%); }
.dark .q .prompt, .dark .ans .arrow { color: var(--color-sky); }
.dark .caret { background: var(--color-sky); }
.dark .coords div, .dark .opt { border-color: var(--night-line); }
.final-sec { padding-bottom: calc(var(--section-space) * 0.5); }
.final-sec .final { margin-top: 0; }

/* hero offers, motion control, mobile WhatsApp bar */
.offers { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; }
.promo.plain { padding-left: 1rem; }
.motion-btn { position: absolute; left: var(--page-gutter); bottom: 1rem; z-index: 3; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.875rem; background: transparent; border: 1px solid var(--night-line); border-radius: 999px; color: var(--on-night-muted); font: 500 0.8125rem/1 var(--font-mono); cursor: pointer; }
.motion-btn:hover { border-color: var(--color-sky); color: var(--on-night); }
.motion-btn .mi { width: 10px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.motion-btn[aria-pressed="true"] .mi { width: 0; height: 0; border: 6px solid transparent; border-left: 10px solid currentColor; border-right: 0; }
.hero-top.playing .motion-btn { opacity: 0; pointer-events: none; }
.motion-paused .ticker .track, .motion-paused .scroll-cue i, .motion-paused .coords-card.live .ring { animation-play-state: paused; }
.wabar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; padding: 0.75rem var(--page-gutter) calc(0.75rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--color-border); box-shadow: 0 -8px 24px rgb(27 54 93 / 8%); transform: translateY(110%); transition: transform var(--dur-base) var(--ease-out); }
.wabar .btn { width: 100%; }
.wabar.show { transform: none; }
html:not(.js) .card[hidden] { display: block; }
html:not(.js) .card + .card { margin-top: 1rem; }
select#benchTag, select#sqlBatch { width: 100%; height: 3.5rem; padding: 0 1rem; background: var(--night); border: 1.5px solid var(--night-line); border-radius: 12px; color: #fff; font: 500 1.0625rem/1 var(--font-mono); }
.srcline { margin: 0 0 1rem; padding: 0.875rem 1rem; background: var(--night); border: 1px dashed var(--night-line); border-radius: 12px; color: var(--color-sky); font: 500 1rem/1.4 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.bench-out { min-height: 5rem; padding: 1rem 1.125rem; background: #fff; border-radius: 12px; color: #0A1A33; overflow-wrap: anywhere; }
.bench-out .p-h1 { font: 700 2rem/1.2 var(--font-heading); }
.bench-out .p-h2 { font: 700 1.375rem/1.3 var(--font-heading); }
.bench-out .p-p { font: 400 1rem/1.6 var(--font-body); }
.bench-out a { color: #005A9C; text-decoration: underline; }
.res2 { margin: 1rem 0 0; }
.bench .fields, .sqlp .f { margin-bottom: 1rem; }

/* ---------- reveal on first view */
.js .reveal { opacity: 0; transform: translateY(var(--rise)); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js .reveal.in, .js.reveal-all .reveal { opacity: 1; transform: none; }

/* ---------- responsive */
@media (max-width: 1100px) {
  .tap-hint { display: none; }
  .lab-grid { grid-template-columns: 1fr; }
  .stk.duck { right: -1.5rem; }
}
@media (max-width: 1023px) {
  .nav, .head-wa { display: none; }
  .menu-btn { display: grid; }
  .pill { gap: 0.75rem; padding-left: 1.125rem; }
  .brand img { width: 8.5rem; }
  .head-actions { margin-left: auto; }
  .board-grid { grid-template-columns: 1fr; }
  .rail { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
  .rail::before { display: none; }
  .ch { width: auto; flex: 1 1 calc(33.333% - 0.5rem); min-height: 2.75rem; padding: 0.625rem 0.75rem; border: 1.5px solid var(--color-navy); border-radius: 12px; text-align: center; background: #fff; }
  .ch::before { display: none; }
  .ch .no, .ch .tt, .ch .ln, .ch[aria-selected="true"] .ln { display: none; }
  .ch .short { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
  .ch[aria-selected="true"] { background: var(--color-navy); color: #fff; }
  .bezel { aspect-ratio: auto; min-height: 17rem; padding-right: 2.75rem; }
  .tools { right: 0.75rem; gap: 0.625rem; }
  .board-line { display: block; }
  .adm { grid-template-columns: 1fr; }
  .omr { position: relative; top: auto; }
  .bento { grid-template-columns: 1fr; }
  .tile.desk, .tile.keys, .tile.b3d, .tile.chat { grid-column: auto; }
  .tile.desk { min-height: 0; aspect-ratio: 4 / 3; }
  .tile.keys { aspect-ratio: 1 / 1; }
  .tile.b3d { min-height: 0; aspect-ratio: 1 / 1; }
  .tile.chat { order: -1; }
  .coords-card { grid-template-columns: 1fr; }
  .grid-panel { min-height: 16rem; }
}
@media (max-width: 767px) {
  .pong-bg { opacity: 0.6; }
  .wabar { display: block; }
  .foot { padding-bottom: 5rem; }
  .motion-btn { left: var(--page-gutter); bottom: 0.5rem; }
  .bit-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .bit { height: 3.75rem; }
  .scroll-cue { display: none; }
  .fields, .outs { grid-template-columns: 1fr 1fr; }
  .gstage { grid-template-columns: 1fr; }
  .switches { grid-auto-flow: column; justify-content: start; gap: 1rem; }
  .ticker { transform: rotate(-1.5deg); }
  .hero-text { align-items: flex-start; text-align: left; }
  .ctas { flex-direction: column; width: 100%; }
  .ctas .btn { width: 100%; }
  .photo { aspect-ratio: 4 / 3; object-position: 72% 45%; border-radius: 1.25rem; }
  .stk.duck { display: none; }
  .stk.semi { width: 4.25rem; right: -0.375rem; top: -1.75rem; }
  .bits { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 1rem; padding: 1rem; }
  .bits-head { flex-wrap: wrap; }
  .cap { position: static; display: inline-block; margin-top: 0.5rem; padding: 0; font-size: 0.8125rem; }
  .stage-wrap { padding-bottom: 2rem; }
  .buzz { grid-template-columns: repeat(2, 1fr); }
  .buzz .tile { min-height: 4rem; }
  .topo { grid-template-columns: repeat(2, 1fr); gap: 0.875rem 0.5rem; }
  .bin, .htm { grid-template-columns: 1fr; }
  .go { transform: rotate(90deg); justify-self: center; }
  .ch { flex-basis: calc(50% - 0.25rem); }
  .cbody { padding: 1.375rem 1.25rem; }
  .band { padding: 0 1.125rem; font-size: 0.75rem; }
  .photo-box { display: none; }
  .flist { max-width: none; grid-template-columns: 4.875rem 1fr; }
  .stamp { position: relative; right: auto; top: auto; width: 9.375rem; height: 9.375rem; margin: 0.875rem 0.375rem -0.375rem auto; padding: 1rem; }
  .stamp small { font-size: 0.6875rem; margin-top: 0.25rem; }
  .hookline { font-size: 1.3125rem; }
  .strip { padding: 1rem; }
  .strip .btn { height: 3.75rem; font-size: 1.0625rem; white-space: normal; text-align: left; line-height: 1.25; }
  .omr { padding-left: 2.375rem; padding-right: 1.125rem; }
  .bub { width: 2.75rem; height: 2.75rem; }
  .opt { grid-template-columns: 2.75rem 1fr; gap: 0.875rem; }
  details.q summary { grid-template-columns: 1.5rem 1fr 1.5rem; padding: 1rem; }
  details.q .prompt { display: none; }
  .ans { padding: 0 1rem 1.125rem 2.5rem; font-size: 1.0625rem; }
  .ans .arrow { left: 1rem; }
  .final .btn.xl { width: 100%; padding: 0 1rem; font-size: 1.125rem; white-space: normal; }
  .vbtns .btn { width: 100%; white-space: normal; }
  .m { max-width: 90%; font-size: 1.0625rem; }
  .tile.chat { padding: 1.125rem; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .buzz { grid-template-columns: 1fr; gap: 0.625rem; }
  .buzz .tile { min-height: 3.25rem; padding: 0.625rem 0.875rem; font-size: 1rem; }
  .tools { gap: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue i { display: none; }
  .ticker .track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker ul[aria-hidden] { display: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .stk { transform: rotate(var(--rot, 0deg)); }
}

/* =====================================================================================
   v4 (owner feedback, 15 Nov 2026): brand patterns, camera hero, tickets, scroll story,
   lab teaser + lab page, compact real talk, bigger FAQ, address, new final CTA
   ===================================================================================== */
.patterned { background-image: url(../img/binary-pattern-light.svg); background-size: 360px 360px; }
.sec-paper.patterned { background-color: var(--color-paper); }
.patterned-dark { background-image: url(../img/binary-pattern-dark.svg); background-size: 360px 360px; }
.center { text-align: center; margin-inline: auto; }
.sec-head.center h2, .sec-head.center .lead { margin-inline: auto; }
.bitstripe { display: grid; grid-template-columns: repeat(4, 1fr); height: 6px; }
.bitstripe i:nth-child(1) { background: var(--color-navy); } .bitstripe i:nth-child(2) { background: var(--color-blue); }
.bitstripe i:nth-child(3) { background: var(--color-sky); } .bitstripe i:nth-child(4) { background: var(--color-ice); }
.dark .bitstripe i:nth-child(1) { background: #1B365D; }

/* header logo (vector from the brand kit) */
.brand img { width: 10.5rem; height: auto; }

/* ---------- hero copy */
.promo.free { gap: 0.625rem; padding: 0.375rem 1rem; color: var(--on-night); }
.promo.free .live { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #FF6B6B; flex: none; }
.promo.free .live::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #FF6B6B; opacity: 0; animation: livepulse 1.8s ease-out infinite; }
@keyframes livepulse { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }
.hero .sub { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem); line-height: 1.45; color: #DCE7F3; max-width: 32ch; }
.hero .sub .accent { color: #FF8A80; font-weight: 700; }
.motion-paused .promo.free .live::after { animation: none; }

/* ---------- hero camera: zooms into the smartboard while you scroll */
.stage { max-width: 75rem; }
.cam { position: relative; aspect-ratio: 1200 / 640; overflow: hidden; border-radius: var(--radius-stage); border: 1px solid rgb(160 224 239 / 25%); background: #E9EEF2; isolation: isolate; }
.cam-layer { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 3 / 2; transform: translateY(-54%); }
.cam-zoom { position: relative; width: 100%; height: 100%; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--z, 1)); transform-origin: 67.68% 33.8%; will-change: transform; }
.cam-zoom .photo { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border: 0; border-radius: 0; }
.cam-screen { position: absolute; left: 42.71%; top: 14.65%; width: 49.94%; height: 38.4%; container-type: size; overflow: hidden; border-radius: 0.3%;
  background: linear-gradient(#EEF3F8 1px, transparent 1px) 0 0 / 4cqw 4cqw, linear-gradient(90deg, #EEF3F8 1px, transparent 1px) 0 0 / 4cqw 4cqw, #fff;
  opacity: var(--so, 0); transition: opacity 0.2s linear; color: #1B365D; font-family: var(--font-mono); }
.cs { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 3cqh; padding: 6cqh 6cqw; opacity: 0; transform: translateY(3cqh); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.cs.on { opacity: 1; transform: none; }
.cs-tag { position: absolute; left: 3cqw; top: 5cqh; z-index: 2; padding: 1.4cqh 2.4cqw; border-radius: 99px; background: #1B365D; color: #fff; font: 600 3.2cqw/1 var(--font-body); }
.cs-dec { font: 600 7cqw/1 var(--font-mono); color: #1B365D; }
.cs-dec sub, .cs-bits sub { font-size: 0.45em; }
.cs-bits { display: flex; gap: 0.8cqw; font: 700 6.4cqw/1 var(--font-mono); }
.cs-bits i { font-style: normal; display: grid; place-items: center; width: 6.6cqw; height: 9cqw; border: 0.4cqw solid #1B365D; border-radius: 1cqw; }
.cs.on .cs-bits i { animation: bitpop 0.5s calc(var(--i) * 70ms + 0.2s) var(--ease-spring) both; }
@keyframes bitpop { 0% { transform: rotateX(90deg); background: #fff; } 60% { background: #A0E0EF; } 100% { transform: none; background: #fff; } }
.cs-gate svg { width: 78cqw; overflow: visible; }
.cs-gate .g { fill: #fff; stroke: #1B365D; stroke-width: 4; }
.cs-gate .w { stroke: #60C1E5; stroke-width: 6; fill: none; stroke-linecap: round; stroke-dasharray: 10 14; animation: flow 0.8s linear infinite; }
.cs-gate .w.o { stroke: #005A9C; }
.cs-gate text { font: 700 16px var(--font-mono); fill: #1B365D; }
.cs-gate .lamp { fill: #FFD23F; stroke: #1B365D; stroke-width: 3; animation: lamp 1.4s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes lamp { 50% { fill: #FFF3C4; } }
.cs-sql { justify-items: start; }
.cs-q { font: 600 3.3cqw/1.4 var(--font-mono); }
.cs-q span { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 0.5cqw solid #005A9C; }
.cs.on .cs-q span { animation: type 1.6s steps(44) both; }
@keyframes type { from { width: 0; } }
.cs-row { width: 46cqw; padding: 1.2cqh 2cqw; border: 0.35cqw solid #1B365D; border-top-width: 0; font: 600 4cqw/1.2 var(--font-mono); background: #F5F8FB; }
.cs-row:first-of-type { border-top-width: 0.35cqw; }
.cs.on .cs-row { animation: rise 0.4s calc(1.6s + var(--i) * 0.18s) var(--ease-out) both; }
.cs-3d { perspective: 60cqw; }
.cube { position: relative; width: 40cqh; height: 40cqh; transform-style: preserve-3d; animation: spin 7s linear infinite; }
.cube b { position: absolute; inset: 0; display: grid; place-items: center; border: 0.6cqh solid #1B365D; background: #A0E0EF; font: 700 9cqh/1 var(--font-mono); color: #1B365D; backface-visibility: hidden; }
.cube .f0 { transform: translateZ(20cqh); } .cube .f1 { transform: rotateY(180deg) translateZ(20cqh); background: #FFD23F; }
.cube .f2 { transform: rotateY(90deg) translateZ(20cqh); background: #60C1E5; } .cube .f3 { transform: rotateY(-90deg) translateZ(20cqh); background: #FF8A80; }
.cube .f4 { transform: rotateX(90deg) translateZ(20cqh); } .cube .f5 { transform: rotateX(-90deg) translateZ(20cqh); background: #fff; }
@keyframes spin { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
.cs-net svg { width: 80cqw; }
.cs-net .links path { stroke: #1B365D; stroke-width: 3; fill: none; }
.cs-net .nodes rect { fill: #60C1E5; stroke: #1B365D; stroke-width: 2.5; }
.cs-net .pk { fill: #FF6B6B; }
.cam-dots { position: absolute; left: 50%; bottom: 0.875rem; z-index: 2; display: flex; gap: 6px; padding: 6px 10px; border-radius: 99px; background: rgb(10 26 51 / 55%); transform: translateX(-50%); }
.cam-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgb(255 255 255 / 45%); transition: width var(--dur-base), background var(--dur-base); }
.cam-dots i.on { width: 20px; border-radius: 4px; background: #fff; }
.motion-paused .cube, .motion-paused .cs-gate .w, .motion-paused .cs-gate .lamp { animation-play-state: paused; }

/* ---------- 02 batches: two compact admit tickets */
.pick { max-width: 64rem; margin: 0 auto; }
.tickets { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.tkt { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1.5px solid #C9D6E4; border-radius: 1.25rem; cursor: pointer; transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base), opacity var(--dur-base); }
.tkt:hover { transform: translateY(-3px); }
.tkt.sel { border-color: var(--color-navy); box-shadow: 0 18px 40px rgb(27 54 93 / 12%); }
.tickets:has(.sel) .tkt:not(.sel) { opacity: 0.78; }
.tk-band { display: flex; justify-content: space-between; align-items: center; height: 2.25rem; padding: 0 1.25rem; background: url(../img/guilloche-band.svg) left center / 200px 18px repeat-x, rgb(160 224 239 / 45%); border-bottom: 1px solid #C9D6E4; font: 500 0.75rem var(--font-mono); letter-spacing: 0.06em; }
.tkt.sel .tk-band { border-bottom-color: var(--color-navy); }
.tk-body { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1.25rem 1.25rem 0.5rem; }
.tk-pick { position: relative; display: grid; cursor: pointer; }
.tk-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tk-pick .bub { width: 2.75rem; height: 2.75rem; font-size: 1rem; }
.tk-pick input:checked + .bub { background: var(--color-navy); color: #fff; }
.tk-pick input:focus-visible + .bub { outline: 2.5px solid var(--color-focus); outline-offset: 3px; }
.tk-yr { font: 800 clamp(2.75rem, 2rem + 2.2vw, 3.75rem)/0.95 var(--font-heading); letter-spacing: -0.03em; }
:root:lang(bn) .tk-yr { letter-spacing: 0; line-height: 1.05; }
.tk-plan { margin-top: 0.375rem; font-weight: 700; font-size: 1.125rem; }
.tk-basis { font-size: 0.9375rem; color: var(--color-muted); }
.tkt .stamp { position: relative; right: auto; top: auto; width: 7.5rem; height: 7.5rem; padding: 0.75rem; }
.tkt .stamp strong { font-size: 1.5rem; }
.tkt .stamp strong.bn { font-size: 1.375rem; }
.tkt .stamp strong.small { font-size: 0.9375rem; }
.tkt .stamp small { font-size: 0.6875rem; margin-top: 0.25rem; }
.tkt.pop .stamp { animation: thunk 0.32s var(--ease-spring) both; }
.tk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.875rem; padding: 0 1.25rem; min-height: 2.25rem; font-size: 0.9375rem; }
.tk-meta s { color: var(--color-muted); font-size: 1.0625rem; }
.tk-meta .chip-day { font-size: 0.875rem; padding: 0.3125rem 0.75rem; }
.tk-hook { padding: 0.625rem 1.25rem 0; font: 700 1.0625rem/1.4 var(--font-heading); }
.tk-cta { margin-top: auto; padding: 1rem 1.25rem 1.25rem; }
.tk-cta .btn { width: 100%; height: 3.25rem; font-size: 1.0625rem; white-space: normal; }
.unsure { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin: 1.25rem auto 0; color: var(--color-navy); text-decoration: none; font-size: 1.0625rem; }
.unsure .bub { width: 2.25rem; height: 2.25rem; border-style: dashed; font-size: 0.875rem; }
.unsure u { color: var(--color-wa-deep); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- 03 board: scroll story (sticky, one chapter per scroll step) */
.story { --acc: #60C1E5; position: relative; background: var(--night) url(../img/binary-pattern-dark.svg) 0 0 / 360px 360px; }
.story-track { position: relative; height: calc(100svh + 6 * 72svh); }
.story-sticky { position: sticky; top: 0; display: flex; align-items: center; height: 100svh; overflow: hidden; padding-top: calc(var(--header-height) + var(--header-top) + 0.5rem); }
.story-sticky > .wrap { width: 100%; }
.story-sticky::before { content: ""; position: absolute; right: -6vw; top: 12%; width: 34vw; height: 76%; border: 2.5vw solid var(--acc); border-radius: 999px; opacity: 0.08; transition: border-color 0.6s; pointer-events: none; }
.story-head { margin-bottom: clamp(1rem, 2.5vh, 2rem); }
.story-head .label { margin-bottom: 0.5rem; }
.story-head h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
.story-head .lead { margin-top: 0.5rem; font-size: 1.0625rem; color: var(--on-night-muted); }
.story .board-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.story .rail { margin: 0; padding: 0; list-style: none; }
.story .rail::before { display: none; }
.story .ch { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.875rem; align-items: baseline; padding: 0.625rem 0.75rem; border-radius: 12px; color: var(--on-night-muted); transition: background var(--dur-base), color var(--dur-base); }
.story .ch::before { display: none; }
.story .ch .no { grid-row: 1 / 3; margin: 0; font: 600 0.875rem var(--font-mono); color: var(--acc); }
.story .ch .tt { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.1875rem); }
.story .ch .bar { grid-column: 2; display: block; height: 3px; margin-top: 0.375rem; background: rgb(160 224 239 / 12%); border-radius: 3px; overflow: hidden; }
.story .ch .bar i { display: block; height: 100%; background: var(--acc); transform: scaleX(var(--p, 0)); transform-origin: left; }
.story .ch[aria-selected="true"] { background: rgb(255 255 255 / 6%); color: #fff; }
.story .ch:hover { color: #fff; }
.story .board-wrap { position: relative; }
.bignum { position: absolute; right: -0.5rem; top: -4.5rem; z-index: 0; font: 800 clamp(6rem, 4rem + 6vw, 10rem)/1 var(--font-heading); color: transparent; -webkit-text-stroke: 2px var(--acc); opacity: 0.55; pointer-events: none; }
.sicon { position: absolute; left: -3.25rem; top: -3.75rem; z-index: 3; width: clamp(6.5rem, 5rem + 5vw, 10rem); height: auto; filter: drop-shadow(0 18px 24px rgb(0 0 0 / 35%)); animation: floaty 5s ease-in-out infinite; pointer-events: none; }
.swap { animation: swapin 0.55s var(--ease-spring) both; }
.sicon.swap { animation: swapin 0.55s var(--ease-spring) both, floaty 5s 0.55s ease-in-out infinite; }
@keyframes swapin { from { opacity: 0; transform: translateY(18px) scale(0.85) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(2deg); } }
.story .smartboard { position: relative; z-index: 1; }
.story .bezel { aspect-ratio: 16 / 9.4; box-shadow: 0 0 0 3px var(--acc); transition: box-shadow 0.6s; }
.story .board-line { display: block; margin-top: 1rem; font: 600 1.25rem/1.45 var(--font-heading); color: #fff; }
.story .board-line::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 0.625rem; background: var(--acc); vertical-align: 2px; }
.story .note { color: var(--on-night-muted); margin-top: clamp(0.75rem, 2vh, 1.5rem); }
.cc2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.cc2 .term { padding: 1rem; }
.cc2 .tag { display: inline-block; margin-bottom: 0.625rem; padding: 0.25rem 0.625rem; border-radius: 99px; background: #1B365D; color: #fff; font: 600 0.75rem/1.2 var(--font-body); }
.cc2 .t-py .tag { background: #FFD23F; color: #1B365D; }
.cc2 .src { text-decoration: none; animation: none; }
.cc2 .out { opacity: 1; animation: none; }
.scene:not(.done) .cc2 .term { opacity: 0; animation: rise 0.45s calc(var(--i, 0) * 0.25s + 0.1s) var(--ease-out) forwards; }
.motion-paused .sicon { animation: none; }

/* ---------- 04 lab teaser */
.lab-teaser { background-color: #fff; }
.lt-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.lt-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.75rem 0 2.25rem; padding: 0; list-style: none; }
.lt-tools li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; border: 1px solid var(--color-border); border-radius: 99px; background: #fff; font-weight: 600; font-size: 0.9375rem; }
.lt-tools .dot { width: 9px; height: 9px; background: var(--acc); }
.lt-tools.on-dark li { background: rgb(255 255 255 / 6%); border-color: var(--night-line); color: var(--on-night); }
.lab-cta { display: inline-flex; align-items: center; gap: 1.25rem; padding: 0.75rem 0.75rem 0.75rem 2rem; min-height: 5.25rem; border-radius: 999px; background: var(--night); color: #fff; text-decoration: none; box-shadow: 0 0 0 0 rgb(96 193 229 / 0); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.lab-cta:hover { transform: translateY(-3px); box-shadow: 0 0 0 6px rgb(96 193 229 / 25%); }
.lab-cta-txt { display: grid; gap: 2px; }
.lab-cta-txt b { font: 700 clamp(1.375rem, 1.1rem + 1vw, 1.875rem)/1.1 var(--font-heading); }
.lab-cta-txt small { font-size: 0.8125rem; color: var(--on-night-muted); }
.lab-cta .orb { display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%; background: var(--color-sky); color: #07203A; font-size: 1.625rem; font-weight: 700; transition: transform var(--dur-base) var(--ease-spring); }
.lab-cta:hover .orb { transform: translateX(4px) rotate(-45deg); }
.lt-preview { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; padding: 1.25rem; border-radius: 1.75rem; background: var(--night) url(../img/binary-pattern-dark.svg) 0 0 / 200px 200px; text-decoration: none; }
.mini { display: grid; place-items: center; min-height: 8.5rem; padding: 1rem; border-radius: 1.125rem; background: var(--night-2); border: 1px solid var(--night-line); color: var(--on-night); }
.m-bits { display: flex; gap: 6px; }
.m-bits i { display: grid; place-items: center; width: 1.75rem; height: 2.25rem; border: 1.5px solid var(--night-line); border-radius: 6px; font: 600 1.125rem var(--font-mono); font-style: normal; animation: mflip 2.4s calc(var(--n, 0) * 0.2s) infinite; }
.m-bits i:nth-child(2) { --n: 1; } .m-bits i:nth-child(3) { --n: 2; } .m-bits i:nth-child(4) { --n: 3; } .m-bits i:nth-child(5) { --n: 4; } .m-bits i:nth-child(6) { --n: 5; }
@keyframes mflip { 0%, 70%, 100% { background: transparent; } 80% { background: rgb(96 193 229 / 35%); transform: rotateX(180deg); } }
.m-gate svg, .m-net svg { width: 100%; }
.m-gate .g { fill: var(--night); stroke: var(--on-night); stroke-width: 3; }
.m-gate .w { stroke: var(--color-sky); stroke-width: 4; fill: none; stroke-dasharray: 6 8; animation: flow 0.8s linear infinite; }
.m-gate .lamp { fill: #FFD23F; animation: lamp 1.4s infinite; }
.m-net path { stroke: #4F6A8C; stroke-width: 2; fill: none; }
.m-net rect { fill: var(--color-sky); }
.m-net .pk { fill: #FF6B6B; }
.m-code { font: 500 1rem/1.6 var(--font-mono); text-align: center; }
.m-code b { color: var(--color-sky); } .m-code em { color: #FFD23F; font-style: normal; }
.lt-3d { position: absolute; right: -2.25rem; top: -2.75rem; width: 8.5rem; animation: floaty 5s ease-in-out infinite; filter: drop-shadow(0 14px 20px rgb(0 0 0 / 25%)); }
.motion-paused .m-bits i, .motion-paused .m-gate .w, .motion-paused .m-gate .lamp, .motion-paused .lt-3d { animation: none; }

/* ---------- 05 real talk: compact enough to fit one window */
.bento { grid-template-rows: clamp(14rem, 30vh, 17.5rem) auto; gap: 0.875rem; }
.tile.desk { min-height: 0; grid-column: 1 / 8; grid-row: 1; }
.tile.keys { grid-column: 8 / 13; grid-row: 1; }
.tile.b3d { min-height: 0; grid-column: 1 / 6; grid-row: 2; }
.tile.b3d > img { padding: 4.5rem 1rem 0.75rem; max-height: 20rem; }
.tile.chat { grid-column: 6 / 13; grid-row: 2; padding: 1.25rem 1.5rem; }
.tile figcaption { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.375rem); }
.m { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem); }
.chat-head { font-size: 1.125rem; }
.msgs { margin: 0.875rem 0; gap: 0.5rem; }
#real-talk .sec-head { margin-bottom: 1.75rem; }

/* ---------- 06 FAQ: bigger type */
.q .qt { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
.ans { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem); line-height: 1.7; }
.q .prompt { font-size: 1rem; }

/* ---------- 07 location */
.grid-panel .area { position: absolute; left: 50%; bottom: 1.25rem; padding: 0.5rem 1rem; border-radius: 99px; background: var(--color-navy); color: #fff; font-weight: 700; transform: translateX(-50%); }
.addr-label { font: 500 0.875rem var(--font-mono); color: var(--color-blue); letter-spacing: 0.04em; }
.addr { font: 700 clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem)/1.3 var(--font-heading); }
.phones { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.ph { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; border: 1.5px solid var(--color-border); border-radius: 12px; color: var(--color-navy); text-decoration: none; font: 600 1.25rem/1 var(--font-mono); }
.ph:hover { border-color: var(--color-navy); }
.ph .wa-tag { padding: 0.2rem 0.45rem; border-radius: 6px; background: var(--color-wa); color: var(--color-wa-ink); font: 700 0.6875rem/1 var(--font-body); font-style: normal; }
.coords div { padding-bottom: 0.5rem; }
.coords dd { font-size: 1.125rem; }

/* ---------- final CTA: brand "0", logo reveal, punchier copy */
.final-sec { position: relative; overflow: hidden; padding-block: var(--section-space); }
.big0 { position: absolute; right: -10vw; top: 50%; width: min(52vw, 46rem); aspect-ratio: 0.58; border: clamp(2.5rem, 5vw, 4.5rem) solid rgb(96 193 229 / 10%); border-radius: 999px; transform: translateY(-50%); pointer-events: none; }
.final-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.final { align-items: flex-start; text-align: left; margin-top: 0; gap: 1.5rem; }
.final-title { max-width: 15em; text-align: left; }
.final-title.small { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
.final-sub { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); color: var(--on-night-muted); max-width: 40ch; }
.final .phone { justify-content: flex-start; flex-wrap: wrap; gap: 0.75rem; color: var(--on-night-muted); }
.dark .ph { color: var(--on-night); border-color: var(--night-line); }
.dark .ph:hover { border-color: var(--color-sky); }
.oframe { justify-self: center; width: min(100%, 22rem); aspect-ratio: 0.62; overflow: hidden; border: 8px solid var(--color-sky); border-radius: 999px; background: #18355B; }
.oframe video { width: 100%; height: 100%; object-fit: cover; }
.cta3d { justify-self: center; width: min(100%, 26rem); animation: floaty 6s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgb(0 0 0 / 35%)); }

/* ---------- footer */
.foot { padding-top: 0; }
.foot > .bitstripe { margin-bottom: 3rem; }
.foot-brand img { width: 13.5rem; margin-bottom: 0.875rem; }
.foot-info { display: grid; gap: 0.75rem; justify-items: start; }
.f-addr { font-weight: 600; font-size: 1.0625rem; color: var(--on-night); }

/* ---------- lab page */
.labpage { background: var(--night); }
.lab-hero { position: relative; overflow: hidden; min-height: min(78svh, 46rem); display: flex; align-items: center; padding-block: calc(var(--header-height) + 3rem) 4rem; }
.lh-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.06) translateX(-1.5%); } }
.lab-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 26 51 / 92%) 0%, rgb(10 26 51 / 70%) 42%, rgb(10 26 51 / 0%) 75%); pointer-events: none; }
.lh-copy { position: relative; z-index: 1; width: 100%; }
.lab-hero .display { margin: 1rem 0; font-size: clamp(3rem, 2rem + 4.5vw, 6.5rem); }
.lab-hero .display .l1, .lab-hero .display .l2 { display: block; }
.lab-hero .sub { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); color: #DCE7F3; max-width: 36ch; }
.lab-hero .bitstripe { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; }
.motion-paused .lh-bg { animation: none; }
.lab-tools { padding-block: clamp(3rem, 6vw, 6rem); }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.tool { position: relative; min-width: 0; padding: clamp(1.25rem, 2.5vw, 2rem); overflow: hidden; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 1.5rem; transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base); }
.tool:hover { border-color: color-mix(in srgb, var(--acc) 55%, transparent); transform: translateY(-3px); }
.tool.full { grid-column: 1 / -1; }
.tool-h { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.tool-h h2 { margin: 0; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
.chip-ch { padding: 0.3125rem 0.75rem; border-radius: 99px; background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--acc); font: 600 0.8125rem/1 var(--font-mono); white-space: nowrap; }
.lab-bits { position: static; width: auto; padding: 0; background: none; border: 0; box-shadow: none; }
.lab-bits .bits-title, .lab-bits .tap-hint { display: none; }
.lab-bits .bits-head { justify-content: flex-start; }
.lab-bits .bit { background: var(--night); border-color: var(--night-line); color: var(--on-night); height: 4.25rem; }
.lab-bits .bit[aria-pressed="true"] { background: rgb(60 199 180 / 22%); border-color: var(--acc); }
.lab-bits .bit .pv { color: var(--on-night-muted); }
.lab-bits .bit-out { margin-top: 1rem; font-size: 1.125rem; }
.lab-bits .seg { background: var(--night); }
.netsvg { width: 100%; max-height: 17rem; }
.netsvg .links line { stroke: #4F6A8C; stroke-width: 2.5; }
.netsvg .links .busl { stroke-width: 6; stroke: #6F8BAA; }
.netsvg .route { fill: none; stroke: var(--acc); stroke-width: 3; stroke-dasharray: 6 8; opacity: 0.6; }
.netsvg .nd rect { fill: var(--night); stroke: var(--color-ice); stroke-width: 2; }
.netsvg .nd.end rect { stroke: var(--acc); stroke-width: 3; }
.netsvg .nd.hub rect { fill: #1B365D; }
.netsvg .nd text { fill: var(--on-night); font: 700 13px var(--font-mono); text-anchor: middle; }
.netsvg .pkt { fill: #FFD23F; }
.netsvg.arrived .nd.end:last-of-type rect, .netsvg.arrived .nd.end rect { fill: color-mix(in srgb, var(--acc) 35%, transparent); }
.net-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 0.75rem; }
.dark .btn.p.sm { height: 2.75rem; }
.btn.ghost-l { background: transparent; color: var(--on-night); border-color: var(--night-line); }
.btn.ghost-l:hover { border-color: var(--on-night); }
.cmp { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; }
.cpane { min-width: 0; padding: 1rem; background: var(--night); border: 1px solid var(--night-line); border-radius: 1rem; }
.cpane .tag { display: inline-block; margin-bottom: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 99px; background: #1B365D; color: #fff; font: 600 0.8125rem/1.2 var(--font-body); }
.cpane.py .tag { background: #FFD23F; color: #1B365D; }
.code-l { margin: 0; padding: 0; list-style: none; font: 500 clamp(0.875rem, 0.8rem + 0.3vw, 1rem)/1.7 var(--font-mono); }
.code-l li { display: flex; gap: 0.875rem; padding: 0 0.5rem; border-radius: 6px; transition: background var(--dur-base); white-space: pre; overflow-x: auto; }
.code-l .ln { color: #4F6A8C; min-width: 1.25rem; text-align: right; user-select: none; }
.code-l li.cur { background: color-mix(in srgb, var(--acc) 22%, transparent); color: #fff; }
.trace { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem 1.5rem; align-items: center; margin-top: 1.25rem; }
.tdesc { grid-column: 1 / -1; font-size: 1.1875rem; font-weight: 600; }
.stepn { display: inline-block; margin-right: 0.5rem; padding: 0.125rem 0.5rem; border-radius: 6px; background: var(--acc); color: #0A1A33; font: 700 0.8125rem/1.4 var(--font-mono); }
.tvars { display: flex; align-items: center; gap: 1.25rem; }
.tout { display: grid; gap: 0.25rem; font: 500 0.8125rem var(--font-mono); color: var(--on-night-muted); }
.tout b { min-width: 3rem; padding: 0.375rem 0.75rem; border-radius: 8px; background: var(--night); border: 1px solid var(--night-line); color: #FFD23F; font: 700 1.375rem/1 var(--font-mono); }
.trace .net-row { margin: 0; justify-content: flex-end; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- responsive (v4) */
@media (max-width: 1023px) {
  .tickets { grid-template-columns: 1fr; }
  .story .board-grid { grid-template-columns: 1fr; gap: 1rem; }
  .story .rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.375rem; }
  .story .ch { grid-template-columns: 1fr; padding: 0.5rem; border: 1px solid var(--night-line); text-align: left; background: none; }
  .story .ch .no, .story .ch .tt { display: none; }
  .story .ch .short { display: block; font-size: 0.875rem; font-weight: 600; color: inherit; }
  .story .ch .bar { grid-column: 1; }
  .story .ch[aria-selected="true"] { background: rgb(255 255 255 / 8%); color: #fff; border-color: var(--acc); }
  .story-head .lead { display: none; }
  .story .bezel { aspect-ratio: auto; min-height: 15rem; }
  .bignum { font-size: 5rem; top: -3.25rem; }
  .sicon { left: auto; right: -0.5rem; top: -3rem; width: 5.5rem; }
  .story .note { display: none; }
  .lt-grid, .final-grid, .tools-grid { grid-template-columns: 1fr; }
  .lt-3d { right: -0.5rem; width: 6rem; }
  .bento { grid-template-rows: none; }
  .tile.desk, .tile.keys, .tile.b3d, .tile.chat { grid-column: auto; grid-row: auto; }
  .tile.desk { aspect-ratio: 16 / 10; }
  .tile.keys { aspect-ratio: 16 / 11; }
  .tile.b3d { aspect-ratio: 16 / 11; }
  .oframe { width: min(70%, 16rem); }
  .cmp { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .cam { aspect-ratio: 4 / 3; border-radius: 1.25rem; }
  .cam-layer { top: 0; left: 50%; width: auto; height: 100%; transform: translateX(-62%); }
  .hero .sub { font-size: 1.25rem; }
  .tk-body { grid-template-columns: auto 1fr; }
  .tkt .stamp { grid-column: 1 / -1; justify-self: end; margin-top: -3.5rem; width: 6.5rem; height: 6.5rem; }
  .story-track { height: calc(100svh + 6 * 60svh); }
  .story-head h2 { font-size: 1.75rem; }
  .story .board-line { font-size: 1.0625rem; }
  .lab-cta { width: 100%; justify-content: space-between; padding-left: 1.5rem; }
  .final, .final-title { text-align: left; }
  .trace { grid-template-columns: 1fr; }
  .trace .net-row { justify-content: flex-start; }
  .lab-hero { min-height: 0; }
  .lab-hero::after { background: linear-gradient(180deg, rgb(10 26 51 / 75%) 0%, rgb(10 26 51 / 92%) 60%); }
}
@media (max-height: 760px) and (min-width: 1024px) {
  .story-head .lead, .story .note { display: none; }
  .story .bezel { aspect-ratio: 16 / 8.6; }
}

/* real talk (v6): 3-column bento, wide photo on top-left, chat as a tall phone-style column on the right */
@media (min-width: 1024px) and (min-height: 600px) {
  #real-talk { display: flex; flex-direction: column; height: clamp(36rem, calc(100svh - var(--anchor-offset, 5.5rem)), 56rem); padding-block: 1.75rem; scroll-margin-top: var(--anchor-offset, 5.5rem); }
  #real-talk > .wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; }
  #real-talk .sec-head { margin-bottom: 1.25rem; }
  #real-talk h2 { max-width: none; font-size: clamp(2rem, 1.1rem + 2.1vw, 3.25rem); }
  #real-talk .bento { flex: 1; min-height: 0; grid-template-columns: 1fr 1fr 1.08fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
  #real-talk .tile { min-height: 0; aspect-ratio: auto; }
  #real-talk .tile.desk { grid-column: 1 / 3; grid-row: 1; }
  #real-talk .tile.desk > img { object-position: 50% 60%; }
  #real-talk .tile.keys { grid-column: 1; grid-row: 2; background: #fff; border: 1px solid var(--color-border); }
  #real-talk .tile.keys > img { object-fit: cover; object-position: 50% 70%; }
  #real-talk .tile.b3d { grid-column: 2; grid-row: 2; }
  #real-talk .tile.b3d > img { max-height: none; padding: 4rem 1rem 0.75rem; object-fit: contain; }
  #real-talk .tile.chat { grid-column: 3; grid-row: 1 / 3; display: flex; flex-direction: column; padding: 1.25rem 1.375rem; }
  #real-talk .chat-head { font-size: 1.0625rem; }
  #real-talk .msgs { flex: 1; align-content: center; margin: 0.75rem 0; gap: 0.5rem; }
  #real-talk .m { max-width: 88%; padding: 0.5rem 0.875rem; font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.25rem); line-height: 1.38; }
  #real-talk .reply-hint { margin-top: 0.5rem; font-size: 0.875rem; }
  #real-talk .tile figcaption { font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem); }
}
@media (min-width: 1024px) and (min-height: 600px) and (max-height: 760px) {
  #real-talk .m { font-size: 1.0625rem; line-height: 1.3; padding-block: 0.375rem; }
  #real-talk .m .who { margin-bottom: 0; }
  #real-talk .msgs { margin: 0.5rem 0; gap: 0.375rem; }
}
.story .ch .tt { text-align: left; justify-self: start; }
.tickets:has(.sel) .tkt:not(.sel) { opacity: 0.84; }
.lab-bits .seg button[aria-pressed="true"] { background: #fff; color: #0A1A33; }
.dark .bit-out a { color: var(--color-sky); }
.lab-bits { display: flex; flex-direction: column; justify-content: center; min-height: 70%; }
@media (max-width: 767px) {
  .tk-body { grid-template-columns: auto 1fr auto; gap: 0.75rem; padding: 1rem 1rem 0.25rem; }
  .tkt .stamp { grid-column: auto; justify-self: auto; margin: 0; width: 5.5rem; height: 5.5rem; padding: 0.5rem; }
  .tkt .stamp strong { font-size: 1.05rem; } .tkt .stamp strong.bn { font-size: 1rem; } .tkt .stamp small { font-size: 0.55rem; }
  .tk-yr { font-size: 2.5rem; } .tk-plan { font-size: 1rem; }
  .tk-meta, .tk-hook { padding-inline: 1rem; } .tk-cta { padding: 0.875rem 1rem 1rem; }
  .story-sticky { padding-top: calc(var(--header-height) + 0.25rem); }
  .story .bezel { min-height: 0; height: min(44svh, 22rem); padding-right: 2.25rem; }
  .story .screen { padding: 0.5rem; }
  .story .bin, .story .htm, .story .cc2 { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .story .go { transform: none; font-size: 1.25rem; }
  .story .ladder p { font-size: 0.68rem; margin: 0.2rem 0; } .story .gname { font-size: 0.7rem; } .story .tt { font-size: 0.62rem; }
  .story .buzz { grid-template-columns: 1fr 1fr; gap: 0.4rem; } .story .buzz .tile { min-height: 2.4rem; padding: 0.4rem; font-size: 0.78rem; }
  .story .topo { grid-template-columns: repeat(4, 1fr); gap: 0.25rem; } .story .topo figcaption { font-size: 0.68rem; }
  .story .term { padding: 0.6rem; font-size: 0.72rem; } .story .cc2 .tag { font-size: 0.62rem; }
  .story .code { padding: 0.5rem; font-size: 0.68rem; } .story .view p { padding: 0.6rem; font-size: 0.95rem; }
  .story .res { font-size: 0.72rem; min-width: 70%; } .story .res th, .story .res td { padding: 0.3rem 0.6rem; }
  .story .board-line { margin-top: 0.6rem; font-size: 1rem; }
}

/* ---------- fixes from the second Codex review */
/* the board screen is white inside a dark section: give it back the light palette (was ~1.1:1 contrast) */
.story .screen { --color-navy: #1B365D; --color-text: #1B365D; --color-muted: #596B80; --color-border: #DCE5EF; --color-paper: #F5F8FB; color: #1B365D; }
.story .ch:focus-visible { outline: 2.5px solid var(--acc); outline-offset: 2px; }
.cs-q + .cs-row { border-top-width: 0.35cqw; }
.cs:not(.on), .cs:not(.on) * { animation-play-state: paused !important; }
.wabar { visibility: hidden; transition: transform var(--dur-base) var(--ease-out), visibility 0s var(--dur-base); }
.wabar.show { visibility: visible; transition: transform var(--dur-base) var(--ease-out), visibility 0s; }
html:not(.js) .story-track { height: auto; }
html:not(.js) .story-sticky { position: static; height: auto; }
@media (max-height: 560px) {
  .story-track { height: auto; }
  .story-sticky { position: static; height: auto; padding-block: 5rem 3rem; }
}
@media (max-width: 1023px) { .brand img { width: 8rem; } }
@media (max-width: 767px) {
  .story .htm { grid-template-columns: 1fr 1fr; }
  .story .htm .go { display: none; }
  .tkt .stamp small { font-size: 0.625rem; }
}

/* ---------- v5: interactive map in the location card */
.map-panel { min-height: 28rem; isolation: isolate; }
.map-poster { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 0.5s var(--ease-out); }
.map-wait { position: absolute; left: 50%; bottom: 5.5rem; transform: translateX(-50%); font: 500 0.875rem var(--font-mono); color: var(--color-muted); }
html:not(.js) .map-wait { display: none; }
.map-frame { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.6s var(--ease-out); }
.map-panel.loaded .map-frame { opacity: 1; }
.map-panel.loaded .map-poster { opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0s 0.5s; }
.map-ui { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.625rem; pointer-events: none; }
.map-ui > * { pointer-events: auto; }
html:not(.js) .mapseg { display: none; }
.mapseg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--color-navy); box-shadow: 0 10px 24px -10px rgb(10 26 51 / 55%); }
.mapseg button { min-height: 2.5rem; padding: 0 1.125rem; border: 0; border-radius: 999px; background: transparent; color: #DCE8F5; font: 600 0.9375rem var(--font-body); cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast); }
.mapseg button[aria-pressed="true"] { background: var(--color-sky); color: var(--color-navy); }
.mapseg button:focus-visible, .map-go:focus-visible, .copy-addr:focus-visible { outline: 2.5px solid var(--color-marker); outline-offset: 2px; }
.map-go { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0 1.25rem; border-radius: 999px; background: var(--color-marker); color: var(--color-navy); font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -10px rgb(10 26 51 / 55%); transition: transform var(--dur-fast) var(--ease-out); }
.map-go:hover { transform: translateY(-2px); }
.map-go svg { width: 1.125rem; height: 1.125rem; }
.copy-addr { display: inline-flex; vertical-align: middle; align-items: center; gap: 0.375rem; margin-left: 0.25rem; padding: 0.375rem 0.75rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-paper); color: var(--color-blue); font: 600 0.875rem var(--font-body); cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.copy-addr:hover { border-color: var(--color-blue); background: #fff; }
.copy-addr svg { width: 1rem; height: 1rem; }
@media (max-width: 1023px) { .map-panel { min-height: 22rem; } }
@media (max-width: 480px) { .map-ui { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; } .mapseg button { padding: 0 0.875rem; } .map-go { min-height: 2.75rem; padding: 0 1rem; } }

/* ---------- v5: board typography: one scale for every chapter, sized to the board (container units) */
.story .screen { container-type: inline-size; }
@media (min-width: 768px) {
  .story .buzz { gap: 0.75rem; }
  .story .buzz .tile { min-height: 0; padding: 1.1cqw 1.2cqw; gap: 0.9cqw; border-width: 2px; font: 600 clamp(0.9375rem, 2.9cqw, 1.625rem)/1.2 var(--font-heading); letter-spacing: -0.01em; overflow-wrap: anywhere; hyphens: auto; aspect-ratio: 2.3 / 1; }
  .story .buzz .tile .tk { flex: none; width: clamp(1.25rem, 3.2cqw, 1.875rem); height: clamp(1.25rem, 3.2cqw, 1.875rem); }
  .story .topo figcaption { margin-top: 0.75rem; font: 700 clamp(0.9375rem, 2.9cqw, 1.625rem)/1.2 var(--font-heading); }
  .story .ladder p { margin: 0.55cqw 0; font: 600 clamp(0.875rem, 3.05cqw, 1.625rem)/1.35 var(--font-mono); letter-spacing: -0.01em; }
  .story .ladder p.res { margin-top: 1.4cqw; padding: 0 0.25em; font-weight: 700; }
  .story .gname { font: 700 clamp(0.8125rem, 2.3cqw, 1.25rem) var(--font-heading); color: var(--color-navy); letter-spacing: 0.02em; }
  .story .gate .lbl { font: 700 15px var(--font-heading); }
  .story .screen .tt { font: 700 clamp(0.8125rem, 2.5cqw, 1.375rem) var(--font-mono); }
  .story .screen .tt th, .story .screen .tt td { padding: 0.5cqw 1.9cqw; }
  .story .htm .code { padding: 1.6cqw 1.8cqw; font: 600 clamp(0.875rem, 3cqw, 1.625rem)/1.45 var(--font-mono); }
  .story .htm .go { font-size: clamp(1.25rem, 3.5cqw, 2.25rem); color: var(--color-blue); }
  .story .view p { padding: 2.2cqw 2cqw; font: 800 clamp(1.25rem, 5.6cqw, 3rem)/1.1 var(--font-heading); letter-spacing: -0.02em; }
  .story .cc2 { gap: 1.6cqw; }
  .story .term { padding: 2cqw 2.2cqw; font: 600 clamp(0.9375rem, 3.3cqw, 1.75rem)/1.5 var(--font-mono); }
  .story .cc2 .tag { margin-bottom: 1.2cqw; padding: 0.45em 0.9em; font: 700 clamp(0.8125rem, 2.1cqw, 1.125rem)/1.1 var(--font-heading); letter-spacing: 0.01em; }
  .story .sql { gap: 2cqw; }
  .story .sql .code { padding: 1.4cqw 1.8cqw; font: 600 clamp(0.8125rem, 2.6cqw, 1.4375rem)/1.45 var(--font-mono); }
  .story .res { min-width: 60%; font: 600 clamp(0.875rem, 2.9cqw, 1.5rem) var(--font-body); }
  .story .res th { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.04em; text-transform: uppercase; }
  .story .res th, .story .res td { padding: 0.9cqw 2cqw; }
}
html[lang="bn"] .story .buzz .tile, html[lang="bn"] .story .topo figcaption, html[lang="bn"] .story .view p { font-family: var(--font-bn), var(--font-heading); }
/* chapter rail: number in its own column, title and progress bar always start on the same edge */
.story .ch .no { grid-column: 1; grid-row: 1 / span 2; }
.story .ch .tt { grid-column: 2; grid-row: 1; margin-inline: 0; }
.story .ch .bar { grid-column: 2; grid-row: 2; }

/* ---------- v5: hero offers in full colour */
.hero .promo.free { background: linear-gradient(100deg, #D42A3F, #C2185B); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 10px 30px -12px rgb(212 42 63 / 75%), inset 0 1px 0 rgb(255 255 255 / 22%); }
.hero .promo.free .live { background: #fff; }
.hero .promo.free .live::after { border-color: #fff; }
.hero .promo:not(.free) { position: relative; overflow: hidden; background: #FFD23F; border-color: transparent; color: #0A1A33; font-weight: 600; box-shadow: 0 10px 30px -12px rgb(255 210 63 / 70%), inset 0 1px 0 rgb(255 255 255 / 45%); }
.hero .promo:not(.free) .badge { background: #0A1A33; color: #FFD23F; }
.hero .promo:not(.free)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 55%) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.6s 1.2s var(--ease-out) infinite; pointer-events: none; }
.hero .promo:hover { border-color: transparent; transform: translateY(-1px); }
.hero .promo { transition: transform var(--dur-fast) var(--ease-out); }
.hero .promo:focus-visible { outline: 2.5px solid #fff; outline-offset: 3px; }
@keyframes shine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.motion-paused .hero .promo::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .hero .promo:not(.free)::after { animation: none; display: none; } }

/* map controls sit above Google's own footer line */
.map-ui { bottom: 2.25rem; left: 0.875rem; right: 0.875rem; }
@media (max-width: 480px) {
  .map-ui { top: 0.75rem; bottom: auto; left: 0.625rem; right: 0.625rem; flex-wrap: nowrap; gap: 0.375rem; }
  .mapseg button { min-height: 2.25rem; padding: 0 0.75rem; font-size: 0.8125rem; }
  .map-go { min-height: 2.5rem; padding: 0 0.875rem; gap: 0.375rem; font-size: 0.875rem; white-space: nowrap; }
  .map-go .ext, .map-go svg + span + * { display: none; }
}

/* ---------- v6: phone view, stripped to the essentials */
@media (max-width: 767px) {
  /* hero: one pill, headline, line, one big button, one text link */
  .hero .promo.free, #playBtn, .pong-hint, .scroll-cue, .stk { display: none !important; }
  .hero .offers { margin-bottom: 0.25rem; }
  .hero .promo { font-size: 0.875rem; min-height: 2.5rem; }
  .hero .ctas { gap: 0.25rem; }
  .hero .ctas .btn.ghost { min-height: 2.75rem; border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; font-size: 1rem; }
  .hero .sub { margin-bottom: 0.25rem; }
  .cam-dots { display: none; }

  /* sections: heading + the thing itself, no intros or footnotes */
  .sec-head .lead, #batches .note, .story .note, .story-head .lead, .lab-teaser .lt-tools, .lab-teaser .lt-preview, .addr-note, .coords, .final-sub, .oframe, .big0 { display: none !important; }
  .sec-head { margin-bottom: 1.5rem; }
  .sec { padding-block: 3.5rem; }

  /* board: no pinning on phones; tap a chapter chip to change the board */
  .story-track { height: auto !important; }
  .story-sticky { position: static !important; height: auto !important; padding-block: 3.5rem 3rem; overflow: visible; }
  .sicon, .bignum { display: none; }

  /* real talk: just the three memes as one swipeable row (the WhatsApp bar is always there) */
  #real-talk .bento { display: flex; flex-wrap: nowrap; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--page-gutter) * -1); padding: 0 var(--page-gutter) 0.25rem; scrollbar-width: none; }
  #real-talk .bento::-webkit-scrollbar { display: none; }
  #real-talk .tile.desk, #real-talk .tile.keys, #real-talk .tile.b3d { flex: 0 0 78%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
  #real-talk .tile.b3d > img { padding: 3.5rem 0.75rem 0.5rem; }
  #real-talk .tile.chat { display: none; }
  #real-talk .tile figcaption { font-size: 0.9375rem; padding: 0.5rem 0.75rem; }

  /* lab teaser: heading and the button */
  .lab-teaser .lab-cta { margin-top: 0.5rem; }

  /* location: map, address, numbers, buttons */
  .map-panel { min-height: 16rem; }
  .info-panel { gap: 0.875rem; padding: 1.25rem; }
}
@media (max-width: 767px) {
  /* tickets: year, plan, price, button */
  .tkt .tk-basis, .tkt .tk-hook, .tkt .tk-meta .small { display: none; }
  /* chapter chips and board fit the phone width */
  .story .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story .rail li { min-width: 0; }
  .story .ch .short { overflow-wrap: anywhere; font-size: 0.8125rem; line-height: 1.2; }
  .story .board { min-width: 0; }
  .story .screen { container-type: inline-size; }
  .story .buzz { grid-template-columns: 1fr 1fr; gap: 0.375rem; }
  .story .buzz .tile { min-height: 0; gap: 0.375rem; padding: 0.375rem 0.5rem; font: 600 clamp(0.6875rem, 3.6cqw, 0.875rem)/1.2 var(--font-heading); overflow-wrap: anywhere; }
  .story .buzz .tile .tk { flex: none; width: 1rem; height: 1rem; }
  .lt-copy .lead { display: none; }
}
@media (max-width: 767px) {
  .story .rail { display: flex; flex-wrap: nowrap; gap: 0.375rem; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(var(--page-gutter) * -1); padding: 0 var(--page-gutter) 0.25rem; scrollbar-width: none; }
  .story .rail::-webkit-scrollbar { display: none; }
  .story .rail li { flex: none; scroll-snap-align: start; }
  .story .ch { padding: 0.5rem 0.875rem; border-radius: 999px; }
  .story .ch .short { white-space: nowrap; overflow-wrap: normal; font-size: 0.875rem; }
  .story .ch .bar { display: none; }
  .story .bezel .tools { display: none; }
  .story .buzz .tile { font-size: clamp(0.6875rem, 3.5cqw, 0.875rem); overflow-wrap: normal; word-break: normal; hyphens: auto; }
}
@media (max-width: 767px) {
  .foot .foot-info { display: none; } /* address and numbers are already in the location card and final CTA */
  .foot-row { padding-block: 2rem 0.5rem; }
}

/* ================================================================ v7: minimal, mobile-first pass */

/* syllabus: one tabbed board, never pinned (was 6 extra screens of scrolling) */
.story-track { height: auto !important; }
.story-sticky { position: static !important; height: auto !important; overflow: visible; padding-block: clamp(3.5rem, 5vw, 4.5rem); }
.story .note { display: none; }
.story-head { margin-bottom: 1.25rem; }
.story .sicon, .story .bignum, .story .ch .bar, .story .bezel .tools { display: none !important; }
.story .board-grid { align-items: center; }
.story .ch { transition: background var(--dur-base), color var(--dur-base), box-shadow var(--dur-base); }
.story .ch[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--acc); }
.story .scene { animation: chIn 0.18s var(--ease-out); }
@keyframes chIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .story .scene { animation: none; } }

/* map: phones show a poster with a "Show the map" button until tapped */
.map-load { display: none; }
@media (max-width: 767px) {
  .map-load { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0 1.25rem; border: 0; border-radius: 999px; background: #1B365D; color: #fff; font: 600 1rem var(--font-body); box-shadow: 0 10px 24px -10px rgb(10 26 51 / 55%); cursor: pointer; }
  .map-load svg { width: 1.25rem; height: 1.25rem; }
  .map-panel.on .map-load { display: none; }
  .map-panel:not(.on) .map-ui { display: none; }
  .map-panel .pin, .map-panel .ring, .map-wait { display: none; }
}

@media (max-width: 767px) {
  /* hero: compact so the smartboard shows inside the first screen */
  .hero-top { padding-block: 1.75rem 1.5rem; }
  .hero .display { margin: 1rem 0 0.75rem; font-size: clamp(2.375rem, 9.6vw, 2.875rem); line-height: 1.12; }
  .hero .sub { font-size: 1.125rem; line-height: 1.5; margin-bottom: 0.5rem; }
  .hero .ctas { width: 100%; }
  .hero .ctas .btn.wa { width: 100%; justify-content: center; }
  .stage-wrap { padding-bottom: 1.5rem; }
  .stage .cam { border-radius: 1rem; }

  /* no marquee on phones */
  .ticker { display: none; }

  /* syllabus: 3 x 2 grid of short chapter tabs, board under it */
  .story-sticky { padding-block: 3.5rem 2.5rem; }
  .story .rail { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.375rem; overflow: visible; margin: 0 0 0.75rem; padding: 0; }
  .story .rail li { min-width: 0; }
  .story .ch { min-height: 3rem; padding: 0.5rem 0.375rem; border-radius: 12px; text-align: center; justify-content: center; box-shadow: none !important; }
  .story .ch .short { white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual; font-size: 0.8125rem; line-height: 1.2; text-align: center; }
  .story .board-line { font-size: 1rem; }

  /* FAQ: plain question list */
  .console .titlebar, .console .prompt, .console .no, .console .caret, .console .arrow { display: none !important; }
  .console { border-radius: 16px; }
  .console .q summary { padding-block: 1rem; }
  .console details.q summary { grid-template-columns: 1fr 1.5rem; gap: 0.75rem; padding: 1rem 1.125rem; }
  .console .ans { padding: 0 1.125rem 1.125rem !important; }

  /* final CTA and footer: no duplicates, no decoration */
  #copyBtn { display: none; }
  .foot .giant, .foot .bitstripe { display: none; }
}
@media (max-width: 767px) {
  .story .bezel { aspect-ratio: 4 / 3; min-height: 0; }
  .story .ch { display: flex; align-items: center; }
}

/* ================================================================ v8: six-chapter slideshow */
.story .story-head { margin-bottom: clamp(1rem, 2.5vw, 1.75rem); }
.deck { --acc: #60C1E5; margin-inline: calc(var(--page-gutter) * -1); }
.deck-track { --sw: min(54rem, calc(100vw - 2 * var(--page-gutter) - 1.25rem)); display: flex; gap: clamp(0.75rem, 2vw, 1.25rem); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0.5rem max(var(--page-gutter), calc((100% - var(--sw)) / 2)) 1rem; scroll-padding-inline: max(var(--page-gutter), calc((100% - var(--sw)) / 2)); outline: none; cursor: grab; touch-action: pan-x pan-y; }
.deck-track::-webkit-scrollbar { display: none; }
.deck-track:focus-visible { box-shadow: inset 0 0 0 2px var(--acc); border-radius: 1.5rem; }
.deck-track.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.slide { flex: 0 0 var(--sw); scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; gap: 0.875rem; min-width: 0; padding: clamp(1rem, 2.2vw, 1.5rem); border-radius: 1.5rem; background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 14%, #102544), #0C1F3A 70%); border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent); box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--acc) 70%, transparent); color: var(--on-night); }
@supports (animation-timeline: view()) {
  .slide { animation: slideFocus linear both; animation-timeline: view(inline); animation-range: cover 0% cover 100%; }
  @keyframes slideFocus { 0% { opacity: 0.4; transform: scale(0.93); } 38%, 62% { opacity: 1; transform: none; } 100% { opacity: 0.4; transform: scale(0.93); } }
}
.sh { display: flex; align-items: center; gap: 0.875rem; }
.sno { flex: none; font: 800 clamp(2.25rem, 1.6rem + 2vw, 3.25rem)/1 var(--font-display-en, var(--font-heading)); color: transparent; -webkit-text-stroke: 1.5px var(--acc); }
.st { margin: 0; font: 700 clamp(1.0625rem, 0.95rem + 0.6vw, 1.5rem)/1.25 var(--font-heading); color: #fff; }
.shint { margin: 0.25rem 0 0; display: inline-flex; align-items: center; gap: 0.375rem; font: 600 0.8125rem/1 var(--font-body); color: var(--acc); }
.shint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 var(--acc); animation: tapPulse 1.8s ease-out infinite; }
@keyframes tapPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
.sb { position: relative; container-type: inline-size; display: grid; place-items: center; min-height: clamp(14rem, min(30vw, 42svh), 21rem); padding: clamp(0.875rem, 3cqw, 1.75rem); border-radius: 1rem; background: linear-gradient(#EEF3F8 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, #EEF3F8 1px, transparent 1px) 0 0 / 22px 22px, #fff; color: #1B365D; --color-navy: #1B365D; --color-text: #1B365D; --color-muted: #596B80; }
.sl { margin: 0; font: 600 clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem)/1.45 var(--font-body); color: var(--on-night-muted); }
.sb button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.sb button:focus-visible { outline: 2.5px solid var(--acc); outline-offset: 2px; }
.mono { font-family: var(--font-mono); }

/* controls */
.deck-ctl { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0 var(--page-gutter); }
.dnav { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none; border: 1px solid var(--night-line); border-radius: 50%; background: transparent; color: #fff; font-size: 1.125rem; cursor: pointer; transition: border-color 0.2s, background 0.2s, opacity 0.2s; }
.dnav:hover:not(:disabled) { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); }
.dnav:disabled { opacity: 0.3; cursor: default; }
.ddots { display: flex; align-items: center; gap: 0.375rem; }
.ddot { position: relative; display: grid; place-items: center; height: 2.75rem; min-width: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer; }
.ddot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgb(234 242 250 / 30%); transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.35s; }
.ddot[aria-current="true"]::before { width: 2rem; background: var(--acc); }
.ddot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ddot:focus-visible { outline: 2px solid var(--acc); outline-offset: -6px; border-radius: 99px; }

/* shared little controls inside the board */
.dchips, .seg2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; }
.dchip, .seg2 button { min-height: 2.5rem; padding: 0 1rem; border: 1.5px solid #1B365D; border-radius: 999px; background: #fff; font-weight: 600 !important; font-size: clamp(0.8125rem, 2.4cqw, 1rem) !important; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.15s; }
.dchip:active, .seg2 button:active, .b8:active, .fcard:active, .run:active, .bchip:active { transform: scale(0.95); }
.dchip[aria-pressed="true"], .seg2 button[aria-pressed="true"] { background: #1B365D; color: #fff !important; }

/* 1: flip cards */
.flips { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.4rem, 1.4cqw, 0.75rem); perspective: 900px; }
.fcard { position: relative; height: clamp(4.25rem, 15cqw, 6.25rem); padding: 0; border: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fcard.on { transform: rotateY(180deg); }
.fcard:active { transform: scale(0.97); }
.fcard.on:active { transform: rotateY(180deg) scale(0.97); }
.ff, .fb { position: absolute; inset: 0; display: grid; place-items: center; padding: 0.5rem 0.625rem; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center; }
.ff { background: #fff; border: 2px solid #1B365D; font: 700 clamp(0.8125rem, 2.9cqw, 1.25rem)/1.2 var(--font-heading); }
.fb { background: #1B365D; color: #fff; transform: rotateY(180deg); font: 500 clamp(0.75rem, 2.3cqw, 1rem)/1.3 var(--font-body); box-shadow: inset 0 -3px 0 var(--acc); }

/* 2: network */
.netx { width: 100%; display: grid; gap: 0.75rem; justify-items: center; }
.netstage { width: min(100%, 26rem); }
.dnet { width: 100%; height: auto; overflow: visible; }
.dnet .nln { fill: none; stroke: #1B365D; stroke-width: 2.5; stroke-linejoin: round; }
.dnet .ntrail { fill: none; stroke: var(--acc); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 18 82; animation: trail 1.8s linear infinite; opacity: 0.9; }
@keyframes trail { to { stroke-dashoffset: -100; } }
.dnet rect { fill: #fff; stroke: #1B365D; stroke-width: 2.5; }
.dnet rect.nhub { fill: #1B365D; }
.dnet .npkt { fill: #1B365D; stroke: var(--acc); stroke-width: 3; }

/* 3: eight bits */
.bitx { width: 100%; display: grid; gap: 0.875rem; justify-items: center; }
.bits8 { width: 100%; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(0.25rem, 1cqw, 0.5rem); }
.b8 { display: grid; place-items: center; gap: 0.125rem; aspect-ratio: 3 / 4; padding: 0.25rem 0; border: 2px solid #1B365D; border-radius: 10px; background: #fff; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.15s; }
.b8 b { font: 700 clamp(1.125rem, 5cqw, 2.25rem)/1 var(--font-mono); }
.b8 small { font: 600 clamp(0.5625rem, 1.6cqw, 0.75rem)/1 var(--font-mono); color: #596B80; }
.b8.on { background: #1B365D; color: #FFD23F; }
.b8.on small { color: #A0E0EF; }
.dec { margin: 0; display: flex; align-items: baseline; gap: 0.5rem; font: 600 clamp(1rem, 2.6cqw, 1.25rem) var(--font-body); color: #596B80; }
.dec b { font: 800 clamp(2rem, 9cqw, 3.75rem)/1 var(--font-heading); color: #1B365D; display: inline-block; }
.dec b.pop { animation: pop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* 4: html */
.htmx { width: 100%; display: grid; gap: 0.875rem; }
.htm2 { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.75rem; }
.hcode { display: block; padding: 0.75rem 0.875rem; border: 2px solid #1B365D; border-radius: 10px; background: #F5F8FB; font: 600 clamp(0.8125rem, 2.6cqw, 1.125rem)/1.4 var(--font-mono); overflow-wrap: anywhere; }
.harrow { font-size: 1.5rem; color: var(--acc); filter: brightness(0.75); }
.hwin { overflow: hidden; border: 2px solid #1B365D; border-radius: 10px; background: #fff; }
.hwin i { display: block; height: 1.25rem; background: #A0E0EF; border-bottom: 2px solid #1B365D; }
.hprev { margin: 0; padding: 0.875rem 1rem; min-height: 4.25rem; display: flex; align-items: center; font: 400 clamp(1rem, 3cqw, 1.25rem)/1.2 var(--font-body); transition: font-size 0.25s, font-weight 0.25s; }
.hprev.t-h1 { font: 800 clamp(1.375rem, 5.2cqw, 2.25rem)/1.1 var(--font-heading); }
.hprev.t-b { font-weight: 800; }
.hprev.t-i { font-style: italic; }
.hprev.t-u { text-decoration: underline 3px var(--acc); text-underline-offset: 5px; }

/* 5: C vs Python */
.codex { width: 100%; display: grid; gap: 0.875rem; justify-items: center; }
.term2 { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.875rem 0.875rem 0.875rem 1.125rem; border-radius: 12px; background: #0A1A33; color: #EAF2FA; }
.term2 code { font: 600 clamp(0.9375rem, 3.4cqw, 1.5rem)/1.3 var(--font-mono); overflow-wrap: anywhere; }
.run { flex: none; min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: 999px; background: #25D366; color: #052E1C !important; font-weight: 700 !important; cursor: pointer; transition: transform 0.15s; }
.pout { margin: 0; font: 700 clamp(1rem, 3cqw, 1.375rem) var(--font-mono); color: #0E6B36; }
.pout span { color: #596B80; font-weight: 500; font-family: var(--font-body); }
.pout.ran { animation: outIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes outIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 6: SQL */
.dbx { width: 100%; display: grid; gap: 0.875rem; }
.dbq { margin: 0; padding: 0.75rem 0.875rem; border: 2px solid #1B365D; border-radius: 10px; background: #F5F8FB; font: 600 clamp(0.75rem, 2.4cqw, 1.0625rem)/1.6 var(--font-mono); }
.bchip { min-height: 2rem; padding: 0 0.625rem; border: 0; border-radius: 8px; background: #FFD23F; color: #1B365D !important; font-weight: 800 !important; cursor: pointer; box-shadow: 0 3px 0 #C9A21E; transition: transform 0.15s; }
.dbrows { width: 100%; border-collapse: collapse; font: 600 clamp(0.9375rem, 3cqw, 1.25rem) var(--font-body); }
.dbrows th { padding: 0.5rem 0.875rem; text-align: left; background: #A0E0EF; border: 2px solid #1B365D; font: 700 0.8125rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.dbrows td { padding: 0.5rem 0.875rem; border: 2px solid #1B365D; background: #fff; animation: rowIn 0.35s calc(var(--i) * 0.07s) cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
  .deck-track { --sw: calc(100vw - 2 * var(--page-gutter) - 2.25rem); }
  .sh { align-items: flex-start; }
  .sb { min-height: 15.5rem; }
  .flips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fcard { height: 3.75rem; }
  .htm2 { grid-template-columns: 1fr; }
  .harrow { justify-self: center; transform: rotate(90deg); }
  .deck-ctl { gap: 0.25rem; }
  .ddot { min-width: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { animation: none !important; }
  .fcard, .ddot::before { transition: none; }
  .dnet .ntrail, .shint::before, .dbrows td, .pout.ran, .dec b.pop { animation: none !important; }
}
.motion-paused .dnet .ntrail, .motion-paused .shint::before { animation-play-state: paused; }
@media (min-width: 768px) {
  .story-sticky { padding-block: clamp(3rem, 4vw, 3.5rem) !important; }
  .sb { min-height: clamp(12.5rem, min(27vw, 33svh), 19rem); }
  .slide { gap: 0.75rem; padding: clamp(0.875rem, 1.6vw, 1.25rem); }
  .story .story-head h2 { font-size: clamp(2rem, 1.3rem + 2vw, 3rem); }
}

.sl { margin-top: auto !important; }
@media (max-width: 767px) { .dchip, .seg2 button { padding: 0 0.75rem; min-height: 2.375rem; } .dchips { flex-wrap: nowrap; } }

/* v8 review fixes */
.deck-track { position: relative; }
.fcard { display: grid; height: auto !important; min-height: clamp(3.75rem, 15cqw, 6.25rem); }
.ff, .fb { position: relative; inset: auto; grid-area: 1 / 1; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 767px) {
  .motion-btn { bottom: 0.5rem; min-height: 2.25rem; padding: 0 0.75rem; font-size: 0.75rem; }
  .hero-top { padding-bottom: 3.25rem; }
}


/* standalone-safe: the story pages load only this file, so tokens are given fallbacks */
#intro { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }
/* ---------- v6: intro (binary rain → logo + bar → split doors), every new visit; used by the home page and the /chat, /chat2 story pages */
#intro { display: none; }
html.intro { overflow: hidden; }
html.intro #intro { position: fixed; inset: 0; z-index: 1000; display: block; animation: introFailsafe 0.01s 6.5s forwards; }
@keyframes introFailsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
html.intro .hero *, html.intro .hero *::before, html.intro .hero *::after { animation-play-state: paused !important; }
#intro .door { position: absolute; top: 0; bottom: 0; width: 50.2%; overflow: hidden; background: radial-gradient(120% 80% at 50% 45%, #21416D 0%, #1B365D 45%, #0F2440 100%); transition: transform 0.95s cubic-bezier(0.76, 0, 0.18, 1); will-change: transform; }
#intro .door.l { left: 0; background-position: left; background-size: 200% 100%; }
#intro .door.r { right: 0; background-position: right; background-size: 200% 100%; }
#intro .door-in { position: absolute; top: 0; bottom: 0; width: 100vw; display: grid; place-content: center; justify-items: center; gap: clamp(0.5rem, 2vh, 1.25rem); }
#intro .door.l .door-in { left: 0; }
#intro .door.r .door-in { right: 0; }
#intro .intro-logo { width: min(78vw, 30rem); height: auto; opacity: 0; transform: scale(0.94); filter: blur(10px); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out), filter 0.7s var(--ease-out); }
#intro .intro-bar { position: relative; width: min(52vw, 15rem); height: 3px; border-radius: 3px; background: rgb(160 224 239 / 18%); overflow: hidden; opacity: 0; transition: opacity 0.4s 0.2s; }
#intro .intro-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, #60C1E5, #A0E0EF); transform: scaleX(var(--load, 0)); transform-origin: left; transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); box-shadow: 0 0 12px #60C1E5; }
#intro.full .intro-bar i { --load: 1 !important; transition-duration: 0.5s; }
#intro.logo .intro-logo { opacity: 1; transform: none; filter: none; }
#intro.logo .intro-bar { opacity: 1; }
#intro .intro-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity 0.5s; }
#intro .intro-seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(transparent, #A0E0EF 20%, #fff 50%, #A0E0EF 80%, transparent); box-shadow: 0 0 24px 4px rgb(96 193 229 / 70%); opacity: 0; transform: scaleY(0); }
#intro.open .intro-seam { animation: seam 0.95s cubic-bezier(0.76, 0, 0.18, 1) forwards; }
@keyframes seam { 0% { opacity: 0; transform: scaleY(0); } 25% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1) scaleX(14); } }
#intro.open .door.l { transform: translateX(-101%); transition-delay: 0.04s; }
#intro.open .door.r { transform: translateX(101%); transition-delay: 0.04s; }
#intro.open .intro-rain { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  #intro .door, #intro .intro-logo { transition: opacity 0.3s; }
  #intro .intro-logo { filter: none; transform: none; }
  #intro.open .door.l, #intro.open .door.r { transform: none; opacity: 0; }
  #intro.open .intro-seam { animation: none; }
}

