/* ravefunction.com: the stylesheet of the pages beside the landing (today/,
   in-action/, vision/, privacy/, support/). The palette is the mark's: cyan and
   magenta for the two hands, amber for the shared beat, on midnight navy. The
   type is the landing's own copies (../fonts/, SIL Open Font License): Archivo,
   Latin, weights 400-800, widths 100-125 %, and IBM Plex Mono Medium, Latin;
   characters outside that subset fall back to the system's monospace. */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-style: normal;
             font-weight: 400 800; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "SwellPlex"; src: url("../fonts/plexmono-medium-latin.woff2") format("woff2"); font-style: normal;
             font-weight: 500; font-display: swap; }
:root { color-scheme: dark; --bg: #070d18; --card: #0b1530; --line: #22345e; --chalk: #f3f0e6; --muted: #a9b8cf; --dim: #6f80a0;
        --amber: #f7b62c; --gold: #ffc94d; --cyan: #14c2dd; --magenta: #ff3d9a; --navy: #0b0e17;
        --mono: "SwellPlex", ui-monospace, Menlo, monospace; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--chalk);
       font: 17px/1.55 "Archivo", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
main { max-width: 1240px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 80px; }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
/* Links as the landing draws them: gold, underlined by a thin rule. */
a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(255, 201, 77, .4); }
a:hover, a:focus-visible { border-bottom-color: var(--gold); }
img, video { max-width: 100%; }

/* Page head: the mark and the name (back to the landing), the pages, then the kicker. */
header.top { margin-bottom: 40px; }
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
/* ψ is as tall as it is wide: these keep the head as tall as Beat cut kept it. */
.brand .mark { width: 90px; height: auto; display: block; }
.brand.small .mark { width: 44px; }
.home-link { display: inline-flex; align-items: center; gap: 12px; color: var(--chalk); border: 0; }
.home-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 8px; }
.mark-button { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; }
.mark-button:focus-visible, .mark-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 8px; }
.mark-link { line-height: 0; border: 0; }
.top > .kicker { margin-top: 44px; }
.kicker { margin: 0; font: 500 14px/1.3 var(--mono); color: var(--amber); letter-spacing: .08em; text-transform: uppercase; }
/* The product's name keeps its own case, never capitals: Rave Function. */
.kicker.name { text-transform: none; letter-spacing: .02em; }
.pages { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 0 auto; padding: 0; list-style: none; font: 500 14px/1.4 var(--mono); }
.pages a { display: inline-block; color: var(--cyan); text-decoration: none; border: 1px solid var(--line); border-radius: 999px;
           padding: 6px 14px; }
.pages a:hover { border-color: var(--cyan); }
.pages a[aria-current="page"] { color: var(--amber); border-color: rgba(247, 182, 44, .6); }
.pages a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
h1 { margin: 22px 0 12px; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.04; font-weight: 800; font-stretch: 125%; }
.lede { margin: 0; max-width: 780px; color: var(--muted); font-size: 19px; }
.lede + .lede { margin-top: 10px; }
.jumps { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 20px 0 0; font: 500 15px/1.4 var(--mono); }

/* Pictures and their captions. */
figure { margin: 0; }
.shot { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--navy); }
.note { margin: 12px 0 0; color: var(--dim); font-size: 15px; line-height: 1.5; max-width: 900px; }
.tag { display: inline-block; margin-right: 8px; padding: 1px 8px; font: 500 11px/1.7 var(--mono); letter-spacing: .06em;
       text-transform: uppercase; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); vertical-align: 1px; }
.tag.game, .tag.measured { border-color: rgba(20, 194, 221, .55); color: var(--cyan); }
.tag.concept { border-color: rgba(255, 61, 154, .55); color: var(--magenta); }
.tag.estimated { border-color: rgba(247, 182, 44, .55); color: var(--amber); }

/* The loop's Pause button (the project page's hero, today/). */
.hero .toggle { position: absolute; right: 12px; bottom: 12px; font: 500 13px/1.2 var(--mono); color: var(--chalk);
                background: rgba(7, 13, 24, .72); border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; cursor: pointer; }
.hero .toggle:hover { border-color: var(--dim); }
.hero .toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.hero .toggle[hidden] { display: none; }

/* Sections. */
.block { margin: 0 0 72px; padding-top: 40px; border-top: 1px solid var(--line); }
h2 { margin: 14px 0 12px; font-size: clamp(28px, 4vw, 46px); line-height: 1.08; font-weight: 800; font-stretch: 125%; }
h3 { margin: 0 0 6px; font-size: 21px; line-height: 1.25; font-weight: 700; }
.gallery figcaption { margin-top: 14px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 10px; }
.gallery .n { grid-row: span 2; font: 500 15px/1.75 var(--mono); color: var(--amber); }

/* Measured numbers. */
.tiles { margin: 36px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tile { padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.tile .label { margin: 0; color: var(--muted); font-size: 15px; }
.tile .value { margin: 6px 0 4px; font-size: 30px; line-height: 1.1; font-weight: 700; color: var(--chalk); font-variant-numeric: tabular-nums; }
.tile .detail { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.45; }
.tile .tag { margin-top: 10px; }

/* Cards. */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 28px; }
.card { padding: 18px 20px 20px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--c, var(--line));
        border-radius: 12px; }
.card p { margin: 0; color: var(--muted); }

/* Links to the other pages. */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; }
.teaser > a { border: 0; }
.teaser p:not(.kicker) { color: var(--muted); }
.button { display: inline-block; margin-top: 6px; padding: 10px 16px; border: 1px solid var(--amber); border-radius: 8px;
          color: var(--amber); text-decoration: none; font: 500 15px/1.3 var(--mono); }
.button:hover { background: rgba(247, 182, 44, .08); }
.button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.thumbs { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.thumbs a { display: block; color: var(--muted); text-decoration: none; font-size: 15px; border: 0; }
.thumbs a:hover .shot, .thumbs a:focus-visible .shot { border-color: var(--cyan); }
.thumbs a:focus-visible { outline: none; }
.thumbs span { display: block; margin-top: 8px; }

/* The concept gallery (vision/). */
.gallery figure { margin: 0 0 56px; }
.gallery figcaption { grid-template-columns: 52px 1fr; gap: 4px 12px; }
.gallery figcaption b { font-size: 21px; font-weight: 700; }
.gallery figcaption span:last-child { color: var(--muted); max-width: 900px; }

footer { color: var(--dim); font: 14px/1.6 var(--mono); border-top: 1px solid var(--line); padding-top: 20px; }
footer p { margin: 0 0 8px; max-width: 1100px; }
footer .site-links { font-size: 15px; }

/* Pages of prose (privacy/, support/): a reading width, the lists' rhythm, the summary as cards. */
.policy { max-width: 880px; }
.policy h2 { font-size: clamp(24px, 3vw, 32px); }
.policy h3 { margin-top: 24px; }
.policy p:not(.kicker), .policy li { color: var(--muted); }
.policy p b, .policy li b, .policy td b { color: var(--chalk); font-weight: 600; }
.policy ul, .policy ol { margin: 14px 0 0; padding-left: 22px; }
.policy li { margin: 0 0 10px; }
.policy li::marker { color: var(--amber); font-family: var(--mono); }
.policy .facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.policy .facts li { margin: 0; padding: 14px 18px; background: var(--card); border: 1px solid var(--line);
                    border-radius: 12px; font-size: 16px; }
.policy .facts b { display: block; margin-bottom: 2px; font-size: 18px; }
.policy .apps { width: 100%; margin: 18px 0 0; border-collapse: collapse; font-size: 16px; }
.policy .apps th, .policy .apps td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.policy .apps th { color: var(--chalk); font-weight: 600; white-space: nowrap; }
.policy .apps td { color: var(--muted); }
.policy .contact { margin: 20px 0 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line);
                   border-top: 3px solid var(--amber); border-radius: 12px; }
.policy .contact p { margin: 0; }
.policy .contact p + p { margin-top: 8px; }
.policy .contact .address { font: 500 19px/1.4 var(--mono); color: var(--chalk); }
@media (max-width: 640px) {
  .policy .apps th { white-space: normal; }
}

@media (max-width: 900px) {
  .pages { margin-left: 0; width: 100%; }
  .teaser { grid-template-columns: minmax(0, 1fr); }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .thumbs span { font-size: 13px; }
}
@media (max-width: 520px) {
  .brand .mark { width: 66px; }
  .lede { font-size: 17px; }
  .thumbs { grid-template-columns: minmax(0, 1fr); }
}

/* See it in action: a 3D replay of two recorded runs (in-action/viewer.js). */
.action { margin: 0 0 64px; }
.action h1 { margin-top: 0; }
.action button, .action .hud, .action .time, .action .keys, .action .legend, .action .status, .action .raw,
.action .tag { font-family: var(--mono); }
.action .lede.small { margin-top: 10px; font-size: 16px; color: var(--dim); }
.viewer { margin-top: 28px; }
.stage { position: relative; aspect-ratio: 16 / 9; max-height: 80vh; width: 100%; overflow: hidden; border-radius: 14px;
         border: 1px solid var(--line); background: var(--bg); }
.stage .poster, .stage canvas.view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.stage canvas.view { opacity: 0; transition: opacity .4s; }
.action.shown .stage canvas.view { opacity: 1; }
.action.shown .stage .poster, .action.ready .stage .load { display: none; }
.stage canvas.view:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
.stage .load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.action button { font-size: 13px; line-height: 1.2; color: var(--chalk); background: var(--card); border: 1px solid var(--line);
                 border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.action button:hover { border-color: var(--dim); }
.action button[aria-pressed="true"], .action button[aria-current="true"] { border-color: var(--amber); color: var(--amber); }
.action button:focus-visible, .action input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.stage .load { font-size: 15px; padding: 12px 18px; background: rgba(11, 21, 48, .92); border-color: var(--amber); }
.hud { position: absolute; left: 12px; top: 12px; padding: 8px 10px; font-size: 12px; line-height: 1.55; color: var(--muted);
       background: rgba(7, 13, 24, .72); border: 1px solid rgba(34, 52, 94, .8); border-radius: 8px; pointer-events: none;
       font-variant-numeric: tabular-nums; max-width: calc(100% - 24px); }
.action:not(.ready) .hud { display: none; }
.hud .row { display: flex; flex-wrap: wrap; gap: 0 12px; }
.hud .row b { min-width: 84px; font-weight: 600; }
.hud .total b { color: var(--chalk); }
.status { position: absolute; left: 12px; bottom: 10px; margin: 0; font-size: 12px; color: var(--dim); pointer-events: none;
          text-shadow: 0 1px 2px var(--bg); }
.stage-wrap { position: relative; }
.raw { position: absolute; right: 12px; top: 12px; bottom: 12px; width: min(440px, 46%); overflow: auto; padding: 14px 16px;
       font-size: 12.5px; line-height: 1.5; color: var(--muted); background: rgba(7, 13, 24, .94); border: 1px solid var(--line);
       border-radius: 10px; font-variant-numeric: tabular-nums; }
.raw[hidden] { display: none; }
.raw .rh { display: flex; align-items: baseline; gap: 10px; }
.raw .rh h3 { margin: 0; flex: 1; font: 700 17px/1.25 "Archivo", "Helvetica Neue", Arial, sans-serif; color: var(--chalk); }
.raw .n, .moments .n { color: var(--amber); }
.raw p { margin: 10px 0; }
.raw code { color: var(--chalk); }
.raw .sample { margin: 12px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.raw .sh { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.raw .tw { overflow-x: auto; }
.raw table { width: 100%; margin-top: 6px; border-collapse: collapse; }
.raw th, .raw td { padding: 2px 4px; text-align: right; font-weight: 400; white-space: nowrap; }
.raw thead th { color: var(--dim); border-bottom: 1px solid var(--line); }
.raw tbody th { text-align: left; color: var(--muted); }
.raw td { color: var(--chalk); }
.raw details { margin-top: 6px; }
.raw summary { cursor: pointer; color: var(--cyan); }
.raw .floats { display: block; margin-top: 4px; word-break: break-all; font-size: 11.5px; color: var(--muted); }
.raw .bytes { color: var(--dim); }
.raw .rb { display: flex; gap: 8px; margin-top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.bar .group { display: flex; flex-wrap: wrap; gap: 4px; }
.bar .time { font-size: 13px; color: var(--chalk); font-variant-numeric: tabular-nums; min-width: 128px; }
.bar label { font: 13px/1.2 var(--mono); color: var(--muted); display: flex; gap: 6px; align-items: center; }
.bar input[type=checkbox] { accent-color: var(--amber); width: 16px; height: 16px; margin: 0; }
.action:not(.ready) .needs-viewer, .action:not(.has-avatar) .needs-avatar { display: none; }
.track { position: relative; height: 72px; margin-top: 12px; border-radius: 8px; background: rgba(11, 21, 48, .6); border: 1px solid var(--line); }
.track canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.track input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent;
                           -webkit-appearance: none; appearance: none; cursor: pointer; }
.track input[type=range]::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 3px; height: 70px; background: var(--chalk);
                                                 border-radius: 2px; box-shadow: 0 0 0 2px rgba(7, 13, 24, .8); }
.track input[type=range]::-moz-range-track { height: 100%; background: transparent; }
.track input[type=range]::-moz-range-thumb { width: 3px; height: 70px; background: var(--chalk); border: 0; border-radius: 2px; }
.legend, .keys { margin: 8px 0 0; font-size: 12px; color: var(--dim); }
.legend i { display: inline-block; width: 3px; height: 11px; margin: 0 5px 0 0; vertical-align: -1px; border-radius: 1px; }
.legend .sep { margin: 0 8px; }
.moments { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.moments button { width: 100%; height: 100%; text-align: left; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.moments .mn { flex-basis: 100%; font: 600 14px/1.3 "Archivo", "Helvetica Neue", Arial, sans-serif; }
.moments .mt { color: var(--dim); }
@media (max-width: 900px) {
  .stage { aspect-ratio: 4 / 3; }
  .raw { position: static; width: auto; max-height: none; margin-top: 12px; }
  .hud { left: 8px; top: 8px; padding: 5px 7px; font-size: 10px; line-height: 1.45; }
  .hud .row b { min-width: 0; }
  .hud .more { display: none; }
  .raw { font-size: 12px; }
}

/* ===== The project page (today/index.html, body.home) =====
   A full-bleed hero, then the story in sections. The show's three colours
   (--show-a/b/c) are the page's lights: the colour picker retints them, and
   registered colours let them fade from one to the next. Motion (the splash,
   parallax, swaying beams, the loops) is off for people who ask for less;
   parallax runs on scroll-driven animations, or home.js where those are
   missing, and never takes over the scroll. */
@property --show-a { syntax: "<color>"; inherits: true; initial-value: #14c2dd; }
@property --show-b { syntax: "<color>"; inherits: true; initial-value: #ff3d9a; }
@property --show-c { syntax: "<color>"; inherits: true; initial-value: #f7b62c; }
.home { --show-a: var(--cyan); --show-b: var(--magenta); --show-c: var(--amber); overflow-x: clip;
        --pad: clamp(18px, 4vw, 48px); --gutter: max(var(--pad), calc((100% - 1240px) / 2 + var(--pad))); --px-range: 110px;
        transition: --show-a .7s ease, --show-b .7s ease, --show-c .7s ease; }
.home[data-show="cyan"] { --show-a: var(--cyan); --show-b: var(--cyan); --show-c: var(--cyan); }
.home[data-show="magenta"] { --show-a: var(--magenta); --show-b: var(--magenta); --show-c: var(--magenta); }
.home[data-show="amber"] { --show-a: var(--amber); --show-b: var(--amber); --show-c: var(--amber); }
.home main { max-width: none; margin: 0; padding: 0; }
html:not(.js) .needs-js { display: none; }   /* controls that only work with the script */
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 48px); }
.home h2 { font-size: clamp(32px, 4.3vw, 60px); line-height: 1.04; margin: 14px 0 18px; max-width: 20ch; }
.home .lede { font-size: clamp(18px, 1.5vw, 21px); }
.home .block { margin: 0 auto clamp(96px, 13vw, 170px); padding-top: 0; border-top: 0; }

/* The opening splash: the mark's one-bar intro, the name, then the page.
   Shown only while <html> has .splash-on (set before the first paint); it
   fades out by itself, so it never depends on the script finishing. */
.splash { display: none; }
.splash-on .splash { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: #060a14;
                     animation: splash-out .45s ease 2.05s forwards; }
.splash-on .splash.held { animation: none; }
.splash-on .splash.leaving { animation: splash-out .25s ease forwards; }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
.splash-mark { display: grid; justify-items: center; text-align: center; }
.splash-mark img { width: min(236px, 50vw); height: auto; }
.splash-word { margin: 6px 0 0; font: 800 clamp(30px, 5.4vw, 58px)/1 "Archivo", "Helvetica Neue", Arial, sans-serif;
               font-stretch: 125%; opacity: 0; animation: splash-in .3s ease 1s forwards; }
.splash-line { margin: 14px 0 0; font: 500 13px/1 var(--mono); letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
               opacity: 0; animation: splash-in .3s ease 1.15s forwards; }
.splash.replay .splash-word, .splash.replay .splash-line { animation-name: splash-in-again; }
@keyframes splash-in { to { opacity: 1; } }
@keyframes splash-in-again { from { opacity: 0; } to { opacity: 1; } }
.splash-buttons { position: absolute; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom)); display: flex;
                  justify-content: center; gap: 10px; }
.splash-buttons button { font: 500 14px/1.2 var(--mono); color: var(--chalk); background: rgba(11, 21, 48, .85);
                         border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.splash-buttons button:hover { border-color: var(--dim); }
.splash-buttons button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* The page's lights: three soft beams behind everything, in the show's colours. */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; top: -12vh; left: var(--x); width: 90vmax; height: 135vh; margin-left: -45vmax;
             background: conic-gradient(from 180deg at 50% 0%, var(--c) 0deg, transparent 9deg 351deg, var(--c) 360deg);
             -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%); mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
             opacity: .15; transform-origin: 50% 0; rotate: var(--r); }
.ambient .a1 { --x: 8%; --c: var(--show-a); --r: 24deg; }
.ambient .a2 { --x: 52%; --c: var(--show-c); --r: -3deg; opacity: .08; }
.ambient .a3 { --x: 96%; --c: var(--show-b); --r: -24deg; }

/* The bar over the hero: the mark, the name, the pages. */
.home .topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center;
             gap: 10px 14px; padding: 14px var(--gutter) 40px;
             background: linear-gradient(to bottom, rgba(7, 13, 24, .82), rgba(7, 13, 24, 0)); }
.home .topbar .mark { display: block; width: 62px; height: auto; }
.wordmark { margin: 0; font: 800 19px/1 "Archivo", "Helvetica Neue", Arial, sans-serif; font-stretch: 125%; letter-spacing: .005em;
            color: var(--chalk); border: 0; }
a.wordmark:hover, a.wordmark:focus-visible { color: var(--gold); }
.home .topbar .pages a { background: rgba(7, 13, 24, .55); }

/* The hero: the swell loop, as large as the screen allows. */
.hero { position: relative; margin: 0; height: min(56.25vw, calc(100svh - 150px)); min-height: 320px; overflow: hidden;
        background: var(--navy); }
.hero-stage { position: absolute; inset: 0; }
.hero-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; pointer-events: none;
               background: linear-gradient(to bottom, rgba(7, 13, 24, 0), var(--bg)); }
.hero .toggle { right: var(--gutter); bottom: 18px; z-index: 2; }
.hero-note { position: absolute; left: var(--gutter); right: calc(var(--gutter) + 90px); bottom: 16px; z-index: 2; margin: 0;
             font-size: 14px; line-height: 1.45; color: var(--muted); text-shadow: 0 1px 3px var(--bg); }

/* The opening words. */
.intro { padding-top: 26px; padding-bottom: clamp(70px, 10vw, 130px); }
.intro h1 { margin: 12px 0 22px; max-width: 15ch; font-size: clamp(40px, 5.8vw, 84px); line-height: 1; letter-spacing: -.005em; }
.intro .lede { max-width: 780px; }
.intro .jumps { margin-top: 26px; }

/* Music, lights and space: a rig of lights in the show's colours, over a floor. */
.room { position: relative; isolation: isolate; overflow: hidden; margin-bottom: clamp(96px, 13vw, 170px);
        padding: clamp(150px, 19vw, 250px) 0 clamp(110px, 13vw, 170px); }
.rig { position: absolute; inset: 0; z-index: -1; }
.truss { position: absolute; top: 34px; left: -2%; right: -2%; height: 12px; border-block: 1px solid #34497a;
         background: repeating-linear-gradient(90deg, #34497a 0 2px, transparent 2px 24px), #121c34; }
.beams { position: absolute; top: 46px; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; }
.beams i { position: relative; width: 26px; height: 100%; --c: var(--show-a); }
.beams i:nth-child(3n+2) { --c: var(--show-b); }
.beams i:nth-child(3n) { --c: var(--show-c); }
.beams i::before { content: ""; position: absolute; top: 4px; left: 50%; width: min(46vw, 560px); height: 120%; translate: -50% 0;
                   transform-origin: 50% 0; rotate: var(--r, 0deg); opacity: .34;
                   clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
                   background: linear-gradient(to bottom, color-mix(in srgb, var(--c) 75%, white) 0%,
                               color-mix(in srgb, var(--c) 40%, transparent) 28%, transparent 78%); }
.beams i::after { content: ""; position: absolute; top: -12px; left: 0; width: 26px; height: 18px; border-radius: 4px 4px 9px 9px;
                  background: #1c2846; border-bottom: 3px solid var(--c); box-shadow: 0 6px 18px var(--c); }
.beams i:nth-child(1) { --r: 22deg; --d: 5.2s; }
.beams i:nth-child(2) { --r: -10deg; --d: 4.1s; }
.beams i:nth-child(3) { --r: 14deg; --d: 6s; }
.beams i:nth-child(4) { --r: -4deg; --d: 4.6s; }
.beams i:nth-child(5) { --r: 9deg; --d: 5.6s; }
.beams i:nth-child(6) { --r: -14deg; --d: 4.3s; }
.beams i:nth-child(7) { --r: -24deg; --d: 5s; }
.floor { position: absolute; left: -30%; right: -30%; bottom: -6%; height: 58%; transform-origin: 50% 100%;
         transform: perspective(520px) rotateX(64deg);
         background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--show-a) 34%, transparent), transparent 62%),
                     repeating-linear-gradient(90deg, rgba(20, 194, 221, .26) 0 1px, transparent 1px 84px),
                     repeating-linear-gradient(0deg, rgba(20, 194, 221, .26) 0 1px, transparent 1px 84px);
         -webkit-mask-image: linear-gradient(to top, #000 25%, transparent); mask-image: linear-gradient(to top, #000 25%, transparent); }
.room-text { position: relative; }
.room-text h2, .room-text .lede { text-shadow: 0 2px 18px var(--bg), 0 0 2px var(--bg); }
.room-text .lede { max-width: 640px; color: var(--chalk); }
.room-text .note { max-width: 640px; margin-top: 16px; color: var(--muted); text-shadow: 0 1px 6px var(--bg); }

/* Choices drawn as chips (radio buttons underneath). */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; border: 0; min-width: 0; }
.chips legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; font: 500 13px/1.3 var(--mono); letter-spacing: .08em;
                text-transform: uppercase; color: var(--amber); }
.chips label { position: relative; display: inline-flex; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: 1px solid var(--line);
              border-radius: 999px; background: rgba(11, 21, 48, .85); color: var(--chalk);
              font: 600 16px/1.2 "Archivo", "Helvetica Neue", Arial, sans-serif; transition: border-color .2s, background .2s; }
.chips label:hover span { border-color: var(--dim); }
.chips input:checked + span { border-color: var(--amber); background: rgba(247, 182, 44, .12); box-shadow: inset 0 0 0 1px var(--amber); }
.chips input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.sw.all { background: conic-gradient(var(--cyan) 0 120deg, var(--magenta) 0 240deg, var(--amber) 0); }
.sw.cyan { background: var(--cyan); }
.sw.magenta { background: var(--magenta); }
.sw.amber { background: var(--amber); }

/* Silent disco. */
.together { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(28px, 4vw, 64px);
            align-items: center; margin-top: 30px; }
.together-text .lede + .lede { margin-top: 16px; }
.home .tiles { margin-top: clamp(40px, 6vw, 70px); }

/* The open invite. */
.invite h2 { max-width: 20ch; }
.who-says { margin: 26px 0 0; max-width: 820px; min-height: 2.7em; color: var(--chalk);
            font: 600 clamp(20px, 2vw, 26px)/1.35 "Archivo", "Helvetica Neue", Arial, sans-serif; }
.who-says a { color: var(--amber); }

/* Ways in: one row each, the picture alternating sides. */
.ways { display: grid; gap: clamp(64px, 9vw, 120px); margin-top: clamp(36px, 5vw, 60px); }
.way { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 26px clamp(28px, 4.5vw, 72px); align-items: center;
       scroll-margin-top: 24px; }
.way:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.way:nth-child(even) .way-text { order: 2; }
.way-kicker { margin: 0 0 10px; font: 500 13px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.way.yours .way-kicker::after { content: " · your way in"; color: var(--amber); }
.way h3 { margin: 0 0 16px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.04; font-weight: 800; font-stretch: 125%; }
.way-text p:not(.way-kicker) { margin: 0 0 12px; color: var(--muted); }
.way-fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.way-fact b { color: var(--chalk); font-size: 26px; font-variant-numeric: tabular-nums; }
.way-pic .note { margin-top: 12px; }
.phone { width: min(300px, 72%); margin-inline: auto; aspect-ratio: 600 / 1300; overflow: hidden; border-radius: 34px;
         border: 9px solid #18213a; background: var(--navy); box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(255, 61, 154, .14); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-pic .note, .sign-pic .note { text-align: center; margin-inline: auto; max-width: 420px; }
.swell-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.swell-steps span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.swell-steps b { color: var(--chalk); }
.sign { width: min(280px, 64%); margin-inline: auto; padding: 14px; border-radius: 16px; border: 1px solid var(--line);
        background: #04060b; box-shadow: 0 0 0 6px #0c1324, 0 24px 80px rgba(20, 194, 221, .16); }
.sign video { display: block; width: 100%; height: auto; aspect-ratio: 64 / 112; image-rendering: pixelated; background: #04060b;
              -webkit-mask-image: radial-gradient(circle at center, #000 0 52%, transparent 60%);
              -webkit-mask-size: calc(100% / 64) calc(100% / 112);
              mask-image: radial-gradient(circle at center, #000 0 52%, transparent 60%); mask-size: calc(100% / 64) calc(100% / 112); }

/* Try the reception: a wave that clears up as the antenna turns square on. */
.tuner { margin: 22px 0 0; padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(11, 21, 48, .78); }
.tuner figcaption { color: var(--muted); }
.tuner figcaption b { color: var(--chalk); }
.tuner-wave { display: block; width: 100%; height: auto; margin: 10px 0 6px; overflow: visible; }
.tuner-wave path { fill: none; stroke: var(--wave, var(--cyan)); stroke-linejoin: round; stroke-linecap: round; transition: stroke .3s; }
.tuner-wave .line { stroke-width: 2.5; }
.tuner-wave .glow { stroke-width: 10; opacity: .2; }
.tuner-label { margin: 0 0 6px; font: 500 13px/1.3 var(--mono); color: var(--muted); }
.tuner-label span { color: var(--chalk); }
.tuner-dial input { display: block; width: 100%; margin: 0; accent-color: var(--amber); cursor: pointer; }
.tuner-dial input:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.tuner-zones { display: grid; grid-template-columns: 17.5fr 47.5fr 50fr 47.5fr 17.5fr; gap: 2px; height: 5px; margin-top: 6px; }
.tuner-zones span { border-radius: 3px; }
.tuner-zones .lost { background: #3a4660; }
.tuner-zones .hiss { background: rgba(247, 182, 44, .55); }
.tuner-zones .clear { background: var(--cyan); }
.tuner-readout { margin: 12px 0 0; font: 600 18px/1.35 "Archivo", "Helvetica Neue", Arial, sans-serif; color: var(--chalk); }
.tuner .note { margin-top: 6px; font-size: 14px; }

/* Coming and ideas. */
.tag.coming { border-color: rgba(247, 182, 44, .55); color: var(--amber); }
.tag.idea { border-color: rgba(169, 184, 207, .6); border-style: dashed; color: var(--muted); }
.home .card { padding: 22px 22px 24px; }
.home .card h3 { margin: 12px 0 8px; font-size: 24px; font-stretch: 112%; }
.card.idea { background: transparent; border-style: dashed; border-top-width: 1px; border-top-color: var(--line); }

/* More to see: the replay and the concept pictures. */
.more { display: grid; gap: clamp(56px, 8vw, 96px); }
.more h3 { margin: 10px 0; font-size: clamp(26px, 3vw, 38px); font-weight: 800; font-stretch: 125%; line-height: 1.06; }
.more .teaser p:not(.kicker) { color: var(--muted); }
.vision-teaser .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
.home footer { margin-bottom: 48px; }

/* Parallax: an element with .px drifts by --depth against the scroll, the
   hero sinks behind the page, the page's beams swing, the rig's lights sway. */
@media (prefers-reduced-motion: no-preference) {
  .beams i::before { animation: sway var(--d, 5s) ease-in-out infinite alternate; }
  @supports (animation-timeline: view()) {
    .home .px { animation: px-drift linear both; animation-timeline: view(); animation-range: cover; }
    .hero-stage video { animation: hero-sink linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .ambient .a1 { animation: swing-1 linear both; animation-timeline: scroll(root); }
    .ambient .a2 { animation: swing-2 linear both; animation-timeline: scroll(root); }
    .ambient .a3 { animation: swing-3 linear both; animation-timeline: scroll(root); }
    .room .rig { animation: rig-drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes sway { from { rotate: calc(var(--r, 0deg) - 12deg); } to { rotate: calc(var(--r, 0deg) + 12deg); } }
@keyframes px-drift { from { translate: 0 calc(var(--depth, .2) * var(--px-range)); } to { translate: 0 calc(var(--depth, .2) * var(--px-range) * -1); } }
@keyframes hero-sink { to { translate: 0 38%; opacity: .3; } }
@keyframes swing-1 { from { rotate: 26deg; } to { rotate: -6deg; } }
@keyframes swing-2 { from { rotate: -10deg; } to { rotate: 12deg; } }
@keyframes swing-3 { from { rotate: -28deg; } to { rotate: 4deg; } }
@keyframes rig-drift { from { translate: 0 -70px; } to { translate: 0 70px; } }

@media (max-width: 900px) {
  .home { --px-range: 40px; }
  .together, .way, .way:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .way:nth-child(even) .way-text { order: 0; }
}
@media (max-width: 700px) {
  .home .topbar { position: static; gap: 10px 12px; padding: 12px var(--gutter) 12px; background: var(--bg); }
  .home .topbar .mark { width: 40px; }
  .wordmark { font-size: 17px; }
  .home .topbar .pages { width: 100%; gap: 6px; }
  .home .topbar .pages a { padding: 4px 9px; font-size: 12px; }
  .hero { height: auto; min-height: 0; overflow: visible; }
  .hero-stage { position: relative; inset: auto; aspect-ratio: 4 / 3; overflow: hidden; }
  .hero-stage video { object-position: 34% 50%; }
  .hero::after { bottom: auto; top: calc(75vw * .7); height: calc(75vw * .3); }
  .hero-note { position: static; padding: 12px var(--gutter) 0; font-size: 13px; }
  .hero .toggle { top: calc(75vw - 44px); bottom: auto; }
  .intro h1 { max-width: none; }
  .swell-steps { grid-template-columns: minmax(0, 1fr); }
  .swell-steps li { display: grid; grid-template-columns: 42% 1fr; gap: 12px; align-items: center; }
  .swell-steps span { margin-top: 0; }
  .vision-teaser .thumbs { grid-template-columns: minmax(0, 1fr); }
  .room { padding-top: 130px; }
}
