/* The official site (about.html). The app's own look, measured: its cool paper by day and plain greys by night, ink
   #1C2430, hairline axes, tracked mono labels with slashed zeros, a book serif for the words that talk to you, and one
   colour, the depth ultramarine, only where Z is (app/css/tokens.css). The first two parts are always night, as a film
   is; the rest follow the system. Every part is a level: Z 0 at the top, Z 6 at the bottom, the gauge at the right says
   which. Motion is the page going down (web/coordxyz-about.js); with reduced motion each part is shown as it ends. */
:root {
  --bg: #F2F4F7; --bg-2: #E4E8EE; --surface: #FAFBFD; --ink: #1C2430; --ink-2: #4B5765; --ink-3: #677483;
  --rule: #D3DAE2; --rule-2: #C3CCD6; --dot: #CDD4DE; --z: #2E3CF0; --z-soft: rgba(46, 60, 240, .1); --z-ink: #2E3CF0;
  --btn: #1C2430; --on-btn: #F2F4F7; --task: #94582A; --reply: #467047; --event: #2E3CF0; --call: #93536E;
  --f-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-d: "Newsreader", Georgia, "Songti SC", "STSong", serif;
  --f-m: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1180px; --pad: max(24px, env(safe-area-inset-left)); --nav: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D10; --bg-2: #121418; --surface: #1A1D22; --ink: #ECEEF2; --ink-2: #A9B0BA; --ink-3: #8B95A3;
    --rule: #232933; --rule-2: #313844; --dot: #22262D; --z: #8E97FF; --z-soft: rgba(142, 151, 255, .14); --z-ink: #A3AAFF;
    --btn: #ECEEF2; --on-btn: #0B0D10; --task: #E2A66E; --reply: #8FC78F; --event: #A3AAFF; --call: #E0A0BC;
    color-scheme: dark;
  }
}
/* the film's night, whatever the system: the first screen, the iPad, the thoughts */
.night {
  --bg: #0B0D10; --bg-2: #121418; --surface: #1A1D22; --ink: #ECEEF2; --ink-2: #A9B0BA; --ink-3: #7D8794;
  --rule: #20252D; --rule-2: #2C333D; --dot: #1C2027; --z: #8E97FF; --z-soft: rgba(142, 151, 255, .14); --z-ink: #A3AAFF;
  --btn: #ECEEF2; --on-btn: #0B0D10;
  background: var(--bg); color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: var(--nav); -webkit-text-size-adjust: 100%; background: #0B0D10; }
body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font: 400 16px/1.6 var(--f-ui); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
a { color: inherit; }
h1, h2, h3, h4, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video, canvas { display: block; max-width: 100%; }
::selection { background: var(--z-soft); }
:focus-visible { outline: 2px solid var(--z); outline-offset: 3px; border-radius: 4px; }
.mono, .coord, .tag, .inst, .fx-read, .g-read, .dev-k, .th-src, .dp-path, .copy-o { font-family: var(--f-m); font-feature-settings: "zero"; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 20; padding: 8px 14px; border-radius: 999px; background: var(--btn);
  color: var(--on-btn); font-size: 14px; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }

/* ---- the bar: see-through over the night, frosted once the page has moved ---- */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; padding-top: env(safe-area-inset-top); color: var(--ink);
  border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, color .3s; }
.nav.on-night { --ink: #ECEEF2; --ink-2: #A9B0BA; --ink-3: #7D8794; --rule: #20252D; --btn: #ECEEF2; --on-btn: #0B0D10; --line-c: rgba(236, 238, 242, .22); }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom-color: color-mix(in srgb, var(--rule) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); }
.nav.on-night.scrolled { background: rgba(11, 13, 16, .72); border-bottom-color: rgba(255, 255, 255, .06); }
.nav-in { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; height: var(--nav); padding: 0 var(--pad); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16px/1 var(--f-ui); letter-spacing: -.015em; color: var(--ink); }
.brand .mark { width: 26px; height: 26px; flex: none; display: block; }  /* the app's icon (web/icons/icon.svg), as on the tab */
.links { display: flex; gap: 2px; }
.links a { padding: 7px 11px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; transition: color .15s; }
.links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: transparent;
  color: var(--ink-2); font: 500 12.5px/1 var(--f-ui); cursor: pointer; transition: color .15s, border-color .15s; }
.lang:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 40%, transparent); }

/* ---- buttons ---- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px;
  font: 500 15px/1 var(--f-ui); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s cubic-bezier(.2, .7, .2, 1); }
.pill:active { transform: scale(.98); }
.pill-sm { height: 34px; padding: 0 16px; font-size: 13.5px; }
.pill-dark { background: var(--btn); color: var(--on-btn); }
.pill-dark:hover { background: color-mix(in srgb, var(--btn) 86%, var(--z)); }
.pill-line { border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); color: var(--ink); }
.pill-line:hover { border-color: color-mix(in srgb, var(--ink) 55%, transparent); }
.pill-line span[aria-hidden] { transition: transform .2s; }
.pill-line:hover span[aria-hidden] { transform: translateX(3px); }
/* on a phone (web/coordxyz-about.js, phoneSite): a button for what isn't there yet */
.pill.soon { opacity: .55; cursor: default; }
.pill.soon:hover { background: var(--btn); }

/* ---- the gauge: Z at the right edge, a hairline scale with a tick per level ---- */
.gauge { position: fixed; right: max(18px, env(safe-area-inset-right)); top: 50%; z-index: 6; transform: translateY(-50%);
  display: none; flex-direction: column; align-items: flex-end; gap: 14px; color: var(--ink-3); transition: color .3s; }
.gauge.on-night { --ink: #ECEEF2; --ink-2: #A9B0BA; --ink-3: #6A7380; --rule-2: #2C333D; --z: #8E97FF; }
.g-read { font-size: 11px; letter-spacing: .06em; color: var(--ink-2); }
.g-read b { color: var(--z); font-weight: 500; }
.g-read i { font-style: normal; display: inline-block; min-width: 4ch; text-align: right; }
.gauge ol { position: relative; display: flex; flex-direction: column; gap: 12px; padding-right: 14px; }
.gauge ol::after { content: ""; position: absolute; right: 0; top: 6px; bottom: 6px; width: 1px; background: var(--rule-2); }
.gauge a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 12px; text-decoration: none;
  font: 500 10.5px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.gauge a::after { content: ""; position: absolute; right: -14px; top: 50%; width: 7px; height: 1px; background: var(--rule-2); transition: width .25s, background-color .25s; }
.gauge .g-t { position: absolute; right: calc(100% + 10px); white-space: nowrap; opacity: 0; transform: translateX(4px); transition: opacity .25s, transform .25s; }
.gauge:hover .g-t, .gauge a.now .g-t { opacity: 1; transform: none; }
.gauge a.now { color: var(--ink); }
.gauge a.now::after { width: 14px; background: var(--z); }
.gauge .g-n { font-feature-settings: "zero", "tnum"; }
.g-dot { position: absolute; right: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--z); top: 0; transition: none; }
@media (min-width: 1180px) { .gauge { display: flex; } }

/* ---- shared ---- */
.sec { position: relative; padding: 140px var(--pad); }
.sec > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.head { max-width: 760px; }
.tag { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tag b { font-weight: 500; color: var(--z-ink); }
.tag b::after { content: ""; display: inline-block; width: 28px; height: 1px; margin: 0 0 3px 12px; background: var(--rule-2); vertical-align: middle; }
.badge { padding: 3px 8px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 10px; letter-spacing: .08em; color: var(--ink-3); }
h2 { font: 400 clamp(40px, 5.6vw, 72px)/1.02 var(--f-d); letter-spacing: -.022em; text-wrap: balance; }
.sub { margin-top: 22px; max-width: 600px; font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
h3 { font: 600 16px/1.35 var(--f-ui); letter-spacing: -.01em; }
h3 + p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* ============ Z 0: the first screen and the iPad ============ */
.hero { position: relative; height: 420vh; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* the field: the canvas's own instruments, hairline axes meeting at the origin, Z rising from it in the depth colour */
.field { position: absolute; inset: 0; pointer-events: none; --ox: 50%; --oy: 52%; }
.field::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, var(--dot) 1px, transparent 1.3px) 0 0 / 26px 26px;
  -webkit-mask: radial-gradient(ellipse 70% 62% at var(--ox) 52%, #000 20%, transparent 75%); mask: radial-gradient(ellipse 70% 62% at var(--ox) 52%, #000 20%, transparent 75%); }
.fx-x, .fx-y { position: absolute; background: var(--rule-2); }
.fx-x { left: 0; right: 0; top: var(--oy); height: 1px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.fx-y { top: 0; bottom: 0; left: var(--ox); width: 1px;
  -webkit-mask: linear-gradient(transparent 6%, #000 14%, transparent 22%, transparent 56%, #000 64%, transparent 96%); mask: linear-gradient(transparent 6%, #000 14%, transparent 22%, transparent 56%, #000 64%, transparent 96%); }
.fx-z { position: absolute; left: var(--ox); top: var(--oy); width: min(34vw, 460px); height: 1.5px; transform-origin: 0 50%; transform: rotate(-38deg);
  background: linear-gradient(90deg, var(--z), color-mix(in srgb, var(--z) 0%, transparent)); opacity: 0; }
.fx-z i { position: absolute; left: 0; top: -1px; width: 90px; height: 3.5px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff 70%, transparent); opacity: 0; filter: blur(.5px); }
.fx-z.lit i { animation: zlight 1.6s cubic-bezier(.4, 0, .2, 1) .5s both; }
@keyframes zlight { 0% { transform: translateX(-90px); opacity: 0; } 20% { opacity: .9; } 75% { opacity: .9; } 100% { transform: translateX(min(34vw, 460px)); opacity: 0; } }
.fx-o { position: absolute; left: var(--ox); top: var(--oy); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--ink);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--rule-2); }
.fx-lab { position: absolute; font: 500 11px/1 var(--f-m); letter-spacing: .1em; color: var(--ink-3); }
.fx-lx { right: 6%; top: calc(var(--oy) + 10px); } .fx-ly { left: calc(var(--ox) + 10px); top: 9%; }
.fx-lz { left: calc(var(--ox) + min(26vw, 360px)); top: calc(var(--oy) - min(21vw, 290px)); color: var(--z); opacity: 0; }
.fx-mark { position: absolute; width: 14px; height: 14px; border: 0 solid var(--rule-2); }
.m-tl { left: 24px; top: calc(var(--nav) + 18px); border-width: 1px 0 0 1px; } .m-tr { right: 24px; top: calc(var(--nav) + 18px); border-width: 1px 1px 0 0; }
.m-bl { left: 24px; bottom: 22px; border-width: 0 0 1px 1px; } .m-br { right: 24px; bottom: 22px; border-width: 0 1px 1px 0; }
.fx-read { position: absolute; left: 46px; bottom: 18px; font-size: 10.5px; letter-spacing: .06em; color: var(--ink-3); white-space: pre; }

.hero-copy { position: absolute; left: 0; right: 0; top: calc(var(--nav) + 9vh); z-index: 2; padding: 0 var(--pad); text-align: center; will-change: transform, opacity; }
.coord { display: inline-flex; gap: 18px; margin-bottom: 30px; font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }
.coord .zc { color: var(--z); }
h1 { font: 400 clamp(46px, 7.4vw, 104px)/.98 var(--f-d); letter-spacing: -.03em; text-wrap: balance; }
h1 .nw { white-space: nowrap; font-style: italic; }
:lang(zh) h1 .nw, :lang(zh) .end-2 { font-style: normal; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) .th-line { letter-spacing: 0; }
.lead { max-width: 600px; margin: 28px auto 0; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.55; color: var(--ink-2); text-wrap: balance; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.small { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* the film: a quiet line under the buttons, its play mark a ring with the depth colour's triangle; it opens the reel */
.watch { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 6px 14px 6px 6px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color .2s, background .2s; }
.watch:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.w-play { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 26%, transparent); transition: border-color .2s; }
.w-play::after { content: ""; position: absolute; left: 11px; top: 9px; border: 6px solid transparent; border-left: 9px solid var(--z); border-right: 0; }
.watch:hover .w-play { border-color: var(--z); }
.w-t { font: 11px/1 var(--f-m); font-feature-settings: "zero"; letter-spacing: .08em; color: var(--ink-3); }

/* the reel: the film over the page, the wide cut in 16:9 or the tall one in 9:16, as large as the window lets it be */
.reel { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ink); overflow: hidden; }
.reel[open] { display: grid; place-items: center; }
.reel::backdrop { background: rgba(5, 6, 8, .9); }
.reel-win { --ar: 16 / 9; --arn: 1.7778; width: min(92vw, calc((100svh - 120px) * var(--arn)), 1600px); aspect-ratio: var(--ar);
  border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--rule-2), 0 40px 120px rgba(0, 0, 0, .5); }
.reel.tall .reel-win { --ar: 9 / 16; --arn: .5625; }
.reel-win video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.reel-x { position: absolute; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 10%, transparent); cursor: pointer; transition: background .2s; }
.reel-x:hover { background: color-mix(in srgb, var(--ink) 18%, transparent); }
.reel-x span::before, .reel-x span::after { content: ""; position: absolute; left: 13px; top: 21.5px; width: 18px; height: 1px; background: var(--ink); transform: rotate(45deg); }
.reel-x span::after { transform: rotate(-45deg); }
@media (prefers-reduced-motion: no-preference) {
  .reel[open] .reel-win { animation: reel-in .35s cubic-bezier(.2, .7, .2, 1); }
  @keyframes reel-in { from { opacity: 0; transform: scale(.97); } }
}

/* the iPad: a face, two edges for its thickness, a shadow on the floor that isn't turned with it */
.pad-wrap { position: absolute; left: 50%; top: 50%; z-index: 1; width: var(--pw); --pw: min(86vw, 1080px, calc((100svh - 150px) * 1.4)); margin: 0; perspective: 2600px; will-change: transform; }
.pad { position: relative; width: 100%; aspect-ratio: 1194 / 834; transform-style: preserve-3d; will-change: transform; }
.pad-face { position: absolute; inset: calc(var(--pw) * -.022); border-radius: calc(var(--pw) * .046); background: #0A0B0D;
  box-shadow: inset 0 0 0 1px #2B2F36, inset 0 0 0 2.5px #0A0B0D, inset 0 0 0 3.5px #3A3F47; }
.pad-screen { position: absolute; inset: calc(var(--pw) * .022); border-radius: calc(var(--pw) * .026); overflow: hidden; background: #E4E8EE; }
.pad-screen img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pad-glare { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .10), transparent 32%, transparent 70%, rgba(255, 255, 255, .04)); pointer-events: none; mix-blend-mode: screen; }
.pad-edge { position: absolute; top: calc(var(--pw) * -.022 + var(--pw) * .03); bottom: calc(var(--pw) * -.022 + var(--pw) * .03); width: 10px;
  background: linear-gradient(#5A606A, #2A2E35 40%, #4A5059); }
.pe-l { left: calc(var(--pw) * -.022); transform-origin: 0 50%; transform: rotateY(90deg); }
.pe-r { right: calc(var(--pw) * -.022); transform-origin: 100% 50%; transform: rotateY(-90deg); }
.pad-shade { position: absolute; left: 6%; right: 6%; bottom: -8%; height: 16%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); transform: translateZ(-1px); }
.inst { position: absolute; right: 0; bottom: calc(var(--pw) * -.022 - 40px); display: flex; gap: 22px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); opacity: 0; }
.inst em { font-style: normal; }
.inst b { display: inline-block; min-width: 4.5ch; margin-left: 6px; font-weight: 500; color: var(--ink); text-align: right; font-feature-settings: "zero", "tnum"; }
.inst span:last-child b { color: var(--z); }

.beats { position: absolute; left: max(var(--pad), calc(50vw - 640px)); bottom: 14vh; width: min(360px, 30vw); z-index: 2; }
.beat { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(16px); }
.beat h2 { font-size: clamp(30px, 3vw, 42px); }
.beat p { margin-top: 14px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.cue { position: absolute; right: 48px; bottom: 18px; display: flex; flex-direction: row-reverse; align-items: center; gap: 12px;
  font: 500 10.5px/1 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); z-index: 2; }
.cue i { width: 34px; height: 1px; background: linear-gradient(90deg, var(--ink-3), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: left; }
@keyframes cue { 0%, 100% { transform: scaleX(.35); opacity: .4; } 50% { transform: scaleX(1); opacity: 1; } }

/* ============ Z 1: 6,200 ============ */
.thoughts { position: relative; height: 300vh; }
.th-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.th-dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.th-copy { position: relative; z-index: 1; width: min(920px, 100% - 2 * var(--pad)); text-align: center; display: grid; justify-items: center; }
.th-n { font: 300 clamp(96px, 17vw, 240px)/.9 var(--f-d); letter-spacing: -.045em; font-feature-settings: "lnum", "tnum"; color: var(--ink); }
.th-line { grid-area: 2 / 1; margin-top: 30px; max-width: 760px; font: 400 clamp(24px, 2.8vw, 38px)/1.25 var(--f-d); letter-spacing: -.012em; text-wrap: balance; }
.th-n { grid-area: 1 / 1; }
.th-line.t2 { opacity: 0; color: var(--ink-2); }
.th-hi { display: block; margin-top: 10px; color: var(--ink); }
.th-src { grid-area: 3 / 1; margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 11px; letter-spacing: .06em; color: var(--ink-3); }
.th-src cite { font-style: normal; color: var(--ink-2); }
.th-src cite i { font-style: italic; }

/* ============ the AI models it plugs into: a strip under the first screen, in the night ============ */
.models { position: relative; padding: 112px 0 120px; overflow: hidden; }
.md-h { max-width: min(760px, 100% - 2 * var(--pad)); margin: 0 auto; text-align: center;
  font: 400 clamp(24px, 2.6vw, 34px)/1.25 var(--f-d); letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
.md-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* the strip fades out at both ends; the row runs only once web/coordxyz-about.js has filled it (.run) */
.md-strip { --md-gap: 14px; max-width: calc(var(--max) + 2 * var(--pad)); margin: 52px auto 0; padding: 0 var(--pad); }
.md-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--md-gap); }
.md { flex: none; display: inline-flex; align-items: center; gap: 12px; height: 72px; padding: 0 28px; border-radius: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink);
  font: 600 19px/1 var(--f-ui); letter-spacing: -.018em; white-space: nowrap; }
.md svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.md-qwen path { fill: #615CED; }
.night .md-qwen path { fill: #8A86FF; }                 /* Qwen's indigo, lifted to read on the night */
.md-strip.run { padding: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.md-strip.run .md-row { flex-wrap: nowrap; justify-content: flex-start; width: max-content;
  animation: md-run var(--md-t, 40s) linear infinite; will-change: transform; }
.md-strip.run:hover .md-row, .md-strip.run.off .md-row { animation-play-state: paused; }
@keyframes md-run { to { transform: translate3d(calc(-1 * var(--md-w, 0px)), 0, 0); } }
@media (max-width: 760px) {
  .models { padding: 80px 0 88px; }
  .md-strip { margin-top: 36px; --md-gap: 10px; }
  .md { height: 58px; padding: 0 20px; gap: 10px; font-size: 16px; border-radius: 12px; }
  .md svg { width: 23px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) { .md-strip.run .md-row { animation: none; } }

/* ============ Z 2: draw ============ */
.draw { background: var(--bg); }
.drawbox { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "pad legend" "foot ."; gap: 0 28px; margin-top: 64px; align-items: stretch; }
/* the app itself (web/coordxyz-about.js drawPad): until it is in, its canvas's colours and dots (app/css/tokens.css) */
.pad2 { grid-area: pad; position: relative; height: clamp(420px, 56vh, 600px); border-radius: 14px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  background: #E4E8EE radial-gradient(circle at center, #D0D6DF .75px, transparent 1.25px) 0 0 / 24px 24px; box-shadow: inset 0 0 0 1px var(--rule); isolation: isolate; }
@media (prefers-color-scheme: dark) { .pad2 { background-color: #0F0F0F; background-image: radial-gradient(circle at center, #202020 .75px, transparent 1.25px); } }
.p2-app { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .45s; }
.pad2.live .p2-app { opacity: 1; }
.p2-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 0 0 1px var(--rule); font: 500 12px/1 var(--f-m); letter-spacing: .06em; color: var(--ink-2); white-space: nowrap; transition: opacity .3s; pointer-events: none; }
.pad2.live .p2-hint { opacity: 0; }
/* on the frame, inside the pad's rounded edge and its line */
.pad2::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--rule); pointer-events: none; z-index: 2; }
/* Clear, under the pad's corner (in it, it covered the app's own tools there) */
.p2-foot { grid-area: foot; display: flex; justify-content: flex-end; height: 28px; margin-top: 12px; }
.p2-clear { height: 28px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: 0 0 0 1px var(--rule);
  font: 500 12px/1 var(--f-ui); color: var(--ink-2); cursor: pointer; }

.legend { grid-area: legend; display: flex; flex-direction: column; gap: 26px; padding: 28px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--rule); }
.lg-dir { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 500 10.5px/1 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.lg-dir svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lg-row ul { display: grid; gap: 4px; }
.lg-row li { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 10px; border-radius: 8px; font-size: 15px; color: var(--ink-2); transition: background-color .15s, color .15s; }
.lg-row li.on { background: color-mix(in srgb, var(--tc) 10%, transparent); color: var(--tc); }
.sh { display: block; flex: none; border: 1.25px solid currentColor; border-radius: 2px; opacity: .8; }
.sh-flat { width: 26px; height: 10px; } .sh-sq { width: 18px; height: 16px; margin: 0 4px; } .sh-tall { width: 11px; height: 22px; margin: 0 7.5px; }
.lg-note { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.55; color: var(--ink-3); }
[data-t="text"] { --tc: var(--c-text, #3568B2); } [data-t="board"] { --tc: var(--z); } [data-t="table"] { --tc: var(--c-table, #007974); }
[data-t="header"] { --tc: var(--c-header, #AB3A5D); } [data-t="column"] { --tc: var(--c-column, #836400); } [data-t="todo"] { --tc: var(--c-todo, #7652AC); }
.drawbox { --c-text: #3568B2; --c-table: #007974; --c-header: #AB3A5D; --c-todo: #7652AC; --c-column: #836400; }
@media (prefers-color-scheme: dark) { .drawbox { --c-text: #7FACF0; --c-table: #5FBDB7; --c-header: #EA89A1; --c-todo: #B59BE6; --c-column: #D2B05A; } }
.kinds { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; font: 500 11px/1 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.kinds li::before { content: "+"; margin-right: 8px; color: var(--rule-2); }

/* ============ Z 3: depth ============ */
.depth { position: relative; height: 300vh; background: var(--bg); }
.dp-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: calc(var(--nav) + 9vh) var(--pad) 0; }
.dp-head { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; }
.dp-head .sub { max-width: 420px; }
.dp-stage { position: absolute; inset: 0; perspective: 1800px; perspective-origin: 62% 40%; }
.dp-scene { position: absolute; left: 64%; top: 57%; width: min(46vw, 640px); aspect-ratio: 16 / 10; transform-style: preserve-3d; will-change: transform; }
.dp-l { position: absolute; inset: 0; transform-style: flat; }
.dp-l img { width: 100%; height: 100%; border-radius: 6px; background: var(--bg-2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); }
.dp-l figcaption { position: absolute; left: 0; top: -30px; display: flex; gap: 10px; font: 500 11px/1 var(--f-m); letter-spacing: .08em; color: var(--ink-3); white-space: nowrap; }
.dp-l figcaption b { font-weight: 500; color: var(--z-ink); }
.dp-l figcaption span { color: var(--ink-2); font-family: var(--f-d); font-size: 15px; letter-spacing: 0; transform: translateY(-2px); }
.dp-axis { position: absolute; left: 0; top: 100%; width: 1px; height: 1px; transform-style: preserve-3d; }
.dp-axis i { position: absolute; left: 0; top: 0; width: 1100px; height: 1.5px; background: linear-gradient(90deg, var(--z), color-mix(in srgb, var(--z) 10%, transparent)); transform-origin: 0 50%; transform: rotateY(90deg); }
.dp-axis em { display: none; }
.dp-path { position: absolute; left: 50%; bottom: 6vh; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); box-shadow: 0 0 0 1px var(--rule); font-size: 12px; color: var(--ink-3); white-space: nowrap; z-index: 2; }
.dp-path span { font-family: var(--f-d); font-size: 15px; color: var(--ink-2); transition: color .25s; }
.dp-path span.on { color: var(--ink); }
.dp-path i { font-style: normal; color: var(--z); }

/* the map */
.map { padding-top: 40px; display: grid; gap: 48px; }
.map-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; width: 100%; }
.map-copy p { color: var(--ink-2); font-size: 18px; line-height: 1.6; max-width: 520px; }
.map-fig { position: relative; max-width: none !important; width: min(100%, 1400px); }
.map-fig img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--rule), 0 40px 80px -48px rgba(22, 27, 29, .45); }

/* ============ Z 4: AI ============ */
.film { margin-top: 64px; }
.film-win { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px var(--rule), 0 50px 90px -60px rgba(46, 60, 240, .45); }
.film-win video { width: 100%; height: 100%; object-fit: cover; }
.film-cap { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.film-cap .mono { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--z-ink); padding-top: 2px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--rule); }
.trio > div { padding: 26px 28px 0 0; }
.trio > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }

/* ============ Z 5: the secretary ============ */
.secretary { background: var(--bg-2); }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.sources { margin-top: 40px; border-top: 1px solid var(--rule-2); }
.sources > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule-2); }
.sources dt { font: 500 11px/1.9 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sources dd { color: var(--ink); font-size: 15.5px; }
.sc-shot { display: flex; justify-content: center; }
.sc-shot img { width: min(100%, 400px); height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--rule), 0 40px 80px -50px rgba(22, 27, 29, .5); }
.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 88px; }
.points > div { padding: 24px 24px 0 0; border-top: 1px solid var(--rule-2); }
.points > div + div { padding-left: 24px; }
.points:has(> div[hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ============ Z 6: everywhere ============ */
.trio-dev { position: relative; height: clamp(300px, 44vw, 560px); margin-top: 72px; max-width: 1100px !important; }
.trio-dev > div { position: absolute; }
.td-scr { position: absolute; overflow: hidden; background: var(--bg-2); }
.td-scr img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.td-mac { left: 12%; right: 12%; top: 0; aspect-ratio: 16 / 10.6; border-radius: 16px 16px 0 0; background: #0A0B0D; box-shadow: inset 0 0 0 1px #2B2F36; }
.td-mac .td-scr { inset: 2.4% 1.6% 4% 1.6%; border-radius: 4px; }
.td-foot { position: absolute; left: -7%; right: -7%; bottom: -3%; height: 3.4%; border-radius: 0 0 14px 14px; background: linear-gradient(#C9CED6, #9DA4AE); }
@media (prefers-color-scheme: dark) { .td-foot { background: linear-gradient(#4A5059, #2A2E35); } }
.td-pad { left: 0; bottom: 0; width: 25%; aspect-ratio: 3 / 4; border-radius: 18px; background: #0A0B0D; box-shadow: inset 0 0 0 1px #2B2F36, 0 30px 60px -30px rgba(0, 0, 0, .5); }
.td-pad .td-scr { inset: 4%; border-radius: 8px; }
.td-phone { right: 2%; bottom: 0; width: 13%; aspect-ratio: 440 / 956; border-radius: 22px; background: #0A0B0D; box-shadow: inset 0 0 0 1px #2B2F36, 0 30px 60px -30px rgba(0, 0, 0, .5); }
.td-phone .td-scr { inset: 3.5%; border-radius: 16px; }
.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid var(--rule); }
.dev { display: flex; flex-direction: column; padding: 28px 28px 30px 0; text-decoration: none; color: inherit; }
.dev + .dev { padding-left: 28px; border-left: 1px solid var(--rule); }
.dev-k { margin-bottom: 18px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.dev p:not(.dev-k) { color: var(--ink-2); font-size: 15px; margin-top: 8px; flex: 1; }
.dev .go { margin-top: 20px; font-size: 14px; font-weight: 500; color: var(--ink); }
a.dev:hover .go { color: var(--z-ink); }
.dev .go.soon { color: var(--ink-3); }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 120px; }
.trust > div { padding-top: 20px; border-top: 1px solid var(--rule-2); }

/* ---- the last word: back at the origin ---- */
.end { position: relative; padding: 160px var(--pad) 150px; text-align: center; overflow: hidden; }
.end-o { position: relative; width: 120px; height: 120px; margin: 0 auto 48px; }
.end-o span { position: absolute; background: var(--rule-2); }
.eo-x { left: 0; right: 0; top: 50%; height: 1px; } .eo-y { top: 0; bottom: 0; left: 50%; width: 1px; }
.eo-z { left: 50%; top: 50%; width: 52px; height: 2px !important; background: var(--z) !important; transform-origin: 0 50%; transform: rotate(-45deg); border-radius: 2px; }
.end-o i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--rule-2); }
.end h2 { font-size: clamp(40px, 6vw, 80px); max-width: 980px; margin: 0 auto; }
.end-2 { display: block; color: var(--ink-3); font-style: italic; }
.end .ctas { margin-top: 44px; }

/* ---- footer ---- */
.foot { padding: 0 var(--pad) calc(32px + env(safe-area-inset-bottom)); }
.foot-in { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; padding-top: 40px; border-top: 1px solid var(--rule); }
.foot-brand p { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.foot-cols { display: flex; gap: 72px; }
.foot-cols div { display: flex; flex-direction: column; gap: 8px; }
.foot-cols h4 { font: 500 10.5px/1.6 var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.foot-cols a { font-size: 14px; color: var(--ink-2); text-decoration: none; } .foot-cols a:hover { color: var(--ink); }
.copy { max-width: var(--max); margin: 48px auto 0; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.copy-o { font-size: 11px; letter-spacing: .06em; }

/* ---- the reveal: blocks rise in once as they're reached (js) ---- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }

/* ---- narrower windows ---- */
@media (max-width: 1080px) {
  .links { display: none; }
  .beats { width: min(320px, 36vw); }
  .points, .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .points > div + div { padding-left: 0; } .points > div { padding-right: 0; margin-bottom: 28px; }
  .trust { gap: 28px; }
}
@media (max-width: 760px) {
  :root { --pad: max(20px, env(safe-area-inset-left)); --nav: 56px; }
  .sec { padding: 96px var(--pad); }
  .nav-in { gap: 12px; }
  .hero { height: 380vh; }
  .hero-copy { top: calc(var(--nav) + 6vh); }
  .coord { margin-bottom: 22px; }
  .lead { margin-top: 20px; }
  .ctas { margin-top: 28px; }
  .ctas .pill { flex: 1 1 100%; max-width: 340px; }
  /* the film's line lands on the iPad here: a chip of the night over it, so it reads */
  .watch { margin-top: 26px; padding-right: 16px; color: var(--ink); background: rgba(11, 13, 16, .78); box-shadow: 0 0 0 1px var(--rule-2);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .field { --oy: 70%; }
  .fx-read, .m-bl, .m-br { display: none; }
  .pad-wrap { --pw: min(92vw, 640px); }
  .beats { left: var(--pad); right: var(--pad); width: auto; bottom: 7vh; }
  .beat h2 { font-size: 28px; } .beat p { font-size: 15px; margin-top: 10px; }
  .inst { display: none; }
  .cue { display: none; }
  .th-line { margin-top: 20px; }
  .drawbox { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pad" "foot" "legend"; margin-top: 44px; }
  .p2-foot { margin: 10px 0 14px; }
  .pad2 { height: 62vh; }
  .legend { padding: 22px; flex-direction: row; flex-wrap: wrap; gap: 18px 22px; }
  .legend .lg-row { flex: 1 1 140px; }
  .lg-row li { height: 34px; font-size: 14px; }
  .dp-pin { padding-top: calc(var(--nav) + 4vh); }
  .dp-scene { left: 50%; top: 60%; width: 84vw; }
  .dp-stage { perspective-origin: 50% 50%; }
  .map-copy { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .trio > div, .trio > div + div { padding: 22px 0; border-left: 0; }
  .trio > div + div { border-top: 1px solid var(--rule); }
  .sc-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .points, .trust { grid-template-columns: minmax(0, 1fr); }
  .points { margin-top: 56px; }
  .trio-dev { height: 64vw; margin-top: 48px; }
  .devices { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .dev, .dev + .dev { padding: 24px 0; border-left: 0; }
  .dev + .dev { border-top: 1px solid var(--rule); }
  .trust { margin-top: 64px; gap: 0; }
  .trust > div { padding: 20px 0 24px; }
  .end { padding: 110px var(--pad) 100px; }
  .foot-in { flex-direction: column; } .foot-cols { gap: 48px; }
  .copy { flex-direction: column; gap: 6px; }
}

/* ---- reduced motion: nothing pinned, each part as it ends (js keeps the pictures at their last frame) ---- */
@media (prefers-reduced-motion: reduce) {
  .hero, .thoughts, .depth { height: auto; }
  .hero-pin, .th-pin, .dp-pin { position: relative; height: auto; min-height: 100vh; }
  .hero-pin { padding-bottom: 8vh; }
  .hero-copy { position: relative; top: auto; padding-top: calc(var(--nav) + 10vh); }
  .pad-wrap { position: relative; left: auto; top: auto; margin: 64px auto 0; }
  .beats { position: relative; left: auto; bottom: auto; width: auto; max-width: 560px; margin: 48px auto 0; padding: 0 var(--pad); }
  .beat { position: relative; opacity: 1; transform: none; margin-top: 28px; }
  .beat.b1, .beat.b2 { display: none; }
  .cue, .fx-read { display: none; }
  .th-pin { padding: 120px 0; }
  .th-line.t1 { display: none; } .th-line.t2 { opacity: 1; }
  .dp-pin { height: 100vh; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .fx-z i, .cue i { animation: none !important; }
}
