/* Kaviris website sky: Nyx (#0A0A1F since 2026-11-30, Step 6 of brand/background-study-darker.html; was #161733) with a low horizon and tiny stars, the "Mixed" option Ulf picked on 2026-11-01
   in brand/background-study.html. Generated with the study's seeded star generator: 18 tiny stars at normal brightness
   and 45 tiny faded ones, kept to the right half (x 48-100%) so they never sit behind the text column; mostly ice,
   about 1 in 10 aurora (awake) and 1 in 12 ember (asleep), like the logo sky. The portal uses flat Nyx. */
.nyx-sky {
  background-color: #0A0A1F;
  background-image:
    radial-gradient(circle at 48.0% 52.0%,rgba(62,240,180,0.35) 0,rgba(62,240,180,0.35) 0.32px,rgba(62,240,180,0) 0.72px),
    radial-gradient(circle at 95.0% 13.3%,rgba(230,251,246,0.53) 0,rgba(230,251,246,0.53) 0.54px,rgba(230,251,246,0) 0.94px),
    radial-gradient(circle at 98.4% 36.2%,rgba(230,251,246,0.56) 0,rgba(230,251,246,0.56) 0.49px,rgba(230,251,246,0) 0.89px),
    radial-gradient(circle at 90.8% 29.1%,rgba(62,240,180,0.49) 0,rgba(62,240,180,0.49) 0.56px,rgba(62,240,180,0) 0.96px),
    radial-gradient(circle at 60.1% 38.4%,rgba(230,251,246,0.43) 0,rgba(230,251,246,0.43) 0.43px,rgba(230,251,246,0) 0.83px),
    radial-gradient(circle at 76.9% 15.8%,rgba(230,251,246,0.56) 0,rgba(230,251,246,0.56) 0.27px,rgba(230,251,246,0) 0.67px),
    radial-gradient(circle at 74.5% 24.9%,rgba(230,251,246,0.61) 0,rgba(230,251,246,0.61) 0.42px,rgba(230,251,246,0) 0.82px),
    radial-gradient(circle at 99.0% 11.7%,rgba(62,240,180,0.65) 0,rgba(62,240,180,0.65) 0.39px,rgba(62,240,180,0) 0.79px),
    radial-gradient(circle at 81.0% 11.4%,rgba(230,251,246,0.79) 0,rgba(230,251,246,0.79) 0.50px,rgba(230,251,246,0) 0.90px),
    radial-gradient(circle at 90.6% 31.6%,rgba(230,251,246,0.41) 0,rgba(230,251,246,0.41) 0.41px,rgba(230,251,246,0) 0.81px),
    radial-gradient(circle at 52.5% 56.0%,rgba(230,251,246,0.29) 0,rgba(230,251,246,0.29) 0.56px,rgba(230,251,246,0) 0.96px),
    radial-gradient(circle at 52.7% 28.6%,rgba(208,113,79,0.69) 0,rgba(208,113,79,0.69) 0.44px,rgba(208,113,79,0) 0.84px),
    radial-gradient(circle at 99.9% 59.6%,rgba(230,251,246,0.31) 0,rgba(230,251,246,0.31) 0.28px,rgba(230,251,246,0) 0.68px),
    radial-gradient(circle at 58.7% 52.2%,rgba(230,251,246,0.34) 0,rgba(230,251,246,0.34) 0.35px,rgba(230,251,246,0) 0.75px),
    radial-gradient(circle at 51.4% 6.0%,rgba(230,251,246,0.81) 0,rgba(230,251,246,0.81) 0.58px,rgba(230,251,246,0) 0.98px),
    radial-gradient(circle at 66.5% 10.7%,rgba(230,251,246,0.58) 0,rgba(230,251,246,0.58) 0.26px,rgba(230,251,246,0) 0.66px),
    radial-gradient(circle at 58.5% 31.3%,rgba(230,251,246,0.65) 0,rgba(230,251,246,0.65) 0.45px,rgba(230,251,246,0) 0.85px),
    radial-gradient(circle at 91.6% 47.2%,rgba(230,251,246,0.51) 0,rgba(230,251,246,0.51) 0.46px,rgba(230,251,246,0) 0.86px),
    radial-gradient(circle at 48.0% 22.6%,rgba(230,251,246,0.23) 0,rgba(230,251,246,0.23) 0.27px,rgba(230,251,246,0) 0.67px),
    radial-gradient(circle at 85.3% 35.4%,rgba(230,251,246,0.16) 0,rgba(230,251,246,0.16) 0.35px,rgba(230,251,246,0) 0.75px),
    radial-gradient(circle at 81.6% 22.9%,rgba(230,251,246,0.29) 0,rgba(230,251,246,0.29) 0.25px,rgba(230,251,246,0) 0.65px),
    radial-gradient(circle at 63.1% 20.7%,rgba(230,251,246,0.28) 0,rgba(230,251,246,0.28) 0.43px,rgba(230,251,246,0) 0.83px),
    radial-gradient(circle at 92.1% 21.1%,rgba(230,251,246,0.25) 0,rgba(230,251,246,0.25) 0.55px,rgba(230,251,246,0) 0.95px),
    radial-gradient(circle at 95.6% 12.8%,rgba(230,251,246,0.39) 0,rgba(230,251,246,0.39) 0.29px,rgba(230,251,246,0) 0.69px),
    radial-gradient(circle at 98.9% 26.6%,rgba(230,251,246,0.28) 0,rgba(230,251,246,0.28) 0.43px,rgba(230,251,246,0) 0.83px),
    radial-gradient(circle at 52.7% 23.3%,rgba(230,251,246,0.35) 0,rgba(230,251,246,0.35) 0.56px,rgba(230,251,246,0) 0.96px),
    radial-gradient(circle at 76.3% 23.8%,rgba(230,251,246,0.31) 0,rgba(230,251,246,0.31) 0.52px,rgba(230,251,246,0) 0.92px),
    radial-gradient(circle at 67.9% 6.7%,rgba(230,251,246,0.38) 0,rgba(230,251,246,0.38) 0.54px,rgba(230,251,246,0) 0.94px),
    radial-gradient(circle at 72.3% 54.0%,rgba(230,251,246,0.12) 0,rgba(230,251,246,0.12) 0.58px,rgba(230,251,246,0) 0.98px),
    radial-gradient(circle at 49.3% 11.4%,rgba(230,251,246,0.27) 0,rgba(230,251,246,0.27) 0.44px,rgba(230,251,246,0) 0.84px),
    radial-gradient(circle at 94.3% 12.8%,rgba(230,251,246,0.39) 0,rgba(230,251,246,0.39) 0.36px,rgba(230,251,246,0) 0.76px),
    radial-gradient(circle at 56.3% 34.8%,rgba(230,251,246,0.22) 0,rgba(230,251,246,0.22) 0.33px,rgba(230,251,246,0) 0.73px),
    radial-gradient(circle at 78.8% 20.4%,rgba(230,251,246,0.22) 0,rgba(230,251,246,0.22) 0.58px,rgba(230,251,246,0) 0.98px),
    radial-gradient(circle at 70.0% 11.9%,rgba(230,251,246,0.37) 0,rgba(230,251,246,0.37) 0.49px,rgba(230,251,246,0) 0.89px),
    radial-gradient(circle at 76.8% 16.4%,rgba(230,251,246,0.38) 0,rgba(230,251,246,0.38) 0.40px,rgba(230,251,246,0) 0.80px),
    radial-gradient(circle at 83.9% 2.4%,rgba(208,113,79,0.35) 0,rgba(208,113,79,0.35) 0.38px,rgba(208,113,79,0) 0.78px),
    radial-gradient(circle at 59.5% 17.2%,rgba(208,113,79,0.26) 0,rgba(208,113,79,0.26) 0.53px,rgba(208,113,79,0) 0.93px),
    radial-gradient(circle at 66.9% 28.0%,rgba(230,251,246,0.22) 0,rgba(230,251,246,0.22) 0.41px,rgba(230,251,246,0) 0.81px),
    radial-gradient(circle at 57.8% 22.2%,rgba(230,251,246,0.19) 0,rgba(230,251,246,0.19) 0.28px,rgba(230,251,246,0) 0.68px),
    radial-gradient(circle at 52.9% 33.5%,rgba(62,240,180,0.24) 0,rgba(62,240,180,0.24) 0.27px,rgba(62,240,180,0) 0.67px),
    radial-gradient(circle at 93.6% 37.8%,rgba(230,251,246,0.26) 0,rgba(230,251,246,0.26) 0.41px,rgba(230,251,246,0) 0.81px),
    radial-gradient(circle at 68.2% 42.9%,rgba(230,251,246,0.25) 0,rgba(230,251,246,0.25) 0.58px,rgba(230,251,246,0) 0.98px),
    radial-gradient(circle at 83.4% 8.8%,rgba(230,251,246,0.33) 0,rgba(230,251,246,0.33) 0.57px,rgba(230,251,246,0) 0.97px),
    radial-gradient(circle at 82.2% 67.2%,rgba(230,251,246,0.18) 0,rgba(230,251,246,0.18) 0.32px,rgba(230,251,246,0) 0.72px),
    radial-gradient(circle at 48.5% 11.2%,rgba(230,251,246,0.33) 0,rgba(230,251,246,0.33) 0.45px,rgba(230,251,246,0) 0.85px),
    radial-gradient(circle at 87.3% 1.8%,rgba(230,251,246,0.26) 0,rgba(230,251,246,0.26) 0.49px,rgba(230,251,246,0) 0.89px),
    radial-gradient(circle at 92.3% 16.3%,rgba(230,251,246,0.35) 0,rgba(230,251,246,0.35) 0.34px,rgba(230,251,246,0) 0.74px),
    radial-gradient(circle at 79.9% 64.2%,rgba(230,251,246,0.22) 0,rgba(230,251,246,0.22) 0.55px,rgba(230,251,246,0) 0.95px),
    radial-gradient(circle at 79.8% 51.0%,rgba(230,251,246,0.12) 0,rgba(230,251,246,0.12) 0.41px,rgba(230,251,246,0) 0.81px),
    radial-gradient(circle at 83.8% 49.5%,rgba(62,240,180,0.27) 0,rgba(62,240,180,0.27) 0.32px,rgba(62,240,180,0) 0.72px),
    radial-gradient(circle at 70.4% 34.5%,rgba(230,251,246,0.32) 0,rgba(230,251,246,0.32) 0.30px,rgba(230,251,246,0) 0.70px),
    radial-gradient(circle at 84.8% 6.5%,rgba(230,251,246,0.29) 0,rgba(230,251,246,0.29) 0.59px,rgba(230,251,246,0) 0.99px),
    radial-gradient(circle at 61.0% 38.0%,rgba(230,251,246,0.26) 0,rgba(230,251,246,0.26) 0.30px,rgba(230,251,246,0) 0.70px),
    radial-gradient(circle at 77.2% 15.3%,rgba(230,251,246,0.30) 0,rgba(230,251,246,0.30) 0.48px,rgba(230,251,246,0) 0.88px),
    radial-gradient(circle at 61.4% 42.7%,rgba(230,251,246,0.21) 0,rgba(230,251,246,0.21) 0.60px,rgba(230,251,246,0) 1.00px),
    radial-gradient(circle at 79.3% 5.9%,rgba(230,251,246,0.40) 0,rgba(230,251,246,0.40) 0.51px,rgba(230,251,246,0) 0.91px),
    radial-gradient(circle at 87.8% 17.2%,rgba(230,251,246,0.39) 0,rgba(230,251,246,0.39) 0.59px,rgba(230,251,246,0) 0.99px),
    radial-gradient(circle at 78.0% 3.2%,rgba(230,251,246,0.36) 0,rgba(230,251,246,0.36) 0.58px,rgba(230,251,246,0) 0.98px),
    radial-gradient(circle at 81.2% 52.7%,rgba(230,251,246,0.22) 0,rgba(230,251,246,0.22) 0.55px,rgba(230,251,246,0) 0.95px),
    radial-gradient(circle at 96.4% 8.7%,rgba(230,251,246,0.21) 0,rgba(230,251,246,0.21) 0.26px,rgba(230,251,246,0) 0.66px),
    radial-gradient(circle at 52.9% 14.2%,rgba(62,240,180,0.35) 0,rgba(62,240,180,0.35) 0.57px,rgba(62,240,180,0) 0.97px),
    radial-gradient(circle at 59.2% 1.5%,rgba(230,251,246,0.32) 0,rgba(230,251,246,0.32) 0.41px,rgba(230,251,246,0) 0.81px),
    radial-gradient(circle at 66.5% 50.8%,rgba(230,251,246,0.23) 0,rgba(230,251,246,0.23) 0.39px,rgba(230,251,246,0) 0.79px),
    linear-gradient(180deg,#101126 0%,#0D0D22 35%,#0A0A1F 72%,#040413 86%,#02020D 100%);
}

/* Kaviris website day sky: Sky (#E3F0FD) with a warm horizon, the "Warm horizon" option Ulf picked on 2026-11-02
   in brand/background-study.html (light rounds 5 and 6). Pale blue overhead, Sky through the middle, a hint of
   papyrus at the foot like early morning. No stars by day. The light-mode twin of .nyx-sky; the portal uses flat Sky. */
.day-sky {
  background-color: #e3f0fd;
  background-image: linear-gradient(180deg, #d6e8fb 0%, #e3f0fd 50%, #eef1f2 82%, #f5eee3 100%);
}

/* The Kaviris website (design/WEBSITE.md; BRAND.md tokens). The story is one visual world, night to
   day by scroll, whatever the device's setting; the privacy page follows the device, as the portal does.
   Everything is visible without JavaScript; site.js adds html.motion (and html.lite on phones) for the
   motion, and sets --day and --dawn (0..1) and html.day for the sky. */
@font-face { font-family: "Sora"; src: url("/fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("/fonts/red-hat-text.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --body: "Red Hat Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: 32px; --tx: 50%; --ico: 72px; --sw: 1.4;
  /* night (BRAND.md, Step 6) */
  --fg: #E6FBF6; --dim: #A6A9BE; --aurora: #3EF0B4; --ember: #D0714F; --accent: #3EF0B4;
  --panel: #0A0A1F; --panel2: #13152A; --line: #252739; --line2: #2F3149; --black: #0A0A1F;
  --btn-fg: #0A0A1F; --focus: #3EF0B4; --err: #F2A08A;
  --day: 0; --dawn: 0;
  color-scheme: dark;
}
html.day {
  /* day (BRAND.md, light: Sky, Ink, text, dim, aurora and ember text) */
  --fg: #161733; --dim: #4A4C60; --aurora: #087A5A; --ember: #A4482A; --accent: #087A5A;
  --panel: #E3F0FD; --panel2: #D6E8FB; --line: #C3D5EA; --line2: #A8BDD8; --black: #E3F0FD;
  --btn-fg: #161733; --focus: #087A5A; --err: #A4482A;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.motion { scroll-behavior: smooth; }
body { margin: 0; background: #0A0A1F; color: var(--fg); font: 400 18px/1.6 var(--body); overflow-x: clip; }
html.day body { font-weight: 500; }
a { color: inherit; }
h1, h2 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-weight: 300; font-size: clamp(44px, 6.6vw, 84px); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-weight: 300; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.12; }
html.day h2 { font-weight: 400; }
h2:focus { outline: none; }
h2:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 4px; }
p { margin: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* --- the sky: night, a dawn glow, day; fixed behind the page --- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sky > div { position: absolute; inset: 0; }
.sky .dawn { opacity: var(--dawn); background: linear-gradient(180deg, #0A0A1F 0%, #1B1636 45%, #4A2A3E 82%, #6E3A38 100%); }
.sky .day { opacity: var(--day); }

/* --- the top: the name and Sign in --- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 9; background: var(--panel); color: var(--fg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.top { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 28px max(var(--gut), env(safe-area-inset-right, 0px)) 0 max(var(--gut), env(safe-area-inset-left, 0px)); }
.home { display: block; padding: 6px 0; border-radius: 4px; }
.wm { display: block; height: 18px; width: auto; }
.wm-light { display: none; }
.signin { font-weight: 500; text-decoration: none; padding: 8px 2px; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.signin:hover { color: var(--accent); border-color: currentColor; }

/* --- the tree: one column of copy, the stem at --tx, the items beyond it --- */
.tree { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 max(var(--gut), env(safe-area-inset-right, 0px)) 0 max(var(--gut), env(safe-area-inset-left, 0px)); }
.roots { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.roots path { fill: none; stroke: var(--fg); stroke-width: 1.15; stroke-linecap: round; opacity: .7; }
section { position: relative; z-index: 1; }
.hero { min-height: 100vh; min-height: 100svh; margin-top: -76px; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 120px; }
.hero .copy { max-width: calc(var(--tx) - 40px); display: flex; flex-direction: column; gap: 26px; }
.way { font-size: 16px; font-weight: 600; letter-spacing: .04em; color: var(--accent); }
.lede { font-size: 21px; line-height: 1.55; color: var(--dim); max-width: 30em; }

.moment { display: grid; grid-template-columns: calc(var(--tx) - 40px) 1fr; column-gap: calc(40px + 88px); padding: 16vh 0 6vh; }
.moment > .copy { align-self: start; position: sticky; top: 18vh; display: flex; flex-direction: column; gap: 18px; padding-bottom: 24px; }
.moment > .copy p { color: var(--dim); max-width: 28em; }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 64px; }
.item { --p: 1; display: flex; flex-direction: column; gap: 6px; max-width: 30em; }
.item .ico { width: var(--ico); height: var(--ico); color: var(--fg); overflow: visible; margin-bottom: 6px; }
.item b { font: 500 21px/1.3 var(--display); }
.item span { color: var(--dim); }
html.motion .item { opacity: calc(.15 + .85 * var(--p)); transform: translateY(calc(12px * (1 - var(--p)))); }
html.motion:not(.lite) .item .ico * { stroke-dasharray: 420; stroke-dashoffset: calc(420 * (1 - var(--p))); }

/* sleep and wake: the big star */
.stage { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.bigstar { --star: #464A6E; position: relative; margin-top: 40px; width: 200px; height: 200px; color: var(--star); }
.bigstar .glow { position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(closest-side, currentColor, transparent 72%); opacity: var(--g, .25); }
.bigstar svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bigstar .rays { fill: none; stroke: currentColor; stroke-width: .42; stroke-linejoin: round; stroke-linecap: round; transform-origin: 32px 32px; transform: scale(var(--r, 1)) rotate(var(--rot, 0deg)); }
.bigstar .disc { fill: var(--black); stroke: currentColor; stroke-width: .42; }
.bigstar .core { fill: currentColor; }
html:not(.motion) .bigstar { --star: var(--aurora); }
.states { gap: 28px; }
.states .item .ico { --ico: 56px; }

/* we keep it running: the ring, on solid panels so the dawn never sits behind text */
#running { display: block; min-height: 190vh; }
#running .hold { position: sticky; top: 6vh; display: grid; grid-template-columns: calc(var(--tx) - 40px) 1fr; column-gap: calc(40px + 88px); align-items: center; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; }
#running .copy { display: flex; flex-direction: column; gap: 16px; }
#running .copy p { color: var(--dim); }
/* The circle (brand/studies/build-website-icons.py, round 7/8): the five items on a ring that stops short
   of each icon and name, the sun and moon on an outer path fully clear of them, passing behind the long
   middle line. Everything is in proportion to the circle (cqw), so the geometry holds at every size; the
   numbers come from a clearance check (wide: items at 28% of the box, walkers' path at 45.9%; narrow:
   25.8% and 46.3%, smaller names relative to the circle). The circle always fits above the dock. */
.ring { --r: 28%; --o: 45.9%; --disc: 11.11cqw; --pad: 1.2cqw; --font: 2.8cqw; --lpad: .56em; --wk: 7.78cqw;
  container-type: inline-size; position: relative; width: min(540px, 100%, calc(94svh - 130px)); min-width: 300px; aspect-ratio: 1; color: var(--fg); }
.ring-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-art .path { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .55; }
.ring-art .arcs { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: .6; }
.ring-art .arcs.narrow { display: none; }
.half { position: absolute; left: 0; width: 100%; height: 50%; overflow: hidden; pointer-events: none; }
.half.up { top: 0; } .half.dn { top: 50%; }
.orbit { --turn: 30deg; position: absolute; left: 0; top: 0; width: 100%; height: 200%; transform: rotate(var(--turn)); }
.half.dn .orbit { top: -100%; }
.walker { position: absolute; left: calc(50% - var(--wk) / 2); width: var(--wk); height: var(--wk); border-radius: 50%; background: var(--black); transform: rotate(calc(-1 * var(--turn))); }
.walker.a { top: calc(50% - var(--o) - var(--wk) / 2); } .walker.b { top: calc(50% + var(--o) - var(--wk) / 2); }
.walker .ico { display: block; width: 100%; height: 100%; color: var(--fg); --sw: 2.2; }
.midline { position: absolute; left: -6%; right: -6%; top: 50%; height: 1.2px; margin-top: -.6px; background: var(--fg); opacity: .5; z-index: 1; }
.hub { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--black); z-index: 2; color: var(--fg); }
.hub svg { display: block; width: 100%; height: 100%; }
.star-glyph { fill: none; stroke: currentColor; stroke-width: var(--sw, 2); stroke-linecap: round; stroke-linejoin: round; }
.hub .star-glyph { stroke-width: 1.4; }
.hub .core { fill: var(--accent); }
.ring-items { list-style: none; margin: 0; padding: 0; }
.ring-items .item { position: absolute; z-index: 3; width: max-content; gap: 2px; align-items: center; text-align: center; max-width: none; translate: -50% 0; }
.ring-items .item .ico { width: calc(var(--disc) - 2 * var(--pad)); height: calc(var(--disc) - 2 * var(--pad)); padding: var(--pad); box-sizing: content-box; margin: 0; border-radius: 50%; background: var(--black); }
.ring-items .item b { font-size: var(--font); line-height: 1.3; padding: .06em var(--lpad); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }
.ring-items .r0 { left: calc(50% - .5878 * var(--r)); top: calc(50% - .809 * var(--r) - var(--disc) / 2); }
.ring-items .r1 { left: calc(50% + .5878 * var(--r)); top: calc(50% - .809 * var(--r) - var(--disc) / 2); }
.ring-items .r2 { left: calc(50% + .9511 * var(--r)); top: calc(50% + .309 * var(--r) - var(--disc) / 2); }
.ring-items .r3 { left: 50%; top: calc(50% + var(--r) - var(--disc) / 2); }
.ring-items .r4 { left: calc(50% - .9511 * var(--r)); top: calc(50% + .309 * var(--r) - var(--disc) / 2); }

/* the ending */
#join { padding-bottom: 30vh; }
.launch { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.launch label { font-weight: 600; }
.launch .row { display: flex; gap: 10px; flex-wrap: wrap; }
.launch input[type=email] { flex: 1 1 16em; min-width: 0; font: inherit; color: var(--fg); background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; }
.launch input[type=email]:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.launch button { font: 600 17px/1 var(--body); color: #0A0A1F; background: #3EF0B4; border: 0; border-radius: 10px; padding: 14px 20px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.launch button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(62, 240, 180, .25); }
.launch button[aria-busy=true] { opacity: .7; cursor: progress; }
.launch .msg { min-height: 1.6em; color: var(--err); font-size: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done { font: 400 22px/1.4 var(--display); color: var(--fg); padding: 18px 0; }
.also { font-size: 16px; color: var(--dim); }

.foot { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut) 140px; font-size: 16px; color: var(--dim); }

/* --- the dock: the portal's, as the page's own map --- */
.dock { position: fixed; z-index: 5; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: calc(100vw - 16px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 40px rgba(4, 4, 20, .45); }
.dock > ul { list-style: none; margin: 0; padding: 6px; display: flex; gap: 2px; }
.dock button { font: 500 12px/1.2 var(--body); color: var(--dim); background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: 76px; min-height: 44px; padding: 8px 6px 7px; border-radius: 10px; transition: background .18s, color .18s, transform .18s; }
.dock button .ico { width: 24px; height: 24px; --sw: 2.4; }
.dock button:hover { background: var(--panel2); color: var(--fg); transform: translateY(-2px); }
.dock button[aria-current=location] { color: var(--fg); background: var(--panel2); }
.dock button[aria-current=location] .ico { color: var(--accent); }
.dock .more { display: none; }
.dock-more { margin: 0; inset: auto; position: fixed; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); right: 8px; left: auto; top: auto;
  background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 14px 40px rgba(4, 4, 20, .45); }
.dock-more ul { list-style: none; margin: 0; padding: 0; }
.dock-more button { flex-direction: row; gap: 12px; font-size: 16px; color: var(--fg); min-width: 200px; justify-content: flex-start; padding: 10px 12px; }

/* --- narrow screens: the stem at the left, everything to its right; five places and More --- */
@media (max-width: 999px) {
  :root { --gut: 20px; --tx: 30px; --ico: 60px; }
  .hero .copy { max-width: none; padding-left: 40px; }
  .top { padding-left: 64px; }
  .foot { padding-left: 64px; }
  .hero { justify-content: flex-start; padding-top: calc(76px + 12vh); }
  .moment { display: block; padding-left: 40px; }
  #running .hold { display: block; }
  #running .copy { margin-left: 40px; }
  .ring { --r: 25.8%; --o: 46.3%; --disc: 10.62cqw; --pad: .94cqw; --font: 3.75cqw; --lpad: .34em; --wk: 6.88cqw;
    width: min(100%, 460px, calc(97svh - 360px)); margin: 0 auto; }
  .ring-art .arcs.wide { display: none; } .ring-art .arcs.narrow { display: inline; }
  .moment { padding-top: 12vh; }
  .moment > .copy { position: static; padding-bottom: 36px; }
  #running { min-height: 175vh; padding-left: 0; }
  #running .hold { position: sticky; top: 3vh; }
  #running .copy { margin-bottom: 20px; padding: 18px 20px; }
  #running .copy h2 { font-size: 26px; }
  #running .copy p { font-size: 16px; }
  .stage { display: flex; flex-direction: column; gap: 48px; }
  .bigstar { position: relative; top: 0; width: 170px; height: 170px; margin-left: 30px; }
  .dock { left: 8px; right: 8px; transform: none; max-width: none; }
  .dock > ul { justify-content: space-between; }
  .dock button { min-width: 0; width: 100%; padding: 8px 2px; }
  .dock > ul > li { flex: 1; }
  .dock .extra { display: none; }
  .dock .more { display: block; }
  .dock button span { display: none; }
  .dock .more-btn span { display: none; }
}
@media (max-width: 420px) {
  body { font-size: 17px; }
}

/* --- reduced motion: a still page, everything visible --- */
@media (prefers-reduced-motion: reduce) {
  html.motion { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* --- the privacy and 404 pages: follow the device (light by default, as the portal) --- */
body.privacy { background: #E3F0FD; color: #161733; font-weight: 500; }
.privacy .wm-dark { display: none; } .privacy .wm-light { display: block; }
.privacy .doc { max-width: 40em; margin: 0 auto; padding: 56px var(--gut) 96px; }
.privacy .doc h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 24px; }
.privacy .doc h2 { font-size: 24px; font-weight: 500; margin: 36px 0 10px; }
.privacy .doc p { color: #34364F; margin: 0 0 12px; }
.privacy .doc a { color: #087A5A; }
.privacy .back { margin-top: 40px; }
.privacy :focus-visible { outline-color: #087A5A; }
@media (prefers-color-scheme: dark) {
  body.privacy { background: #0A0A1F; color: #E6FBF6; font-weight: 400; }
  .privacy .wm-dark { display: block; } .privacy .wm-light { display: none; }
  .privacy .doc p { color: #A6A9BE; }
  .privacy .doc a { color: #3EF0B4; }
  .privacy :focus-visible { outline-color: #3EF0B4; }
}

/* the icons' own styles, from their style attributes */
.k0{stroke-width:var(--sw,2)}
.k1{stroke-width:calc(var(--sw,2)*2.2221)}
.k2{fill:var(--aurora,#3ef0b4)}
.k3{stroke:var(--ember,#d0714f);stroke-width:var(--sw,2)}
.k4{stroke:var(--ember,#d0714f);stroke-width:calc(var(--sw,2)*0.7143)}
.k5{stroke:var(--aurora,#3ef0b4);stroke-width:var(--sw,2)}
.k6{stroke-width:calc(var(--sw,2)*1.4286)}
.k7{stroke-width:calc(var(--sw,2)*1.7857)}
.k8{stroke-width:calc(var(--sw,2)*2.2857)}
.k9{stroke-width:calc(var(--sw,2)*3.5714)}
.k10{stroke:var(--ember,#d0714f);stroke-width:calc(var(--sw,2)*1.8214)}
.k11{stroke-width:calc(var(--sw,2)/0.3)}
.k12{fill:var(--ember,#d0714f)}
.k13{stroke-width:calc(var(--sw,2)*2.7471)}
.k14{stroke:var(--aurora,#3ef0b4);stroke-width:calc(var(--sw,2)*0.7693)}
.k15{stroke-width:calc(var(--sw,2)/0.17099999999999999)}
