/* ==========================================================================
   Likya Labs — "Horizon"
   One evening on the Lycian coast. The home page begins at golden hour and
   ends at night; every app is a chapter of that evening, tinted by its own
   world. The horizon is the only ornament.

   Per-app colour tokens are generated by build.mjs from content/apps/*.json
   and appended to this file as .t-<slug> classes:
     --c  base (the app's night)     --a  accent (text-safe on --c)
     --g  glow (the app's light)     --sw swatch dot
     --h  horizon light              --n  next chapter's --c (home only)

   Contents
     1 Fonts   2 Tokens   3 Base   4 Primitives   5 Navigation
     6 Horizon scene   7 Home hero   8 Intro   9 Chapters   10 Screens
     11 Studio   12 Contact   13 Footer   14 App page   15 Documents
     16 Not found   17 Reveals   18 Responsive   19 Reduced motion
   ========================================================================== */

/* 1 Fonts ------------------------------------------------------------------
   Cormorant Garamond 300 (+ italic) for display only; Hanken Grotesk variable
   for everything at reading size. Latin + latin-ext (Turkish ş ğ İ). */
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/cormorant-garamond-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 300; font-display: swap; src: url(/fonts/cormorant-garamond-latin-300-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 300; font-display: swap; src: url(/fonts/cormorant-garamond-latin-ext-300-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/hanken-grotesk-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/hanken-grotesk-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* 2 Tokens ---------------------------------------------------------------- */
:root {
  --night: #0a1019;
  --night-2: #0a0e1c;
  --lime: #f1eadf;                       /* limestone */
  --lime-2: rgba(241, 234, 223, .8);
  --lime-3: rgba(241, 234, 223, .64);
  --line: rgba(241, 234, 223, .16);
  --line-2: rgba(241, 234, 223, .32);
  --ink: #15110d;
  --a: #efc995;                          /* accent; re-tinted per app */
  --serif: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Hanken", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --nav: 68px;
  --squircle: 22.5%;
  color-scheme: dark;
}

/* 3 Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--night); color: var(--lime);
  font: 400 1rem/1.62 var(--sans); letter-spacing: .005em;
  font-feature-settings: "lnum" 1;      /* lining figures everywhere; survives the font shorthand */
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--a); color: var(--ink); }
:focus-visible { outline: 2px solid var(--a); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }

/* 4 Primitives ------------------------------------------------------------ */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.label { font: 500 .75rem/1.35 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--lime-2); }
em { font-family: var(--serif); font-style: italic; font-weight: 300; }

/* Text link: a hairline that draws from the left on hover */
.link { position: relative; display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 500; font-size: .95rem; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform-origin: right; transform: scaleX(.25); opacity: .6; transition: transform .7s var(--ease), opacity .7s; }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; opacity: 1; }
.arrow { display: inline-block; transition: transform .7s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

/* Outline pill (used for "App Store ↗" in chapters and secondary actions) */
.btn {
  display: inline-flex; align-items: center; gap: .6em; min-height: 46px; padding: 0 20px 0 16px;
  border-radius: 999px; border: 1px solid rgba(241, 234, 223, .42); font-weight: 500; font-size: .95rem;
  background: rgba(241, 234, 223, .04); transition: background .6s var(--ease), color .6s var(--ease), border-color .6s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover, .btn:focus-visible { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px dashed var(--line-2); font: 500 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--a); }

/* Apple's official badge (app pages) */
.badge { display: inline-block; border-radius: 9px; transition: transform .6s var(--ease), box-shadow .6s; }
.badge img { width: 156px; height: auto; }
.badge:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .8); }

.icon { border-radius: var(--squircle); box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .09); }

/* 5 Navigation ------------------------------------------------------------ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav); display: flex; align-items: center; border-bottom: 1px solid transparent; transition: background .8s var(--ease), border-color .8s; }
.nav.solid { background: rgba(9, 14, 22, .62); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: rgba(241, 234, 223, .08); }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.mark { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 44px; }
.mark svg { width: 26px; height: 26px; color: var(--lime); flex: none; }
.mark b { font: 300 1.55rem/1 var(--serif); letter-spacing: .01em; }
.mark span { font: 600 .66rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--lime-2); transform: translateY(1px); }
.nav ul { display: flex; gap: clamp(18px, 2.4vw, 34px); justify-self: end; font-size: .9rem; font-weight: 500; }
.nav ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--lime-2); transition: color .4s; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--lime); }
/* "Now": the evening's timecode, following the chapter in view (JS only) */
.now { display: inline-flex; align-items: center; gap: 12px; font: 500 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--lime-2); white-space: nowrap; }
.now i { width: 7px; height: 7px; border-radius: 50%; background: var(--a); box-shadow: 0 0 12px var(--a); transition: background 1.2s, box-shadow 1.2s; }
.now .t { font: 500 .8rem/1 var(--sans); letter-spacing: .06em; color: var(--lime); font-variant-numeric: tabular-nums; }
.now span { transition: opacity .5s; }
.now.swap span { opacity: 0; }

/* 6 Horizon scene ----------------------------------------------------------
   Sky, sun and sea are pure CSS, complete without JS. --hz is the horizon
   height, --sx the sun's x. site.js adds glints on the water (canvas). */
.scene { --hz: 63%; --sx: 64%; --p: 0; position: relative; isolation: isolate; overflow: hidden; }
.sky, .sea, .glints { position: absolute; left: 0; right: 0; }
.sky { top: 0; height: var(--hz); overflow: hidden; z-index: -3; }
.sky::after { content: ""; position: absolute; inset: 0; }
.sun { position: absolute; left: var(--sx); top: var(--hz); aspect-ratio: 1; border-radius: 50%; z-index: -2; translate: -50% -58%; clip-path: inset(-200% -200% 50.5% -200%); }
.sea { top: var(--hz); bottom: 0; z-index: -3; }
.sea::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.sea::after { /* still shimmer for no-JS and reduced motion */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(180deg, transparent 0 6px, rgba(255, 230, 196, .08) 6px 7px);
  -webkit-mask: radial-gradient(18% 90% at var(--sx) 0, #000, transparent 75%); mask: radial-gradient(18% 90% at var(--sx) 0, #000, transparent 75%);
}
.has-glints .sea::after { display: none; }
.glints { top: 0; bottom: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Dusk (home hero) */
/* the warm band stays in the bottom fifth of the sky, below the headline */
.scene--dusk .sky { background: linear-gradient(180deg, #0d1626 0%, #1b2640 30%, #34344f 56%, #5e4560 74%, #a9685f 87%, #e2a274 95%, #f6cf9f 100%); }
.scene--dusk .sky::after { background: radial-gradient(48% 30% at var(--sx) 100%, rgba(255, 214, 160, .6), rgba(255, 170, 120, .16) 45%, transparent 72%); opacity: calc(1 - var(--p) * .7); }
.scene--dusk .sun { width: clamp(64px, 8vw, 124px); translate: -50% calc(-58% + var(--p) * 70%); background: radial-gradient(circle, #fff6e2 0 52%, #ffe0ad 62%, rgba(255, 210, 150, 0) 71%); box-shadow: 0 0 80px 30px rgba(255, 196, 132, .35); }
.scene--dusk .sea { background: radial-gradient(14% 70% at var(--sx) 0%, rgba(255, 205, 150, .45), transparent 70%), linear-gradient(180deg, #7a6068 0%, #3b3a4c 3%, #1c2b3b 22%, #11202d 60%, #0b1721 100%); }
.scene--dusk .sea::before { background: linear-gradient(90deg, transparent, rgba(255, 228, 196, .7) 30%, rgba(255, 240, 220, .95) var(--sx), rgba(255, 228, 196, .7) 85%, transparent); }

/* Night (footer) */
.scene--night .sky { background: linear-gradient(180deg, #0a0e1c 0%, #0d1428 55%, #1a2440 88%, #2a3352 100%); }
.scene--night .sky::after { background: radial-gradient(40% 60% at var(--sx) 100%, rgba(200, 210, 235, .2), transparent 70%); }
.scene--night .sea { background: radial-gradient(7% 80% at var(--sx) 0%, rgba(220, 225, 240, .3), transparent 70%), linear-gradient(180deg, #252d47 0%, #111a2e 12%, #0a1121 60%, #070b16 100%); }
.scene--night .sea::before { background: linear-gradient(90deg, transparent, rgba(210, 220, 240, .35) 30%, rgba(230, 236, 250, .6) var(--sx), rgba(210, 220, 240, .35) 90%, transparent); }
.scene--night .sea::after { background: repeating-linear-gradient(180deg, transparent 0 6px, rgba(220, 228, 245, .09) 6px 7px); -webkit-mask: radial-gradient(9% 90% at var(--sx) 0, #000, transparent 75%); mask: radial-gradient(9% 90% at var(--sx) 0, #000, transparent 75%); }

/* App (tinted by the app's tokens; ramps are mixed from --c, --g, --h) */
.scene--app { background: var(--c); }
/* the light stays low (below ~80% of the sky) so copy above it keeps AA contrast */
.scene--app .sky { background: var(--c); background: linear-gradient(180deg, color-mix(in oklab, var(--c) 70%, #000) 0%, var(--c) 40%, color-mix(in oklab, var(--c) 72%, var(--g)) 86%, color-mix(in oklab, var(--g) 62%, var(--h)) 94%, color-mix(in oklab, var(--h) 78%, var(--g)) 98%, var(--h) 100%); }
.scene--app .sky::after { background: radial-gradient(28% 22% at var(--sx) 100%, color-mix(in oklab, var(--h) 50%, transparent), transparent 70%); }
.scene--app .sun { width: clamp(48px, 5vw, 80px); background: radial-gradient(circle, #fffaf0 0 50%, color-mix(in oklab, var(--h) 45%, #fff) 62%, transparent 71%); box-shadow: 0 0 70px 26px color-mix(in oklab, var(--h) 32%, transparent); }
.scene--app .sea { background: var(--c); background: radial-gradient(16% 80% at var(--sx) 0%, color-mix(in oklab, var(--h) 38%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in oklab, var(--g) 55%, var(--h)) 0%, color-mix(in oklab, var(--c) 45%, var(--g)) 7%, color-mix(in oklab, var(--c) 82%, var(--g)) 38%, var(--c) 100%); }
.scene--app .sea::before { background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--h) 70%, transparent) 25%, #fff6e6 var(--sx), color-mix(in oklab, var(--h) 70%, transparent) 80%, transparent); }

/* 7 Home hero --------------------------------------------------------------- */
.hero { --hz: 66%; min-height: max(660px, min(100svh, 1000px)); display: grid; grid-template-rows: 1fr auto; padding-top: var(--nav); }
.hero-in { align-self: start; padding-top: clamp(56px, 13vh, 150px); transform: translateY(calc(var(--p) * -90px)); opacity: calc(1 - var(--p) * 1.2); }
.hero .label { text-wrap: balance; display: flex; align-items: center; gap: 14px; margin-bottom: clamp(18px, 3vh, 32px); }
.hero .label::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.hero h1 { font: 300 clamp(3rem, min(7.4vw, 12svh), 8.4rem)/.94 var(--serif); letter-spacing: -.018em; text-wrap: balance; text-shadow: 0 1px 2px rgba(10, 14, 26, .35), 0 2px 36px rgba(10, 14, 26, .45); }
.hero h1 em { color: #ffe6c2; letter-spacing: -.01em; }
/* Each line settles up 0.2em; transform only, so it counts for LCP from the first frame */
.rise { display: block; animation: rise 1.8s var(--ease) both; }
.rise + .rise { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(.2em); } }

.hero-foot { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; padding-block: 28px clamp(28px, 5vh, 52px); }
.hero-foot::before { /* a soft night scrim so text never sits on bright glints */
  content: ""; position: absolute; z-index: -1; top: -48px; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8, 13, 21, .52) 40%, rgba(8, 13, 21, .72));
}
.hero-foot > p { max-width: 34ch; font-size: .92rem; color: var(--lime-2); text-shadow: 0 1px 14px rgba(8, 14, 22, .9); }

/* The seven apps, sitting on the water */
.shore ol { display: flex; gap: clamp(10px, 1.4vw, 20px); }
.shore a { display: grid; justify-items: center; gap: 9px; padding: 6px 2px; border-radius: 14px; }
.shore img, .shore svg { width: 56px; height: auto; aspect-ratio: 1; flex: none; border-radius: var(--squircle); box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .7s var(--ease); }
.shore a:hover img, .shore a:hover svg, .shore a:focus-visible img, .shore a:focus-visible svg { transform: translateY(-4px); }
.shore .n { font: 600 .66rem/1 var(--sans); letter-spacing: .14em; color: var(--lime-2); display: flex; align-items: center; gap: 6px; }
.shore .n::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sw); }
.shore .sn { display: none; }
@media (min-width: 1101px) {
  .shore .n { display: none; }
  .shore .sn { display: flex; align-items: center; gap: 6px; font: 500 .72rem/1 var(--sans); letter-spacing: .04em; color: var(--lime-2); white-space: nowrap; }
  .shore .sn::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sw); }
  .shore a:hover .sn { color: var(--lime); }
}

/* 8 Intro ------------------------------------------------------------------- */
.intro { background: linear-gradient(180deg, #0b1721 0%, #0b1721 50%, var(--first, #0e3a44) 100%); padding: clamp(60px, 7vw, 104px) 0 clamp(44px, 5vw, 76px); }
.intro .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; align-items: end; }
.intro .lead { grid-column: 1 / span 8; font: 300 clamp(1.8rem, 3.3vw, 3.15rem)/1.16 var(--serif); letter-spacing: -.005em; text-wrap: pretty; }
.intro .lead em { color: #f3d3a8; }
.intro .lead + p { grid-column: 9 / -1; color: var(--lime-2); max-width: 40ch; }

/* 9 Chapters ---------------------------------------------------------------
   One per app, painted in its own colour world, fading into the next
   (--c → --n) so the scroll reads as one continuous dusk. Three layouts:
   trio (text + three phones), solo (one phone + the app's own line set big)
   and strip (a wide rail of five phones under a horizon hairline). */
.chapter {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--c); background: linear-gradient(180deg, var(--c) 0%, var(--c) 72%, var(--n) 100%);
  padding: clamp(48px, 5vw, 72px) 0 clamp(56px, 5.6vw, 82px);
}
.chapter::before { /* the app's light, low and wide, like a sun behind haze */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 42% at var(--gx, 72%) 52%, color-mix(in oklab, var(--g) 44%, transparent), transparent 72%);
}
.ch--flip { --gx: 28%; }
.ch-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: center; }
.ch-mark { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; margin-bottom: clamp(26px, 2.8vw, 40px); font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--lime-2); }
.ch-mark .rn { font: 300 1.7rem/1 var(--serif); letter-spacing: .04em; color: var(--a); text-transform: none; }
.ch-mark .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), color-mix(in oklab, var(--a) 42%, transparent) 50%, var(--line)); }
.ch-mark .tm { font-weight: 600; letter-spacing: .08em; color: var(--lime); font-variant-numeric: tabular-nums; }

.ch-text { position: relative; z-index: 2; }
.ch-id { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ch-id .icon { width: 64px; height: 64px; flex: none; }
.ch-title { font: 300 clamp(2.6rem, 5vw, 5.2rem)/.94 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.ch-tag { margin-top: 16px; font: italic 300 clamp(1.35rem, 2vw, 1.8rem)/1.2 var(--serif); color: var(--a); text-wrap: balance; }
.ch-body { margin-top: 18px; color: var(--lime-2); font-size: 1.03rem; max-width: 46ch; text-wrap: pretty; }
.ch-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.ch-notes li { font-size: .8rem; line-height: 1.35; color: var(--lime-2); }
.ch-notes b { display: block; margin-bottom: 6px; font: 300 1.95rem/1 var(--serif); color: var(--lime); letter-spacing: -.01em; }
.ch-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 24px; }

/* (a) trio */
/* flipped chapters move by grid placement only, so DOM, reading and focus order stay text-first */
.ch-grid > .ch-text, .ch-grid > .ch-screens, .ch-grid > .ch-one { grid-row: 2; }
.ch--trio .ch-text { grid-column: 1 / span 5; }
.ch--trio .ch-screens { grid-column: 6 / -1; }
.ch--trio.ch--flip .ch-text { grid-column: 8 / -1; }
.ch--trio.ch--flip .ch-screens { grid-column: 1 / span 7; }
.ch-screens { display: flex; justify-content: center; align-items: center; gap: 3%; position: relative; }
.ch-screens .shot { flex: 0 0 26%; }
.ch-screens .shot:nth-child(1) { margin-top: 12%; }
.ch-screens .shot:nth-child(2) { flex-basis: 32%; z-index: 2; }
.ch-screens .shot:nth-child(3) { margin-top: -9%; }

/* (b) solo */
.ch--solo .ch-one { grid-column: 1 / span 4; justify-self: center; width: min(100%, 270px); }
.ch--solo .ch-text { grid-column: 5 / -1; }
.ch--solo.ch--flip .ch-one { grid-column: 9 / -1; }
.ch--solo.ch--flip .ch-text { grid-column: 1 / span 8; }
.ch-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 clamp(24px, 3vw, 48px); align-items: start; }
.ch-split .ch-body { margin-top: 0; }
.ch-line { margin-bottom: clamp(26px, 3vw, 40px); padding-bottom: clamp(22px, 2.6vw, 34px); border-bottom: 1px solid var(--line); }
.ch-line p { font: 300 clamp(1.9rem, 3.1vw, 3.1rem)/1.06 var(--serif); max-width: 24ch; letter-spacing: -.012em; text-wrap: balance; }
.ch-line em { color: var(--a); }
.ch--solo .ch-title { font-size: clamp(2.2rem, 3.6vw, 3.6rem); }

/* (c) strip */
.ch--strip .ch-text { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: end; }
.ch--strip .ch-head { grid-column: 1 / span 6; }
.ch--strip .ch-more { grid-column: 8 / -1; }
.ch--strip .ch-body { margin-top: 0; }
.strip { position: relative; margin-top: clamp(36px, 3.6vw, 52px); padding-top: clamp(30px, 3vw, 44px); }
.strip::before { /* the horizon hairline the screens sail under */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--h) 55%, transparent) 25%, color-mix(in oklab, var(--h) 90%, #fff) 50%, color-mix(in oklab, var(--h) 55%, transparent) 75%, transparent);
  box-shadow: 0 0 22px 1px color-mix(in oklab, var(--h) 35%, transparent);
}
.strip-rail { display: flex; gap: clamp(14px, 1.8vw, 26px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gut), calc((100vw - var(--max)) / 2)); scroll-padding-inline: max(var(--gut), calc((100vw - var(--max)) / 2)); padding-bottom: 8px; }
.strip-rail::-webkit-scrollbar { display: none; }
.strip-rail .shot { flex: 0 0 clamp(150px, 12.4vw, 178px); scroll-snap-align: start; }
.strip-rail .shot:nth-child(even) { margin-top: 18px; }
@media (min-width: 1101px) { .strip-rail { justify-content: center; } }

/* 10 Screens ---------------------------------------------------------------
   framed: App Store posters with the device already drawn in (a plate).
   raw: plain screens, set in an iPhone body drawn in CSS. */
.shot { position: relative; margin: 0; container-type: inline-size; }
.shot img { width: 100%; aspect-ratio: 600 / 1304; object-fit: cover; }
.plate img { border-radius: 9% / 4.2%; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .13); }
/* The bezel is the screen's own padding, sized in cqw of the phone (the .shot container), so it
   stays in proportion wherever the phone sits. The screen's corners follow the padding curve. */
.device { border-radius: 15% / 7%; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .1); }
.device img, .device svg { display: block; width: 100%; height: auto; padding: 7px; padding: 3.4cqw; border-radius: 15% / 7%; background: #050506; box-shadow: inset 0 0 0 1.5px #3c3c40, inset 0 0 0 3px #0c0c0e; }
.device::after { content: ""; position: absolute; inset: 7px; inset: 3.4cqw; border-radius: 11.5% / 5.3%; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .1), transparent 32%); }

/* 11 Studio ----------------------------------------------------------------- */
.studio { background: linear-gradient(180deg, #0b0f22 0%, var(--night-2) 100%); padding: clamp(72px, 8vw, 120px) 0 clamp(56px, 6vw, 90px); }
.studio-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.studio-head .label { grid-column: 1 / span 3; padding-top: .9em; }
.studio-head h2 { grid-column: 4 / -1; font: 300 clamp(2.3rem, 4.6vw, 4.6rem)/.98 var(--serif); letter-spacing: -.02em; max-width: 14ch; }
.studio-head h2 em { color: #e3d6bd; }
.studio-head p { grid-column: 4 / span 6; color: var(--lime-2); max-width: 54ch; font-size: 1.05rem; }
.values { border-top: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px 24px; padding: clamp(16px, 1.6vw, 22px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.values .n { grid-column: 1 / span 1; font: 600 .74rem/1 var(--sans); letter-spacing: .12em; color: var(--lime-3); font-variant-numeric: tabular-nums; }
.values h3 { grid-column: 2 / span 5; font: 300 clamp(1.7rem, 2.3vw, 2.2rem)/1.04 var(--serif); text-wrap: balance; letter-spacing: -.01em; }
.values p { grid-column: 7 / span 4; color: var(--lime-2); }
.values .src { grid-column: 11 / -1; justify-self: end; text-align: right; font-size: .78rem; letter-spacing: .04em; color: var(--lime-2); }
.src a { border-bottom: 1px solid var(--line-2); transition: border-color .4s, color .4s; }
.src a:hover { border-color: currentColor; color: var(--lime); }
.ledger { margin-top: clamp(40px, 4.4vw, 64px); }
.ledger .label { margin-bottom: 22px; }
.ledger ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.ledger li { color: var(--lime-2); font-size: .86rem; line-height: 1.4; }
.ledger b { display: block; font: 300 clamp(2.2rem, 3.6vw, 3.4rem)/1 var(--serif); color: var(--lime); margin-bottom: 8px; }
.ledger .src { display: block; margin-top: 6px; font-size: .74rem; }

/* 12 Contact ---------------------------------------------------------------- */
.contact { background: var(--night-2); padding: clamp(44px, 5vw, 80px) 0 clamp(56px, 6vw, 96px); text-align: center; }
.contact .label { margin-bottom: 22px; }
.contact h2 { font: 300 clamp(2.3rem, 4.6vw, 4.4rem)/1 var(--serif); letter-spacing: -.015em; }
.mail { display: inline-block; margin-top: 16px; position: relative; font: italic 300 clamp(1.8rem, 5vw, 4.4rem)/1.12 var(--serif); letter-spacing: -.01em; color: #f4dcb6; overflow-wrap: anywhere; }
.mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: 1px; background: currentColor; transform: scaleX(.12); transition: transform 1.1s var(--ease); }
.mail:hover::after, .mail:focus-visible::after { transform: scaleX(1); }
.copy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: .85rem; font-weight: 500; color: var(--lime-2); cursor: pointer; transition: border-color .4s, color .4s; }
.copy:hover { border-color: var(--lime); color: var(--lime); }
.copy svg { width: 15px; height: 15px; }
.contact .note { margin: 22px auto 0; max-width: 46ch; color: var(--lime-2); }

/* 13 Footer ----------------------------------------------------------------- */
.foot { position: relative; background: #070b16; }
.night { --hz: 58%; --sx: 72%; height: clamp(190px, 18vw, 260px); }
.moon { position: absolute; left: var(--sx); top: 22%; width: clamp(38px, 4vw, 60px); aspect-ratio: 1; border-radius: 50%; translate: -50% 0; z-index: -2; background: radial-gradient(circle at 38% 36%, #fbf6e8, #e6dcc3 60%, #cfc3a6); box-shadow: 0 0 60px 14px rgba(230, 225, 205, .18); }
.stars { position: absolute; inset: 0 0 42% 0; z-index: -2; opacity: .55; background-image: radial-gradient(1px 1px at 12% 30%, #fff, transparent), radial-gradient(1px 1px at 28% 12%, #fff, transparent), radial-gradient(1px 1px at 46% 40%, #fff, transparent), radial-gradient(1.2px 1.2px at 58% 18%, #fff, transparent), radial-gradient(1px 1px at 84% 34%, #fff, transparent), radial-gradient(1px 1px at 92% 10%, #fff, transparent), radial-gradient(1px 1px at 6% 62%, #fff, transparent), radial-gradient(1px 1px at 36% 68%, #fff, transparent), radial-gradient(1px 1px at 66% 58%, #fff, transparent); }
.night-word { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font: italic 300 clamp(1.5rem, 2.4vw, 2rem)/1 var(--serif); color: var(--lime-2); }
.foot-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px 24px; padding-block: clamp(36px, 4vw, 56px) 28px; font-size: .88rem; }
.foot-about { grid-column: 1 / span 5; color: var(--lime-2); max-width: 36ch; }
.foot-about .mark { margin-bottom: 14px; color: var(--lime); }
.foot-matrix { grid-column: 7 / -1; }
.matrix a { display: inline-flex; align-items: center; min-height: 32px; color: var(--lime-2); transition: color .4s; }
.matrix a:hover { color: var(--lime); }
.matrix { width: 100%; border-collapse: collapse; }
.matrix caption { text-align: left; margin-bottom: 12px; }
.matrix th, .matrix td { padding: 4px 16px 4px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-weight: 400; }
.matrix thead th { font: 500 .7rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--lime-3); padding-bottom: 8px; }
.matrix tbody th a { color: var(--lime); }
.matrix .ext { font-size: .82rem; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 22px 32px; border-top: 1px solid var(--line); color: var(--lime-2); font-size: .8rem; }
.foot-base a { border-bottom: 1px solid var(--line-2); }

/* 14 App page --------------------------------------------------------------- */
.app { --c1: color-mix(in oklab, var(--c) 86%, #03060a); --c2: color-mix(in oklab, var(--c) 72%, #03060a); --c3: color-mix(in oklab, var(--c) 58%, #03060a); }
/* The copy never reaches the bright bottom of the sky: the sea is a fixed band (--band) and the
   text column keeps a clear gap (--gap) above the horizon. The sun sits behind the phones. */
.app-hero { --band: clamp(130px, 22svh, 230px); --gap: clamp(72px, 12svh, 130px); --hz: calc(100% - var(--band)); --sx: 72%; min-height: max(680px, min(100svh, 960px)); padding-top: var(--nav); display: grid; }
.app-hero > .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; padding-block: clamp(24px, 4vh, 64px) calc(var(--band) + var(--gap)); }
.app-hero-text { grid-column: 1 / span 6; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-bottom: 20px; font-size: .84rem; color: var(--lime-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .3em; }
.crumbs a:hover { color: var(--lime); }
.app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.app-id .icon { width: 92px; height: 92px; flex: none; }
.app-hero h1 { font: 300 clamp(3rem, 6.4vw, 6.6rem)/.9 var(--serif); letter-spacing: -.022em; text-wrap: balance; }
.app-hero h1 .sub { display: block; margin-top: .14em; font-size: .42em; line-height: 1.1; letter-spacing: -.005em; color: var(--lime-2); }
.app-tag { margin-top: 26px; font: italic 300 clamp(1.5rem, 2.4vw, 2.1rem)/1.15 var(--serif); color: var(--a); text-wrap: balance; }
.app-sum { margin-top: 18px; max-width: 44ch; color: var(--lime-2); font-size: 1.05rem; }
.app-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.app-hero-shots { grid-column: 7 / -1; display: flex; justify-content: center; align-items: center; gap: 4%; }
.app-hero-shots .shot { flex: 0 0 36%; }
.app-hero-shots .shot:nth-child(1) { margin-top: 10%; }
.app-hero-shots .shot:nth-child(2) { margin-top: -8%; flex-basis: 41%; }
.app-hero-shots .solo { flex-basis: 46%; }

.facts-strip { background: var(--c); border-block: 1px solid var(--line); }
.facts-strip ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-block: 20px; font-size: .86rem; color: var(--lime-2); }
.facts-strip b { color: var(--lime); font-weight: 600; margin-right: 6px; }

.sect { padding: clamp(76px, 9.5vw, 140px) 0; }
.sect-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4.5vw, 60px); }
.sect-head .label, .about-h .label { margin-bottom: 16px; }
.h2 { font: 300 clamp(2.2rem, 4.4vw, 4.2rem)/1 var(--serif); letter-spacing: -.015em; text-wrap: balance; }

.gallery { background: linear-gradient(180deg, var(--c), var(--c1)); }
.rail-ctl { display: flex; gap: 10px; }
.rail-ctl button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; font-size: 1.1rem; cursor: pointer; transition: background .5s var(--ease), color .5s, border-color .5s; }
.rail-ctl button:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.rail { display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gut), calc((100vw - var(--max)) / 2)); scroll-padding-inline: max(var(--gut), calc((100vw - var(--max)) / 2)); padding-bottom: 8px; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { flex: 0 0 clamp(210px, 20vw, 280px); scroll-snap-align: start; }
.rail .plate img { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.rail figcaption { margin-top: 16px; font-size: .86rem; color: var(--lime-2); display: flex; gap: 10px; }
.rail figcaption span { font-weight: 600; color: var(--a); font-variant-numeric: tabular-nums; }

.about { background: var(--c1); }
.about .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; }
.about-h { grid-column: 1 / span 5; }
.about-body { grid-column: 6 / -1; }
.about-body .lead { font: 300 clamp(1.65rem, 2.7vw, 2.5rem)/1.2 var(--serif); text-wrap: pretty; }
.about-body p + p { margin-top: 22px; color: var(--lime-2); max-width: 60ch; font-size: 1.05rem; }

.stats { background: linear-gradient(180deg, var(--c1), var(--c2)); padding-bottom: clamp(24px, 3vw, 40px); }
.stats ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); }
.stats li { padding: 28px 18px 0; color: var(--lime-2); font-size: .86rem; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font: 300 clamp(2.6rem, 4.8vw, 4.8rem)/1 var(--serif); color: var(--lime); letter-spacing: -.02em; margin-bottom: 10px; }

.features { background: var(--c2); }
.feat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 24px; padding: clamp(26px, 3.2vw, 42px) 0; border-top: 1px solid var(--line); }
.feat:last-child { border-bottom: 1px solid var(--line); }
.feat .n { grid-column: 1 / span 1; font: 600 .74rem/2.2 var(--sans); letter-spacing: .12em; color: var(--a); font-variant-numeric: tabular-nums; }
.feat h3 { grid-column: 2 / span 4; font: 300 clamp(1.7rem, 2.6vw, 2.5rem)/1.05 var(--serif); text-wrap: balance; }
.feat ul { grid-column: 7 / -1; color: var(--lime-2); }
.dash li, .feat li { position: relative; padding-left: 22px; }
.dash li + li, .feat li + li { margin-top: 10px; }
.dash li::before, .feat li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--a); }

/* Interlude: the same horizon, wide and quiet, carrying the app's own line */
.interlude { --hz: 64%; --sx: 50%; min-height: clamp(380px, 44vw, 600px); display: grid; place-items: start center; background: var(--c2); }
.interlude .sea { background: var(--c3); background: radial-gradient(14% 80% at var(--sx) 0%, color-mix(in oklab, var(--h) 32%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in oklab, var(--g) 55%, var(--h)) 0%, color-mix(in oklab, var(--c) 45%, var(--g)) 8%, var(--c2) 45%, var(--c3) 100%); }
.interlude .sky { background: var(--c2); background: linear-gradient(180deg, var(--c2) 0%, var(--c) 38%, color-mix(in oklab, var(--c) 60%, var(--g)) 72%, color-mix(in oklab, var(--g) 50%, var(--h)) 92%, var(--h) 100%); }
.interlude blockquote { padding: clamp(52px, 7vw, 110px) var(--gut) 0; text-align: center; }
.interlude p { font: 300 clamp(1.9rem, 4vw, 3.9rem)/1.08 var(--serif); letter-spacing: -.012em; max-width: 22ch; margin-inline: auto; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.interlude em { color: color-mix(in oklab, var(--h) 40%, #fff); }

.details { background: var(--c3); }
.details .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 24px; }
.price { grid-column: 1 / span 5; }
.price .label, .facts .label { margin-bottom: 16px; }
.price .h2 { margin-bottom: 22px; }
.price .h2 em { display: block; color: var(--a); }
.price > p { color: var(--lime-2); max-width: 46ch; }
.buys { margin-top: 26px; border-top: 1px solid var(--line); }
.buys li { display: grid; grid-template-columns: minmax(8.5em, 38%) 1fr; gap: 6px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.buys b { font-weight: 600; }
.buys span { color: var(--lime-2); }
.price .fine { margin-top: 16px; font-size: .84rem; color: var(--lime-3); max-width: 52ch; }
.notes { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.notes h3 { font: 300 1.6rem/1.1 var(--serif); margin-bottom: 14px; }
.notes h4 { margin: 18px 0 8px; font: 600 .78rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--lime-2); }
.notes ul { color: var(--lime-2); font-size: .95rem; }
.notes details { margin-top: 14px; }
.notes summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--lime); list-style: none; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 400; line-height: 1; }
.notes details[open] summary::before { content: "−"; }
.facts { grid-column: 7 / -1; }
.facts dl { border-top: 1px solid var(--line); }
.facts dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--lime-2); }

.help { background: var(--c3); padding-top: 0; }
.help .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { position: relative; display: block; padding: clamp(26px, 3.2vw, 44px); border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(241, 234, 223, .05), rgba(241, 234, 223, .01)); transition: border-color .6s var(--ease), background .6s var(--ease), transform .8s var(--ease); }
.card:hover, .card:focus-visible { border-color: rgba(241, 234, 223, .42); background: linear-gradient(160deg, rgba(241, 234, 223, .09), rgba(241, 234, 223, .02)); transform: translateY(-3px); }
.card .label { display: block; margin-bottom: 16px; }
.card h3 { font: 300 clamp(1.8rem, 2.8vw, 2.5rem)/1.05 var(--serif); text-wrap: balance; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.card p { margin-top: 14px; color: var(--lime-2); max-width: 46ch; }

.next { background: linear-gradient(180deg, var(--c3) 0%, color-mix(in oklab, var(--c) 62%, #000) 58%, var(--night-2) 100%); padding: clamp(72px, 9vw, 140px) 0; }
.next .label { margin-bottom: 18px; }
.next-link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(18px, 3vw, 40px); padding: 28px 0; border-block: 1px solid var(--line); }
.next-link .icon { width: clamp(64px, 7vw, 96px); height: auto; }
.next-link .t { font: 300 clamp(2.2rem, 5vw, 4.8rem)/1 var(--serif); letter-spacing: -.015em; }
.next-link small { display: block; font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--lime-2); margin-bottom: 14px; }
.next-link .arrow { font: 300 clamp(2rem, 4vw, 3.6rem)/1 var(--serif); }
.next-link:hover .arrow { transform: translateX(10px); }
.more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.more a { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 7px 16px 7px 7px; border-radius: 999px; border: 1px solid var(--line); font-size: .86rem; color: var(--lime-2); transition: border-color .4s, color .4s; }
.more a:hover { border-color: rgba(241, 234, 223, .5); color: var(--lime); }
.more img, .more svg { width: 30px; height: 30px; border-radius: var(--squircle); }

/* 15 Documents (privacy, support) ----------------------------------------- */
.doc-head { position: relative; padding: calc(var(--nav) + clamp(36px, 6vw, 84px)) 0 clamp(40px, 5vw, 64px); background: var(--c); background: linear-gradient(180deg, var(--night) 0%, color-mix(in oklab, var(--c) 82%, var(--night)) 100%); }
.doc-head::after { /* the horizon hairline: the page's only ornament */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--h) 50%, transparent) 30%, color-mix(in oklab, var(--h) 85%, #fff) 64%, color-mix(in oklab, var(--h) 50%, transparent) 85%, transparent);
  box-shadow: 0 0 20px 1px color-mix(in oklab, var(--h) 30%, transparent);
}
.doc-head .wrap { max-width: calc(60rem + var(--gut) * 2); }
.doc-id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--lime-2); }
.doc-id .icon { width: 52px; height: 52px; flex: none; }
.doc-head h1 { font: 300 clamp(2.6rem, 5.6vw, 4.8rem)/.98 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.doc-sub { margin-top: 16px; color: var(--lime-2); font-size: 1rem; }
.doc-jump { margin-top: 14px; font-size: .92rem; }
.doc-jump a { border-bottom: 1px solid var(--line-2); }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 6px 26px; max-width: calc(60rem + var(--gut) * 2); padding-block: 18px; font-size: .9rem;
  background: linear-gradient(var(--line), var(--line)) 50% 100% / calc(100% - var(--gut) * 2) 1px no-repeat; }
.doc-tabs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--lime-2); border-bottom: 1px solid transparent; }
.doc-tabs a:hover { color: var(--lime); }
.doc-tabs a[aria-current] { color: var(--lime); border-bottom-color: var(--a); }
.doc-body { max-width: calc(60rem + var(--gut) * 2); padding-block: clamp(36px, 5vw, 64px) clamp(72px, 9vw, 120px); }
.prose { font-size: clamp(1.03rem, 1vw + .6rem, 1.12rem); line-height: 1.7; }
.prose > *, .prose section > * { max-width: 66ch; }
.prose p { color: rgba(241, 234, 223, .86); }
.prose p + p { margin-top: 1em; }
.prose h2 { margin: 1.9em 0 .45em; text-wrap: balance; font: 300 1.85rem/1.15 var(--serif); letter-spacing: -.008em; color: var(--lime); }
.prose > h2:first-child, .prose > section:first-child > h2:first-child { margin-top: 0; }
.prose a { color: var(--lime); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--a) 70%, transparent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose b, .prose strong { font-weight: 600; color: var(--lime); }
.prose .sub { color: var(--lime-2); }
.prose .tr { position: relative; margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 60px); }
.prose .tr::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; max-width: none; background: linear-gradient(90deg, color-mix(in oklab, var(--h) 70%, transparent), var(--line) 60%, transparent); }
.prose .tr > h2:first-child { margin-top: 0; }
.prose .tr-title { margin-bottom: .1em; font-size: 2.4rem; }
.aside { margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: rgba(241, 234, 223, .03); }
.aside h2 { margin: 0 0 .35em; }
.aside .from { margin-top: .8em; font-size: .84rem; color: var(--lime-3); }

/* 16 Not found -------------------------------------------------------------- */
.lost { --hz: 86%; --sx: 50%; min-height: max(600px, min(100svh, 900px)); display: grid; justify-items: center; align-content: start; text-align: center; padding: calc(var(--nav) + clamp(48px, 12vh, 140px)) var(--gut) 0; }
.lost .sun { width: clamp(56px, 6vw, 96px); }
.lost h1 { font: 300 clamp(2.8rem, 7vw, 6.4rem)/.95 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.lost .label { margin-bottom: 14px; }
.lost p { margin: 18px auto 0; max-width: 40ch; color: var(--lime-2); }
.lost .app-cta { justify-content: center; }
.lost .btn { background: rgba(9, 13, 24, .82); border-color: rgba(241, 234, 223, .5); }
.lost .btn:hover, .lost .btn:focus-visible { background: var(--lime); }
.lost .link { padding-inline: 16px; border-radius: 999px; background: rgba(9, 13, 24, .6); }
.lost .link::after { left: 16px; right: 16px; }

/* 17 Reveals ----------------------------------------------------------------
   site.js marks what is already on screen as .in, then adds .js to <html>,
   in the same frame and only once its setup has succeeded. Without JS (or if
   it fails) nothing is hidden. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1.4s var(--ease) var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .shot[data-reveal] { transform: translateY(56px) scale(.97); transition-duration: 1.8s; }
.js .shot[data-reveal].in { transform: none; }
.js [data-reveal].at-load { transition: none; }
.d1 { --d: .08s; } .d2 { --d: .16s; } .d3 { --d: .24s; } .d4 { --d: .32s; }

/* 18 Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .now { display: none; }
  .nav .wrap { grid-template-columns: 1fr auto; }
  .values p { grid-column: 7 / -1; }
  .values .src { grid-column: 7 / -1; justify-self: start; text-align: left; }
  .foot-about { grid-column: 1 / span 5; }
  .foot-matrix { grid-column: 6 / -1; }
}
@media (max-width: 860px) {
  :root { --nav: 60px; }
  .mark span { display: none; }
  .nav ul { gap: 20px; font-size: .88rem; }

  .hero { --hz: 62%; --sx: 80%; }
  .hero-in { padding-top: clamp(40px, 9vh, 96px); }
  .hero h1 .rise { display: inline; }   /* let balance set the lines on narrow screens */
  .hero-foot { grid-template-columns: 1fr; gap: 18px; padding-block: 22px 26px; }
  .hero-foot > p { order: 2; max-width: 36ch; font-size: .88rem; }
  .hero-foot::before { top: -28px; background: linear-gradient(180deg, transparent, rgba(8, 13, 21, .64) 26%, rgba(8, 13, 21, .8)); }
  .shore ol { justify-content: space-between; gap: 0; }
  .shore img, .shore svg { width: min(40px, 11vw); }
  .shore a { gap: 7px; }

  .intro .wrap, .studio-head, .values li, .about .wrap, .details .wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .intro .lead, .intro .lead + p, .studio-head .label, .studio-head h2, .studio-head p, .about-h, .about-body, .price, .facts { grid-column: 1 / -1; }

  .chapter { padding: 44px 0 56px; }
  .ch-grid { display: flex; flex-direction: column; align-items: stretch; }
  .ch-mark { margin-bottom: 26px; gap: 14px; }
  /* icon beside the genre and title, to keep each chapter short */
  .ch-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .ch-head > * { grid-column: 1 / -1; }
  .ch-id { display: contents; }
  .ch-head .icon { grid-column: 1; grid-row: span 2; width: 56px; height: 56px; align-self: center; }
  .ch-head .ch-id .label { grid-column: 2; align-self: end; margin-bottom: 4px; }
  .ch-head .ch-title, .ch--solo .ch-head .ch-title { grid-column: 2; align-self: start; font-size: 2.2rem; }
  .ch-split { display: block; }
  .ch-split .ch-body { margin-top: 12px; }
  .ch-tag { margin-top: 14px; font-size: 1.3rem; }
  .ch-body { margin-top: 12px; font-size: .98rem; }
  .ch-notes { gap: 12px; margin-top: 20px; padding-top: 14px; }
  .ch-notes b { font-size: 1.55rem; }
  .ch-cta { margin-top: 18px; gap: 8px 22px; }
  .ch-screens { justify-content: flex-start; align-items: flex-start; gap: 14px; margin: 30px calc(var(--gut) * -1) 0; padding-inline: var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--gut); }
  .ch-screens::-webkit-scrollbar { display: none; }
  .ch-screens .shot:nth-child(n) { flex: 0 0 40%; margin: 0; scroll-snap-align: start; }
  .ch--solo .ch-one { width: 46%; margin-top: 30px; align-self: center; }
  .ch-line { margin-bottom: 22px; padding-bottom: 20px; }
  .ch-line p { font-size: 1.75rem; }
  .ch--strip .ch-text { display: block; }
  .ch--strip .ch-more { margin-top: 12px; }
  .strip { margin-top: 30px; padding-top: 26px; }
  .strip-rail .shot { flex-basis: 40%; }
  .strip-rail .shot:nth-child(even) { margin-top: 0; }

  .values li { padding: 18px 0; gap: 6px; }
  .studio-head { margin-bottom: 28px; }
  .values .n, .values h3, .values p, .values .src { grid-column: 1 / -1; }
  .ledger ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .ledger li:last-child { grid-column: 1 / -1; }

  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .foot-about, .foot-matrix { grid-column: 1 / -1; }
  .night { height: 190px; }

  .app-hero { --hz: 86%; --sx: 28%; --band: 0px; --gap: 0px; }
  .app-hero > .wrap { display: flex; flex-direction: column; align-items: stretch; padding-block: 22px 44px; gap: 40px; }
  .app-hero-shots { gap: 5%; padding-inline: 4%; }
  .app-hero-shots .shot, .app-hero-shots .shot:nth-child(2) { flex: 0 0 46%; }
  .app-hero-shots .shot:nth-child(1) { flex: 0 0 43%; margin-top: 14%; }
  .app-hero-shots .solo { flex-basis: 62%; }
  .app-id .icon { width: 72px; height: 72px; }
  .crumbs { margin-bottom: 24px; }
  .facts-strip ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .sect-head { flex-direction: column; align-items: flex-start; }
  .rail-ctl { display: none; }
  .rail figure { flex-basis: 62%; }
  .stats ul { grid-template-columns: 1fr 1fr; }
  .stats li, .stats li:first-child { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stats li:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
  .stats li:nth-child(even) { padding-left: 18px; }
  .stats li:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .feat { grid-template-columns: 2.4em minmax(0, 1fr); gap: 10px 8px; }
  .feat .n { grid-column: 1; }
  .feat h3, .feat ul { grid-column: 2; }
  .details .wrap { gap: 52px; }
  .buys li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dl div { grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; }
  .help .wrap { grid-template-columns: minmax(0, 1fr); }
  .next-link { grid-template-columns: auto minmax(0, 1fr); }
  .next-link .arrow { display: none; }
  .interlude { --hz: 66%; min-height: 420px; }
}
@media (max-width: 359px) {
  .nav ul li.opt { display: none; }
}

/* 19 Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js .shot[data-reveal] { opacity: 1; transform: none; }
  .hero-in { transform: none; opacity: 1; }
  .scene--dusk .sun { translate: -50% -58%; }
}

.t-pebbles{--c:#0e3a44;--a:#ead2a2;--g:#2f8a96;--sw:#3aa0ab;--h:#cdd0a8;--n:#3b2219}
.t-palette{--c:#3b2219;--a:#f2ad6c;--g:#c4542f;--sw:#e2703f;--h:#f3c28c;--n:#262f1f}
.t-hush{--c:#262f1f;--a:#dcc985;--g:#7d8a4c;--sw:#8e9a5c;--h:#e2d9ad;--n:#36142a}
.t-shapecut{--c:#36142a;--a:#ffa57c;--g:#d9416f;--sw:#e8487a;--h:#ffb48c;--n:#0c1f33}
.t-deep{--c:#0c1f33;--a:#f4a08b;--g:#3f8a98;--sw:#e08a74;--h:#f0c2a8;--n:#16100c}
.t-reincarnateme{--c:#16100c;--a:#dcbb78;--g:#8a6a35;--sw:#c9a45a;--h:#e4c389;--n:#121634}
.t-moonfold{--c:#121634;--a:#e9dfc4;--g:#4a4f9a;--sw:#8c93e0;--h:#c6c4e4;--n:#0b0f22}
.intro{--first:#0e3a44}
