/* Earth Now website. Design notes: design/website/DESIGN.md */

@font-face {
  font-family: 'Bricolage';
  src: url('../fonts/bricolage-200_800-normal.woff2') format('woff2');
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* fixed colours */
  --space: #05060d;
  --star: #f4f2ee;
  --deep: #08101f;
  --sodium: #ff8a3d;
  /* ink for a dark sky; html.sky-light switches to ink for a light sky (assets/js/site.js) */
  --ground: #05060d;
  --ink: #f4f2ee;
  --inv: #08101f;
  --muted: rgba(244, 242, 238, .76);
  --line: rgba(244, 242, 238, .16);
  --cta-bg: #ff8a3d;
  --cta-ink: #08101f;
  --cta-flood: #f4f2ee;
  --cta-flood-ink: #08101f;
  --wght: 640;

  --f: 'Bricolage', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-mega: clamp(3.6rem, 0.6rem + 11.6vw, 14rem);
  --t-xl: clamp(2.6rem, 1.1rem + 5.6vw, 7.5rem);
  --t-l: clamp(1.7rem, 1.1rem + 2.2vw, 3.4rem);
  --t-m: clamp(1.2rem, 1.05rem + 0.55vw, 1.6rem);
  --t-body: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --t-s: 0.875rem;
  --t-xs: 0.78rem;

  --g: clamp(16px, 2.2vw, 32px);
  --max: 1600px;
  --r: 12px;

  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-soft: cubic-bezier(0.215, 0.61, 0.355, 1);
}
html.sky-light {
  --ink: #08101f; --inv: #f4f2ee; --muted: rgba(8, 16, 31, .74); --line: rgba(8, 16, 31, .16);
  --cta-bg: #08101f; --cta-ink: #f4f2ee; --cta-flood: #ff8a3d; --cta-flood-ink: #08101f;
}

/* The sky: one fixed layer, the only thing whose colour changes while scrolling. */
.sky { position: fixed; inset: -10vh 0; z-index: -2; background: #05060d; pointer-events: none; contain: strict; will-change: transform; }
/* The Earth: the app's renderer, transparent, behind everything. */
.earth-layer {
  position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity 1.4s var(--e-soft) .3s; will-change: opacity;
}
html.earth-ready .earth-layer { opacity: 1; }
html.earth-ready.earth-side .earth-layer { opacity: .55; transition-delay: 0s; }
html.earth-ready.earth-side.sky-light .earth-layer { opacity: .45; }
@media (max-width: 760px) { html.earth-ready.earth-side .earth-layer { opacity: .42; } html.earth-ready.earth-side.sky-light .earth-layer { opacity: .34; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--space); color: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: transparent; color: var(--ink); transition: color .4s;
  font: 400 var(--t-body)/1.55 var(--f);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--sodium); color: var(--deep); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
button { font: inherit; color: inherit; }
code, kbd {
  font: 500 0.86em/1.3 var(--f-mono); padding: 0.12em 0.4em; border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 9%, transparent); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 4px; border-radius: 6px; }
.btn:focus-visible { border-radius: 999px; }

.wrap { width: min(var(--max), 100% - 2 * var(--g)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.mono { font: 500 var(--t-xs)/1.35 var(--f-mono); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.display {
  font-family: var(--f); font-stretch: 78%; font-weight: 760;
  font-variation-settings: 'opsz' 96; letter-spacing: -0.028em; line-height: 0.88;
  text-wrap: balance;
}

.skip {
  position: fixed; left: var(--g); top: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--star); color: var(--deep); font-weight: 600; text-decoration: none;
  translate: 0 -200%; transition: translate .3s var(--e-soft);
}
.skip:focus-visible { translate: 0 0; }

/* ---------------------------------------------------------------- header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ink);
  transition: translate .6s var(--e-out), color .4s;
  padding-top: max(14px, env(safe-area-inset-top));
}
.top::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: color-mix(in srgb, var(--hdr, #05060d) 92%, transparent);
  border-bottom: 1px solid var(--line); transition: opacity .4s;
}
html.is-scrolled .top::before { opacity: 1; }
html.over-hero .top { color: var(--star); }
html.over-hero .top::before { opacity: 0; }
html.frame-away .top { translate: 0 -110%; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-stretch: 85%; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; transition: rotate .9s var(--e-out); }
@media (hover: hover) { .brand:hover img { rotate: 360deg; } }
.brand:focus-visible img { rotate: 360deg; }
.clock { display: flex; gap: 14px; align-items: baseline; opacity: .92; }
.clock__ahead { color: var(--sodium); min-width: 9ch; }
html:not(.over-hero) .clock__ahead { color: inherit; opacity: .7; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); font-size: var(--t-s); font-weight: 500; }
.top nav a:not(.btn) { text-decoration: none; padding: 6px 0; }
@media (max-width: 1080px) { .clock [data-place], .clock__ahead { display: none; } }
@media (max-width: 400px) { .brand { font-size: 1.02rem; gap: 8px; } .clock { font-size: .7rem; } }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

/* letter roll: nav (rises like the motion verb) */
.roll { display: inline-grid; overflow: clip; vertical-align: top; }
.roll > span { grid-area: 1 / 1; transition: translate .5s var(--e-out); }
.roll > span + span { translate: 0 170%; }
@media (hover: hover) { .roll:hover > span { translate: 0 -170%; } .roll:hover > span + span { translate: 0 0; } }
.roll:focus-visible > span { translate: 0 -170%; } .roll:focus-visible > span + span { translate: 0 0; }
.top nav .roll { background: linear-gradient(currentColor 0 0) left calc(100% - 2px) / 0% 1.5px no-repeat; transition: background-size .5s var(--e-out); }
@media (hover: hover) { .top nav .roll:hover { background-size: 100% 1.5px; } }
.top nav .roll:focus-visible { background-size: 100% 1.5px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --bg: var(--cta-bg); --fg: var(--cta-ink); --flood: var(--cta-flood); --fg-on: var(--cta-flood-ink);
  position: relative; isolation: isolate; overflow: clip;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; background: var(--bg); color: var(--fg); text-decoration: none;
  font-weight: 650; font-size: 1rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: color .45s var(--e-soft), scale .2s var(--e-soft);
}
.btn::before { /* the sunrise: a disc rising from below the button */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 260%; aspect-ratio: 1;
  border-radius: 50%; background: var(--flood); translate: -50% 0; scale: 1;
  transition: translate .6s var(--e-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: translate .45s var(--e-out); }
@media (hover: hover) {
  .btn:hover { color: var(--fg-on); }
  .btn:hover::before { translate: -50% -62%; }
  .btn:hover svg { translate: 0 2px; }
}
.btn:focus-visible { color: var(--fg-on); }
.btn:focus-visible::before { translate: -50% -62%; }
.btn:active { scale: .97; }
.btn--ghost { --bg: transparent; --fg: var(--ink); --flood: var(--ink); --fg-on: var(--inv); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.on-space .btn { --bg: var(--sodium); --fg: var(--deep); --flood: var(--star); --fg-on: var(--deep); }
.on-space .btn--ghost { --bg: transparent; --fg: var(--star); --flood: var(--star); --fg-on: var(--deep); }
html.over-hero .top .btn { --bg: var(--sodium); --fg: var(--deep); --flood: var(--star); --fg-on: var(--deep); }

/* inline links: underline at rest, rises into a band */
.link {
  text-decoration: none;
  background: linear-gradient(color-mix(in srgb, var(--sodium) 55%, transparent) 0 0) left 100% / 100% 1.5px no-repeat;
  padding-block: 3px; transition: background-size .4s var(--e-out);
}
@media (hover: hover) { .link:hover { background-size: 100% 0.45em; } }
.link:focus-visible { background-size: 100% 0.45em; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; height: 210svh; color: var(--star); }
/* the hero's night does not end at a hard edge: it fades out into the sky below */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: var(--tail-h, 62svh); pointer-events: none;
  background: linear-gradient(180deg,
    rgba(5, 6, 13, var(--tail, .7)) 0%, rgba(5, 6, 13, calc(var(--tail, .7) * .94)) 8%,
    rgba(5, 6, 13, calc(var(--tail, .7) * .8)) 18%, rgba(5, 6, 13, calc(var(--tail, .7) * .6)) 30%,
    rgba(5, 6, 13, calc(var(--tail, .7) * .38)) 44%, rgba(5, 6, 13, calc(var(--tail, .7) * .2)) 60%,
    rgba(5, 6, 13, calc(var(--tail, .7) * .07)) 78%, rgba(5, 6, 13, 0) 100%);
}
.hero__stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.hero__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: opacity .8s var(--e-soft); }
html.earth-ready .hero__still { opacity: 0; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 75% at 0% 50%, rgba(5, 6, 13, .78) 0%, rgba(5, 6, 13, .35) 45%, rgba(5, 6, 13, 0) 70%),
    linear-gradient(0deg, rgba(5, 6, 13, .7) 0%, rgba(5, 6, 13, .7) 10%, rgba(5, 6, 13, .55) 18%, rgba(5, 6, 13, .3) 27%, rgba(5, 6, 13, .1) 36%, rgba(5, 6, 13, 0) 46%);
}
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-rows: 1fr auto auto; padding-top: 110px; padding-bottom: clamp(24px, 4vh, 44px);
}
.hero h1 { align-self: end; font-size: var(--t-mega); grid-column: 1 / -1; margin-left: -0.05em; font-weight: var(--wght); }
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 .line + .line { padding-left: 0.62em; }
.hero__lower { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end; margin-top: clamp(22px, 4vh, 48px); }
.hero__lead { grid-column: 1 / span 5; font-size: var(--t-m); line-height: 1.35; color: #d9dae0; max-width: 30ch; }
.hero__cta { grid-column: 7 / span 6; justify-self: end; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hero__meta {
  display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  margin-top: clamp(22px, 4vh, 44px); padding-top: 14px; border-top: 1px solid rgba(244, 242, 238, .18); color: #c9cad2;
}
.hero__meta b { color: var(--star); font-weight: 500; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sodium); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 4px rgba(255, 138, 61, .22); }

@media (max-width: 760px) {
  .hero { height: 170svh; --tail: .78; --tail-h: 40svh; }
  .hero__still { object-position: 30% 8%; }
  .hero__scrim { background: linear-gradient(0deg, rgba(5, 6, 13, .78) 0%, rgba(5, 6, 13, .82) 14%, rgba(5, 6, 13, .6) 42%, rgba(5, 6, 13, 0) 70%); }
  .hero__content { grid-template-rows: 1fr auto auto; padding-top: 90px; }
  .hero h1 { font-size: clamp(3.4rem, 21vw, 7rem); }
  .hero h1 .line + .line { padding-left: 0; }
  .hero__lower { display: block; margin-top: 18px; }
  .hero__lead { font-size: 1.12rem; max-width: 34ch; }
  .hero__cta { justify-content: flex-start; margin-top: 20px; }
  .hero__meta { margin-top: 20px; }
  .hero__meta .hint { display: none; }
}

/* ---------------------------------------------------------------- sections */
.sec { position: relative; }
.sec h2 { font-size: var(--t-xl); }

/* 2 statement */
.statement { position: relative; padding: clamp(96px, 16vh, 200px) 0 clamp(80px, 12vh, 160px); }
.statement p.big {
  grid-column: 1 / span 11; font-size: var(--t-l); line-height: 1.14; letter-spacing: -0.025em;
  font-weight: 500; text-wrap: pretty; text-indent: 4.5em;
}
/* The paragraph reserves the height it needs with the longest city names (site.js), so a new
   name can change the line breaks but never moves anything below it. */
.statement .live-city { font-family: var(--f-mono); font-weight: 500; font-size: .78em; letter-spacing: -0.02em; padding: 0 .3em; border-radius: 6px; background: color-mix(in srgb, var(--ink) 10%, transparent); white-space: nowrap; }
.statement .aside { grid-column: 9 / span 4; margin-top: 40px; color: var(--muted); max-width: 34ch; }
@media (max-width: 760px) {
  .statement { padding: 84px 0 32px; } .index { padding: 16px 0 36px; } .views, .mac { padding: 36px 0; } .facts { padding: 44px 0 20px; } .get { padding: 44px 0 36px; } .faq { padding: 36px 0; }
  .get .get__row { margin-top: 24px; } .steps { margin-top: 28px !important; } .statement .aside { margin-top: 24px; } .mac .mac__small { margin-top: 20px; } .views .wall { row-gap: 22px; }
  .foot .foot__mark { font-size: 29.4vw; margin-block: 28px 18px; }
  .views__head, .index__head { margin-bottom: 24px; }
}
@media (max-width: 760px) { .statement p.big { grid-column: 1 / -1; text-indent: 0; } .statement .aside { grid-column: 1 / -1; } }

/* 3 index */
.index { padding: clamp(40px, 8vh, 120px) 0 clamp(80px, 12vh, 160px); }
.index__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 5vh, 56px); }
.index__head p { max-width: 32ch; color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row__in {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: baseline;
  padding: clamp(18px, 2.6vh, 30px) 0; position: relative;
}
.row h3 { grid-column: 1 / span 4; font-size: var(--t-l); font-weight: 650; font-stretch: 82%; letter-spacing: -0.03em; line-height: 1; transition: translate .5s var(--e-out); }
.row p { grid-column: 5 / span 5; color: var(--muted); max-width: 46ch; }
.row .spec { grid-column: 10 / span 3; justify-self: end; text-align: right; transition: opacity .35s var(--e-soft), translate .5s var(--e-out); }
.row .spec b { display: block; font: 700 var(--t-m)/1 var(--f); font-stretch: 80%; letter-spacing: -0.02em; margin-bottom: 4px; color: var(--ink); }
.row .spec span { color: var(--muted); }
.row .thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .row:hover h3 { translate: 0.4em 0; }
  .row:hover .spec { opacity: 0; translate: 0 -12px; }
}
.preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: clamp(240px, 21vw, 380px); aspect-ratio: 16 / 10;
  pointer-events: none; border-radius: var(--r); overflow: clip; opacity: 0;
  clip-path: inset(100% 0 0 0 round var(--r)); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .row__in { grid-template-columns: 72px 1fr; row-gap: 6px; }
  .row .thumb { display: block; grid-row: 1 / span 3; width: 72px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; align-self: start; }
  .row h3, .row p, .row .spec { grid-column: 2; justify-self: start; text-align: left; }
  .row .spec b { display: inline; font-size: 1rem; margin-right: 6px; }
  .index__head { display: block; } .index__head p { margin-top: 14px; }
}

/* 4 gallery wall */
.views { padding: clamp(60px, 10vh, 140px) 0; }
.views__head { margin-bottom: clamp(32px, 6vh, 72px); }
.views__head p { margin-top: 18px; color: var(--muted); max-width: 40ch; }
.wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: clamp(28px, 6vh, 80px); }
.shot { margin: 0; }
.shot__frame { display: block; overflow: clip; border-radius: var(--r); background: #000; }
.shot__frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: scale 1.1s var(--e-out); }
.shot figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.shot figcaption b { font: 650 1.05rem/1.2 var(--f); letter-spacing: -0.01em; }
.shot figcaption span { color: var(--muted); text-align: right; }
@media (hover: hover) { .shot:hover .shot__frame img { scale: 1.045; } }
.shot--a { grid-column: 1 / span 7; }
.shot--b { grid-column: 9 / span 4; align-self: end; }
.shot--c { grid-column: 2 / span 4; }
.shot--d { grid-column: 7 / span 6; margin-top: 18vh; }
.shot--e { grid-column: 1 / span 5; margin-top: -6vh; }
.shot--f { grid-column: 8 / span 4; align-self: center; }
@media (max-width: 760px) {
  .wall { grid-template-columns: 1fr 1fr; row-gap: 28px; column-gap: 12px; }
  .shot { grid-column: auto !important; margin-top: 0 !important; }
  .shot--a, .shot--d { grid-column: 1 / -1 !important; }
  .shot figcaption { display: block; } .shot figcaption span { display: block; text-align: left; margin-top: 2px; }
}

/* 5 pair */
.mac { padding: clamp(60px, 10vh, 140px) 0; }
.mac__img { grid-column: 1 / span 8; }
.mac__img img, .mac__small img { border-radius: var(--r); box-shadow: 0 40px 90px rgba(0, 0, 0, .28); }
.mac__text { grid-column: 9 / span 4; align-self: end; }
.mac__text h2 { font-size: var(--t-l); line-height: 1; letter-spacing: -0.035em; font-weight: 720; font-stretch: 80%; }
.mac__text p { margin-top: 18px; color: var(--muted); }
.mac__text ul { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line); }
.mac__text li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.mac__text li span:last-child { color: var(--muted); text-align: right; }
.mac__small { grid-column: 5 / span 8; display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); margin-top: clamp(28px, 5vh, 56px); }
.mac__small figcaption { margin-top: 10px; color: var(--muted); font-size: var(--t-s); }
@media (max-width: 900px) {
  .mac__img, .mac__text, .mac__small { grid-column: 1 / -1; }
  .mac__text { margin-top: 32px; }
  .mac__small { grid-template-columns: 1fr; }
}

/* 6 facts */
.facts { padding: clamp(80px, 14vh, 180px) 0; }
.facts ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--g); border-top: 1px solid var(--line); }
.facts li { padding-top: 20px; }
.facts .num { display: block; font-size: clamp(3.2rem, 1rem + 6vw, 8.5rem); font-weight: 760; font-stretch: 76%; letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.facts .num small { font-size: .42em; letter-spacing: -0.02em; margin-left: .06em; }
.facts li p { margin-top: 14px; color: var(--muted); max-width: 26ch; }
@media (max-width: 760px) { .facts ul { grid-template-columns: 1fr 1fr; row-gap: 40px; } }

/* 7 download poster */
.get { padding: clamp(90px, 16vh, 200px) 0 clamp(70px, 12vh, 140px); }
.get h2 { font-size: var(--t-mega); margin-left: -0.05em; }
.get__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); margin-top: clamp(32px, 6vh, 64px); align-items: start; }
.get__cta { grid-column: 1 / span 5; }
.get__cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.get__cta .reqs { margin-top: 18px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.steps { grid-column: 7 / span 6; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 6px 14px; padding: 16px 0; border-top: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 var(--t-xs)/1.9 var(--f-mono); color: var(--muted); }
.steps h3 { font-weight: 650; font-size: 1.15rem; }
.steps p { grid-column: 2; color: var(--muted); }
.help { grid-column: 7 / span 6; margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.help summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 650; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after, .faq summary::after { content: "+"; font: 400 1.6rem/1 var(--f); transition: rotate .4s var(--e-out); }
.help[open] summary::after, .faq details[open] summary::after { rotate: 45deg; }
.help__body { padding: 0 0 22px; color: var(--muted); }
.help__body ol { margin: 0 0 14px; padding-left: 1.2em; color: var(--ink); }
.help__body li { margin: 6px 0; }
.help__body p + p { margin-top: 12px; }
.win { grid-column: 1 / span 5; margin-top: 28px; padding-left: 16px; border-left: 2px solid var(--sodium); color: var(--muted); max-width: 44ch; }
.win b { color: var(--ink); }
@media (max-width: 900px) {
  .get h2 { font-size: clamp(3rem, 17vw, 7rem); }
  .get__cta, .steps, .help, .win { grid-column: 1 / -1; }
  .steps { margin-top: 40px; }
}

/* 8 faq */
.faq { padding: clamp(60px, 10vh, 140px) 0; }
.faq__head { grid-column: 1 / span 4; }
.faq__head h2 { font-size: var(--t-l); line-height: 1; letter-spacing: -0.035em; font-weight: 720; font-stretch: 80%; position: sticky; top: 110px; }
.faq__list { grid-column: 6 / span 7; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: var(--t-m); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; transition: translate .45s var(--e-out); }
.faq summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .faq summary:hover { translate: 0.3em 0; } }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 58ch; }
@media (max-width: 900px) { .faq__head, .faq__list { grid-column: 1 / -1; } .faq__head h2 { position: static; margin-bottom: 24px; } }

/* 9 footer */
.foot { padding: clamp(40px, 8vh, 90px) 0 max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); overflow: clip; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { text-decoration: none; padding: 6px 0; }
@media (hover: hover) { .foot nav a:hover { text-decoration: underline; text-underline-offset: .2em; } }
.foot__mark { pointer-events: none; user-select: none; display: block; font-size: min(32.6vw, 42rem); line-height: .78; margin: clamp(36px, 7vh, 80px) 0 clamp(20px, 4vh, 40px) -0.05em; white-space: nowrap; font-weight: var(--wght); }
.foot__small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--muted); font-size: var(--t-s); }
.foot__small p { max-width: 62ch; }
.foot__small .link { color: var(--inv); background: var(--ink); font-weight: 600; padding: .12em .42em; border-radius: 6px; transition: background-color .3s var(--e-out), color .3s var(--e-out); }
@media (hover: hover) { .foot__small .link:hover { background: var(--sodium); color: var(--deep); } }
.foot__small .link:focus-visible { background: var(--sodium); color: var(--deep); }

/* ---------------------------------------------------------------- inner page + 404 */
.page { padding: 150px 0 100px; }
.page h1 { font-size: var(--t-xl); margin-left: -0.04em; }
.page .lead { font-size: var(--t-m); line-height: 1.35; max-width: 34ch; margin-top: 24px; }
.page section { margin-top: clamp(56px, 10vh, 110px); }
.page h2 { font-size: var(--t-l); font-weight: 720; font-stretch: 80%; letter-spacing: -0.03em; line-height: 1; grid-column: 1 / span 4; }
.page .body { grid-column: 6 / span 7; }
.page .body p + p { margin-top: 16px; }
.page .body p { color: var(--muted); max-width: 62ch; }
.page .body p b { color: var(--ink); }
.credits { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.credits li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px 24px; }
.credits li b { font-weight: 650; }
.credits li span { color: var(--muted); }
.notice { margin-top: 26px; padding-left: 16px; border-left: 2px solid var(--sodium); }
@media (max-width: 900px) { .page h2, .page .body { grid-column: 1 / -1; } .page .body { margin-top: 18px; } .credits li { grid-template-columns: 1fr; } }

.lost { min-height: 100svh; display: grid; align-items: end; background: var(--space) url(../screenshots/views/far-out.jpg) 50% 40% / cover no-repeat; color: var(--star); }
.lost .wrap { padding: 140px 0 clamp(32px, 7vh, 72px); }
.lost h1 { font-size: var(--t-mega); margin-left: -0.05em; }
@media (max-width: 760px) { .lost { background-position: 50% 12%; background-size: auto 78svh; } }
.lost p { font-size: var(--t-m); margin: 20px 0 28px; max-width: 30ch; color: #d9dae0; }

/* ---------------------------------------------------------------- motion states */
[data-rise-img] { overflow: clip; border-radius: var(--r); }
.mac__img, .mac__small figure { background: #05060d; }
.mac__small img { aspect-ratio: 16 / 10; object-fit: cover; }
html.js [data-rise] { visibility: hidden; }
html.js.motion-ready [data-rise] { visibility: visible; }
/* hero intro in CSS, so it starts with the first paint: lines rise over their horizon */
.hero h1 .line { overflow: clip; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero h1 .line > span { display: inline-block; transform-origin: 0 100%; animation: rise 1.5s var(--e-out) both; }
.hero h1 .line + .line > span { animation-delay: .09s; }
[data-intro-soft] { animation: soft 1.1s var(--e-out) both; }
.hero__cta[data-intro-soft] { animation-delay: .5s; } .hero__lead[data-intro-soft] { animation-delay: .42s; } .hero__meta[data-intro-soft] { animation-delay: .6s; }
@keyframes rise { from { translate: 0 112%; rotate: 3deg; } }
@keyframes soft { from { translate: 0 24px; opacity: 0; } }

/* page to page: the next page comes up like a sunrise from the bottom edge */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .7s var(--e-out) both vt-out; }
::view-transition-new(root) { animation: .9s var(--e-out) both vt-in; }
@keyframes vt-out { to { opacity: .4; scale: .97; } }
@keyframes vt-in { from { clip-path: ellipse(160% 0% at 50% 100%); } to { clip-path: ellipse(160% 140% at 50% 100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .roll > span + span { visibility: hidden; }
  .roll > span { translate: none !important; }
  .roll:focus-visible, .roll:hover { text-decoration: underline; text-underline-offset: .25em; }
  .hero { height: auto; }
  .hero__stage { position: relative; height: 100svh; }
  html.js [data-rise] { visibility: visible; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
