/* Pipeworks v6 "Nightshift". One night at your clinic, told by scrolling.
   The page starts at 11:47 pm (forest night) and the scrollytelling chapter carries it to morning (light).
   Shape rule: pills for buttons and chips, 28px cards, 18px inner panels, 12px small UI. One accent: mint. */
@font-face { font-family: "Bricolage"; src: url(assets/fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(assets/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Garamond"; src: url(assets/fonts/garamond-italic.woff2) format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }

:root {
  /* day */
  --day: #f3f6f3; --surface: #fdfefd; --surface-2: #e7eee9; --ink: #0b1411; --text-2: #4f5d56; --line: #d5ded7;
  /* night */
  --night: #06110d; --night-2: #0c1d17; --on-night: #e9f1ec; --on-night-2: #93aa9e; --night-line: rgba(233, 241, 236, .1);
  /* brand */
  --forest: #0e3a2c; --forest-2: #0a2a20; --accent: #1fbf7a; --accent-hi: #3ddc97; --accent-ink: #0b7a4b; --accent-soft: #dbf2e6; --on-accent: #062419;
  --display: "Bricolage", "Instrument Sans", system-ui, sans-serif; --font: "Instrument Sans", system-ui, sans-serif; --serif: "Garamond", Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Instrument Sans", sans-serif;
  --g: clamp(20px, 5vw, 56px); --max: 1200px; --nav: 68px;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 30px 60px -36px rgba(14, 58, 44, .4);
  --shadow-sm: 0 1px 0 rgba(14, 58, 44, .05), 0 12px 26px -20px rgba(14, 58, 44, .4);
  --z-nav: 50; --z-menu: 60; --z-grain: 80; --z-skip: 100;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --day: #0a1310; --surface: #111c17; --surface-2: #16241e; --ink: #e9f0eb; --text-2: #98aaa0; --line: #22332b; --accent-ink: #3ddc97; --accent-soft: #12352a; --shadow: 0 30px 60px -30px rgba(0, 0, 0, .65); --shadow-sm: 0 1px 0 rgba(255, 255, 255, .03), 0 12px 26px -20px rgba(0, 0, 0, .7); color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 16px); }
body { margin: 0; background: var(--day); color: var(--ink); font: 400 1.0625rem/1.58 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::after { content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .5; mix-blend-mode: overlay; 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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(31, 191, 122, .3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; z-index: var(--z-skip); left: 12px; top: -60px; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: calc(var(--max) + 2 * var(--g)); margin: 0 auto; padding-left: var(--g); padding-right: var(--g); }

/* Type */
h1, h2, .display { font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 96; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.03; letter-spacing: -0.032em; }
h2 .soft { color: var(--text-2); }
.night h2 .soft { color: var(--on-night-2); }
h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 1.9vw, 1.55rem); line-height: 1.15; letter-spacing: -0.02em; font-variation-settings: "opsz" 32; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--text-2); max-width: 32em; text-wrap: pretty; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 32px -14px rgba(31, 191, 122, .7); transition: transform 160ms var(--ease), box-shadow 300ms var(--ease); touch-action: manipulation; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .4) 50%, transparent 65%); transform: translateX(-120%); }
@media (hover: hover) { .btn:hover::after { transform: translateX(120%); transition: transform 800ms var(--ease); } .btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 18px 40px -12px rgba(31, 191, 122, .85); } }
.btn:active { transform: scale(.97); transition-duration: 60ms; }
.btn svg { width: 16px; height: 16px; transition: transform 300ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-forest { background: var(--forest); color: var(--on-night); box-shadow: 0 14px 30px -16px rgba(14, 58, 44, .8); }
.btn-glass { background: rgba(255, 255, 255, .07); color: var(--on-night); box-shadow: inset 0 0 0 1px var(--night-line); }
.btn-glass:hover { background: rgba(255, 255, 255, .11); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost::after { display: none; }
.btn-s { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.link svg { width: 15px; height: 15px; transition: transform 300ms var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 650; font-size: 1.375rem; letter-spacing: -0.035em; font-variation-settings: "opsz" 48; }
.logo svg { width: 30px; height: 30px; flex: none; }
.mk-p { stroke: currentColor; }
.mk-d { fill: var(--mk-dot, var(--accent)); }

/* Nav: takes the tone of what is under it */
.nav { position: fixed; inset: 0 0 auto; z-index: var(--z-nav); color: var(--on-night); transition: background-color 400ms var(--ease), color 400ms var(--ease), box-shadow 400ms var(--ease); }
.nav.scrolled { background: rgba(6, 17, 13, .66); -webkit-backdrop-filter: saturate(150%) blur(18px); backdrop-filter: saturate(150%) blur(18px); box-shadow: 0 1px 0 var(--night-line); }
.nav[data-tone="day"] { color: var(--ink); }
.nav[data-tone="day"].scrolled { background: color-mix(in srgb, var(--day) 80%, transparent); box-shadow: 0 1px 0 var(--line); }
.nav-in { max-width: calc(var(--max) + 2 * var(--g)); height: var(--nav); margin: 0 auto; padding: 0 var(--g); display: flex; align-items: center; gap: 30px; }
.nav-in .logo { margin-right: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { position: relative; font-size: .9375rem; font-weight: 500; text-decoration: none; opacity: .72; padding: 10px 0; transition: opacity 200ms; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; }
.nav-links a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }
.burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 350ms var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; z-index: var(--z-menu); top: var(--nav); left: 0; right: 0; height: calc(100dvh - var(--nav)); padding: 20px var(--g) calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; background: var(--night); color: var(--on-night); }
.menu[hidden] { display: none; }
.menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--night-line); font-family: var(--display); font-size: clamp(1.9rem, 8vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
.menu .btn { margin-top: auto; width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- Night ---------- */
.night { position: relative; background: var(--night); color: var(--on-night); }
.night .lede { color: var(--on-night-2); }
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(10px); }
.aurora i:nth-child(1) { width: 70vmax; aspect-ratio: 1; right: -22vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(61, 220, 151, .2), transparent 70%); animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 55vmax; aspect-ratio: 1; left: -20vmax; bottom: -28vmax; background: radial-gradient(closest-side, rgba(70, 110, 200, .14), transparent 70%); animation: drift 28s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(-6vmax, 4vmax, 0) scale(1.08); } }

/* Hero: the headline arrives as the reply */
.hero { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav) + 32px) 0 72px; }
.hero .wrap { position: relative; width: 100%; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--night-line); font-size: .875rem; font-weight: 500; color: var(--on-night-2); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 0 4px rgba(61, 220, 151, .16); animation: live 2.4s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 8px rgba(61, 220, 151, .03); } }
.convo { display: grid; gap: 16px; margin-top: 36px; max-width: 1000px; }
.ask { justify-self: start; display: flex; align-items: flex-end; gap: 12px; max-width: 100%; }
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #d1e4dd; color: #0b4d3b; font-weight: 700; font-size: .875rem; }
.ask p { padding: 14px 20px; border-radius: 22px 22px 22px 6px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--night-line); font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 500; }
.stamp { display: block; margin-top: 6px; font-size: .75rem; color: var(--on-night-2); }
.reply { justify-self: end; display: grid; justify-items: end; gap: 10px; max-width: 100%; }
.typing { display: flex; gap: 6px; padding: 18px 22px; border-radius: 22px 22px 6px 22px; background: rgba(61, 220, 151, .14); }
.typing i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-hi); animation: typ 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typ { 0%, 70%, 100% { opacity: .3; transform: none; } 35% { opacity: 1; transform: translateY(-4px); } }
.big { padding: clamp(26px, 3.6vw, 44px) clamp(28px, 4vw, 52px); border-radius: 40px 40px 10px 40px; background: linear-gradient(160deg, #2bd08a, var(--accent) 55%, #17a96a); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 40px 90px -40px rgba(31, 191, 122, .75); }
.big h1 { font-size: clamp(2.6rem, 6.6vw, 6rem); line-height: .98; letter-spacing: -0.045em; max-width: 11.5em; }
.seen { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--on-night-2); }
.seen b { color: var(--accent-hi); font-weight: 600; font-variant-numeric: tabular-nums; }
.js .typing, .js .big, .js .seen { display: none; }
.js .typing.on, .js .seen.on { display: flex; }
.js .big.on { display: block; animation: pop 800ms cubic-bezier(.3, 1.3, .5, 1) both; transform-origin: 100% 100%; }
.js .seen.on { animation: fade 500ms 450ms both; }
@keyframes pop { from { opacity: 0; transform: scale(.86) translateY(16px); } }
@keyframes fade { from { opacity: 0; } }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; margin-top: clamp(40px, 6vw, 64px); max-width: 1000px; }
.hero-foot p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--on-night-2); max-width: 30em; }
.hero-foot .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.cue { position: absolute; left: 50%; bottom: 24px; width: 1px; height: 48px; background: linear-gradient(var(--on-night-2), transparent); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Scrollytelling: one night at your clinic ---------- */
.story { position: relative; height: 620vh; background: var(--night); color: var(--on-night); --p: 0; --dawn: 0; }
.story::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, var(--night) 45%, var(--day) 100%); opacity: var(--dawn); pointer-events: none; }
.pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky .moon { position: absolute; right: 8%; top: 14%; width: 70vmax; aspect-ratio: 1; transform: translate(30%, -40%); border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 110, 200, calc(.2 * (1 - var(--dawn)))), transparent 70%); }
.sky .sun { position: absolute; left: 50%; bottom: -40vmax; width: 110vmax; aspect-ratio: 1; transform: translateX(-50%) translateY(calc((1 - var(--dawn)) * 30vmax)); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 130, calc(.42 * var(--dawn))), rgba(61, 220, 151, calc(.12 * var(--dawn))) 45%, transparent 70%); }
.sky .day { position: absolute; inset: 0; background: var(--day); opacity: calc((var(--dawn) - .55) * 2.4); }
.stage { position: relative; height: 100%; max-width: calc(var(--max) + 2 * var(--g)); margin: 0 auto; padding: var(--nav) var(--g) 0; display: grid; grid-template-columns: minmax(0, 1.1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story.day-on { color: var(--ink); }
.chapter { font-size: .9375rem; font-weight: 600; color: var(--accent-hi); }
.story.day-on .chapter { color: var(--accent-ink); }
.clock { display: flex; align-items: baseline; gap: .12em; margin-top: 10px; font-family: var(--display); font-size: clamp(4.4rem, 11vw, 10rem); font-weight: 600; line-height: .9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 96; }
.clock small { font-size: .28em; letter-spacing: -0.01em; color: var(--on-night-2); font-weight: 500; }
.story.day-on .clock small { color: var(--text-2); }
.beats { display: grid; margin-top: clamp(18px, 3vh, 32px); }
.beat { grid-area: 1 / 1; opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 500ms var(--ease), transform 700ms var(--ease); }
.beat.on { opacity: 1; transform: none; }
.beat h3 { font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; font-variation-settings: "opsz" 96; max-width: 13em; }
.beat p { margin-top: 12px; max-width: 26em; color: var(--on-night-2); font-size: 1.0625rem; }
.story.day-on .beat p { color: var(--text-2); }
.rail { display: flex; align-items: center; gap: 12px; margin-top: clamp(24px, 4vh, 44px); font-size: .8125rem; color: var(--on-night-2); font-variant-numeric: tabular-nums; }
.story.day-on .rail { color: var(--text-2); }
.rail i { position: relative; width: clamp(140px, 20vw, 240px); height: 2px; border-radius: 2px; background: rgba(150, 170, 160, .3); overflow: hidden; }
.rail b { position: absolute; inset: 0; background: linear-gradient(90deg, #5b7bd6, #ffbe78 70%, var(--accent)); transform-origin: 0 50%; transform: scaleX(var(--p)); }

/* Device */
.device { position: relative; }
.iphone { position: relative; width: 19em; aspect-ratio: 71.5 / 147; border-radius: 3.3em; padding: .42em; background: #1c2421; box-shadow: inset 0 0 0 .09em #5e6a65, inset 0 0 0 .22em #121816, 0 3em 5em -2em rgba(0, 0, 0, .6); font-size: min(1.45vw, 1.9svh, 17px); }
.screen { position: relative; height: 100%; border-radius: 2.9em; overflow: hidden; background: #0b141a; isolation: isolate; font-family: var(--ui); text-align: left; }
.island { position: absolute; z-index: 9; top: .62em; left: 50%; width: 6.4em; height: 1.9em; margin-left: -3.2em; border-radius: 1em; background: #000; }
.sb { position: relative; z-index: 3; height: 3.1em; display: flex; align-items: center; padding: .35em 2.2em 0; font-size: .95em; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.sb.ink { color: #0b1411; }
.wa-head { position: relative; z-index: 2; display: flex; align-items: center; gap: .6em; padding: 3.5em .9em .7em; margin-top: -3.1em; background: #1f2c34; color: #e9edef; }
.wa-av { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: #d1e4dd; color: #0b4d3b; font-weight: 700; font-size: .9em; }
.wa-head b { display: block; font-size: .95em; } .wa-head small { display: block; font-size: .75em; color: #8696a0; }
.thread { position: absolute; top: 6.5em; bottom: 3.6em; left: 0; right: 0; padding: .8em .75em; display: flex; flex-direction: column; justify-content: flex-end; gap: .45em; color: #e9edef; }
.b { max-width: 82%; padding: .45em .65em .32em; border-radius: .75em; font-size: .9em; line-height: 1.33; }
.b time { float: right; margin: .45em 0 -.2em .7em; font-size: .7em; opacity: .6; }
.b.me { align-self: flex-end; background: #005c4b; border-top-right-radius: .2em; }
.b.them { align-self: flex-start; background: #202c33; border-top-left-radius: .2em; }
.confirm { align-self: center; display: flex; align-items: center; gap: .6em; padding: .6em .9em .6em .6em; border-radius: .9em; background: #1f2c34; font-size: .85em; }
.confirm b { display: block; } .confirm small { color: #8696a0; }
.ok { width: 1.8em; height: 1.8em; border-radius: 50%; background: #00a884; position: relative; flex: none; }
.ok::after { content: ""; position: absolute; left: .64em; top: .4em; width: .42em; height: .78em; border: solid #fff; border-width: 0 .14em .14em 0; transform: rotate(45deg); }
.wa-input { position: absolute; left: 0; right: 0; bottom: 0; padding: .55em .8em 1.6em; background: #0b141a; }
.wa-input span { display: block; padding: .5em .9em; border-radius: 1.2em; background: #202c33; color: #8696a0; font-size: .88em; }
.st { opacity: 0; transform: translate3d(0, .6em, 0) scale(.96); transition: opacity 400ms ease, transform 600ms cubic-bezier(.3, 1.3, .5, 1); }
.st.on { opacity: 1; transform: none; }
.layer { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms var(--ease); }
.layer.on { opacity: 1; }
.lock { background: radial-gradient(120% 70% at 50% 0%, #17322a, #070e0b); color: #fff; display: flex; flex-direction: column; align-items: center; padding-top: 5em; }
.lock .t { font-size: 4.2em; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.lock .d { margin-top: .4em; font-size: .9em; opacity: .7; }
.lock .ntfs { width: 88%; display: grid; gap: .5em; margin-top: 2.4em; }
.lock .n { display: grid; grid-template-columns: auto 1fr; gap: .6em; align-items: center; padding: .7em .8em; border-radius: 1.1em; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: .82em; }
.lock .n i { width: 2.2em; height: 2.2em; border-radius: .6em; background: var(--accent); display: grid; place-items: center; }
.lock .n i svg { width: 1.1em; height: 1.1em; stroke: var(--on-accent); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lock .n b { display: block; } .lock .n span { opacity: .75; }
.cal { background: #fff; color: #1d1d1f; }
.cal-top { padding: .6em 1.2em .9em; border-bottom: 1px solid #e5e5ea; }
.cal-top small { display: block; font-size: .78em; color: #8e8e93; }
.cal-top b { display: block; font-size: 1.9em; font-weight: 700; letter-spacing: -.03em; }
.cal-list { padding: .5em .8em; }
.cal-list li { display: flex; gap: .8em; padding: .5em .3em; border-bottom: 1px solid #f2f2f7; font-size: .86em; }
.cal-list time { width: 2.6em; flex: none; color: #8e8e93; font-variant-numeric: tabular-nums; }
.cal-list span { flex: 1; padding: .35em .6em; border-radius: .5em; border-left: .22em solid #34c759; background: #eefaf1; font-weight: 600; }
.cal-list small { display: block; font-weight: 400; color: #6e6e73; font-size: .86em; }
.cal-list li.hl span { border-left-color: var(--accent); background: #d8f3e6; }
.timer[hidden] { display: none; }
.timer { position: absolute; left: -3.2em; bottom: 20%; display: flex; align-items: center; gap: .7em; padding: .7em 1.1em .7em .7em; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #0b1411; font: 600 .9rem/1.2 var(--ui); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.timer i { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: var(--accent); flex: none; }
.timer i svg { width: 1em; height: 1em; stroke: var(--on-accent); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.timer small { display: block; font-weight: 500; color: #52605a; font-size: .78rem; }
.timer b { font-variant-numeric: tabular-nums; }

/* ---------- Day ---------- */
.sec { padding-block: clamp(96px, 13vw, 168px); }
.sec.tight { padding-top: 0; }

/* Facts */
.facts { padding-block: clamp(24px, 4vw, 48px) clamp(56px, 7vw, 96px); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 28px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { display: block; font-family: var(--display); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact > span { display: block; margin-top: 8px; color: var(--text-2); font-size: .9375rem; }

/* Essay (editorial) */
.essay-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.essay h2 { position: sticky; top: calc(var(--nav) + 40px); align-self: start; }
.cols { columns: 2; column-gap: 44px; font-size: 1.125rem; line-height: 1.72; color: var(--text-2); }
.cols p + p { margin-top: 1em; }
.cols p:first-child::first-letter { float: left; font-family: var(--display); font-weight: 600; font-size: 4.9em; line-height: .82; margin: .06em .1em 0 0; color: var(--forest); }
.pull { margin-top: clamp(44px, 6vw, 72px); padding-top: 28px; border-top: 2px solid var(--ink); font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08; color: var(--forest); max-width: 17em; text-wrap: balance; }
@media (prefers-color-scheme: dark) { .cols p:first-child::first-letter, .pull { color: var(--accent-hi); } }

/* Tabs: three demos */
.tabs-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(44px, 6vw, 72px); }
.tabs { display: grid; gap: 10px; }
.tab { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; width: 100%; padding: 22px 24px; border-radius: 22px; text-align: left; transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.tab i { grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-style: normal; font-weight: 700; font-size: .875rem; color: var(--text-2); transition: background-color 300ms, color 300ms; }
.tab b { font-family: var(--display); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.025em; }
.tab span { color: var(--text-2); }
.tab[aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow-sm); }
.tab[aria-selected="true"] i { background: var(--accent); color: var(--on-accent); }
.screenbox { position: relative; min-height: 460px; padding: 28px; border-radius: var(--r-lg); background: radial-gradient(90% 70% at 80% 0%, rgba(61, 220, 151, .25), transparent 60%), linear-gradient(165deg, #124a38, var(--forest-2)); box-shadow: var(--shadow); overflow: hidden; }
.pane { display: grid; gap: 10px; align-content: end; min-height: 404px; font-family: var(--ui); }
.pane[hidden] { display: none; }
.cb { max-width: 84%; padding: 12px 16px; border-radius: 20px; font-size: .98rem; line-height: 1.45; animation: pop 600ms cubic-bezier(.3, 1.3, .5, 1) both; }
.cb.p { justify-self: start; background: rgba(255, 255, 255, .94); color: #0b1411; border-bottom-left-radius: 6px; }
.cb.u { justify-self: end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.cb:nth-child(2) { animation-delay: .3s; } .cb:nth-child(3) { animation-delay: .6s; } .cb:nth-child(4) { animation-delay: .9s; }
.cb[dir="rtl"] { text-align: right; }
.sysm { justify-self: center; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--on-night); font-size: .8125rem; font-weight: 600; animation: fade 500ms .5s both; }
.calcard { justify-self: center; width: min(320px, 100%); padding: 18px 20px; border-radius: 20px; background: #fff; color: #0b1411; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); animation: pop 600ms cubic-bezier(.3, 1.3, .5, 1) .3s both; }
.calcard small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--accent-ink); }
.calcard b { display: block; margin-top: 4px; font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.calcard p { color: #52605a; }

/* Bento with spotlight borders */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: minmax(250px, auto) minmax(250px, auto); gap: 16px; margin-top: clamp(44px, 6vw, 72px); }
.cell { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 500ms var(--ease), box-shadow 500ms var(--ease); }
.cell::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: radial-gradient(300px circle at var(--x, 50%) var(--y, 0%), var(--accent), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 300ms; pointer-events: none; }
@media (hover: hover) { .cell:hover::before { opacity: 1; } .cell:not(.cell-wide):hover { transform: translateY(-4px); box-shadow: var(--shadow); } }
.cell .tag { align-self: flex-start; margin-bottom: 20px; padding: 5px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); }
.cell p { margin-top: 8px; color: var(--text-2); max-width: 24em; text-wrap: pretty; }
.cell-xl { grid-row: span 2; background: radial-gradient(90% 60% at 90% 0%, rgba(61, 220, 151, .25), transparent 60%), linear-gradient(170deg, #124a38, var(--forest-2)); color: var(--on-night); }
.cell-xl p { color: var(--on-night-2); }
.cell-xl .tag { background: rgba(61, 220, 151, .16); color: #6fe8b1; }
.cell-mint { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 75%); }
.cell-dots { background-color: var(--surface); background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent) 1.2px, transparent 1.4px); background-size: 18px 18px; }
.cell-dots > * { position: relative; }
.cell-dots::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--surface) 45%, color-mix(in srgb, var(--surface) 30%, transparent)); }
.cell-dots > .tag, .cell-dots > h3, .cell-dots > p { z-index: 1; }
.scene { display: grid; gap: 8px; margin-top: auto; padding-top: 32px; font-family: var(--ui); font-size: 14px; }
.ntf { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .95); color: #0b1411; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .5); }
.ntf b { display: block; } .ntf p { color: #52605a; margin-top: 2px; } .ntf time { font-size: .75rem; color: #52605a; }
.app { width: 32px; height: 32px; border-radius: 9px; background: #25d366; position: relative; }
.app::after { content: ""; position: absolute; inset: 7px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5a9.5 9.5 0 0 0-8.2 14.3L2.5 21.5l4.8-1.3A9.5 9.5 0 1 0 12 2.5z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5a9.5 9.5 0 0 0-8.2 14.3L2.5 21.5l4.8-1.3A9.5 9.5 0 1 0 12 2.5z'/%3E%3C/svg%3E") center/contain no-repeat; }
.mini { max-width: 80%; padding: 8px 12px; border-radius: 16px; line-height: 1.35; }
.mini.me { justify-self: end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; font-weight: 600; min-width: 42px; text-align: center; }
.mini.them { justify-self: start; background: rgba(255, 255, 255, .12); color: var(--on-night); border-bottom-left-radius: 4px; }
.js .scene > * { opacity: 0; transform: translate3d(0, 12px, 0) scale(.97); transition: opacity 500ms ease, transform 700ms cubic-bezier(.34, 1.3, .64, 1); }
.js .play .scene > * { opacity: 1; transform: none; }
.scene > :nth-child(2) { transition-delay: 700ms; } .scene > :nth-child(3) { transition-delay: 1400ms; }
.cell-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; background: var(--ink); color: var(--day); }
.cell-wide p { color: color-mix(in srgb, var(--day) 70%, transparent); }

/* Rules */
.rules-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.rules .lede { margin-top: 22px; }
.rule-list { display: grid; gap: 18px; margin-top: 32px; }
.rule-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--text-2); }
.rule-list b { color: var(--ink); font-weight: 600; }
.tick { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.tick svg { width: 14px; height: 14px; stroke: var(--accent-ink); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.settings { order: -1; padding: 20px 20px 24px; border-radius: var(--r-lg); background: var(--surface-2); font-family: var(--ui); font-size: .9375rem; box-shadow: var(--shadow); }
.grp-h { margin: 14px 16px 6px; font-size: .75rem; letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); }
.grp { background: var(--surface); border-radius: var(--r-sm); }
.grp li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 6px 16px; }
.grp li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.grp b { font-weight: 400; color: var(--text-2); text-align: right; }
.grp-note { margin: 14px 16px 0; font-size: .8125rem; color: var(--text-2); }
.toggle { position: relative; width: 51px; height: 31px; border-radius: 999px; background: var(--line); flex: none; transition: background-color 250ms var(--ease); }
.toggle[aria-checked="true"] { background: var(--accent); }
.toggle i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15); transition: transform 380ms cubic-bezier(.3, 1.4, .5, 1); }
.toggle[aria-checked="true"] i { transform: translateX(20px); }

/* Setup timeline */
.line { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: clamp(48px, 7vw, 80px); padding-top: 36px; }
.line::before, .line::after { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--line); }
.line::after { background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1600ms var(--ease); }
.line.go::after { transform: scaleX(1); }
.line li { position: relative; }
.line li::before { content: ""; position: absolute; top: -36px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--day); box-shadow: inset 0 0 0 2px var(--line); transition: box-shadow 400ms, background-color 400ms; }
.line.go li::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.line.go li:nth-child(2)::before { transition-delay: 400ms; } .line.go li:nth-child(3)::before { transition-delay: 800ms; } .line.go li:nth-child(4)::before { transition-delay: 1200ms; }
.line b { display: block; font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 600; letter-spacing: -0.025em; }
.line p { margin-top: 8px; color: var(--text-2); max-width: 15em; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(44px, 6vw, 72px); }
.plan { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 500ms var(--ease), box-shadow 500ms var(--ease); }
@media (hover: hover) { .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); } }
.plan h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
.plan-line { margin-top: 10px; color: var(--text-2); }
.amount { margin-top: 26px; font-family: var(--display); font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.amount span { font-family: var(--font); font-size: .3em; font-weight: 500; letter-spacing: 0; color: var(--text-2); margin-left: 4px; }
.setup-fee { margin-top: 8px; color: var(--text-2); }
.inc { flex: 1; display: grid; align-content: start; gap: 12px; width: 100%; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.inc li { position: relative; padding-left: 30px; line-height: 1.45; }
.inc li::before { content: ""; position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); }
.inc li::after { content: ""; position: absolute; left: 7.5px; top: calc(.1em + 4.5px); width: 4px; height: 8px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan .btn { margin-top: 30px; }
.plan-rec { background: radial-gradient(80% 60% at 100% 0%, rgba(61, 220, 151, .22), transparent 60%), linear-gradient(170deg, #124a38, var(--forest-2)); color: var(--on-night); }
.plan-rec .plan-line, .plan-rec .setup-fee, .plan-rec .amount span { color: var(--on-night-2); }
.plan-rec .inc { border-top-color: rgba(255, 255, 255, .14); }
.plan-rec .inc li::before { background: rgba(61, 220, 151, .18); }
.plan-rec .inc li::after { border-color: #6fe8b1; }
.rec { position: absolute; top: clamp(28px, 4vw, 44px); right: clamp(28px, 4vw, 44px); padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .8125rem; font-weight: 700; }
.note { margin-top: 18px; color: var(--text-2); font-size: .9375rem; }
.founding { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; margin-top: 16px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--accent-soft); }
.founding h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.founding p { margin-top: 8px; color: var(--text-2); max-width: 36em; }
.seats { display: flex; gap: 6px; margin-top: 16px; }
.seats i { width: 26px; height: 6px; border-radius: 3px; background: var(--accent); }

/* FAQ as a chat */
.chatfaq { max-width: 820px; margin: clamp(40px, 6vw, 64px) auto 0; display: grid; gap: 14px; }
.faq .center { text-align: center; }
.faq .center .lede { margin: 18px auto 0; }
.q { justify-self: end; display: flex; align-items: center; gap: 14px; max-width: 92%; padding: 16px 22px; border-radius: 22px 22px 6px 22px; background: var(--surface); box-shadow: var(--shadow-sm); font-family: var(--display); font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 600; letter-spacing: -0.01em; text-align: left; transition: transform 250ms var(--ease), box-shadow 250ms; }
.q:hover { transform: translateX(-3px); box-shadow: var(--shadow); }
.q::after { content: ""; flex: none; width: 9px; height: 9px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform 350ms var(--ease); }
.q[aria-expanded="true"]::after { transform: rotate(225deg) translate(-2px, -2px); }
.a { justify-self: start; display: flex; gap: 12px; align-items: flex-end; max-width: 88%; }
.a[hidden] { display: none; }
.a .who { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--forest); color: var(--on-night); }
.a .who svg { width: 20px; height: 20px; --mk-dot: #3ddc97; }
.a p { padding: 14px 20px; border-radius: 22px 22px 22px 6px; background: var(--forest); color: var(--on-night); }
.a p a { color: #6fe8b1; font-weight: 600; }
.a:not([hidden]) { animation: pop 500ms cubic-bezier(.3, 1.3, .5, 1) both; transform-origin: 0 100%; }

/* Final */
.final { padding-block: 0 clamp(64px, 8vw, 104px); }
.final-card { position: relative; overflow: hidden; isolation: isolate; padding: clamp(64px, 10vw, 140px) clamp(28px, 6vw, 88px); border-radius: 36px; background: var(--night); color: var(--on-night); }
.final-card .aurora i:nth-child(1) { width: 60vmax; right: -16vmax; top: -34vmax; }
.final-card h2 .soft { color: var(--on-night-2); }
.final-card h2 { position: relative; max-width: 11em; font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.final-card p { position: relative; margin-top: 18px; max-width: 30em; color: var(--on-night-2); font-size: 1.125rem; }
.final-card .ctas { position: relative; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.final-mark { position: absolute; z-index: 0; right: -3%; bottom: -16%; width: min(44vw, 520px); color: rgba(255, 255, 255, .05); --mk-dot: rgba(61, 220, 151, .2); }

/* Footer */
.foot { padding-block: 0 36px; color: var(--text-2); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 48px; border-top: 1px solid var(--line); }
.foot-top .logo { color: var(--ink); }
.foot-top p { margin-top: 14px; max-width: 22em; font-size: .9375rem; }
.foot h4 { font-family: var(--font); font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.foot ul a { display: inline-block; padding: 6px 0; font-size: .9375rem; text-decoration: none; }
.foot ul a:hover { color: var(--ink); }
.foot-word { margin-top: clamp(40px, 6vw, 72px); font-family: var(--display); font-weight: 650; font-size: clamp(4rem, 18.5vw, 16.4rem); line-height: .8; letter-spacing: -0.055em; font-variation-settings: "opsz" 96; color: var(--ink); white-space: nowrap; overflow: hidden; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: .8125rem; }

/* Reveal */
.js .reveal { opacity: 0; }
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.words .wi { display: inline-block; }
.js .words .wi { opacity: 0; transform: translate3d(0, 100%, 0); }

/* Static mode (screenshots) and no-JS: the story becomes a readable sequence */
html:not(.js) .story { height: auto; }
html:not(.js) .story::before, html:not(.js) .sky { display: none; }
html:not(.js) .pin { position: relative; height: auto; }
html:not(.js) .stage { height: auto; padding-block: 96px; }
html:not(.js) .beats { gap: 28px; }
html:not(.js) .beat { grid-area: auto; opacity: 1; transform: none; }
html:not(.js) .clock, html:not(.js) .rail { display: none; }
html:not(.js) .layer[data-l="chat"] { opacity: 1; }
html:not(.js) .st { opacity: 1; transform: none; }
html:not(.js) .hero { min-height: 900px; }
html:not(.js) .cue { display: none; }
html.static .typing { display: none; }

/* Responsive */
@media (max-width: 1000px) {
  .essay-grid, .rules-grid, .tabs-wrap { grid-template-columns: 1fr; }
  .essay h2 { position: static; }
  .cols { columns: 1; }
  .settings { order: 0; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .cell-xl { grid-column: 1 / -1; grid-row: auto; }
  .line { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .line::before, .line::after { display: none; }
  .line li::before { top: -26px; }
  .facts-in { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { margin-top: 24px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; justify-items: center; align-content: start; text-align: center; gap: 18px; padding-top: calc(var(--nav) + 16px); }
  .clock { justify-content: center; font-size: clamp(3.6rem, 16vw, 5rem); }
  .beat h3, .beat p { margin-left: auto; margin-right: auto; }
  .rail { display: none; }
  .iphone { font-size: min(3.2vw, 1.25svh, 13px); }
  .timer { left: -.6em; bottom: 14%; font-size: .78rem; }
  .hero-foot { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --nav: 60px; }
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-in { gap: 12px; }
  .plans, .founding { grid-template-columns: 1fr; }
  .ask p { font-size: 1rem; }
}
@media (max-width: 560px) {
  .bento, .line { grid-template-columns: 1fr; }
  .facts-in { grid-template-columns: 1fr 1fr; }
  .big { border-radius: 28px 28px 8px 28px; }
  .q, .a { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora i, .status i, .typing i, .cue { animation: none; }
  .beat, .st, .layer, .btn, .cell, .plan, .toggle i, .line::after { transition: none !important; }
  .cb, .calcard, .sysm, .a:not([hidden]), .js .big.on, .js .seen.on { animation: none !important; }
  .js .typing { display: none !important; } .js .big, .js .seen { display: block !important; } .js .seen { display: flex !important; }
  .cell:hover, .plan:hover, .q:hover { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav[data-tone="day"].scrolled { background: var(--day); }
}

/* ================= v6.1: ten moments and a richer motion layer ================= */
.story { height: 1050vh; }

/* Night sky: two star fields that twinkle out of phase and fade at dawn */
.sky .stars { position: absolute; inset: -10% 0 30%; opacity: calc(.9 * (1 - var(--dawn))); background-image:
  radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%),
  radial-gradient(1.4px 1.4px at 46% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 30%, #fff 50%, transparent 51%),
  radial-gradient(1.2px 1.2px at 78% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 36%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 8% 58%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 36% 66%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 56% 52%, #fff 50%, transparent 51%), radial-gradient(1.1px 1.1px at 94% 62%, #fff 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate; transform: translateY(calc(var(--p) * -6%)); }
.sky .stars.s2 { background-position: 37px 53px; opacity: calc(.6 * (1 - var(--dawn))); animation-duration: 7s; animation-delay: -3s; transform: translateY(calc(var(--p) * -12%)); }
@keyframes twinkle { from { filter: brightness(.55); } to { filter: brightness(1.15); } }

/* Hero: questions drift up behind the conversation */
.drift { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.drift span { position: absolute; left: var(--x); bottom: -60px; padding: 9px 16px; border-radius: 18px 18px 18px 5px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(233, 241, 236, .06); color: rgba(233, 241, 236, .28); font-size: .875rem; white-space: nowrap; animation: rise var(--t) linear var(--d) infinite; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(-115svh); opacity: 0; } }

/* Beats: channel label, words that rise in, and a timeline with a dot per moment */
.beat .ch { display: inline-flex; margin: 0 0 12px; padding: 4px 11px; border-radius: 999px; background: rgba(61, 220, 151, .12); color: var(--accent-hi); font-size: .8125rem; font-weight: 600; }
.story.day-on .beat .ch { background: var(--accent-soft); color: var(--accent-ink); }
.beat h3 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.beat h3 .wi { display: inline-block; transform: translateY(105%); }
.beat.on h3 .wi { animation: wordup 700ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes wordup { to { transform: none; } }
.beat > p:last-child { transition: opacity 600ms var(--ease) 200ms; }
.beat:not(.on) > p:last-child { opacity: 0; }
.rail i { overflow: visible; }
.rail em { position: absolute; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: rgba(150, 170, 160, .5); transition: background-color 300ms, transform 300ms; }
.rail em.on { background: var(--accent-hi); transform: scale(1.35); }
.story.day-on .rail em.on { background: var(--accent); }

/* Phone screens slide between moments instead of only fading */
.layer { transform: translate3d(0, 6%, 0) scale(.97); transition: opacity 550ms var(--ease), transform 750ms cubic-bezier(.2, .8, .2, 1); }
.layer.past { transform: translate3d(0, -6%, 0) scale(.97); }
.layer.on { transform: none; }
.layer .thread > * { opacity: 0; transform: translate3d(0, .7em, 0) scale(.96); transition: opacity 400ms ease, transform 600ms cubic-bezier(.3, 1.3, .5, 1); }
.layer.on .thread > * { opacity: 1; transform: none; }
.layer.on .thread > :nth-child(2) { transition-delay: 350ms; } .layer.on .thread > :nth-child(3) { transition-delay: 700ms; } .layer.on .thread > :nth-child(4) { transition-delay: 1050ms; }
.layer[data-l="chat"] .thread > * { transition-delay: 0ms; }
.layer[data-l="chat"] .thread > .st { opacity: 0; transform: translate3d(0, .6em, 0) scale(.96); }
.layer[data-l="chat"] .thread > .st.on { opacity: 1; transform: none; }
.lock .n { opacity: 0; transform: translate3d(0, -.6em, 0); transition: opacity 400ms ease, transform 600ms cubic-bezier(.3, 1.3, .5, 1); }
.lock.on .n { opacity: 1; transform: none; }
.lock.on .n:nth-child(2) { transition-delay: 300ms; } .lock.on .n:nth-child(3) { transition-delay: 600ms; }
.cal-list li { opacity: 0; transform: translate3d(1em, 0, 0); transition: opacity 400ms ease, transform 600ms var(--ease); }
.cal.on .cal-list li { opacity: 1; transform: none; }
.cal.on .cal-list li:nth-child(2) { transition-delay: 80ms; } .cal.on .cal-list li:nth-child(3) { transition-delay: 160ms; } .cal.on .cal-list li:nth-child(4) { transition-delay: 240ms; } .cal.on .cal-list li:nth-child(5) { transition-delay: 320ms; } .cal.on .cal-list li:nth-child(6) { transition-delay: 400ms; }

/* Instagram screen */
.ig { background: #fff; color: #000; }
.ig-head, .gm-head { display: flex; align-items: center; gap: .6em; padding: 3.5em .9em .7em; margin-top: -3.1em; border-bottom: 1px solid #efefef; }
.ig-head b, .gm-head b { display: block; font-size: .95em; } .ig-head small, .gm-head small { display: block; font-size: .72em; color: #737373; }
.ig-av { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: #fde8e0; color: #b23b14; font-weight: 700; font-size: .9em; box-shadow: 0 0 0 .14em #fff, 0 0 0 .26em #e1306c; }
.ig .thread, .gm .thread { color: #000; }
.ib { max-width: 80%; padding: .55em .9em; border-radius: 1.3em; font-size: .9em; line-height: 1.33; }
.ib.me { align-self: flex-end; background: #7638fa; color: #fff; }
.ib.them { align-self: flex-start; background: #efefef; }
.ig-input { position: absolute; left: 0; right: 0; bottom: 0; padding: .55em .8em 1.6em; background: #fff; }
.ig-input span { display: block; padding: .55em 1em; border-radius: 1.3em; box-shadow: inset 0 0 0 1px #dbdbdb; color: #737373; font-size: .88em; }
/* Google Maps screen */
.gm { background: #fff; color: #202124; }
.gm-av { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: #e6f4ea; color: #137333; font-weight: 700; font-size: .9em; }
.gb { max-width: 82%; padding: .5em .85em; border-radius: 1.1em; font-size: .9em; line-height: 1.33; }
.gb.me { align-self: flex-end; background: #0b57d0; color: #fff; border-bottom-right-radius: .3em; }
.gb.them { align-self: flex-start; background: #f1f3f4; border-bottom-left-radius: .3em; }
.gm-card { align-self: stretch; margin-top: .3em; padding: .8em 1em; border-radius: .9em; box-shadow: inset 0 0 0 1px #dadce0; font-size: .85em; }
.gm-card b { display: block; color: #137333; } .gm-card span { color: #5f6368; }
/* Reminders, handover */
.sent { align-self: center; padding: .6em 1em; border-radius: .9em; background: #1f2c34; font-size: .82em; text-align: center; }
.sent b { display: block; color: #3ddc97; } .sent span { color: #8696a0; }
.sysb { align-self: center; padding: .3em .8em; border-radius: 1em; background: #1f2c34; color: #b8c4cc; font-size: .78em; }
/* Morning summary */
.sum { background: radial-gradient(90% 60% at 80% 0%, #d8f3e6, #fff 70%); color: #0b1411; }
.sum-in { padding: 1.6em 1.5em; }
.sum-k { font-size: .82em; font-weight: 600; color: #0b7a4b; }
.sum-t { margin-top: .3em; font-family: var(--display); font-size: 2.1em; font-weight: 600; line-height: 1.02; letter-spacing: -.035em; }
.sum-l { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; margin-top: 1.4em; }
.sum-l li { padding: .9em; border-radius: 1em; background: #fff; box-shadow: 0 .1em 0 rgba(14, 58, 44, .06), 0 .8em 1.6em -1.2em rgba(14, 58, 44, .4); opacity: 0; transform: scale(.92); transition: opacity 400ms ease, transform 600ms cubic-bezier(.3, 1.4, .5, 1); }
.sum.on .sum-l li { opacity: 1; transform: none; }
.sum.on .sum-l li:nth-child(2) { transition-delay: 120ms; } .sum.on .sum-l li:nth-child(3) { transition-delay: 240ms; } .sum.on .sum-l li:nth-child(4) { transition-delay: 360ms; }
.sum-l b { display: block; font-family: var(--display); font-size: 2em; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: #0e3a2c; }
.sum-l span { display: block; margin-top: .3em; font-size: .78em; color: #52605a; }
.sum-n { margin-top: 1.2em; font-size: .72em; color: #8a958f; }

/* Channel strip (the page's one marquee) */
.strip { overflow: hidden; padding-block: 8px clamp(56px, 7vw, 96px); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.strip-in { display: flex; gap: 14px; width: max-content; animation: strip 40s linear infinite; }
.strip span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 600; white-space: nowrap; }
.strip img { width: 22px; height: 22px; }
@keyframes strip { to { transform: translateX(calc(-50% - 7px)); } }
@media (hover: hover) { .strip:hover .strip-in { animation-play-state: paused; } }

/* The pull quote lights up word by word as it scrolls through the viewport */
.pull.lit .lw { color: color-mix(in srgb, currentColor 22%, transparent); transition: color 300ms ease; }
.pull.lit .lw.on { color: inherit; }

/* Magnetic primary buttons (pointer devices only) */
.btn.mag { transition: transform 400ms cubic-bezier(.3, 1.4, .5, 1), box-shadow 300ms var(--ease); }

html:not(.js) .layer { transform: none; }
html:not(.js) .layer .thread > *, html:not(.js) .cal-list li, html:not(.js) .lock .n, html:not(.js) .sum-l li { opacity: 1; transform: none; }
html:not(.js) .beat:not(.on) > p:last-child { opacity: 1; }
html:not(.js) .beat h3 .wi { transform: none; }
html:not(.js) .beat .ch { display: none; }
@media (max-width: 860px) { .beat .ch { margin-bottom: 8px; } .drift span { font-size: .78rem; } }
@media (prefers-reduced-motion: reduce) {
  .sky .stars, .drift span, .strip-in { animation: none !important; }
  .drift { display: none; }
  .beat h3 .wi { transform: none; animation: none !important; }
  .layer, .layer .thread > *, .cal-list li, .lock .n, .sum-l li { transition: none !important; }
}

/* Inner pages */
.hero-short { min-height: 88svh; }
.founding-first { margin-top: clamp(44px, 6vw, 72px); }
.founding p a { color: var(--accent-ink); font-weight: 600; }
.essay .rule-list { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips li { padding: 10px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: .9375rem; font-weight: 500; }
html:not(.js) .hero-short { min-height: 760px; }
