/* Navy and cyan come from the game's own logo. One committed dark theme. */
:root {
  --ink: #0b111c;
  --deep: #101a2a;
  --line: #26364b;
  --text: #f1f6f9;
  --soft: #afbfcd;
  --cyan: #2ff3ff;
  --gutter: clamp(20px, 5vw, 80px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--ink); color: var(--text); font: 400 18px/1.55 Archivo, "Segoe UI", sans-serif; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.defs { position: absolute; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 9; padding: 8px 14px; background: var(--cyan); color: var(--ink); }
.wrap { padding: 0 var(--gutter); }
h1, h2, .brand span { font-style: italic; font-weight: 800; font-stretch: 112%; }
h1, h2 { line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 104px); }
h2 { font-size: clamp(34px, 4.3vw, 62px); }
p { max-width: 54ch; text-wrap: pretty; }

.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 32px; height: 64px; padding: 0 var(--gutter); font-size: 16px; background: linear-gradient(rgb(11 17 28 / .94), rgb(11 17 28 / .7) 60%, transparent); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 21px; margin-right: auto; }
.brand svg { width: 36px; fill: var(--cyan); }
nav { display: flex; gap: 32px; }
nav a, .lang { color: var(--soft); padding: 10px 0; }
nav a:hover, .lang:hover { color: var(--text); }

.bar { position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--cyan); transform: scaleX(var(--t, 0)); transform-origin: 0 0; }
.btn { display: inline-block; margin-top: 32px; padding: 16px 30px; background: var(--cyan); color: var(--ink); font-weight: 600; }
.btn:hover { background: #fff; }
.copy > .status { color: var(--cyan); font-weight: 600; font-size: 18px; }

/* Every chapter is one screen. Without scripts or with reduced motion they simply follow each other. */
.film { position: relative; overflow-x: clip; }
.pin { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: var(--deep); }
.copy { position: absolute; z-index: 2; left: var(--gutter); top: clamp(96px, 15svh, 150px); max-width: min(46vw, 620px); }
.copy p { margin-top: 20px; color: var(--text); max-width: 46ch; }
h2 { font-size: clamp(34px, min(5.2vw, 9svh), 84px); }
/* Photos */
.photo img, .photo .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .copy { top: auto; bottom: clamp(64px, 11svh, 120px); }
.photo .pin::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(75deg, rgb(11 17 28 / .94) 6%, rgb(11 17 28 / .68) 36%, transparent 64%); pointer-events: none; }
.hero img { object-position: 66% 40%; }
.hero .copy { max-width: min(48vw, 720px); }
.hero-copy > p { font-size: 20px; max-width: 40ch; }
.cockpit img { object-position: 60% 100%; }
.cockpit .copy { bottom: auto; top: 16svh; }
.finish .copy { left: auto; right: var(--gutter); max-width: min(38vw, 520px); }
.finish .pin::before { background: linear-gradient(-75deg, rgb(11 17 28 / .94) 6%, rgb(11 17 28 / .72) 34%, transparent 64%); }
.media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.media button, .stage button { position: absolute; z-index: 4; right: var(--gutter); bottom: 28px; padding: 8px 14px; border: 0; background: rgb(11 17 28 / .82); color: var(--text); font: 600 15px Archivo, sans-serif; cursor: pointer; }
.media button:hover, .stage button:hover { color: var(--cyan); }

/* Animated scenes fill the screen */
.stage { position: absolute; inset: 0; }
.stage canvas { display: block; width: 100%; height: 100%; }
#air .copy, #hear .copy { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; left: var(--gutter); right: var(--gutter); max-width: none; }
#air .copy p, #hear .copy p { margin: 0; justify-self: end; }
#air canvas { -webkit-mask-image: linear-gradient(rgb(0 0 0 / .16) 27%, #000 37% 78%, rgb(0 0 0 / .16) 86%); mask-image: linear-gradient(rgb(0 0 0 / .16) 27%, #000 37% 78%, rgb(0 0 0 / .16) 86%); }
#pack .copy { left: auto; right: var(--gutter); max-width: min(52vw, 760px); }

/* Climb: the line is drawn by scrolling */
.climb .pin { background: linear-gradient(#0f2236, #1b5468); }
.area { fill: #0c1a2a; }
.line { fill: none; stroke: var(--cyan); stroke-width: 5; }


/* Friends */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 10px 0 0; border-top: 3px solid var(--line); color: var(--soft); transition: color .3s, border-color .3s; }
.steps li.on { color: var(--text); border-color: var(--cyan); }
.steps b { font-weight: 600; display: block; }
.steps span { display: block; font-size: 16px; line-height: 1.4; }

/* Your ride as a world */
#worlds .pin { background: var(--ink); }
#worlds .copy { top: 50%; translate: 0 -50%; max-width: min(42vw, 600px); }
.dev { display: inline-block; padding: 6px 12px; background: var(--cyan); color: var(--ink) !important; font-size: 15px; font-weight: 600; margin: 0 0 20px !important; }
.route { position: absolute; right: 6vw; top: 8%; height: 92%; width: auto; max-width: 46vw; transform: rotate(14deg); }
.route path { fill: none; stroke-linejoin: round; }
.route .bed { stroke: #1d2e44; stroke-width: 66; }
.route .run { stroke: var(--cyan); stroke-width: 24; stroke-linecap: round; }

.more .pin { background: #123449; }
.more h2 { position: absolute; left: var(--gutter); top: 92px; }

.setup { position: relative; z-index: 40; padding: 120px 0; background: var(--ink); }
.setup .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; }
dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
dt { font-weight: 600; }
dd { color: var(--soft); }
footer { margin-top: -2px; position: relative; z-index: 40; background: var(--ink); padding: 40px 0 48px; color: var(--soft); font-size: 15px; }
footer p { max-width: none; }
footer a { text-decoration: underline; }
.lost { min-height: 100svh; display: grid; place-content: center; gap: 20px; padding: 24px; }

/* Film mode: chapters stay put and the next one cuts across them.
   --r = scroll spent on a cut, --k = scroll spent on a chapter. */
.filming { --r: 80svh; --k: 70svh; scroll-behavior: auto; scroll-padding-top: 0; }
.filming .shot { height: calc(var(--k) + var(--r) * 2 + 100svh); margin-top: calc(-100svh - var(--r)); scroll-margin-top: calc(var(--r) * -1); pointer-events: none; }
.filming .shot:first-child { height: calc(var(--k) + var(--r) + 100svh); margin-top: 0; scroll-margin-top: 0; }
.filming .shot:last-child { height: calc(var(--k) + var(--r) + 100svh); }
.filming .pin { position: fixed; inset: 0; height: auto; min-height: 0; clip-path: polygon(calc(var(--a) + 16%) 0, 101% 0, 101% 100%, var(--a) 100%); --a: calc((1 - var(--p, 0)) * 118% - var(--p, 0) * 17%); }
.filming .shot:first-child .pin, .filming .in .pin { clip-path: none; }
.filming .shot.off .pin { clip-path: inset(0 0 100% 0); } /* still reachable with Tab */
.filming .live { pointer-events: auto; }
/* The cutting edge */
.filming .pin::after { content: ""; position: absolute; inset: 0; z-index: 6; background: var(--cyan); pointer-events: none; clip-path: polygon(calc(var(--a) + 16%) 0, calc(var(--a) + 16.5%) 0, calc(var(--a) + .5%) 100%, var(--a) 100%); }
.filming .in .pin::after, .filming .shot:first-child .pin::after { display: none; }
/* What leaves drifts and goes dark, what arrives settles in */
.filming .pin > * { --out: calc(var(--q, 0) * -9vw); }
.filming .copy, .filming .steps, .filming .listen, .filming .more h2 { transform: translateX(calc((1 - var(--e, 1)) * 14vw + var(--q, 0) * -14vw)); opacity: calc(var(--e, 1) * (1 - var(--q, 0) * 1.3)); }
/* Videos neither zoom nor get their own hardware plane: resizing or uncovering that plane stalls scrolling. */
.filming .media { opacity: .999; will-change: opacity; }
.filming .photo img { transform: scale(calc(1.16 - var(--z, 0) * .16)) translateX(calc(var(--q, 0) * -4%)); }
.filming .line { stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - var(--z, 1) * 1000); }
.filming .route .run { stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - var(--z, 1) * 1000); }
.filming .route { transform: rotate(calc(2deg + var(--z, 1) * 12deg)) scale(calc(1.25 - var(--z, 1) * .25)); }

@media (max-width: 820px) {
  body { font-size: 16px; line-height: 1.45; }
  nav { display: none; }
  h2, #build h2 { font-size: clamp(32px, 9.4vw, 46px); }
  h1 { font-size: clamp(42px, 12vw, 60px); }
  .copy, #pack .copy, #build .copy, .hero .copy, .finish .copy, #worlds .copy, .more h2 { left: var(--gutter); right: var(--gutter); max-width: none; }
  .copy, .more h2 { top: 84px; }
  .copy p { margin-top: 14px; }
  #air .copy, #hear .copy { display: block; top: 84px; }
  #air .copy p, #hear .copy p  { margin-top: 14px; max-width: none; }
  .photo .copy { top: auto; bottom: 72px; }
  .photo .pin::before, .finish .pin::before { background: linear-gradient(0deg, rgb(11 17 28 / .97) 18%, rgb(11 17 28 / .8) 48%, transparent 78%); }
  .cockpit .copy { top: auto; }
  .media button, .stage button { bottom: 14px; padding: 8px 10px; background: none; }
  #air .stage, #hear .stage { inset: 286px 0 136px; }
  #air .stage button, #hear .stage button { bottom: -122px; }
  #air canvas { -webkit-mask-image: none; mask-image: none; }
  #worlds .copy { top: auto; bottom: 48px; translate: none; }
  .route { right: 18vw; top: 60px; height: 42%; max-width: none; }
  #fans .copy p { max-width: 36ch; }
  .setup { padding: 72px 0; }
  .setup .wrap { grid-template-columns: minmax(0, 1fr); }
  dl > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Phones: text, scene and figures share the screen without fixed offsets */
@media (max-width: 820px) {
  .photo img, .photo .media { inset: 0 0 auto; height: 66%; }
  .hero img { object-position: 74% 40%; }
  .photo .pin::before, .finish .pin::before { background: linear-gradient(0deg, var(--deep) 34%, rgb(16 26 42 / .75) 50%, transparent 72%); }
  #air .pin, #pack .pin, #hear .pin, #train .pin, #friends .pin { display: flex; flex-direction: column; padding: 84px var(--gutter) 52px; }
  #air .copy, #pack .copy, #hear .copy, #build .copy { position: static; }
  #air .stage, #pack .stage, #hear .stage, #build .stage { position: static; flex: 1; min-height: 0; contain: size; margin: 16px 0; }
  #air .stage, #pack .stage, #hear .stage { margin-inline: calc(var(--gutter) * -1); }
  #air .stage button, #pack .stage button, #hear .stage button, #build .stage button { right: var(--gutter); bottom: 8px; }
  /* One step at a time; all of them when nothing moves */
}
html:not(.filming) #friends .pin { height: auto; min-height: 100svh; }
@media (max-width: 820px) { html:not(.filming) .pin { min-height: 720px; } }
/* Sound is opt-in, so the button has to be easy to find */
.listen { position: absolute; z-index: 4; left: var(--gutter); bottom: 32px; display: flex; align-items: center; gap: 14px; padding: 16px 28px 16px 22px; border: 0; background: var(--cyan); color: var(--ink); font: 600 18px Archivo, sans-serif; cursor: pointer; }
.listen[hidden] { display: none; }
.listen:hover { background: #fff; }
.listen svg { width: 26px; fill: currentColor; }
.listen .wave { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.listen:not(.on) .wave { opacity: .45; }

#fans .copy { max-width: min(80vw, 1000px); }
#fans .steps { position: absolute; z-index: 2; left: var(--gutter); right: calc(var(--gutter) + 130px); bottom: 28px; grid-template-columns: repeat(4, 1fr); gap: 24px; }
#fans .steps li { font-weight: 600; border-color: rgb(241 246 249 / .25); }
#fans .steps li.on { border-color: var(--cyan); }

/* Small things: a wall that fills the screen */
.more .pin { background: var(--ink); }
.wall { position: absolute; inset: clamp(170px, 24svh, 230px) 0 0; display: grid; grid-template: repeat(2, minmax(0, 1fr)) / repeat(4, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 0; list-style: none; background: var(--ink); }
.wall li { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; padding: 20px clamp(18px, 2vw, 36px) clamp(18px, 3svh, 32px); background: #11273a; }
.wall li:nth-child(8n+2), .wall li:nth-child(8n+4), .wall li:nth-child(8n+5), .wall li:nth-child(8n+7) { background: #153349; }
.wall h3 { font-size: clamp(18px, 1.6vw, 25px); font-weight: 600; line-height: 1.2; }
.wall p { margin-top: 6px; color: var(--soft); font-size: 16px; line-height: 1.35; }
.ic { flex: 1; min-height: 0; width: 100%; max-height: 170px; margin: auto 0 16px; overflow: visible; fill: none; stroke: var(--cyan); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ic * { transform-box: fill-box; transform-origin: center; }
.a1, .a2 { animation: press 1.8s infinite; } .a2 { animation-delay: .9s; }
.spin { animation: turn 7s linear infinite; } .back { animation: turn 3s linear infinite; }
.chase { animation: chase 3.4s ease-in-out infinite; } .ic .ghost { stroke: var(--soft); opacity: .5; stroke-dasharray: 3 4; }
.ic .fillarc { stroke: #f3c238; stroke-width: 5; stroke-dasharray: 100; animation: arc 4s ease-in-out infinite; }
.ic .needle { transform-box: view-box; transform-origin: 60px 64px; animation: needle 4s ease-in-out infinite; }
.ic.cam .a1 { animation: snap 2.6s infinite; }
.sun, .moon { animation: sun 6s ease-in-out infinite; } .moon { animation-name: moon; } .sun { stroke: #f3c238; }
.dash { animation: dash 1s linear infinite; } .drift { animation: drift 4s ease-in-out infinite; stroke: #ff8a5c; stroke-width: 4; }
.drop { animation: drop 3.4s ease-in-out infinite; stroke: var(--text); }
.filming .shot:not(.live) .ic * { animation-play-state: paused; }
@keyframes press { 0%, 70%, 100% { fill: transparent; } 80%, 92% { fill: var(--cyan); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes chase { 50% { transform: translateX(10px); } }
@keyframes arc { 0%, 100% { stroke-dashoffset: 100; } 55%, 80% { stroke-dashoffset: 28; } }
@keyframes needle { 0%, 100% { transform: rotate(-86deg); } 55%, 80% { transform: rotate(40deg); } }
@keyframes snap { 0%, 60%, 100% { transform: scale(1); fill: transparent; } 70% { transform: scale(.3); fill: #fff; } }
@keyframes sun { 0%, 35%, 100% { transform: none; opacity: 1; } 50%, 85% { transform: translateY(22px); opacity: 0; } }
@keyframes moon { 0%, 35%, 100% { transform: translateY(22px); opacity: 0; } 50%, 85% { transform: none; opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: -16; } }
@keyframes drift { 0%, 100% { transform: translateX(-6px); } 50% { transform: translateX(24px); } }
@keyframes drop { 0%, 100% { transform: translateY(-6px); } 50%, 75% { transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .ic * { animation: none !important; } .moon { opacity: 0; } .ic .fillarc { stroke-dashoffset: 28; } .ic .needle { transform: rotate(40deg); } }
@media (max-width: 820px) {
  .listen { left: var(--gutter); bottom: 14px; padding: 12px 20px 12px 16px; font-size: 16px; }
  #hear .pin { padding-bottom: 78px; }
  #fans .copy { max-width: none; }
  #fans .steps { right: var(--gutter); bottom: 54px; gap: 10px; }
  #fans .steps li { font-size: 14px; line-height: 1.2; }
  .more h2 { top: 80px; right: var(--gutter); }
  .wall { inset: 176px 0 0; grid-template: repeat(4, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); }
  .wall li { padding: 10px 14px 12px; }
  .wall li:nth-child(n) { background: #11273a; }
  .wall li:nth-child(4n+2), .wall li:nth-child(4n+3) { background: #153349; }
  .wall h3 { font-size: 15px; }
  .wall p { font-size: 13px; line-height: 1.25; margin-top: 3px; }
  .ic { margin-bottom: 8px; }
}
@media (max-width: 820px) and (max-height: 780px), (max-width: 350px) { .wall p { display: none; } }
@media (min-width: 821px) and (max-height: 700px) { .wall p { font-size: 14px; } .wall { top: 150px; } .ic { margin-bottom: 8px; } }

/* Training: the face has the screen to itself */
#build .copy { max-width: min(36vw, 560px); }
@media (max-width: 820px) { #build .copy { max-width: none; } #build .stage { margin: 0 calc(var(--gutter) * -1); } }

/* The filmed hero keeps the rider in view */
.hero .media video { object-position: 70% 50%; }
@media (max-width: 820px) { .hero .media video { object-position: 82% 50%; } }

/* Framing of the photos: text and shade stay off the rider */
.photo.bare .pin::before { background: none; }
.photo.bare img { object-position: 50% 60%; }
.finish .copy { left: var(--gutter); right: auto; max-width: min(34vw, 480px); }
.finish .pin::before { background: linear-gradient(75deg, rgb(11 17 28 / .94) 8%, rgb(11 17 28 / .74) 28%, transparent 48%); }
.cockpit .pin::before { background: radial-gradient(90% 100% at 0 0, rgb(11 17 28 / .95) 20%, rgb(11 17 28 / .7) 45%, transparent 75%); }
@media (max-width: 820px) {
  .finish .copy { right: var(--gutter); max-width: none; }
  .photo.bare img { height: 100%; object-position: 58% 50%; }
  .finish img { object-position: 62% 50%; }
  .cockpit img { object-position: 49% 100%; }
  .cockpit .pin::before { background: linear-gradient(0deg, var(--deep) 34%, transparent 40%); }
  .finish .pin::before { background: linear-gradient(0deg, var(--deep) 34%, rgb(16 26 42 / .5) 42%, transparent 56%); }
}
#ride .copy { left: auto; right: var(--gutter); max-width: min(30vw, 480px); }
#ride .pin::before { background: linear-gradient(-75deg, rgb(11 17 28 / .94) 8%, rgb(11 17 28 / .74) 28%, transparent 48%); }
@media (max-width: 820px) {
  #ride .copy { left: var(--gutter); max-width: none; }
  #ride img { object-position: 43% 50%; }
  #ride .pin::before { background: linear-gradient(0deg, var(--deep) 34%, rgb(16 26 42 / .5) 42%, transparent 56%); }
}
@media (min-width: 821px) { #ride img { left: -18%; width: 118%; max-width: none; object-position: 50% 68%; } }

/* The climb: shift it yourself */
#gears .stage { z-index: 0; }
.shifter { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(28px, 7svh, 72px); display: flex; align-items: center; gap: 18px; }
.shifter button { width: 68px; height: 68px; border: 0; background: var(--cyan); color: var(--ink); font: 600 34px/1 Archivo, sans-serif; cursor: pointer; touch-action: manipulation; }
.shifter button:hover { background: #fff; }
.shifter button:active { translate: 0 3px; }
.shifter p { min-width: 84px; text-align: center; line-height: 1.1; }
.shifter b { display: block; font-size: 46px; font-weight: 800; font-variant-numeric: tabular-nums; }
.shifter span { color: var(--soft); font-size: 16px; font-variant-numeric: tabular-nums; }
.shifter .feel { min-width: 150px; text-align: left; margin-left: 14px; }
.shifter .feel b { color: var(--hue, var(--cyan)); font-size: 34px; }
@media (max-width: 820px) {
  .shifter { left: 0; right: 0; justify-content: center; bottom: 52px; gap: 10px; }
  .shifter button { width: 56px; height: 56px; }
  .shifter p { min-width: 62px; }
  .shifter b { font-size: 34px; }
  .shifter .feel { min-width: 96px; margin-left: 4px; }
  .shifter .feel b { font-size: 24px; }
  .shifter span { font-size: 14px; }
}
/* Online: the recording tells it all */
.together .copy { top: 92px; }

/* Details wall: a tile is a button; its clip plays inside on hover and large on click */
.wall li { position: relative; overflow: hidden; }
.wall h3, .wall p, .wall .ic { position: relative; z-index: 1; }
.wall h3 button { all: unset; cursor: pointer; }
.wall li[data-src] h3 button::after { content: ''; position: absolute; inset: -100vh -100vw; }
.wall li[data-src] { cursor: pointer; }
.wall li[data-src] h3, .wall li[data-src] p { transition: text-shadow .3s; }
.wall li[data-src] h3 { z-index: 2; }
.wall li[data-src]:focus-within:has(:focus-visible) { box-shadow: inset 0 0 0 3px var(--cyan); }
.wall video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.wall li.on video { opacity: 1; }
.wall li::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgb(5 12 20 / .9) 78%); opacity: 0; transition: opacity .25s; }
.wall li.on::after { opacity: 1; }
.wall .ic { transition: opacity .25s; }
.wall li.on .ic { opacity: 0; }
.wall li.on p { color: #fff; }
.wall li[data-src]::before { content: ''; position: absolute; z-index: 1; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; background: rgb(241 246 249 / .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M14 11v12l9-6z' fill='%23f1f6f9'/%3E%3C/svg%3E"); transition: opacity .25s; }
.wall li.on::before { opacity: 0; }
.peek { width: min(1100px, calc(100vw - 2 * var(--gutter)), calc((100svh - 220px) * 1.7778)); max-width: none; max-height: none; padding: 0; margin: auto; border: 0; background: #11273a; color: var(--text); overflow: visible; }
.peek::backdrop { background: rgb(5 10 18 / .86); }
.peek-film { aspect-ratio: 16 / 9; background: #0b111c; }
.peek-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.peek-text { padding: 22px 150px 26px 28px; min-height: 118px; box-sizing: border-box; }
.peek h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.2; }
.peek p { margin: 8px 0 0; font-size: 19px; line-height: 1.4; color: var(--text); }
.peek button { position: absolute; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgb(241 246 249 / .12); color: var(--text); cursor: pointer; }
.peek button:hover { background: rgb(241 246 249 / .24); }
.peek button svg { display: block; width: 24px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.peek .peek-close { top: -58px; right: 0; }
.peek .peek-prev { bottom: 24px; right: 82px; }
.peek .peek-next { bottom: 24px; right: 24px; }
@media (max-width: 820px) {
  .wall p { display: none; }
  .wall h3 { font-size: 17px; }
  .wall li { padding: 14px 16px 16px; }
  .wall li[data-src]::before { top: 10px; right: 10px; width: 30px; height: 30px; }
  .wall li:not([data-src]) p { display: block; font-size: 15px; }
  .peek { width: 100vw; }
  .peek-text { padding: 20px var(--gutter) 92px; min-height: 240px; }
  .peek h3 { font-size: 24px; }
  .peek .peek-close { right: var(--gutter); }
  .peek .peek-prev { right: calc(var(--gutter) + 58px); }
  .peek .peek-next { right: var(--gutter); }
}.photo.together .pin::before { background: linear-gradient(rgb(7 14 24 / .72), transparent 42%); }
.together .copy { max-width: min(70vw, 900px); }
@media (min-width: 821px) { .together .media video { object-position: 88% 50%; } .wall p { font-size: 17px; color: #c5d3dd; } }
@media (max-width: 820px) { .together .media, .together .media video { height: 100%; } .together .media video { object-position: 47% 50%; } .together .copy { max-width: none; } }

/* Chapters off screen: far ones do not download their photo, none of them draw. Buttons stay reachable with Tab. */
.filming .shot.off:not(.near) img { display: none; }
.filming .shot.off img, .filming .shot.off video, .filming .shot.off canvas, .filming .shot.off .ic { visibility: hidden; }
@media (max-width: 820px) { .together .media button { bottom: 128px; background: rgb(11 17 28 / .82); } }
@media (max-width: 820px) { .hero .copy, .together .copy { pointer-events: none; } .hero .copy a, .together .copy a { pointer-events: auto; } }

/* Downloads */
.downloads { padding-top: 132px; padding-bottom: 96px; min-height: 80svh; }
.downloads h1 { font-size: clamp(40px, 6vw, 84px); max-width: none; }
.downloads > h2 { font-size: 32px; margin-top: 88px; }
.latest { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; margin-top: 48px; padding-top: 40px; border-top: 1px solid rgb(255 255 255 / .14); }
.latest h2 { font-size: 40px; }
.latest .btn { margin: 0 0 20px; }
.latest p { margin-top: 14px; max-width: 56ch; }
.latest a:not(.btn), .older a { text-decoration: underline; }
.downloads time, .sum { color: var(--soft); font-size: 16px; }
.sum code { overflow-wrap: anywhere; }
.older { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px 32px; padding: 26px 0; border-bottom: 1px solid rgb(255 255 255 / .14); }
@media (max-width: 820px) { .latest, .older { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { .hero .media button { top: 76px; bottom: auto; background: rgb(11 17 28 / .82); } }

/* Downloads: two blocks cut at the slant of the logo, Mac on the left and Windows on the right */
.get { display: flex; width: max-content; max-width: calc(100vw - var(--gutter) * 2); margin: 36px 0 0 9px; gap: 10px; }
.go { position: relative; z-index: 0; display: flex; align-items: center; gap: 18px; min-height: 84px; padding: 14px 34px 14px 30px; color: var(--ink); line-height: 1; white-space: nowrap; }
.go::before, .go::after, .now::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cyan); transform: skewX(-12deg); }
.go::after { background: #fff; clip-path: inset(0 100% 0 0); transition: clip-path .32s cubic-bezier(.2, .8, .2, 1); }
.go:hover::after, .go:focus-visible::after { clip-path: inset(0); }
.go:active { translate: 0 2px; }
.go.mac { color: var(--text); }
.go.mac::before { background: #1c2c42; }
.go.mac:hover, .go.mac:focus-visible { color: var(--ink); }
.go svg { width: 34px; height: 34px; flex: none; transition: translate .32s cubic-bezier(.2, .8, .2, 1); }
.go:hover svg { translate: 4px 0; }
.go small { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 600; }
.go b { font-size: 30px; font-weight: 800; font-style: italic; font-stretch: 112%; letter-spacing: -.02em; }
.go i { margin-left: 8px; font-size: 17px; font-weight: 600; font-style: italic; }

/* Header download: slides in once the cover is gone; the menu makes room for it */
.now { position: absolute; z-index: 0; right: calc(var(--gutter) + 5px); top: 11px; display: flex; align-items: center; justify-content: center; gap: 10px; width: 152px; height: 42px; color: var(--ink); font-weight: 800; font-style: italic; font-stretch: 112%; font-size: 16px; opacity: 0; visibility: hidden; translate: 24px 0; transition: opacity .28s, translate .28s cubic-bezier(.2, .8, .2, 1), visibility 0s .28s; }
.now svg { width: 17px; height: 17px; }
.now:hover::before { background: #fff; }
.past .now { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.top nav, .top .lang { transition: translate .28s cubic-bezier(.2, .8, .2, 1); }
.past .top nav, .past .top .lang { translate: -184px 0; }

/* Last screen: the road again, and the way in */
.ending { position: relative; z-index: 40; display: flex; align-items: center; justify-content: flex-end; min-height: 100svh; padding: 96px var(--gutter); background: var(--ink); overflow: hidden; }
.ending img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.ending::after { content: ""; position: absolute; inset: 0; background: linear-gradient(-75deg, rgb(11 17 28 / .96) 22%, rgb(11 17 28 / .78) 44%, transparent 72%), linear-gradient(0deg, var(--ink), transparent 18%, transparent 84%, var(--ink)); }
.ending-copy { position: relative; z-index: 1; width: min(48vw, 640px); }
.ending h2 { font-size: clamp(48px, 6.4vw, 104px); }
.ending p { margin-top: 22px; font-size: 20px; }
@media (max-width: 1180px) and (min-width: 821px) {
  .go { padding: 12px 24px 12px 22px; gap: 14px; min-height: 76px; }
  .go b { font-size: 25px; }
  .ending-copy { width: max-content; max-width: 60vw; }
}
@media (max-width: 1000px) and (min-width: 821px) { .top nav { gap: 18px; } .past .brand span { display: none; } }
@media (max-width: 820px) {
  .get { display: grid; width: auto; gap: 10px; margin: 22px 8px 0; }
  .go { min-height: 64px; padding: 10px 20px; gap: 16px; }
  .go svg { width: 28px; height: 28px; }
  .go small { margin-bottom: 4px; font-size: 14px; }
  .go b { font-size: 23px; }
  .go i { font-size: 16px; }
  .now { width: 132px; height: 40px; top: 12px; font-size: 15px; }
  .past .brand span { display: none; }
  .past .top .lang { translate: -150px 0; }
  .ending { align-items: flex-end; padding: 60svh var(--gutter) 48px; }
  .ending img { height: 66%; object-position: 36% 50%; }
  .ending::after { background: linear-gradient(0deg, var(--ink) 38%, rgb(11 17 28 / .7) 52%, transparent 74%); }
  .ending-copy { width: 100%; }
  .ending p { margin-top: 12px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .go::after, .go svg, .now, .top nav, .top .lang { transition: none; } }
@media (min-width: 821px) { .ending img { left: -14%; width: 114%; max-width: none; } }
@media (min-width: 821px) {
  .hero h1 { font-size: clamp(44px, min(7vw, 11.5svh), 104px); }
  .hero-copy .get { margin-top: clamp(20px, 4svh, 36px); }
}
@media (min-width: 821px) and (max-width: 1180px) {
  .ending img { left: -34%; width: 134%; }
}
