/* Skywell — "Dawn × Editorial" concept.
   Dawn Cinematic's night, light and motion; Mac Editorial's messages,
   buttons and page structure. Dawn colour appears once per section. */

@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono.ttf"); font-display: swap; }
@font-face { font-family: "Fira Code"; src: url("assets/fonts/fira-code.ttf"); font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono.ttf"); font-display: swap; }
@font-face { font-family: "Victor Mono"; src: url("assets/fonts/victor-mono.ttf"); font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono.ttf"); font-display: swap; }
@font-face { font-family: "Commit Mono"; src: url("assets/fonts/commit-mono.otf"); font-display: swap; }
@font-face { font-family: "Monaspace Neon"; src: url("assets/fonts/monaspace-neon.otf"); font-display: swap; }
@font-face { font-family: "Source Code Pro"; src: url("assets/fonts/source-code-pro.ttf"); font-display: swap; }

@property --glow { syntax: "<color>"; inherits: true; initial-value: #f2798f; }

:root {
  --void: #030409;
  --night: #060916;
  --navy: #0b1233;
  --ember: #ff3a12; --flame: #ff6a1a; --amber: #ffb23e; --cream: #fff3dc; --sky: #39b0ff; --azure: #0a66ff;
  --text: #f5f7ff;
  --dim: #98a1bf;
  --faint: #5d6585;
  --hair: rgba(255, 255, 255, .09);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .07);
  --dawn: linear-gradient(90deg, var(--flame) 0%, var(--amber) 34%, var(--cream) 55%, var(--sky) 78%, var(--azure) 100%);
  --dawn-phrase: linear-gradient(90deg, #ff6a1a 0%, #ffa033 36%, #ffc56a 54%, #fff3dc 60.5%, #39b0ff 65%, #0a66ff 100%);
  --dawn-warm: linear-gradient(90deg, #ff6a1a, #ffb23e);
  --dawn-cool: linear-gradient(90deg, #5cc0ff, #2f7dff);
  --link: #4db5ff;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1120px;
  --gutter: clamp(22px, 5vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--void); color: var(--text); font-family: var(--ui);
  font-size: 17px; line-height: 1.47; letter-spacing: -.022em; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .86em; letter-spacing: 0; padding: .1em .38em; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--cream); }
kbd {
  font-family: var(--ui); font-size: 13px; font-weight: 500; letter-spacing: 0; color: #eef1ff;
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 7px;
  background: linear-gradient(180deg, #2c3150, #171b30);
  box-shadow: 0 2px 0 #0b0e1c, 0 5px 12px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
::selection { background: rgba(255, 178, 62, .35); }
.wrap { width: min(var(--wrap), calc(100% - 44px)); margin-inline: auto; }

.dawn-phrase, .dawn-warm, .dawn-cool {
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.dawn-phrase { background-image: var(--dawn-phrase); }
.dawn-warm { background-image: var(--dawn-warm); }
.dawn-cool { background-image: var(--dawn-cool); }

/* ─── Atmosphere ─────────────────────────────────────────────────── */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background: url("assets/grain.png"); animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.vignette { position: fixed; inset: 0; z-index: 99; pointer-events: none; background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .5)); }

/* ─── Nav ────────────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 56px; border-bottom: .5px solid transparent; transition: background .4s, border-color .4s; }
.nav.scrolled { background: rgba(5, 7, 17, .66); border-bottom-color: var(--hair); backdrop-filter: saturate(170%) blur(20px); -webkit-backdrop-filter: saturate(170%) blur(20px); }
.nav-inner { width: min(var(--wrap), calc(100% - 44px)); height: 100%; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand-icon { width: 24px; height: 24px; position: relative; flex-shrink: 0; }
.brand-icon img { position: absolute; width: 29.8px; height: 29.8px; left: -2.9px; top: -2.9px; max-width: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13px; color: var(--dim); letter-spacing: -.01em; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ─── Buttons (Editorial's system, lit for the night) ───────────── */
.pill {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border-radius: 980px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: #0b0d18;
  background: linear-gradient(180deg, #ffffff, #e9ebf4);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(0, 0, 0, .3);
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.pill:hover { transform: translateY(-1px); background: linear-gradient(180deg, #ffffff, #f3f4fa); }
.pill:active { transform: scale(.98); }
.pill:focus-visible, .link-more:focus-visible, .arrow:focus-visible, .dots button:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.pill .apple { width: .95em; height: .95em; margin-right: .4em; flex-shrink: 0; transform: translateY(-1px); }
.pill-sm { height: 30px; padding: 0 15px 0 13px; font-size: 13px; }
.pill-sm .apple { margin-right: .36em; }
.pill-lg { height: 56px; padding: 0 34px; font-size: 19px; }
/* The dawn under-glow: the icon's light, spilling from beneath the button.
   The pill's fill lives on ::after so it always sits above the glow (::before). */
.pill-glow, .pill-glow:hover { background: transparent; box-shadow: none; }
.pill-glow::before {
  content: ""; position: absolute; inset: 16px 4px -18px; z-index: -2; border-radius: inherit;
  background: linear-gradient(90deg, var(--flame), var(--amber) 38%, var(--cream) 52%, var(--sky) 66%, var(--azure));
  filter: blur(20px); opacity: .78; transition: opacity .3s, transform .4s var(--ease);
}
.pill-glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, #ffffff, #e9ebf4);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1), inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 236, 214, .35), 0 8px 30px -8px rgba(255, 178, 62, .35);
  transition: background .25s;
}
.pill-glow:hover::before { opacity: .95; transform: scaleX(1.07); }
.pill-glow:hover::after { background: linear-gradient(180deg, #ffffff, #f4f5fb); }
.link-more {
  font: inherit; font-size: 19px; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: -.02em;
}
.link-more span { display: inline-block; transition: transform .25s var(--ease); }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-more:hover span { transform: translateX(3px); }

/* ─── Type ───────────────────────────────────────────────────────── */
.eyebrow { margin: 34px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; color: var(--dim); }
.display { margin: 0; font-size: clamp(46px, 7.4vw, 104px); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; }
.lede { margin: 24px auto 0; max-width: 640px; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.3; color: var(--dim); letter-spacing: -.02em; font-weight: 500; text-wrap: balance; }
.actions { margin-top: 36px; display: flex; gap: 30px; align-items: center; justify-content: center; flex-wrap: wrap; }
.fine { margin: 20px 0 0; font-size: 13px; color: var(--faint); letter-spacing: -.01em; }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.kicker i { display: block; width: 26px; height: 2px; border-radius: 2px; background: var(--dawn); }
.section-title { margin: 0; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.section-sub { margin: 16px 0 0; max-width: 700px; font-size: clamp(19px, 2vw, 24px); line-height: 1.33; color: var(--dim); font-weight: 500; letter-spacing: -.02em; text-wrap: pretty; }

/* The films' motion: words rise and unblur, in order. */
.words .w { display: inline-block; opacity: 0; transform: translateY(.42em); filter: blur(14px); animation: word 1s var(--ease) forwards; animation-delay: calc(.2s + var(--i) * .07s); }
.words .w.dawn-phrase { padding-right: .03em; }
.rise { opacity: 0; transform: translateY(18px); animation: word 1s var(--ease) forwards; animation-delay: calc(.2s + var(--i) * .07s); }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero { position: relative; padding: 118px 0 0; text-align: center; overflow: clip; }
.hero-light { position: absolute; left: 50%; top: -330px; width: max(1700px, 125vw); height: 1250px; transform: translateX(-50%); pointer-events: none; }
/* A soft dawn haze, not a flood: the plate is dimmed, narrowed and lifted. */
.hero-light img {
  width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; opacity: .36;
  -webkit-mask-image: radial-gradient(ellipse 40% 38% at 50% 26%, #000 18%, transparent 72%);
  mask-image: radial-gradient(ellipse 40% 38% at 50% 26%, #000 18%, transparent 72%);
}
.beam { position: absolute; inset: 0; mix-blend-mode: screen; background: radial-gradient(ellipse 28% 32% at 50% 30%, rgba(255, 244, 222, .19) 0%, rgba(255, 178, 62, .09) 32%, rgba(57, 176, 255, .05) 58%, transparent 76%); }
.dust {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff3dc 50%, transparent 51%), radial-gradient(1px 1px at 28% 64%, #bfe3ff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 41% 12%, #fff3dc 50%, transparent 51%), radial-gradient(1px 1px at 57% 42%, #bfe3ff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 69% 18%, #fff3dc 50%, transparent 51%), radial-gradient(1px 1px at 83% 58%, #fff3dc 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 91% 28%, #bfe3ff 50%, transparent 51%), radial-gradient(1px 1px at 7% 71%, #fff3dc 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 35% 38%, #fff3dc 50%, transparent 51%), radial-gradient(1px 1px at 76% 74%, #bfe3ff 50%, transparent 51%);
  animation: drift 26s linear infinite alternate;
}
@keyframes drift { to { transform: translate3d(0, 40px, 0); } }
.hero-copy { position: relative; z-index: 2; width: min(1040px, calc(100% - 44px)); margin: 0 auto; }
.hero-icon { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.hero-icon img { position: absolute; width: 164px; height: 164px; max-width: none; left: -16px; top: -16px; }
.hero-icon-glow { position: absolute; inset: -44px; background: radial-gradient(closest-side, rgba(255, 178, 62, .2), rgba(57, 176, 255, .07) 55%, transparent); }
.br-desktop { display: block; }

.stage { position: relative; z-index: 1; width: min(1180px, calc(100% - 44px)); margin: 80px auto 0; perspective: 2200px; perspective-origin: 50% -10%; }
.stage-glow { position: absolute; left: -20%; right: -20%; top: 10%; height: 110%; pointer-events: none;
  background: radial-gradient(ellipse 46% 42% at 50% 55%, rgba(10, 102, 255, .18), transparent 70%), radial-gradient(ellipse 28% 28% at 58% 40%, rgba(255, 106, 26, .08), transparent 70%); }
.window3d { --rx: 24deg; --s: .9; --y: 0px; margin: 0; transform-origin: 50% 0%; transform: translateY(var(--y)) rotateX(var(--rx)) scale(var(--s)); will-change: transform; }

.glass { position: relative; border-radius: 14px; overflow: hidden; background: #0d1025;
  box-shadow: 0 60px 140px -20px rgba(0, 0, 0, .75), 0 22px 44px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .09); }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 1px rgba(255, 255, 255, .07);
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, .05) 42%, transparent 58%); }
.window3d.glass { border-radius: clamp(10px, 1.6vw, 20px); }
.glass video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0d1025; transform: scale(var(--z, 1)); transform-origin: var(--o, 50% 0%); }
.recognizes { position: relative; z-index: 2; margin: 72px auto 0; }
.recognizes-copy { margin: 0 auto; width: min(760px, calc(100% - 44px)); font-size: 21px; line-height: 1.38; font-weight: 600; letter-spacing: -.02em; }
.recognizes-copy span { color: var(--dim); font-weight: 500; }
.badge-rail {
  margin-top: 30px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.badge-track { display: flex; gap: 18px; width: max-content; animation: marquee 64s linear infinite; padding: 10px 0 26px; }
.badge-track img { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .7), 0 0 0 .5px rgba(255, 255, 255, .08); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* A band: a slightly lifted stretch of night with hairline edges. */
.band { position: relative; background: linear-gradient(180deg, rgba(11, 18, 51, 0), rgba(11, 18, 51, .42) 14%, rgba(11, 18, 51, .42) 86%, rgba(11, 18, 51, 0)); }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--hair), transparent); }
.band::before { top: 0; } .band::after { bottom: 0; }

/* ─── Commands you can retire ─────────────────────────────────────
   2×2 cells with hairline dividers: a small pre-label, a big command in the
   dawn gradient (flame → amber → cream → sky across the cells), a short
   label. Command size comes from JS (--tok) so the widest one fits. */
.stats { padding: 130px 0 30px; }
.stats-head { margin-bottom: 46px; }
.stats-head .kicker { margin: 0; }

.numbers { --tok: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 38px 56px 42px; opacity: 0; transition: opacity .7s ease; }
.stat:nth-child(odd) { padding-left: 0; }
.stat:nth-child(even) { padding-right: 0; border-left: 1px solid var(--hair); }
.stat:nth-child(-n+2) { padding-top: 4px; }
.stat:nth-child(n+3) { border-top: 1px solid var(--hair); padding-bottom: 8px; }
.numbers.go .stat { opacity: 1; transition-delay: calc(var(--i) * .14s); }
.stat-pre { display: flex; align-items: center; gap: 9px; height: 22px; font-size: 17px; font-weight: 600; color: var(--dim); white-space: nowrap; }
.stat-num { display: inline-flex; align-items: center; margin: 12px 0 16px; font-size: var(--tok); line-height: 1.08; white-space: nowrap; }
.g { background-image: var(--dawn); background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stat-label { max-width: 440px; font-size: 17px; line-height: 1.42; font-weight: 500; letter-spacing: -.015em; color: var(--dim); text-wrap: pretty;
  opacity: 0; transform: translateY(10px); }
.stat-label b { font-weight: 600; color: var(--text); }
/* The label comes up as the strike draws, then brightens as the command settles. */
.numbers.go .stat-label { opacity: 1; transform: none; animation: settle-label 1.5s var(--ease) both; animation-delay: calc(.45s + var(--i) * .24s); }
@keyframes settle-label { 0% { opacity: 0; transform: translateY(10px); } 45% { opacity: .5; transform: none; } 100% { opacity: 1; transform: none; } }

/* A luminous dawn strike draws through each command; the command settles back. */
.cmd { position: relative; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 800; letter-spacing: -.035em; font-variant-ligatures: none; }
.cmd .g { transition: opacity .8s ease; }
.cmd::after {
  content: ""; position: absolute; left: -.08em; right: -.08em; top: 53%; height: max(3px, .09em); border-radius: 99px;
  background: linear-gradient(90deg, var(--flame), var(--amber) 35%, var(--cream) 55%, var(--sky) 80%, var(--azure));
  box-shadow: 0 0 .1em rgba(255, 226, 180, .95), 0 0 .38em rgba(255, 160, 70, .6), 0 0 .9em rgba(255, 120, 40, .28);
  transform: scaleX(0); transform-origin: 0 50%;
}
.numbers.go .cmd::after { transform: scaleX(1); animation: strike 1.25s both; animation-delay: calc(.35s + var(--i) * .24s); }
@keyframes strike {
  0% { transform: scaleX(0); filter: brightness(1.7) saturate(1.2); animation-timing-function: cubic-bezier(.7, 0, .2, 1); }
  62% { transform: scaleX(1); filter: brightness(1.7) saturate(1.2); animation-timing-function: ease-out; }
  100% { transform: scaleX(1); filter: none; }
}
.numbers.go .cmd .g { opacity: .55; transition-delay: calc(1s + var(--i) * .24s); }
@media (max-width: 899px) {
  .numbers { grid-template-columns: minmax(0, 1fr); }
  .stat:nth-child(n) { padding: 28px 0 30px; border-left: 0; border-top: 1px solid var(--hair); }
  .stat:first-child { padding-top: 0; border-top: 0; }
}

/* ─── Chapters (Dawn): glass clips in space, text beside them ───── */
.headline { margin: 0; font-size: clamp(38px, 5vw, 68px); font-weight: 650; letter-spacing: -.04em; line-height: 1.03; }
.headline.center, .center { text-align: center; }
.kicker.center { justify-content: center; }
.accent { background-image: var(--dawn); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.section-head { max-width: 900px; margin: 0 auto; }
.center-copy { text-align: center; color: var(--dim); font-size: 19px; max-width: 600px; margin: 24px auto 0; }

.chapter { max-width: 1320px; margin: 0 auto; padding: 150px var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr); gap: clamp(40px, 5vw, 90px); align-items: center; }
.chapter[data-side="text-right"] { grid-template-columns: minmax(0, 6.8fr) minmax(0, 5.2fr); }
.chapter .headline { font-size: clamp(36px, 4.2vw, 60px); }
.chapter[data-side="text-right"] .copy { order: 2; }
.copy p { color: var(--dim); font-size: 19px; line-height: 1.55; margin: 24px 0 0; max-width: 470px; letter-spacing: -.005em; }
.copy .port { color: var(--text); font-weight: 600; white-space: nowrap; }
.copy .port b { color: #30d158; font-size: .7em; vertical-align: .12em; }
.keys { display: inline-flex; align-items: center; gap: 7px; margin-top: 28px; }
.keys kbd { min-width: 30px; height: 30px; padding: 0 8px; font-size: 14px; }
.keys span { margin-left: 10px; font-size: 14px; color: var(--dim); letter-spacing: -.005em; }
.keyrow { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 34px; }
.keyrow .keys { margin-top: 22px; }
.shot { position: relative; margin: 0; perspective: 1800px; }
.shot-glow { position: absolute; inset: -18% -14%; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 55%, rgba(10, 102, 255, .26), transparent 70%), radial-gradient(ellipse 34% 34% at 62% 30%, rgba(255, 106, 26, .13), transparent 70%); }
.tilt { --ry: -12deg; --rx: 4deg; transform: rotateY(var(--ry)) rotateX(var(--rx)); transform-origin: 50% 50%; will-change: transform; }
.chapter[data-side="text-right"] .tilt { --ry: 12deg; }
.inset { position: absolute; width: 46%; right: -6%; bottom: -16%; border-radius: 10px; z-index: 2; box-shadow: 0 40px 90px -10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .12); }
.chapter[data-side="text-right"] .inset { right: auto; left: -6%; }

/* ─── Keyboard flow (Dawn) ───────────────────────────────────────── */
.more { max-width: 1240px; margin: 0 auto; padding: 170px var(--gutter) 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 70px; }
.card { border-radius: 20px; padding: 10px; background: var(--glass); border: 1px solid var(--hair); }
.card .glass { border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07); }
.card-copy { padding: 22px 14px 16px; }
.card h3 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card h3 kbd { min-width: 24px; height: 24px; font-size: 12px; padding: 0 6px; }
.card h3 kbd:first-of-type { margin-left: 6px; }
.card p { margin: 8px 0 0; color: var(--dim); font-size: 16px; }
.cards .card:nth-child(2) { transition-delay: .08s; }
.cards .card:nth-child(3) { transition-delay: .16s; }

/* ─── Make it yours ───────────────────────────────────────────────── */
.themes { --glow: #f2798f; padding: 150px 0 150px; margin-top: 110px; overflow: hidden; transition: --glow .9s ease; }
.lab-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 42% 52% at 34% 62%, color-mix(in srgb, var(--glow) 26%, transparent), transparent 70%),
              radial-gradient(ellipse 70% 40% at 50% 100%, color-mix(in srgb, var(--glow) 10%, transparent), transparent 70%); }
.themes .wrap { position: relative; }
/* One row: live preview | theme chips | fonts + text size. */
.wrap-wide { width: min(1560px, calc(100% - 2 * var(--gutter))); }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px) minmax(190px, 214px); gap: 40px; margin-top: 60px; align-items: start; }
.studio-caption { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--dim); font-weight: 500; }
.control-title { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--dim); letter-spacing: -.005em; }
.control-title:not(:first-child) { margin-top: 34px; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.swatch {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; border: 0; cursor: pointer; text-align: left;
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--text);
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .25s, background .25s, transform .25s var(--ease);
}
.swatch:hover { background: rgba(255, 255, 255, .06); transform: translateY(-1px); }
.swatch[aria-checked="true"] { background: color-mix(in srgb, var(--chip) 12%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--chip) 75%, white 10%); }
.swatch-mini { flex: 0 0 58px; height: 40px; border-radius: 8px; padding: 5px; display: flex; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); }
.swatch-mini span { flex: 1; border-radius: 4px; padding: 5px; display: flex; flex-direction: column; gap: 3px; border: 1px solid transparent; }
.swatch-mini b { display: block; height: 3px; border-radius: 2px; }
.faces { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.face {
  height: 36px; padding: 0 14px; border-radius: 99px; border: 0; cursor: pointer; color: var(--dim);
  background: rgba(255, 255, 255, .035); font-size: 14px; letter-spacing: 0; box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .2s, color .2s, background .2s;
}
.face:hover { color: var(--text); }
.faces .face { text-align: left; }
.face[aria-checked="true"] { color: var(--text); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.size { display: flex; align-items: center; gap: 12px; }
.keybtn { display: inline-flex; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; }
.keybtn kbd { height: 34px; min-width: 34px; font-size: 15px; }
.keybtn:active kbd { transform: translateY(2px); box-shadow: 0 0 0 #0b0e1c, inset 0 1px 0 rgba(255, 255, 255, .18); }

.term { --bg: #1e2650; --fg: #dbe2fb; --backdrop: #131836; --titlebar: #0d1025; --focus: rgba(200, 215, 255, .34);
  --pill: rgba(255, 255, 255, .18); --pill-border: rgba(255, 255, 255, .26); --label: rgba(255, 255, 255, .95); --secondary: rgba(255, 255, 255, .62);
  --cursor: #f2798f; --sel: #3d549e; --size: 14px; --face: "JetBrains Mono";
  border-radius: 16px; overflow: hidden; background: var(--backdrop);
  box-shadow: 0 70px 150px -30px rgba(0, 0, 0, .8), 0 24px 50px -16px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1); }
.term, .term * { transition-property: background-color, color, border-color; transition-duration: .45s; transition-timing-function: ease; }
.term-bar { height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--titlebar); }
.lights { display: flex; gap: 8px; margin-right: 12px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.tab { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 8px; border-radius: 12px; border: 1px solid transparent; font-size: 13px; font-weight: 500; letter-spacing: -.005em; color: var(--secondary); white-space: nowrap; min-width: 0; }
.tab img { width: 22px; height: 22px; border-radius: 6px; }
.tab.active { background: var(--pill); border-color: var(--pill-border); color: var(--label); }
.tab-meta { margin-left: 14px; font-size: 12px; font-weight: 600; color: var(--secondary); }
.tab-meta b { color: #30d158; font-size: 8px; vertical-align: 2px; }
.bar-icons { margin-left: auto; display: flex; gap: 12px; }
.bar-icons i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--secondary); opacity: .6; }
.term-body { padding: 8px 10px 10px; background: var(--backdrop); }
.pane { border-radius: 10px; border: 1px solid var(--focus); background: var(--bg); overflow: hidden; }
.pane-head { height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--secondary); }
.pane-head img { width: 18px; height: 18px; border-radius: 5px; }
.code { margin: 0; padding: 4px 16px 20px; min-height: 380px; font-family: var(--face), ui-monospace, monospace; font-size: var(--size); line-height: 1.55; letter-spacing: 0; color: var(--fg); white-space: pre; overflow: hidden; font-variant-ligatures: none; transition: font-size .25s var(--ease); }
.code .cur { display: inline-block; width: .6em; height: 1.15em; vertical-align: -.2em; background: var(--cursor); animation: blink 1.1s steps(1) infinite; }
.code .sel { background: var(--sel); border-radius: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* ─── Badge wall (Dawn) ──────────────────────────────────────────── */
.wall { max-width: 1240px; margin: 0 auto; padding: 170px var(--gutter) 0; }
.badges { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 14px; margin: 70px auto 0; max-width: 1100px; perspective: 1400px; }
.badges img { width: 100%; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateZ(-500px) scale(.6); transition: opacity .7s ease, transform 1s var(--ease), filter .6s; transition-delay: var(--d); }
.badges.in img { opacity: 1; transform: none; }
.badges img:hover { filter: brightness(1.25); transform: translateY(-4px); transition-delay: 0s; }

/* ─── Built for macOS (Dawn) ─────────────────────────────────────── */
.native { max-width: 1240px; margin: 0 auto; padding: 190px var(--gutter) 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 70px; border-radius: 22px; overflow: hidden; background: var(--hair); border: 1px solid var(--hair); }
.fact { padding: 34px 28px 36px; background: var(--void); }
.fact-word { font-size: 30px; font-weight: 650; letter-spacing: -.03em; background-image: var(--dawn); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.fact:nth-child(2) .fact-word { background-position: 33% 0; } .fact:nth-child(3) .fact-word { background-position: 66% 0; } .fact:nth-child(4) .fact-word { background-position: 100% 0; }
.fact p { margin: 12px 0 0; color: var(--dim); font-size: 16px; }
.facts .fact:nth-child(2) { transition-delay: .06s; } .facts .fact:nth-child(3) { transition-delay: .12s; } .facts .fact:nth-child(4) { transition-delay: .18s; }

/* ─── Closing ─────────────────────────────────────────────────────── */
.closing { position: relative; text-align: center; padding: 220px 22px 190px; margin-top: 110px; overflow: hidden; }
.final-light { position: absolute; inset: 0; pointer-events: none; }
.final-light img { position: absolute; left: 50%; bottom: -30%; width: max(1600px, 120vw); height: 120%; transform: translateX(-50%) rotate(180deg); object-fit: cover; mix-blend-mode: screen; opacity: .3;
  -webkit-mask-image: radial-gradient(ellipse 42% 44% at 50% 30%, #000 14%, transparent 70%); mask-image: radial-gradient(ellipse 42% 44% at 50% 30%, #000 14%, transparent 70%); }
.final-light .beam { background: radial-gradient(ellipse 34% 36% at 50% 55%, rgba(255, 244, 222, .1), rgba(255, 178, 62, .04) 40%, transparent 75%); }
.lockup { position: relative; }
.lockup-icon { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.lockup-icon img { position: absolute; width: 164px; height: 164px; max-width: none; left: -16px; top: -16px; }
.closing-name { margin: 26px 0 0; font-size: clamp(56px, 8vw, 96px); line-height: 1; font-weight: 700; letter-spacing: -.05em; }
.closing-tag { margin: 18px 0 40px; font-size: clamp(22px, 3vw, 32px); font-weight: 600; letter-spacing: -.03em; color: var(--dim); }
.closing .fine { margin-top: 24px; color: rgba(255, 255, 255, .5); }

.footer { border-top: 1px solid var(--hair); padding: 28px 0 44px; font-size: 12px; color: var(--faint); letter-spacing: -.01em; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { width: 20px; height: 20px; }
.footer nav { display: flex; gap: 22px; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--text); }

/* ─── Launch film (Dawn) ─────────────────────────────────────────── */
.film { max-width: 1240px; margin: 0 auto; padding: 190px var(--gutter) 0; scroll-margin-top: 20px; }
.film-frame { margin-top: 64px; border-radius: 20px; }
.film-frame video { aspect-ratio: 16 / 9; width: 100%; }
.film-play { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 18px; white-space: nowrap;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(10, 12, 22, .45); color: #fff; font: 600 16px var(--ui); letter-spacing: -.01em; cursor: pointer;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); transition: background .25s, transform .3s var(--ease); }
.film-play svg { width: 16px; height: 16px; fill: #fff; }
.film-play span { font-weight: 500; color: rgba(255, 255, 255, .6); margin-left: 4px; }
.film-play:hover { background: rgba(10, 12, 22, .62); transform: translateX(-50%) translateY(-1px); }
.film-play:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.film-frame.playing .film-play { display: none; }


/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .studio { grid-template-columns: minmax(0, 1fr) minmax(190px, 240px); }
  .studio-preview { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .studio { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .faces { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 1000px) {
  .chapter, .chapter[data-side="text-right"] { grid-template-columns: minmax(0, 1fr); padding-top: 110px; }
  .chapter[data-side="text-right"] .copy { order: 0; }
  .tilt, .chapter[data-side="text-right"] .tilt { --ry: 0deg; --rx: 0deg; }
  .inset { width: 44%; right: -2%; bottom: -12%; }
  .chapter[data-side="text-right"] .inset { left: auto; right: -2%; }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .badges { grid-template-columns: repeat(8, minmax(0, 1fr)); max-width: 600px; }
}
@media (max-width: 700px) {
  .stats { padding-top: 96px; }
  .stats-head { margin-bottom: 34px; }
  body { font-size: 16px; }
  .nav-links { display: none; }
  .brand { margin-right: auto; }
  .hero { padding-top: 96px; }
  .hero-icon { width: 100px; height: 100px; }
  .hero-icon img { width: 124px; height: 124px; left: -12px; top: -12px; }
  .eyebrow { font-size: 17px; margin-top: 26px; }
  .br-desktop { display: none; }
  .actions { gap: 22px; margin-top: 28px; }
  .stage { margin-top: 52px; width: calc(100% - 28px); }
  .recognizes { margin-top: 56px; }
  .recognizes-copy { font-size: 18px; }
  .badge-track { gap: 12px; }
  .badge-track img { width: 46px; height: 46px; border-radius: 11px; }
  .copy p, .center-copy { font-size: 17px; }
  .keyrow { grid-template-columns: 1fr; }
  .more, .wall { padding-top: 120px; }
  .native, .film { padding-top: 130px; }
  .facts { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .themes { margin-top: 90px; padding: 90px 0 100px; }
  .term-bar .tab:not(.active), .bar-icons { display: none; }
  .code { min-height: 0; padding: 4px 12px 16px; font-size: min(var(--size), 12px); overflow-x: auto; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .swatch { font-size: 13px; gap: 9px; }
  .swatch-mini { flex-basis: 46px; height: 34px; }
  .film-play { height: 38px; padding: 0 15px 0 12px; font-size: 13.5px; gap: 7px; bottom: 3%; }
  .film-play svg { width: 13px; height: 13px; }
  .closing { padding: 140px 22px 120px; margin-top: 60px; }
  .lockup-icon { width: 104px; height: 104px; }
  .lockup-icon img { width: 129px; height: 129px; left: -12.5px; top: -12.5px; }
}

/* ?still — deterministic screenshots: everything shown, posters instead of playback. */
.still .reveal, .still .words .w, .still .rise, .still .badges img { opacity: 1; transform: none; filter: none; transition: none; animation: none; }
.still .grain, .still .badge-track, .still .dust { animation: none; }
.still .numbers *, .still .numbers *::after, .still .stat { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .badge-track, .dust, .code .cur { animation: none; }
  .words .w, .rise { animation: none; opacity: 1; transform: none; filter: none; }
  .reveal, .badges img { opacity: 1; transform: none; transition: none; }
  .window3d { --rx: 0deg !important; --s: 1 !important; }
  .tilt { transform: none; }
  .numbers *, .numbers *::after, .stat { transition: none !important; animation: none !important; }
}
