/* Neon Drift: 1980s synthwave arcade. Violet night, magenta and cyan neon, a striped sun. Dark only. */
:root {
  --bg: #0b0614;
  --bg-2: #120a22;
  --panel: #170d2b;
  --panel-2: #1e1238;
  --line: #34205a;
  --ink: #f6eefe;
  --body: #cbbfe0;
  --muted: #9a8cb8;
  --pink: #ff3ea5;
  --cyan: #3ff0ff;
  --sun: #ffd36b;
  --sun-2: #ff7ab8;
  --display: "Avenir Next Condensed", "Futura", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --text: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --exploration-footer-bg: #0b0614;
  --exploration-footer-ink: #cbbfe0;
  --exploration-footer-border: #34205a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--body); font: 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); }
b { color: var(--ink); font-weight: 600; }
code { font: 0.88em var(--mono); color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--bg); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button { font: inherit; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; min-height: 64px; padding: 10px clamp(16px, 4vw, 48px); background: rgba(11, 6, 20, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 700 14px/1 var(--display); letter-spacing: .18em; white-space: nowrap; min-height: 44px; }
.wm-sub { color: var(--muted); }
.topbar-name { font: italic 800 15px/1 var(--display); letter-spacing: .24em; background: linear-gradient(90deg, var(--pink), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tb { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; font: 600 15px/1 var(--text); border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; background: rgba(23, 13, 43, .7); }
.tb svg { width: 17px; height: 17px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tb:hover { border-color: var(--cyan); }
.tb.create-yours { background: var(--pink); border-color: var(--pink); color: #1a0010; }
.tb.create-yours:hover { background: #ff72bf; }
.short { display: none; }
@media (max-width: 860px) { .topbar-name, .wm-sub { display: none; } }
@media (max-width: 640px) { .topbar { gap: 8px; padding: 8px 10px; min-height: 58px; } .wm-name { display: none; } .topbar nav { gap: 4px; } .tb { padding: 0 10px; font-size: 14px; gap: 5px; } .long { display: none; } .short { display: inline; } }
@media (max-width: 380px) { .tb { padding: 0 8px; font-size: 13px; } .tb svg { width: 15px; height: 15px; } .tb.create-yours svg { display: none; } }

/* hero: the film itself, full width */
.hero { position: relative; min-height: min(calc(100vh - 64px), 980px); display: grid; align-items: end; overflow: hidden; isolation: isolate; background: #000; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; aspect-ratio: auto; background: #000; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(11,6,20,.9) 0%, rgba(11,6,20,.55) 38%, rgba(11,6,20,0) 66%), linear-gradient(0deg, var(--bg) 0%, rgba(11,6,20,.35) 22%, rgba(11,6,20,0) 42%); }
.hero-copy { max-width: 640px; padding: 96px clamp(16px, 5vw, 64px) 120px; }
.eyebrow { margin: 0 0 14px; font: 600 12px/1.4 var(--mono); letter-spacing: .2em; color: var(--cyan); }
h1 { margin: 0; font: italic 900 clamp(64px, 11vw, 150px)/.86 var(--display); letter-spacing: .02em; background: linear-gradient(180deg, #ffffff 0%, #ffe3f4 44%, var(--pink) 50%, #b04dff 72%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(255, 62, 165, .45)); }
h1 span { display: inline-block; }
.lede { margin: 22px 0 10px; font-size: clamp(19px, 2.1vw, 23px); line-height: 1.45; color: var(--ink); }
.sub { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 8px; border-radius: 999px; font: 600 16px/1 var(--text); text-decoration: none; border: 1px solid var(--line); cursor: pointer; }
.button small { font: 500 13px/1 var(--mono); opacity: .75; }
.b-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.18); }
.b-icon svg { width: 16px; height: 16px; fill: currentColor; }
.button.primary { background: var(--pink); color: #1a0010; border-color: var(--pink); }
.button.primary:hover { background: #ff72bf; }
.button.ghost { color: var(--ink); background: rgba(18, 10, 34, .72); }
.button.ghost .b-icon { background: var(--cyan); color: #04151a; }
.button.ghost:hover { border-color: var(--cyan); }
.make .button.primary { padding: 0 22px; }

.hero-controls { position: absolute; right: clamp(16px, 4vw, 48px); bottom: 34px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; max-width: calc(100% - 32px); }
.ctl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(11, 6, 20, .72); color: var(--ink); cursor: pointer; backdrop-filter: blur(6px); }
.ctl svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctl:hover { border-color: var(--cyan); }
.ctl .i-play, .ctl[aria-pressed="false"] .i-pause { display: none; }
.ctl[aria-pressed="false"] .i-play { display: inline; }
.ctl[data-hero="sound"] .i-on, .ctl[data-hero="sound"][aria-pressed="true"] .i-off,
.ctl[data-p="sound"] .i-on, .ctl[data-p="sound"][aria-pressed="true"] .i-off { display: none; }
.ctl[data-hero="sound"][aria-pressed="true"] .i-on, .ctl[data-p="sound"][aria-pressed="true"] .i-on { display: inline; }
.ctl[data-hero="sound"][aria-pressed="true"] { border-color: var(--pink); }
.ctl-label { font: 600 13px/1 var(--mono); letter-spacing: .06em; }
.shots { display: inline-flex; gap: 6px; }
.shot { height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(11, 6, 20, .72); color: var(--ink); font: 600 14px/1 var(--text); cursor: pointer; white-space: nowrap; }
.shot b { font: 700 12px/1 var(--mono); color: var(--cyan); margin-right: 4px; }
.shot small { font: 12px/1 var(--mono); color: var(--muted); margin-left: 4px; }
.shot[aria-current="true"] { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.hero-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.08); }
.hero-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--cyan)); }
@media (max-width: 760px) {
  .hero { min-height: 0; display: block; background: var(--bg); }
  .hero-media { position: relative; z-index: 0; aspect-ratio: 16 / 9; }
  .hero::after { display: none; }
  .hero-copy { padding: 22px 16px 8px; }
  .hero-controls { position: static; justify-content: flex-start; max-width: none; padding: 12px 16px 20px; }
  .hero-progress { position: absolute; top: calc(100vw * 9 / 16 - 4px); bottom: auto; }
}

/* downloads, plain background */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1280px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px) 0; }
.dl { display: grid; align-content: start; gap: 6px; padding: 20px 22px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--body); text-decoration: none; font-size: 15px; line-height: 1.5; }
.dl:hover { border-color: var(--cyan); }
.dl-kind { font: 600 11px/1.3 var(--mono); letter-spacing: .16em; color: var(--pink); }
.dl b { font-size: 18px; }
.dl em { font-style: normal; font-weight: 600; color: var(--cyan); margin-top: 4px; }
@media (max-width: 860px) { .downloads { grid-template-columns: 1fr; } }

/* sections */
.section { max-width: 1280px; margin: 0 auto; padding: clamp(64px, 9vw, 112px) clamp(16px, 4vw, 48px) 0; }
.section-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px 56px; align-items: end; margin-bottom: 34px; }
h2 { margin: 0; font: italic 800 clamp(34px, 5vw, 60px)/1.02 var(--display); letter-spacing: .01em; color: var(--ink); }
h2 em { font-style: italic; color: var(--pink); }
.section-heading > p { margin: 0; }
h3 { margin: 0 0 6px; font: italic 800 23px/1.2 var(--display); letter-spacing: .02em; color: var(--ink); }
.micro { font-size: 14px; color: var(--muted); }
.tag { display: block; margin-bottom: 6px; font: 600 11px/1.3 var(--mono); letter-spacing: .16em; color: var(--pink); }
.tag.good { color: var(--cyan); }
.tag.bad { color: var(--sun); }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: 15px; color: var(--body); }
@media (max-width: 820px) { .section-heading { grid-template-columns: 1fr; } }

video { width: 100%; border-radius: 14px; background: #000; border: 1px solid var(--line); aspect-ratio: 16 / 9; }

.prompt { margin: 0; padding: clamp(22px, 4vw, 40px); background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--pink); border-radius: 14px; }
.prompt p { margin: 0 0 14px; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: var(--ink); }
.prompt cite { font: 12px/1.4 var(--mono); font-style: normal; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 0; }
.numbers div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.numbers dt { font: italic 800 clamp(28px, 3.4vw, 42px)/1 var(--display); color: var(--sun); }
.numbers dd { margin: 8px 0 0; font-size: 14px; }
@media (max-width: 720px) { .numbers { grid-template-columns: 1fr 1fr; } }

/* the car */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { display: grid; grid-template-rows: auto 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: relative; }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 34%; z-index: 2; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); color: #1a0010; font: 700 14px/1 var(--text); }
.step figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.step:first-child figure img { background: #d8d8dc; }
.step-copy { padding: 16px 18px 20px; }
.step-copy p { margin: 0; font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -15px; margin-left: -13px; content: "↓"; } }
.livery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px 32px; align-items: center; margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.livery-art { background: repeating-conic-gradient(#221537 0% 25%, #1a102c 0% 50%) 50% / 22px 22px; border-radius: 10px; padding: 14px; }
.livery p { margin: 0; font-size: 15px; }
.aside { margin: 16px 0 0; padding: 18px 20px; border-left: 3px solid var(--cyan); background: var(--bg-2); border-radius: 0 12px 12px 0; font-size: 15px; }
@media (max-width: 760px) { .livery { grid-template-columns: 1fr; } }

/* the set */
.sky img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.mats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.mats img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.mats .rejected img { filter: saturate(.6); outline: 2px dashed var(--sun); outline-offset: -2px; }
.mats figcaption { font-size: 14px; }
@media (max-width: 720px) { .mats { grid-template-columns: 1fr 1fr; } .mats .rejected { grid-column: 1 / -1; display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; } .mats .rejected figcaption { margin: 0; } }

/* brands */
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.boards img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 10px 40px rgba(255, 62, 165, .12); }
.boards figcaption { font: 600 12px/1.3 var(--mono); letter-spacing: .14em; color: var(--muted); }
.title-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; align-items: center; margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.title-sign img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; }
.title-sign p { margin: 0; font-size: 15px; }
@media (max-width: 720px) { .boards, .title-sign { grid-template-columns: 1fr; } }

/* clay to final */
.comparison { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 16 / 9; touch-action: none; user-select: none; cursor: ew-resize; }
.comparison > img, .comparison .before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparison .before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.compare-label { position: absolute; top: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(11, 6, 20, .8); font: 600 11px/1 var(--mono); letter-spacing: .16em; color: var(--ink); pointer-events: none; }
.compare-label.left { left: 14px; } .compare-label.right { right: 14px; }
#compare-line { position: absolute; top: 0; bottom: 0; left: var(--reveal); width: 44px; margin-left: -22px; background: none; border: 0; cursor: ew-resize; padding: 0; }
#compare-line::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
#compare-line span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--cyan); display: grid; place-items: center; }
#compare-line svg { width: 26px; fill: none; stroke: #04151a; stroke-width: 2.4; }

/* review */
.fix { display: grid; gap: 14px; margin-bottom: 30px; }
.fix-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fix-pair img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.fix-pair figcaption { font-size: 14px; }
.fix > p { margin: 0; max-width: 900px; font-size: 16px; }
@media (max-width: 720px) { .fix-pair { grid-template-columns: 1fr; } }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 16px; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.scores-head { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px 32px; align-items: end; }
.scores-head p { margin: 0; font-size: 15px; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-column: 1 / -1; }
.board li { display: grid; grid-template-columns: 120px 64px 190px 1fr; align-items: center; gap: 16px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); min-height: 84px; }
.board li:not(:has(img))::before { content: ""; width: 120px; height: 1px; }
.board img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.rank { font: italic 900 38px/1 var(--display); color: var(--sun); text-shadow: 0 0 18px rgba(255, 211, 107, .35); }
.what { font-weight: 600; color: var(--ink); }
.note { font-size: 15px; }
.next { grid-column: 1 / -1; }
.next ul { margin: 6px 0 0; padding-left: 20px; }
.next li { margin: 4px 0; }
@media (max-width: 820px) { .scores-head { grid-template-columns: 1fr; } .board li { grid-template-columns: 96px 1fr; grid-template-areas: "img rank" "img what" "note note"; gap: 4px 14px; } .board img, .board li:not(:has(img))::before { grid-area: img; width: 96px; } .rank { grid-area: rank; font-size: 30px; } .what { grid-area: what; } .note { grid-area: note; padding: 4px 4px 2px; } }

/* sound */
.timeline { margin: 0 0 18px; padding: 16px 18px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.tl-track { position: relative; height: 104px; border-bottom: 2px solid var(--line); background: linear-gradient(90deg, rgba(255,62,165,.10), rgba(63,240,255,.10)); border-radius: 8px 8px 0 0; }
.tl-cut { position: absolute; top: 0; bottom: -2px; width: 2px; background: var(--sun); }
.tl-cut i { position: absolute; top: -2px; left: 6px; font: 600 10px/1 var(--mono); letter-spacing: .1em; color: var(--sun); font-style: normal; white-space: nowrap; }
.tl-cue { position: absolute; top: 18px; transform: translateX(-2px); padding-left: 6px; border-left: 2px solid var(--pink); font: 600 11px/1.1 var(--mono); color: var(--ink); white-space: nowrap; height: 22px; }
.tl-cue.low { top: 46px; border-color: var(--cyan); }
.tl-cue.lower { top: 74px; border-color: var(--sun); }
.tl-scale { display: flex; justify-content: space-between; margin-top: 6px; font: 11px/1 var(--mono); color: var(--muted); }
@media (max-width: 620px) { .tl-cue { font-size: 9px; } }
.sounds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sound { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 14px; min-height: 72px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--muted); font: 13px/1.3 var(--text); }
.sound.wide { grid-column: span 2; }
.sound i { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; background: var(--pink); position: relative; }
.sound i::after { content: ""; position: absolute; left: 15px; top: 12px; border-style: solid; border-width: 8px 0 8px 12px; border-color: transparent transparent transparent #1a0010; }
.sound[aria-pressed="true"] { border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
.sound[aria-pressed="true"] i { background: var(--cyan); }
.sound[aria-pressed="true"] i::after { left: 13px; top: 12px; width: 14px; height: 16px; border: 0; border-left: 4px solid #04151a; border-right: 4px solid #04151a; }
.sound b { font-size: 15px; }
.sound:hover { border-color: var(--cyan); }
@media (max-width: 900px) { .sounds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .sounds { grid-template-columns: 1fr; } .sound.wide { grid-column: auto; } }

/* players: custom bar with play/pause, seek, sound and full screen */
.player { position: relative; max-width: 1100px; }
.player video { display: block; }
.pbar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.pbar .ctl { background: var(--panel); border-color: var(--line); }
.pbar input[type="range"] { flex: 1; min-width: 60px; accent-color: var(--pink); height: 44px; }
.ptime { font: 12px/1 var(--mono); color: var(--muted); min-width: 84px; text-align: right; }
.player .big-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -60px 0 0 -38px; border-radius: 50%; border: 0; background: var(--pink); color: #1a0010; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 40px rgba(255, 62, 165, .5); }
.player .big-play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.player.playing .big-play { display: none; }

/* make yours */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { display: grid; align-content: start; gap: 8px; padding: 24px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--body); }
.card span { font: 600 11px/1.3 var(--mono); letter-spacing: .16em; color: var(--pink); }
.card h3 { margin: 0; word-break: break-word; }
.card p { margin: 0; font-size: 15px; }
.card b { color: var(--cyan); margin-top: 6px; }
.card:hover { border-color: var(--cyan); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 32px 0 0; padding: 34px 28px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #1b0b33 0%, #3a0f4a 62%, #120a22 62.5%), var(--bg-2); isolation: isolate; }
.cta::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 120px; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255,62,165,.55) 0 2px, transparent 2px 60px), repeating-linear-gradient(0deg, rgba(255,62,165,.55) 0 2px, transparent 2px 22px); transform: perspective(240px) rotateX(58deg); transform-origin: top; }
.cta-sun { position: absolute; right: 26%; top: 50%; z-index: -1; width: 180px; height: 180px; margin-top: -100px; border-radius: 50%; background: linear-gradient(180deg, var(--sun) 0%, var(--sun-2) 70%); -webkit-mask: linear-gradient(180deg, #000 0 52%, transparent 52% 58%, #000 58% 66%, transparent 66% 71%, #000 71% 78%, transparent 78% 82%, #000 82% 88%, transparent 88%); mask: linear-gradient(180deg, #000 0 52%, transparent 52% 58%, #000 58% 66%, transparent 66% 71%, #000 71% 78%, transparent 78% 82%, #000 82% 88%, transparent 88%); opacity: .9; }
.cta p { margin: 0; font: italic 800 clamp(22px, 2.6vw, 30px)/1.2 var(--display); color: var(--ink); }
@media (max-width: 620px) { .cta-sun { width: 120px; height: 120px; margin-top: -80px; right: -20px; opacity: .55; } }

/* modal */
.modal { width: min(1320px, 95vw); max-height: 95vh; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); color: var(--body); }
.modal::backdrop { background: rgba(4, 0, 10, .86); }
.modal-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 18px 18px; }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -16px -18px 0; padding: 16px 18px 8px; background: var(--bg-2); }
.modal-head .eyebrow { margin: 0; }
.modal-close { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 600 14px/1 var(--text); cursor: pointer; }
.modal .player { max-width: none; }
.modal video { max-height: 72vh; }
.modal .micro { margin: 0; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.modal-foot .micro { flex: 1 1 420px; }
.modal-links { display: flex; flex-wrap: wrap; gap: 10px; }
.modal-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; }
.modal-links a:hover { border-color: var(--cyan); }

.site-foot { margin-top: clamp(64px, 10vw, 120px); padding: 24px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font: 12px/1.4 var(--mono); letter-spacing: .12em; color: var(--muted); }
.modal-inner, .modal-foot .micro, .pbar input[type="range"] { min-width: 0; }
.modal-foot .micro { flex: 1 1 260px; }
@media (max-width: 520px) { .ptime { display: none; } .pbar { gap: 6px; } .modal-inner { padding: 12px; } .modal { width: 96vw; } }
#timelapse .subhead { display: grid; gap: 4px; max-width: 1100px; margin: 40px 0 14px; }
#timelapse .subhead p { margin: 0; }
/* short landscape: keep the whole player and its controls on screen under the sticky close button */
@media (max-height: 520px) { .modal { max-height: 98vh; } .modal video { max-height: calc(98vh - 150px); } }
@media (max-width: 520px) { .modal-head { margin: -12px -12px 0; padding: 12px 12px 8px; } }
/* without JavaScript the #making links show the video inline, with native controls */
html:not(.nd-js) .modal:target { display: block; position: static; width: auto; max-width: 1320px; max-height: none; margin: 40px auto; }
html:not(.nd-js) .modal-close { display: none; }
