/* CodeHorizon: one stylesheet for the whole site. Light, editorial, motion-led.
   Order: fonts, tokens, base, type, controls, chrome (curtain, cursor, grain, nav, menu, search),
   home sections, shared sections, inner pages, product page, journal, lightbox, motion, responsive. */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Jost'; src: url(/assets/fonts/jost-normal-300-700.woff2) format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(/assets/fonts/jost-italic-500.woff2) format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Google Sans'; src: url(/assets/fonts/google-sans-latin.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/assets/fonts/jetbrains-mono-normal-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --paper: #f2efe9;
  --paper-2: #e8e3d9;
  --card: #fbfaf7;
  --ink: #111014;
  --ink-2: #2b2a31;
  --muted: #5d5c65;
  --line: rgba(17, 16, 20, .11);
  --line-2: rgba(17, 16, 20, .22);
  --sun: #ea4511;
  --sun-text: #cc3a08;
  --sun-soft: #ffd9c7;
  --violet: #7a5cff;
  --mint: #d9f0d9;
  --lilac: #e9e2fb;
  --peach: #ffe1cf;
  --butter: #fff0b8;
  --gutter: clamp(20px, 3.4vw, 56px);
  --max: 1400px;
  --nav-h: 80px;
  --radius: 26px;
  --sec: clamp(88px, 10vw, 150px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --display: 'Jost', 'Google Sans', system-ui, sans-serif;
  --body: 'Google Sans', 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* product pages override these */
  --tint: #ffe1cf;
  --tint-ink: #2a1510;
  --accent: #ea4511;
  --acc: #cc3a08;
  --acc-ink: #fff;
  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); color-scheme: light; scroll-padding-top: 100px; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; overflow: clip; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 400; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ink); color: var(--paper); }
.sr-only { position: absolute; 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: 16px; top: -60px; z-index: 500; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 500; transition: top .2s; }
.skip:focus { top: 16px; }
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.flip { transform: scaleX(-1); }
.ic.up { transform: rotate(-90deg); }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; font: 400 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.h2 { margin: 0 0 28px; font: 400 clamp(2.6rem, 6.4vw, 6.4rem)/.94 var(--display); letter-spacing: -.055em; }
.h3 { margin: 0; font: 400 clamp(1.6rem, 2.8vw, 2.6rem)/1.05 var(--display); letter-spacing: -.035em; }
.h2 em, .h3 em, .page-title em, .p-title em, .hero-title em, .manifesto-text .hl, .footer-big em, .panel-end-title em { font-style: italic; font-weight: 400; color: var(--sun-text); }
.lede { margin: 0; max-width: 52ch; font-size: clamp(1.04rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--ink-2); }
.prose p { margin: 0 0 1.1em; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.sec-head { max-width: 980px; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head-split { max-width: none; display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px 64px; align-items: end; }
.sec-head-split .h2 { margin-bottom: 0; }
.sec-head-split > .lede, .sec-head-split > .g-ctrl, .sec-head-split > .log-cta { justify-self: end; }

/* split text */
.w { display: inline-block; overflow: hidden; overflow: clip; overflow-clip-margin: .1em; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; }
.ch { display: inline-block; }

/* ---------- Controls ---------- */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; }
.roll > span { display: block; transition: transform .6s var(--ease); }
.roll > span + span { position: absolute; left: 0; top: 100%; }
a:hover .roll > span, button:hover .roll > span, a:focus-visible .roll > span { transform: translateY(-100%); }
.btn { --h: 52px; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 26px; border-radius: 999px; font: 500 .98rem/1 var(--body); white-space: nowrap; transition: color .5s var(--ease), border-color .5s, translate .8s var(--ease); }
.btn::before { content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; top: 0; height: 120%; border-radius: 50% 50% 0 0 / 60% 60% 0 0; transform: translateY(102%); transition: transform .65s var(--ease), border-radius .65s var(--ease); }
.btn:hover::before { transform: translateY(-8%); border-radius: 0; }
.btn .ic { transition: transform .5s var(--ease); }
.btn:hover .ic:not(.flip):not(.up) { transform: translateX(3px) rotate(-45deg); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink::before { background: var(--sun); }
.btn-ink:hover { color: var(--ink); }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--paper); border-color: var(--ink); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun::before { background: var(--ink); }
.btn-sun:hover { color: var(--paper); }
.btn-acc { background: var(--acc); color: var(--acc-ink); }
.btn-acc::before { background: var(--ink); }
.btn-acc:hover { color: var(--paper); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: .9rem; }
.btn-lg { --h: 60px; padding: 0 32px; font-size: 1.02rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.link .ic { transition: transform .5s var(--ease); }
.link:hover .ic { transform: translateX(4px); }
.link-inline { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--sun); }
.link-inline:hover { color: var(--sun-text); }
.icon-btn { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, color .3s, border-color .3s; }
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn.copied { background: #1fa45a; color: #fff; border-color: #1fa45a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 14px; border-radius: 999px; border: 1px solid currentColor; font: 400 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { margin-top: .3em; color: var(--sun-text); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(17, 16, 20, .12); font: 400 .66rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
/* Status is said in words and a fill, not a coloured dot. */
.pill.is-soon { background: var(--butter); border-color: rgba(90, 67, 0, .2); color: #5a4300; }
.pill.is-past { background: transparent; border-style: dashed; color: var(--muted); }
.pill.is-client { background: var(--lilac); border-color: rgba(61, 42, 135, .2); color: #3d2a87; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--card); font: 400 .68rem/1 var(--mono); color: var(--muted); }
.type { padding: 6px 10px; border-radius: 999px; font: 400 .64rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; background: rgba(17, 16, 20, .06); color: var(--ink-2); white-space: nowrap; }
.t-launch { background: #ffe1cf; color: #7a2a06; }
.t-update { background: #dbe8ff; color: #123c8a; }
.t-status { background: #fff0b8; color: #5a4300; }
.t-client { background: #e9e2fb; color: #3d2a87; }

/* ---------- Curtain (preloader and page transitions) ---------- */
.curtain { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--sun); color: var(--ink); animation: curtain-fallback .9s var(--ease-io) 2.6s forwards; will-change: transform; }
.curtain.is-js { animation: none; }
.curtain::after { content: ""; position: absolute; left: -10%; right: -10%; top: 100%; height: 14vh; background: var(--sun); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.curtain-in { display: grid; justify-items: center; gap: 18px; }
.curtain-sun .logo { width: clamp(64px, 9vw, 120px); height: auto; color: var(--ink); }
.curtain-word { display: flex; margin: 0; overflow: hidden; font: 500 clamp(2.4rem, 7vw, 6rem)/1 var(--display); letter-spacing: -.05em; }
.curtain-word span { display: inline-block; }
.curtain-count { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 16px; margin: 0; font-size: .74rem; }
.curtain-count i { flex: 1; height: 1px; background: rgba(17, 16, 20, .35); }
.curtain-count #curtainCount { font: 400 clamp(3rem, 7vw, 6rem)/1 var(--display); letter-spacing: -.05em; text-transform: none; min-width: 2.2ch; }
@media (scripting: none) { .curtain { display: none; } }

/* ---------- Cursor and grain ---------- */
.cursor { display: none; }
/* The cursor is one piece: the wrapper moves, the dot and ring stay centred inside it. */
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 1000; width: 0; height: 0; pointer-events: none; transform: translate3d(-100px, -100px, 0); }
/* Hide the system pointer everywhere (some controls set their own), except where text is typed. */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"]), textarea, [contenteditable]) { cursor: text !important; }
.has-cursor video { cursor: auto !important; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); transition: opacity .3s; }
.cursor-ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; display: grid; place-items: center; border: 2.6px solid rgba(17, 16, 20, .45); scale: .365; transition: scale .45s var(--ease), background .35s, border-color .35s, opacity .3s; }
.cursor.is-hover .cursor-ring { scale: .615; border-color: var(--sun); background: rgba(234, 69, 17, .1); }
.cursor.is-label .cursor-ring { scale: 1; border-color: transparent; background: var(--ink); }
.cursor.is-label .cursor-dot { opacity: 0; }
.cursor-label { color: var(--paper); font: 400 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease); }
.cursor.is-label .cursor-label { opacity: 1; transform: none; }
.cursor.is-hidden .cursor-ring, .cursor.is-hidden .cursor-dot { opacity: 0; }
.progress { position: fixed; inset: 0 0 auto; z-index: 360; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), #ff8a4c, var(--violet)); transform: scaleX(0); transform-origin: left; }
.grain { position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .26; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 var(--gutter); transition: transform .7s var(--ease), background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(242, 239, 233, .94); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 1.2rem/1 var(--display); letter-spacing: -.03em; }
.logo { width: 30px; height: 30px; color: var(--ink); flex: none; }
.brand .logo { transition: transform .8s var(--ease); }
.brand:hover .logo { transform: rotate(-12deg) translateY(-2px); }
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(251, 250, 247, .9); border: 1px solid var(--line); }
.nav-links a { display: inline-flex; align-items: center; padding: 11px 15px; border-radius: 999px; font-size: .92rem; color: var(--ink-2); transition: background .3s, color .3s; }
.nav-links a:hover { background: rgba(17, 16, 20, .06); }
.nav-links a[aria-current] { background: var(--ink); color: var(--paper); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .66rem; }
.nav-search { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, color .3s; }
.nav-search:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--paper); transition: transform .5s var(--ease), top .5s var(--ease); }
.nav-toggle span:first-child { top: 19px; }
.nav-toggle span:last-child { top: 26px; }
.menu-open .nav-toggle span:first-child, .menu-open .nav-toggle span:last-child { top: 22.5px; }
.menu-open .nav-toggle span:first-child { transform: rotate(45deg); }
.menu-open .nav-toggle span:last-child { transform: rotate(-45deg); }
.menu-open .nav { background: transparent; border-color: transparent; transform: none; }
.mobile-menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: calc(var(--nav-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom)); background: var(--paper); overflow-y: auto; animation: menu-in .7s var(--ease); }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); font: 400 clamp(2.4rem, 11vw, 4rem)/1.1 var(--display); letter-spacing: -.05em; }
.mobile-menu nav a small { color: var(--muted); font-size: .7rem; letter-spacing: .08em; }
.mobile-menu nav a[aria-current] span { color: var(--sun-text); font-style: italic; }
.mobile-menu-foot { display: grid; justify-items: start; gap: 16px; }
.mobile-mail { color: var(--muted); }

/* ---------- Search ---------- */
.search { width: min(640px, calc(100% - 32px)); max-height: min(640px, 78vh); margin: 12vh auto auto; padding: 0; border-radius: 24px; border: 1px solid var(--line); background: rgba(251, 250, 247, .96); color: var(--ink); box-shadow: 0 50px 120px -30px rgba(40, 30, 20, .35); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); overflow: hidden; }
.search[open] { display: flex; flex-direction: column; animation: pop .45s var(--ease); }
.search::backdrop { background: rgba(232, 227, 217, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.search-field { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 20px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 1.1rem; color: var(--ink); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-results { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 8px 10px; }
.search-group { margin: 0; padding: 14px 12px 6px; color: var(--muted); font: 400 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.search-item { display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 14px; }
.search-item img { border-radius: 9px; }
.search-item > span:not(.search-ic) { display: grid; flex: 1; min-width: 0; }
.search-item strong { font-weight: 500; }
.search-item small { color: var(--muted); font-size: .82rem; }
.search-item > .ic { opacity: 0; transition: opacity .2s, transform .3s; }
.search-item:hover, .search-item.active { background: rgba(17, 16, 20, .05); }
.search-item.active > .ic, .search-item:hover > .ic { opacity: 1; transform: translateX(2px); }
.search-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--paper-2); }
.search-empty { margin: 0; padding: 28px 12px; text-align: center; color: var(--muted); }
.search-foot { display: flex; gap: 18px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .66rem; }
.search-foot kbd { margin-right: 4px; }
.search-foot kbd .ic { width: 11px; height: 11px; stroke-width: 2.2; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; padding: calc(var(--nav-h) + 2vh) var(--gutter) 0; overflow: hidden; overflow: clip; }
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-haze { position: absolute; inset: 0; z-index: -2; background: radial-gradient(55% 45% at 72% 62%, rgba(255, 138, 61, .22), transparent 70%), radial-gradient(45% 40% at 18% 78%, rgba(122, 92, 255, .12), transparent 70%), radial-gradient(40% 35% at 50% 20%, rgba(255, 200, 150, .18), transparent 70%); }
.hero-in { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 4vh; }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); color: var(--ink-2); }
.hero-title { margin: 0; font: 400 clamp(3.2rem, 10.4vw, 11.4rem)/.86 var(--display); letter-spacing: -.062em; }
.hero-title .ln { display: block; overflow: hidden; overflow: clip; overflow-clip-margin: .14em; padding-bottom: .05em; }
.hero-title .ln:nth-child(2) { padding-left: .9em; }
.hero-title .ln-in { display: inline-block; white-space: nowrap; }
.hero-title em { padding-right: .04em; }
.hw { display: inline-block; white-space: nowrap; }
.hc { display: inline-block; text-align: center; font-weight: var(--wg, 400); }
.cap { position: relative; display: inline-block; width: 1.95em; height: .72em; margin: 0 .06em; border-radius: 999px; overflow: hidden; vertical-align: .04em; background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(17, 16, 20, .08), 0 18px 40px -18px rgba(80, 40, 10, .45); }
.cap-track { display: flex; flex-direction: column; animation: cap 12s var(--ease-io) infinite; }
.cap-track img { flex: none; width: 100%; height: .72em; object-fit: cover; object-position: 50% 30%; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) auto auto; gap: 24px 48px; align-items: end; padding-bottom: 28px; }
.hero-lede { margin: 0; max-width: 46ch; font-size: clamp(1rem, 1.15vw, 1.14rem); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.scroll-cue { display: grid; justify-items: center; gap: 10px; color: var(--muted); }
.scroll-line { position: relative; width: 1px; height: 52px; overflow: hidden; background: var(--line-2); }
.scroll-line i { position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: var(--ink); animation: drop 1.9s var(--ease-io) infinite; }
.hero-strip { display: flex; align-items: center; gap: 28px; margin: 0 calc(var(--gutter) * -1); padding: 16px 0 16px var(--gutter); border-top: 1px solid var(--line-2); }
.hero-strip-label { flex: none; color: var(--muted); }
.marquee { flex: 1; min-width: 0; overflow: hidden; -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; width: max-content; animation: marquee 50s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font: 400 1.15rem/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.marquee-track .ic { width: 17px; height: 17px; color: var(--sun); fill: currentColor; stroke: none; }

/* ---------- Manifesto ---------- */
.manifesto { padding: var(--sec) 0 clamp(40px, 5vw, 70px); }
.manifesto-text { margin: 0; font: 400 clamp(2rem, 4.7vw, 4.8rem)/1.06 var(--display); letter-spacing: -.045em; text-indent: 2.2em; }
.words-ready .manifesto-text .wd { opacity: .14; }
.ichip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: .82em; height: .82em; margin: 0 .04em; vertical-align: -.1em; border-radius: 999px; background: var(--ink); color: var(--paper); text-indent: 0; box-shadow: 0 14px 30px -14px rgba(60, 30, 10, .55); }
.ichip .ic { width: .4em; height: .4em; stroke-width: 2; }
.ichip-face { width: 1.5em; overflow: hidden; background: var(--paper-2); }
.ichip-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.ichip-stack { width: auto; padding-left: .2em; background: none; box-shadow: none; }
.ichip-stack img { width: .72em; height: .72em; margin-left: -.2em; border-radius: .2em; box-shadow: 0 0 0 .05em var(--paper), 0 10px 20px -10px rgba(60, 30, 10, .6); }
.ichip-stack img:nth-child(odd) { transform: rotate(-8deg); }
.ichip-stack img:nth-child(even) { transform: rotate(7deg) translateY(-.04em); }
.words-ready .manifesto-text .ichip { opacity: .14; transform: scale(.4) rotate(-14deg); }
.manifesto-foot { display: grid; grid-template-columns: auto 1fr; gap: 24px 56px; align-items: center; margin-top: clamp(56px, 7vw, 100px); padding-top: 28px; border-top: 1px solid var(--line-2); }
.manifesto-foot p { margin: 0; max-width: 54ch; color: var(--ink-2); }
.portrait-chip { display: inline-flex; align-items: center; gap: 14px; padding: 6px 22px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); transition: transform .6s var(--ease); }
.portrait-chip:hover { transform: translateY(-3px); }
.portrait-chip img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.portrait-chip span { display: grid; line-height: 1.3; }
.portrait-chip strong { font-weight: 500; }
.portrait-chip small { color: var(--muted); font-size: .84rem; }

/* ---------- Reel: a tilted wall of real screens ---------- */
.reel { position: relative; }
.reel.is-pinned { height: 240vh; }
.reel-pin { position: relative; height: min(100svh, 960px); display: grid; place-items: center; overflow: hidden; overflow: clip; isolation: isolate; }
.reel.is-pinned .reel-pin { position: sticky; top: 0; height: 100svh; }
.reel-stage { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; perspective: 1500px; }
.reel-wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; height: 170vh; overflow: hidden; gap: clamp(12px, 1.4vw, 22px); width: max(130vw, 1100px); transform: rotateX(20deg) rotateZ(-9deg); will-change: transform; }
.reel-col { display: grid; gap: clamp(12px, 1.4vw, 22px); }
.reel-shot { display: block; overflow: hidden; border-radius: 14px; background: var(--paper-2); box-shadow: 0 30px 60px -34px rgba(40, 20, 10, .5), 0 0 0 1px rgba(17, 16, 20, .07); }
.reel-shot.is-p { border-radius: 22px; }
.reel-shot img { width: 100%; }
.reel-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 44% at 50% 52%, rgba(242, 239, 233, .96), rgba(242, 239, 233, .84) 50%, rgba(242, 239, 233, 0) 100%), linear-gradient(180deg, var(--paper), rgba(242, 239, 233, 0) 12%, rgba(242, 239, 233, 0) 88%, var(--paper)); }
.reel-copy { display: grid; justify-items: center; gap: 26px; padding: 0 var(--gutter); text-align: center; }
.reel-k { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin: 0; color: var(--ink-2); }
.reel-k .ic { width: 12px; height: 12px; color: var(--sun); fill: currentColor; stroke: none; }
.reel-title { margin: 0; font: 400 clamp(3rem, 8.6vw, 9.4rem)/.9 var(--display); letter-spacing: -.062em; }
.reel-title > span, .reel-title > em { display: block; }
.reel-title em { font-style: italic; color: var(--sun-text); }

/* ---------- Work (horizontal) ---------- */
.work { position: relative; }
.work-pin { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); }
.work-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin-bottom: clamp(28px, 4vh, 48px); }
.work-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.work-head .h2 { margin: 0; }
.work-hint { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.work-hint #workCount { color: var(--ink); }
.work-bar { width: 120px; height: 2px; background: var(--line-2); overflow: hidden; }
.work-bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(.2); }
.work-track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.work-track::-webkit-scrollbar { display: none; }
.is-hscroll .work-pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: var(--nav-h) 0 4vh; overflow: hidden; }
.is-hscroll .work-track { width: max-content; overflow: visible; scroll-snap-type: none; will-change: transform; }
.panel { position: relative; flex: none; width: min(74vw, 1180px); height: min(62vh, 680px); display: grid; grid-template-rows: auto 1fr auto; padding: clamp(22px, 2.4vw, 34px); border-radius: 30px; overflow: hidden; background: var(--tint); color: var(--tint-ink); scroll-snap-align: start; isolation: isolate; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 30%, rgba(255, 255, 255, .6), transparent 70%), radial-gradient(50% 60% at 10% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.panel-link { position: absolute; inset: 0; z-index: 5; border-radius: inherit; }
.panel-link:focus-visible { outline-offset: -4px; }
.panel-top { display: flex; align-items: center; gap: 16px; position: relative; z-index: 2; }
.panel-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.panel-shot { position: absolute; display: block; overflow: hidden; border-radius: 16px; box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 40px 80px -30px rgba(40, 20, 10, .45), 0 0 0 1px rgba(17, 16, 20, .06); transition: transform 1.2s var(--ease); }
.panel-shot img { width: 100%; }
.panel:not(.is-phone) .ps-1 { right: -6%; top: 16%; width: 60%; z-index: 2; }
.panel:not(.is-phone) .ps-2 { right: 12%; top: 5%; width: 44%; z-index: 1; opacity: .9; }
.panel.is-phone .panel-shot { border-radius: 22px; top: 50%; }
.panel.is-phone .ps-1 { right: 17%; width: 22%; z-index: 3; transform: translateY(-50%); }
.panel.is-phone .ps-2 { right: 34%; width: 19%; z-index: 2; transform: translateY(-44%) rotate(-7deg); }
.panel.is-phone .ps-3 { right: 2%; width: 19%; z-index: 2; transform: translateY(-40%) rotate(7deg); }
.panel:hover:not(.is-phone) .ps-1 { transform: translate(-14px, -10px) rotate(-1deg); }
.panel:hover:not(.is-phone) .ps-2 { transform: translate(10px, -6px); }
.panel.is-phone:hover .ps-1 { transform: translateY(-54%); }
.panel.is-phone:hover .ps-2 { transform: translateY(-44%) translateX(-14px) rotate(-10deg); }
.panel.is-phone:hover .ps-3 { transform: translateY(-40%) translateX(14px) rotate(10deg); }
.panel-foot { position: relative; z-index: 2; align-self: end; max-width: 40%; }
.panel-title { display: flex; align-items: center; gap: .22em; margin: 0; font: 400 clamp(2.4rem, 4.4vw, 5rem)/.92 var(--display); letter-spacing: -.055em; }
.panel-title img { width: .78em; height: .78em; border-radius: .2em; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); }
.panel-tag { margin: 14px 0 22px; font-size: clamp(1rem, 1.25vw, 1.2rem); max-width: 30ch; }
.panel-facts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 0; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--tint-ink) 18%, transparent); }
.panel-facts dt { font-size: .62rem; opacity: .7; }
.panel-facts dd { margin: 4px 0 0; font-weight: 500; font-size: .95rem; }
.panel-end { width: min(44vw, 620px); display: flex; flex-direction: column; justify-content: space-between; background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.panel-end::before { background: radial-gradient(70% 60% at 80% 100%, rgba(234, 69, 17, .18), transparent 70%); }
.panel-end-title { font: 400 clamp(2.2rem, 4vw, 4.4rem)/1 var(--display); letter-spacing: -.05em; }
.panel-end-go { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); transition: transform .8s var(--ease), background .4s; }
.panel-end-go .ic { width: 32px; height: 32px; }
.panel-end:hover .panel-end-go { transform: rotate(-45deg) scale(1.06); background: var(--sun); }

/* ---------- Rows with hover preview ---------- */
.more { padding: clamp(20px, 3vw, 40px) 0 clamp(40px, 5vw, 70px); }
.more-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.rows, .log-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.row a, .log-row a { position: relative; isolation: isolate; display: grid; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line-2); transition: color .4s; }
.row a > :not(.row-go), .log-row a > :not(.row-go) { transition: transform .7s var(--ease); }
.row a { grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.4fr) auto 48px; }
.row a::before, .log-row a::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--gutter) * -1); background: var(--tint, var(--paper-2)); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.row a:hover::before, .log-row a:hover::before { transform: scaleY(1); }
.row a:hover > :not(.row-go), .log-row a:hover > :not(.row-go) { transform: translateX(16px); }
.row.is-client a::before { background: var(--lilac); }
.row-n { color: var(--muted); }
.row-title { display: flex; align-items: center; gap: 16px; font: 400 clamp(1.5rem, 2.6vw, 2.5rem)/1 var(--display); letter-spacing: -.04em; }
.row-title img, .log-title img { border-radius: 10px; flex: none; }
.row-kind { color: var(--ink-2); font-size: .98rem; }
.row-go { width: 46px; height: 46px; display: grid; place-items: center; justify-self: end; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .7s var(--ease), background .4s, color .4s, border-color .4s; }
a:hover > .row-go { transform: rotate(-45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.preview { position: fixed; left: 0; top: 0; z-index: 60; width: 320px; pointer-events: none; }
.preview-in { width: 320px; aspect-ratio: 16 / 10; margin: -110px 0 0 -160px; border-radius: 18px; overflow: hidden; background: var(--paper-2); box-shadow: 0 40px 80px -30px rgba(40, 20, 10, .5); opacity: 0; transform: scale(.4) rotate(-6deg); transition: opacity .35s, transform .6s var(--ease); }
.preview-in.on { opacity: 1; transform: none; }
.preview-in.portrait { width: 220px; aspect-ratio: 9 / 13; margin: -150px 0 0 -110px; }
.preview-in img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* ---------- Services ---------- */
.services { padding: var(--sec) 0; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.svc { border-bottom: 1px solid var(--ink); }
.svc-head { position: relative; isolation: isolate; width: 100%; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 64px; align-items: center; gap: 24px; padding: clamp(22px, 2.8vw, 40px) 0; overflow: hidden; }
.svc-head::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--gutter) * -1); background: var(--sun); transform: translateY(101%); transition: transform .8s var(--ease); }
.svc-head:hover::before, .svc-head[aria-expanded="true"]::before { transform: none; }
.svc-n { color: var(--muted); transition: color .4s; }
.svc-head:hover .svc-n, .svc-head[aria-expanded="true"] .svc-n { color: var(--ink); }
.svc-title { font: 400 clamp(2.1rem, 5.6vw, 5.8rem)/.95 var(--display); letter-spacing: -.055em; transition: transform .8s var(--ease); }
.svc-head:hover .svc-title { transform: translateX(clamp(8px, 1.5vw, 24px)); }
.svc-kicker { color: var(--muted); transition: color .4s; }
.svc-head:hover .svc-kicker, .svc-head[aria-expanded="true"] .svc-kicker { color: var(--ink); }
.svc-plus { position: relative; width: 60px; height: 60px; justify-self: end; border-radius: 50%; border: 1px solid var(--ink); transition: transform .8s var(--ease), background .4s; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.svc-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc-head[aria-expanded="true"] .svc-plus { transform: rotate(135deg); background: var(--ink); color: var(--sun); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.svc-head[aria-expanded="true"] + .svc-body { grid-template-rows: 1fr; }
.svc-inner { min-height: 0; overflow: hidden; display: grid; grid-template-columns: 72px 1.1fr 1fr 1fr; gap: 24px 40px; }
.svc-inner > * { margin-top: 32px; margin-bottom: 40px; }
.svc-blurb { grid-column: 2; font-size: 1.12rem; color: var(--ink-2); }
.svc-side { display: grid; gap: 18px; align-content: start; justify-items: start; }
.svc-proof { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); }
.svc-proof .mono { width: 100%; color: var(--muted); }
.svc-proof a { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 4px; }

/* ---------- Stats: the sun band ---------- */
.sun-band { position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding: clamp(80px, 10vw, 150px) 0 clamp(70px, 9vw, 130px); background: var(--sun); color: var(--ink); }
.sun-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(70% 90% at 85% 0%, rgba(255, 196, 140, .55), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(214, 38, 92, .35), transparent 70%); }
.sun-rise { position: absolute; z-index: -1; left: 50%; bottom: 0; width: min(118vw, 1700px); color: rgba(17, 16, 20, .28); transform: translate(-50%, 34%); pointer-events: none; }
.sun-rise svg { display: block; width: 100%; height: auto; opacity: .34; }
.sun-band .eyebrow { color: var(--ink); }
.sun-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: clamp(48px, 6vw, 90px); }
.sun-head .eyebrow { margin: 0; order: 2; }
.sun-title { margin: 0; font: 400 clamp(2.6rem, 6.4vw, 6.6rem)/.92 var(--display); letter-spacing: -.055em; }
.sun-title em { font-style: italic; color: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid rgba(17, 16, 20, .35); }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 14px; padding: 22px clamp(14px, 2vw, 28px) 0; border-left: 1px solid rgba(17, 16, 20, .35); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dd { margin: 0; font: 300 clamp(4.4rem, 11vw, 11.5rem)/1 var(--display); letter-spacing: -.075em; }
.stats dt { display: grid; gap: 8px; max-width: 22ch; font-size: 1rem; line-height: 1.4; }
.stats dt .mono { opacity: .7; }
.odo { display: inline-flex; height: 1em; line-height: 1; overflow: hidden; vertical-align: top; }
.odo-col { display: flex; flex-direction: column; transform: translateY(calc(var(--v) * -1em)); transition: transform 2s var(--ease); }
.odo-col:nth-child(2) { transition-delay: .08s; }
.odo-col:nth-child(3) { transition-delay: .16s; }
.odo-col:nth-child(4) { transition-delay: .24s; }
.odo-col span { display: block; height: 1em; }
.reveal-ready [data-reveal]:not(.in) .odo-col { transform: translateY(0); }

/* ---------- Process ---------- */
.process { padding: var(--sec) 0 clamp(40px, 5vw, 80px); }
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.stack-card { --i: 0; position: sticky; top: calc(var(--nav-h) + 16px + var(--i) * 18px); min-height: min(66vh, 640px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; padding: clamp(26px, 3.4vw, 52px); border-radius: 36px; background: var(--card); color: var(--card-ink); overflow: hidden; transform-origin: 50% 0; box-shadow: 0 -24px 60px -40px rgba(40, 20, 10, .35); }
.stack-card:nth-child(2) { --i: 1; }
.stack-card:nth-child(3) { --i: 2; }
.stack-card:nth-child(4) { --i: 3; }
.stack-body { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.stack-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.stack-top .mono { margin: 6px 0 0; text-align: right; line-height: 1.7; opacity: .75; }
.stack-num { font: 300 clamp(5rem, 10vw, 10rem)/.78 var(--display); letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 1.5px var(--card-ink); }
.stack-copy { display: grid; gap: 16px; justify-items: start; }
.stack-copy h3 { margin: 0; font: 400 clamp(2.4rem, 4.6vw, 4.8rem)/.94 var(--display); letter-spacing: -.055em; }
.stack-copy p { margin: 0; max-width: 44ch; font-size: 1.08rem; }
.stack-art { position: relative; border-radius: 26px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(17, 16, 20, .08); overflow: hidden; min-height: 260px; box-shadow: 0 30px 60px -40px rgba(40, 20, 10, .35); }
/* Discover: a radar that finds the questions worth asking */
.radar { position: absolute; inset: 0; }
.radar i { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--card-ink) 30%, transparent); transform: translate(-50%, -50%); }
.radar i:nth-child(1) { width: 30%; }
.radar i:nth-child(2) { width: 58%; }
.radar i:nth-child(3) { width: 86%; }
.sweep { position: absolute; left: 50%; top: 50%; width: 86%; aspect-ratio: 1; margin: 0; border-radius: 50%; transform: translate(-50%, -50%); background: conic-gradient(from 0deg, color-mix(in srgb, var(--card-acc) 45%, transparent), transparent 22%); -webkit-mask-image: radial-gradient(closest-side, #000 99%, transparent); mask-image: radial-gradient(closest-side, #000 99%, transparent); animation: sweep 4s linear infinite; }
.blip { position: absolute; left: var(--x); top: var(--y); display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: var(--card); color: var(--card-ink); font-size: .86rem; white-space: nowrap; box-shadow: 0 14px 30px -16px rgba(60, 20, 0, .5); transform: translate(-50%, -50%); }
.reveal-ready .blip { transform: translate(-50%, -50%) scale(.6); opacity: 0; }
.in .blip { animation: blip .9s var(--ease) var(--t) forwards; }
/* Design: a frame that assembles itself while two cursors work on it */
.fig-bar { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid rgba(17, 16, 20, .08); }
.fig-bar .mono { font-size: .62rem; opacity: .7; }
.fig-bar .mono + .mono { margin-left: auto; }
.fig-canvas { position: absolute; inset: 44px 0 0; background-image: radial-gradient(rgba(17, 16, 20, .12) 1px, transparent 1px); background-size: 18px 18px; }
.fb { position: absolute; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--card-ink) 45%, transparent); transform-origin: 0 0; }
.reveal-ready .fb { transform: scale(.7); opacity: 0; }
.fb1 { left: 8%; top: 10%; width: 52%; height: 18%; }
.fb2 { left: 8%; top: 34%; width: 38%; height: 50%; transform-origin: 0 100%; }
.fb3 { left: 52%; top: 34%; width: 40%; height: 22%; }
.fb4 { left: 52%; top: 62%; width: 40%; height: 22%; display: grid; place-items: center; border-style: solid; border-color: var(--card-acc); }
.fb4 em { font: 500 .9rem/1 var(--body); font-style: normal; color: var(--card-ink); }
.reveal-ready .fb4 em { opacity: 0; color: #fff; }
.in .fb { animation: frame-in .9s var(--ease) forwards; }
.in .fb2 { animation-delay: .25s; }
.in .fb3 { animation-delay: .5s; }
.fb4::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--card-acc); opacity: 0; }
.fb4 em { position: relative; }
.in .fb4 { animation: frame-in .9s var(--ease) .75s forwards; }
.in .fb4::before { animation: frame-fill 6s ease-in-out 1.6s infinite; }
.in .fb4 em { animation: fade-in-out 6s ease-in-out 1.6s infinite; }
.fig-cursor { position: absolute; display: flex; align-items: flex-start; gap: 2px; }
.fig-cursor .ic { width: 18px; height: 18px; }
.fig-cursor b { padding: 4px 8px; border-radius: 0 8px 8px 8px; color: #fff; font: 500 .72rem/1 var(--body); }
.c-me { left: 34%; top: 16%; color: var(--card-acc); animation: wander 7s ease-in-out infinite; }
.c-me b { background: var(--card-acc); }
.c-you { left: 22%; top: 58%; color: var(--sun); animation: wander 8s ease-in-out -3s infinite reverse; }
.c-you b { background: var(--sun); }
/* Build: a terminal that runs the build */
.term { position: absolute; left: 7%; right: 7%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; border-radius: 16px; background: #0f1a12; color: #d8f3dc; box-shadow: 0 40px 70px -30px rgba(5, 30, 10, .6); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: rgba(255, 255, 255, .06); }
.term-bar .mono { font-size: .62rem; opacity: .6; text-transform: none; }
.term-bar .mono + .mono { margin-left: auto; }
.term-body { display: grid; align-content: start; gap: 14px; padding: 24px 24px 30px; font: 400 clamp(.78rem, 1vw, .95rem)/1.4 var(--mono); }
.reveal-ready .term-body code { opacity: 0; transform: translateY(6px); }
.term-body b { color: #7ee2a0; font-weight: 400; }
.t-ok { color: #7ee2a0; }
.term-body .ic { width: 1em; height: 1em; margin-right: .55em; vertical-align: -.15em; stroke-width: 2.2; }
.t-live { display: flex; align-items: center; color: #fff; }
.t-bar { display: block; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.t-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #28c840, #a6f0b8); transform-origin: left; }
.reveal-ready .t-bar i { transform: scaleX(0); }
.in .term-body code { animation: line-in 9s var(--ease) infinite; }
.in .term-body code:nth-child(2) { animation-delay: .6s; }
.in .term-body code:nth-child(3) { animation-delay: 2.4s; }
.in .term-body code:nth-child(4) { animation-delay: 3s; }
.in .term-body code:nth-child(5) { animation-delay: 3.6s; }
.in .t-bar i { animation: load-bar 9s cubic-bezier(.6, 0, .3, 1) .7s infinite; }
/* Care: the real release rhythm */
.care-k { position: absolute; left: 7%; top: 8%; display: flex; align-items: center; gap: 14px; margin: 0; }
.care-k b { font: 300 clamp(3rem, 5vw, 4.6rem)/1 var(--display); letter-spacing: -.06em; }
.care-k .mono { font-size: .6rem; line-height: 1.6; opacity: .75; }
.care-bars { margin: 0; position: absolute; inset: 38% 7% 10%; }
.care-bars .bars { height: 100%; }

/* Bars (rhythm chart), shared */
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 110px; }
.bar { display: grid; grid-template-rows: 1fr auto; gap: 8px; height: 100%; justify-items: center; }
.bar i { align-self: end; width: 100%; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(0deg, var(--sun), #ff9a5c); transform-origin: bottom; transition: transform 1.2s var(--ease) calc(var(--k) * 45ms); }
.bar.none i { background: rgba(17, 16, 20, .12); }
.bar small { color: var(--muted); font-size: .6rem; }
.rhythm { margin: 0; }
.rhythm figcaption { margin-top: 12px; color: var(--muted); font-size: .62rem; }
.reveal-ready [data-reveal]:not(.in) .bar i, .reveal-ready .stack-card:not(.in) .bar i { transform: scaleY(0); }

/* ---------- Why (bento) ---------- */
.why { padding: var(--sec) 0 calc(var(--sec) / 2); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "maker maker ship ship" "maker maker privacy commerce" "design design care care"; gap: 16px; }
.tile { --rx: 0deg; --ry: 0deg; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 280px; padding: clamp(22px, 2.4vw, 32px); border-radius: 30px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.tile h3 { margin: 0 0 10px; font: 400 clamp(1.5rem, 2.2vw, 2.1rem)/1.05 var(--display); letter-spacing: -.035em; }
.tile p { margin: 0; color: var(--ink-2); font-size: .98rem; max-width: 40ch; }
.tile-maker { grid-area: maker; background: var(--peach); }
.tile-maker h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.tile-ship { grid-area: ship; }
.tile-privacy { grid-area: privacy; background: var(--mint); }
.tile-commerce { grid-area: commerce; background: var(--lilac); }
.tile-design { grid-area: design; background: var(--butter); flex-direction: row; align-items: stretch; }
.tile-design .tile-copy { flex: 1; }
.tile-care { grid-area: care; }
.chat { display: grid; gap: 12px; justify-items: start; }
.tile .chat-day, .tile .chat-seen { justify-self: center; margin: 0; color: color-mix(in srgb, var(--ink) 55%, transparent); font-size: .62rem; }
.tile .chat-seen { justify-self: end; }
.bubble { margin: 0; max-width: 82%; padding: 16px 20px; border-radius: 22px 22px 22px 6px; background: var(--card); font-size: clamp(1rem, 1.3vw, 1.2rem); box-shadow: 0 10px 30px -18px rgba(80, 30, 10, .4); }
.bubble.me { justify-self: end; display: flex; align-items: center; gap: 10px; border-radius: 22px 22px 6px 22px; background: var(--ink); color: var(--paper); }
.bubble.me img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
/* "Typing" in letters that ripple, rather than the usual three dots. */
.bubble.is-typing { gap: 1px; padding: 14px 18px; }
.bubble.is-typing span { display: inline-block; font: 400 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--paper); opacity: .5; }
/* The letters bob only while the bubble shows: it fades out 2.7s after the tile appears, so three rounds cover it. */
.in .bubble.is-typing span { animation: typing 1.1s ease-in-out calc(var(--i) * .08s) 3; }
/* The reply arrives after a short "typing" beat. */
.bubble.is-typing { display: none; }
.reveal-ready .bubble.is-typing { display: flex; }
.reveal-ready .chat > * { opacity: 0; }
.in .chat-day { animation: bubble .8s var(--ease) .1s both; }
.in .bubble.them { animation: bubble .8s var(--ease) .3s both; }
.in .bubble.is-typing { animation: bubble .6s var(--ease) 1s both, typing-out .3s ease 2.4s forwards; }
.in .bubble.me:not(.is-typing) { animation: bubble .8s var(--ease) 2.6s both; }
.in .chat-seen { animation: bubble .8s var(--ease) 3.2s both; }
.bubble.is-typing { grid-row: 3; }
.bubble.me:not(.is-typing) { grid-row: 3; }
.store-stack { display: flex; flex-wrap: wrap; gap: 10px; }
.store-stack span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; }
.store-stack span:first-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shield { position: relative; height: 120px; display: grid; place-items: center; color: #137a3a; }
.shield i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1.5px solid currentColor; opacity: .35; transform: translate(-50%, -50%); animation: ripple 3.6s var(--ease-io) infinite; }
.shield i:nth-child(1) { width: 60px; height: 60px; }
.shield i:nth-child(2) { width: 90px; height: 90px; animation-delay: .5s; }
.shield i:nth-child(3) { width: 120px; height: 120px; animation-delay: 1s; }
.shield .ic { width: 30px; height: 30px; }
.gauge { display: flex; align-items: center; gap: 16px; }
.gauge svg { width: 100px; height: 100px; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke: rgba(17, 16, 20, .1); stroke-width: 10; }
.gauge .gauge-fill { stroke: var(--violet); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 80; transition: stroke-dashoffset 2s var(--ease); }
.reveal-ready .tile:not(.in) .gauge-fill { stroke-dashoffset: 314; }
.gauge .mono { line-height: 1.7; color: var(--ink-2); }
.frame { position: relative; flex: 0 0 44%; border-radius: 18px; border: 1.5px dashed rgba(17, 16, 20, .3); background: rgba(255, 255, 255, .5); }
.frame-label { position: absolute; left: 10px; top: -22px; color: var(--ink-2); font-size: .6rem; }
.frame-box { position: absolute; left: 14%; top: 22%; width: 50%; height: 40%; border-radius: 10px; background: var(--sun); opacity: .85; animation: pulse-box 3s ease-in-out infinite; }
.frame-cursor { position: absolute; left: 58%; top: 56%; display: flex; align-items: flex-start; gap: 2px; animation: wander 6s ease-in-out infinite; }
.frame-cursor .ic { width: 18px; height: 18px; color: var(--ink); }
.frame-cursor b { padding: 4px 8px; border-radius: 0 8px 8px 8px; background: var(--ink); color: var(--paper); font: 500 .72rem/1 var(--body); }
.tile-care .rhythm { margin-top: auto; }

.in[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity 1.2s var(--ease), transform .8s var(--ease); }

/* ---------- Toolkit: a keyboard of the stack ---------- */
.toolkit { padding: calc(var(--sec) / 2) 0 var(--sec); }
.kb-wrap { perspective: 1800px; }
.kb { display: grid; gap: clamp(8px, .9vw, 14px); padding: clamp(14px, 1.8vw, 26px); border-radius: 34px; background: linear-gradient(180deg, #e3ddd1, #d9d2c4); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(17, 16, 20, .08), 0 60px 100px -50px rgba(60, 40, 20, .55), 0 0 0 1px rgba(17, 16, 20, .08); transform-origin: 50% 100%; will-change: transform; }
.kb-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: inherit; }
.kb-row:nth-child(4) { grid-template-columns: 1.7fr repeat(5, 1fr); }
.kb-row:last-child { grid-template-columns: 1.7fr repeat(4, 1fr) 1.5fr; }
.key { --top: #fbfaf7; --side: #cfc8ba; --ink-k: var(--ink); position: relative; }
.key-cap { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: clamp(70px, 7vw, 104px); height: 100%; padding: clamp(10px, 1vw, 16px); border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--top) 100%, #fff 0%), color-mix(in srgb, var(--top) 92%, #000)); color: var(--ink-k); font: 400 clamp(.86rem, 1.15vw, 1.12rem)/1.15 var(--display); letter-spacing: -.01em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 0 var(--side), 0 10px 18px -6px rgba(40, 25, 10, .35); transform: translateY(-6px); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .3s; -webkit-user-select: none; user-select: none; }
.key:hover .key-cap, .key.is-down .key-cap, .key-cap:active { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 0 var(--side), 0 3px 8px -4px rgba(40, 25, 10, .35); }
.key:not(.key-mod, .key-enter).is-down .key-cap, .key:not(.key-mod, .key-enter):hover .key-cap { color: var(--sun-text); }
.key-mod .key-cap { --top: var(--ink); color: var(--paper); background: linear-gradient(180deg, #2b2a31, #16151a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 0 #000, 0 10px 18px -6px rgba(40, 25, 10, .45); }
.key-mod:hover .key-cap { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 0 #000, 0 3px 8px -4px rgba(40, 25, 10, .45); }
.key-mod b { font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.6rem); letter-spacing: -.03em; }
.key-mod small { opacity: .62; font-size: .58rem; line-height: 1.5; }
.kb-row:nth-child(1) .key:not(.key-mod) { --top: #f3eefe; --side: #cbbff0; }
.kb-row:nth-child(2) .key:not(.key-mod) { --top: #fff1e8; --side: #f0c3a8; }
.kb-row:nth-child(3) .key:not(.key-mod) { --top: #ecf8ec; --side: #b4dcb6; }
.kb-row:nth-child(4) .key:not(.key-mod) { --top: #fff8dc; --side: #ecd78f; }
.key-enter .key-cap { --top: var(--sun); --side: #a8300a; color: var(--ink); background: linear-gradient(180deg, #ff6a33, var(--sun)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 0 var(--side), 0 14px 26px -8px rgba(234, 69, 17, .6); }
.key-enter:hover .key-cap { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 0 var(--side), 0 4px 10px -4px rgba(234, 69, 17, .6); }
.key-enter b { font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 1.45rem); letter-spacing: -.03em; }
.key-enter small { opacity: .7; font-size: .58rem; }
.key-ret { position: absolute; right: 14px; bottom: 12px; width: 26px; height: 26px; stroke-width: 1.8; }

/* ---------- Journal teaser ---------- */
.journal-teaser { padding: var(--sec) 0; }
.log-cta { display: grid; gap: 18px; justify-items: start; }
.log-row a { grid-template-columns: 130px minmax(0, 1fr) auto 48px; }
.log-row time { color: var(--muted); }
.log-title { display: flex; align-items: center; gap: 14px; font: 400 clamp(1.15rem, 1.8vw, 1.65rem)/1.2 var(--display); letter-spacing: -.02em; }

/* ---------- About ---------- */
.about { padding: var(--sec) 0; background: var(--paper-2); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.portrait { position: sticky; top: calc(var(--nav-h) + 24px); margin: 0; }
.portrait-img { border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper); }
.portrait-img img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 20%; margin-top: -9%; }
.reveal-ready .portrait .portrait-img { clip-path: inset(0 0 0 0 round 30px); transition: clip-path 1.6s var(--ease-io) .1s; }
.reveal-ready .portrait:not(.in) .portrait-img { clip-path: inset(100% 0 0 0 round 30px); }
.spin-badge { position: absolute; right: -34px; top: -34px; z-index: 2; width: clamp(110px, 10vw, 150px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: var(--ink); box-shadow: 0 24px 40px -20px rgba(160, 50, 0, .6); }
.spin-badge > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.spin-badge text { font: 400 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; fill: currentColor; }
.spin-badge i { width: 34%; display: grid; place-items: center; }
.spin-badge .logo { width: 100%; height: auto; color: var(--ink); }
.portrait figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 14px; }
.portrait figcaption > span:first-child { font: 400 1.3rem var(--display); letter-spacing: -.02em; }
.portrait figcaption .mono { color: var(--muted); align-self: center; }
.about-copy .prose { font-size: 1.1rem; }
.resume { margin-top: 44px; padding: clamp(20px, 2.4vw, 30px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 80px -60px rgba(60, 30, 10, .45); }
.resume-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.resume-head p { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); }
.resume dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.resume dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.resume dt { padding-top: 4px; color: var(--muted); font-size: .62rem; }
.resume dd { margin: 0; font-size: .98rem; line-height: 1.45; }
.resume dd small { display: block; color: var(--muted); font-size: .82rem; }
.resume-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.journey { position: relative; list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.journey li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.journey .mono { padding-top: 5px; color: var(--sun-text); }
.journey p { margin: 0; color: var(--ink-2); }
.journey strong { color: var(--ink); font-weight: 500; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

/* ---------- FAQ ---------- */
.faq-sec { padding: var(--sec) 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-list { border-top: 1px solid var(--ink); }
.faq { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font: 400 clamp(1.2rem, 1.8vw, 1.6rem)/1.25 var(--display); letter-spacing: -.02em; transition: color .3s, transform .6s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { transform: translateX(10px); }
.faq summary i { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .7s var(--ease), background .4s, color .4s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.faq[open] summary i { background: var(--sun); border-color: var(--sun); transform: rotate(180deg); }
.faq[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 64px 28px 0; color: var(--ink-2); }
.faq-a p { margin: 0; max-width: 62ch; font-size: 1.04rem; }
.faq::details-content { block-size: 0; overflow-y: clip; transition: block-size .6s var(--ease), content-visibility .6s allow-discrete; }
.faq[open]::details-content { block-size: auto; }

/* ---------- Contact ---------- */
.contact { position: relative; padding-bottom: clamp(100px, 12vw, 170px); overflow: hidden; overflow: clip; }
.cta-marquee { padding: clamp(60px, 8vw, 120px) 0 clamp(50px, 6vw, 90px); overflow: hidden; border-top: 1px solid var(--line); }
.cta-track { display: flex; width: max-content; animation: marquee 34s linear infinite reverse; }
.cta-track span { padding: 0 .28em; font: 400 clamp(4rem, 12vw, 13rem)/1 var(--display); letter-spacing: -.065em; white-space: nowrap; }
.cta-track span:nth-child(4n + 3) { font-style: italic; color: var(--sun-text); }
.cta-track i { display: grid; place-items: center; }
.cta-track .logo { width: clamp(3rem, 8vw, 8rem); height: auto; color: var(--ink); animation: spin 12s linear infinite; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-copy .lede { margin-bottom: 40px; }
.next-steps { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid var(--line-2); }
.next-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.next-steps b { color: var(--sun-text); padding-top: 4px; font-weight: 400; }
.next-steps span { display: grid; color: var(--ink-2); }
.next-steps strong { color: var(--ink); font: 400 1.25rem/1.3 var(--display); letter-spacing: -.02em; }
.direct { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.direct img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.direct div { display: grid; flex: 1; min-width: 0; }
.direct .mono { color: var(--muted); font-size: .62rem; }
.direct a { font: 400 1.2rem/1.3 var(--display); overflow: hidden; text-overflow: ellipsis; }
.direct a:hover { color: var(--sun-text); }
.planner { position: relative; padding: clamp(22px, 3vw, 40px); border-radius: 34px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 60px 120px -60px rgba(80, 40, 10, .35); }
.planner-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.planner-time { color: var(--muted); }
/* The switch between a quick message and the project planner: plain radios, so it works without a script. */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 26px; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.mode { position: relative; }
.mode input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); font-size: .95rem; white-space: nowrap; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.mode span .ic { width: 18px; height: 18px; flex: none; }
.mode span:hover { color: var(--ink); }
.mode input:checked + span { background: var(--ink); color: var(--paper); box-shadow: 0 10px 22px -12px rgba(17, 16, 20, .6); }
.mode input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 2px; }
.planner:has(#modeQuick:checked) #contactForm, .planner:has(#modePlan:checked) #quickForm { display: none; }
.quick-form > .field { margin-top: 12px; }
.quick-form .field-row-top { margin-top: 0; }
.quick-form .field-area { margin-bottom: 26px; }
.q { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.q legend { display: block; width: 100%; padding: 0; margin-bottom: 14px; font: 400 1.3rem/1.3 var(--display); letter-spacing: -.02em; }
.q-n { margin-right: 10px; color: var(--sun-text); font-size: .7rem; vertical-align: 3px; }
.q legend small { display: block; margin-top: 4px; color: var(--muted); font: 400 .9rem/1.4 var(--body); letter-spacing: 0; }
.needs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.need { grid-column: span 2; position: relative; }
.need:nth-child(n + 4) { grid-column: span 3; }
.need input, .pick input, .toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.need > span { position: relative; display: grid; gap: 2px; height: 100%; padding: 16px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; transition: border-color .3s, background .3s, transform .4s var(--ease); }
.need > span:hover { transform: translateY(-2px); border-color: var(--ink); }
.need > span > .ic { width: 22px; height: 22px; margin-bottom: 10px; }
.need b { font-weight: 500; }
.need small { color: var(--muted); font-size: .8rem; }
.need-tick { position: absolute; right: 12px; top: 12px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .5s var(--ease); }
.need-tick .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.need input:checked + span { border-color: var(--ink); background: var(--sun-soft); }
.need input:checked + span .need-tick { opacity: 1; transform: none; }
.need input:focus-visible + span, .pick input:focus-visible + span, .toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--sun); outline-offset: 2px; }
.q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.pick span:hover { border-color: var(--ink); }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.field { display: grid; gap: 8px; }
.field > span { color: var(--muted); font-size: .86rem; }
.field input, .field textarea { width: 100%; padding: 15px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--paper); transition: border-color .3s, box-shadow .3s, background .3s; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #8f8d96; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(234, 69, 17, .14); }
.field.invalid input, .field.invalid textarea { border-color: #d12b2b; box-shadow: 0 0 0 4px rgba(209, 43, 43, .1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.toggle { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; cursor: pointer; }
.toggle-ui { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line-2); transition: background .3s; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .5s var(--ease); }
.toggle input:checked + .toggle-ui { background: var(--sun); border-color: var(--sun); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.planner-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; color: var(--muted); font-size: .92rem; }
.form-status.is-error { color: #b42020; }
.form-note { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; color: var(--muted); font-size: .84rem; }
.form-note .ic { margin-top: .2em; color: #137a3a; }
.sent { display: grid; justify-items: center; gap: 12px; padding: 56px 12px; text-align: center; }
.sent:focus { outline: none; }
.sent-ic { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: var(--ink); animation: pop .7s var(--ease); }
.sent-ic .ic { width: 32px; height: 32px; stroke-width: 2.2; }
.sent h3 { margin: 8px 0 0; font: 400 2.6rem/1 var(--display); letter-spacing: -.04em; }
.sent p { margin: 0 0 12px; color: var(--ink-2); max-width: 40ch; }

/* ---------- Footer ---------- */
.footer { padding: clamp(70px, 9vw, 120px) 0 24px; background: var(--paper-2); border-top: 1px solid var(--line); overflow: hidden; overflow: clip; }
.footer-top { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.footer-big { margin: 0 0 28px; font: 400 clamp(2.4rem, 5vw, 4.8rem)/.95 var(--display); letter-spacing: -.05em; }
.footer-mail { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); font: 400 clamp(1.2rem, 2.2vw, 1.9rem)/1.2 var(--display); letter-spacing: -.02em; transition: color .3s, border-color .3s; }
.footer-mail:hover { color: var(--sun-text); border-color: var(--sun); }
.footer-mail .ic { transition: transform .5s var(--ease); }
.footer-mail:hover .ic { transform: translate(3px, -3px); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h3 { margin: 0 0 16px; color: var(--muted); }
.footer-cols a { display: block; width: fit-content; padding: 4px 0; font-size: 1rem; }
/* The toybox: product coins and stickers resting on the wordmark */
.toybox { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 10px; min-height: clamp(240px, 26vw, 380px); margin-top: clamp(40px, 5vw, 70px); padding-top: 40px; -webkit-user-select: none; user-select: none; }
.toybox-hint { position: absolute; left: 0; top: 0; margin: 0; color: var(--muted); }
.toybox:not(.is-live) .toybox-hint { display: none; }
.toy { --s: clamp(60px, 6.6vw, 100px); width: var(--s); height: var(--s); flex: none; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, var(--tc, var(--card)) 70%); box-shadow: inset 0 0 0 1px rgba(17, 16, 20, .08), 0 18px 30px -16px rgba(60, 30, 10, .5); touch-action: none; -webkit-user-drag: none; }
.toy img { width: 56%; height: 56%; border-radius: 24%; pointer-events: none; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35); }
.sticker { --s: clamp(78px, 8.4vw, 128px); padding: 10px; text-align: center; font: 500 clamp(.8rem, 1.15vw, 1.2rem)/1.05 var(--display); letter-spacing: -.01em; background: var(--st); color: var(--ink); }
.sticker span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 1.5px dashed rgba(17, 16, 20, .25); padding: 8px; }
.st-sun { --st: var(--sun); }
.st-lilac { --st: #d9ccff; }
.st-mint { --st: #bfe6c1; }
.st-butter { --st: #ffe48a; }
.toybox.is-live { display: block; height: clamp(240px, 26vw, 380px); padding: 0; }
.toybox.is-live .toy { position: absolute; left: 0; top: 0; visibility: hidden; will-change: transform; cursor: grab; }
.toybox.is-dropped .toy { visibility: visible; }
.toy.is-held { cursor: grabbing; z-index: 2; box-shadow: inset 0 0 0 1px rgba(17, 16, 20, .08), 0 30px 50px -18px rgba(60, 30, 10, .55); }
.toybox + .footer-word { margin-top: 0; }
.footer-word { position: relative; display: flex; justify-content: center; margin: clamp(56px, 8vw, 110px) 0 18px; overflow: hidden; font: 500 clamp(3.4rem, 16.2vw, 17rem)/.8 var(--display); letter-spacing: -.075em; -webkit-user-select: none; user-select: none; padding-bottom: .04em; }
.footer-word span { display: inline-block; transition: transform 1.2s var(--ease) calc(var(--i) * 45ms); }
.reveal-ready .footer-word:not(.in) span { transform: translateY(105%); }
.footer-sun { position: absolute; right: 1.2%; top: -2%; width: .2em; }
.footer-sun .logo { width: 100%; height: auto; color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding-top: 22px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: .9rem; }
.to-top { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Inner page heroes ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(50px, 8vw, 120px)) 0 clamp(40px, 6vw, 80px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 3vw, 40px); color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.page-title { margin: 0 0 clamp(32px, 4vw, 56px); font: 400 clamp(3.2rem, 10vw, 10.6rem)/.88 var(--display); letter-spacing: -.065em; }
.page-hero-foot { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px 64px; align-items: end; padding-top: 28px; border-top: 1px solid var(--line-2); }
.mini-stats { display: flex; gap: clamp(24px, 4vw, 56px); margin: 0; justify-self: end; }
.mini-stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.mini-stats dt { color: var(--muted); font-size: .86rem; }
.mini-stats dd { margin: 0; font: 300 clamp(3rem, 6vw, 5.6rem)/1 var(--display); letter-spacing: -.06em; }
.log-panel { display: grid; gap: 28px; padding: 26px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.log-panel .mini-stats { justify-self: start; }
.page-hero-foot.is-top { align-items: start; }
.page-hero-doc .page-title { max-width: 14ch; }
.doc-sec { padding: 0 0 clamp(90px, 10vw, 140px); }
.doc { max-width: 780px; margin-left: auto; font-size: 1.06rem; }
.doc h2 { margin: 2em 0 .6em; font: 400 2rem/1.1 var(--display); letter-spacing: -.035em; }
.doc ul { margin: 0 0 1.2em; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: 8px; }
.doc strong { color: var(--ink); font-weight: 500; }
.nf { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-items: center; padding: var(--nav-h) 0; overflow: hidden; overflow: clip; }
.nf-sun { position: absolute; z-index: -1; right: -8vw; bottom: -10vw; width: 56vw; opacity: .9; animation: spin 60s linear infinite; }
.nf-sun .logo { width: 100%; height: auto; color: transparent; }
.nf .page-title { max-width: 12ch; }
.nf .lede { margin-bottom: 36px; }
.nf-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Products index ---------- */
.index { padding: clamp(20px, 3vw, 40px) 0 clamp(100px, 12vw, 170px); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .94rem; transition: background .3s, color .3s, border-color .3s; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn sup { font-size: .6rem; color: var(--muted); vertical-align: 6px; }
.chip-btn img { border-radius: 6px; }
.chip-btn .logo { width: 20px; height: 20px; }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip-btn[aria-pressed="true"] sup { color: rgba(242, 239, 233, .7); }
.search-box { display: flex; align-items: center; gap: 10px; height: 48px; min-width: min(320px, 100%); padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); transition: border-color .3s; }
.search-box:focus-within { border-color: var(--ink); }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: none; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px) clamp(16px, 2vw, 28px); }
.card:nth-child(even) { margin-top: clamp(40px, 7vw, 120px); }
.card a { display: grid; gap: 16px; }
.card-media { position: relative; aspect-ratio: 4 / 3.1; display: grid; place-items: center; overflow: hidden; border-radius: 30px; background: radial-gradient(60% 60% at 80% 20%, rgba(255, 255, 255, .55), transparent 70%), var(--tint); }
.card-media img { width: 80%; border-radius: 12px; box-shadow: 0 40px 70px -30px rgba(40, 20, 10, .5); transform: translateY(8%); translate: calc(var(--mx, 0) * 26px) calc(var(--my, 0) * 18px); transition: transform 1.2s var(--ease), translate .9s var(--ease); }
.card-media.is-portrait img { position: absolute; left: 50%; top: 13%; width: auto; height: 112%; max-width: none; border-radius: 22px; transform: translateX(-50%); }
.card a:hover .card-media img { transform: translateY(3%) scale(1.04) rotate(-1deg); }
.card a:hover .card-media.is-portrait img { transform: translateX(-50%) translateY(-5%) rotate(-2deg) scale(1.03); }
.card-n { position: absolute; left: 20px; top: 18px; color: var(--tint-ink); }
.card-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-title { display: flex; align-items: center; gap: 14px; }
.card-title img { border-radius: 11px; }
.card-title > span { display: grid; }
.card-title b { font: 400 clamp(1.6rem, 2.4vw, 2.2rem)/1.05 var(--display); letter-spacing: -.035em; }
.card-title small { color: var(--muted); font-size: .64rem; }
.card-tag { color: var(--ink-2); }
.empty { padding: 64px 0; text-align: center; }
.empty p { color: var(--muted); }

/* ---------- Hire band ---------- */
.hire { padding: clamp(40px, 6vw, 80px) 0 clamp(100px, 12vw, 150px); }
.hire-card { position: relative; isolation: isolate; display: grid; justify-items: center; padding: clamp(56px, 8vw, 120px) clamp(24px, 5vw, 72px); border-radius: 40px; overflow: hidden; text-align: center; background: var(--card); border: 1px solid var(--line); }
.hire-sun { position: absolute; z-index: -1; left: 50%; bottom: -55%; width: 90%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 138, 61, .55), rgba(234, 69, 17, .25) 45%, transparent 72%); filter: blur(10px); }
.hire-card .h2 { max-width: 16ch; }
.hire-card .lede { margin: 0 auto 36px; }
.hire-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Product page ---------- */
.p-hero { padding: calc(var(--nav-h) + clamp(30px, 5vw, 70px)) 0 0; }
.p-head { display: grid; gap: clamp(28px, 3vw, 44px); margin-bottom: clamp(28px, 3vw, 44px); }
.p-title { margin: 0; font: 400 clamp(3.4rem, 10.6vw, 11.6rem)/.86 var(--display); letter-spacing: -.07em; }
.p-side { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) auto; gap: 24px 48px; align-items: start; padding-top: 24px; border-top: 1px solid var(--line-2); }
.p-id { display: flex; align-items: center; gap: 14px; align-self: start; flex-wrap: wrap; }
.p-id > img { border-radius: 16px; box-shadow: 0 16px 40px -16px color-mix(in srgb, var(--accent) 80%, transparent); }
.p-id > div { display: grid; gap: 8px; justify-items: start; }
.p-id .mono { color: var(--muted); }
.p-tagline { grid-column: 1; margin: 0; font: 400 clamp(1.4rem, 2.2vw, 2rem)/1.15 var(--display); letter-spacing: -.03em; color: var(--acc); }
.p-sum { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: var(--ink-2); font-size: 1.06rem; max-width: 52ch; }
.notice { grid-column: 2; display: flex; gap: 10px; margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--butter); color: #4a3700; font-size: .92rem; }
.notice .ic { margin-top: .2em; }
.p-cta { grid-column: 3; grid-row: 1 / span 3; display: grid; gap: 10px; justify-items: stretch; align-content: start; }
.p-stage { position: relative; isolation: isolate; height: min(80vh, 780px); border-radius: 40px; overflow: hidden; background: var(--tint); perspective: 1600px; }
.p-stage-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 70% 30%, rgba(255, 255, 255, .7), transparent 70%), radial-gradient(45% 55% at 15% 90%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
.p-shot { position: absolute; display: block; overflow: hidden; border-radius: 16px; box-shadow: 0 50px 100px -40px rgba(30, 15, 5, .55), 0 0 0 1px rgba(17, 16, 20, .06); cursor: zoom-in; transition: transform 1.2s var(--ease), box-shadow .6s; }
.p-shot img { width: 100%; }
.p-shot, .p-chip { translate: calc(var(--mx, 0) * var(--depth, 0px)) calc(var(--my, 0) * var(--depth, 0px)); transition: transform 1.2s var(--ease), translate 1s var(--ease), box-shadow .6s; }
.p-shot.main { --depth: 36px; }
.p-shot.back { --depth: -22px; }
.p-chip { --depth: 60px; }
.p-stage:not(.is-phone) .p-shot.main { left: 50%; top: 14%; width: 66%; margin-left: -33%; z-index: 2; }
.p-stage:not(.is-phone) .p-shot.b1 { left: 50%; top: 6%; width: 56%; margin-left: -16%; z-index: 1; opacity: .9; }
.p-stage.is-phone .p-shot { top: 50%; border-radius: 26px; }
.p-stage.is-phone .p-shot.main { left: 50%; width: 25%; margin-left: -12.5%; transform: translateY(-50%); z-index: 3; }
.p-stage.is-phone .p-shot.b1 { left: 22%; width: 21%; transform: translateY(-45%) rotate(-8deg); z-index: 2; }
.p-stage.is-phone .p-shot.b2 { right: 22%; width: 21%; transform: translateY(-45%) rotate(8deg); z-index: 2; }
.p-chip { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 20px 40px -20px rgba(30, 15, 5, .35); font-weight: 500; color: var(--ink); animation: float 7s ease-in-out infinite; }
.p-chip .ic { color: var(--acc); }
.p-chip.c1 { left: 5%; top: 10%; }
.p-chip.c2 { right: 5%; top: 46%; animation-delay: -2.4s; }
.p-chip.c3 { left: 8%; bottom: 10%; animation-delay: -4.8s; }
.p-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-bottom: 1px solid var(--line-2); }
.p-facts div { padding: 26px 22px 26px 0; }
.p-facts div + div { padding-left: 22px; border-left: 1px solid var(--line-2); }
.p-facts dt { color: var(--muted); }
.p-facts dd { margin: 8px 0 0; font: 400 clamp(1.3rem, 2vw, 1.9rem)/1.1 var(--display); letter-spacing: -.03em; }
.subnav { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 50; display: flex; justify-content: center; margin-top: 28px; pointer-events: none; transition: top .7s var(--ease); }
.nav-hidden .subnav { top: 12px; }
.subnav-in { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 2 * var(--gutter)); height: 56px; padding: 0 8px 0 14px; border-radius: 999px; background: rgba(251, 250, 247, .95); border: 1px solid var(--line); box-shadow: 0 20px 40px -26px rgba(30, 15, 5, .35); }
.subnav-id { display: inline-flex; align-items: center; gap: 10px; padding-right: 12px; font-weight: 500; white-space: nowrap; border-right: 1px solid var(--line); }
.subnav-id img { border-radius: 7px; }
.subnav-links { display: flex; flex: 1 1 auto; min-width: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav-id, .subnav-cta { flex: none; }
.subnav-links::-webkit-scrollbar { display: none; }
/* When the links scroll sideways (narrow screens), the edge with more links fades out (product.js sets the classes) */
.subnav-links.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.subnav-links.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.subnav-links.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.subnav-links a { padding: 8px 13px; border-radius: 999px; color: var(--ink-2); font-size: .9rem; white-space: nowrap; transition: background .3s, color .3s; }
.subnav-links a:hover { background: rgba(17, 16, 20, .05); }
.subnav-links a.on { background: var(--ink); color: var(--paper); }
.p-sec { padding: calc(var(--sec) * .8) 0; }
.p-demo { padding-bottom: 0; }
.video { overflow: hidden; border-radius: 30px; background: var(--ink); box-shadow: 0 60px 120px -60px rgba(30, 15, 5, .6); }
.video video { width: 100%; }
.video-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 16px; color: var(--muted); font-size: .92rem; }
.video-foot p { margin: 0; }
.p-problem { font-size: clamp(1.8rem, 3.8vw, 3.8rem); }
.words-ready .p-problem .wd { opacity: .14; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(56px, 7vw, 100px); }
.ba-col { padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.ba-col.after { background: var(--tint); color: var(--tint-ink); border-color: transparent; }
.ba-h { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; opacity: .75; }
.ba-h img { border-radius: 5px; }
.ba ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ba li { display: flex; gap: 12px; align-items: flex-start; font: 400 clamp(1.1rem, 1.5vw, 1.35rem)/1.3 var(--display); letter-spacing: -.01em; }
.ba .ic { margin-top: .2em; }
.ba .before .ic { color: #c42c2c; }
.ba .before li span { color: var(--ink-2); }
.how { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.how-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.how-step { position: relative; display: grid; grid-template-columns: 48px 1fr 44px; gap: 16px; width: 100%; padding: 26px 0; border-bottom: 1px solid var(--line-2); opacity: .45; transition: opacity .5s; }
.how-step > * { transition: transform .7s var(--ease); }
.how-step:hover { opacity: .8; }
.how-step.on { opacity: 1; }
.how-step.on > * { transform: translateX(12px); }
.how-step::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 2px; background: var(--acc); transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease); }
.how-step.on::before { transform: none; }
.how-n { color: var(--acc); padding-top: 6px; }
.how-txt { display: grid; gap: 6px; }
.how-txt strong { font: 400 clamp(1.4rem, 2vw, 1.9rem)/1.1 var(--display); letter-spacing: -.03em; }
.how-txt span { color: var(--ink-2); }
.how-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); }
.how-step.on .how-ic { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.how-stage { position: sticky; top: calc(var(--nav-h) + 90px); }
.how-frames { position: relative; aspect-ratio: 16 / 11.5; border-radius: 34px; overflow: hidden; background: radial-gradient(55% 60% at 70% 25%, rgba(255, 255, 255, .6), transparent 70%), var(--tint); }
.how.is-phone .how-frames { aspect-ratio: 5 / 6; }
.how-frame { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.94) translateY(20px); transition: opacity .6s var(--ease), transform 1s var(--ease); }
.how-frame.on { opacity: 1; transform: none; }
.how-frame img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 86%; max-height: 86%; border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(30, 15, 5, .5); }
.how.is-phone .how-frame img { border-radius: 24px; }
.how-inline { display: none; }
.how-progress { display: flex; gap: 6px; margin-top: 16px; }
.how-progress i { flex: 1; height: 3px; border-radius: 3px; background: var(--line-2); transition: background .5s; }
.how-progress i.on { background: var(--ink); }
.g-ctrl { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.g-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2)) 8px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.g-track::-webkit-scrollbar { display: none; }
.g-track.is-dragging { scroll-snap-type: none; }
.g-track.is-dragging * { pointer-events: none; }
.g-item { flex: none; width: min(78vw, 760px); margin: 0; scroll-snap-align: start; }
.g-item.portrait { width: min(62vw, 320px); }
.g-item button { display: block; width: 100%; overflow: hidden; border-radius: 24px; background: var(--tint); cursor: zoom-in; }
.g-item img { width: 100%; transition: transform 1.2s var(--ease); }
.g-item button:hover img { transform: scale(1.03); }
.g-item figcaption { display: flex; gap: 10px; margin-top: 14px; color: var(--ink-2); }
.g-item figcaption .mono { padding-top: 3px; color: var(--acc); }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { --rx: 0deg; --ry: 0deg; position: relative; display: flex; flex-direction: column; min-height: 280px; padding: clamp(24px, 2.6vw, 34px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.feat.f1, .feat.f6 { background: var(--tint); color: var(--tint-ink); border-color: transparent; }
.feat-n { position: absolute; right: 24px; top: 24px; color: var(--muted); }
.feat.f1 .feat-n, .feat.f6 .feat-n { color: inherit; opacity: .6; }
.feat-ic { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: auto; border-radius: 16px; background: var(--acc); color: var(--acc-ink); }
.feat-ic .ic { width: 24px; height: 24px; }
.feat h3 { margin: 40px 0 10px; font: 400 clamp(1.35rem, 1.8vw, 1.7rem)/1.1 var(--display); letter-spacing: -.03em; }
.feat p { margin: 0; color: inherit; opacity: .82; }
.privacy { display: flex; gap: 22px; align-items: flex-start; margin-top: 16px; padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--mint); color: #0f2e17; }
.privacy-ic { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #137a3a; color: #fff; }
.privacy-ic .ic { width: 26px; height: 26px; }
.privacy p { margin: 0 0 10px; font-size: 1.05rem; }
.privacy p.mono { margin-bottom: 6px; opacity: .7; font-size: .7rem; }
.p-two { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.p-upd-head { position: sticky; top: calc(var(--nav-h) + 100px); }
.p-upd-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.tl { list-style: none; margin: 0; padding: 0 0 0 32px; display: grid; gap: 36px; border-left: 1px solid var(--line-2); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -37px; top: 6px; width: 9px; height: 9px; border: 1.5px solid var(--ink-2); background: var(--paper); }
.tl-item.now::before { background: var(--ink); border-color: var(--ink); }
.tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--muted); }
.tl-meta .ver { text-transform: none; }
.tl-item h3 { margin: 0 0 8px; font: 400 clamp(1.4rem, 2vw, 1.9rem)/1.15 var(--display); letter-spacing: -.03em; }
.tl-item > p { margin: 0 0 14px; color: var(--ink-2); }
.tl .ticks .ic { color: var(--acc); }
.p-next { padding: 0 0 clamp(100px, 12vw, 150px); }
.next { position: relative; display: block; isolation: isolate; overflow: hidden; background: var(--tint); color: var(--tint-ink); min-height: clamp(360px, 52vh, 560px); }
.next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 40%, rgba(255, 255, 255, .55), transparent 70%); }
.next-in { position: relative; z-index: 2; display: grid; gap: 14px; padding: clamp(48px, 7vw, 100px) 0; }
.next-k { opacity: .75; }
.next-name { font: 400 clamp(3.6rem, 12vw, 12rem)/.86 var(--display); letter-spacing: -.07em; transition: transform 1.2s var(--ease); }
.next:hover .next-name { transform: translateX(2vw); }
.next-tag { font-size: clamp(1.05rem, 1.5vw, 1.35rem); max-width: 34ch; }
.next-shot { position: absolute; z-index: 1; right: 4%; top: 50%; width: min(38vw, 560px); border-radius: 18px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(30, 15, 5, .5); transform: translateY(-40%) rotate(4deg); transition: transform 1.2s var(--ease); }
.next-shot.portrait { width: min(18vw, 260px); border-radius: 26px; }
.next-shot img { width: 100%; }
.next:hover .next-shot { transform: translateY(-50%) rotate(-2deg) scale(1.04); }
.next-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.next-more a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .3s; }
.next-more a:hover { transform: translateY(-3px); border-color: var(--ink); }
.next-more img { border-radius: 9px; }
.next-more span { display: grid; flex: 1; min-width: 0; }
.next-more b { font-weight: 500; }
.next-more small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Case study (product pages) ---------- */
.cfile { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0; margin: 0; border-bottom: 1px solid var(--line-2); }
.cfile > div { padding: 22px 28px 22px 0; }
.cfile > div + div { padding-left: 28px; border-left: 1px solid var(--line-2); }
.cfile dt { color: var(--muted); }
.cfile dd { margin: 8px 0 0; font: 400 clamp(1.05rem, 1.4vw, 1.3rem)/1.25 var(--display); letter-spacing: -.02em; }
.cfile-stack dd { display: flex; flex-wrap: wrap; gap: 6px; font: inherit; }
.cfile-stack span { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--tint) 70%, var(--card)); color: var(--tint-ink); font-size: .84rem; }
.hard { position: relative; margin: clamp(48px, 6vw, 84px) 0 0; padding: clamp(28px, 4vw, 52px); border-radius: 30px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.hard::before { content: "“"; position: absolute; right: 3%; top: -6%; font: 400 clamp(8rem, 18vw, 16rem)/1 var(--display); color: color-mix(in srgb, var(--acc) 16%, transparent); pointer-events: none; }
.hard figcaption { color: var(--acc); }
.hard blockquote { position: relative; margin: 16px 0 0; max-width: 30ch; font: 400 clamp(1.7rem, 3.4vw, 3rem)/1.12 var(--display); letter-spacing: -.035em; }
.sec-head-split > .build-lede { justify-self: end; max-width: 56ch; }
.build-lede .lede { max-width: none; }
.build-more { margin: 16px 0 0; color: var(--muted); font-size: 1rem; }
/* The architecture as a pipeline: four stops on a line, with a pulse travelling along it */
.flow { --g: 16px; position: relative; margin-top: clamp(48px, 6vw, 80px); }
.flow-line { position: absolute; left: 20px; right: calc(100% / var(--n) - var(--g) * (var(--n) - 1) / var(--n) - 20px); top: 15px; height: 1px; background: var(--line-2); overflow: hidden; }
.flow-line i { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--acc)) right center / 160px 100% no-repeat; transform: translateX(-100%); animation: flow-run 3.6s cubic-bezier(.6, 0, .3, 1) infinite; }
.flow-nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--g); }
.flow-node { position: relative; display: flex; flex-direction: column; gap: 8px; }
.flow-k { position: relative; z-index: 1; align-self: flex-start; margin-bottom: 14px; padding: 8px 10px; border: 1px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: .68rem; line-height: 1; }
.flow-node h3 { margin: 0; font: 400 clamp(1.4rem, 2vw, 1.9rem)/1.05 var(--display); letter-spacing: -.035em; }
.flow-short { margin: 0; color: var(--acc); font-weight: 500; font-size: .98rem; }
.flow-detail { margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.hood { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.hood-card { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.6vw, 32px); border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.hood-card .mono { color: var(--acc); }
.hood-card h3 { margin: 0; font: 400 clamp(1.3rem, 1.8vw, 1.65rem)/1.1 var(--display); letter-spacing: -.03em; }
.hood-card p { margin: 0; color: var(--ink-2); }
/* A real excerpt from the source, in a light editor */
.code-card { margin: clamp(40px, 5vw, 64px) 0 0; border-radius: 26px; background: #fbfaf7; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -60px rgba(40, 20, 10, .45); overflow: hidden; }
.code-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.code-lang { padding: 5px 8px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: .6rem; letter-spacing: .08em; }
.code-path { flex: 1; min-width: 0; color: var(--ink); text-transform: none; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-at { color: var(--muted); text-transform: none; }
.code-body { display: flex; max-height: 460px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.code-body pre { margin: 0; padding: 20px 0; font: 400 .84rem/1.65 var(--mono); tab-size: 2; }
.code-ln { flex: none; padding: 20px 14px 20px 20px !important; text-align: right; color: #b3aea4; -webkit-user-select: none; user-select: none; border-right: 1px solid var(--line); }
.code-src { flex: 1; padding: 20px 24px !important; white-space: pre; color: #2b2a31; }
.tk-c { color: #8a8578; font-style: italic; }
.tk-s { color: #1f7a45; }
.tk-k { color: #7a3fd0; }
.tk-n { color: #c2410c; }
.tk-t { color: #1d5fbf; }
.code-card figcaption { display: grid; gap: 6px; padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--card); }
.code-card figcaption .mono { color: var(--acc); }
.code-card figcaption strong { font: 400 1.25rem/1.2 var(--display); letter-spacing: -.02em; }
.code-card figcaption span:last-child { color: var(--ink-2); max-width: 80ch; }
/* Decisions, as editorial rows */
.decisions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.dec { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 40px; align-items: start; padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line-2); }
.dec-n { font: 300 clamp(2.4rem, 4vw, 3.6rem)/.9 var(--display); letter-spacing: -.05em; color: var(--acc); }
.dec h3 { margin: 0; font: 400 clamp(1.5rem, 2.4vw, 2.2rem)/1.08 var(--display); letter-spacing: -.035em; }
.dec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dec-cols .mono { margin: 4px 0 8px; color: var(--muted); }
.dec-cols p:not(.mono) { margin: 0; color: var(--ink-2); }
.dec-cols > div:last-child:not(:first-child) { padding-left: 24px; border-left: 2px solid color-mix(in srgb, var(--acc) 40%, transparent); }
.lessons { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.bug { padding: clamp(24px, 3vw, 40px); border-radius: 30px; background: var(--tint); color: var(--tint-ink); }
.bug-k { margin: 0; opacity: .75; }
.bug h3 { margin: 12px 0 24px; font: 400 clamp(1.8rem, 3vw, 2.8rem)/1.02 var(--display); letter-spacing: -.045em; }
.bug dl { display: grid; gap: 18px; margin: 0; }
.bug dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--tint-ink) 18%, transparent); }
.bug dt { padding-top: 3px; opacity: .7; }
.bug dd { margin: 0; }
.lessons-side { display: grid; gap: 16px; }
.tried, .learned { padding: clamp(22px, 2.6vw, 32px); border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.tried > .mono, .learned > .mono { margin: 0 0 16px; color: var(--acc); }
.tried ul, .learned ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tried li { display: grid; gap: 4px; }
.tried strong { font-weight: 500; }
.tried span, .learned span { color: var(--ink-2); }
.learned li { display: flex; gap: 12px; align-items: flex-start; }
.learned .ic { margin-top: .25em; color: var(--acc); }
code { font-family: var(--mono); font-size: .9em; padding: .05em .3em; border-radius: 5px; background: rgba(17, 16, 20, .06); }
pre code { padding: 0; background: none; font-size: inherit; }
/* Milestones rail */
.rail { list-style: none; width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.rail-item { position: relative; display: grid; gap: 8px; align-content: start; padding: 0 28px 0 0; scroll-snap-align: start; }
.rail-item::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--line-2); }
.rail-item:last-child::before { right: auto; width: 2px; }
/* A tick on the line marks each milestone; the latest one is drawn solid. */
.rail-dot { position: relative; width: 2px; height: 19px; margin-bottom: 10px; background: var(--ink-2); }
.rail-item.now .rail-dot { width: auto; height: auto; justify-self: start; padding: 5px 8px; border-radius: 6px; background: var(--ink); color: var(--paper); font: 400 .6rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.rail-item.now .rail-dot::before { content: "Now"; }
.rail-when { color: var(--acc); }
.rail-item h3 { margin: 0; font: 400 clamp(1.3rem, 1.8vw, 1.6rem)/1.1 var(--display); letter-spacing: -.03em; }
.rail-item p { margin: 0; color: var(--ink-2); font-size: .96rem; max-width: 34ch; }
@keyframes flow-run-y { 0% { transform: translateY(-100%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes flow-run { 0% { transform: translateX(-100%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }

/* ---------- Journal ---------- */
.journal { padding: clamp(20px, 3vw, 40px) 0 clamp(100px, 12vw, 160px); }
.journal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.journal-side { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 16px; }
.journal-label { margin: 0; color: var(--muted); }
.chip-col { flex-direction: column; align-items: stretch; }
.chip-col .chip-btn { justify-content: flex-start; }
.year { margin-bottom: 64px; }
.year-h { margin: 0 0 24px; font: 300 clamp(3rem, 7vw, 6rem)/1 var(--display); letter-spacing: -.06em; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.entry { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; scroll-margin-top: 120px; }
.entry-date { padding-top: 28px; color: var(--muted); }
.entry-card { display: grid; gap: 12px; padding: clamp(22px, 2.6vw, 32px); border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.entry:target .entry-card { border-color: var(--acc); }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.entry-ic { width: 32px; height: 32px; border-radius: 9px; }
.entry-ic.is-brand { background: #fff; padding: 2px; }
.entry-prod { font-weight: 500; }
.entry-v { color: var(--muted); text-transform: none; }
.entry-card h3 { margin: 0; font: 400 clamp(1.4rem, 2vw, 1.9rem)/1.15 var(--display); letter-spacing: -.03em; }
.entry-card .entry-sum { margin: 0; color: var(--ink-2); }
.entry-card .ticks .ic { color: var(--acc); }
.entry-card .link { justify-self: start; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 450; display: grid; place-items: center; padding: 80px 80px 32px; background: rgba(242, 239, 233, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: fade .35s var(--ease); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 16px; max-width: 100%; }
#lbImg { max-width: 100%; max-height: calc(100vh - 170px); width: auto; border-radius: 18px; box-shadow: 0 50px 120px -40px rgba(30, 15, 5, .6); }
#lbCap { color: var(--ink-2); text-align: center; }
.lb-close { position: absolute; top: 20px; right: 20px; background: var(--card); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: var(--card); }
.lb-nav.prev { left: 20px; }
.lb-nav.next { right: 20px; }

/* ---------- Performance ---------- */
/* Elements that scripts move on every scroll frame get their own layer, so they slide instead of repainting. */
.stack-card, .is-hscroll .panel, .is-hscroll .panel-media, [data-speed], .sun-rise, .card-media, .portrait-img, .kb, .has-cursor .cursor { will-change: transform; }
/* The sun band's rising circle is a clip: on its own layer, only the cheap circle mask redraws. */
.sun-band { will-change: transform; }
/* Sections out of view pause their looping animations (main.js marks them). */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

/* ---------- Motion ---------- */
@keyframes curtain-fallback { to { transform: translateY(-115%); } }
@keyframes cap { 0%, 20% { transform: translateY(0); } 25%, 45% { transform: translateY(-20%); } 50%, 70% { transform: translateY(-40%); } 75%, 95% { transform: translateY(-60%); } 100% { transform: translateY(-80%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drop { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { 0% { transform: translate(-50%, -50%) scale(.85); opacity: .6; } 100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; } }
@keyframes pulse-box { 50% { transform: scale(1.04); } }
@keyframes wander { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-40px, 24px); } 66% { transform: translate(20px, -18px); } }
@keyframes bubble { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }
@keyframes sweep { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes blip { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes frame-in { to { opacity: 1; transform: none; } }
@keyframes frame-fill { 0%, 15% { opacity: 0; } 30%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fade-in-out { 0%, 20% { opacity: 0; } 35%, 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes line-in { 0% { opacity: 0; transform: translateY(6px); } 5%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes load-bar { 0% { transform: scaleX(0); } 18%, 100% { transform: scaleX(1); } }
@keyframes typing { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes typing-out { to { opacity: 0; visibility: hidden; } }

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal]:not(.in) { opacity: 0; transform: translateY(40px); animation: reveal-fallback .6s 3s forwards; }
  .reveal-ready [data-reveal]:not(.in) { animation: none; }
  [data-reveal] { transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 100ms); }
  .card[data-reveal] { transition-delay: calc(var(--d, 0) * 140ms); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .curtain, .grain { display: none; }
  .marquee-track, .cta-track, .cap-track { animation: none; }
  .blip { opacity: 1 !important; transform: translate(-50%, -50%) !important; }
  .fb, .term-body code, .chat > * { opacity: 1 !important; transform: none !important; }
  .t-bar i { transform: none !important; }
  .fb4::before { opacity: 1 !important; }
  .fb4 em { opacity: 1 !important; color: #fff !important; }
  .bubble.is-typing { display: none !important; }
  .sweep { display: none; }
  .flow-line i { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-status { display: none; }
  .nav-links a { padding: 9px 11px; }
  .hero-foot { grid-template-columns: 1fr auto; }
  .scroll-cue { display: none; }
  .svc-inner { grid-template-columns: 72px 1fr 1fr; }
  .svc-inner .ticks { grid-column: 2; }
  .svc-side { grid-column: 3; grid-row: 1 / span 2; }
  .p-side { grid-template-columns: 1fr 1fr; }
  .p-cta { grid-column: 1 / -1; grid-row: auto; display: flex; flex-wrap: wrap; }
  .next-more { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --nav-h: 70px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .sec-head-split, .page-hero-foot, .contact-grid, .about-grid, .faq-grid, .p-two, .how, .journal-grid, .footer-top { grid-template-columns: 1fr; }
  .sec-head-split > .lede, .sec-head-split > .g-ctrl, .sec-head-split > .log-cta, .mini-stats { justify-self: start; }
  .faq-head, .portrait, .p-upd-head, .how-stage, .journal-side { position: relative; top: auto; }
  .portrait { max-width: 440px; }
  /* Sized so "software [screens] people" still fits on one line on a tablet (phones hide the screens and go larger) */
  .hero-title { font-size: clamp(3rem, 11vw, 7rem); }
  .hero-title .ln:nth-child(2) { padding-left: 0; }
  .hero-title .ln-in { white-space: normal; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-meta-mid { display: none; }
  .panel { width: 86vw; height: auto; min-height: 560px; grid-template-rows: auto minmax(240px, 1fr) auto; }
  .panel-media { position: relative; inset: auto; }
  /* Give the screenshots room of their own so they never run into the title */
  .panel:not(.is-phone) .panel-media { aspect-ratio: 1.45; }
  .panel.is-phone .panel-media { aspect-ratio: 1.15; }
  .panel:not(.is-phone) .ps-1 { right: -12%; top: 10%; width: 92%; }
  .panel:not(.is-phone) .ps-2 { display: none; }
  .panel.is-phone .ps-1 { right: 34%; width: 34%; }
  .panel.is-phone .ps-2 { right: 64%; width: 28%; }
  .panel.is-phone .ps-3 { right: 4%; width: 28%; }
  .panel-foot { max-width: none; }
  .panel-end { width: 70vw; }
  .row a { grid-template-columns: 1fr 48px; gap: 8px 16px; }
  .row-n, .row a > .pill { display: none; }
  .row-kind { grid-column: 1; grid-row: 2; font-size: .92rem; }
  .row-go { grid-column: 2; grid-row: 1 / span 2; }
  .log-row a { grid-template-columns: 1fr 48px; gap: 8px 16px; }
  .log-row time, .log-title { grid-column: 1; }
  .log-row .type { display: none; }
  .log-row .row-go { grid-column: 2; grid-row: 1 / span 2; }
  .svc-head { grid-template-columns: 44px minmax(0, 1fr) 52px; }
  .svc-kicker { display: none; }
  .svc-plus { width: 50px; height: 50px; }
  .svc-inner { grid-template-columns: 1fr; gap: 20px; }
  .svc-inner > * { margin: 0; }
  .svc-blurb, .svc-inner .ticks, .svc-side { grid-column: 1; grid-row: auto; }
  .svc-blurb { margin-top: 24px; }
  .svc-side { margin-bottom: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stack-card { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; gap: 24px; }
  .stack-num { font-size: 5rem; }
  .stack-art { min-height: 280px; }
  .kb-row, .kb-row:nth-child(4), .kb-row:last-child { grid-template-columns: repeat(3, 1fr); }
  .key-mod { grid-column: 1 / -1; }
  .key-mod .key-cap { flex-direction: row; align-items: baseline; min-height: 0; }
  .key-enter { grid-column: span 2; }
  .reel.is-pinned { height: 200vh; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "maker maker" "ship ship" "privacy commerce" "design design" "care care"; }
  .p-side { grid-template-columns: 1fr; }
  .p-tagline, .p-sum, .notice, .p-cta { grid-column: 1; grid-row: auto; }
  .p-stage { height: auto; aspect-ratio: 4 / 3.6; border-radius: 28px; }
  .p-stage.is-phone { aspect-ratio: 4 / 4.4; }
  .p-stage:not(.is-phone) .p-shot.main { width: 84%; margin-left: -42%; top: 18%; }
  .p-stage:not(.is-phone) .p-shot.b1 { display: none; }
  .p-stage.is-phone .p-shot.main { width: 40%; margin-left: -20%; }
  .p-stage.is-phone .p-shot.b1 { left: 6%; width: 32%; }
  .p-stage.is-phone .p-shot.b2 { right: 6%; width: 32%; }
  .p-chip.c2 { display: none; }
  .p-chip { padding: 9px 14px; font-size: .86rem; }
  .p-facts { grid-template-columns: repeat(2, 1fr); }
  .p-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .p-facts div:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
  /* One column: each step shows its own screen under it, instead of a frame that would have scrolled away above */
  .how-stage { display: none; }
  .how-steps li { border-bottom: 1px solid var(--line-2); }
  .how-step, .how-step:hover { opacity: 1; border-bottom: 0; padding-bottom: 16px; cursor: default; }
  .how-step::before { content: none; }
  .how-step.on > * { transform: none; }
  .how-step.on .how-ic { background: none; color: inherit; border-color: var(--line-2); }
  .how-inline { display: grid; place-items: center; margin-bottom: 26px; padding: clamp(16px, 4vw, 28px); border-radius: 24px; background: radial-gradient(55% 60% at 70% 25%, rgba(255, 255, 255, .6), transparent 70%), var(--tint); }
  .how-inline img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 60px -30px rgba(30, 15, 5, .5); }
  .how.is-phone .how-inline img { width: min(62%, 260px); border-radius: 20px; }
  .cfile { grid-template-columns: 1fr 1fr; }
  .cfile-stack { grid-column: 1 / -1; padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--line-2); }
  .sec-head-split > .build-lede { justify-self: start; }
  .flow-line { left: 18px; right: auto; top: 14px; bottom: 14px; width: 1px; height: auto; }
  .flow-line i { background: linear-gradient(180deg, transparent, var(--acc)) center bottom / 100% 140px no-repeat; transform: translateY(-100%); animation-name: flow-run-y; }
  .flow-nodes { grid-template-columns: 1fr; gap: 28px; }
  .flow-node { padding-left: 58px; }
  .flow-k { position: absolute; left: 0; top: 0; margin: 0; }
  .hood, .lessons { grid-template-columns: 1fr; }
  .dec { grid-template-columns: 56px minmax(0, 1fr); }
  .dec-cols { grid-column: 2; }
  .ba { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The next product's screen sits under its name rather than beside it, still on the right as on wide screens */
  .next { min-height: 0; }
  .next-in { padding-bottom: 36px; }
  .next-shot { position: relative; right: auto; top: auto; display: block; width: min(80%, 460px); margin: 0 calc(var(--gutter) + 4px) 56px auto; transform: rotate(3deg); }
  .next-shot.portrait { width: min(46%, 230px); }
  .next:hover .next-shot { transform: rotate(-1deg) scale(1.02); }
  .journal-side .chip-col { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .journal-side .chip-btn { flex: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-meta span:last-child { display: none; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-strip { flex-direction: column; align-items: flex-start; gap: 12px; }
  .marquee { width: 100%; }
  .cap { display: none; }
  .hero-title { font-size: clamp(3rem, 13.4vw, 7rem); }
  .manifesto-text { text-indent: 0; }
  .manifesto-foot { grid-template-columns: 1fr; }
  .work-head { grid-template-columns: 1fr; }
  .work-hint { display: none; }
  .panel { min-height: 520px; padding: 20px; border-radius: 24px; }
  .panel-facts dd { font-size: .86rem; }
  .panel-end { width: 80vw; }
  .panel-end-go { width: 72px; height: 72px; }
  .stats > div { padding-right: 12px; }
  .stats dd { font-size: 3.8rem; }
  .stats dt { font-size: .9rem; }
  .blip { font-size: .74rem; padding: 6px 10px 6px 8px; }
  .kb { border-radius: 24px; }
  .kb-row, .kb-row:nth-child(4), .kb-row:last-child { grid-template-columns: repeat(2, 1fr); }
  .key-enter { grid-column: 1 / -1; }
  .key-cap { min-height: 62px; border-radius: 13px; }
  .resume dl { grid-template-columns: 1fr; }
  .resume dl > div { grid-template-columns: 88px 1fr; }
  .reel-k .ic { display: none; }
  .spin-badge { right: -6px; top: -20px; width: 96px; }
  .toybox-hint { display: none; }
  .reel-veil { background: radial-gradient(95% 40% at 50% 50%, rgba(242, 239, 233, .97), rgba(242, 239, 233, .88) 55%, rgba(242, 239, 233, .2) 100%), linear-gradient(180deg, var(--paper), rgba(242, 239, 233, 0) 12%, rgba(242, 239, 233, 0) 88%, var(--paper)); }
  .bento { grid-template-columns: 1fr; grid-template-areas: "maker" "ship" "privacy" "commerce" "design" "care"; }
  .tile-design { flex-direction: column; }
  .frame { min-height: 140px; }
  .q-row, .field-row, .next-more, .feat-grid, .cards { grid-template-columns: 1fr; }
  .feat { min-height: 0; }
  .feat h3 { margin-top: 28px; }
  .card:nth-child(even) { margin-top: 0; }
  .journey li { grid-template-columns: 1fr; gap: 4px; }
  .entry { grid-template-columns: 1fr; gap: 8px; }
  .entry-date { padding-top: 0; }
  .planner { padding: 20px 16px; border-radius: 26px; }
  .mode span { height: 44px; padding: 0 8px; font-size: .88rem; }
  .needs { grid-template-columns: repeat(2, 1fr); }
  .need, .need:nth-child(n + 4) { grid-column: auto; }
  .need:last-child { grid-column: 1 / -1; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
  .subnav-id, .subnav-cta { display: none; }
  .lightbox { padding: 72px 12px 24px; }
  .lb-nav { top: auto; bottom: 20px; transform: none; }
  .mini-stats { gap: 24px; }
  .toolbar .chip-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); width: calc(100% + 2 * var(--gutter)); }
  .toolbar .chip-btn { flex: none; }
  .search-box { width: 100%; }
  .faq-a { padding-right: 0; }
  .cfile { grid-template-columns: 1fr; }
  .cfile > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .dec { grid-template-columns: 1fr; }
  .dec-cols { grid-column: 1; grid-template-columns: 1fr; }
  .dec-cols > div:last-child:not(:first-child) { padding-left: 16px; }
  .bug dl > div { grid-template-columns: 1fr; gap: 6px; }
  .code-body pre { font-size: .76rem; }
  .rail { width: 100%; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); grid-auto-columns: 78vw; }
}
