/* =============================================================================
   telos — the release page (/apps/telos.html)
   -----------------------------------------------------------------------------
   A telos page, not a ryderkatz.com page: no global.css, no site nav, no portal
   law. Edge to edge, scene by scene, in the app's own identity — the v20 open
   ring on its cerulean sky, Space Grotesk for display, the system face for
   reading. Tokens are telos's (telos/Sources/UI/Theme.swift, v20+).

   Scenes: a [data-scene] is a tall track with a sticky stage inside; telos.js
   writes its scroll progress to --p (0 → 1) and drives the per-scene motion.
============================================================================= */

:root {
  --black: #000;
  --night: #05070c;
  --navy: #071427;
  --paper: #f5f5f7;
  --paper-2: #fbfbfd;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --mute: #86868b;
  --mute-d: #a1a1a6;
  --line-d: rgba(255, 255, 255, .12);
  --line-l: rgba(0, 0, 0, .1);

  /* telos (Theme.swift) */
  --accent: #2F8BE0;
  --accent-hi: #5FAEEE;
  --accent-deep: #1F6FC0;
  --sky-top: #2F8BE0;
  --sky-foot: #7DC4F5;
  --telos-ink: #0A3560;
  --sun: #E0A63C;
  --lilac: #8A6FC9;
  --work: #5A7AB8;
  --good: #3E8E5A;
  --agent: #6E8F2A;
  --r-files: #946903;
  --r-bookmarks: #468338;
  --r-downloads: #038187;
  --r-history: #91579E;

  --soon: #FFD60A;
  --soon-ink: #1d1d1f;

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: max(22px, 5.2vw);
  --nav-h: 52px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--black); }
body {
  color: #f5f5f7;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in srgb, var(--accent) 55%, transparent); color: #fff; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--display);
  font-size: 19px; font-weight: 600; letter-spacing: -.01em;
  margin: 0 0 14px;
}
.eyebrow.sky { color: var(--accent-hi); }
.eyebrow.sun { color: var(--sun); }
.eyebrow.lilac { color: #b39ce8; }
.headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0;
  text-wrap: balance;
}
.headline.xl { font-size: clamp(52px, 9vw, 144px); letter-spacing: -.05em; line-height: .96; }
.lede {
  font-size: clamp(19px, 1.65vw, 24px);
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: -.018em;
  color: var(--mute-d);
  max-width: 34em;
  margin: 22px 0 0;
  text-wrap: pretty;
}
.lede b, .lede strong { color: #f5f5f7; font-weight: 600; }
.light .lede { color: var(--ink-2); }
.light .lede b, .light .lede strong { color: var(--ink); }
.grad-sky {
  background: linear-gradient(100deg, #9fd3ff 0%, var(--accent-hi) 38%, var(--accent) 70%, #a5d8ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-sun {
  background: linear-gradient(100deg, #ffe08a, var(--sun) 45%, #e0602a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-dusk {
  background: linear-gradient(100deg, #b39ce8, #e58fb1 50%, var(--sun));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- the coming-soon pill ---------- */
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--soon); color: var(--soon-ink);
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 8px 24px -10px rgba(255, 214, 10, .7);
}
.soon::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--soon-ink); opacity: .85;
}
.soon.lg { height: 44px; padding: 0 22px 0 18px; font-size: 16px; gap: 10px; }
.soon.lg::before { width: 9px; height: 9px; }

/* ---------- local nav ---------- */
.lnav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 22px;
  padding: 0 var(--gutter);
  background: rgba(10, 10, 12, .62);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .4s ease, border-color .4s ease, color .4s ease;
}
.lnav.on-light {
  background: rgba(251, 251, 253, .72);
  border-bottom-color: rgba(0, 0, 0, .08);
  color: var(--ink);
}
.lnav-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--mute-d); letter-spacing: 0;
  padding-right: 18px; border-right: 1px solid rgba(255, 255, 255, .14);
  height: 18px;
}
.lnav.on-light .lnav-back { color: var(--mute); border-right-color: rgba(0, 0, 0, .12); }
.lnav-back:hover { color: inherit; }
.lnav-back svg { width: 11px; height: 11px; }
.lnav-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.03em;
}
.lnav-brand img { width: 24px; height: 24px; }
.lnav-links {
  display: flex; gap: 26px; margin-left: auto;
  font-size: 12px; letter-spacing: -.01em;
}
.lnav-links a { color: var(--mute-d); transition: color .2s; }
.lnav.on-light .lnav-links a { color: var(--ink-2); }
.lnav-links a:hover, .lnav-links a.is-here { color: inherit; }
.lnav .soon { height: 26px; font-size: 11px; padding: 0 12px 0 10px; }
@media (max-width: 860px) {
  .lnav-links { display: none; }
  .lnav .soon { margin-left: auto; }
}
@media (max-width: 420px) { .lnav-back span { display: none; } .lnav-back { padding-right: 12px; } }

/* ---------- scenes ---------- */
[data-scene] { position: relative; }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.section { position: relative; padding: clamp(110px, 14vw, 200px) var(--gutter); }
.light { background: var(--paper); color: var(--ink); }
.white { background: #fff; color: var(--ink); }
.wrap { max-width: 1240px; margin: 0 auto; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* reveal-on-enter */
[data-reveal] {
  opacity: 0; transform: translateY(42px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* =========================================================================
   1 · HERO — the ring, then through it
   ========================================================================= */
.hero { height: 280vh; background: var(--black); }
.hero .stage { display: grid; place-items: center; }
.hero-stars {
  position: absolute; inset: -6%;
  width: 112%; height: 112%;
  transform: scale(calc(1 + var(--p, 0) * .35));
  opacity: calc(1 - var(--fade, 0));
}
.hero-glow {
  position: absolute; left: 50%; top: 50%;
  width: 120vmax; height: 120vmax; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(47, 139, 224, .32), rgba(47, 139, 224, .08) 45%, transparent 70%);
  opacity: calc(.9 - var(--fade, 0) * .9);
  pointer-events: none;
}
/* The hero ends on one flat cerulean, and the start-page stage begins on the
   same one: two sticky stages handing over with no seam between them. */
.hero-sky {
  position: absolute; inset: 0;
  background: var(--handoff);
  opacity: var(--sky, 0);
}
:root { --handoff: #3E95E4; }
.hero-ring {
  position: absolute; left: 50%; top: 41%;
  width: min(74vmin, 780px); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(var(--ring, 1));
  will-change: transform;
  filter: drop-shadow(0 0 28px rgba(95, 174, 238, .55)) drop-shadow(0 0 2px rgba(255, 255, 255, .6));
  opacity: var(--ring-o, 1);
}
.hero-ring path {
  fill: none; stroke: #fff; stroke-width: 6.2; stroke-linecap: round;
  stroke-dasharray: 140; stroke-dashoffset: 140;
  animation: ring-draw 2.2s .25s var(--ease-out) forwards;
}
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
.hero-word {
  position: absolute; left: 50%; top: 41%;
  transform: translate(-50%, -54%) translateY(calc(var(--lift, 0) * -40px));
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: min(13vmin, 140px); letter-spacing: -.06em; line-height: 1;
  opacity: calc(1 - var(--lift, 0));
  animation: rise 1.6s .9s var(--ease-out) both;
}
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: max(7vh, 46px);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center; padding: 0 var(--gutter);
  opacity: calc(1 - var(--lift, 0) * 1.4);
  transform: translateY(calc(var(--lift, 0) * 30px));
}
.hero-tag {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 3.2vw, 40px); letter-spacing: -.035em; line-height: 1.1;
  animation: rise 1.4s 1.25s var(--ease-out) both;
}
.hero-sub {
  margin: 0; color: var(--mute-d); font-size: clamp(15px, 1.3vw, 19px);
  animation: rise 1.4s 1.45s var(--ease-out) both;
}
.hero-foot .soon { animation: rise 1.4s 1.6s var(--ease-out) both; }
.hero-cue {
  width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .35);
  position: relative; animation: rise 1.4s 2s var(--ease-out) both;
}
.hero-cue::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px;
  background: #fff; transform: translateX(-50%); animation: cue 2.2s 2.6s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); opacity: 1; } 60% { transform: translate(-50%, 10px); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.hero-word { animation-name: rise-word; }
@keyframes rise-word { from { opacity: 0; filter: blur(14px); } }

/* =========================================================================
   2 · THE START PAGE — a day on one page
   ========================================================================= */
.day { height: 560vh; background: #0b1626; }
.day .stage { background: var(--handoff); }
.day-head {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 4vh);
  text-align: center; padding: 0 var(--gutter); z-index: 3;
  opacity: calc(1 - var(--hd, 0)); transform: translateY(calc(var(--hd, 0) * -50px));
}
.day-head .headline { color: #fff; text-shadow: 0 2px 30px rgba(10, 53, 96, .25); }
.day-head .lede { color: rgba(255, 255, 255, .86); margin-left: auto; margin-right: auto; }
.day-head .eyebrow { color: #fff; opacity: .9; }
.day-frame {
  position: absolute; left: 50%; top: 50%;
  width: 100vw; height: 100vh; height: 100svh;
  transform: translate(-50%, calc(-50% + var(--fy, 0) * 1vh)) scale(var(--fs, 1));
  border-radius: calc(var(--fr, 0) * 1px);
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(10, 53, 96, .55), 0 0 0 1px rgba(255, 255, 255, .25);
  background: #0b1626;
  will-change: transform;
}
.day-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 12%;
}
.day-head .headline { font-size: clamp(40px, 5.6vw, 84px); }
.day-head .lede { max-width: 30em; }
.day-frame img + img { opacity: 0; }
.day-chip {
  position: absolute; left: var(--gutter); bottom: max(6vh, 30px); z-index: 4;
  display: flex; align-items: center; gap: 18px;
  padding: 16px 24px 16px 18px; border-radius: 22px;
  background: rgba(16, 20, 28, .38);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  opacity: var(--chip, 0); transform: translateY(calc((1 - var(--chip, 0)) * 20px));
}
.day-arc { width: 74px; height: 40px; flex: none; }
.day-arc path { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; stroke-dasharray: 2 3; }
.day-arc circle { fill: var(--sun); filter: drop-shadow(0 0 6px var(--sun)); }
.day-time { font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: -.04em; line-height: 1; }
.day-time small { font-size: 16px; font-weight: 500; opacity: .7; margin-left: 3px; letter-spacing: 0; }
.day-cap { font-size: 14px; line-height: 1.3; opacity: .82; margin-top: 4px; letter-spacing: -.01em; }
.day-steps {
  position: absolute; right: var(--gutter); bottom: max(6vh, 30px); z-index: 4;
  display: flex; gap: 8px; opacity: var(--chip, 0);
}
.day-steps i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background .3s, transform .3s; }
.day-steps i.on { background: #fff; transform: scale(1.25); }
@media (max-width: 640px) { .day-steps { display: none; } .day-time { font-size: 28px; } }

/* =========================================================================
   3 · TONIGHT'S REAL SKY
   ========================================================================= */
.realsky { min-height: 112vh; display: grid; align-items: center; overflow: hidden; background: #02040a; }
.sky-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 50%;
  transform: scale(calc(1.12 - var(--sp, 0) * .12));
}
.realsky::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 4, 10, .92) 0%, rgba(2, 4, 10, .7) 34%, rgba(2, 4, 10, 0) 64%),
    linear-gradient(180deg, #000 0%, transparent 18%, transparent 80%, #000 100%);
}
.realsky .wrap { position: relative; z-index: 2; width: 100%; }
.sky-copy { max-width: 720px; }
.sky-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 40px; margin-top: 56px; justify-content: start; }
.stat-num { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 4.4vw, 64px); letter-spacing: -.05em; line-height: 1; }
.stat-lbl { font-size: 14px; color: var(--mute-d); margin-top: 8px; line-height: 1.35; max-width: 15em; }
.light .stat-lbl { color: var(--mute); }
@media (max-width: 760px) {
  .realsky { align-items: end; padding-bottom: 90px; }
  .realsky::before { background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.1) 25%, rgba(2,4,10,.85) 62%, #02040a 100%); }
  .sky-stats { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* =========================================================================
   4 · THE DISPATCH
   ========================================================================= */
.dispatch { height: 420vh; background: var(--paper); color: var(--ink); }
.dispatch .stage { display: flex; flex-direction: column; justify-content: center; padding: var(--nav-h) var(--gutter) 0; }
.dispatch-head { text-align: center; max-width: 980px; margin: 0 auto; }
.dispatch-head .lede { margin-left: auto; margin-right: auto; }
.dbar-wrap { width: min(860px, 100%); margin: clamp(36px, 6vh, 72px) auto 0; position: relative; }
.dbar {
  display: flex; align-items: center; gap: 12px;
  height: 68px; padding: 0 12px 0 10px; border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .04), 0 24px 60px -24px rgba(31, 111, 192, .35);
  outline: 2px solid color-mix(in srgb, var(--accent) calc(var(--focus, 0) * 70%), transparent);
  outline-offset: 2px;
}
.dbar-route {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 12px; border-radius: 12px;
  background: #f2f2f4; font-family: var(--display); font-weight: 600; font-size: 16px;
  white-space: nowrap; min-width: 128px;
  transition: background .25s;
}
.dbar-route .rt-dot { width: 22px; height: 22px; }
.dbar-route .caret { width: 10px; height: 10px; opacity: .5; margin-left: auto; }
.dbar-q {
  flex: 1; min-width: 0; font-size: clamp(17px, 2vw, 24px); letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; color: var(--ink);
}
.dbar-q .ph { color: #a1a1a6; }
.dbar-q .cursor { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -.15em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dbar-key {
  font-family: var(--mono); font-size: 13px; color: var(--mute);
  border: 1px solid rgba(0, 0, 0, .12); border-radius: 7px; padding: 5px 9px; flex: none;
}
.droutes {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 18px;
}
.rt {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 16px 0 8px; border-radius: 13px;
  background: #fff; font-family: var(--display); font-weight: 600; font-size: 15px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07);
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), box-shadow .25s, background .25s, color .25s;
  transition-delay: calc(var(--i, 0) * 35ms);
}
.droutes.on .rt { opacity: 1; transform: none; }
.rt.sel { background: var(--ink); color: #fff; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .45); transform: translateY(-2px) scale(1.04); }
.rt-dot {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none;
  color: #fff; font-size: 13px; font-weight: 700; font-family: var(--display);
  background: var(--c, #888);
}
.rt-dot svg { width: 15px; height: 15px; }
.dland {
  margin: 26px auto 0; text-align: center; min-height: 28px;
  font-size: 17px; color: var(--ink-2);
  opacity: var(--land, 0); transform: translateY(calc((1 - var(--land, 0)) * 12px));
}
.dland b { color: var(--ink); }
.dland .arrow { color: var(--accent); font-weight: 700; margin-right: 6px; }
.dispatch-note {
  position: absolute; left: 0; right: 0; bottom: max(5vh, 24px);
  text-align: center; font-size: 13px; color: var(--mute);
}
@media (max-width: 700px), (max-height: 760px) { .dispatch-note { display: none; } }
.dispatch-note kbd { font-family: var(--mono); font-size: 12px; border: 1px solid rgba(0,0,0,.14); border-radius: 5px; padding: 1px 6px; }

/* =========================================================================
   5 · SCRUBBED STATEMENT — everything survives quit
   ========================================================================= */
.scrub { height: 260vh; background: #fff; color: var(--ink); }
.scrub .stage { display: grid; place-items: center; padding: 0 var(--gutter); }
.scrub-text {
  max-width: 1200px; margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 7.4vw, 118px); line-height: 1; letter-spacing: -.05em;
  text-wrap: balance;
}
.scrub-text .w { opacity: .12; transition: opacity .25s linear; }
.scrub-text .w.lit { opacity: 1; }
.scrub-text .w.sky { color: var(--accent); }
.scrub-quote {
  max-width: 760px; margin: 44px 0 0; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.4; color: var(--ink-2);
  font-weight: 500; opacity: var(--q, 0); transform: translateY(calc((1 - var(--q, 0)) * 20px));
}
.scrub-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; color: var(--mute); letter-spacing: 0; }

/* =========================================================================
   6 · PRINCIPLES — a sideways gallery
   ========================================================================= */
.htrack-scene { background: var(--black); }
.htrack-scene .stage { display: flex; flex-direction: column; justify-content: center; }
.htrack-head { padding: 0 var(--gutter); margin-bottom: clamp(28px, 5vh, 56px); }
.htrack {
  display: flex; gap: clamp(16px, 2vw, 28px);
  padding: 0 var(--gutter);
  transform: translate3d(calc(var(--tx, 0) * -1px), 0, 0);
  will-change: transform;
}
.principles { height: 360vh; }
.pcard {
  flex: none; width: min(78vw, 520px); min-height: min(62vh, 560px);
  border-radius: 30px; padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; justify-content: space-between;
  background: #111114;
  border: 1px solid rgba(255, 255, 255, .07);
  position: relative; overflow: hidden;
}
.pcard::after {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%;
  background: radial-gradient(closest-side, var(--glow, rgba(47, 139, 224, .35)), transparent);
  opacity: .9; pointer-events: none;
}
.pcard-n { font-family: var(--mono); font-size: 13px; color: var(--mute-d); letter-spacing: .04em; }
.pcard-q {
  font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3vw, 46px);
  line-height: 1.04; letter-spacing: -.045em; margin: 0; position: relative; z-index: 1;
}
.pcard-b { color: var(--mute-d); font-size: 16px; line-height: 1.45; margin: 18px 0 0; position: relative; z-index: 1; max-width: 26em; }
.pcard-ico { width: 54px; height: 54px; position: relative; z-index: 1; }

/* =========================================================================
   7 · WORLDS
   ========================================================================= */
.worlds { background: var(--black); }
.worlds-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 64px);
  align-items: center; margin-top: 72px;
}
.wlist { display: grid; gap: 14px; }
.wrow {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center;
  padding: 20px 22px; border-radius: 22px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 16%, #0d0d10), #0d0d10 70%);
  border: 1px solid color-mix(in srgb, var(--c) 24%, transparent);
}
.wdot {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 26px -12px var(--c);
}
.wdot svg { width: 26px; height: 26px; color: #fff; }
.wname { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.035em; }
.wdesc { color: var(--mute-d); font-size: 15px; line-height: 1.4; margin-top: 2px; }
.wrow.incog { --c: #3a3a3f; }
@media (max-width: 900px) { .worlds-grid { grid-template-columns: 1fr; } }

/* devices */
.phone {
  position: relative; width: min(330px, 74vw); aspect-ratio: 1206 / 2622;
  border-radius: 54px; padding: 11px;
  background: linear-gradient(145deg, #3b3b40, #151517 40%, #2a2a2e);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 50px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px #000;
  margin: 0 auto;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 44px; background: #fff; }
.phone::after {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 31%; height: 30px; border-radius: 20px; background: #000;
}
.display {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 60px 120px -50px rgba(0, 0, 0, .55);
}
.display .bar {
  height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 13px;
  background: linear-gradient(#ececee, #e2e2e5); border-bottom: 1px solid rgba(0,0,0,.08);
}
.display.dark .bar { background: linear-gradient(#2c2c2f, #232326); border-bottom-color: rgba(255,255,255,.06); }
.display .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.display .bar i:nth-child(2) { background: #febc2e; }
.display .bar i:nth-child(3) { background: #28c840; }
.display img { width: 100%; }

/* =========================================================================
   8 · SPLITS
   ========================================================================= */
.splits { height: 240vh; background: var(--paper); color: var(--ink); }
.splits .stage { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 3vh) var(--gutter) 4vh; perspective: 1600px; }
.splits-head { text-align: center; margin-bottom: clamp(24px, 4vh, 44px); }
.splits-head .lede { margin-left: auto; margin-right: auto; }
.splits .display {
  width: min(1180px, 92vw);
  transform: rotateX(calc((1 - var(--e, 0)) * 26deg)) scale(calc(.82 + var(--e, 0) * .18)) translateY(calc((1 - var(--e, 0)) * 60px));
  transform-origin: 50% 100%;
  max-height: 62vh;
}
.splits .display img { height: calc(62vh - 30px); object-fit: cover; object-position: top center; }

/* =========================================================================
   9 · SHIELD
   ========================================================================= */
.shield { background: radial-gradient(120% 80% at 50% 0%, #0d2a4d 0%, var(--navy) 35%, #020509 100%); overflow: hidden; }
.shield-badge { width: clamp(84px, 9vw, 120px); margin: 0 auto 30px; filter: drop-shadow(0 0 40px rgba(95,174,238,.55)); }
.shield-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin: 80px auto 0; max-width: 1100px; border-radius: 26px; overflow: hidden;
  background: rgba(255, 255, 255, .08);
}
.shield-stats > div { background: rgba(4, 12, 24, .82); padding: 38px 32px; }
.shield-stats .stat-num { font-size: clamp(38px, 4vw, 58px); }
.shield-shot { max-width: 1100px; margin: 80px auto 0; }
.shield-shot .display { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 80px 140px -50px rgba(47, 139, 224, .45); }
.shield-pledge {
  margin: 90px auto 0; max-width: 900px; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.045em; line-height: 1.06;
}
.shield-pledge span { color: var(--mute-d); }
@media (max-width: 760px) { .shield-stats { grid-template-columns: 1fr; } }

/* =========================================================================
   10 · ORACLE + LEXICON
   ========================================================================= */
.oracle { background: #fff; color: var(--ink); overflow: hidden; }
.oracle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.oracle-pane {
  position: relative; width: min(420px, 100%); margin: 0 auto;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 50px 100px -40px rgba(31, 111, 192, .45);
}
.oracle-orbit {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: 150%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(95, 174, 238, .28), transparent 70%);
}
.oracle-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 28px; margin-top: 48px; }
.oracle-stats .stat-num { font-size: clamp(34px, 3.4vw, 50px); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip {
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  background: #f0f5fc; color: var(--accent-deep); letter-spacing: -.005em;
}
.lexicon {
  margin-top: clamp(90px, 10vw, 150px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 5vw, 80px); align-items: center;
  padding: clamp(36px, 5vw, 64px); border-radius: 32px;
  background: var(--paper);
}
.lex-flow { display: flex; align-items: baseline; gap: 18px; font-family: var(--display); font-weight: 700; letter-spacing: -.05em; }
.lex-flow .n { font-size: clamp(56px, 7vw, 104px); line-height: 1; }
.lex-flow .u { font-size: 15px; font-weight: 600; color: var(--mute); letter-spacing: -.01em; display: block; margin-top: 6px; }
.lex-flow .to { font-size: 40px; color: var(--accent); }
@media (max-width: 900px) { .oracle-grid, .lexicon { grid-template-columns: 1fr; } }

/* =========================================================================
   11 · AN APP WITHIN AN APP — the sideways gallery of surfaces
   ========================================================================= */
.gallery { height: 480vh; background: #0b0b0d; }
/* sized off the viewport's height so a card and its caption always fit under the head */
.gcard {
  flex: none; width: min(84vw, 1020px, calc((100svh - 320px) * 1.54));
  display: flex; flex-direction: column; gap: 18px;
}
.gallery .headline { font-size: clamp(34px, 4.4vw, 68px); }
.gallery .htrack-head { margin-bottom: clamp(20px, 3vh, 36px); }
.gcard .display { aspect-ratio: 16 / 10.4; }
.gcard .display img { height: calc(100% - 30px); object-fit: cover; object-position: top left; }
.gcard-cap { display: flex; gap: 18px; align-items: baseline; padding: 0 6px; }
.gcard-cap h3 { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.035em; white-space: nowrap; }
.gcard-cap p { margin: 0; color: var(--mute-d); font-size: 16px; line-height: 1.4; }
.gcard.narrow { width: min(84vw, 760px); }
@media (max-width: 640px) { .gcard-cap { flex-direction: column; gap: 4px; } }

/* =========================================================================
   12 · ~/telos — the folder
   ========================================================================= */
.folder { background: var(--black); }
.folder-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 100px); align-items: center; }
.tree {
  font-family: var(--mono); font-size: clamp(13px, 1.15vw, 16px); line-height: 2;
  padding: 30px 34px; border-radius: 22px;
  background: linear-gradient(180deg, #121216, #0b0b0e);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 50px 120px -60px rgba(47, 139, 224, .5);
  overflow-x: auto;
}
.tree .ln { display: block; white-space: pre; opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.tree.in .ln { opacity: 1; transform: none; }
.tree .dir { color: var(--accent-hi); font-weight: 600; }
.tree .dim { color: #5c5c63; }
.tree .md { color: #f5f5f7; }
.tree .csv { color: var(--sun); }
.tree .eml { color: #b39ce8; }
.tree .note { color: #6e6e75; }
@media (max-width: 900px) { .folder-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   13 · BENTO — everything else that ships inside
   ========================================================================= */
.bento-sec { background: var(--paper); color: var(--ink); }
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 64px;
}
.tile {
  grid-column: span 2; border-radius: 28px; padding: 30px 30px 32px;
  background: #fff; min-height: 260px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
}
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile.dark { background: #0d0d10; color: #f5f5f7; }
.tile.sky { background: linear-gradient(170deg, var(--sky-top), var(--sky-foot)); color: #fff; }
.tile h3 { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: -.035em; line-height: 1.08; }
.tile p { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.tile.dark p { color: var(--mute-d); }
.tile.sky p { color: rgba(255,255,255,.88); }
.tile-ico { width: 44px; height: 44px; color: var(--accent); }
.tile.dark .tile-ico { color: var(--accent-hi); }
.tile.sky .tile-ico { color: #fff; }
.tile-big { font-family: var(--display); font-weight: 700; font-size: clamp(54px, 6vw, 88px); letter-spacing: -.06em; line-height: .9; }
.path {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--display); font-weight: 600; font-size: 14px;
}
.path span { padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.path i { width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-hi)); position: relative; }
.path i::after { content: ""; position: absolute; right: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 8px var(--accent-hi); }
.docs { display: flex; gap: 10px; }
.docs b {
  font-family: var(--display); font-size: 13px; letter-spacing: .02em;
  width: 58px; height: 72px; border-radius: 8px; display: grid; place-items: end start; padding: 8px;
  color: #fff; background: var(--c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 24px -12px var(--c);
}
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.w3, .tile.w4 { grid-column: span 2; }
}
@media (min-width: 640px) and (max-width: 980px) {
  .tile { grid-column: span 1; }
}

/* =========================================================================
   14 · iPHONE + iCLOUD
   ========================================================================= */
.iphone { background: linear-gradient(180deg, #fff 0%, #eaf4fd 60%, #cfe6fb 100%); color: var(--ink); overflow: hidden; }
.phones { display: flex; justify-content: center; gap: clamp(20px, 5vw, 80px); margin-top: 80px; align-items: flex-start; }
.phones .phone { width: min(300px, 42vw); }
.phones .phone:nth-child(1) { transform: translateY(calc(var(--pp, 0) * 60px)); }
.phones .phone:nth-child(2) { transform: translateY(calc(80px - var(--pp, 0) * 60px)); }
.sync-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 110px;
  max-width: 1100px; margin-left: auto; margin-right: auto;
}
.sync-row h4 { margin: 0 0 6px; font-family: var(--display); font-size: 19px; letter-spacing: -.03em; }
.sync-row p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 860px) { .sync-row { grid-template-columns: 1fr 1fr; } }

/* =========================================================================
   15 · PROGRESS — 104 days
   ========================================================================= */
.progress { background: var(--black); }
.big-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 80px;
  background: rgba(255,255,255,.1); border-radius: 28px; overflow: hidden;
}
.big-stats > div { background: #0b0b0d; padding: 40px 30px; }
.big-stats .stat-num { font-size: clamp(40px, 4.8vw, 74px); }
@media (max-width: 860px) { .big-stats { grid-template-columns: 1fr 1fr; } }
.chart-card {
  margin-top: 26px; border-radius: 28px; background: #0b0b0d; border: 1px solid rgba(255,255,255,.08);
  padding: clamp(24px, 3.4vw, 46px);
}
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.chart-head h3 { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.035em; }
.chart-head p { margin: 0; color: var(--mute-d); font-size: 14px; }
.chart { width: 100%; height: auto; margin-top: 30px; overflow: visible; }
.chart .grid line { stroke: rgba(255,255,255,.07); }
.chart .axis text { fill: #6e6e75; font-family: var(--text); font-size: 11px; letter-spacing: 0; }
.chart .area { fill: url(#chart-fill); opacity: 0; transition: opacity 1.4s .9s ease; }
.chart .line { fill: none; stroke: var(--accent-hi); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; transition: stroke-dashoffset 2.6s var(--ease-out); }
.chart .pt { fill: #0b0b0d; stroke: var(--accent-hi); stroke-width: 2; opacity: 0; transition: opacity .4s; }
.chart .lbl { fill: #f5f5f7; font-family: var(--display); font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .6s; }
.chart .lbl.dim { fill: #8e8e93; font-weight: 500; }
.chart-card.in .area { opacity: 1; }
.chart-card.in .pt, .chart-card.in .lbl { opacity: 1; transition-delay: calc(.4s + var(--i, 0) * 60ms); }
.heat { display: grid; grid-template-columns: repeat(var(--days), 1fr); gap: 2px; margin-top: 18px; }
.heat i { aspect-ratio: 1 / 2.4; border-radius: 3px; background: color-mix(in srgb, var(--accent-hi) calc(var(--v) * 100%), #18181c); }
.heat-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; color: #6e6e75; }
.eras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 26px; border-radius: 28px; overflow: hidden; background: rgba(255,255,255,.08); }
.era { background: #0b0b0d; padding: 28px 26px 30px; }
.era-d { font-family: var(--mono); font-size: 12px; color: var(--accent-hi); letter-spacing: .02em; }
.era h4 { margin: 10px 0 8px; font-family: var(--display); font-size: 21px; letter-spacing: -.03em; line-height: 1.1; }
.era p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--mute-d); }
@media (max-width: 980px) { .eras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eras, .big-stats { grid-template-columns: 1fr; } }

/* =========================================================================
   16 · CLOSE
   ========================================================================= */
.close {
  min-height: 100vh; display: grid; place-items: center; text-align: center;
  background: radial-gradient(80% 60% at 50% 46%, rgba(47, 139, 224, .26), transparent 70%), var(--black);
  overflow: hidden;
}
.close-icon {
  width: clamp(130px, 15vw, 200px); margin: 0 auto 40px;
  border-radius: 22.5%;
  box-shadow: 0 40px 90px -30px rgba(47, 139, 224, .8), 0 0 0 1px rgba(255,255,255,.08);
}
.close .headline { font-size: clamp(64px, 11vw, 168px); }
.close .soon { margin-top: 34px; }
.define {
  margin: 70px auto 0; max-width: 620px; color: var(--mute-d); font-size: 16px; line-height: 1.55;
}
.define dfn { font-style: normal; font-family: var(--display); font-weight: 700; color: #f5f5f7; font-size: 20px; letter-spacing: -.03em; }
.define .ph { font-family: var(--mono); font-size: 13px; color: var(--mute); margin: 0 6px; }
.define blockquote { margin: 18px 0 0; font-size: 18px; color: #f5f5f7; font-weight: 500; }
.define blockquote cite { display: block; font-size: 13px; color: var(--mute); font-style: normal; margin-top: 6px; }

.foot {
  background: var(--black); color: var(--mute); font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px var(--gutter) 40px;
}
.foot .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--mute-d); }
.foot a:hover { color: #fff; }

/* =========================================================================
   reduced motion — every scene rests in its finished state, nothing scrubs
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-ring path { animation: none; stroke-dashoffset: 0; }
  .hero-word, .hero-tag, .hero-sub, .hero-foot .soon, .hero-cue { animation: none; }
  .hero-cue::after { animation: none; }
  .tree .ln { opacity: 1; transform: none; }
}
/* telos.js marks <html class="rm">: tall scroll tracks collapse to one screen */
.rm [data-scene]:not([data-pass]) { height: auto; }
.rm .stage { position: relative; }
.rm .htrack { overflow-x: auto; transform: none; padding-bottom: 20px; }
