/* Ombra site. Colours come from the mark (assets/logo.svg): the shade it stands in, its two
   echoes and the mint figure, plus the app's cream text (rs/ombra/src/gfx.rs).
   The one ornament is the echo: a solid copy trailing to the left, never a blur. */

@font-face {
  font-family: "Sora";
  src: url("assets/fonts/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  src: url("assets/fonts/sora-latin-ext.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --shade: #121816;      /* page ground */
  --tile: #18201e;       /* the mark's tile: raised surfaces */
  --raise: #1d2724;
  --line: #27322e;
  --line-2: #3a4843;
  --echo-far: #24443a;
  --echo-near: #2f6b50;
  --mint: #6bf0a2;
  --mint-ink: #0b1f13;
  --cream: #f2ece1;
  --muted: #9ca8a2;
  --amber: #ffb547;
  /* Discord's own blurple, with two echoes in the same family, for everything that leads there */
  --discord: #5865f2;
  --discord-ink: #ffffff;
  --discord-near: #3f48b8;
  --discord-far: #2a2f73;

  /* corners like the app (gfx.rs, soft brutalism): softened, never pills or discs */
  --r: 10px;
  --r-panel: 16px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Sora", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --spring: cubic-bezier(.3, 1.45, .5, 1);
  --glide: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--shade);
  color: var(--cream);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--raise); border: 1px solid var(--line); padding: .08em .4em; border-radius: 4px; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--echo-near); color: var(--cream); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--mint); color: var(--mint-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- buttons: the primary one carries the mark's two echoes ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--r); border: 1px solid transparent;
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--spring), box-shadow .35s var(--spring), background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary {
  --e: 6px;
  background: var(--mint); color: var(--mint-ink);
  box-shadow: calc(var(--e) * -1) 0 0 var(--echo-near), calc(var(--e) * -2) 0 0 var(--echo-far);
  margin-left: calc(var(--e) * 2);
}
.btn-primary:hover { transform: translateX(3px); box-shadow: calc(var(--e) * -1.5) 0 0 var(--echo-near), calc(var(--e) * -3) 0 0 var(--echo-far); }
.btn-primary:active, .btn-primary.pressed { transform: translateX(-4px); box-shadow: -1px 0 0 var(--echo-near), -2px 0 0 var(--echo-far); transition-duration: .08s; }
.btn-quiet { background: transparent; color: var(--cream); border-color: var(--line-2); }
.btn-quiet:hover { background: var(--tile); border-color: var(--muted); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: var(--r); gap: 8px; }
.btn-sm.btn-primary { --e: 4px; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.i-star { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: miter; transition: fill .2s ease, stroke .2s ease, transform .35s var(--spring); }
.js-star:hover .i-star { fill: var(--amber); stroke: var(--amber); transform: rotate(-12deg) scale(1.1); }
/* Discord: blurple with its own two echoes, the same gesture as the primary button */
.btn-discord {
  --e: 6px;
  background: var(--discord); color: var(--discord-ink);
  box-shadow: calc(var(--e) * -1) 0 0 var(--discord-near), calc(var(--e) * -2) 0 0 var(--discord-far);
  margin-left: calc(var(--e) * 2);
}
.btn-discord:hover { transform: translateX(3px); box-shadow: calc(var(--e) * -1.5) 0 0 var(--discord-near), calc(var(--e) * -3) 0 0 var(--discord-far); }
.btn-discord:active { transform: translateX(-4px); box-shadow: -1px 0 0 var(--discord-near), -2px 0 0 var(--discord-far); transition-duration: .08s; }
.btn-sm.btn-discord { --e: 4px; }
.btn-icon { width: 36px; padding: 0; }
.nav-discord .i-discord { transition: color .2s ease, transform .35s var(--spring); }
.nav-discord:hover { border-color: var(--discord); }
.nav-discord:hover .i-discord { color: var(--discord); transform: rotate(-10deg) scale(1.1); }
.m-discord { display: flex; align-items: center; gap: 10px; }
.m-discord .i-discord { color: var(--discord); }
.count { padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line-2); color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- nav ---------- */
/* At the top the bar fills the width, flush with the page. Once you scroll it gathers into a floating tile
   around its contents, with the mark's two echoes behind it, and opens out again when you come back up.
   The shape is its own element (.nav-bg), so the header keeps its height and nothing below it moves. */
.nav { position: sticky; top: 0; z-index: 50; pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav-bg {
  --e: 6px;
  position: absolute; left: 0; right: 0; top: 0; height: 64px; pointer-events: none;
  background: color-mix(in srgb, var(--shade) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid transparent; border-radius: 0;
  box-shadow: 0 0 0 var(--echo-near), 0 0 0 var(--echo-far), 0 18px 40px -24px rgba(0, 0, 0, 0);
  transition: left .6s var(--spring), right .6s var(--spring), top .6s var(--spring), height .6s var(--spring),
    border-radius .6s var(--spring), box-shadow .6s var(--spring), background-color .3s ease, border-color .3s ease;
}
.nav.scrolled .nav-bg {
  /* hugs the contents: the wrap's gutter, minus 14px of breathing room on each side */
  left: calc(max(0px, (100% - var(--wrap)) / 2) + var(--gutter) - 14px); right: calc(max(0px, (100% - var(--wrap)) / 2) + var(--gutter) - 14px);
  top: 8px; height: 52px; border-radius: var(--r-panel);
  background: color-mix(in srgb, var(--tile) 82%, transparent); border-color: var(--line-2);
  box-shadow: calc(var(--e) * -1) 0 0 var(--echo-near), calc(var(--e) * -2) 0 0 var(--echo-far), 0 18px 40px -24px rgba(0, 0, 0, .9);
}
.nav-in { position: relative; display: flex; align-items: center; gap: 20px; height: 64px; transition: transform .6s var(--spring); }
.nav.scrolled .nav-in { transform: translateY(2px); }
.nav.scrolled .nav-links a { padding-block: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--cream); border-radius: 0; transition: transform .2s ease, top .2s ease; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { position: relative; border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; display: grid; background: var(--shade); }
.nav.scrolled .mobile-menu { --e: 6px; margin: 10px calc(var(--gutter) - 14px) 0; padding-inline: 18px; border: 1px solid var(--line-2); border-radius: var(--r-panel);
  background: var(--tile); box-shadow: calc(var(--e) * -1) 0 0 var(--echo-near), calc(var(--e) * -2) 0 0 var(--echo-far), 0 24px 50px -20px rgba(0, 0, 0, .9); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 13px 4px; text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-menu a:last-child { border-bottom: 0; }
.langs-mobile { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 12px; }
.langs-mobile a { padding: 6px 0; border: 0; font-weight: 400; color: var(--muted); font-size: 14px; }

/* ---------- language picker ---------- */
.langs { position: relative; }
.langs > summary { list-style: none; cursor: pointer; gap: 6px; }
.langs > summary::-webkit-details-marker { display: none; }
.flag { flex: none; display: block; width: 21px; height: 14px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); }
.langs-menu a, .langs-mobile a { display: flex; align-items: center; gap: 10px; }
.langs .chev { transition: transform .3s var(--spring); }
.langs[open] .chev { transform: rotate(180deg); }
/* The menu unfolds from its button the way the mark moves: the panel unrolls downwards while its two
   shadows spring out, the rows land one by one, and a pill with two echoes follows the pointer
   (the same elastic pill as the app's rail). main.js drives it; without script it simply opens. */
.langs-menu { --e: 6px; position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; list-style: none; margin: 0; padding: 6px; min-width: 230px;
  background: var(--tile); border: 1px solid var(--line-2); border-radius: var(--r-panel); display: grid; isolation: isolate;
  box-shadow: calc(var(--e) * -1) 0 0 var(--echo-near), calc(var(--e) * -2) 0 0 var(--echo-far), 0 24px 48px -12px rgba(0, 0, 0, .7); }
.langs-menu li { position: relative; }
.langs-menu a { position: relative; display: flex; align-items: center; gap: 10px; white-space: nowrap; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--cream); font-size: 14.5px; transition: color .2s; }
.langs-menu a:focus-visible { outline: none; }
.langs-menu a[aria-current] { color: var(--mint); }
.langs-menu .flag { transition: box-shadow .35s var(--spring); }
.langs-menu a.on .flag { box-shadow: 0 0 0 1px var(--line-2), -3px 0 0 var(--echo-near), -6px 0 0 var(--echo-far); }
.langs-pill { position: absolute; left: 6px; right: 6px; top: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .2s; }
.langs-menu.has-pill .langs-pill { opacity: 1; }
.langs-pill i { position: absolute; left: 0; right: 0; top: 0; height: var(--h, 0); border-radius: 8px; transform: translateY(var(--y, 0));
  transition: transform .5s var(--spring), height .5s var(--spring); }
.langs-pill i:nth-child(1) { background: var(--echo-far); transition-delay: .12s; margin-left: -8px; margin-right: 8px; }
.langs-pill i:nth-child(2) { background: var(--echo-near); transition-delay: .06s; margin-left: -4px; margin-right: 4px; }
.langs-pill i:nth-child(3) { background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); }
.langs-menu.instant .langs-pill i { transition: none; }
.no-js .langs-menu a:hover { background: var(--raise); }
@media (max-width: 860px) { .langs { display: none; } }

/* ---------- scripts Sora doesn't cover: the system's own fonts, no negative tracking ---------- */
:lang(ja) body { font-family: "Sora", "Yu Gothic UI", "Yu Gothic", Meiryo, "Hiragino Sans", "Noto Sans JP", sans-serif; }
:lang(ko) body { font-family: "Sora", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; word-break: keep-all; }
:lang(zh-Hans) body { font-family: "Sora", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif; }
:lang(ru) body { font-family: "Sora", "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif; }
:lang(ja) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3), :lang(zh-Hans) :is(h1, h2, h3) { letter-spacing: 0; line-break: strict; }
:lang(ja) h1, :lang(ko) h1, :lang(zh-Hans) h1 { line-height: 1.2; }

/* ---------- hero: the mark, walking, with its two shadows ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow-x: clip; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
/* what's new, one line above the title: a door to the news, never a popup */
.hero-new { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 26px; padding: 5px 12px 5px 5px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--tile); text-decoration: none; font-size: 14px; font-weight: 500;
  box-shadow: 0 0 0 var(--echo-near), 0 0 0 var(--echo-far);
  transition: transform .35s var(--spring), box-shadow .35s var(--spring), border-color .2s ease; }
.hero-new:hover { transform: translateX(3px); border-color: var(--muted); box-shadow: -3px 0 0 var(--echo-near), -6px 0 0 var(--echo-far); }
.hero-new-tag { flex: none; padding: 3px 8px; border-radius: 6px; background: var(--mint); color: var(--mint-ink); font-size: 12.5px; font-weight: 650; line-height: 1.2; }
.hero-new-tag[hidden] { display: none; }
.hero-new-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cream); }
.hero-new-text b { color: var(--mint); font-weight: 650; }
.hero-new svg { flex: none; color: var(--mint); transition: transform .35s var(--spring); }
.hero-new:hover svg { transform: translateX(3px); }
h1 { font-size: clamp(40px, 5.6vw, 70px); line-height: 1.03; font-weight: 650; letter-spacing: -.035em; max-width: 11.5em; }
.lede { margin-top: 26px; color: var(--muted); font-size: clamp(17px, 1.45vw, 19px); line-height: 1.6; max-width: 31em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 36px; }
.hero-meta { margin-top: 18px; color: var(--muted); font-size: 14px; }
.watch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; font-weight: 600; font-size: 15px;
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; transition: text-decoration-color .2s ease; }
.watch svg { color: var(--mint); transition: transform .35s var(--spring); }
.watch:hover { text-decoration-color: var(--mint); }
.watch:hover svg { transform: translateX(3px); }
/* The real app, running, hung in space: its two echoes are two planes further back, so they part from
   the window as the stage turns towards the pointer (main.js sets --rx / --ry). The mark walks in front. */
.hero-art { position: relative; perspective: 1700px; touch-action: pan-y; }
.hero-stage { --e: 24px; position: relative; width: 150%; aspect-ratio: 1440 / 900; transform-style: preserve-3d; transform-origin: 0 50%;
  transform: rotateY(calc(14deg + var(--ry, 0deg))) rotateX(calc(4deg + var(--rx, 0deg))); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.hero-window, .plane { position: absolute; inset: 0; border-radius: var(--r-panel); }
.hero-window { overflow: hidden; background: #121110; border: 1px solid var(--line-2); }
.hero-window img, .hero-window video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-window video { opacity: 0; transition: opacity .4s ease; }
.hero-window video.on { opacity: 1; }
.plane-near { background: var(--echo-near); transform: translate3d(calc(var(--e) * -1), 0, -60px); }
.plane-far { background: var(--echo-far); transform: translate3d(calc(var(--e) * -2), 0, -120px); }
.figure { width: 100%; height: 100%; overflow: visible; }
/* the same figure once it has left the hero: main.js walks it down the page (page coordinates) */
.walker { position: absolute; left: 0; top: 0; width: 100px; height: 100px; z-index: 40; pointer-events: none; visibility: hidden; will-change: transform; }
.walker.lifted { z-index: 70; }
.walker.big { z-index: 91; }
/* hiding: under everything on the page, so a window in front of it covers it */
.walker.behind { z-index: -1; }
/* where you can take hold of the mark: a transparent body-sized shape, live only when main.js plays with it */
.figure .hit { fill: transparent; pointer-events: none; }
.mark-play .figure .hit { pointer-events: all; cursor: grab; touch-action: none; }
.mark-play.grabbing, .mark-play.grabbing * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.figure .daze path { fill: var(--cream); }
.figure .daze path:nth-child(2) { fill: var(--mint); }
.figure .zz text { font-family: var(--font); font-weight: 700; fill: var(--cream); paint-order: stroke; stroke: var(--shade); stroke-width: 10px; }
.figure .fx path { fill: none; stroke: var(--mint); stroke-width: 12; stroke-linecap: round; }
/* the goodbye: the page dims around the mark, a spotlight on it, and a bubble next to its head */
.spot { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 60%), transparent 0, color-mix(in srgb, var(--shade) 55%, transparent) var(--r1, 200px), color-mix(in srgb, var(--shade) 92%, transparent) var(--r2, 560px)); }
.spot.on { opacity: 1; }
.spot[hidden] { display: none; }
.bye { --e: 8px; position: fixed; left: 0; top: 0; z-index: 92; width: min(330px, calc(100vw - 32px)); padding: 22px 50px 22px 22px;
  border-radius: var(--r-panel); background: var(--tile); border: 1px solid var(--line-2); transform-origin: 0 70%;
  box-shadow: calc(var(--e) * -1) 0 0 var(--echo-near), calc(var(--e) * -2) 0 0 var(--echo-far), 0 30px 70px -20px rgba(0, 0, 0, .8); }
.bye[hidden] { display: none; }
/* the tail points back at the head */
.bye::before { content: ""; position: absolute; left: -11px; top: var(--tail, 34px); width: 20px; height: 20px; background: var(--tile);
  border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transform: rotate(45deg); }
.bye.right-side { transform-origin: 100% 70%; }
.bye.right-side::before { left: auto; right: -11px; transform: rotate(225deg); }
.bye-hi { font-size: 30px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: var(--mint); text-shadow: -3px 0 0 var(--echo-near), -6px 0 0 var(--echo-far); padding-left: 6px; }
.bye p:not(.bye-hi) { margin-top: 10px; color: var(--cream); font-size: 15px; line-height: 1.5; }
.bye .btn { margin-top: 16px; }
.hero-stage .figure { position: absolute; left: -12%; bottom: -10%; width: 36%; height: auto; aspect-ratio: 1; transform: translateZ(80px); }
.figure path, .figure circle { vector-effect: none; }
.figure path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.figure path.o { stroke: var(--shade); stroke-width: 60; }
.figure circle.o { fill: var(--shade); }
.figure path.f { stroke-width: 40; }
.echo-far .f { stroke: var(--echo-far); fill: var(--echo-far); }
.echo-near .f { stroke: var(--echo-near); fill: var(--echo-near); }
.echo-you .f { stroke: var(--mint); fill: var(--mint); }
.figure path.f { fill: none; }

/* ---------- sections ---------- */
.section { padding: clamp(52px, 7vw, 96px) 0; }
.section-head { max-width: 44em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 650; letter-spacing: -.03em; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 38em; }
.section-head a, .install-cta a:not(.btn) { color: var(--cream); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.section-head a:hover, .install-cta a:not(.btn):hover { text-decoration-color: var(--mint); }

/* features: a plain list, no cards */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; margin: 0; }
.facts > div, .steps li { position: relative; padding-top: 20px; }
.facts > div::before, .steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); transform-origin: left center; }
.facts dt { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.facts dd { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* ---------- tour: a rail like the app's, with its elastic pill ---------- */
.tour { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pills { position: relative; isolation: isolate; }
.pill { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; }
.pill i {
  position: absolute; left: 0; top: 0; display: block;
  width: var(--w, 0); height: var(--h, 0); border-radius: var(--r);
  transform: translate(var(--x, 0), var(--y, 0));
  transition: transform .5s var(--spring), width .5s var(--spring), height .5s var(--spring);
}
.pill i:nth-child(1) { background: var(--echo-far); transition-delay: .14s; margin-left: -8px; }
.pill i:nth-child(2) { background: var(--echo-near); transition-delay: .07s; margin-left: -4px; }
.pill i:nth-child(3) { background: var(--cream); }
.pills.instant .pill i { transition: none; }

.rail { display: grid; gap: 2px; padding-left: 8px; position: sticky; top: 96px; }
.rail button {
  font: 500 15px/1 var(--font); color: var(--muted); background: transparent; text-align: left;
  border: 0; border-radius: var(--r); padding: 12px 14px; cursor: pointer;
  transition: color .25s ease;
}
.rail button:hover { color: var(--cream); }
.rail button[aria-selected="true"] { color: var(--shade); font-weight: 600; }

.stage { min-width: 0; }
.window {
  --e: 8px;
  position: relative; overflow: hidden; border-radius: var(--r-panel); background: #121110;
  border: 1px solid var(--line-2);
  box-shadow: calc(var(--e) * -1) 0 0 var(--echo-near), calc(var(--e) * -2) 0 0 var(--echo-far);
  margin-left: calc(var(--e) * 2);
}
.shots { position: relative; }
.shots img[hidden] { display: none; }
.shots video { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s ease; }
.shots video.on { opacity: 1; }
/* Chapter windows hang in space like the hero's (main.js wraps each in .depth): the two echoes are planes
   behind the window, and where the browser can tie motion to scrolling the window turns into place as it
   comes up the page. At rest it is flat, so the screenshot reads as before. */
.depth { --e: 10px; position: relative; margin-left: calc(var(--e) * 2); transform: rotateY(0deg); transform-style: preserve-3d; }
.depth::before, .depth::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-panel); }
.depth::before { background: var(--echo-far); transform: translate3d(calc(var(--e) * -3.2), 6px, -40px); }
.depth::after { background: var(--echo-near); transform: translate3d(calc(var(--e) * -1.6), 3px, -20px); }
.depth .window { box-shadow: none; margin-left: 0; }
/* the tour moves on by itself until you touch it: a line under the current tab runs out, and it is the clock */
.rail button { position: relative; }
.rail.auto button[aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: var(--echo-near); transform-origin: 0 50%; animation: dwell var(--dwell, 6s) linear forwards; }
.rail.auto.hold button[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes dwell { from { transform: scaleX(0); } }
@keyframes settle { from { transform: rotateY(var(--turn, 15deg)) rotateX(4deg); } }
@keyframes far-in { from { transform: translate3d(calc(var(--e) * -6), 0, -170px); } }
@keyframes near-in { from { transform: translate3d(calc(var(--e) * -3), 0, -85px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 961px) {
    .depth, .depth::before, .depth::after { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    .depth::before { animation-name: far-in; }
    .depth::after { animation-name: near-in; }
  }
}
/* 2.5D: the whole window, its two echo planes with it, rests turned inwards, towards its text and the page's middle, the side alternating
   with the chapters so the eye follows one path down the page. The planes sit further back (z), so the turn
   parts them from the window. Point at it and it turns flat to be read. The turn is the `rotate` property,
   separate from the scroll-tied `transform`, so the two never fight; the parent gives the perspective. */
.stage, .solo { perspective: 1800px; }
.depth { --turn: -15deg; rotate: 0.3 -1 0 9deg; transition: rotate 1s var(--spring); }
.tour.flip .depth, .solo .depth { --turn: 15deg; rotate: 0.3 1 0 9deg; }
.depth:hover, .depth:focus-within { rotate: 0 1 0 0deg; }
@media (max-width: 960px) { .depth, .tour.flip .depth, .solo .depth { rotate: none; } .stage, .solo { perspective: none; } }
/* sections arriving shut (main.js, wide screens only): the mark opens each its own way; the opening edge is
   drawn in mint with the mark's two shadows behind it */
.acts .section { position: relative; }
.acts .section.shut > .wrap { clip-path: inset(0 0 100% 0); }
.edge { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.edge.live { opacity: 1; }
.edge.gone { opacity: 0; transition-duration: .8s; }
.edge.act-shadow { overflow: hidden; }
.edge path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.edge .zm { stroke: var(--mint); }
.edge .zn { stroke: var(--echo-near); }
.edge .zf { stroke: var(--echo-far); }
.edge:not(.act-shadow) .zn { transform: translateX(-5px); }
.edge:not(.act-shadow) .zf { transform: translateX(-10px); }
.edge.act-shadow path { stroke-width: 4; }
.edge.act-bubble .zm { stroke-width: 2.5; fill: var(--tile); }
.edge circle { fill: var(--cream); }
.sweep { position: absolute; inset: 0; pointer-events: none; }
.sweep i { position: absolute; inset: 0; transform: translateX(-101%); }
.sweep i:nth-child(1) { background: var(--echo-far); opacity: .55; }
.sweep i:nth-child(2) { background: var(--echo-near); opacity: .7; }
.sweep i:nth-child(3) { background: var(--tile); }
.panel { margin: 32px 0 0 16px; max-width: 40em; }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(22px, 2.2vw, 27px); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.panel > p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 12px; height: 2px; border-radius: 1px; background: var(--mint); box-shadow: -3px 0 0 var(--echo-near); }

/* ---------- chapters: the four things Ombra does, each with its own screenshots ---------- */
.chapter + .chapter { border-top: 1px solid var(--line); }
/* the trails (main.js): the trackers of a body nobody sees, walking down the page behind everything, on a
   canvas fixed to the window. They replace the lines between sections; without script the lines stay. */
.trails { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
.ribbon-on .chapter + .chapter, .ribbon-on .foot, .ribbon-on .news { border-top-color: transparent; }
.ribbon-on .promise { border-color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--tile) 70%, transparent) 0%, transparent 70%); }
.chapter .section-head h2 { text-wrap: balance; }
/* chapters alternate sides, so the eye zig-zags down the page instead of reading one column */
.tour.flip { grid-template-columns: minmax(0, 1fr) 208px; }
.tour.flip .rail { order: 2; }
.tour.flip .stage { order: 1; }
.solo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.solo-points { margin: 0; gap: 14px; }
.solo-points li { font-size: 16px; color: var(--cream); }

/* ---------- the small things ---------- */
.more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 36px; }
.more-list li { position: relative; padding-top: 20px; }
.more-list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); transform-origin: left center; }
.more-list h3 { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.more-list p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 1080px) {
  .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solo { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .more-list { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- nav: the section you're reading, marked like the app's rail ---------- */
.nav-links { position: relative; }
.nav-links a[aria-current="true"] { color: var(--cream); }
.nav-mark { position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; pointer-events: none; opacity: 0; transition: opacity .3s; }
.nav-mark.on { opacity: 1; }
.nav-mark i { position: absolute; top: 0; left: 0; height: 2px; border-radius: 0; width: var(--w, 0); transform: translateX(var(--x, 0));
  transition: transform .55s var(--spring), width .55s var(--spring); }
.nav-mark i:nth-child(1) { background: var(--echo-far); transition-delay: .12s; margin-left: -6px; }
.nav-mark i:nth-child(2) { background: var(--echo-near); transition-delay: .06s; margin-left: -3px; }
.nav-mark i:nth-child(3) { background: var(--mint); }

/* ---------- privacy: the promise, then the ledger of what goes online ----------
   The memorable moment of the page: what doesn't exist gets struck out, and the strike drags the
   mark's two shadows behind it until they fold back under the line. */
.promise { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--tile) 0%, var(--shade) 70%); overflow: hidden; }
.promise-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.promise-head { margin-bottom: 0; max-width: none; }
.promise-head h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.promise-head .setup { display: block; margin-bottom: .45em; font-size: .5em; line-height: 1.3; font-weight: 500; letter-spacing: -.015em; color: var(--muted); }
.promise-head p { font-size: 17px; max-width: 26em; }

.ledger { --e: 10px; position: relative; padding: clamp(22px, 3vw, 38px); border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--tile);
  box-shadow: calc(var(--e) * -1) 0 0 var(--echo-near), calc(var(--e) * -2) 0 0 var(--echo-far); }
.ledger-group + .ledger-group { margin-top: clamp(20px, 2.4vw, 28px); padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--line); }
.ledger h3 { font-size: 13.5px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.ledger ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.ledger li { position: relative; padding-left: 30px; font-size: clamp(15.5px, 1.3vw, 17.5px); line-height: 1.45; color: var(--cream); }
/* stays: a solid mint square with its two shadows */
.stay li::before { content: ""; position: absolute; left: 8px; top: .58em; width: 9px; height: 9px; border-radius: 3px; background: var(--mint);
  box-shadow: -3px 0 0 var(--echo-near), -6px 0 0 var(--echo-far); }
/* goes online: a hollow square, it leaves only when asked */
.online li { color: color-mix(in srgb, var(--cream) 88%, var(--muted)); }
.online li::before { content: ""; position: absolute; left: 6px; top: .5em; width: 11px; height: 11px; border-radius: 3px; border: 2px solid var(--line-2); box-sizing: border-box; }
/* doesn't exist: struck out, in the mark's colours */
.none ul { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 14px; }
.none li { padding-left: 0; font-size: clamp(18px, 1.65vw, 22px); font-weight: 550; letter-spacing: -.015em; line-height: 1.3; color: var(--muted); }
.none .x { --y: calc(50% + 1px); padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image: linear-gradient(var(--mint), var(--mint)), linear-gradient(var(--echo-near), var(--echo-near)), linear-gradient(var(--echo-far), var(--echo-far));
  background-repeat: no-repeat; background-size: 100% 2px, 100% 2px, 100% 2px; background-position: 0 var(--y), 0 var(--y), 0 var(--y); }

@media (max-width: 1000px) {
  .promise-in { grid-template-columns: 1fr; }
  .promise-head p { max-width: 34em; }
}
@media (max-width: 520px) {
  .ledger { --e: 6px; margin-left: 12px; border-radius: 12px; }
  .none ul { gap: 8px 20px; }
}

/* ---------- news: the latest release as a card with the mark's echoes, the earlier ones as a list ---------- */
.news { border-top: 1px solid var(--line); }
.news-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.rel { --e: 10px; position: relative; padding: clamp(22px, 3vw, 38px); margin-left: calc(var(--e) * 2);
  border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--tile);
  box-shadow: calc(var(--e) * -1) 0 0 var(--echo-near), calc(var(--e) * -2) 0 0 var(--echo-far); }
.rel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.rel-num { display: block; padding-left: 6px; font-size: clamp(46px, 5.4vw, 72px); font-weight: 700; line-height: .95; letter-spacing: -.045em;
  color: var(--mint); text-shadow: -3px 0 0 var(--echo-near), -6px 0 0 var(--echo-far); font-variant-numeric: tabular-nums; }
.rel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 14px; }
.rel-tag { display: inline-block; padding: 4px 9px; border-radius: 6px; background: var(--mint); color: var(--mint-ink); font-size: 12.5px; font-weight: 650; line-height: 1.2; }
.rel-meta time { color: var(--cream); font-weight: 500; }
.rel-lead { margin-top: 20px; font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; line-height: 1.35; letter-spacing: -.015em; text-wrap: pretty; }
.rel-note { margin-top: 16px; padding: 12px 16px; border-radius: 0 8px 8px 0; border-left: 3px solid var(--amber); background: var(--raise); font-size: 14.5px; line-height: 1.55; }
.rel-lang { margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.rel-groups, .rel-rest { display: grid; gap: 24px; }
.rel-groups { margin-top: 26px; }
.rel-rest { overflow: hidden; }
.rel-rest[hidden] { display: none; }
.rel-group h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.rel-group .ticks { margin-top: 10px; }
.rel-group .ticks li { color: color-mix(in srgb, var(--cream) 82%, var(--muted)); }
.rel-group b { color: var(--cream); font-weight: 600; }
.rel-group code { white-space: normal; }
.rel-toggle { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 2px; border: 0; background: none; color: var(--cream);
  font: 600 15px/1 var(--font); cursor: pointer; }
.rel-toggle i { position: relative; width: 22px; height: 22px; border-radius: 6px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2), -3px 0 0 var(--echo-near), -6px 0 0 var(--echo-far);
  transition: transform .35s var(--spring); margin-left: 6px; }
.rel-toggle i::before, .rel-toggle i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; background: var(--mint); }
.rel-toggle i::after { transform: rotate(90deg); transition: transform .35s var(--spring); }
.rel-toggle[aria-expanded="true"] i::after { transform: rotate(0deg); }
.rel-toggle:hover i { transform: translateX(2px); }
.rel-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.rel-full { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; }
.rel-full svg { color: var(--mint); transition: transform .35s var(--spring); }
.rel-full:hover svg { transform: translateX(4px); }
.rel-all { color: var(--muted); font-size: 14.5px; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.rel-all:hover { color: var(--cream); text-decoration-color: var(--mint); }

.news-side { display: grid; gap: 36px; }
.past[hidden] { display: none; }
.news-side h3 { font-size: 13.5px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.past-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.past-list a { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 4px 14px; padding: 14px 4px; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.past-v { grid-row: span 2; font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; font-variant-numeric: tabular-nums;
  transition: color .2s, text-shadow .35s var(--spring), transform .35s var(--spring); text-shadow: 0 0 0 var(--echo-near), 0 0 0 var(--echo-far); }
.past-what { font-size: 14.5px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.past-what b { font-weight: 600; }
.past-list time { color: var(--muted); font-size: 13px; }
.past-list a:hover .past-v { color: var(--mint); transform: translateX(4px); text-shadow: -2px 0 0 var(--echo-near), -4px 0 0 var(--echo-far); }

.discord-card { position: relative; overflow: hidden; padding: 26px 26px 28px; border-radius: var(--r-panel);
  border: 1px solid color-mix(in srgb, var(--discord) 45%, var(--line-2));
  background: linear-gradient(155deg, color-mix(in srgb, var(--discord) 24%, var(--tile)) 0%, var(--tile) 62%); }
.discord-card h3 { margin-top: 18px; color: var(--cream); font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.discord-card p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.discord-card .btn { margin-top: 20px; }
/* the logo stands like the mark: two blurple echoes behind it, which step out when you point at the card */
.dc-mark { position: relative; display: block; width: 44px; height: 44px; margin-left: 12px; }
.dc-mark svg { position: absolute; inset: 0; transition: transform .45s var(--spring); }
.dc-mark svg:nth-child(1) { color: var(--discord-far); transform: translateX(-12px); transition-delay: .08s; }
.dc-mark svg:nth-child(2) { color: var(--discord-near); transform: translateX(-6px); transition-delay: .04s; }
.dc-mark svg:nth-child(3) { color: var(--cream); }
.discord-card:hover .dc-mark svg:nth-child(1) { transform: translateX(-20px) rotate(-6deg); }
.discord-card:hover .dc-mark svg:nth-child(2) { transform: translateX(-10px) rotate(-3deg); }
.discord-card:hover .dc-mark svg:nth-child(3) { transform: translateY(-3px); }
@media (max-width: 1000px) { .news-in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .rel { --e: 6px; margin-left: 12px; border-radius: 12px; } }

/* ---------- install: a real sequence, so it is numbered ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-size: 34px; font-weight: 650; line-height: 1; color: var(--mint); text-shadow: -3px 0 0 var(--echo-near), -6px 0 0 var(--echo-far); padding-left: 6px; }
.steps h3 { margin-top: 18px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.steps p b { color: var(--cream); font-weight: 600; }
.install-cta { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.install-cta p { color: var(--muted); font-size: 14.5px; }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: 96px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; font-weight: 600; font-size: 17px; line-height: 1.4; position: relative; transition: color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .35s var(--spring), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--mint); }
.faq summary:hover { color: var(--mint); }
.faq details p { padding: 0 48px 22px 0; color: var(--muted); font-size: 16px; }
.faq .answer { overflow: hidden; }
.faq summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 6px; }
.faq details p b { color: var(--cream); font-weight: 600; }

/* ---------- footer ---------- */
.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; }
.foot-brand p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; align-self: start; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.foot-links a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.fine { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; opacity: .85; }
/* the page ends as it began: the name, half sunk in the ground, with the mark's two shadows */
.foot { padding-bottom: 0; overflow: hidden; }
.foot-mark { margin: clamp(32px, 9vw, 128px) 0 -.12em;   /* room above for the figure that ends up standing on it */ text-align: center; white-space: nowrap; user-select: none;
  font: 700 clamp(100px, 24vw, 380px)/.8 "Sora", sans-serif; letter-spacing: -.055em; color: var(--mint);
  text-shadow: -.035em 0 0 var(--echo-near), -.07em 0 0 var(--echo-far); }

/* ---------- the video, played in the page ---------- */
.theater { --e: 10px; width: min(1200px, calc(100vw - 56px)); padding: 0; overflow: visible; background: #121110; color: var(--cream);
  border: 1px solid var(--line-2); border-radius: var(--r-panel);
  box-shadow: calc(var(--e) * -1) 0 0 var(--echo-near), calc(var(--e) * -2) 0 0 var(--echo-far); }
.theater::backdrop { background: color-mix(in srgb, var(--shade) 90%, transparent); }
.theater video { display: block; width: 100%; height: auto; border-radius: inherit; background: #121110; }
.theater-close { right: 0; top: -46px; color: var(--cream); }

/* ---------- download sheet ---------- */
.dl-toast { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80; width: min(400px, calc(100vw - 32px)); }
.dl-toast[hidden] { display: none; }
.dl-card {
  position: relative; padding: 20px 52px 20px 22px; border-radius: var(--r-panel);
  background: var(--tile); border: 1px solid var(--line-2);
  box-shadow: -8px 0 0 var(--echo-near), -16px 0 0 var(--echo-far), 0 24px 60px -20px rgba(0, 0, 0, .8);
  margin-left: 16px;
}
.dl-title { font-weight: 600; font-size: 16px; }
.dl-card p:not(.dl-title) { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.dl-card p b { color: var(--cream); font-weight: 600; }
.dl-card .btn { margin-top: 14px; }
.dl-close { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.dl-close:hover { color: var(--cream); background: var(--raise); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links a { padding: 8px 9px; }
}
@media (max-width: 960px) {
  .nav nav, .nav-actions .js-star, .nav-actions .nav-discord { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: block; margin-left: 0; }
  .hero-in { grid-template-columns: 1fr; }
  /* one column: the window sits flat under the text, its echoes plain offsets again */
  .hero-art { perspective: none; margin-top: 20px; padding-bottom: 6%; }
  .hero-stage { --e: 8px; width: calc(100% - 16px); margin-left: 16px; transform: none; transform-style: flat; }
  .plane-near { transform: translateX(calc(var(--e) * -1)); }
  .plane-far { transform: translateX(calc(var(--e) * -2)); }
  .hero-stage .figure { left: -5%; bottom: -12%; width: 32%; transform: none; }
  .tour, .tour.flip { grid-template-columns: 1fr; }
  .tour.flip .rail, .tour.flip .stage { order: 0; }
  .rail { position: relative; top: 0; display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 4px calc(var(--gutter) + 8px); }
  .rail::-webkit-scrollbar { display: none; }
  .rail button { flex: none; padding: 11px 14px; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 16px; }
  .facts, .steps { grid-template-columns: 1fr; gap: 32px; }
  .cta { align-items: stretch; }
  .cta .btn { flex: 1 1 100%; }
  .cta .btn-quiet { margin-left: 12px; }
  .nav-actions .btn-primary { display: none; }
  .window { --e: 6px; }
  .panel { margin-left: 12px; }
  .foot-in { grid-template-columns: 1fr; }
}

/* ---------- motion: things arrive the way the mark moves, their shadows catching up ----------
   Hidden states exist only while the script runs (html.js) and motion is allowed. Every entrance
   fills backwards only, so once it ends the normal rules (hover, focus) are in charge again. */
:root { --soft: cubic-bezier(.2, .8, .2, 1); }
@keyframes catch {
  0% { opacity: 0; transform: translateX(-.4em); text-shadow: -.1em 0 0 var(--echo-near), -.2em 0 0 var(--echo-far); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: none; text-shadow: 0 0 0 transparent, 0 0 0 transparent; }
}
@keyframes arrive { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.045) translate(-.8%, -.5%); } }
@keyframes echoes-out {
  0% { opacity: 0; transform: translateX(calc(var(--e) * -2)); box-shadow: 0 0 0 var(--echo-near), 0 0 0 var(--echo-far); }
  40% { opacity: 1; }
  100% { opacity: 1; transform: none; box-shadow: calc(var(--e) * -1) 0 0 var(--echo-near), calc(var(--e) * -2) 0 0 var(--echo-far); }
}
@keyframes plane-near { from { opacity: 0; transform: translate3d(0, 0, -1px); } }
@keyframes plane-far { from { opacity: 0; transform: translate3d(0, 0, -2px); } }
@keyframes mark-in { from { opacity: 0; transform: translateY(18%); text-shadow: 0 0 0 var(--echo-near), 0 0 0 var(--echo-far); } }
@keyframes draw { 0% { transform: scaleX(0); background: var(--mint); } 60% { background: var(--mint); } 100% { transform: scaleX(1); background: var(--line-2); } }
@keyframes num {
  0% { opacity: 0; transform: translateX(-.3em); text-shadow: 0 0 0 var(--echo-near), 0 0 0 var(--echo-far); }
  100% { opacity: 1; transform: none; text-shadow: -3px 0 0 var(--echo-near), -6px 0 0 var(--echo-far); }
}

@keyframes dot {
  0% { transform: scale(0); box-shadow: 0 0 0 var(--echo-near), 0 0 0 var(--echo-far); }
  55% { transform: scale(1.3); }
  100% { transform: none; box-shadow: -3px 0 0 var(--echo-near), -6px 0 0 var(--echo-far); }
}
/* the strike: mint leads, the two shadows trail lower and later, then fold back under it */
@keyframes strike {
  0%, 30% { color: var(--cream); }
  0% { background-size: 0% 2px, 0% 2px, 0% 2px; background-position: 0 var(--y), 0 calc(var(--y) + 5px), 0 calc(var(--y) + 10px); }
  45% { background-size: 100% 2px, 62% 2px, 30% 2px; background-position: 0 var(--y), 0 calc(var(--y) + 5px), 0 calc(var(--y) + 10px); }
  72% { background-size: 100% 2px, 100% 2px, 100% 2px; background-position: 0 var(--y), 0 calc(var(--y) + 5px), 0 calc(var(--y) + 10px); }
  100% { background-size: 100% 2px, 100% 2px, 100% 2px; background-position: 0 var(--y), 0 var(--y), 0 var(--y); }
}

@media (prefers-reduced-motion: no-preference) {
  /* headings: each word slides in and its two shadows fold back under it */
  .split .w { display: inline-block; }
  .js .split:not(.in) .w { opacity: 0; }
  .split.in .w { animation: catch .9s var(--soft) backwards; animation-delay: calc(var(--d, 0ms) + var(--i) * 60ms); }
  h1.split { --d: 120ms; }

  /* page load */
  .js:not(.loaded) .nav-in, .js:not(.loaded) .hero .lede, .js:not(.loaded) .hero .cta > *,
  .js:not(.loaded) .hero-meta, .js:not(.loaded) .figure, .js:not(.loaded) .hero-window, .js:not(.loaded) .plane { opacity: 0; }
  .loaded .nav-in { animation: fade .7s ease backwards; }
  .js:not(.loaded) .hero-new { opacity: 0; }
  .loaded .hero-new { animation: arrive .8s var(--soft) .05s backwards; }
  /* the one arrival of the page: the window, then its two planes spring out behind it, then the mark */
  .loaded .hero-window { animation: rise .9s var(--soft) .15s backwards; }
  .loaded .plane-near { animation: plane-near 1.1s var(--spring) .6s backwards; }
  .loaded .plane-far { animation: plane-far 1.1s var(--spring) .7s backwards; }
  .loaded .figure { animation: fade .8s ease .5s backwards; }
  .loaded .hero .watch { animation: fade .9s ease 1s backwards; }
  .foot.in .foot-mark { animation: mark-in 1.3s var(--soft) .15s backwards; }
  .js .foot:not(.in) .foot-mark { opacity: 0; }
  .theater[open] { animation: echoes-out .6s var(--spring) backwards; }
  .loaded .hero .lede { animation: rise .9s var(--soft) .55s backwards; }
  .loaded .hero .btn-primary { animation: echoes-out 1s var(--spring) .75s backwards; }
  .loaded .hero .btn-quiet { animation: arrive .8s var(--soft) .88s backwards; }
  .loaded .hero-meta { animation: fade .9s ease 1.05s backwards; }

  /* sections, as they come into view */
  .js .section-head:not(.in) p { opacity: 0; }
  .section-head.in p { animation: rise .9s var(--soft) backwards; animation-delay: calc(var(--words, 4) * 60ms + 250ms); }

  .js .more-list:not(.in) li { opacity: 0; }
  .more-list.in li { animation: arrive .8s var(--soft) backwards; animation-delay: calc(var(--i) * 80ms + 100ms); }
  .more-list.in li::before { animation: draw 1.2s var(--glide) backwards; animation-delay: calc(var(--i) * 80ms); }

  .js .solo:not(.in) .window, .js .solo:not(.in) li { opacity: 0; }
  .solo.in .window { animation: echoes-out 1.1s var(--spring) .1s backwards; }
  /* in .depth the echoes are already there as planes: the window comes up out of them, like a page change in the app */
  .tour.in .depth .window, .solo.in .depth .window { animation: fade .7s ease .2s backwards; }
  .depth::before, .depth::after { transition: opacity .5s ease, translate .7s var(--spring); }
  /* living screenshots: every page drifts slowly, as if a camera were on it; the preview drifts faster */
  .tour .shots, .solo .shots { animation: drift 22s ease-in-out infinite alternate; transform-origin: 30% 40%; }
  .tour.flip .shots { transform-origin: 70% 40%; }
  .js :is(.tour, .solo):not(.in) .depth::before, .js :is(.tour, .solo):not(.in) .depth::after { opacity: 0; }
  .solo.in li { animation: arrive .7s var(--soft) backwards; animation-delay: calc(var(--i) * 80ms + 420ms); }

  .js .tour:not(.in) .rail button, .js .tour:not(.in) .pill, .js .tour:not(.in) .window, .js .tour:not(.in) .panel { opacity: 0; }
  .tour.in .rail button { animation: arrive .6s var(--soft) backwards; animation-delay: calc(var(--i) * 45ms); }
  .tour.in .pill { animation: fade .5s ease .4s backwards; }
  .tour.in .window { animation: echoes-out 1.1s var(--spring) .15s backwards; }
  .tour.in .panel { animation: rise .7s var(--soft) .45s backwards; }
  .tour.in .panel.enter { animation-duration: .45s; animation-delay: 0s; }


  .js .steps:not(.in) li { opacity: 0; }
  .steps.in li { animation: arrive .8s var(--soft) backwards; animation-delay: calc(var(--i) * 110ms); }
  .steps.in li::before { animation: num 1s var(--spring) backwards; animation-delay: calc(var(--i) * 110ms + 180ms); }
  .steps.in li::after { animation: draw 1.2s var(--glide) backwards; animation-delay: calc(var(--i) * 110ms); }

  .js .install-cta:not(.in) > * { opacity: 0; }
  .install-cta.in .btn-primary { animation: echoes-out 1s var(--spring) .1s backwards; }
  .install-cta.in p { animation: fade .9s ease .4s backwards; }

  /* privacy ledger: the card arrives with its shadows, what stays lands, then the strikes walk */
  .js .ledger:not(.in), .js .ledger:not(.in) li { opacity: 0; }
  .ledger.in { animation: echoes-out 1.1s var(--spring) backwards; }
  .ledger.in .stay li { animation: arrive .7s var(--soft) backwards; animation-delay: calc(380ms + var(--i, 0) * 90ms); }
  .ledger.in .stay li::before { animation: dot .9s var(--spring) backwards; animation-delay: calc(480ms + var(--i, 0) * 90ms); }
  .ledger.in .online li { animation: arrive .7s var(--soft) backwards; animation-delay: calc(720ms + var(--i, 0) * 90ms); }
  .ledger.in .none li { animation: fade .5s ease backwards; animation-delay: calc(1020ms + var(--i, 0) * 130ms); }
  .ledger.in .none .x { animation: strike 1.15s var(--glide) backwards; animation-delay: calc(1120ms + var(--i, 0) * 130ms); }

  /* news: the release card arrives with its shadows, its number lands, the side follows */
  .js .news-in:not(.in) .rel, .js .news-in:not(.in) .news-side > * { opacity: 0; }
  .news-in.in .rel { animation: echoes-out 1.1s var(--spring) backwards; }
  .news-in.in .rel-num { animation: num 1s var(--spring) .3s backwards; }
  .news-in.in .news-side > * { animation: arrive .8s var(--soft) backwards; animation-delay: calc(var(--i, 0) * 120ms + 300ms); }
  .rel-body.fresh > * { animation: rise .6s var(--soft) backwards; animation-delay: calc(var(--i, 0) * 70ms); }

  .js .faq:not(.in) details { opacity: 0; }
  .faq.in details { animation: arrive .7s var(--soft) backwards; animation-delay: calc(var(--i) * 60ms); }

  .js .foot:not(.in) .foot-in > * { opacity: 0; }
  .foot.in .foot-in > * { animation: fade .9s ease backwards; animation-delay: calc(var(--i) * 120ms); }

  .mobile-menu:not([hidden]) a { animation: arrive .45s var(--soft) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .i-star, .pill i, .faq summary::after, .hero-stage, .watch svg { transition: none !important; }
  .btn-primary:hover, .btn-primary:active { transform: none; }
}

/* ---------- legal page ---------- */
.doc { max-width: 860px; }
.doc-page .nav-actions { margin-left: auto; }
.doc-title { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 650; letter-spacing: -.03em; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.doc-toc a { color: var(--cream); text-decoration: none; font-size: 14.5px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r); }
.doc-toc a:hover { border-color: var(--mint); color: var(--mint); }
.doc section { padding-top: 40px; scroll-margin-top: 88px; }
.doc section + section { margin-top: 24px; border-top: 1px solid var(--line); }
.doc h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 650; letter-spacing: -.02em; }
.doc h3 { margin-top: 28px; font-size: 17px; font-weight: 600; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.doc p { margin-top: 12px; }
.doc a { color: var(--cream); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { color: var(--mint); }
.doc code { font-family: var(--mono); font-size: .92em; color: var(--cream); }
.doc-meta { color: var(--cream) !important; font-weight: 600; }
.doc-list { margin: 12px 0 0; padding-left: 1.6em; display: grid; gap: 8px; }
.doc pre { margin-top: 14px; padding: 16px 18px; background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); font: 12.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; }
