/* Hallmark · shape: Instrument page (live sky hero, ephemeris table, pinned evidence story, edge diagram, theme deck, 3D switcher, eight-week ribbon, plans with the list) · genre: atmospheric · theme: custom · brand: Arcminute (the app's Observatory theme, design docs/screens/Main.dc.html) · job: join · idea: "Every figure on this page is computed live in the visitor's browser by the ephemeris the app ships, so the site shows its math the way the app does" · vibe: "night observatory, gold linework, exact and calm"
 * paper: oklch(14% 0.014 268) · accent: oklch(78% 0.11 82) · display: Cormorant Garamond (the app's display face) · body: Inter (the app's body face) · outlier: JetBrains Mono for measured figures only · hero: the real sky this minute drawn as a gold chart wheel, the app's home screen standing in front of it · nav: wordmark, five anchors, motion toggle, one action · footer: a zodiac degree ruler over the wordmark and three notes · imagery: the product, 30 live app screens with posters (capture by headless Chrome from design docs/screens) · signature: the live wheel, every planet swept into its real computed position, Moon ticking by the arcsecond
 * axes: dark/roman-serif/warm · posture: Committed gold inside the wheel (gold and champagne rim, celestial planet hues as data); gold stays the page's one signal elsewhere · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5 · weakest: E, many moving parts; every live screen sits over a poster so a failed iframe, no script or reduced motion still shows the full page */
/* Hallmark · waive 1 · Inter is body only here, the display is Cormorant Garamond; both are the app's own faces in design docs/screens · brand inheritance for Arcminute */
/* Hallmark · waive 29 · the hero wheel carries a blurred colour layer (gold band, planet colours, aspect lines) and two fixed blooms, all inside the hero, never on text · the user asked for a more spectacular, colourful Arcminute wheel */
/* Hallmark · waive 37 · the fourth family is Noto Sans Symbols 2, loaded as a text= subset of the zodiac and planet glyphs only · every planet glyph in the wheel and in today’s sky table would render as emoji without it */
/* Hallmark · dismissed 3 · the 7px borders on .flow__wire::after are CSS arrowheads on the privacy diagram, not card stripes */
/* Hallmark · waive 77 · today’s sky holds a ten-row ephemeris table across seven columns beside the tightest angles list · the table is the section’s mass */
/* Hallmark · dismissed 58 · the window over today’s sky is the ten-row ephemeris table in today’s sky, computed data rather than copy */
/* Hallmark · answered F15 · the hero, the pinned story, the edge diagram and the plans use different gaps on purpose; every section grid shares --gap-columns */
/* Hallmark · waive 47b · each frame holds the real app screen running live, a rounded edge and a hairline, no drawn device chrome · Arcminute is an iPhone app and its screens are the product */
/* Hallmark · hero-review: folded into the finish review (no separate pass) · finish-review: subagent · 8 findings · 7 resolved, 1 partial (the three-facts row and plan columns kept; pricing head rewritten in the product’s nouns) · gap: none */
/* Hallmark · backdrop: the real night sky from the Yale Bright Star Catalogue (app-data/stars.json, credited in the footer), dim, panning east with scroll; replaces the decorative hero starfield */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- Page ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { background: var(--color-paper); font-size: var(--text-md); }
.container { max-width: var(--container); }
h1, h2, h3 { font-weight: 500; color: var(--color-ink); }
h2 { font-size: var(--text-section); line-height: 1.02; letter-spacing: var(--tracking-display); max-width: 18ch; }
h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-lg); line-height: 1.3; letter-spacing: 0; }
.lead { font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); max-width: 44ch; }
.caption, .footnote { font-size: var(--text-sm); line-height: 1.5; color: var(--color-muted); max-width: 60ch; }
.num { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; letter-spacing: 0; }
section { position: relative; }
main > section + section { margin-top: var(--section-gap); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-card); }
.skip:focus-visible { top: var(--space-md); }

.icon { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); background: transparent; color: var(--color-accent); }
.btn--small:hover { background: var(--color-accent-wash); }

.link-quiet { display: inline-flex; align-items: center; min-height: 52px; color: var(--color-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-rule-strong); text-underline-offset: 0.3em; transition: text-decoration-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.link-quiet:hover { color: var(--color-accent-2); text-decoration-color: var(--color-accent); }
.link-quiet:active { color: var(--color-accent); }
.link-quiet:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 2px; }

.round { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--color-rule-strong); border-radius: 50%; background: transparent; color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.round:hover { background: var(--color-paper-3); border-color: var(--color-accent); }
.round:active { transform: translateY(1px); }
.round:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.round:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: transparent; transition: background-color var(--dur-long) var(--ease-out); }
.nav.is-scrolled { background: var(--color-paper); box-shadow: 0 1px 0 var(--color-rule); }
.nav__row { display: flex; align-items: center; gap: var(--space-xl); min-height: 72px; }
.wordmark { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; margin: 0; }
a.wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; border-radius: 2px; }
.nav__links { display: flex; gap: var(--space-lg); margin-left: auto; }
.nav__links a { font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; padding: var(--space-xs) 0; transition: color var(--dur-short) var(--ease-out); white-space: nowrap; }
.nav__links a:hover { color: var(--color-accent-2); }
.nav__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 2px; }
.nav__links a[aria-current="true"] { color: var(--color-accent); }
.nav__actions { display: flex; align-items: center; gap: var(--space-sm); }
.motion-toggle { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-muted); font-size: var(--text-sm); cursor: pointer; transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); white-space: nowrap; }
.motion-toggle:hover { color: var(--color-ink); background: var(--color-paper-2); }
.motion-toggle:active { transform: translateY(1px); }
.motion-toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.motion-toggle .icon { width: 18px; height: 18px; }
html:not(.js) .motion-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { min-height: min(calc(100svh - 72px), 1040px); display: grid; align-items: center; padding-block: var(--space-lg) var(--space-xl); isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; }
.hero::before { width: 52vw; max-width: 900px; aspect-ratio: 1; right: 4%; top: 50%; transform: translateY(-50%); background: radial-gradient(closest-side, var(--color-bloom), transparent); }
.hero::after { width: 40vw; max-width: 640px; aspect-ratio: 1; left: -8%; top: -10%; background: radial-gradient(closest-side, var(--color-bloom-cool), transparent); }
.skybg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1600ms var(--ease-out); }
.skybg.is-ready { opacity: 1; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.hero__copy { grid-column: 1 / span 5; position: relative; z-index: 3; }
.hero h1 { font-size: var(--text-display); line-height: 0.98; letter-spacing: -0.02em; max-width: 11ch; }
.hero__lede { margin-top: var(--space-lg); font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xl); }
.hero__visual { grid-column: 6 / span 7; position: relative; margin: 0; display: grid; justify-items: start; }
.wheel { position: relative; width: min(calc(100% - 160px), 660px, calc(100svh - 170px)); min-width: 300px; aspect-ratio: 1; }
.wheel__glow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: blur(18px) saturate(1.25); opacity: 0; transition: opacity 1600ms var(--ease-out); pointer-events: none; }
.wheel.is-glowing .wheel__glow { opacity: 0.62; }
.wheel__svg { position: relative; }
.g-band { opacity: 0.09; }
.g-core { fill: var(--color-core); opacity: 0.1; }
.g-asp { fill: none; stroke-width: 6; stroke-linecap: round; }
.g-planet { opacity: 0.45; }
.w-band { opacity: 1; }
.w-core { opacity: 1; }
.wheel.has-focus .g-asp { opacity: 0.1 !important; }
/* ambient: a glint runs the gold rim, the planets and the core breathe */
.g-glint, .w-glint { transform-origin: 50% 50%; transform-box: view-box; animation: orbit 18s linear infinite; }
.g-glint__arc { fill: var(--color-sun); opacity: 0.32; }
.w-glint__arc { fill: none; stroke: var(--color-sun); stroke-width: 1.6; stroke-linecap: round; opacity: 0.7; }
.w-ring--bezel { stroke: var(--color-rule-strong); stroke-width: 0.8; }
.w-ring--dots { stroke: var(--color-accent-line); stroke-width: 1.2; stroke-dasharray: 0.6 7.2; stroke-linecap: round; opacity: 0.6; }
.w-num { fill: var(--color-muted); font-family: var(--font-outlier); font-size: 11px; text-anchor: middle; dominant-baseline: central; opacity: 0.5; }
.g-planet { animation: breathe 6.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.65s); }
.g-core { animation: breathe-core 9s ease-in-out infinite; }
@keyframes orbit { to { transform: rotate(-360deg); } }
@keyframes breathe { 0%, 100% { opacity: 0.18; } 50% { opacity: 0.4; } }
@keyframes breathe-core { 0%, 100% { opacity: 0.03; } 50% { opacity: 0.08; } }
html[data-motion="paused"] .wheel *, html[data-motion="paused"] .wheel *::before { animation-play-state: paused !important; }
.wheel.is-playing .g-asp, .wheel.is-playing .g-planet, .wheel.is-playing [data-wheel-sparks] { opacity: 0 !important; }
.wheel.is-playing .w-asp { transition: none; }
.wheel__svg { width: 100%; height: 100%; overflow: visible; }

/* the wheel's parts */
.w-ring { fill: none; stroke: var(--color-rule-strong); stroke-width: 1.2; }
.w-ring--outer { stroke: var(--color-accent-line); stroke-width: 1.4; }
.w-ring--faint { stroke: var(--color-rule); stroke-width: 1; }
.w-div { stroke: var(--color-rule-strong); stroke-width: 1; }
.w-tick { stroke: var(--color-rule-strong); stroke-width: 1; }
.w-tick--5 { stroke: var(--color-muted); opacity: 0.6; }
.w-tick--10 { stroke: var(--color-accent-line); }
.w-sign { fill: var(--color-accent); font-family: var(--font-glyph); font-size: 28px; text-anchor: middle; dominant-baseline: central; opacity: 0.62; }
.w-asp { fill: none; stroke-width: 1.1; transition: opacity var(--dur-short) var(--ease-out); }
.w-asp--conjunction { stroke: var(--color-sun); }
.w-asp--square, .w-asp--opposition { stroke: var(--color-hard); }
.w-asp--trine, .w-asp--sextile { stroke: var(--color-soft); }
.w-planet { cursor: pointer; outline: none; }
.w-planet .w-dot { fill: var(--pc, var(--color-accent)); }
.w-planet .w-lead { stroke: var(--color-accent-line); stroke-width: 1; }
.w-planet .w-halo { fill: var(--color-paper); stroke: var(--pc, var(--color-rule-strong)); stroke-width: 1.1; transition: stroke var(--dur-short) var(--ease-out), fill var(--dur-short) var(--ease-out); }
.w-planet .w-glyph { fill: var(--pc, var(--color-ink)); font-family: var(--font-glyph); font-size: 26px; text-anchor: middle; dominant-baseline: central; }
.w-planet .w-deg { fill: var(--color-muted); font-family: var(--font-outlier); font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.w-planet .w-r { fill: var(--color-cool); font-family: var(--font-outlier); font-size: 12px; }
.w-planet:hover .w-halo, .w-planet.is-on .w-halo { stroke-width: 3; fill: var(--color-paper-3); }
.w-planet:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.w-planet:focus-visible .w-halo { stroke: var(--color-focus); stroke-width: 3; }
.w-planet.is-on .w-deg { fill: var(--color-ink); }
.wheel.has-focus .w-asp { opacity: 0.08 !important; }
.wheel.has-focus .w-asp.is-on { opacity: 1 !important; }
.wheel.has-focus .w-planet:not(.is-on):not(.is-linked) { opacity: 0.45; }
.w-planet { transition: opacity var(--dur-short) var(--ease-out); }
.w-center { fill: var(--color-muted); font-family: var(--font-outlier); font-size: 15px; text-anchor: middle; }
.w-center--big { fill: var(--color-ink-2); font-family: var(--font-display); font-size: 30px; }

/* entrance: the wheel settles once */
.js .wheel.is-drawing [data-wheel-static] { animation: wheel-in var(--dur-scene) var(--ease-out) both; transform-origin: center; transform-box: view-box; }
.js .wheel.is-drawing .w-asp { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 1100ms var(--ease-out) forwards; animation-delay: calc(650ms + var(--i, 0) * 70ms); }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.w-spark { fill: var(--color-sun); opacity: 0; }
.w-spark--square, .w-spark--opposition { fill: var(--color-hard); }
.w-spark--trine, .w-spark--sextile { fill: var(--color-soft); }
.wheel.has-focus .w-spark { opacity: 0 !important; }
/* headline: each line rises out of its own mask, once */
.hero h1 .line { display: block; overflow: clip; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .line > span { display: block; animation: line-up 1000ms var(--ease-out) both; }
.hero h1 .line + .line > span { animation-delay: 110ms; }
.hero__lede { animation: rise 900ms var(--ease-out) 260ms both; }
.hero__actions { animation: rise 900ms var(--ease-out) 380ms both; }
.readout { animation: rise 900ms var(--ease-out) 520ms both; }
.screen--hero { animation: phone-in 1300ms var(--ease-out) 300ms both; }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(48px) scale(0.96); } to { opacity: 1; transform: none; } }
/* scroll-linked: the wheel turns away and the phone lifts as the hero leaves */
@supports (animation-timeline: scroll()) {
  .wheel { animation: wheel-away linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  @keyframes wheel-away { to { transform: rotate(-28deg) scale(0.92); opacity: 0.35; } }
}
@keyframes wheel-in { from { opacity: 0; transform: rotate(-24deg) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.readout { display: grid; gap: var(--space-3xs); max-width: 24rem; margin-top: var(--space-2xl); padding: var(--space-2xs) 0 var(--space-2xs) var(--space-md); border-left: 1px solid var(--color-accent-line); }
.readout__name { font-size: var(--text-sm); color: var(--color-muted); }
.readout__pos { font-size: var(--text-lg); color: var(--color-ink-2); }
.readout__meta { font-size: var(--text-sm); color: var(--color-muted); }
.readout__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
.chip { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); font: 400 var(--text-sm)/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.chip:hover { border-color: var(--color-accent); color: var(--color-ink); }
.chip:active { transform: translateY(1px); }
.chip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.chip[aria-pressed="true"] { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-wash); }
.chip:disabled { opacity: 0.55; cursor: not-allowed; }
.chip .icon { width: 16px; height: 16px; }
.sky__cheat { margin-top: var(--space-lg); }
/* the cheat sheet: a drawer from the right, a sheet from the bottom on phones */
.cheat { width: min(560px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--color-accent-line); background: var(--color-paper); color: var(--color-ink); }
.cheat::backdrop { background: var(--color-backdrop); }
.cheat[open] { display: flex; flex-direction: column; overflow: hidden; }
.cheat[open] { animation: drawer-in 520ms var(--ease-out); }
.cheat[open]::backdrop { animation: fade-in 420ms var(--ease-out); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.cheat__head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-lg) var(--space-xl); background: var(--color-paper); border-bottom: 1px solid var(--color-rule); }
.cheat__head h2 { font-size: var(--text-2xl); max-width: none; }
.cheat__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: var(--space-xl); padding: var(--space-xl); }
.cheat h3 { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); margin-bottom: var(--space-sm); }
.cheat__list { list-style: none; margin: 0; padding: 0; display: grid; }
.cheat__list li { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm) 0; border-top: 1px solid var(--color-rule); color: var(--color-muted); }
.cheat__list li:first-child { border-top: 0; }
.cheat__list b { font-weight: 600; color: var(--color-ink); margin-right: var(--space-2xs); }
.cheat__glyph { display: inline-grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--pc, var(--color-accent-line)); border-radius: 50%; font-family: var(--font-glyph); font-size: 1.125rem; color: var(--pc, var(--color-accent)); }
.cheat__line { width: 28px; height: 2px; flex-shrink: 0; border-radius: 2px; background: var(--color-sun); }
.cheat__line--square, .cheat__line--opposition { background: var(--color-hard); }
.cheat__line--trine, .cheat__line--sextile { background: var(--color-soft); }
.cheat__signs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm) var(--space-md); }
.cheat__signs li { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.cheat__signs .cheat__glyph { width: 30px; height: 30px; font-size: var(--text-md); }
.cheat__words { display: grid; gap: var(--space-md); margin: 0; }
.cheat__words dt { font-weight: 600; color: var(--color-ink); }
.cheat__words dd { margin: var(--space-3xs) 0 0; color: var(--color-muted); font-size: var(--text-sm); }
@media (max-width: 40rem) {
  .cheat { width: 100%; height: 88dvh; max-height: 88dvh; margin: auto 0 0; border-left: 0; border-top: 1px solid var(--color-accent-line); border-radius: 24px 24px 0 0; }
  .cheat[open] { animation-name: sheet-in; }
  .cheat__head, .cheat__body { padding-inline: var(--space-lg); }
  .cheat__signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Live app screens ---------- */
.screen { position: relative; aspect-ratio: 390 / 844; container-type: inline-size; }
.screen__glass { position: absolute; inset: 0; overflow: hidden; border-radius: calc(46 / 390 * 100cqw); background: var(--color-paper); outline: 1px solid var(--color-rule-strong); outline-offset: -1px; }
.screen__glass > img { z-index: 0 !important; }
.screen__glass > iframe { position: absolute; top: 0; left: 0; width: 390px; height: 844px; border: 0; z-index: 2; transform-origin: 0 0; transform: scale(var(--k, 1)); transition: opacity var(--dur-long) var(--ease-out); pointer-events: none; background: transparent; }
.js .screen:not(.is-live) .screen__glass > iframe { opacity: 0; }
.screen[data-interactive] .screen__glass > iframe { pointer-events: auto; }
.screen--hero { position: absolute; right: 0; bottom: -6%; width: clamp(150px, 13.5vw, 204px); z-index: 2; }
.screen__note { position: absolute; top: calc(100% + var(--space-xs)); left: 0; right: 0; text-align: center; font-size: var(--text-xs); color: var(--color-muted); }
.screen--hero .screen__glass { box-shadow: 0 0 0 12px var(--color-paper); }

/* ---------- Today’s sky ---------- */
.sky__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.sky__intro { grid-column: 1 / span 5; display: grid; gap: var(--space-lg); }
.sky__table { grid-column: 6 / span 7; min-width: 0; }
.angles { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.angles h3 { font-size: var(--text-md); color: var(--color-muted); font-weight: 400; margin-bottom: var(--space-sm); }
.angles__list { list-style: none; margin: 0; padding: 0; display: grid; }
.angles__list li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-md); padding: var(--space-md) 0; border-top: 1px solid var(--color-rule); }
.angles__list li:first-child { border-top: 0; }
.angles__glyphs { font-family: var(--font-glyph); font-size: var(--text-xl); color: var(--color-accent); line-height: 1.2; white-space: nowrap; }
.angles__what { display: block; color: var(--color-ink); }
.angles__math { margin-top: var(--space-3xs); font-size: var(--text-sm); color: var(--color-muted); }
.angles__math .num { color: var(--color-ink-2); }
.angles__tier { display: inline-block; margin: var(--space-2xs) var(--space-xs) 0 0; padding: 0 var(--space-xs); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-pill); font-size: var(--text-xs); line-height: 1.6; color: var(--color-muted); }
.angles__tier--exceptional { border-color: var(--color-accent); color: var(--color-accent); }
.angles__tier--strong { color: var(--color-ink); }
.angles__math { display: inline; }
.angles__key { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.angles__empty { color: var(--color-muted); grid-template-columns: 1fr !important; }

.ephem { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.ephem th { text-align: left; font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); padding: 0 var(--space-sm) var(--space-sm); border-bottom: 1px solid var(--color-rule-strong); white-space: nowrap; }
.ephem th:first-child, .ephem td:first-child { padding-left: 0; }
.ephem td { padding: 0 var(--space-sm); border-bottom: 1px solid var(--color-rule); vertical-align: middle; height: 60px; }
.ephem .num { text-align: right; }
.ephem th.num { font-family: var(--font-body); }
.ephem__body { display: flex; align-items: center; gap: var(--space-sm); width: 100%; min-height: 52px; padding: 0; border: 0; background: none; color: var(--color-ink); font: inherit; text-align: left; cursor: pointer; }
.ephem__body:hover .ephem__name { color: var(--color-accent-2); }
.ephem__body:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; border-radius: 2px; }
.ephem__body:active { opacity: 0.85; }
.ephem__glyph { display: inline-grid; place-items: center; width: 2rem; font-family: var(--font-glyph); font-size: 1.375rem; color: var(--color-accent); }
.ephem__name { transition: color var(--dur-short) var(--ease-out); }
.ephem__chev { margin-left: auto; width: 16px; height: 16px; color: var(--color-muted); transition: transform var(--dur-short) var(--ease-out); }
.ephem__body[aria-expanded="true"] .ephem__chev { transform: rotate(180deg); }
.ephem__pos { white-space: nowrap; }
.ephem__pos .num { color: var(--color-ink); }
.ephem__sign { font-family: var(--font-glyph); color: var(--color-accent); margin-inline: var(--space-2xs); }
.ephem__retro { margin-left: var(--space-2xs); color: var(--color-cool); font-family: var(--font-outlier); font-size: var(--text-sm); }
.ephem__const { color: var(--color-muted); }
.ephem__in { display: none; }
.ephem__detail td { height: auto; padding: 0 0 var(--space-lg) calc(2rem + var(--space-sm)); background: transparent; }
.ephem__detail dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm) var(--space-xl); margin: 0; }
.ephem__detail dt { font-size: var(--text-sm); color: var(--color-muted); }
.ephem__detail dd { margin: var(--space-3xs) 0 0; color: var(--color-ink); }
.ephem__wait { color: var(--color-muted); height: 120px; }
.footnote { margin-top: var(--space-md); }

/* ---------- Show the math ---------- */
.math__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.math__stage { grid-column: 1 / span 5; position: sticky; top: max(96px, calc(50svh - 360px)); display: grid; justify-items: center; gap: var(--space-md); }
.screen--stage { width: min(100%, 340px, calc((100svh - 200px) * 390 / 844)); }
.math__stage .caption { text-align: center; }
.math__story { grid-column: 7 / span 6; padding-top: var(--space-2xl); }
.math__story .lead { margin-top: var(--space-lg); }
/* the example reading */
.reading { margin-top: var(--space-2xl); border-top: 1px solid var(--color-rule-strong); }
.reading__headline { padding: var(--space-xl) 0 var(--space-lg); font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.25; color: var(--color-ink); max-width: 30ch; text-wrap: balance; }
.theme { border-top: 1px solid var(--color-rule); }
.theme:last-of-type { border-bottom: 1px solid var(--color-rule); }
.theme summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 60px; padding: var(--space-sm) 0; cursor: pointer; list-style: none; }
.theme summary::-webkit-details-marker { display: none; }
.theme summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.theme__title { font-family: var(--font-display); font-size: var(--text-title); color: var(--color-ink); transition: color var(--dur-short) var(--ease-out); }
.theme summary:hover .theme__title { color: var(--color-accent-2); }
.theme__hint { flex-shrink: 0; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--color-rule-strong); border-radius: 50%; font-size: 0; transition: transform var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.theme__hint::before { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--color-ink-2); border-bottom: 1.5px solid var(--color-ink-2); transform: translateY(-2px) rotate(45deg); }
.theme[open] .theme__hint { transform: rotate(180deg); border-color: var(--color-accent); }
.theme__body { padding: 0 0 var(--space-lg); color: var(--color-ink-2); line-height: 1.7; max-width: 62ch; }
.theme[open] .theme__body { animation: rise 520ms var(--ease-out) both; }
.sent { display: inline; padding: 0; border: 0; background: none; color: inherit; font: inherit; line-height: inherit; text-align: left; }
.sent--link { cursor: pointer; border-radius: 3px; border-radius: 3px; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sent--link:hover { background: var(--color-accent-wash); color: var(--color-ink); }
.sent--link:active { background: var(--color-accent-wash); }
.sent--link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.sent--link.is-on { background: var(--color-accent-wash); color: var(--color-ink); }
.fig { font-family: var(--font-outlier); font-size: 0.92em; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent-line); text-decoration-thickness: 1px; text-underline-offset: 0.28em; white-space: nowrap; }
.mathcard { margin: 0 0 var(--space-lg); padding: var(--space-lg); border-left: 2px solid var(--color-accent); background: var(--color-paper-2); color: var(--color-ink); animation: rise 420ms var(--ease-out) both; }
.mathcard dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm) var(--space-xl); margin: 0; }
.mathcard dt { font-size: var(--text-xs); color: var(--color-muted); }
.mathcard dd { margin: var(--space-3xs) 0 0; color: var(--color-ink); font-size: var(--text-sm); }
.mathcard__glyph { font-family: var(--font-glyph); color: var(--color-accent); }
.mathcard__src { margin-top: var(--space-md); font-size: var(--text-xs); color: var(--color-muted); }
.reading__dates { list-style: none; margin: 0; padding: 0 0 var(--space-lg); display: grid; }
.reading__dates li { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--space-md); padding: var(--space-xs) 0; border-top: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); }
.reading__dates li:first-child { border-top: 0; }
.reading__dates .num { color: var(--color-muted); }
.reading__note { margin-top: var(--space-md); }
.theme--checkin { border-top: 0; }
.checkin { display: grid; gap: var(--space-sm); padding: 0 0 var(--space-lg); }
.checkin__topics { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.checkin__chip { padding: var(--space-2xs) var(--space-sm); border: 1px solid var(--color-accent-line); border-radius: var(--radius-pill); font-size: var(--text-sm); color: var(--color-ink-2); }
.checkin__note { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.35; color: var(--color-ink); }
.checkin__mood { font-size: var(--text-sm); color: var(--color-muted); }
.math-btn { display: inline-flex; align-items: center; vertical-align: 0.1em; min-height: 24px; margin-left: var(--space-2xs); padding: 0 var(--space-xs); border: 1px solid var(--color-accent-line); border-radius: var(--radius-pill); background: transparent; color: var(--color-accent); font: 400 var(--text-xs)/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); position: relative; }
.math-btn::after { content: ""; position: absolute; inset: -10px -4px; }
.math-btn:hover, .math-btn[aria-expanded="true"] { background: var(--color-accent-wash); color: var(--color-ink); }
.math-btn:active { transform: translateY(1px); }
.math-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 40rem) { .mathcard dl { grid-template-columns: minmax(0, 1fr); } .reading__dates li { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (prefers-reduced-motion: reduce) { .theme[open] .theme__body, .mathcard { animation: none; } .theme__hint, .sent--link { transition: none; } }
.chain { --progress: 0; list-style: none; margin: var(--space-3xl) 0 0; padding: 0; position: relative; display: grid; }
.chain::before, .chain::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; background: var(--color-rule); transform-origin: top; }
.chain::after { background: var(--color-accent); transform: scaleY(var(--progress)); transition: transform var(--dur-scene) var(--ease-out); }
.chain__step { position: relative; z-index: 1; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-lg); align-items: start; min-height: 27svh; padding-bottom: var(--space-xl); }
.chain__step:last-child { min-height: 0; }
.chain__glyph { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--color-rule-strong); border-radius: 50%; background: var(--color-paper); font-family: var(--font-glyph); font-size: 1.375rem; color: var(--color-muted); transition: color var(--dur-long) var(--ease-out), border-color var(--dur-long) var(--ease-out), background-color var(--dur-long) var(--ease-out); }
.chain__step h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); line-height: 1.15; padding-top: var(--space-sm); color: var(--color-muted); transition: color var(--dur-long) var(--ease-out); }
.chain__step p { margin-top: var(--space-xs); color: var(--color-muted); max-width: 46ch; transition: color var(--dur-long) var(--ease-out); }
.chain__step.is-active .chain__glyph { color: var(--color-accent-ink); background: var(--color-accent); border-color: var(--color-accent); }
.chain__step.is-active h3 { color: var(--color-ink); }
.chain__step.is-active p { color: var(--color-ink-2); }
html:not(.js) .chain__step .chain__glyph { color: var(--color-accent); }
html:not(.js) .chain__step h3, html:not(.js) .chain__step p { color: var(--color-ink); }

/* ---------- Privacy flow ---------- */
.privacy { padding-block: var(--space-4xl); background: color-mix(in oklch, var(--color-paper-2) 78%, transparent); }
.privacy__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.privacy__head h2 { grid-column: 1 / span 7; }
.privacy__head .lead { grid-column: 8 / span 5; }
.flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2.4fr) minmax(0, 5fr); margin: var(--space-3xl) 0 0; align-items: stretch; }
.flow__zone { padding: var(--space-xl); border-radius: 36px; }
.flow__zone--phone { border: 1px solid var(--color-accent-line); background: var(--color-paper); }
.flow__zone--server { border: 1px dashed var(--color-rule-strong); }
.flow__where { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-ink); margin-bottom: var(--space-lg); }
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); counter-reset: s; }
.flow__steps li { position: relative; padding: var(--space-sm) 0 var(--space-sm) var(--space-xl); color: var(--color-ink-2); border-top: 1px solid var(--color-rule); }
.flow__steps li:first-child { border-top: 0; }
.flow__steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: var(--space-sm); font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-muted); }
.flow__steps .flow__key { color: var(--color-accent); font-weight: 600; }
.flow__edge { position: relative; display: grid; align-content: center; gap: var(--space-2xl); padding-inline: var(--space-sm); }
.flow__edge::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--color-accent-line); }
.flow__edge-name { position: relative; justify-self: center; padding: var(--space-2xs) var(--space-sm); background: var(--color-paper-2); font-size: var(--text-sm); color: var(--color-accent); text-align: center; }
.flow__lane { position: relative; display: grid; gap: var(--space-xs); justify-items: center; }
.flow__lane-label { position: relative; padding: 0 var(--space-xs); background: var(--color-paper-2); font-size: var(--text-sm); color: var(--color-ink); white-space: nowrap; }
.flow__wire { position: relative; width: 100%; height: 1px; background: var(--color-rule-strong); overflow: visible; }
.flow__wire::after { content: ""; position: absolute; right: -2px; top: -4px; border: 4.5px solid transparent; border-left: 7px solid var(--color-rule-strong); border-right: 0; }
.flow__lane--back .flow__wire::after { right: auto; left: -2px; border-left: 0; border-right: 7px solid var(--color-rule-strong); }
.flow__spark { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); opacity: 0; }
.js .flow.is-running .flow__spark { animation: spark 2.8s var(--ease-in-out) infinite; }
.js .flow.is-running .flow__lane--back .flow__spark { animation-name: spark-back; animation-delay: 1.4s; }
@keyframes spark { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(var(--wire, 140px)); opacity: 0; } }
@keyframes spark-down { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(var(--wire, 64px)); opacity: 0; } }
@keyframes spark-up { 0% { transform: translateY(var(--wire, 64px)); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes spark-back { 0% { transform: translateX(var(--wire, 140px)); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
.flow .caption { grid-column: 1 / -1; margin-top: var(--space-lg); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--space-3xl) 0 0; }
.facts > div { padding-inline: var(--space-xl); border-left: 1px solid var(--color-rule-strong); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.1; color: var(--color-ink); }
.facts dd { margin: var(--space-sm) 0 0; color: var(--color-muted); max-width: 32ch; }

/* ---------- Theme deck ---------- */
.themes__head { display: grid; gap: var(--space-lg); justify-items: start; }
.deck { margin-top: var(--space-2xl); outline: none; overflow-x: clip; padding-block: var(--space-md); }
.deck:focus-visible .deck__stage { outline: 2px solid var(--color-focus); outline-offset: 8px; border-radius: 12px; }
.deck__stage { position: relative; height: clamp(440px, 46vw, 660px); perspective: 2000px; perspective-origin: 50% 40%; touch-action: pan-y; user-select: none; }
.deck__card { --o: 0; --a: 0; position: absolute; left: 50%; top: 0; width: clamp(196px, 20.5vw, 300px); margin-left: calc(clamp(196px, 20.5vw, 300px) / -2); transform: translateX(calc(var(--o) * 40% + var(--s, 0) * 58%)) translateZ(calc(var(--n, 0) * -260px + var(--a) * -50px)) rotateY(calc(var(--s, 0) * -42deg)); filter: brightness(var(--dim, 1)); transition: transform var(--dur-scene) var(--ease-out), filter var(--dur-scene) var(--ease-out), opacity var(--dur-scene) var(--ease-out); cursor: pointer; }
.deck__card.is-far { opacity: 0; pointer-events: none; }
.deck__stage { cursor: grab; }
.deck__stage img { -webkit-user-drag: none; user-select: none; }
.deck__stage.is-dragging { cursor: grabbing; }
.deck__stage.is-dragging .deck__card { transition: none; }
.deck__stage.is-dragging iframe { pointer-events: none; }
.deck__dots { display: flex; justify-content: center; gap: var(--space-2xs); margin-top: var(--space-lg); }
.deck__dot { position: relative; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.deck__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; translate: -50% -50%; border-radius: 50%; background: var(--color-rule-strong); transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.deck__dot:hover::before { background: var(--color-muted); }
.deck__dot[aria-current]::before { background: var(--color-accent); transform: scale(1.5); }
.deck__dot:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; border-radius: 50%; }
.deck__dot:active::before { transform: scale(0.9); }
html:not(.js) .deck__dots { display: none; }
.deck__card.is-center { cursor: inherit; }
.deck__card:not(.is-center):hover .screen__glass { outline-color: var(--color-accent); }
html:not(.js) .deck__stage { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: var(--gap-columns); height: auto; overflow-x: auto; padding-inline: var(--gutter); perspective: none; }
html:not(.js) .deck__card { position: relative; left: auto; margin: 0; width: auto; transform: none; opacity: 1; }
html:not(.js) .deck__controls { display: none; }
.deck__controls { display: flex; align-items: center; justify-content: center; gap: var(--space-xl); margin-top: var(--space-xl); }
.deck__label { min-width: 16rem; text-align: center; font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-ink); }
.deck__tier { display: inline-block; margin-left: var(--space-xs); padding: var(--space-3xs) var(--space-sm); border: 1px solid var(--color-accent-line); border-radius: var(--radius-pill); font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-accent); vertical-align: middle; }

/* ---------- 3D views ---------- */
.views__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.views__copy { grid-column: 1 / span 6; }
.views__tabs { display: grid; margin-top: var(--space-2xl); border-top: 1px solid var(--color-rule); }
.views__row { display: grid; grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr); gap: var(--space-lg); align-items: center; border-bottom: 1px solid var(--color-rule); }
.views__tabs [role="tab"] { min-height: 56px; padding: var(--space-sm) 0; border: 0; background: none; color: var(--color-muted); font: inherit; text-align: left; white-space: nowrap; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.views__tabs [role="tab"]:hover { color: var(--color-ink); }
.views__tabs [role="tab"]:active { opacity: 0.85; }
.views__tabs [role="tab"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.views__tabs [aria-selected="true"] { color: var(--color-ink); }
.views__name { font-family: var(--font-display); font-size: var(--text-title); line-height: 1.2; }
.views__tabs [aria-selected="true"] .views__name { color: var(--color-accent); }
.views__line { font-size: var(--text-sm); line-height: 1.5; color: var(--color-muted); }
.views__row.is-on .views__line { color: var(--color-ink-2); }
.views__panel { grid-column: 8 / span 5; display: grid; justify-items: center; }
.screen--view { width: min(100%, 360px); }
.screen--view .screen__glass > img { transition: opacity var(--dur-long) var(--ease-out); }
.screen--view.is-swapping .screen__glass > img, .screen--view.is-swapping .screen__glass > iframe { opacity: 0; }

/* ---------- The next eight weeks ---------- */
.ahead__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.ahead__head h2 { grid-column: 1 / span 7; }
.ahead__head .lead { grid-column: 8 / span 5; }
.ribbon { margin: var(--space-3xl) 0 0; }
.ribbon__track { --lane-gutter: 9rem; position: relative; display: grid; padding: var(--space-md) 0 var(--space-3xl); border-top: 1px solid var(--color-rule-strong); }
.ribbon__lane { position: relative; height: 76px; border-bottom: 1px solid var(--color-rule); }
.ribbon__lane-name { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: var(--text-sm); color: var(--color-muted); }
.ribbon__weeks { position: absolute; left: var(--lane-gutter); right: 0; top: 0; bottom: 0; pointer-events: none; }
.ribbon__week { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--color-rule); }
.ribbon__week span { position: absolute; bottom: var(--space-sm); left: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
.ribbon__week--now { border-left: 1px solid var(--color-accent); }
.ribbon__week--now span { color: var(--color-accent); }
.ribbon__lane::after { content: ""; position: absolute; left: var(--lane-gutter); right: 0; top: 50%; border-top: 1px solid var(--color-rule); }
.mark { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; left: calc(var(--lane-gutter) + 20px + (100% - var(--lane-gutter) - 40px) * var(--f, 0)); width: 40px; height: 40px; translate: -50% calc(-50% + var(--dy, 0px)); border: 1px solid var(--color-accent-line); border-radius: 50%; background: var(--color-paper); color: var(--color-accent); font-family: var(--font-glyph); font-size: 1.125rem; cursor: default; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.mark:hover, .mark:focus-visible { background: var(--color-paper-3); border-color: var(--color-accent); z-index: 3; }
.mark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.mark__tip { position: absolute; bottom: calc(100% + var(--space-xs)); left: 50%; width: max-content; max-width: 16rem; padding: var(--space-xs) var(--space-sm); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.4; text-align: left; transform: translate(-50%, 4px); pointer-events: none; transition: opacity var(--dur-short) var(--ease-out) 0ms, transform var(--dur-short) var(--ease-out) 0ms; z-index: var(--z-tooltip); }
.js .mark__tip { opacity: 0; visibility: hidden; }
.mark--end .mark__tip { left: auto; right: 0; transform: translate(0, 4px); }
.mark--start .mark__tip { left: 0; transform: translate(0, 4px); }
.mark__tip time { display: block; color: var(--color-muted); }
.js .mark:hover .mark__tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 800ms; }
.js .mark--end:hover .mark__tip, .js .mark--start:hover .mark__tip, .js .mark--end:focus-visible .mark__tip, .js .mark--start:focus-visible .mark__tip { transform: none; }
.js .mark:focus-visible .mark__tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0ms; }
.js .ribbon__lane::after { transform: scaleX(0); transform-origin: left; transition: transform 1400ms var(--ease-out) 150ms; }
.js .ribbon.is-in .ribbon__lane::after { transform: none; }
.js .mark { opacity: 0; scale: 0.4; transition: opacity 500ms var(--ease-out) var(--d, 0ms), scale 700ms var(--ease-out) var(--d, 0ms), background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.js .ribbon.is-in .mark { opacity: 1; scale: 1; }
.events { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-3xl); }
.events li { display: grid; grid-template-columns: 2rem 12.5rem minmax(0, 1fr); gap: var(--space-md); align-items: baseline; padding: var(--space-md) 0; border-top: 1px solid var(--color-rule); }
.events__glyph { font-family: var(--font-glyph); color: var(--color-accent); }
.events time { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
.events__wait { display: block !important; color: var(--color-muted); }

/* ---------- Pricing and the list ---------- */
main > .pricing { margin-top: calc(var(--section-gap-l) + var(--space-4xl)); padding-bottom: var(--section-gap-l); }
.pricing__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.pricing__head { grid-column: 1 / span 5; grid-row: 1; display: grid; gap: var(--space-lg); }
.plans { grid-column: 7 / span 6; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; column-gap: var(--space-2xl); }
.plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; padding-top: var(--space-lg); border-top: 1px solid var(--color-rule-strong); }
.plan--pro { border-top-color: var(--color-accent); }
.plan h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xl); }
.plan__price { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1.1; color: var(--color-ink); margin-top: var(--space-sm); }
.plan__price .num { font-family: var(--font-display); }
.plan:not(.plan--pro) .plan__price { grid-row: span 2; }
.plan__alt { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-2xs); }
.plan__alt .num { font-family: var(--font-body); color: var(--color-ink-2); }
.plan ul { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-sm); color: var(--color-ink-2); }
.plan li { position: relative; padding-left: var(--space-lg); }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px; background: var(--color-accent); }
.signup { grid-column: 1 / span 5; grid-row: 2; align-self: end; padding: var(--space-xl); border: 1px solid var(--color-accent-line); border-radius: 28px; background: var(--color-paper-2); }
.signup__title { font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xl); line-height: 1.15; }
.signup__label { display: block; margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.signup__row { display: flex; gap: var(--space-sm); margin-top: var(--space-xs); }
.signup input { flex: 1; min-width: 0; min-height: 52px; padding: 0 var(--space-lg); border: 1px solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); outline: 2px solid transparent; outline-offset: -3px; }
.signup input:hover { border-color: var(--color-ink-2); }
.signup input:focus-visible { outline-color: var(--color-focus); }
.signup input[aria-invalid] { border-color: var(--color-error); }
.signup input:disabled { opacity: 0.55; cursor: not-allowed; }
.signup__help { min-height: 1lh; margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.signup__help.is-ok { color: var(--color-success); }
.signup__help.is-bad { color: var(--color-error); }
.signup__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }

/* ---------- Footer ---------- */
.footer { padding: var(--space-2xl) 0 var(--space-3xl); }
.ruler { position: relative; height: 64px; margin-top: var(--space-xl); border-top: 1px solid var(--color-rule-strong); }
.ruler__tick { position: absolute; top: 0; width: 1px; height: 6px; background: var(--color-rule-strong); }
.ruler__tick--5 { height: 12px; background: var(--color-muted); opacity: 0.5; }
.ruler__tick--30 { height: 22px; background: var(--color-accent-line); opacity: 1; }
.ruler__sign { position: absolute; top: 28px; transform: translateX(-50%); font-family: var(--font-glyph); font-size: var(--text-md); color: var(--color-accent); }
.ruler__body { position: absolute; top: -1px; width: 1px; height: 30px; background: var(--color-ink); }
.ruler__glyph { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--color-accent-line); border-radius: 50%; background: var(--color-paper); font-family: var(--font-glyph); font-size: var(--text-sm); color: var(--color-ink); }
.js .ruler__body { opacity: 0; transform: translateY(-10px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(200ms + var(--i, 0) * 180ms); }
.js .ruler.is-in .ruler__body { opacity: 1; transform: none; }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-xl); align-items: start; }
.footer .wordmark { grid-column: 1 / span 4; }
.footer__notes { grid-column: 6 / span 7; display: grid; gap: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.footer__notes p { max-width: 64ch; }
.footer__notes a { color: var(--color-ink-2); }
.footer__notes a:hover { color: var(--color-accent-2); }
.footer__notes a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
span.ephem__body { cursor: default; }
/* legal and support pages */
.doc { max-width: 46rem; margin-inline: auto; padding: var(--space-3xl) var(--gutter) var(--space-4xl); }
.doc h1 { font-size: var(--text-display-s); line-height: 1.04; max-width: 16ch; }
.doc .lead { margin-top: var(--space-lg); }
.doc h2 { font-size: var(--text-2xl); line-height: 1.15; margin-top: var(--space-2xl); max-width: none; }
.doc p, .doc li { line-height: 1.7; color: var(--color-ink-2); max-width: 68ch; }
.doc p + p, .doc ul { margin-top: var(--space-md); }
.doc ul { padding-left: var(--space-lg); display: grid; gap: var(--space-xs); }
.doc a { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.doc a:hover { color: var(--color-accent-2); }
.doc a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.doc__meta { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.doc__back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: var(--space-xl); color: var(--color-accent); }

/* ---------- One reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 75rem) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
}
@media (max-width: 60rem) {
  :root { --section-gap: 120px; }
  .hero { min-height: 0; padding-top: var(--space-xl); }
  .hero__copy, .hero__visual { grid-column: 1 / -1; }
  .hero__visual { margin-top: var(--space-xl); }
  .wheel { width: min(100%, 560px); }
  .readout { margin-top: var(--space-xl); }
  .hero__visual { justify-items: center; }
  .screen--hero { right: 0; bottom: 18%; width: clamp(110px, 24vw, 170px); }
  .sky__intro, .sky__table { grid-column: 1 / -1; }
  .math__stage { position: relative; top: auto; grid-column: 1 / -1; order: 2; }
  .math__story { grid-column: 1 / -1; padding-top: 0; }
  .chain__step { min-height: 0; }
  .privacy__head h2, .privacy__head .lead, .ahead__head h2, .ahead__head .lead { grid-column: 1 / -1; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__edge { padding: var(--space-xl) 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
  .flow__edge::before { left: 0; right: 0; top: 50%; bottom: auto; border-left: 0; border-top: 1px dashed var(--color-accent-line); }
  .flow__edge-name { grid-column: 1 / -1; }
  .flow__lane { grid-template-rows: auto 72px; }
  .flow__wire { width: 1px; height: 72px; }
  .flow__wire::after { right: auto; left: -4px; top: auto; bottom: -2px; border: 4.5px solid transparent; border-top: 7px solid var(--color-rule-strong); border-bottom: 0; }
  .flow__lane--back .flow__wire::after { left: -4px; top: -2px; bottom: auto; border: 4.5px solid transparent; border-bottom: 7px solid var(--color-rule-strong); border-top: 0; }
  .flow__spark { left: -3px; top: 0; }
  .js .flow.is-running .flow__spark { animation-name: spark-down; }
  .js .flow.is-running .flow__lane--back .flow__spark { animation-name: spark-up; }
  .flow__lane--back { grid-template-rows: 72px auto; }
  .flow__lane--back .flow__lane-label { grid-row: 2; }
  .flow__lane--back .flow__wire { grid-row: 1; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .facts > div { padding: var(--space-lg) 0 0; border-left: 0; border-top: 1px solid var(--color-rule-strong); }
  .views__copy, .views__panel { grid-column: 1 / -1; }
  .views__panel { margin-top: var(--space-xl); }
  .events { grid-template-columns: minmax(0, 1fr); }
  .pricing__head, .plans, .signup { grid-column: 1 / -1; grid-row: auto; }
  .footer .wordmark, .footer__notes { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .motion-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wordmark { font-size: 1.125rem; letter-spacing: 0.22em; }
  .screen--hero { display: none; }
  .readout { max-width: none; }
  .wheel { width: 100%; min-width: 0; }
  .ephem__const { display: none; }
  .ephem__in { display: block; font-size: var(--text-xs); color: var(--color-muted); }
  .ephem__pos { white-space: normal; padding-block: var(--space-xs); }
  .ephem td { padding-inline: var(--space-xs); }
  .ephem { font-size: var(--text-sm); }
  .ephem th:nth-child(3), .ephem td:nth-child(3) { display: none; }
  .ephem__detail td:first-child { display: table-cell; }
  .ephem__glyph { width: 1.5rem; }
  .ephem__chev { display: none; }
  .ephem th:first-child, .ephem td:first-child { width: 34%; }
  .ephem__detail dl { grid-template-columns: minmax(0, 1fr); }
  .ephem__detail td { padding-left: 0; }
  .flow__zone { padding: var(--space-lg); border-radius: 28px; }
  .deck__label { min-width: 0; font-size: var(--text-xl); }
  .views__row { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: var(--space-sm); }
  .views__tabs [role="tab"] { min-height: 48px; padding-bottom: 0; }
  .ribbon__lane-name { position: relative; top: auto; transform: none; display: inline-block; margin: var(--space-2xs) 0 0 var(--space-sm); padding: 0 var(--space-2xs); background: var(--color-paper); z-index: 1; }
  .ribbon__track { --lane-gutter: 0px; }
  .ribbon__week span { font-size: var(--text-xs); }
  .events li { grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--space-2xs) var(--space-md); }
  .events time { grid-column: 2; white-space: normal; }
  .events__title { grid-column: 2; }
  .plans { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .plan { grid-row: auto; grid-template-rows: none; }
  .signup { padding: var(--space-lg); }
  .signup__row { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .wheel.is-drawing [data-wheel-static], .js .wheel.is-drawing [data-wheel-aspects] { animation: none; }
  .js .flow.is-running .flow__spark { animation: none; opacity: 0; }
  .js .wheel.is-drawing .w-asp { animation: none; stroke-dashoffset: 0; }
  .hero h1 .line > span, .hero__lede, .hero__actions, .readout, .screen--hero { animation: none; }
  .wheel { animation: none; }
  .wheel__glow { transition: none; }
  .g-glint, .w-glint { display: none; }
  .g-planet, .g-core { animation: none; }
  .cheat[open], .cheat[open]::backdrop { animation: none; }
  .chip { transition: none; }
  .js .ribbon__lane::after, .js .mark, .js .ruler__body { transition: none; opacity: 1; transform: none; scale: 1; }
  .deck__card { transition: opacity var(--dur-short) linear; }
  .chain::after { transition: none; }
  .btn, .round, .link-quiet, .motion-toggle { transition: none; }
  .screen__glass > iframe { transition: none; }
  .skybg { transition: none; }
}

/* small screens: a calmer ribbon */
@media (max-width: 40rem) {
  .mark { width: 26px; height: 26px; font-size: var(--text-xs); left: calc(13px + (100% - 26px) * var(--f, 0)); }
  .ribbon__lane { height: 76px; }
  .ribbon__lane .mark { top: 64%; }
  .ribbon__lane-name { font-size: var(--text-xs); }
  .ribbon__week:nth-child(even) span { display: none; }
}

/* controls that need the script stay out of the no-script page */
html:not(.js) .readout__actions, html:not(.js) .sky__cheat { display: none; }
