@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/schibsted-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/schibsted-grotesk-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/schibsted-grotesk-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/hanken-grotesk-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fragment Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/fragment-mono-latin-400-normal.woff2) format('woff2'); }

/* Layout: a night-sky atlas. Globe and a drifting skyline of real renders up top, then the map, close-ups and code as full-width bands. */
:root {
  --night: #08110f; --deep: #0e1b18; --panel: #13241f; --line: #23382f;
  --ink: #e6efe9; --mute: #8fa59a; --glow: #7ee0b8; --gold: #f1c86b;
  --display: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--night); color: var(--ink); font: 16px/1.6 var(--body); margin: 0; }
a { color: var(--glow); }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
nav { display: flex; align-items: center; gap: 28px; padding-block: 18px; font-size: 14px; flex-wrap: wrap; }
nav .logo { font: 900 20px var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: flex; gap: 8px; align-items: center; }
nav .logo i { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: var(--glow); transform: rotate(-45deg); display: inline-block; box-shadow: 0 0 14px var(--glow); }
nav .links { display: flex; gap: 22px; flex-wrap: wrap; }
nav .links a { color: var(--mute); text-decoration: none; }
nav .links a:hover { color: var(--ink); }
nav .navbtns { margin-left: auto; display: flex; gap: 8px; }
nav .gh { display: inline-flex; align-items: center; gap: 7px; font: 500 13px var(--mono); color: var(--ink); border: 1px solid var(--line); padding: 7px 12px; border-radius: 8px; text-decoration: none; }

.hero { position: relative; overflow: hidden; padding-block: 24px 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.eyebrow { font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
h1 { font: 900 clamp(40px, 6.4vw, 82px)/0.96 var(--display); letter-spacing: -0.045em; margin: 14px 0 20px; text-wrap: balance; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--glow), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 18px; color: var(--mute); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { font: 600 15px var(--body); padding: 12px 20px; border-radius: 10px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--deep); }
.btn.primary { background: var(--glow); color: #05201a; border-color: transparent; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#globe { width: 100%; max-width: 560px; aspect-ratio: 1; display: block; margin-inline: auto; }
.globe-cap { font: 12px var(--mono); color: var(--mute); text-align: center; margin-top: -6px; }
.globe-cap b { color: var(--ink); font-weight: 500; }

.skyline { position: relative; height: 300px; margin-top: 18px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.skyline::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(transparent, var(--night)); }
.track { position: absolute; bottom: 18px; display: flex; align-items: flex-end; gap: 34px; animation: drift 90s linear infinite; padding-left: 20px; }
.track figure { margin: 0; position: relative; flex: none; }
.track img { display: block; width: auto; filter: drop-shadow(0 0 18px rgba(126, 224, 184, 0.12)); }
.track figcaption { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); font: 11px var(--mono); color: var(--mute); white-space: nowrap; opacity: 0; transition: opacity .2s; }
.track figure:hover figcaption { opacity: 1; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }


section { padding-block: 84px 0; }
h2 { font: 900 clamp(28px, 3.6vw, 44px)/1.05 var(--display); letter-spacing: -0.025em; margin: 10px 0 14px; text-wrap: balance; }
.sub { color: var(--mute); max-width: 40em; margin: 0 0 30px; }

.mapbox { position: relative; background: var(--deep); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
#map { width: 100%; display: block; }
.legend { display: flex; align-items: center; gap: 10px; font: 12px var(--mono); color: var(--mute); padding: 6px 12px 10px; flex-wrap: wrap; }
.legend .ramp { width: 200px; height: 8px; border-radius: 4px; }
.tip { position: absolute; pointer-events: none; background: rgba(8, 17, 15, 0.94); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; min-width: 200px; }
.tip b { font: 600 15px var(--display); display: block; }
.tip .row { display: flex; justify-content: space-between; gap: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.tip .bars { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 8px; }

.atlas { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 14px; align-items: start; }
.wheel { background: var(--deep); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px 18px; align-items: center; }
.wheel-head, .wstats { grid-column: 1 / -1; }
.wheel-head b { display: block; font: 700 20px var(--display); letter-spacing: -0.02em; margin-top: 4px; min-height: 1.3em; }
.donut { position: relative; width: 150px; max-width: 100%; }
.donut svg { display: block; width: 100%; height: auto; }
.dcentre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dcentre b { font: 900 22px var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dcentre span { font: 11px var(--mono); color: var(--mute); }
.dleg { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 12.5px; min-width: 0; }
.dleg li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.dleg i { width: 10px; height: 10px; border-radius: 3px; }
.dleg span:last-child { font: 12px var(--mono); color: var(--mute); font-variant-numeric: tabular-nums; }
.wstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.wstats b { font: 900 24px var(--display); letter-spacing: -0.02em; display: block; line-height: 1.1; }
.wstats span { font-size: 12.5px; color: var(--mute); }
.later { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.later div { border: 1px dashed var(--line); border-radius: 14px; padding: 14px 16px; }
.later h3 { font: 700 16px var(--display); margin: 0 0 4px; }
.later p { margin: 0; color: var(--mute); font-size: 14px; }
.soon { font: 10.5px var(--mono); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
.contrib { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.contrib div { background: var(--deep); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.contrib h3 { font: 700 17px var(--display); margin: 0 0 6px; }
.contrib p { margin: 0; color: var(--mute); font-size: 14.5px; }
.contrib .who { font: 11px var(--mono); color: var(--glow); text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 6px; }

.closeups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.closeups figure { margin: 0; border-radius: 14px; overflow: hidden; position: relative; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.closeups img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.closeups figure:hover img { transform: scale(1.06); }
.closeups figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; font-size: 13px; background: linear-gradient(transparent, rgba(5, 12, 10, 0.9)); }

.ages { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; background: var(--deep); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px 16px; margin-top: 14px; overflow-x: auto; }
.ages figure { margin: 0; text-align: center; flex: 1 1 0; min-width: 90px; }
.ages img { max-width: 100%; height: auto; }
.ages figcaption { font: 12px var(--mono); color: var(--mute); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.ages figcaption b { color: var(--ink); font-weight: 500; display: block; }

.code { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
pre { margin: 0; background: var(--deep); border: 1px solid var(--line); border-radius: 14px; padding: 18px; font: 13px/1.6 var(--mono); overflow-x: auto; color: var(--ink); }
pre .k { color: var(--glow); } pre .s { color: var(--gold); } pre .c { color: var(--mute); }
.steps { display: grid; gap: 14px; align-content: start; }
.steps div { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.steps h3 { font: 600 17px var(--display); margin: 0 0 4px; }
.steps p { margin: 0; color: var(--mute); font-size: 14.5px; }

.scenes { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.scenes figure { margin: 0; border-radius: 14px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.scenes figure:first-child { grid-row: span 2; }
.scenes img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scenes figcaption { position: absolute; left: 12px; bottom: 10px; right: 12px; font-size: 12.5px; text-shadow: 0 1px 6px #000; }

.progress { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: radial-gradient(120% 140% at 0% 0%, #163329, var(--deep)); }
.bar { height: 14px; background: var(--night); border-radius: 7px; overflow: hidden; display: flex; margin: 14px 0 10px; }
.bar i { display: block; height: 100%; }
.pl { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--mute); }
.pl span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; background: var(--c); }

footer { margin-top: 100px; border-top: 1px solid var(--line); padding-block: 30px 50px; color: var(--mute); font-size: 13px; display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 860px) {
  .wheel { grid-template-columns: 120px minmax(0, 1fr); } .donut { width: 120px; } .wstats b { font-size: 18px; }
  .hero-grid, .code, .scenes, .atlas, .later { grid-template-columns: minmax(0, 1fr); }
  .contrib { grid-template-columns: minmax(0, 1fr); }
    .scenes figure:first-child { grid-row: auto; }
    .closeups { grid-template-columns: minmax(0, 1fr); }
  .closeups figure { aspect-ratio: 16 / 10; }
    nav .links { order: 3; width: 100%; }
  .skyline { height: 220px; }
}
