/* tokens.css */
/* ibrahim.im design tokens (docs/BRAND.md). New tints only here (R2). */
@font-face { font-family: 'Playfair Display'; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/playfair-latin-var.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/playfair-italic-latin-var.woff2') format('woff2'); }   /* real italic: <em> in headings was browser-slanted */
@font-face { font-family: 'Inter'; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/inter-latin-var.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/spacegrotesk-latin-var.woff2') format('woff2'); }

:root {
  /* brand */
  --blue: #2563eb;
  --blue-300: #60a5fa;
  --blue-700: #1d4ed8;
  --blue-char: #1e7bff;
  --grad: linear-gradient(135deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
  --grad-h: linear-gradient(90deg, #60a5fa 0%, #2563eb 55%, #1d4ed8 100%);
  --tint: rgba(37, 99, 235, .1);
  --tint-2: rgba(37, 99, 235, .05);
  /* neutrals */
  --ink: #0f1f3d;          /* deep navy for dark bands and strong text */
  --navy: #002159;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #f1f5fb;
  /* type */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ui: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --fs-hero: clamp(3.6rem, 10.5vw, 9rem);
  --fs-h1: clamp(2.6rem, 6vw, 4.8rem);
  --fs-h2: clamp(2.2rem, 4.6vw, 3.8rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.75rem);
  --fs-lede: clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  /* space + shape */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-soft: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.03);
  --shadow: 0 10px 15px -3px rgba(0,0,0,.07), 0 4px 6px -2px rgba(0,0,0,.04);
  --shadow-lg: 0 25px 50px -12px rgba(0,0,0,.15);
  --shadow-blue: 0 18px 40px -16px rgba(37,99,235,.55);
  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 80px;
}

/* base.css */
/* Base, layout primitives and shared components (header, buttons, eyebrow, footer). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html, body { overflow-x: clip; }
body { font: 400 var(--fs-body)/1.7 var(--sans); color: var(--slate-500); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 999; background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip:focus { top: 1rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.band-2 { background: var(--bg-2); }
.band-dark { background: var(--ink); color: #c7d2e6; }
.band-dark h2, .band-dark h3 { color: #fff; }

/* type */
h1, h2, h3 { color: var(--slate-700); font-weight: 700; letter-spacing: -.02em; }
.h-serif { font-family: var(--serif); }
.h2 { font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.08; }
.h3 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; }
.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--slate-500); max-width: 38rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
/* split headlines: gradient text can't paint through transformed children, so each word carries it */
.grad.is-split { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
.grad.is-split .w { background: var(--grad); background-size: var(--gw, 300%) 100%; background-position: var(--gx, 0) 0; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
strong { color: var(--slate-700); font-weight: 600; }

/* eyebrow with side lines (old-site pattern, R2) */
.eyebrow { display: flex; align-items: center; gap: 1.1rem; font: 600 .82rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.25rem; }
.eyebrow::before, .eyebrow::after { content: ''; width: 48px; height: 1px; background: currentColor; opacity: .35; }
.eyebrow.left::before { display: none; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-inline: auto; }
.head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head .lede { margin-top: 1rem; }

/* buttons */
.btn { --bg: var(--grad); display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 52px; padding: .95rem 1.9rem; border: 0; border-radius: var(--r-pill); background: var(--bg); color: #fff; font: 600 1.02rem/1 var(--sans); text-decoration: none; box-shadow: var(--shadow-blue); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -16px rgba(37,99,235,.65); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn.light { --bg: #fff; color: var(--blue); box-shadow: var(--shadow); }
.btn.ghost { --bg: transparent; color: var(--slate-700); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--slate-500); font-weight: 600; text-decoration: none; transition: color .25s, gap .25s; }   /* 44 px tap height for every text link */
.link:hover { color: var(--blue); gap: .75rem; }
.link svg { width: 16px; height: 16px; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* shared components (home + work) */
.h1 { font-family: var(--serif); font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.03em; }
.grad-light { background: linear-gradient(135deg, #93c5fd, #60a5fa 50%, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-card { position: relative; width: 100%; max-width: 920px; margin-top: 1rem; padding: clamp(2.75rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem); border-radius: var(--r-lg); background: var(--grad); color: rgba(255,255,255,.92); text-align: center; box-shadow: 0 30px 60px -25px rgba(37,99,235,.7); }
.cta-card h2, .cta-card h3 { font: 600 clamp(1.9rem, 3.6vw, 2.8rem)/1.15 var(--serif); color: #fff; margin-bottom: .8rem; }
.cta-card .doodle > svg { color: #fff; }
.cta-card p { max-width: 42ch; margin: 0 auto 1.8rem; font-size: 1.08rem; }
.cta-char { --w: clamp(130px, 14vw, 190px); left: clamp(-1rem, -2vw, 0rem); top: 0; translate: 0 -78%; }
.card-proof { margin: 1.6rem 0 0 !important; font: 600 .8rem/1.4 var(--ui) !important; letter-spacing: .12em; text-transform: uppercase; color: #dbeafe; }
.mini-logos { display: flex; justify-content: center; gap: 1.6rem; margin-top: 1.8rem; align-items: center; }
.mini-logos img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .75; }


/* header */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: background .35s, box-shadow .35s, transform .4s var(--ease-io); }
.hdr.is-scrolled { background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.hdr .logo img, .hdr .logo .logo-svg { display: block; width: 116px; height: auto; overflow: visible; }
/* logo intro (once per visit, set in head.html): letters rise from the baseline, the i's dot drops, ".im" lands (core.js) */
.logo-svg .L { transform-box: fill-box; transform-origin: 50% 100%; }
.logo-intro .hdr .logo-svg .L { opacity: 0; }
.nav { display: flex; gap: 2.2rem; }
.nav a { font: 500 .92rem/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); text-decoration: none; position: relative; display: inline-flex; align-items: center; min-height: 44px; }   /* 44 px tap height */
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: var(--grad-h); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current=page]::after { transform: scaleX(1); }
.hdr .btn { min-height: 44px; padding: .7rem 1.3rem; font-size: .92rem; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--navy); align-items: center; justify-content: center; }
.menu-btn svg { width: 26px; height: 26px; }

/* floating CTA (phones): visible after the hero, hidden while the contact form is on screen (R16) */
.float-cta { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90; display: none; align-items: center; gap: .5rem; padding: .95rem 1.6rem; border-radius: var(--r-pill); background: var(--grad); color: #fff; font: 600 1rem/1 var(--sans); text-decoration: none; box-shadow: 0 16px 34px -12px rgba(37,99,235,.7); translate: -50% 140%; transition: translate .45s var(--ease-out); }
.float-cta svg { width: 18px; height: 18px; }
.float-cta.is-shown { translate: -50% 0; }

/* footer */
.ftr { position: relative; padding: clamp(4rem, 8vw, 6rem) 0 2rem; border-top: 1px solid var(--line); background: radial-gradient(ellipse 50% 70% at 0% 0%, rgba(96,165,250,.12), transparent 70%), var(--bg); overflow: hidden; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
.ftr .logo { display: inline-block; padding-block: 4px; margin-bottom: 1rem; }   /* 44 px tap height */
.ftr .logo img { width: 120px; display: block; }
.ftr p { max-width: 32ch; font-size: .95rem; }
.ftr h2 { font: 600 .85rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--slate-700); margin-bottom: 1.25rem; }
.ftr ul { list-style: none; display: grid; gap: 0; }
.ftr ul a { text-decoration: none; display: inline-flex; gap: .55rem; align-items: center; min-height: 44px; transition: color .2s; }   /* 44 px tap rows (was 27 px + .8rem gap: same rhythm) */
.ftr ul a:hover { color: var(--blue); }
.ftr-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.ftr-bottom a { display: inline-block; padding-block: 14px; margin-block: -14px; }   /* 44 px tap height, same line height */
@media (min-width: 761px) { .ftr-bottom { padding-right: 150px; } }   /* the footer character (120 px, right 4%) never sits on "Burlington, Ontario" */

@media (max-width: 900px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: #fff; box-shadow: 0 24px 30px -24px rgba(15,31,61,.25); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .menu-btn { display: inline-flex; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .cta-char { --w: 110px; translate: 0 -70%; left: .5rem; }
}
@media (max-width: 760px) {
  .float-cta { display: inline-flex; }
  body { padding-bottom: 5.5rem; } /* the floating CTA never hides the end of the page */
}
@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .hdr .btn { display: none; }
  .ftr-grid { grid-template-columns: 1fr; }
}

/* QA 2026-10-12: small blue text meets 4.5:1, location tags never below 12px */
.eyebrow { color: #1d4ed8; }
.loc { font-size: max(12px, .72rem); }
small { font-size: max(12px, 80%); }
@media (max-width: 767px) { .story-proof, .close-proof, .contact-proof { font-size: 1rem; } }
.ftr .ftr-cta { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--blue); }

/* decor.css */
/* Decor library (docs/DECOR-LIBRARY.md). Pages reuse these; no one-off ornaments (R11).
   Ambient decor stays slow and low-opacity; everything static under reduced motion (core.js skips the loops). */

/* 1. Starburst: converging rays from the old hero. <svg class="burst"><use href="#d-burst"/></svg> */
.burst { position: absolute; width: var(--s, 900px); height: var(--s, 900px); color: var(--blue); opacity: var(--o, .14); pointer-events: none; }
.burst line { stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }

/* 2. Watercolour blob (old About motif). <div class="blob" style="--s:520px"></div> */
.blob { position: absolute; width: var(--s, 520px); aspect-ratio: 592 / 451; background: none center / contain no-repeat; opacity: var(--o, .16); pointer-events: none; }

/* 3. Grid paper / blueprint (old Process motif). <div class="gridpaper"></div> */
.gridpaper { position: absolute; inset: 0; pointer-events: none; opacity: var(--o, .7);
  background-image: linear-gradient(rgba(37,99,235,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.07) 1px, transparent 1px), linear-gradient(rgba(37,99,235,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 35%, transparent 80%); mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 35%, transparent 80%); }

/* 4. Sparkle: blue 4-point star from the characters. <svg class="sparkle" style="--s:22px"><use href="#d-sparkle"/></svg> */
.sparkle { position: absolute; width: var(--s, 20px); height: var(--s, 20px); color: var(--blue-char); pointer-events: none; transform-origin: center; }
.sparkle.inline { position: relative; display: inline-block; vertical-align: super; margin-left: .1em; }

/* 5. Doodles: hand-drawn underline / circle / arrow, drawn on reveal. */
.doodle { position: relative; display: inline-block; white-space: nowrap; }
.doodle > svg { position: absolute; pointer-events: none; overflow: visible; color: var(--blue-300); fill: none; stroke: currentColor; }
.doodle > svg path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.doodle.under > svg { left: -2%; right: -2%; width: 104%; bottom: -.12em; height: .32em; }
.doodle.circle > svg { inset: -18% -9%; width: 118%; height: 136%; }
.doodle-arrow { position: absolute; width: var(--s, 120px); color: var(--slate-500); pointer-events: none; }
.doodle-arrow path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 6. Tilted gradient card behind media (old portrait motif). Wrap: <div class="tiltcard">media</div> */
.tiltcard { position: relative; isolation: isolate; }
.tiltcard::before { content: ''; position: absolute; inset: 4% -5% -6% 7%; z-index: -1; border-radius: var(--r-lg); background: var(--grad); transform: rotate(var(--tilt, 3deg)); box-shadow: var(--shadow-blue); }

/* 7. Ghost word: the giant pale "Hi," behind a headline. <span class="ghost" aria-hidden="true">Hi,</span> */
.ghost-word { position: absolute; font: 600 clamp(8rem, 22vw, 16rem)/.8 var(--serif); color: #eef3fb; pointer-events: none; user-select: none; z-index: 0; }

/* 8. Character: hand-drawn Ibrahim. <img class="char" data-char src="assets/char/telescope.webp" alt=""> */
.char { position: absolute; width: var(--w, 220px); height: auto; pointer-events: none; z-index: 2; filter: drop-shadow(0 18px 24px rgba(15,31,61,.08)); }
.char.static { position: relative; }

/* 9. Dotted path (flight paths, connections). */
.dotpath { position: absolute; pointer-events: none; color: var(--blue-300); }
.dotpath path { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }

/* 10. Device frames for project videos. */
.laptop { position: relative; width: 100%; }
.laptop .screen { position: relative; border: clamp(6px, .8vw, 10px) solid #141b2d; border-bottom-width: clamp(10px, 1.4vw, 18px); border-radius: clamp(10px, 1.2vw, 16px) clamp(10px, 1.2vw, 16px) 6px 6px; overflow: hidden; aspect-ratio: 16 / 10; background: #0f172a; }
.laptop .screen video, .laptop .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop .base { height: clamp(8px, 1vw, 14px); margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(#e5e9f0, #b9c1cf); box-shadow: 0 18px 30px -12px rgba(15,31,61,.35); }
.laptop .base::before { content: ''; display: block; width: 16%; height: 40%; margin: 0 auto; border-radius: 0 0 8px 8px; background: #a7b0bf; }
.phone { position: relative; width: var(--w, 24%); aspect-ratio: 390 / 844; border: clamp(4px, .55vw, 7px) solid #141b2d; border-radius: clamp(16px, 2vw, 26px); overflow: hidden; background: #0f172a; box-shadow: 0 24px 40px -16px rgba(15,31,61,.45); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.devices { position: relative; }
.devices .phone { position: absolute; right: -4%; bottom: -8%; }

/* 11. Location pill with a flag (old project cards). */
.loc { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border-radius: var(--r-pill); background: var(--tint); color: var(--blue); font: 600 .75rem/1 var(--sans); white-space: nowrap; }
.loc .flag { width: 1.3em; height: .87em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* 12. Soft glow orb for dark bands. */
.orb { position: absolute; width: var(--s, 40vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(96,165,250,.35), transparent 65%); pointer-events: none; }

@media (max-width: 760px) {
  .char.hide-sm, .doodle-arrow.hide-sm, .burst.hide-sm { display: none; }
}

/* decorative blob: loads after the page is up (class set by the build's script loader) */
.is-loaded .blob { background-image: url('../assets/img/bg-blob.webp'); }

/* components.css */
/* Shared components (accordion, chips, timeline, contact form, pills), used by Home and every page.
   Moved out of home.css 2026-10-12 so the generated pages use the same kit. */
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg-2); color: var(--slate-700); font-size: .9rem; font-weight: 500; }
.pill .flag { width: 1.3em; height: .87em; border-radius: 2px; }
.icon-link { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--slate-500); transition: color .2s, background .2s; }
.icon-link:hover { color: var(--blue); background: var(--tint); }
.icon-link svg { width: 20px; height: 20px; }
.timeline { list-style: none; position: relative; max-width: 940px; margin: 0 auto; }
.tl-line { position: absolute; left: 50%; top: 1.5rem; bottom: 1.5rem; width: 3px; translate: -50% 0; background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 16px); border-radius: 2px; }
.tl-fill { position: absolute; inset: 0 0 auto; height: 0; background: linear-gradient(var(--blue), var(--blue-300)); border-radius: 2px; }
.step { position: relative; width: 50%; padding: 1.6rem 3.5rem 1.6rem 0; }
.step:nth-child(odd) { margin-left: 50%; padding: 1.6rem 0 1.6rem 3.5rem; }
.step .dot { position: absolute; top: 50%; right: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 3px solid var(--slate-300); box-shadow: 0 0 0 7px var(--bg); translate: 0 -50%; transition: background .4s, border-color .4s, scale .4s var(--ease-pop); }
.step:nth-child(odd) .dot { right: auto; left: -11px; }
.step.is-on .dot { background: var(--blue); border-color: var(--blue); scale: 1.25; box-shadow: 0 0 0 7px var(--bg), 0 0 22px rgba(37,99,235,.35); }
.step .card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; box-shadow: var(--shadow); transition: transform .35s var(--ease-out), box-shadow .35s; }
.step .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step .num { font: 600 .82rem/1 var(--ui); letter-spacing: .14em; color: var(--blue); margin-bottom: .7rem; }
.step .h3 { margin-bottom: .6rem; }
.step .doodle > svg { color: var(--blue-300); }
.plus { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.plus::before, .plus::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
.plus::after { transform: rotate(90deg); }
.acc { display: grid; gap: .9rem; }
.acc-item { border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: background .45s var(--ease-io), border-color .45s, box-shadow .45s; }
.acc-item.is-open { background: var(--grad); border-color: transparent; box-shadow: var(--shadow-blue); color: rgba(255,255,255,.9); }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem 1.6rem; border: 0; background: none; text-align: left; color: var(--slate-700); }
.acc-item.is-open .acc-btn { color: #fff; }
.acc-btn .num { font: 600 .85rem/1 var(--ui); letter-spacing: .12em; color: var(--blue); }
.acc-item.is-open .acc-btn .num { color: #dbeafe; }
.acc-btn .t { flex: 1; font: 600 clamp(1.3rem, 2vw, 1.6rem)/1.2 var(--serif); }
.acc-item.is-open .plus::after { transform: rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-io); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; padding: 0 1.6rem; }
.acc-item.is-open .acc-panel > div { padding-bottom: 1.6rem; }
.acc-panel p { font-size: 1.05rem; max-width: 52ch; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0; }
.chips li { padding: .45rem .9rem; border-radius: var(--r-pill); background: rgba(255,255,255,.16); color: #fff; font-size: .85rem; font-weight: 500; }
.acc-proof { font-size: .95rem !important; color: #dbeafe; }
.acc-proof strong { color: #fff; }
.chip { display: inline-block; margin-top: 1rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--tint); color: var(--blue); font: 600 .78rem/1 var(--ui); letter-spacing: .04em; }
.contact { overflow: hidden; }
.contact-card { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); padding: clamp(2rem, 5vw, 4.5rem); border-radius: 28px; background: var(--bg-2); box-shadow: var(--shadow-lg); }
.contact-list { list-style: none; display: grid; gap: .9rem; margin: 1.8rem 0 1.2rem; }
.contact-list li { display: flex; align-items: center; gap: .7rem; color: var(--slate-700); }
.contact-list .i { color: var(--blue); width: 20px; height: 20px; }
.contact-list a { text-decoration: none; font-weight: 600; } .contact-list a:hover { color: var(--blue); }
.contact-proof { font: 600 .8rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); }
.plane-wrap { position: relative; height: 170px; margin-top: 1.5rem; }
.plane-wrap .dotpath { inset: 0 auto auto 0; width: 100%; height: 100%; }
.form { background: #fff; border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow); align-self: start; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .45rem; font: 600 .92rem/1.2 var(--sans); color: var(--slate-700); }
.field label span { font-weight: 400; color: var(--slate-500); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--slate-700); background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px; padding: .9rem 1rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px var(--tint); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #dc2626; }
.field .err { display: block; margin-top: .35rem; font-size: .82rem; color: #b91c1c; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form .btn { width: 100%; margin-top: .4rem; }
.form-note { margin-top: .9rem; font-size: .85rem; }
.form-done { display: none; margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; background: var(--tint); color: var(--blue-700); font-weight: 600; }
.form.is-done .form-done { display: block; }
.icon-link { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
@media (max-width: 1080px) {
  .contact-card { grid-template-columns: 1fr; }
  .step, .step:nth-child(odd) { width: 100%; margin-left: 0; padding: .8rem 0 .8rem 2rem; }
  .step .card { padding: 1.4rem 1.25rem; }
  .tl-line { left: 10px; translate: 0 0; }
  .step .dot, .step:nth-child(odd) .dot { left: 0; right: auto; }
}
@media (max-width: 760px) { .contact-card { padding: 1.5rem 1.1rem; border-radius: 20px; } }
.form-error { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-weight: 600; }
.btn.light { color: #1d4ed8; }
@media (max-width: 767px) { .form-note { font-size: 1rem; } }

/* home.css */
/* Home page (docs/pages/home.md). Uses tokens/base/decor. */

/* ---------- 1. Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + clamp(1rem, 3.5vh, 3rem)) 0 0; display: flex; flex-direction: column; overflow: hidden; }
.hero-grid { --o: .9; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 100% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 100% 40%, #000 20%, transparent 70%); }
.hero-burst { left: 50%; top: 40%; translate: -50% -50%; }
.hero-inner { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: clamp(2rem, 5vh, 3.5rem); }
.hero-aside { font: italic 500 clamp(1.3rem, 2.4vw, 1.9rem)/1 var(--serif); color: var(--slate-700); transform: rotate(-5deg) translateX(-28%); margin-bottom: .2em; }
.hero-name { font: 700 clamp(3.6rem, 9.2vw, 8rem)/.98 var(--serif); letter-spacing: -.035em; max-width: 9.5ch; }
.hero-name .grad { padding-bottom: .08em; background-size: 220% 100%; background-position: 100% 0; animation: nameSettle 1.8s var(--ease-out) .1s both; }
@keyframes nameSettle { from { background-position: 0 0; } to { background-position: 100% 0; } }   /* no letter-spacing: re-laying out the LCP text delayed LCP */
.sticker { position: absolute; width: clamp(96px, 10vw, 136px); aspect-ratio: 1; right: max(2%, calc(50% - 560px)); top: clamp(4.5rem, 12vh, 7rem); }
.sticker svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 12px 20px rgba(37,99,235,.35)); animation: spin 36s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sticker:hover svg { animation-duration: 9s; }
.sticker-edge { fill: url(#g-blue); }
.sticker text { font: 700 13.2px/1 var(--ui); letter-spacing: .12em; fill: #fff; }
.sticker-star { fill: #fff; }
.hero-title { margin-top: clamp(1.2rem, 2.5vh, 1.8rem); font: 600 clamp(1.15rem, 2.2vw, 1.6rem)/1.35 var(--sans); color: var(--slate-700); }
.hero-title .amp { font-family: var(--serif); font-style: italic; color: var(--blue); }
.hero-support { margin-top: .9rem; max-width: 40ch; font-size: var(--fs-lede); }
.hero-ctas { margin-top: 1.6rem; display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.hero-ctas .link svg { width: 12px; height: 12px; }
.proof { list-style: none; margin-top: clamp(1.4rem, 3vh, 2.2rem); display: flex; gap: clamp(1.25rem, 4vw, 3rem); flex-wrap: wrap; justify-content: center; font: 500 .9rem/1.3 var(--ui); color: var(--slate-500); }
.proof li { display: flex; align-items: baseline; gap: .45rem; }
.proof li + li { padding-left: clamp(1.25rem, 4vw, 3rem); border-left: 1px solid var(--line); }
.proof { gap: clamp(1.25rem, 4vw, 3rem); padding: .9rem 1.6rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: rgba(255,255,255,.8); }
.proof strong { font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--serif); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-char { --w: clamp(150px, 15vw, 230px); left: max(0px, calc(50% - 600px)); bottom: clamp(1rem, 4vh, 3rem); transform-origin: 70% 30%; }
.trusted { position: relative; border-top: 1px solid var(--line); padding: 1.2rem 0; display: flex; align-items: center; gap: 2rem; background: rgba(255,255,255,.7); }
.trusted p { flex-shrink: 0; padding-left: max(var(--gutter), calc(50vw - 600px + var(--gutter))); font: 600 .75rem/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--slate-500); }
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: clamp(2.5rem, 5vw, 4.5rem); width: max-content; align-items: center; animation: marquee 48s linear infinite; }
.marquee-track img { height: 30px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.marquee-track img:hover { filter: none; opacity: 1; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 2. About ---------- */
.about { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; position: relative; }
.about-text { position: relative; }
.about-text .ghost-word { left: -2.5rem; top: -4.5rem; }
.about-text > * { position: relative; }
.about-text .h2 { max-width: 13ch; }
.about-sub { margin-top: .8rem; font: 400 1.2rem/1.45 var(--ui); color: var(--slate-500); }
.about-meta { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0 1.8rem; }
.about-text p:not(.eyebrow):not(.about-sub) { font-size: 1.08rem; max-width: 58ch; margin-bottom: 1.1rem; }
.about-photo { position: relative; max-width: 440px; justify-self: end; }
.about-photo img { border-radius: var(--r); box-shadow: var(--shadow-lg); }

/* ---------- 3. Work showcase (navy, pinned) ---------- */
.showcase { position: relative; background: var(--ink); color: #b9c6dc; overflow: hidden; }
.showcase-pin { position: relative; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) + 2rem) 0 3rem; }
.showcase-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.showcase .eyebrow { color: var(--blue-300); }
.showcase .h2 { color: #fff; }
.slides { list-style: none; position: relative; margin-top: 2.2rem; min-height: 15rem; }
.slide { position: absolute; inset: 0 0 auto; }
.slide-n { font: 600 .8rem/1 var(--ui); letter-spacing: .14em; color: var(--blue-300); margin-bottom: .9rem; }
.slide .h3 { color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.slide .loc { background: rgba(96,165,250,.15); color: #bfdbfe; }
.slide p:not(.slide-n) { margin: .9rem 0 1.2rem; font-size: 1.05rem; max-width: 40ch; }
.link.light { color: #dbe6ff; } .link.light:hover { color: #fff; }
.dots { display: flex; gap: .5rem; margin-top: 1.5rem; }
.dots i { width: 28px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); transition: background .3s, width .3s; }
.dots i.is-on { background: var(--blue-300); width: 44px; }
.device-stack { position: relative; aspect-ratio: 16 / 11.2; }
.dv { position: absolute; inset: 0; }
.dv .phone { --w: 23%; right: -2%; bottom: 2%; }
.showcase-after { position: relative; padding-bottom: clamp(4rem, 8vw, 6rem); display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
/* stacked showcase (small screens, reduced motion, no JS) */
.showcase.is-stacked .showcase-grid { grid-template-columns: 1fr; }
.showcase.is-stacked .showcase-pin { min-height: 0; padding-bottom: 1rem; }
@media (min-width: 901px) {
  .showcase.is-stacked .slide { display: grid; grid-template-columns: 5fr 7fr; gap: 0 4rem; align-items: center; }
  .showcase.is-stacked .slide > :not(.dv) { grid-column: 1; }
  .showcase.is-stacked .slide .dv { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
}
.showcase.is-stacked .slide { position: relative; margin-bottom: 3.5rem; }
.showcase.is-stacked .slide .dv { position: relative; inset: auto; margin-top: 1.5rem; padding-right: 4%; }
.showcase.is-stacked .showcase-media, .showcase.is-stacked .dots { display: none; }
.showcase.is-stacked .dv .phone { position: absolute; right: 0; bottom: -6%; }
/* no-JS / reduced motion: stacked slides */
html:not(.js) .slide, .no-motion .slide { position: relative; margin-bottom: 2rem; }
html:not(.js) .dv:not([data-i="0"]), .no-motion .dv:not([data-i="0"]) { display: none; }

/* more projects strip (under the showcase) */
.more { width: 100%; max-width: 1100px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; margin-top: 1rem; }
.more a { display: block; text-decoration: none; color: #dbe6ff; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: transform .35s var(--ease-out), border-color .3s; }
.more a:hover { transform: translateY(-4px); border-color: rgba(147,197,253,.5); }
.more img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.more span { display: flex; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; font: 600 .95rem/1.2 var(--serif); }
.more small { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; font: 500 .78rem/1.2 var(--ui); color: #8ea3c4; letter-spacing: .06em; }
.more small .flag { width: 1.3em; height: .87em; border-radius: 2px; flex: none; }
@media (max-width: 900px) { .more { grid-template-columns: 1fr 1fr; } }

/* ---------- 4. Process ---------- */
.process { overflow: hidden; }
.process-char { --w: clamp(130px, 13vw, 180px); left: 50%; top: -6px; translate: -50% 0; }
.process .head { position: relative; padding-top: clamp(5rem, 9vw, 7rem); }

/* ---------- 5. Services (accordion) ---------- */
.services-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.services-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.services-char { --w: clamp(220px, 22vw, 300px); position: relative; margin-top: 2rem; }

/* ---------- 6. Why ---------- */
.why { overflow: hidden; }
.why-char { --w: clamp(150px, 14vw, 200px); left: max(0px, calc(50% - 680px)); bottom: 3rem; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; max-width: 980px; margin: 0 auto; }
.why-grid article { position: relative; background: var(--bg-2); border: 1px solid var(--tint); border-radius: var(--r); padding: 2.2rem; transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s; }
.why-grid article:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.25); }
.why-grid .h3 { margin-bottom: .6rem; }

/* ---------- 7. Contact ---------- */
.plane-char { --w: 130px; left: -10px; bottom: -20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-char { left: 1rem; }
  .why-char { display: none; }
}
@media (max-width: 900px) {
  .about-grid, .showcase-grid, .services-grid, .contact-card { grid-template-columns: 1fr; }
  .about-photo { order: -1; justify-self: center; max-width: 340px; }
  .services-head { position: static; }
  .process .head { padding-top: 1rem; }
  .services-char { --w: 200px; }
  .showcase-pin { min-height: 0; padding-top: clamp(4.5rem, 10vw, 6rem); }
  .slides { min-height: 0; }
  .step, .step:nth-child(odd) { width: 100%; margin-left: 0; padding: .8rem 0 .8rem 2rem; }
  .step .card { padding: 1.4rem 1.25rem; }
  .tl-line { left: 10px; translate: 0 0; }
  .step .dot, .step:nth-child(odd) .dot { left: 0; right: auto; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-aside { transform: rotate(-5deg); }
  .hero-name { font-size: clamp(3.3rem, 15vw, 4.6rem); }
  .sticker { position: relative; right: auto; top: auto; width: 92px; margin: 1rem auto 0; order: 3; }
  .hero-inner { padding-bottom: 1.5rem; }
  .hero-char { position: relative; left: auto; bottom: auto; --w: 150px; margin-top: 2rem; order: 9; }
  .hero-ctas { flex-direction: column; width: 100%; gap: 1rem; }
  .hero-ctas .btn { width: 100%; }
  .proof { border-radius: var(--r); flex-direction: column; align-items: flex-start; gap: .5rem; padding: .9rem 1.2rem; }
  .proof li + li { padding-left: 0; border-left: 0; }
  .trusted { flex-direction: column; align-items: stretch; gap: .8rem; }
  .trusted p { padding-left: var(--gutter); }
  .about-text .ghost-word { left: -1rem; top: -3rem; }
  .why-grid { grid-template-columns: 1fr; }
  .why-grid article { padding: 1.6rem; }
  .contact-card { padding: 1.5rem 1.1rem; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticker svg { animation: none; }
  .hero-name .grad { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 1.2rem; }
  .marquee-track img:nth-child(n+12) { display: none; }
}

/* ---------- 6b. Chess band (R12a): short, playful, CSS 3D ---------- */
.chess { position: relative; min-height: max(20vh, 260px); display: flex; align-items: center; padding: 2.5rem 0; background: radial-gradient(70% 140% at 85% 50%, rgba(96,165,250,.16), transparent 70%), var(--bg-3); border-block: 1px solid var(--line); overflow: hidden; }
.chess-grid { display: grid; grid-template-columns: auto 1.2fr 1fr auto; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.chess-char { --w: clamp(110px, 10vw, 150px); position: relative; }
.chess-text .h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: .5rem; }
.chess-text p:not(.eyebrow) { margin-bottom: 1.2rem; }
.chess-btn { min-height: 48px; padding: .8rem 1.5rem; }
.chess-scene { perspective: 1100px; display: grid; place-items: center; height: 300px; }
.board { --b: 270px; position: relative; width: var(--b); height: var(--b); transform-style: preserve-3d; transform: rotateX(calc(var(--rx, 56) * 1deg)) rotateZ(calc(var(--rz, -38) * 1deg));
  background: repeating-conic-gradient(#c7dafc 0 25%, #ffffff 0 50%) 0 0 / 25% 25%; border-radius: 6px;
  box-shadow: 0 0 0 7px #2563eb, 0 0 0 8px #1d4ed8, 18px 26px 40px rgba(15,31,61,.25); }
.board::after { content: ''; position: absolute; inset: -7px; transform: translateZ(-12px); background: #1d4ed8; border-radius: 8px; }
.piece { position: absolute; left: calc(var(--x) * 12.5%); top: calc(var(--y) * 12.5%); width: 12.5%; height: 12.5%; transform-style: preserve-3d; }
/* billboard: undo the board's own rotation (inherited vars), so pieces always stand upright toward the viewer */
.piece img { position: absolute; left: 50%; bottom: 50%; width: 150%; max-width: none; transform-origin: 50% 100%; transform: translateX(-50%) rotateZ(calc(var(--rz, -38) * -1deg)) rotateX(calc(var(--rx, 56) * -1deg)); pointer-events: none; }
.piece.knight img { width: 168%; }
.piece.dark img { filter: brightness(.38) saturate(.7) contrast(1.15); }
.hl { position: absolute; left: calc(var(--x) * 12.5%); top: calc(var(--y) * 12.5%); width: 12.5%; height: 12.5%; border-radius: 3px; background: rgba(250,204,21,.55); box-shadow: inset 0 0 0 2px rgba(234,179,8,.9); opacity: 0; }
.chess-scene { position: relative; }
.chess-line { display: inline-block; }
.qr-card { display: block; width: 160px; border-radius: 18px; box-shadow: var(--shadow); transition: transform .3s var(--ease-out); }
.qr-card:hover { transform: translateY(-4px) rotate(-1deg); }
.qr-card img { width: 100%; height: auto; border-radius: 18px; }
@media (max-width: 1100px) { .qr-card { display: none; } .chess-grid { grid-template-columns: auto 1.2fr 1fr; } }
@media (max-width: 760px) {
  .chess { padding: 2.5rem 0 1rem; }
  .chess-grid { grid-template-columns: 1fr; text-align: left; gap: .5rem; }
  .chess-scene { height: 230px; }
  .board { --b: 200px; }
}

/* ---------- A. Story: sticky mock + scrolling beats ---------- */
.story { position: relative; padding: var(--section) 0 clamp(4rem, 8vw, 6rem); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 100%); }
.story-head { max-width: 720px; }
.story-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.beats { list-style: none; }
.beat { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; opacity: .28; transition: opacity .5s var(--ease-out); }
.beat.is-on { opacity: 1; }
.beat:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 4rem; }
.beat-n { font: 600 .82rem/1 var(--ui); letter-spacing: .16em; color: var(--blue); margin-bottom: .9rem; }
.beat h3 { font: 700 clamp(2rem, 3.8vw, 3.1rem)/1.05 var(--serif); letter-spacing: -.025em; color: var(--slate-700); margin-bottom: .8rem; }
.beat[data-beat="3"] h3 { color: #b91c1c; }
.beat p { font-size: 1.15rem; max-width: 34ch; }
.beat em { font-family: var(--serif); font-size: 1.15em; color: var(--blue); }
.beat-skills { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.beat-skills li { padding: .45rem .9rem; border-radius: 999px; background: var(--grad); color: #fff; font: 600 .82rem/1 var(--ui); box-shadow: var(--shadow-blue); }
.mock-wrap { position: sticky; top: calc(var(--header-h) + 5vh); }
.mock { position: relative; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -24px rgba(15,31,61,.35), 0 0 0 1px var(--line); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; background: #eef2f8; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-bar span { margin-left: .8rem; flex: 1; padding: .25rem .7rem; border-radius: 6px; background: #fff; font: 500 .72rem/1 var(--ui); color: var(--slate-500); }
.mock-body { position: relative; padding: 1.1rem 1.4rem 1.4rem; min-height: 340px; transition: background .6s; }
.m-nav { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.6rem; }
.m-nav b { width: 70px; height: 14px; border-radius: 4px; background: #cbd5e1; transition: background .6s; }
.m-nav span { width: 38px; height: 8px; border-radius: 4px; background: #e2e8f0; }
.m-cta-top { margin-left: auto; font: 600 .65rem/1 var(--ui); padding: .4rem .7rem; border-radius: 999px; background: #e2e8f0; color: transparent; transition: background .6s, color .6s; }
.m-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2rem; align-items: center; }
.m-aud { font: 600 .62rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .5rem; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.m-h { font: 700 1.45rem/1.15 var(--serif); color: #94a3b8; min-height: 2.4em; transition: color .5s; }
.m-sub { display: grid; gap: 6px; margin: .7rem 0 1rem; }
.m-sub span { height: 7px; border-radius: 4px; background: #e2e8f0; } .m-sub span:last-child { width: 70%; }
.m-btn { display: inline-block; padding: .55rem 1rem; border-radius: 999px; background: #cbd5e1; color: #fff; font: 600 .7rem/1 var(--sans); transform-origin: left center; transition: background .5s, transform .5s var(--ease-pop), box-shadow .5s; }
.m-proof { margin-top: .7rem; font: 500 .62rem/1.2 var(--ui); color: #b45309; opacity: 0; transition: opacity .4s .2s; }
.m-media { position: relative; aspect-ratio: 4 / 3.2; border-radius: 12px; background: #e2e8f0; overflow: hidden; display: grid; place-items: center; transition: background .6s; }
.m-play { width: 0; height: 0; border-left: 16px solid rgba(255,255,255,.9); border-top: 10px solid transparent; border-bottom: 10px solid transparent; opacity: 0; transition: opacity .4s; }
.m-wave { position: absolute; left: 10%; right: 10%; bottom: 10%; height: 18px; display: flex; gap: 4px; align-items: flex-end; opacity: 0; }
.m-wave i { flex: 1; background: rgba(255,255,255,.85); border-radius: 2px; height: 30%; }
.m-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.2rem; }
.m-row span { height: 46px; border-radius: 10px; background: #f1f5f9; transition: background .6s; }
.m-code, .m-tick { position: absolute; font: 700 .9rem/1 var(--ui); opacity: 0; transition: opacity .35s, transform .35s var(--ease-pop); transform: scale(.6); }
.m-code { color: var(--blue); background: #fff; padding: .3rem .45rem; border-radius: 6px; box-shadow: var(--shadow); }
.m-c1 { left: 46%; top: 22%; } .m-c2 { right: 6%; bottom: 14%; }
.m-tick { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #16a34a; color: #fff; font-size: .7rem; }
.m-t1 { left: 31%; top: 66%; } .m-t2 { left: 88%; top: 36%; } .m-t3 { left: 12%; top: 88%; }
.m-cursor { position: absolute; left: 70%; top: 80%; width: 18px; height: 22px; opacity: 0; z-index: 4; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M1 1l15 11-7 1 4 8-3 1-4-8-5 5z' fill='%23fff' stroke='%23111' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.m-x { position: absolute; right: .9rem; top: -2.15rem; width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; font: 700 .9rem/1 var(--sans); color: var(--slate-500); opacity: 0; transition: opacity .3s, background .3s; }
.m-toast { position: absolute; right: 1rem; bottom: 1rem; padding: .7rem 1rem; border-radius: 12px; background: var(--ink); color: #fff; font: 600 .78rem/1.3 var(--sans); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--ease-pop); }
.meter { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; font: 600 .78rem/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); }
.meter-bar { flex: 1; height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 8%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #22c55e); transition: width .9s var(--ease-out); }

/* mock states */
.mock[data-state="1"] .m-code, .mock[data-state="1"] .m-tick { opacity: 1; transform: none; }
.mock[data-state="2"] .mock-body, .mock[data-state="3"] .mock-body, .mock[data-state="4"] .mock-body { background: linear-gradient(160deg, #eff6ff, #fff 55%); }
.mock[data-state="2"] .m-nav b, .mock[data-state="3"] .m-nav b, .mock[data-state="4"] .m-nav b { background: var(--grad); }
.mock:is([data-state="2"], [data-state="3"], [data-state="4"]) .m-media { background: linear-gradient(135deg, #93c5fd, #2563eb 60%, #1e3a8a); }
.mock:is([data-state="2"], [data-state="3"], [data-state="4"]) .m-row span { background: #dbeafe; }
.mock:is([data-state="2"], [data-state="3"]) .m-h { color: var(--slate-700); }
.mock:is([data-state="2"], [data-state="3"]) .m-btn { background: #93c5fd; }
.mock[data-state="3"] .m-x { opacity: 1; background: #fee2e2; color: #b91c1c; }
.mock[data-state="3"] .m-cursor, .mock[data-state="4"] .m-cursor { opacity: 1; }
.mock[data-state="4"] .m-aud { opacity: 1; transform: none; }
.mock[data-state="4"] .m-h { color: var(--ink); }
.mock[data-state="4"] .m-btn { background: #16a34a; transform: scale(1.18); box-shadow: 0 10px 22px -8px rgba(22,163,74,.7); }
.mock[data-state="4"] .m-cta-top { background: #16a34a; color: #fff; }
.mock[data-state="4"] .m-proof { opacity: 1; }
.mock[data-state="4"] .m-play, .mock[data-state="4"] .m-wave { opacity: 1; }
.mock[data-state="4"] .m-wave i { animation: wave 1s ease-in-out infinite alternate; }
.mock[data-state="4"] .m-wave i:nth-child(2n) { animation-delay: -.3s; } .mock[data-state="4"] .m-wave i:nth-child(3n) { animation-delay: -.6s; }
.mock.is-won .m-toast { opacity: 1; transform: none; }
@keyframes wave { from { height: 25%; } to { height: 100%; } }

.story-end { max-width: 760px; margin: clamp(2rem, 5vw, 4rem) auto 0; text-align: center; }
.story-end p:first-child { font: 500 clamp(1.3rem, 2.4vw, 1.75rem)/1.4 var(--serif); color: var(--slate-700); margin-bottom: 1.6rem; }
.story-end strong { background: linear-gradient(transparent 62%, rgba(96,165,250,.35) 0); }
.story-proof { margin-top: 1.1rem; font: 600 .78rem/1.4 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .mock-wrap { order: -1; top: var(--header-h); z-index: 2; background: var(--bg-3); padding: .5rem 0 .9rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .mock-wrap::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 28px; background: linear-gradient(var(--bg-3), transparent); pointer-events: none; }
  .mock-body { min-height: 0; padding: .9rem 1rem 1rem; }
  .m-h { font-size: 1.05rem; } .m-row { display: none; }
  .beat, .beat:first-child { min-height: 46vh; padding: 1.5rem 0; justify-content: flex-start; }
  .beat h3 { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) { .beat { opacity: 1; } .mock * { transition: none !important; animation: none !important; } }

/* ---------- B. Anatomy: six layers in CSS 3D (sticky stage, scroll-scrubbed gap) ---------- */
.anatomy { position: relative; height: 260vh; background: radial-gradient(60% 50% at 75% 45%, rgba(96,165,250,.14), transparent 70%), var(--bg); }
.anat-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.anat-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; width: 100%; padding-top: var(--header-h); }
.anat-sub { margin: .9rem 0 1.4rem; font-size: 1.08rem; max-width: 40ch; }
.anat-list { list-style: none; display: grid; gap: .25rem; align-content: start; height: 22.5rem; }
.anat-list button { width: 100%; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 .6rem; align-items: baseline; padding: .55rem .8rem; border: 0; border-radius: 12px; background: none; text-align: left; color: var(--slate-500); transition: background .3s, color .3s; }
.anat-list .n { font: 600 .75rem/1 var(--ui); letter-spacing: .12em; color: var(--slate-500); transition: color .3s; }
.anat-list .t { font: 600 1.15rem/1.3 var(--serif); color: var(--slate-700); }
.anat-list .d { grid-column: 2; font-size: .9rem; line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease-out), opacity .3s; }
.anat-list li.is-on button, .anat-list button:hover, .anat-list button:focus-visible { background: #fff; box-shadow: var(--shadow); }
.anat-list li.is-on .n { color: var(--blue); }
.anat-list li.is-on .d { max-height: 4.5em; opacity: 1; }
.anat-list li.is-lit .n { color: var(--blue); }

.anat-stage { position: relative; height: min(76vh, 640px); perspective: 1600px; display: grid; place-items: center; }
.stack { --gap: 70; position: relative; width: min(380px, 70%); aspect-ratio: 16 / 10.5; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(calc(var(--srz, -40) * 1deg)) translateZ(-160px); }
.layer { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc((var(--i) - 1) * var(--gap) * 1px)); transition: opacity .35s; }
.layer.is-above { opacity: .16; }
.l1 { --i: 1; } .l2 { --i: 2; } .l3 { --i: 3; } .l4 { --i: 4; } .l5 { --i: 5; } .l6 { --i: 6; }
.lc { position: absolute; inset: 0; border-radius: 14px; background: rgba(255,255,255,.94); border: 1.5px solid rgba(37,99,235,.25); box-shadow: 0 30px 40px -24px rgba(15,31,61,.35); padding: 8%; overflow: hidden; transition: border-color .3s, box-shadow .3s, background .3s; }
.layer.is-on .lc { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.25), 0 30px 50px -20px rgba(37,99,235,.55); }
.code { background: #0f1f3d; border-color: #1e3a8a; display: grid; gap: 9%; align-content: center; }
.code i { display: block; height: 6%; border-radius: 4px; background: linear-gradient(90deg, #60a5fa 0 30%, #334155 30%); }
.code i:nth-child(2) { width: 70%; margin-left: 10%; } .code i:nth-child(3) { width: 82%; margin-left: 10%; } .code i:nth-child(4) { width: 55%; margin-left: 20%; } .code i:nth-child(5) { width: 40%; }
.code b { position: absolute; right: 8%; bottom: 8%; font: 700 1.6rem/1 var(--ui); color: #93c5fd; }
.strat { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 8% 6%; }
.strat .who { grid-column: 1 / -1; justify-self: start; padding: .35rem .7rem; border-radius: 999px; background: var(--tint); color: var(--blue); font: 600 .72rem/1 var(--ui); }
.strat .tgt { grid-column: 2; grid-row: 2 / span 3; width: 70px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #2563eb 0 14%, #fff 14% 30%, #60a5fa 30% 46%, #fff 46% 62%, #bfdbfe 62% 78%, transparent 78%); }
.strat i { height: 8px; border-radius: 4px; background: #e2e8f0; } .strat i:nth-of-type(2) { width: 75%; } .strat i:nth-of-type(3) { width: 55%; }
.msg { display: grid; align-content: center; gap: 6%; }
.msg strong { font: 700 1.25rem/1.15 var(--serif); color: var(--ink); }
.msg em { font: italic 600 1.05rem/1.2 var(--serif); color: var(--blue); background: linear-gradient(transparent 60%, rgba(250,204,21,.45) 0); justify-self: start; }
.msg i { height: 7px; border-radius: 4px; background: #e2e8f0; } .msg i:last-child { width: 60%; }
.des { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 8%; }
.des .sw { display: flex; gap: 6px; } .des .sw i { width: 24px; height: 24px; border-radius: 6px; background: #60a5fa; } .des .sw i:nth-child(2) { background: #2563eb; } .des .sw i:nth-child(3) { background: #0f1f3d; } .des .sw i:nth-child(4) { background: #fde68a; }
.des .aa { font: 700 2.2rem/1 var(--serif); color: var(--ink); justify-self: end; }
.des .img { grid-column: 1 / -1; border-radius: 10px; background: linear-gradient(135deg, #bfdbfe, #2563eb 70%, #1e3a8a); }
.vid { background: linear-gradient(135deg, #1e3a8a, #0f1f3d); border-color: #1e40af; display: grid; place-items: center; }
.vid .pl { width: 0; height: 0; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.vid .bar { position: absolute; left: 8%; right: 8%; bottom: 10%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.vid .bar i { display: block; height: 100%; width: 40%; background: #60a5fa; animation: vidbar 3s linear infinite; }
@keyframes vidbar { from { width: 0; } to { width: 100%; } }
.conv { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 6%; }
.conv .cta { padding: .6rem 1rem; border-radius: 999px; background: #15803d; color: #fff; font: 600 .78rem/1 var(--sans); box-shadow: 0 10px 20px -8px rgba(22,163,74,.7); white-space: nowrap; }
.conv .ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #16a34a; font-weight: 700; }
.conv svg { grid-column: 1 / -1; width: 100%; height: 46%; } .conv polyline { fill: none; stroke: #16a34a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ready { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translateZ(calc(6 * var(--gap) * 1px + 40px)) rotateZ(40deg) rotateX(-58deg); padding: .55rem 1rem; border-radius: 999px; background: #15803d; color: #fff; font: 700 .9rem/1 var(--ui); white-space: nowrap; box-shadow: 0 14px 30px -10px rgba(22,163,74,.7); opacity: 0; }
.ghost-stack { position: absolute; left: 2%; bottom: 16%; width: 150px; transform: rotateX(58deg) rotateZ(-40deg); transform-style: preserve-3d; opacity: .9; }
.glayer { position: absolute; inset: 0; width: 150px; aspect-ratio: 16 / 10.5; border-radius: 10px; background: #e2e8f0; border: 1.5px dashed #94a3b8; }
.glayer + .glayer { transform: translateZ(18px); background: #f1f5f9; }
.ghost-stack p { position: absolute; left: 0; top: 120px; width: 170px; transform: rotateZ(40deg) rotateX(-58deg); transform-origin: left top; font: 600 .72rem/1.2 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--slate-500); }

@media (max-width: 900px) {
  .anatomy { height: auto; padding: var(--section) 0; }
  .anat-sticky { position: static; height: auto; overflow: visible; }
  .anat-grid { grid-template-columns: 1fr; padding-top: 0; }
  .anat-stage { display: none; }
  .anat-list { height: auto; }
  .anat-list .d { max-height: none; opacity: 1; }
  .anat-list button { background: #fff; box-shadow: var(--shadow-soft); border: 1px solid var(--line); padding: .9rem 1rem; }
  .anat-list { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .vid .bar i { animation: none; width: 60%; } }

/* ---------- Showreel: full-bleed video that opens from a framed card as it scrolls in ---------- */
.reel { position: relative; padding: var(--section) 0 0; background: var(--bg); overflow: hidden; }
.reel-head { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.reel-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 100vh; margin: 0 auto; overflow: hidden; background: #eef3fb; transform-origin: 50% 0; }
.reel-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .reel-frame { aspect-ratio: 4 / 5; max-height: none; } }
.reel-toggle { position: absolute; right: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.75rem, 2vw, 1.5rem); width: 52px; height: 52px;   /* the frame scales from .86: 52 px stays >= 44 px to tap */ border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); box-shadow: var(--shadow); cursor: pointer; }
.reel-toggle span { width: 12px; height: 14px; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); }
.reel-toggle.is-paused span { width: 0; height: 0; border: 0; border-left: 13px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.reel-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* QA 2026-10-12 (axe colour contrast, tap targets, min text size) */
.mock .m-cta-top, .mock .m-btn { background-color: #15803d !important; }
.lede, .contact-proof { color: #4b5a6e; }
@media (max-width: 767px) { .story-proof, .contact-proof { font-size: 1rem; text-transform: none; letter-spacing: .01em; } }

