/* PANOPTREA launch page. The home page's language (warm paper, serif headline, leaf, soil and maize) is the spine;
   night bands carry the dark orbital look; atlas sheets carry the field-atlas plates. Phone first: every rule
   starts at 360 px and widens from 900 px. */
:root {
  --bg: #f6f2eb; --card: #fffdf8; --tint: #eee7da; --ink: #1a231b; --ink-2: #3f4a40; --ink-3: #5b6a5b;
  --rule: rgba(26, 35, 27, .12); --rule-2: rgba(26, 35, 27, .24); --accent: #c8961e; --accent-t: #8a6410; --accent-ink: #1a1a12;
  --leaf: #436227; --soil: #6e4932; --sky: #2c5871; --bad: #b0392b; --focus: #c8961e; --phone: #1a231b;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-1: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px -12px rgba(60, 40, 20, .18);
  --shadow-2: 0 1px 2px rgba(60, 40, 20, .06), 0 18px 40px -18px rgba(60, 40, 20, .28), 0 50px 90px -40px rgba(60, 40, 20, .22);
  --shadow-3: 0 30px 80px -20px rgba(40, 30, 20, .35);
  --orb-sea-day: #e3ddcd; --orb-sea-night: #8b9597; --orb-land-day: #7c9a58; --orb-land-night: #5d6b50; --orb-rim: #fffaf0; --orb-pin: #c8961e; --orb-grid: #ffffff; --orb-grid-on: .4;
  --fz-dot: #7c9a58; --fz-pin: #c8961e;
}
:root[data-theme="dark"] {
  --bg: #17130f; --card: #211b16; --tint: #2a231c; --ink: #f1eee7; --ink-2: #d3cec3; --ink-3: #aaa598; --accent-t: #e3b44a;
  --rule: rgba(241, 238, 231, .12); --rule-2: rgba(241, 238, 231, .24); --leaf: #a3c586; --soil: #d2a888; --sky: #9cc3dc; --phone: #0c0a08;
  --shadow-2: 0 18px 40px -18px rgba(0, 0, 0, .7), 0 50px 90px -40px rgba(0, 0, 0, .6);
  --orb-sea-day: #2c3a3f; --orb-sea-night: #0f1518; --orb-land-day: #6d8a4e; --orb-land-night: #1d2618; --orb-rim: #3b352b; --orb-grid-on: .15; --fz-dot: #6d8a4e;
}
/* night bands: the orbital instrument, scoped to its sections */
.night {
  --bg: #060a0a; --card: #0c1312; --tint: #0a1110; --ink: #e8efea; --ink-2: #aab8b0; --ink-3: #8a9a91;
  --rule: rgba(232, 239, 234, .1); --rule-2: rgba(232, 239, 234, .22); --accent: #f2b33a; --accent-t: #f2b33a; --leaf: #8fd17a; --soil: #f2b33a; --sky: #58c8d8; --bad: #ff6a3d;
  --shadow-1: 0 0 0 1px rgba(88, 200, 216, .08), 0 20px 40px -24px rgba(0, 0, 0, .8); --shadow-2: 0 0 0 1px rgba(88, 200, 216, .1), 0 30px 70px -30px rgba(0, 0, 0, .9);
  --orb-sea-day: #12344a; --orb-sea-night: #040b12; --orb-land-day: #3e6a45; --orb-land-night: #0c1a14; --orb-rim: #58c8d8; --orb-pin: #f2b33a; --orb-grid: #58c8d8; --orb-grid-on: .55;
  --fz-dot: #2f6e5e; --fz-pin: #f2b33a;
  background-color: var(--bg); color: var(--ink);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 72px 72px;
}
.night h2, .night h3 { font-family: "Inter", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.035em; }
.night .kicker { font-family: "JetBrains Mono", monospace; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--sky); }
.night .screen { border-color: rgba(88, 200, 216, .2); }
/* atlas sheets: the field-atlas plates, scoped to their sections */
.atlas {
  --bg: #efe8da; --card: #faf6ee; --tint: #e7dfce; --ink: #141414; --ink-2: #3b3a36; --ink-3: #66625a; --accent-t: #b03a22; --accent: #b03a22;
  --rule: rgba(20, 20, 20, .14); --rule-2: rgba(20, 20, 20, .3);
  background-color: var(--bg); color: var(--ink);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 100% 240px, 240px 100%;
}
:root[data-theme="dark"] .atlas { --bg: #161410; --card: #1f1c17; --tint: #1b1813; --ink: #efe8da; --ink-2: #cfc7b6; --ink-3: #a39c8f; --accent-t: #e2694f; --accent: #e2694f; --rule: rgba(239, 232, 218, .14); }
.atlas h2, .atlas h3 { font-weight: 600; letter-spacing: -0.035em; }
.atlas .kicker { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-t); }
.atlas .screen { border-radius: 0; border: 1px solid var(--ink); box-shadow: 6px 6px 0 color-mix(in srgb, var(--ink) 85%, transparent); }

.col { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(42px, 11.4vw, 112px); line-height: .98; }
h2 { font-size: clamp(32px, 8.2vw, 66px); line-height: 1.03; max-width: 17ch; }
h3 { font-size: 22px; line-height: 1.2; }
.kicker { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--soil); letter-spacing: .01em; }
.standfirst { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; margin: 18px 0 0; }
.small { font-size: 14px; color: var(--ink-3); }
.when { display: inline-block; margin: 14px 0 0; font: 500 12px/1.4 "JetBrains Mono", monospace; color: var(--ink-3); }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; box-shadow: 0 10px 24px -10px rgba(26, 35, 27, .55); transition: transform .25s var(--ease); }
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--rule-2); box-shadow: none; }
.night .btn { background: var(--accent); color: #120d02; border-radius: 10px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.sec { padding: 88px 0; position: relative; }
.sec.tint { background: var(--tint); }
.act-head { padding: 120px 0 24px; }
.act-head .act-n { font: 500 13px "JetBrains Mono", monospace; color: var(--accent-t); letter-spacing: .08em; text-transform: uppercase; }
.act-head h2 { font-size: clamp(40px, 10vw, 92px); max-width: 15ch; margin-top: 10px; }
.miss { display: grid; place-items: center; min-height: 160px; padding: 16px; font-size: 13px; color: var(--ink-3); background: repeating-linear-gradient(45deg, var(--tint), var(--tint) 8px, var(--card) 8px, var(--card) 16px); }

/* hero */
.hero { position: relative; padding: 60px 16px 40px; max-width: 1240px; margin: 0 auto; display: grid; gap: 18px; }
.hero::before { content: ""; position: absolute; inset: 0 -50vw; z-index: -1; background: radial-gradient(60% 50% at 80% 30%, rgba(200, 150, 30, .10), transparent 70%), repeating-linear-gradient(100deg, transparent 0 22px, rgba(110, 73, 50, .035) 22px 23px); }
.hero-orb { position: relative; order: -1; height: 84vw; margin: 0 -16px -16vw; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.orb { width: 136vw; max-width: none; margin-left: -18vw; aspect-ratio: 1; display: block; touch-action: pan-y; cursor: grab; }
.orb.flat { background: radial-gradient(circle at 40% 40%, #e3ddcd, #b9c7a5 60%, transparent 61%); }
.orb-cap { display: none; margin: 6px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.hero-copy { position: relative; z-index: 1; }
.ticker { list-style: none; margin: 8px -16px 0; padding: 0 16px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ticker li { scroll-snap-align: start; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-1); display: grid; gap: 4px; }
.ticker .mono { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.ticker b { font: 400 34px/1.05 "Fraunces", serif; letter-spacing: -0.02em; }
.ticker span:last-of-type { font-size: 14px; color: var(--ink-2); }
.ticker small { font-size: 11px; color: var(--ink-3); }

/* statement with live numbers */
.glow { font: 400 clamp(24px, 6vw, 46px)/1.25 "Fraunces", serif; color: var(--ink); max-width: 28ch; margin: 0; }
.glow .gw { opacity: calc(.18 + .82 * clamp(0, (var(--t, 1) * 2.6 * var(--wn) - var(--wi)) / 3, 1)); transition: opacity .2s; }
.glow [data-end] { color: var(--bad); font-weight: 500; }
[data-motion="off"] .glow .gw { opacity: 1; }
.night .glow { font-family: "Inter", sans-serif; font-weight: 500; letter-spacing: -0.02em; }
.night .glow [data-end] { font-family: "JetBrains Mono", monospace; }

/* peel */
.peel .hold-in { display: flex; align-items: center; }
.peel .col { display: grid; gap: 14px; height: 100%; padding-top: 72px; padding-bottom: 16px; grid-template-rows: auto 1fr; }
.peel-copy { position: relative; z-index: 2; }
.peel-copy h2 { font-size: clamp(30px, 7.6vw, 60px); }
.peel-copy .standfirst { display: none; }
.peel-rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.peel-rows > li { display: none; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.peel-rows > li.is-current { display: grid; animation: rowin .5s var(--ease); }
.peel-rows b { color: var(--accent-t); font-size: 13px; padding-top: 4px; }
.peel-rows h3 { font-size: 20px; }
.peel-rows p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.peel-rows > li.peel-ans .ans { display: none; }
@keyframes rowin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ans { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ans li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; border-bottom: 1px dashed var(--rule); padding-bottom: 6px; }
.ans li span { color: var(--ink-3); }
.peel-deck { position: relative; perspective: 1600px; min-height: 0; display: grid; place-items: center; }
.layer { --rise: 0; --away: 0; position: absolute; width: min(64vw, 46vh, 440px); aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--card);
  transform: translate3d(calc(var(--away) * var(--exit-x, -120vw)), calc(var(--away) * var(--exit-y, 0vh)), 0) rotateX(calc(56deg * (1 - var(--rise)))) rotateZ(calc(-38deg * (1 - var(--rise)))) translateZ(calc((4 - var(--k)) * 34px + var(--rise) * 150px)) scale(calc(.78 + var(--rise) * .3));
  opacity: calc(1 - var(--away)); box-shadow: 0 2px 0 rgba(255, 255, 255, .5) inset, calc(var(--shade-x, 0px) * (1 - var(--rise))) 30px 60px -20px rgba(40, 30, 20, calc(.25 + var(--rise) * .25)); will-change: transform; }
.layer img { width: 100%; height: 100%; object-fit: cover; }
.layer-tag { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 253, 248, .92); color: #1a231b; font-size: 12px; opacity: var(--rise); }
.layer-card { padding: 22px; display: flex; flex-direction: column; justify-content: center; background: var(--card); border: 1px solid var(--rule); aspect-ratio: auto; width: min(84vw, 360px); }
.layer-card > .mono { font-size: 12px; color: var(--accent-t); }
[data-motion="off"] .peel .col { padding-top: 96px; }
[data-motion="off"] .peel-copy .standfirst, [data-motion="off"] .peel-rows > li.peel-ans .ans { display: block; }
[data-motion="off"] .peel-rows > li { display: grid; }
[data-motion="off"] .peel-deck { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; place-items: stretch; perspective: none; }
[data-motion="off"] .layer { position: relative; width: auto; transform: none; opacity: 1; scroll-snap-align: start; }
[data-motion="off"] .layer-tag { opacity: 1; }

/* screens: one or more real captures beside the words */
.scr { display: grid; gap: 22px; }
.scr-copy h3 { font-size: clamp(28px, 7vw, 48px); max-width: 18ch; }
.scr-copy p { color: var(--ink-2); max-width: 46ch; }
.scr-copy ul { padding-left: 18px; color: var(--ink-2); font-size: 15px; max-width: 46ch; }
.scr-copy li { margin: 4px 0; }
.scr-shots { display: grid; gap: 14px; align-items: start; }
.scr-shots .on-phone { max-width: 300px; width: 78%; justify-self: center; }
.shots-fan { display: flex; gap: 0; justify-content: center; padding: 10px 0 20px; overflow: visible; }
.shots-fan .screen { width: 46%; max-width: 280px; flex: none; margin: 0 -6%; }
.shots-fan .screen:nth-child(1) { transform: rotate(-6deg) translateY(18px); }
.shots-fan .screen:nth-child(3) { transform: rotate(6deg) translateY(18px); }
.shots-fan .screen:nth-child(2) { z-index: 2; }
.shots-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.shots-wall .screen:first-child { grid-column: 1 / -1; }
.shots-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 12px; scrollbar-width: none; }
.shots-strip .screen { scroll-snap-align: center; }
.shots-strip figcaption { padding: 8px 10px; font: 500 12px "JetBrains Mono", monospace; color: var(--ink-3); background: var(--card); border-top: 1px solid var(--rule); }
.scr .seat-when { margin: 0 0 8px; font: 500 12px/1.4 "JetBrains Mono", monospace; color: var(--soil); }

/* steps: how a reading got to you */
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 16px 16px 16px 58px; position: relative; box-shadow: var(--shadow-1); }
.steps li::before { content: counter(s); position: absolute; inset: 14px auto auto 16px; inline-size: 30px; block-size: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--bg); background: var(--ink); font: 600 14px "Inter"; }
.planet.gate-cards { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.steps b { display: block; font-size: 17px; }
.steps span { color: var(--ink-2); font-size: 15px; }

/* time */
.time .hold-in { display: flex; align-items: center; }
.time .col { display: grid; gap: 18px; padding-top: 76px; }
.time h2 { font-size: clamp(28px, 7vw, 56px); max-width: 20ch; }
.time .standfirst { font-size: 16px; }
.time-chart { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-2); }
.time-now { display: grid; gap: 8px; }
.time-now > .mono { font-size: 13px; color: var(--accent-t); font-weight: 500; }
.time-now dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; margin: 0; }
.time-now dt { font-size: 12px; color: var(--ink-3); }
.time-now dd { margin: 0; font-weight: 600; font-size: 15px; }
.time-chart svg { width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.mr-rain { fill: color-mix(in srgb, var(--sky) 30%, transparent); }
.mr-wet { fill: none; stroke: var(--leaf); stroke-width: 3; stroke-linejoin: round; }
.mr-leaf { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.mr-leaf.part { fill: var(--card); stroke: var(--accent); stroke-width: 2.5; }
.mr-radar { fill: var(--sky); }
.mr-now { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
.time-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.time-key span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.key-rain::before { background: color-mix(in srgb, var(--sky) 30%, transparent); } .key-wet::before { background: var(--leaf); } .key-leaf::before { background: var(--accent); border-radius: 50% !important; } .key-part::before { background: var(--card); border: 2px solid var(--accent); border-radius: 50% !important; } .key-radar::before { background: var(--sky); border-radius: 50% !important; }
.time-scrub { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.time-scrub input { flex: 1; accent-color: var(--leaf); min-height: 44px; }

/* atlas sheet: twelve places, four kinds of light, the reading beside them */
.sheet { display: grid; gap: 16px; margin-top: 28px; }
.sheet-places { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.sheet-places button { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); background: var(--card); cursor: pointer; font: 500 14px "Inter"; }
.sheet-places button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.sheet-plate { position: relative; margin: 0; border: 1px solid var(--ink); background: #111; }
.sheet-plate img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sheet-plate figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; background: var(--card); border-top: 1px solid var(--ink); font-size: 13px; }
.sheet-sq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sheet-sq figure { margin: 0; }
.sheet-sq img { width: 100%; aspect-ratio: 1; border: 1px solid var(--ink); }
.sheet-sq figcaption { font: 500 10px/1.3 "JetBrains Mono", monospace; color: var(--ink-3); margin-top: 4px; }
.sheet-read { background: var(--card); border: 1px solid var(--ink); padding: 14px 16px; box-shadow: 6px 6px 0 var(--ink); }
.sheet-read h3 { font-size: 26px; }
.sheet-read dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 15px; }
.sheet-read dt { color: var(--ink-3); }
.sheet-read dd { margin: 0; font-weight: 600; }
.coord { font: 500 11px "JetBrains Mono", monospace; color: var(--ink-3); }

/* any point: the planet strip */
.planet { display: grid; gap: 14px; margin-top: 30px; grid-template-columns: 1fr; }
.pl { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-1); display: grid; gap: 8px; align-content: start; }
.pl-place { margin: 0; font: 500 12px "JetBrains Mono", monospace; color: var(--ink-3); }
.pl-big { margin: 0; font: 400 46px/1 "Fraunces", serif; letter-spacing: -0.03em; }
.pl-line { margin: 0; color: var(--ink-2); font-size: 15px; }
.pl .screen { margin-top: 4px; }
.night .pl { background: rgba(12, 19, 18, .9); border-color: rgba(88, 200, 216, .18); border-radius: 10px; }
.night .pl-big { font: 500 44px/1 "JetBrains Mono", monospace; letter-spacing: -0.05em; }

/* lens wheel */
.lens { margin-top: 30px; display: grid; gap: 18px; }
.lens-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.lens-tabs [role=tab] { flex: none; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--card); cursor: pointer; font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.lens-tabs [role=tab] .mono { font-size: 11px; color: var(--ink-3); }
.lens-tabs [aria-selected=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lens-tabs [aria-selected=true] .mono { color: var(--accent); }
[role=tabpanel] { display: grid; gap: 18px; }
[role=tabpanel][hidden] { display: none; }

/* proof */
.ledger { position: relative; display: grid; gap: 14px; }
.ledger .rec-link { display: block; width: 2px; height: 18px; margin: -10px auto; background: var(--rule-2); }
.rec-n { margin: 0 0 8px; font-size: 12px; color: var(--accent-t); }
.ledger-say { margin: 18px 0 12px; font-size: 17px; }
.proof-grid { display: grid; gap: 22px; }

/* next */
.nx-grid { display: grid; gap: 16px; margin-top: 32px; }
.nx { background: var(--card); border: 1px dashed var(--rule-2); border-radius: 20px; padding: 18px; }
.nx-art svg { width: 100%; height: auto; }
.nx-art text { font: 500 10px "JetBrains Mono", monospace; fill: var(--ink-3); }
.nx-band { fill: color-mix(in srgb, var(--sky) 22%, transparent); }
.nx-line { fill: none; stroke: var(--sky); stroke-width: 2.5; stroke-dasharray: 340; stroke-dashoffset: calc(340 * (1 - clamp(0, var(--t, 1) * 2, 1))); }
.nx-lvl { stroke: var(--bad); stroke-dasharray: 3 4; }
.nx-row { fill: var(--tint); } .nx-row.on { fill: color-mix(in srgb, var(--accent) 30%, var(--card)); }
.nx-frame { fill: color-mix(in srgb, var(--leaf) 40%, var(--card)); } .nx-frame.b { fill: color-mix(in srgb, var(--soil) 30%, var(--card)); }
.nx-dot { fill: var(--accent); }
.nx h3 { margin-top: 12px; font-size: 22px; }
.nx p { color: var(--ink-2); font-size: 15px; margin: 6px 0 0; }
.nx .tag { display: inline-block; margin-top: 10px; font: 500 11px "JetBrains Mono", monospace; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }

/* gallery */
.cat-tools { display: grid; gap: 12px; margin-top: 24px; }
.cat-search input { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--rule-2); padding: 0 14px; background: var(--card); }
.cat-count { margin: 0; font-size: 13px; color: var(--ink-3); }

/* safeguards, privacy */
.never { list-style: none; counter-reset: n; padding: 0; margin: 30px 0 0; display: grid; gap: 2px; }
.never li { counter-increment: n; display: grid; gap: 4px; padding: 18px 0 18px 44px; position: relative; border-top: 1px solid var(--rule); }
.never li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 22px; font: 500 12px "JetBrains Mono", monospace; color: var(--accent-t); }
.never b { font: 400 24px/1.2 "Fraunces", serif; }
.never span { color: var(--ink-2); }
.privacy { display: grid; gap: 14px; margin-top: 26px; }
.privacy div { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 16px; }
.privacy ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }

/* finale */
.finale { position: relative; min-height: 92vh; display: grid; align-items: end; padding: 0 0 80px; overflow: hidden; }
.finale canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.finale .col { position: relative; }
.foot { padding: 28px 0 40px; font-size: 13px; color: var(--ink-3); }
.foot a { color: var(--ink-2); }

/* depth under the scroll: part titles drift, screens rise slower than the words */
.act-head h2 { transform: translateX(calc((.5 - var(--t, .5)) * 10vw)); transition: transform .1s linear; }
.act-head .act-n { display: inline-block; transform: translateX(calc((var(--t, .5) - .5) * 6vw)); }
.sec[data-track] .scr-shots { transform: translateY(calc((.5 - var(--t, .5)) * 70px)); }
[data-motion="off"] .act-head h2, [data-motion="off"] .act-head .act-n, [data-motion="off"] .sec[data-track] .scr-shots { transform: none; }

/* each screen size shows the capture made at that size */
.screen.phone-only { display: none; }
@media (max-width: 899px) { .screen.desk-only { display: none; } .screen.phone-only { display: block; max-width: 300px; width: 78%; justify-self: center; margin: 0 auto; } }
.shots-fan .screen:only-child { transform: none; margin: 0; width: 78%; max-width: 320px; }
[role=tabpanel] .screen.on-phone { max-width: 300px; margin: 0 auto; }

/* phones: several screens side by side become a sideways strip */
@media (max-width: 899px) {
  .scr-shots.two, .scr-shots.pair, .shots-wall { display: flex; align-items: flex-start; gap: 12px; margin-inline: -16px; padding: 0 16px 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .scr-shots.two > .screen, .scr-shots.pair > .screen, .shots-wall > .screen { flex: 0 0 76%; width: auto; max-width: none; scroll-snap-align: center; grid-column: auto; transform: none; }
  .scr-shots.two > .screen:not(.on-phone):not(.phone-only), .scr-shots.pair > .screen:not(.on-phone):not(.phone-only), .shots-wall > .screen:not(.on-phone):not(.phone-only) { flex-basis: 94%; }
  .scr-shots.two > .screen.desk-only, .scr-shots.pair > .screen.desk-only, .shots-wall > .screen.desk-only { display: none; }
  .scr-shots.two > .screen.phone-only, .scr-shots.pair > .screen.phone-only, .shots-wall > .screen.phone-only { margin: 0; }
}

/* night globes */
.planet-orb { position: sticky; top: 60px; z-index: 2; height: 46vw; max-height: 300px; margin: 18px -16px 0; overflow: hidden; background: linear-gradient(var(--bg) 70%, transparent); }
.planet-orb .orb, .engine-orb .orb { width: 100%; max-width: 520px; margin: 0 auto; }
.planet-orb .orb { width: 92vw; margin: -10vw auto 0; }
.engine-orb { filter: drop-shadow(0 0 60px rgba(88, 200, 216, .25)); }
.sun-readout { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 18px; margin: 18px 0 0; font-size: 11px; }
.sun-readout dt { color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.sun-readout dd { margin: 0; color: var(--sky); }
.night .ans li b, .night .seat-when { color: var(--accent-t); }
.night .scr-copy li, .night .scr-copy p { color: var(--ink-2); }

/* desktop */
@media (min-width: 900px) {
  .col { padding: 0 40px; }
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; padding: 110px 40px 40px; min-height: 100vh; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-orb { grid-column: 2; grid-row: 1; order: 0; height: auto; margin: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .orb { width: 100%; margin: 0; }
  .orb-cap { display: block; }
  .ticker { grid-column: 1 / -1; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
  .sec { padding: 130px 0; }
  .peel .col { grid-template-columns: .9fr 1.1fr; grid-template-rows: 1fr; align-items: center; padding-top: 60px; }
  .peel-copy .standfirst { display: block; }
  .peel-rows > li { display: grid; }
  .peel-rows > li.is-current { animation: none; }
  /* rows not yet reached step back in colour, never below a readable contrast */
  .peel-rows > li:not(.is-current) :is(b, h3, p) { color: var(--ink-3); transition: color .4s; }
  .peel-deck { height: 100%; }
  .layer { width: min(30vw, 62vh, 460px); --exit-x: 0vw; --exit-y: -110vh; }
  .layer-card { width: min(30vw, 420px); }
  [data-motion="off"] .peel-deck { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .time .col { grid-template-columns: .8fr 1.2fr; align-items: center; }
  .time-now dl { grid-template-columns: repeat(5, 1fr); }
  .scr { grid-template-columns: .72fr 1.28fr; align-items: center; gap: 56px; }
  .scr.flip .scr-copy { order: 2; }
  .scr.stack { grid-template-columns: 1fr; }
  .scr-shots.pair { grid-template-columns: 1.6fr 1fr; align-items: end; }
  .scr-shots.two { grid-template-columns: 1fr 1fr; }
  .scr-shots .on-phone { width: 100%; }
  .scr.wide { grid-template-columns: 1fr; }
  .scr.wide .scr-copy { order: 0; }
  .scr.wide .scr-copy p, .scr.wide .scr-copy h3 { max-width: 40ch; }
  .shots-strip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .sheet { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .sheet-places { grid-column: 1 / -1; margin: 0; padding: 0; flex-wrap: wrap; }
  .planet { grid-template-columns: repeat(3, 1fr); }
  #planet .col { display: grid; grid-template-columns: 1fr 1.25fr; column-gap: 48px; }
  #planet .col > .kicker, #planet .col > h2, #planet .col > .standfirst { grid-column: 1 / -1; }
  .planet-orb { grid-column: 1; grid-row: 4; align-self: start; top: 90px; height: auto; max-height: none; margin: 30px 0 0; background: none; }
  .planet-orb .orb { width: 100%; margin: 0; }
  #planet .planet { grid-column: 2; grid-template-columns: 1fr 1fr; }
  .lens { grid-template-columns: 280px 1fr; align-items: start; }
  .lens-tabs { flex-direction: column; margin: 0; padding: 0; position: sticky; top: 90px; }
  .lens-tabs [role=tab] { justify-content: flex-start; border-radius: 14px; }
  .proof-grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .nx-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-tools { grid-template-columns: 1fr 320px; align-items: center; }
  .cat-count { grid-column: 1 / -1; }
  .never { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .privacy { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) { .planet { grid-template-columns: repeat(4, 1fr); } #planet .planet { grid-template-columns: 1fr 1fr; } }
