/* void.org — one stylesheet for the home page and the two legal pages. The app's welcome palette
   (ios/Common/Welcome/WelcomeCards.swift, WelcomePalette); system fonts only: nothing is fetched from elsewhere. */
:root {
  --ink: #03050b;
  --ice: #b3e0f2;
  --glow: #5ca8d6;
  --deep: #1a5478;
  --amber: #f5b86b;
  --coral: #f28773;
  --text: #e9f1f6;
  --soft: rgba(233, 241, 246, 0.66);
  --faint: rgba(233, 241, 246, 0.42);
  --line: rgba(179, 224, 242, 0.12);
  --tile: rgba(255, 255, 255, 0.045);
  --pad: clamp(20px, 5vw, 48px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── The opening: the orb's canvas, the promise under the word it draws ── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 420px; overflow: hidden; background: #000; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.5s ease; }
.hero canvas.on { opacity: 1; }
.hero canvas.hot { cursor: pointer; }
.hero::after { /* the canvas ends in the page's own dark */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(to bottom, rgba(3, 5, 11, 0), var(--ink)); pointer-events: none;
}
.hero-copy {
  /* under the orb, clear of its corona: the script's layout (R, cy) in CSS, so it is placed before any script runs */
  position: absolute; z-index: 1; left: 0; right: 0; top: calc(50% + min(21.5vw, 21.5svh));
  padding: 0 var(--pad); text-align: center; pointer-events: none;
}
/* The name: the page's own headline type, flat. It and what follows come up at once, one after the other. */
.hero h1 {
  font-size: clamp(50px, 4.6vw + 30px, 88px); line-height: 1; font-weight: 600; letter-spacing: -0.04em;
  background: linear-gradient(to bottom, #fff 20%, var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em; /* the gradient's box, or descenders are cut */
}
.hero-copy > *, .cue { animation: come 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both; }
.hero-copy .promise { animation-delay: 0.22s; }
.hero-copy .beta { animation-delay: 0.34s; }
.cue { animation-delay: 0.9s; }
@keyframes come { from { opacity: 0; transform: translateY(10px); } }
@media (orientation: portrait) { .hero-copy { top: calc(50% - min(22vw, 12.5svh) + 40vw); } }
.promise { margin: 12px auto 0; max-width: 30em; font-size: clamp(16px, 1.1vw + 12px, 20px); line-height: 1.45; color: var(--soft); text-wrap: balance; }
.promise b { font-weight: 500; color: var(--text); }
.beta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 13px;
  border: 1px solid var(--line); border-radius: 99px; background: rgba(179, 224, 242, 0.05);
  font-size: 13px; color: var(--soft); letter-spacing: 0.01em;
}
.beta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.cue {
  position: absolute; z-index: 1; left: 50%; bottom: 4px; width: 44px; height: 40px; margin-left: -22px;
  display: grid; place-items: center; color: var(--faint); font-size: 20px;
}
.cue .i { animation: nudge 2.6s ease-in-out infinite; }
.cue:hover { color: var(--ice); }
@keyframes nudge { 50% { transform: translateY(5px); } }
@media (max-height: 560px) { .beta, .cue { display: none; } }
/* No WebGL2 (or no script): the icon, the name, still. */
.still { display: none; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding-bottom: 12vh; }
.still img { width: min(40vmin, 200px); height: auto; border-radius: 22%; }
.fallback .still { display: flex; }
.fallback .hero canvas { display: none; }

/* ── Sections ── */
section.band { padding: clamp(60px, 9vw, 112px) 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glow); }
h2 { margin-top: 12px; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; font-weight: 600; letter-spacing: -0.022em; text-wrap: balance;
     background: linear-gradient(to bottom, #fff, var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 18px; max-width: 34em; font-size: clamp(17px, 0.6vw + 15px, 20px); color: var(--soft); text-wrap: pretty; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rise.in { opacity: 1; transform: none; }

/* ── The drift: what was said, then what it became (the app's welcome rows) ── */
.drift { margin-top: clamp(36px, 6vw, 64px); display: grid; gap: 14px; }
.row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.track { display: flex; align-items: center; gap: 14px; width: max-content; padding: 2px 7px; }
.track.moving { animation: drift var(--t, 80s) linear infinite; }
.row.back .track.moving { animation-direction: reverse; }
.drift:hover .track.moving { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.said {
  flex: none; padding: 11px 16px; border-radius: 20px 20px 6px 20px; font-size: 15px; line-height: 1.3; color: #def1fa; white-space: nowrap;
  background: linear-gradient(to bottom, rgba(92, 168, 214, 0.26), rgba(92, 168, 214, 0.16)); border: 1px solid rgba(179, 224, 242, 0.2);
}
.tile {
  flex: none; height: 96px; min-width: 148px; padding: 12px 14px; border-radius: 20px; display: flex; flex-direction: column;
  background: var(--tile); border: 1px solid var(--line); font-size: 12px; color: var(--soft);
}
.tile header { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ice); }
.tile header .at { margin-left: auto; padding-left: 12px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.tile.warm header { color: var(--amber); }
.tile .big { margin-top: auto; font-size: 25px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.tile .big small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--faint); margin-left: 5px; }
.tile .name { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; }
.tile .note { margin-top: 2px; white-space: nowrap; color: var(--faint); }
.tile .grow { margin-top: auto; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-top: 7px; }
.bars i { flex: 1; min-width: 7px; border-radius: 2px; background: rgba(179, 224, 242, 0.3); }
.bars i.on { background: var(--ice); }
.stages { display: flex; gap: 2px; height: 7px; margin-top: 9px; border-radius: 4px; overflow: hidden; }
.stages i { background: var(--deep); }
.stages i:nth-child(2n) { background: var(--glow); }
.stages i:nth-child(3n) { background: var(--ice); }
.dots { display: grid; grid-template-columns: repeat(10, 9px); gap: 4px; margin-top: auto; }
.dots i { width: 9px; height: 9px; border-radius: 3px; background: rgba(245, 184, 107, 0.16); }
.dots i.on { background: var(--amber); }
.todo { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 1px; color: var(--text); font-size: 12.5px; line-height: 1.3; }
.todo li { display: flex; align-items: center; gap: 7px; }
.todo li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--faint); flex: none; }
.todo li.done { color: var(--faint); text-decoration: line-through; }
.todo li.done::before { background: var(--glow); border-color: var(--glow); }
.tile.timer { flex-direction: row; align-items: center; gap: 13px; min-width: 0; }
.ring { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums;
        background: radial-gradient(closest-side, #0a0f18 82%, transparent 84%), conic-gradient(var(--amber) 68%, rgba(245, 184, 107, 0.18) 0); }
.spark { display: block; width: 100%; height: 26px; margin-top: 6px; overflow: visible; }
.spark path { fill: none; stroke: var(--ice); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile.map { position: relative; min-width: 168px; overflow: hidden; padding: 0; }
.tile.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile.map .chip { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; color: var(--text); background: rgba(3, 5, 11, 0.72); border: 1px solid var(--line); }
.wave { display: flex; align-items: center; gap: 3px; height: 30px; margin-top: auto; }
.wave i { width: 3px; border-radius: 2px; background: rgba(179, 224, 242, 0.32); }
.wave i.on { background: var(--ice); }

/* ── What it does ── */
.grid { margin-top: clamp(36px, 6vw, 60px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.cell { background: var(--ink); padding: clamp(22px, 3vw, 32px); }
.cell .i { font-size: 22px; color: var(--ice); }
.cell h3 { margin-top: 16px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.cell p { margin-top: 7px; font-size: 15.5px; line-height: 1.5; color: var(--soft); }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid { grid-template-columns: 1fr; } .cell { padding: 20px 22px; } .cell h3 { margin-top: 11px; } }

/* ── Yours alone ── */
.own { position: relative; overflow: hidden; }
.own::before { /* the icon's halo, far behind */
  content: ""; position: absolute; inset: 0 max(0px, 50% - 620px); pointer-events: none;
  background: radial-gradient(ellipse closest-side, rgba(26, 84, 120, 0.36), rgba(26, 84, 120, 0));
}
.own .wrap { position: relative; }
.facts { margin: clamp(34px, 5vw, 54px) auto 0; padding: 0; list-style: none; max-width: 860px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); text-align: left; }
.facts li { padding-top: 16px; border-top: 1px solid var(--line); }
.facts b { display: block; font-size: 16.5px; font-weight: 600; color: var(--text); }
.facts span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--soft); }
.more { display: inline-block; margin-top: clamp(28px, 4vw, 40px); font-size: 16px; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; gap: 18px; } }

/* ── The end, the foot ── */
.end { padding-top: 0; }
.end p { margin: 14px auto 0; max-width: 30em; color: var(--soft); }
.end .mail { display: inline-block; margin-top: 24px; padding: 12px 22px; border-radius: 99px; font-weight: 600; color: var(--ink); background: linear-gradient(to bottom, #fff, var(--ice)); }
.end .mail:hover { text-decoration: none; filter: brightness(1.08); }
footer.foot { border-top: 1px solid var(--line); padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--faint); }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
footer.foot a { color: var(--soft); }
@media (max-width: 540px) { footer.foot nav { margin-left: 0; width: 100%; } }

/* ── The legal pages ── */
.bar { padding: 22px 0; border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 12px; }
.bar a.home { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.bar a.home:hover { text-decoration: none; color: #fff; }
.bar img { width: 30px; height: 30px; border-radius: 22%; }
.bar nav { margin-left: auto; display: flex; gap: 20px; font-size: 14.5px; }
.bar nav a { color: var(--soft); }
.bar nav a[aria-current] { color: var(--text); }
.doc { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 76px) var(--pad) clamp(56px, 9vw, 110px); }
.doc h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -0.022em; }
.doc .date { margin-top: 12px; font-size: 14.5px; color: var(--faint); }
.doc .intro { margin-top: 26px; font-size: 18.5px; color: var(--soft); }
.doc h2 { margin-top: 46px; font-size: 22px; line-height: 1.25; letter-spacing: -0.012em; background: none; color: var(--text); -webkit-text-fill-color: currentColor; }
.doc h3 { margin-top: 26px; font-size: 17px; font-weight: 600; }
.doc p, .doc ul, .doc table { margin-top: 13px; }
.doc p, .doc li, .doc td { color: var(--soft); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 1.15em; }
.doc li { margin-top: 7px; }
.doc li::marker { color: var(--glow); }
.doc .box { margin-top: 26px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--tile); }
.doc .box p:first-child, .doc .box ul:first-child { margin-top: 0; }
.doc .scroll { overflow-x: auto; margin-top: 16px; }
.doc table { width: 100%; min-width: 520px; margin-top: 0; border-collapse: collapse; font-size: 15px; }
.doc th { text-align: left; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 0 14px 9px 0; border-bottom: 1px solid var(--line); }
.doc td { vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.doc td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .cue .i { animation: none; }
  .hero-copy > *, .cue { animation: none; }
  .track.moving { animation: none; }
  .row { overflow-x: auto; }
}
