/* ==========================================================================
   sherazahmad.com — v3 "Kinetic"
   Dark, cinematic, motion-led. Near-black, bone white, one electric lime.
   Type: Archivo (variable width, used expanded for display), Geist, Geist Mono.
   Motion is progressive: without JS or with reduced motion, every section is
   a normal static layout.
   ========================================================================== */

:root {
  color-scheme: dark;
  --display: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;

  --bg: #09090B;
  --bg-2: #0F0F12;
  --surface: #141418;
  --surface-2: #1C1C21;
  --fg: #F3F2EC;
  --fg-2: #B3B2AB;
  --fg-3: #85847E;
  --line: rgba(243, 242, 236, .10);
  --line-2: rgba(243, 242, 236, .22);
  --lime: #D4FF3A;
  --lime-2: #E4FF7A;
  --on-lime: #09090B;

  --gut: clamp(16px, 3.6vw, 56px);
  --max: 1480px;
  --gap: clamp(14px, 1.6vw, 24px);
  --r-xl: clamp(20px, 2.4vw, 32px);
  --r-lg: clamp(16px, 1.8vw, 22px);
  --r-md: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --expo: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* film grain over everything, static and cheap */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--lime); color: var(--on-lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--lime); color: var(--on-lime); padding: 10px 16px; border-radius: 999px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.display { font-family: var(--display); font-variation-settings: "wdth" 118; font-weight: 800; letter-spacing: -.035em; line-height: .88; text-transform: uppercase; }
.lime { color: var(--lime); }

/* split-text helpers (JS wraps words/lines/chars) */
.w, .c { display: inline-block; }
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask > span { display: inline-block; will-change: transform; }

/* ---------- pills, chips, tags ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s, background-color .35s;
}
.pill svg { width: 16px; height: 16px; transition: transform .45s var(--expo); }
.pill:hover svg { transform: translateX(4px); }
/* liquid fill from the bottom on hover */
.pill::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -160%; height: 140%; border-radius: 50%; z-index: -1; transition: bottom .55s var(--expo), border-radius .55s var(--expo); }
.pill:hover::before { bottom: -10%; border-radius: 0; }
.pill-lime, .pill-cobalt { background: var(--lime); color: var(--on-lime); }
.pill-lime::before, .pill-cobalt::before { background: var(--fg); }
.pill-ghost, .pill-ghost-white { border: 1px solid var(--line-2); color: var(--fg); }
.pill-ghost::before, .pill-ghost-white::before { background: var(--fg); }
.pill-ghost:hover, .pill-ghost-white:hover { color: var(--bg); border-color: var(--fg); }
.pill-white, .pill-ink { background: var(--fg); color: var(--bg); }
.pill-white::before, .pill-ink::before { background: var(--lime); }
.pill-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid var(--line); color: var(--fg-2); transition: all .25s var(--ease); }
.chip:hover { border-color: var(--line-2); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.chip small { font-family: var(--mono); font-size: 11px; opacity: .6; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--surface-2); color: var(--fg-2); }
.tag-cobalt, .tag-lime { background: rgba(212, 255, 58, .12); color: var(--lime); }

/* ---------- custom cursor (fine pointers only) ---------- */
.cursor, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; opacity: 0; }
html.has-cursor .cursor, html.has-cursor .cursor-ring { opacity: 1; }
.cursor { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--lime); mix-blend-mode: difference; }
.cursor-ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 1px solid rgba(243, 242, 236, .45);
  display: grid; place-items: center; transition: width .35s var(--expo), height .35s var(--expo), margin .35s var(--expo), background-color .35s, border-color .35s;
}
.cursor-ring span { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--on-lime); opacity: 0; transition: opacity .2s; }
html.cursor-link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--lime); }
html.cursor-label .cursor-ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--lime); border-color: var(--lime); }
html.cursor-label .cursor-ring span { opacity: 1; }
html.cursor-label .cursor { opacity: 0; }
@media (hover: hover) and (pointer: fine) { html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; } }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 280; background: var(--bg); display: none; }
html.js.show-loader .loader { display: flex; flex-direction: column; justify-content: space-between; padding: var(--gut); }
.loader-top { display: flex; justify-content: space-between; color: var(--fg-3); }
.loader-count { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(96px, 22vw, 360px); line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.loader-count span { color: var(--lime); }
.loader-bar { height: 2px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }

/* ---------- nav ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 120; padding: 16px var(--gut); display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: transform .5s var(--expo); }
html.nav-hidden .topbar { transform: translateY(-120%); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 800; font-size: 14px; letter-spacing: -.02em; }
.brand small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11.5px; color: var(--fg-3); }
.navpill { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(20, 20, 24, .7); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border: 1px solid var(--line); }
.navpill a { position: relative; padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--fg-2); transition: color .25s; }
.navpill a:hover { color: var(--fg); }
.navpill a[aria-current="true"], .navpill a[aria-current="page"] { color: var(--on-lime); background: var(--lime); }
.top-end { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(20, 20, 24, .7); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); flex-direction: column; justify-content: center; align-items: center; }
.menu-btn span { display: block; width: 16px; height: 1.6px; background: currentColor; transition: transform .4s var(--expo); }
.menu-btn span + span { margin-top: 5px; }
html.menu-open .menu-btn span:first-child { transform: translateY(3.3px) rotate(45deg); }
html.menu-open .menu-btn span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 110; background: var(--bg); padding: 96px var(--gut) 32px; display: flex; flex-direction: column; justify-content: space-between; clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .8s var(--expo); visibility: hidden; }
html.menu-open .sheet { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.sheet nav a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-variation-settings: "wdth" 118; font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 11vw, 64px); letter-spacing: -.03em; line-height: 1; }
.sheet nav a small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--fg-3); letter-spacing: 0; }
.sheet .pill { width: 100%; }
@media (max-width: 900px) { .navpill, .top-end .pill { display: none; } .menu-btn { display: inline-flex; } .brand small { display: none; } }

/* ---------- reveal (non-GSAP fallback) ---------- */
html.js .rv { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--expo), transform 1.2s var(--expo); transition-delay: var(--d, 0s); }
html.js .rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */
.section { padding-top: clamp(110px, 14vw, 200px); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head h2 { font-size: clamp(52px, 9.4vw, 168px); margin-top: 18px; }
.sec-head h2 sup { font-family: var(--mono); font-size: .14em; font-weight: 500; letter-spacing: 0; vertical-align: top; color: var(--lime); margin-left: .25em; position: relative; top: .6em; text-transform: none; }
.sec-head p { max-width: 40ch; color: var(--fg-2); font-size: 18px; }

/* ---------- hero: particle name ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
/* exploded build: a website as four floating layers (driven by home.js) */
.b3d { position: absolute; left: 0; right: 0; top: 120px; bottom: 30%; display: flex; align-items: center; justify-content: center; perspective: 1900px; perspective-origin: 50% 30%; pointer-events: none; user-select: none; }
.b3d-scene { position: relative; width: min(40vw, 580px); aspect-ratio: 16 / 10.4; transform-style: preserve-3d; transform: translateY(150px) rotateX(56deg) rotateZ(-36deg); }
.b3d-layer { position: absolute; inset: 0; border-radius: 14px; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * 80px)); }
.b3d-tag { position: absolute; left: 0; bottom: calc(100% + 10px); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.b3d-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.b3d-tag b { color: var(--lime); font-weight: 500; }
/* 01 grid */
.b3d-grid { border: 1px solid rgba(212, 255, 58, .35); background-color: rgba(212, 255, 58, .03);
  background-image: linear-gradient(rgba(212, 255, 58, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 255, 58, .22) 1px, transparent 1px);
  background-size: calc(100% / 12) calc(100% / 8); box-shadow: 0 0 60px rgba(212, 255, 58, .08); }
/* 02 layout */
.b3d-wire { border: 1px solid rgba(243, 242, 236, .28); }
.b3d-wire i { position: absolute; border: 1.5px dashed rgba(243, 242, 236, .45); border-radius: 6px; }
.b3d-wire .w-nav { left: 4%; right: 4%; top: 5%; height: 8%; }
.b3d-wire .w-hero { left: 4%; width: 54%; top: 19%; height: 38%; }
.b3d-wire .w-img { left: 62%; right: 4%; top: 19%; height: 38%; }
.b3d-wire .w-c1 { left: 4%; width: 28%; top: 63%; height: 22%; }
.b3d-wire .w-c2 { left: 36%; width: 28%; top: 63%; height: 22%; }
.b3d-wire .w-c3 { left: 68%; right: 4%; top: 63%; height: 22%; }
.b3d-wire .w-foot { left: 4%; right: 4%; top: 89%; height: 5%; }
/* 03 content */
.b3d-content { background: rgba(20, 20, 24, .82); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.b3d-content i { position: absolute; border-radius: 4px; background: rgba(243, 242, 236, .7); }
.b3d-content .t-logo { left: 4%; top: 7%; width: 12%; height: 3.5%; background: var(--fg); }
.b3d-content .t-nav { right: 4%; top: 7.5%; width: 30%; height: 2.5%; background: rgba(243, 242, 236, .35); }
.b3d-content .t-h1 { left: 4%; top: 22%; width: 46%; height: 7%; background: var(--fg); }
.b3d-content .t-h2 { left: 4%; top: 32%; width: 34%; height: 7%; background: var(--fg); }
.b3d-content .t-p1 { left: 4%; top: 44%; width: 44%; height: 2.4%; background: rgba(243, 242, 236, .4); }
.b3d-content .t-p2 { left: 4%; top: 49%; width: 38%; height: 2.4%; background: rgba(243, 242, 236, .4); }
.b3d-content .t-btn { left: 4%; top: 56%; width: 16%; height: 6%; border-radius: 99px; background: var(--lime); box-shadow: 0 0 20px rgba(212, 255, 58, .5); }
.b3d-content .t-img { left: 62%; right: 4%; top: 19%; height: 38%; border-radius: 8px; background: linear-gradient(135deg, rgba(212, 255, 58, .35), rgba(243, 242, 236, .08)); }
.b3d-content .t-c1, .b3d-content .t-c2, .b3d-content .t-c3 { top: 64%; height: 20%; border-radius: 8px; background: rgba(243, 242, 236, .1); }
.b3d-content .t-c1 { left: 4%; width: 28%; } .b3d-content .t-c2 { left: 36%; width: 28%; } .b3d-content .t-c3 { left: 68%; right: 4%; }
/* 04 shipped */
.b3d-shot { border-radius: 14px; overflow: visible; }
.b3d-shot .frame { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(243, 242, 236, .18); }
.b3d-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .8s var(--ease); }
.b3d-shot img.on { opacity: 1; }
@media (max-width: 760px) {
  .b3d { top: 150px; bottom: 42%; }
  .b3d-scene { width: min(68vw, 320px); transform: translateY(76px) rotateX(56deg) rotateZ(-36deg); }
  .b3d-layer { transform: translateZ(calc(var(--i) * 40px)); }
  .b3d-tag { font-size: 10px; bottom: calc(100% + 6px); }
}
.hero-ui { position: absolute; inset: 0; pointer-events: none; padding: 96px var(--gut) clamp(20px, 3vw, 36px); display: flex; flex-direction: column; justify-content: space-between; }
.hero-ui > * { pointer-events: auto; }
.hero-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--fg-3); }
.hero-meta time { color: var(--fg); }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
.hero-role { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 56px); line-height: 1; letter-spacing: -.02em; }
.hero-role .lime { display: block; }
.hero-intro { color: var(--fg-2); max-width: 44ch; font-size: 16.5px; }
.avail { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(20, 20, 24, .75); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(212, 255, 58, .6); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(212, 255, 58, .5); } 70% { box-shadow: 0 0 0 10px rgba(212, 255, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 255, 58, 0); } }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: var(--fg-3); }
.scroll-cue i { width: 1px; height: 56px; background: linear-gradient(var(--lime), transparent); transform-origin: top; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px) { .hero-bottom { grid-template-columns: 1fr; } .scroll-cue { display: none; } }

/* ---------- manifesto: words light up with scroll ---------- */
.manifesto { position: relative; }
.manifesto-inner { padding: clamp(80px, 12vw, 160px) 0; }
.manifesto p.big { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 700; font-size: clamp(34px, 5.4vw, 92px); line-height: 1.02; letter-spacing: -.03em; max-width: 20ch; }
html.motion .manifesto p.big .w { opacity: .14; }
.manifesto p.big .hl { color: var(--lime); }
.manifesto-foot { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.stat { border-top: 1px solid var(--line-2); padding-top: 16px; }
.stat b { display: block; font-family: var(--display); font-variation-settings: "wdth" 120; font-weight: 800; font-size: clamp(48px, 6vw, 96px); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat b em { font-style: normal; color: var(--lime); }
.stat > span { display: block; margin-top: 10px; color: var(--fg-2); font-size: 15px; }
.stat.txt b { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.05; font-variation-settings: "wdth" 105; text-transform: uppercase; letter-spacing: -.02em; padding-top: 8px; }
@media (max-width: 860px) { .manifesto-foot { grid-template-columns: 1fr 1fr; row-gap: 28px; } }

/* ---------- velocity marquee ---------- */
.marquee { padding: clamp(36px, 5vw, 72px) 0; overflow: hidden; border-block: 1px solid var(--line); }
.mq-row { display: flex; width: max-content; will-change: transform; }
.mq-row + .mq-row { margin-top: 10px; }
.mq-row span { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 6vw, 96px); letter-spacing: -.03em; line-height: 1; white-space: nowrap; padding-right: .5em; display: inline-flex; align-items: center; gap: .5em; }
.mq-row span::after { content: ""; width: .28em; height: .28em; background: var(--lime); border-radius: 50%; }
.mq-row.outline span { color: transparent; -webkit-text-stroke: 1.5px rgba(243, 242, 236, .4); }
.mq-row.outline span::after { background: transparent; border: 1.5px solid rgba(243, 242, 236, .4); }
html:not(.motion) .mq-row { padding-inline: var(--gut); }
html:not(.motion) .mq-row .dup { display: none; }

/* ---------- work: one pinned scene per project ---------- */
.scenes { position: relative; }
.scene { position: relative; }
html.motion .scene { height: 170vh; }
.scene-stage { position: relative; height: auto; padding: 24px var(--gut); }
html.motion .scene-stage { position: sticky; top: 0; height: 100svh; padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.scene-media { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
html.motion .scene-media { position: absolute; inset: 0; width: auto; aspect-ratio: auto; border-radius: 0; clip-path: inset(18% 24% 18% 24% round 28px); will-change: clip-path; }
.scene-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; will-change: transform; }
.scene-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 9, 11, .2) 0%, rgba(9, 9, 11, 0) 30%, rgba(9, 9, 11, .55) 62%, rgba(9, 9, 11, .94) 100%); }
.scene-title {
  position: relative; z-index: 2; pointer-events: none; mix-blend-mode: difference;
  font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; text-transform: uppercase;
  font-size: clamp(56px, 12.6vw, 240px); line-height: .82; letter-spacing: -.04em; white-space: nowrap; color: #fff; text-align: center;
  margin-top: 18px;
}
html.motion .scene-title { position: absolute; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -50%); }
.scene-info {
  position: relative; z-index: 3; margin-top: 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 16px 40px; align-items: end;
}
html.motion .scene-info { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(24px, 4vw, 48px); margin: 0; }
.scene-num { font-family: var(--mono); color: var(--lime); font-size: 13px; }
.scene-num b { display: block; font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(40px, 4vw, 64px); color: var(--fg); letter-spacing: -.04em; line-height: 1; margin-top: 6px; }
.scene-desc p { color: var(--fg-2); max-width: 54ch; font-size: 16px; }
.scene-desc .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.scene-desc .tag { background: rgba(28, 28, 33, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.scene-phone {
  position: absolute; z-index: 2; right: clamp(20px, 7vw, 120px); top: 50%; width: clamp(120px, 13vw, 210px); aspect-ratio: 390 / 844;
  border-radius: 26px; overflow: hidden; border: 5px solid #0B0B0D; background: #0B0B0D;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); transform: translateY(-50%);
}
.scene-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px; }
html:not(.motion) .scene-phone { display: none; }
.scene-progress { position: fixed; left: var(--gut); top: 50%; z-index: 20; display: none; flex-direction: column; gap: 6px; transform: translateY(-50%); }
html.motion .scene-progress.on { display: flex; }
.scene-progress i { width: 3px; height: 22px; border-radius: 3px; background: var(--line-2); transition: background-color .3s, height .3s var(--expo); }
.scene-progress i.on { background: var(--lime); height: 40px; }
@media (max-width: 860px) {
  .scene-info { grid-template-columns: 1fr; }
  html.motion .scene { height: 140vh; }
  .scene-phone { display: none; }
  .scene-title { font-size: clamp(44px, 14vw, 120px); white-space: normal; }
}

/* ---------- archive rows + cursor-following preview ---------- */
.archive-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.rows { border-top: 1px solid var(--line-2); }
.row {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
}
.row[hidden] { display: none; }
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--expo); }
a.row:hover::before { transform: scaleY(1); }
a.row:hover, a.row:hover .r-s, a.row:hover .r-t, a.row:hover .r-n { color: var(--on-lime); }
.r-n { font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); padding-left: 4px; transition: color .3s; }
.r-c { font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2.2vw, 34px); letter-spacing: -.02em; line-height: 1; transition: transform .6s var(--expo); }
a.row:hover .r-c { transform: translateX(12px); }
.r-s, .r-t { font-size: 15px; color: var(--fg-2); transition: color .3s; }
.r-go { justify-self: end; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .5s var(--expo), border-color .3s; margin-right: 4px; }
.r-go svg { width: 14px; height: 14px; }
a.row:hover .r-go { transform: rotate(-45deg); border-color: var(--on-lime); }
.row.is-off .r-c { color: var(--fg-3); }
.row .off { font-family: var(--mono); font-size: 12px; color: var(--fg-3); justify-self: end; }
.rows.collapsed .row:nth-child(n+13) { display: none; }
.rows-more { display: flex; justify-content: center; margin-top: 28px; }
.peek { position: fixed; left: 0; top: 0; z-index: 60; width: 360px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(-999px, 0, 0); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); background: var(--surface); }
.peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (hover: none), (max-width: 860px) { .peek { display: none; } }
@media (max-width: 860px) {
  .row { grid-template-columns: 36px 1fr auto; gap: 6px 12px; }
  .r-s { grid-column: 2; grid-row: 2; font-size: 14px; }
  .r-t { display: none; }
}

/* ---------- services: stacking cards ---------- */
.stack { display: flex; flex-direction: column; gap: 18px; }
.card {
  position: relative; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line);
  padding: clamp(24px, 3.4vw, 48px); min-height: min(62vh, 560px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(24px, 4vw, 64px); align-content: space-between;
  transform-origin: center top; will-change: transform;
}
@media (min-width: 861px) { html.motion .card { position: sticky; top: calc(96px + var(--i) * 18px); } }
.card-num { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: clamp(90px, 13vw, 220px); line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); }
.card h3 { font-family: var(--display); font-variation-settings: "wdth" 115; font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 4vw, 64px); line-height: .92; letter-spacing: -.03em; }
.card p { color: var(--fg-2); max-width: 46ch; font-size: 17px; margin-top: 18px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.card:nth-child(2) { background: #16161B; }
.card:nth-child(3) { background: #18181E; }
.card:nth-child(4) { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.card:nth-child(4) p { color: rgba(9, 9, 11, .75); }
.card:nth-child(4) .tag { background: rgba(9, 9, 11, .1); color: var(--on-lime); }
.card:nth-child(4) .card-num { -webkit-text-stroke-color: rgba(9, 9, 11, .3); }
@media (max-width: 860px) { .card { grid-template-columns: 1fr; min-height: 0; } }

/* ---------- experience: drawn timeline ---------- */
.xp { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 80px); }
.xp-side { position: sticky; top: 120px; align-self: start; container-type: inline-size; min-width: 0; }
.xp-side h2 { font-size: clamp(40px, 16cqi, 120px); margin: 18px 0 20px; overflow-wrap: anywhere; }
.xp-side p { color: var(--fg-2); max-width: 38ch; font-size: 17.5px; }
.xp-side .pill { margin-top: 24px; }
.xp-line { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; }
.xp-line svg { width: 2px; height: 100%; overflow: visible; }
.xp-list { position: relative; padding-left: 40px; }
.xp-line { background: var(--line); border-radius: 2px; }
.xp-line i { position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: var(--lime); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 16px var(--lime); }
html:not(.motion) .xp-line i { transform: none; }
.job { position: relative; padding: 4px 0 56px; }
.job::before { content: ""; position: absolute; left: -46px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--lime); }
.job .when { font-family: var(--mono); font-size: 13px; color: var(--fg-3); }
.job .when b { color: var(--lime); font-weight: 500; }
.job h3 { font-family: var(--display); font-variation-settings: "wdth" 118; font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 4.2vw, 68px); line-height: .9; letter-spacing: -.03em; margin: 12px 0 8px; }
.job .role { color: var(--fg); font-weight: 500; margin-bottom: 16px; }
.job li { position: relative; padding-left: 20px; color: var(--fg-2); max-width: 62ch; }
.job li + li { margin-top: 8px; }
.job li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--lime); }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.tool { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.tool h4 { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); margin-bottom: 12px; }
.tool .tags { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) { .xp { grid-template-columns: 1fr; } .xp-side { position: static; } .tools { grid-template-columns: 1fr; } }

/* ---------- journal cards ---------- */
.jgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.jcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: border-color .3s, transform .6s var(--expo); transform-style: preserve-3d; }
.jcard[hidden] { display: none; }
.jcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 255, 58, .14), transparent 60%); opacity: 0; transition: opacity .4s; }
.jcard:hover { border-color: rgba(212, 255, 58, .4); }
.jcard:hover::before { opacity: 1; }
.jcard-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.jcard-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.jcard-meta time { font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.jcard h3 { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 700; font-size: 23px; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.jcard p { color: var(--fg-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jcard::after { content: "Read →"; margin: 0 24px 22px; font-weight: 600; font-size: 14.5px; color: var(--lime); }
.j-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.j-foot .mono a { color: var(--fg-2); }
.j-foot .mono a:hover { color: var(--lime); }
@media (max-width: 1000px) { .jgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .jgrid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { position: relative; padding: clamp(110px, 14vw, 200px) 0 clamp(40px, 5vw, 72px); overflow: hidden; }
.contact-big { font-size: clamp(72px, 17vw, 300px); line-height: .8; white-space: nowrap; }
.contact-big .lime { display: inline-block; }
.contact-row { margin-top: clamp(36px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact-side p { color: var(--fg-2); font-size: 18px; max-width: 42ch; }
.magnet-wrap { margin: clamp(28px, 4vw, 48px) 0; }
.magnet {
  width: clamp(150px, 15vw, 200px); aspect-ratio: 1; border-radius: 50%; background: var(--lime); color: var(--on-lime);
  display: grid; place-items: center; text-align: center; font-family: var(--display); font-variation-settings: "wdth" 115; font-weight: 800; text-transform: uppercase; font-size: 17px; line-height: 1.05; letter-spacing: -.01em;
  will-change: transform; transition: box-shadow .4s;
}
.magnet:hover { box-shadow: 0 0 0 12px rgba(212, 255, 58, .15); }
.direct { display: grid; gap: 8px; }
.direct > a, .direct > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--line); transition: border-color .25s, background-color .25s; }
.direct > a:hover { border-color: var(--lime); background: rgba(212, 255, 58, .05); }
.direct .mono { color: var(--fg-3); }
.direct b, .direct .b { font-weight: 600; text-align: right; }
.direct .b { margin-left: auto; }
.direct .copy { font-family: var(--mono); font-size: 12px; background: var(--surface-2); border-radius: 999px; padding: 6px 12px; transition: background-color .2s, color .2s; }
.direct .copy:hover, .direct .copy.done { background: var(--lime); color: var(--on-lime); }

.brief { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 2.6vw, 36px); }
.brief h3 { font-family: var(--display); font-variation-settings: "wdth" 115; font-weight: 800; text-transform: uppercase; font-size: 28px; letter-spacing: -.02em; line-height: 1; }
.brief > p { color: var(--fg-2); margin: 10px 0 18px; font-size: 15px; }
.brief fieldset { border: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.brief legend { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); margin-bottom: 10px; padding: 0; }
.brief .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.brief .opt { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 500; color: var(--fg-2); transition: all .2s var(--ease); }
.brief .opt:hover { border-color: var(--fg); color: var(--fg); }
.brief .opt[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.brief textarea, .brief input[type="text"] { width: 100%; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; background: var(--bg-2); font-size: 15.5px; resize: vertical; min-height: 48px; outline: none; transition: border-color .2s; }
.brief textarea { min-height: 96px; }
.brief textarea:focus, .brief input[type="text"]:focus { border-color: var(--lime); }
.brief textarea::placeholder, .brief input::placeholder { color: var(--fg-3); }
.brief .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.brief-send { margin-top: 18px; width: 100%; }
.brief-note { margin-top: 10px; font-size: 13px; color: var(--fg-3); text-align: center; }
@media (max-width: 960px) { .contact-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .brief .row2 { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 96px) 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-top h4 { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); margin-bottom: 12px; }
.foot-top li + li { margin-top: 6px; }
.foot-top a { color: var(--fg-2); transition: color .2s; }
.foot-top a:hover { color: var(--lime); }
.foot-brand p { color: var(--fg-2); max-width: 34ch; margin-top: 14px; }
.foot-word { margin-top: clamp(48px, 7vw, 96px); font-size: min(9vw, 150px); line-height: .78; white-space: nowrap; letter-spacing: -.045em; display: flex; justify-content: space-between; }
.foot-word .c { will-change: transform; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 0 24px; border-top: 1px solid var(--line); color: var(--fg-3); }
.foot-bottom a:hover { color: var(--lime); }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ==========================================================================
   JOURNAL INDEX, ARTICLE, 404  (markup shared with the generator)
   ========================================================================== */
.page-top { padding: 12px; }
.page-panel { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); padding: clamp(110px, 12vw, 150px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 48px); display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; position: relative; overflow: hidden; }
.page-panel::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(212, 255, 58, .16), transparent 65%); pointer-events: none; }
.page-panel h1 { font-size: clamp(80px, 15vw, 250px); margin-top: 14px; }
.page-panel p { max-width: 44ch; color: var(--fg-2); font-size: 18px; margin-top: 18px; }
.page-panel .eyebrow a:hover { color: var(--lime); }
.page-stats { display: flex; gap: 10px; }
.page-stats div { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; min-width: 120px; }
.page-stats dt { font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.page-stats dd { font-family: var(--display); font-variation-settings: "wdth" 118; font-weight: 800; font-size: 34px; line-height: 1.05; letter-spacing: -.03em; }

.j-bar { position: sticky; top: 80px; z-index: 30; margin: 18px auto 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px; border-radius: 999px; background: rgba(20, 20, 24, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); }
.j-bar .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.j-bar .chip { border-color: transparent; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 40px; border-radius: 999px; background: var(--surface-2); min-width: min(300px, 100%); }
.search svg { width: 16px; height: 16px; color: var(--fg-3); flex: none; }
.search input { border: 0; outline: none; background: transparent; width: 100%; font-size: 15px; }
.search input::placeholder { color: var(--fg-3); }
@media (max-width: 760px) { .j-bar { position: static; border-radius: var(--r-lg); } .search { width: 100%; } }
.j-lead { display: block; background: var(--lime); color: var(--on-lime); border-radius: var(--r-xl); margin-bottom: var(--gap); transition: transform .6s var(--expo); }
.j-lead:hover { transform: translateY(-4px); }
.j-lead[hidden] { display: none; }
.j-lead .body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 14px; }
.j-lead .tag-cobalt { background: rgba(9, 9, 11, .1); color: var(--on-lime); }
.j-lead time { color: rgba(9, 9, 11, .65) !important; }
.j-lead h2 { font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 5vw, 80px); line-height: .92; letter-spacing: -.03em; max-width: 18ch; text-wrap: balance; }
.j-lead p { color: rgba(9, 9, 11, .75); font-size: 17px; max-width: 60ch; }
.j-lead .go { align-self: flex-start; margin-top: 6px; background: var(--on-lime); color: var(--lime); }
.j-lead .go::before { background: var(--fg); }
.j-empty { padding: 64px 0; text-align: center; color: var(--fg-3); font-size: 18px; }
.j-empty[hidden] { display: none; }
.j-count { text-align: center; color: var(--fg-3); padding: 24px 0 0; }

.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 130; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--lime); }
.post-top { padding: 12px; }
.post-panel { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); padding: clamp(110px, 12vw, 150px) clamp(20px, 4vw, 56px) clamp(28px, 3.6vw, 44px); position: relative; overflow: hidden; }
.post-panel::before { content: ""; position: absolute; left: -10%; bottom: -60%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(212, 255, 58, .12), transparent 65%); pointer-events: none; }
.post-inner { position: relative; max-width: 1040px; margin: 0 auto; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a, .crumbs span { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--fg-2); }
.crumbs a:hover { border-color: var(--lime); color: var(--lime); }
.post-title { font-size: clamp(38px, 5.8vw, 92px); margin: 24px 0 20px; max-width: 18ch; text-wrap: balance; line-height: .92; }
.standfirst { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; color: var(--fg-2); max-width: 50ch; }
.byline { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; margin-top: clamp(28px, 3.4vw, 44px); padding-top: 18px; border-top: 1px solid var(--line); color: var(--fg-3); }
.byline .who { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; }
.byline .who i { width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; font-style: normal; font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 800; font-size: 13px; }
.byline .share { margin-left: auto; }
.post-body { max-width: 1040px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--gut) 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.post-rail .sticky { position: sticky; top: 100px; }
.toc { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.toc h2 { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); margin-bottom: 8px; }
.toc a { display: block; font-size: 14px; line-height: 1.35; padding: 7px 10px; border-radius: 10px; color: var(--fg-2); transition: background-color .2s, color .2s; }
.toc a:hover { background: var(--surface-2); color: var(--fg); }
.toc a.on { background: rgba(212, 255, 58, .12); color: var(--lime); font-weight: 600; }
.post-main { min-width: 0; max-width: 700px; }
@media (max-width: 1000px) { .post-body { grid-template-columns: 1fr; } .post-rail { display: none; } }
.prose { font-size: 19px; line-height: 1.72; color: #DCDBD4; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--display); font-variation-settings: "wdth" 105; font-weight: 800; color: var(--fg); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.025em; margin-top: 2em; scroll-margin-top: 100px; }
.prose h3 { font-family: var(--display); font-variation-settings: "wdth" 105; font-weight: 700; color: var(--fg); font-size: 22px; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .55em; }
.prose a { color: var(--lime); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: rgba(212, 255, 58, .45); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--fg); font-weight: 650; }
.prose li { position: relative; padding-left: 1.5em; }
.prose li + li { margin-top: .45em; }
.prose ul > li::before { content: ""; position: absolute; left: .3em; top: .72em; width: .38em; height: .38em; border-radius: 50%; background: var(--lime); }
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; }
.prose ol > li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .35em; font-family: var(--mono); font-size: .66em; color: var(--lime); }
.prose blockquote { border-left: 2px solid var(--lime); padding: 4px 0 4px 20px; font-size: 1.08em; color: var(--fg-2); }
.prose code { font-family: var(--mono); font-size: .82em; background: var(--surface-2); padding: .12em .4em; border-radius: 6px; }
.takeaways { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; margin-bottom: 1.6em; }
.takeaways .mono { display: block; color: var(--lime); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.takeaways ol { counter-reset: t; font-size: 17px; line-height: 1.5; color: var(--fg); }
.takeaways li { counter-increment: t; position: relative; padding-left: 40px; }
.takeaways li + li { margin-top: 12px; }
.takeaways li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 12px; color: var(--on-lime); background: var(--lime); border-radius: 999px; padding: 2px 7px; }
.faq { display: flex; flex-direction: column; gap: 8px; margin-top: .8em; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 18px; transition: border-color .3s; }
.faq details[open] { border-color: rgba(212, 255, 58, .4); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 18px; line-height: 1; transition: transform .4s var(--expo), background-color .2s, color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.faq details p { color: var(--fg-2); font-size: 16.5px; padding-bottom: 16px; }
.sources { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.sources > .mono { display: block; color: var(--fg-3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.sources li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.sources .src-name { color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sources a:hover { color: var(--lime); }
.disclosure { margin-top: 14px; font-size: 13.5px; color: var(--fg-3); }
@media (max-width: 600px) { .sources li { grid-template-columns: 1fr; gap: 2px; } .prose { font-size: 18px; } }
.related { margin-top: clamp(72px, 9vw, 120px); }
.related-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.related-head h2 { font-size: clamp(34px, 4.4vw, 64px); }
.cta { padding: 12px; margin-top: clamp(72px, 9vw, 120px); }
.cta-panel { border-radius: var(--r-xl); background: var(--lime); color: var(--on-lime); padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 56px); display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }
.cta-panel h2 { font-size: clamp(40px, 6vw, 100px); max-width: 12ch; }
.cta-panel p { color: rgba(9, 9, 11, .75); max-width: 42ch; margin-bottom: 18px; }
.cta-panel .pill-white { background: var(--on-lime); color: var(--lime); }
.cta-panel .pill-white::before { background: var(--fg); }
.nf { padding: 12px; }
.nf-panel { min-height: calc(100svh - 24px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); padding: 120px clamp(20px, 4vw, 56px) 48px; display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; overflow: hidden; }
.nf-panel .big { font-size: clamp(140px, 34vw, 520px); line-height: .76; color: var(--lime); }
.nf-panel h1 { font-size: clamp(32px, 4vw, 60px); }
.nf-panel p { max-width: 46ch; color: var(--fg-2); font-size: 18px; }
.nf-panel .row-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html.js .rv { opacity: 1; transform: none; }
}

/* static (no-motion) scenes: titles wrap like normal headings */
html:not(.motion) .scene-title { white-space: normal; text-align: left; mix-blend-mode: normal; font-size: clamp(40px, 7vw, 120px); }
html:not(.motion) .scene + .scene { margin-top: clamp(40px, 6vw, 80px); }
html { overflow-x: clip; }
/* takeaways sit inside .prose; beat the generic ordered-list marker */
.prose .takeaways li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: 2px; width: auto; height: auto; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--on-lime); background: var(--lime); border-radius: 999px; padding: 1px 7px; }
.prose .takeaways ol { counter-reset: t; } .prose .takeaways li { counter-increment: t; }

/* ==========================================================================
   SERVICE, CASE STUDY & TOOL PAGES (rendered by scripts/site-pages.mjs)
   ========================================================================== */
.sp-body { padding-top: clamp(40px, 5vw, 72px); }
.sp-h2 { font-size: clamp(30px, 3.6vw, 54px); margin: clamp(48px, 6vw, 88px) 0 22px; }
.sp-body > .sp-h2:first-child { margin-top: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .6s var(--expo); }
.svc-card:hover { border-color: var(--lime); transform: translateY(-4px); }
.svc-card .n { font-family: var(--mono); color: var(--lime); font-size: 13px; }
.svc-card h2 { font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 40px); line-height: .95; letter-spacing: -.02em; }
.svc-card p { color: var(--fg-2); }
.svc-card .go { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--lime); }
.svc-card .go svg { width: 16px; height: 16px; }
.inc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.inc { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-2); }
.inc h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.inc p { color: var(--fg-2); font-size: 15.5px; }
.sp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.ticks li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 15px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2309090B' stroke-width='2.4'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.steps { counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 12px 0 12px 46px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--mono); font-size: 13px; color: var(--lime); }
.steps li b { display: block; color: var(--fg); font-weight: 600; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.case-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .6s var(--expo); }
.case-card:hover { border-color: var(--lime); transform: translateY(-4px); }
.case-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.case-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--expo); }
.case-card:hover .case-img img { transform: scale(1.04); }
.case-meta { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.case-meta b { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: -.02em; }
.case-meta span:last-child { color: var(--fg-3); font-size: 14px; }
.case-hero { position: relative; margin: 0 0 clamp(40px, 5vw, 72px); padding-bottom: 6%; }
.case-desk { display: block; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); }
.case-desk img { width: 100%; }
.case-phone { position: absolute; right: 4%; bottom: 0; width: 20%; min-width: 110px; aspect-ratio: 390 / 844; border-radius: 26px; overflow: hidden; border: 5px solid #0B0B0D; background: #0B0B0D; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.case-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px; }
.stackdl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.stackdl dt { font-weight: 600; }
.stackdl dd { color: var(--fg-2); font-size: 15.5px; }
.sp-more { margin-top: 32px; color: var(--fg-3); }
.sp-more a { color: var(--lime); }
.next-case { margin-top: clamp(48px, 6vw, 80px); display: flex; align-items: center; gap: 16px; padding: 24px 28px; border-radius: var(--r-xl); border: 1px solid var(--line); transition: border-color .3s; }
.next-case:hover { border-color: var(--lime); }
.next-case b { font-family: var(--display); font-variation-settings: "wdth" 118; font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 4vw, 56px); letter-spacing: -.03em; line-height: 1; margin-right: auto; }
.next-case .mono { color: var(--fg-3); }
.next-case svg { width: 28px; height: 28px; color: var(--lime); }
.sp-body .faq { max-width: 860px; }
@media (max-width: 1000px) { .inc-grid, .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .svc-grid, .inc-grid, .case-grid, .sp-split { grid-template-columns: 1fr; } .next-case { flex-wrap: wrap; } }

/* detector */
.detector { margin-top: 28px; display: flex; gap: 8px; max-width: 640px; padding: 6px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); }
.detector:focus-within { border-color: var(--lime); }
.detector input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 0 18px; font-size: 17px; }
.detector input::placeholder { color: var(--fg-3); }
.det-note { margin-top: 10px; font-size: 13.5px; color: var(--fg-3); }
.det-out { border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--surface); padding: clamp(22px, 3vw, 36px); margin-bottom: clamp(40px, 5vw, 64px); }
.det-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 18px; }
.det-head .mono { color: var(--fg-3); word-break: break-all; }
.det-theme h2 { font-family: var(--display); font-variation-settings: "wdth" 115; font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 4vw, 60px); line-height: .95; letter-spacing: -.02em; margin: 6px 0 10px; }
.det-theme > .mono, .det-plugins > .mono { color: var(--lime); text-transform: uppercase; font-size: 12px; }
.det-theme p { color: var(--fg-2); max-width: 70ch; }
.det-theme dl, .det-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 18px; }
.det-theme dl div, .det-grid div { padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.det-theme dt, .det-grid dt { font-family: var(--mono); font-size: 12px; color: var(--fg-3); text-transform: uppercase; }
.det-theme dd, .det-grid dd { margin-top: 2px; word-break: break-word; }
.det-theme dd a, .det-cta a { color: var(--lime); }
.det-plugins { margin-top: 22px; }
.det-plugins .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.det-cta { margin-top: 22px; color: var(--fg-2); }
.det-err, .det-loading { color: var(--fg-2); font-size: 17px; }
.det-copy { max-width: 760px; }

/* homepage: free tool band + service/case links */
.tool-band { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-xl); border: 1px solid rgba(212, 255, 58, .4); background: radial-gradient(600px 300px at 90% 0%, rgba(212, 255, 58, .12), transparent 70%), var(--surface); }
.tool-band h2 { font-family: var(--display); font-variation-settings: "wdth" 115; font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 52px); line-height: .95; letter-spacing: -.02em; max-width: 18ch; }
.tool-band p { color: var(--fg-2); margin-top: 10px; max-width: 52ch; }
.card .more { margin-top: 18px; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--lime); }
.card:nth-child(4) .more { color: var(--on-lime); }
.card .more svg { width: 16px; height: 16px; }
.scene-info .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
