/* ================= hero world ================= */
.site { position: relative; }
/* the sky's own colours, under the art: the light hero text stays readable while the sky image fades in */
.site::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 980px;
  background: linear-gradient(#2d285c, #3a326c 20%, #5a447b 41%, #865c84 65%, var(--paper)); }
.world { position: absolute; left: 0; right: 0; top: 0; height: 1900px; overflow: hidden; pointer-events: none; z-index: 0; }
/* the dusk sky fills the whole hero, from the top of the page down behind the hills */
.sky-frame { position: absolute; left: 0; top: 0; width: 100%; height: 980px; overflow: hidden; }
/* a light violet shade at the top keeps the nav and headline on the darkest part of the sky */
.sky-frame::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(20, 18, 64, .45), rgba(20, 18, 64, .12) 45%, transparent 70%); }
.sky-frame .sky { width: 100%; height: 100%; object-fit: cover; object-position: center 47%; animation: sky-flow 40s ease-in-out infinite; transform: scale(1.06); }
@keyframes sky-flow { 0%,100% { translate: -1.5% -.5% } 50% { translate: 1.5% .6% } }
.cloud-texture { position: absolute; left: calc(50% - 120px); top: 655px; width: 920px; max-width: none; }
.landscape { position: absolute; left: 0; right: 0; top: 660px; }
.terrain-box { position: relative; left: 50%; translate: -50% 0; width: max(100%, 1000px); }
.terrain { width: 100%; height: auto; transform: scale(1.04); transform-origin: center top; }
.scout-home { position: absolute; left: 80%; top: calc(9.4% - 26px); width: 0; height: 0; }
.paper-grain { position: absolute; inset: 0; background: url(../art/paper-grain.png); opacity: .05; mix-blend-mode: multiply; }
.world::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px;
  background: linear-gradient(transparent, var(--paper) calc(100% - 24px)); }

/* ================= hero ================= */
.hero { position: relative; z-index: 2; min-height: 960px; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; padding-top: 40px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 7px; border-radius: 99px;
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: -.005em; }
.hero h1 { margin-top: 20px; max-width: 9.5em; color: #fff; }
.cyc { display: inline-grid; color: #ffb08a;   /* peach: the accent family, readable on violet */
  vertical-align: top; }
.cyc .w { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .16em; white-space: nowrap;
  opacity: 0; transform: translateY(.32em); transition: opacity .6s ease, transform .6s var(--ease); }
.cyc .w.is-on { opacity: 1; transform: none; }
.cyc .w.is-out { opacity: 0; transform: translateY(-.32em); }
.cyc .w svg { width: .62em; height: .62em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lede { margin-top: 20px; font-size: 17px; color: rgba(255, 255, 255, .86); max-width: 38em; }
/* light header and form details on the sky */
.header .brand, .nav a:not(.btn) { color: #fff; }
.header .nav .soon { color: #fff; opacity: .75; }
.header .nav .soon small { background: rgba(255,255,255,.18); }
.header .menu-btn { background: rgba(255, 255, 255, .16); color: #fff; }
.hero .hint { color: rgba(255, 255, 255, .72); }
.hero .waitlist input { box-shadow: 0 8px 30px rgba(20, 18, 64, .35); }
.hero .waitlist input[aria-invalid="true"] { box-shadow: 0 0 0 2px #ff8a8a; }
.hero .waitlist input:focus-visible { outline-color: #ffb08a; }
.hero .wl-status { color: #fff; }
.hero .wl-status.is-error { color: #ffc2c2; }
.hero .waitlist.is-done .wl-status { color: var(--ink); }
/* the DAW strip follows the form, on the sky just above the horizon, so it is always in the first screen */
.proof { position: relative; margin-top: 44px; color: #fff;
  text-shadow: 0 1px 12px rgba(20, 18, 64, .35); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; font-size: var(--type-ui); }
.proof p { opacity: .92; }
.proof ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
.proof li { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.proof li img { width: 18px; height: 18px; object-fit: contain; flex: none; opacity: .95; }
.proof li img.mono { width: 26px; filter: brightness(0) invert(1); }

/* ================= Scout (Zep, the record) ================= */
.scout { position: absolute; left: 0; top: 0; width: 160px; height: 160px; z-index: 6; pointer-events: none; transition: opacity .25s ease; }
.scout-in { width: 100%; height: 100%; transform-origin: 50% 54%; }
.scout-in img { width: 100%; height: 100%; animation: bob 1.9s ease-in-out infinite alternate; }
.scout.is-handed, .scout.is-gone { opacity: 0; }
@keyframes bob { from { translate: 0 -4px } to { translate: 0 4px } }
.is-off { animation-play-state: paused !important; }

/* ================= section rhythm ================= */
main { position: relative; z-index: 1; }
#altitude { padding-top: 200px; }
#altitude > h2 { max-width: 14em; }

/* ================= the two cards ================= */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
.card { position: relative; height: 300px; border: 0; padding: 0; border-radius: 18px; overflow: hidden; cursor: pointer; text-align: left;
  isolation: isolate; box-shadow: 0 24px 50px -30px rgba(27,22,38,.5); transition: box-shadow .3s ease; }
.card:hover { box-shadow: 0 30px 60px -28px rgba(27,22,38,.6); }
.card--avg { background: #d8d6dd; }
.card--edge { background: var(--dusk-violet); color: #fff; }
.card-art { position: absolute; inset: 0; z-index: -1; }
.card-art > span { position: absolute; }
.fog { inset: -50px -20px; background-size: cover; background-position: center; }
.fog--back { background-image: url(../art/fog-b.webp); opacity: .5; }
.fog--front { background-image: url(../art/fog-a.webp); opacity: .2; }
.fog--clear { background-image: url(../art/fog-a.webp); opacity: .65; }
.crowd { inset: 36% 4% 2% 4%; background: url(../art/crowd-record.svg) 0 0 / 64px 56px repeat; opacity: .9; }
/* these load after the first screen: index.html adds html.bg-later and removes it on load or first scroll */
.bg-later .fog, .bg-later .card-sky, .bg-later .card-cloud, .bg-later .layer--edge, .bg-later .pano-fog, .bg-later .course-cloud { background-image: none; }
.card-sky { inset: -12px 0; background: url(../art/card-sky.webp) center / cover; }
.card-cloud { left: -6%; right: -6%; bottom: -70px; height: 78%; background: url(../art/cloud-bank.webp) center bottom / cover no-repeat;
  animation: drift 26s ease-in-out infinite alternate; }
.scout-dock { left: 74%; top: 44%; width: 0; height: 0; }
@keyframes drift { from { translate: -2% 0 } to { translate: 2% 0 } }
/* Zep's hello while it sits on the card (camera.js toggles .zep-here; --zs is Zep's scale there) */
.zep-says { right: calc(26% + 74px * var(--zs, 1)); top: 30%; padding: 9px 12px; border-radius: 12px 12px 4px 12px; background: var(--surface); color: var(--ink);
  font-size: 12px; line-height: 1.35; font-weight: 500; white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(27,22,38,.6);
  opacity: 0; translate: 8px 4px; scale: .96; transform-origin: 100% 100%; transition: opacity .3s ease, translate .4s var(--ease), scale .4s var(--ease); }
.card--edge.zep-here .zep-says { opacity: 1; translate: 0 0; scale: 1; }
.card-label { position: absolute; left: 24px; top: 22px; display: grid; gap: 2px; }
.card-label b { font-weight: var(--weight-display); font-size: 26px; letter-spacing: -.035em; line-height: 1.15; }
.card-label span { font-size: var(--type-ui); opacity: .75; }
.card-cta { position: absolute; left: 24px; bottom: 22px; background: var(--surface); color: var(--ink); border-radius: 8px;
  padding: 8px 12px; font-size: var(--type-ui); font-weight: 500; box-shadow: 0 6px 18px -10px rgba(27,22,38,.6); }

/* ================= the tear sheet ================= */
.flip { margin-top: 130px; }
.tabs { position: relative; display: flex; gap: 22px; margin-top: 24px; font-size: var(--type-ui); }
.tab { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--muted); }
.tab[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.tab-line { position: absolute; left: 0; bottom: -2px; width: 1px; height: 1.5px; background: var(--ink); transform-origin: 0 0; transition: transform .35s var(--ease); }
.sheet { position: relative; height: 540px; margin-top: 22px; overflow: hidden; border-radius: 4px; user-select: none; -webkit-user-select: none;
  touch-action: pan-y; box-shadow: 0 30px 60px -40px rgba(27,22,38,.55); background: #e6e4ea; }
.sheet.ready { cursor: ew-resize; }
.layer, .flap { position: absolute; inset: 0; }
.layer--plain, .flap { background: #e6e4ea; }
.layer--edge { background: url(../art/card-sky.webp) center / cover; }
.flap { pointer-events: none; opacity: 0; }
.layer.swap { animation: swap .42s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px) scale(.99); } }
.tear { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.tear polyline { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tear-shadow { stroke: rgba(27,22,38,.22); stroke-width: 12px; }
.tear-paper { stroke: #fbf8f4; stroke-width: 5px; }
.handle { position: absolute; top: 50%; left: 35%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 8px 22px -8px rgba(27,22,38,.55); display: grid; place-items: center; cursor: grab;
  opacity: 0; transition: opacity .3s ease, scale .35s var(--ease); }
.handle img { width: 46px; height: 46px; }
.handle img, .handle::after { grid-area: 1 / 1; transition: opacity .25s ease; }
.handle::after { content: "\2039\2002\203A"; font-size: 20px; font-weight: 600; line-height: 1; color: var(--muted); opacity: 0; }
.sheet.spin-away .handle img { opacity: 0; }
.sheet.spin-away .handle::after { opacity: 1; }
.sheet.ready .handle { opacity: 1; scale: 1; }
.sheet.dragging .handle { cursor: grabbing; scale: 1.08; }
.plane { position: absolute; left: 0; top: 0; width: 84px; height: 84px; margin: -42px 0 0 -42px; opacity: 0; pointer-events: none; z-index: 4;
  transition: opacity .3s ease; }
.plane img { width: 100%; height: 100%; animation: saw .35s linear infinite; }
@keyframes saw { to { rotate: 360deg; } }

/* beat windows inside the sheet */
.win { position: absolute; top: 50%; translate: 0 -50%; border-radius: 12px; overflow: hidden; }
.win--plain { left: 4%; width: 27%; background: var(--surface); box-shadow: 0 10px 30px -18px rgba(27,22,38,.4); }
.win--edge { left: 41%; width: 54%; background: #17121f; color: #fff; box-shadow: 0 30px 60px -24px rgba(10,6,20,.8); }
.win-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: 12px; }
.win--plain .win-head { border-bottom: 1px solid #eee; color: var(--muted); }
.win--edge .win-head { border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.win-head b { font-weight: 600; color: inherit; }
.play { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; border: 0; cursor: pointer; font-size: 12px; font-weight: 600; }
.win--plain .play { background: #ecebef; color: var(--ink); }
.win--edge .play { background: var(--accent); color: var(--ink); }
.play[aria-pressed="true"] { box-shadow: 0 0 0 2px currentColor inset; }
.win-body { padding: 14px; display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; }
.row > span { font-size: 11px; letter-spacing: .02em; }
.win--plain .row > span { color: var(--muted); }
.win--edge .row > span { color: rgba(255,255,255,.6); }
.steps { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.steps i { aspect-ratio: 1 / 1.25; border-radius: 3px; background: #efeef2; position: relative; }
.win--edge .steps i { background: rgba(255,255,255,.07); }
.steps i:nth-child(4n+1) { background: #e4e2e8; }
.win--edge .steps i:nth-child(4n+1) { background: rgba(255,255,255,.12); }
.win--plain .steps i.on { background: #9d99a8; }
.win--edge .steps i.on { background: var(--accent); opacity: var(--v, 1); translate: var(--sw, 0) 0; }
.steps i.now { outline: 2px solid currentColor; outline-offset: -1px; }
.win--plain .steps i.now { color: var(--ink); }
.win--edge .steps i.now { color: #fff; }
.win-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px 14px; font-size: 11px; }
.win--plain .win-foot { color: var(--muted); }
.win--edge .win-foot { color: rgba(255,255,255,.6); }
.verdict { display: inline-flex; padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.win--plain .verdict { background: #ecebef; color: var(--muted); }
.win--edge .verdict { background: rgba(255,90,31,.18); color: #ffb08c; }
.who-tag { position: absolute; left: 4%; top: 8%; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: rgba(255,255,255,.75); color: var(--ink); }
.layer--edge .who-tag { left: auto; right: 5%; background: rgba(23,18,31,.7); color: #fff; }
/* arrangement lanes */
.arr { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.arr i { flex: var(--w, 1); height: calc(var(--e, .5) * 100%); border-radius: 4px; position: relative; }
.win--plain .arr i { background: #c9c6d0; }
.win--edge .arr i { background: linear-gradient(var(--accent), #b9431d); opacity: calc(.45 + var(--e) * .55); }
.arr i b { position: absolute; left: 4px; bottom: 4px; font-size: 9px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.win--edge .arr i b { color: #17121f; }
.arr-scale { display: flex; justify-content: space-between; font-size: 10px; margin-top: 6px; opacity: .6; }

.under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: var(--type-ui); color: var(--muted); }
.switch { display: inline-flex; padding: 3px; border-radius: 99px; background: #e9e5df; }
.side { border: 0; background: none; padding: 5px 12px; border-radius: 99px; cursor: pointer; font-size: 12px; font-weight: 500; color: var(--muted); }
.side[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(27,22,38,.12); }
.see { margin-top: 12px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent-text); font-size: var(--type-ui); font-weight: 500; }
.see:hover { text-decoration: underline; text-underline-offset: 3px; }
.panel { margin-top: 12px; padding: 18px 20px; border-radius: 12px; background: var(--surface); font-size: 14px; max-width: 720px; }
.panel dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.panel dt { color: var(--muted); }
.panel dd { margin: 0; }

/* ================= bell chart ================= */
.pano { margin-top: 170px; }
.pano-stage { position: relative; margin-top: 44px; }
.pano-art { position: relative; aspect-ratio: 1000 / 300; transform-origin: 40% 100%; }
.pano-art > * { position: absolute; }
.bell, .bell-line { inset: 0; width: 100%; height: 100%; }
.bell-line { overflow: visible; }
.bell-line path { fill: none; stroke: url(#bell-grad); stroke-width: 1.6px; vector-effect: non-scaling-stroke; }
.pano-fog { left: -6%; right: -6%; background-size: cover; background-position: center; pointer-events: none; }
.pano-fog--a { top: 10%; height: 70%; background-image: url(../art/fog-b.webp); opacity: .55; animation: drift 34s ease-in-out infinite alternate; }
.pano-fog--b { top: 35%; height: 60%; background-image: url(../art/fog-a.webp); opacity: .7; animation: drift 22s ease-in-out infinite alternate-reverse; }
.lbl { font-size: var(--type-ui); font-weight: 500; white-space: nowrap; }
.lbl--crowd { left: 36%; top: 0; translate: -50% -170%; color: var(--muted); }
.lbl--you { left: 82%; top: calc(93% - 96px); translate: -50% -100%; color: var(--accent-text); font-weight: 600; }
.surf-spot { left: 82%; top: 93%; width: 0; height: 0; }
.surf { left: 82%; top: 93%; width: 90px; height: 90px; margin: -86px 0 0 -45px; opacity: 0; transition: opacity .25s ease; }
.surf.is-on { opacity: 1; animation: bob 1.9s ease-in-out infinite alternate; }

.pano-cap { margin-top: 28px; max-width: 38em; color: var(--muted); font-size: 16px; }

/* ================= teaching build (component styles in build.css) ================= */
#build { margin-top: 180px; }
#build > h2 { max-width: 15em; }
.build-lede { margin-top: 16px; max-width: 38em; color: var(--muted); font-size: 16px; }
#build .build { margin-top: 36px; }

/* ================= curriculum ================= */
#curriculum { margin-top: 180px; }
#curriculum > h2 { max-width: 14em; }
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.course-art { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.course-art img { width: 100%; height: 100%; object-fit: cover; }
.course-cloud { position: absolute; left: -12%; right: -12%; bottom: -14%; height: 38%; background: url(../art/cloud-bank.webp) center bottom / cover no-repeat;
  animation: drift 30s ease-in-out infinite alternate; opacity: .9; }
.course h3 { margin-top: 14px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.course p { margin-top: 4px; font-size: 14px; color: var(--muted); max-width: 32em; }
.courses-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 30px; font-size: var(--type-ui); color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.courses-foot a { color: var(--accent-text); font-weight: 500; text-decoration: none; }
.courses-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ================= FAQ ================= */
#faq { margin-top: 180px; }

/* ================= closing ================= */
#close { position: relative; margin-top: 200px; padding-top: 40px; }
.close-art { position: absolute; inset: -80px -10% auto; height: 420px; pointer-events: none; z-index: -1; }
.close-art img { position: absolute; width: 70%; max-width: none; opacity: .5;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.close-art img:first-child { left: -14%; top: 20px; }
.close-art img:last-child { right: -14%; top: 120px; opacity: .35; }
#close .waitlist { margin-top: 0; }
#closing-title { margin-top: 64px; font-size: var(--type-closing); max-width: 13em; }
/* the ending is composed at 1440 px; below that the whole scene scales with the screen (phones have their own rules) */
.hills { position: relative; height: min(600px, 41.67vw); margin-top: -10px; overflow: hidden; }
.hill { position: absolute; left: 50%; translate: -50% 0; width: max(100%, min(1600px, 111.11vw)); max-width: none; }
.hill--far { bottom: min(160px, 11.11vw); }
.hills::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: min(220px, 15.28vw); background: #4b3b6c; }
.hill--near { bottom: 0; z-index: 2; }
/* the wordmark's baseline follows the near ridge so the crest always cuts it about a quarter of the way up:
   below 1440 px everything scales together; 1440-1600 the hill is fixed while the word grows;
   above 1600 the hill grows with the screen while the word is capped at 380 px */
.sig { position: absolute; left: 50%; bottom: min(max(calc(240px - 4.8vw), calc(14.93vw - 76px)), 11.875vw); translate: -50% 0; display: flex; align-items: flex-end; gap: .04em;
  font-size: clamp(130px, 24vw, 380px); line-height: .8; z-index: 1; }
.sig-word { font-weight: 500; letter-spacing: -.065em; color: var(--ink); }
.sig-disc { width: .62em; height: .62em; flex: none; border-radius: 50%; margin-bottom: .02em; margin-right: .06em;
  background: radial-gradient(circle, #1b1626 0 3%, var(--accent) 3.5% 28%, #1b1626 29% 36%, #2f2742 37% 38%, #1b1626 39% 48%, #2f2742 49% 50%, #1b1626 51% 60%, #2f2742 61% 62%, #1b1626 63%); }

/* ================= reveals ================= */
html.mo .reveal:not(.is-in) { opacity: 0; translate: 0 18px; scale: .985; }
html.mo h2.reveal:not(.is-in) { filter: blur(8px); }
html.mo .reveal { transition: opacity .7s var(--ease) var(--mo-d, 0s), translate .9s var(--ease) var(--mo-d, 0s),
  scale .9s var(--ease) var(--mo-d, 0s), filter .6s ease var(--mo-d, 0s), box-shadow .3s ease; }

/* ================= responsive ================= */
/* short laptop screens (<= 820 px tall): tighten the hero a little and raise the horizon, so the headline,
   form, DAW strip, hills and Spin all fit in the first screen */
@media (min-width: 701px) and (max-height: 820px) {
  .hero { padding-top: 24px; }
  .hero h1 { margin-top: 14px; font-size: clamp(44px, min(5.4vw, 8vh), 84px); }
  .lede { margin-top: 14px; }
  .hero .waitlist { margin-top: 20px; }
  .proof { margin-top: 24px; }
  .landscape { top: 590px; }
  .cloud-texture { top: 585px; }
  .sky-frame .sky { object-position: center 60%; }
}
@media (max-width: 1100px) {
  .zep-says { right: calc(22% + 74px * var(--zs, 1)); top: 40%; }
  .scout-dock { left: 78%; top: 44%; }   /* Spin lands 35 px below this and floats up: between the subtitle and the button */
}
@media (max-width: 900px) {
  .courses { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .course { scroll-snap-align: start; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .nav a:not(.btn), .nav .soon { display: none; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: var(--type-hero-mobile); }
  .lede { font-size: 16px; }
  .hero { min-height: 1080px; }
  .sky-frame { height: 1200px; }
  .sky-frame .sky { object-position: 30% 80%; }
  .cloud-texture { left: -10%; top: 760px; width: 640px; }
  .landscape { top: 800px; }
  .scout-home { left: 62%; top: calc(6.8% - 22px); }
  .waitlist { flex-direction: column; }
  .waitlist input { flex: none; }
  .waitlist .btn { width: 100%; }
  .proof { margin-top: 30px; }
  .proof li { font-size: 14px; }
  #altitude { padding-top: 180px; }
  .cards { grid-template-columns: 1fr; }
  .card { height: 260px; }
  .sheet { height: 520px; }
  .under { flex-direction: column; align-items: flex-start; gap: 10px; }
  .win--plain, .win--edge { left: 5%; width: 90%; }
  .who-tag, .layer--edge .who-tag { left: 5%; right: auto; top: 4%; }
  .row { grid-template-columns: 40px 1fr; }
  .steps { gap: 2px; }
  .pano-art { margin-inline: -8px; }
  .lbl--you { left: 76%; top: calc(93% - 70px); }   /* above Spin's head on the small curve */
  .surf { width: 64px; height: 64px; margin: -60px 0 0 -32px; }
  /* ending: narrower hill art so the ridge still curves on a phone and the far hill isn't clipped flat,
     and a wordmark sized to the screen that stands on the near ridge */
  .hills { height: 360px; }
  .hill { width: 920px; }
  .hill--far { bottom: 110px; }
  .sig { bottom: 142px; font-size: 25vw; }
}
/* touch screens: small text links and pill buttons get an invisible ~44 px hit area (layout unchanged) */
@media (pointer: coarse) {
  .brand, .nav a, .footer a, .courses-foot a, .see, .tab, .side, .play { position: relative; }
  .brand::after, .nav a::after, .footer a::after, .courses-foot a::after, .see::after { content: ""; position: absolute; inset: -12px -8px; }
  .tab::after, .side::after, .play::after { content: ""; position: absolute; inset: -8px -4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}

/* ================= sunrise ending (from v2) ================= */
html { background: var(--paper); }
body { background: transparent; }
/* the page warms to dawn near the bottom: one fixed layer whose opacity changes (composited) */
.tint { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.tint i { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.tint-dawn { background: linear-gradient(#fcefe2, #fae2d2); }
.hills::before { background: #b9708a; }

/* rolling Spin records on the bottom horizon (horizon.js) */
.rollers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.roller { position: absolute; left: 0; top: 0; transform-origin: 50% 54%; opacity: 0; transition: opacity .3s ease; }
.rollers.is-in .roller { opacity: 1; }
