/* Whole Earth View — wholeearthview.com
   Dezelfde taal als de app: wit, zwart, één grijs, strakke kapitalen,
   Georgia-cursief als accent (alleen citaten en titels), vierkante beelden. Weinig, maar precies. */
:root {
  --fg: #111;
  --muted: #8a8a8a;
  --soft: #f4f4f4;
  --line: #e6e6e6;
  --bg: #fff;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --wide: 1120px;
  --text: 660px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: #111; color: #fff; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 16px; }

/* ---------- kop ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-in { max-width: var(--wide); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.logo { font-weight: 800; letter-spacing: .2em; font-size: 20px; text-decoration: none; margin-right: auto; white-space: nowrap; }
@media (max-width: 480px) { .site-head .logo { font-size: 16px; letter-spacing: .14em; } }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
/* taalkeuze: de taalcode als gewoon menu-item; open je hem, dan de zeven talen in hun eigen naam */
.site-head details.langsw { position: relative; border: 0; padding: 0; }   /* niet de lijnen van de veelgestelde vragen */
.langsw > summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--muted); padding: 8px 0; user-select: none; display: flex; align-items: center; gap: 5px; transition: color .2s; }
.langsw > summary::-webkit-details-marker { display: none; }
.langsw > summary::after { content: ""; position: static; font-size: 0; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.langsw[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.langsw > summary:hover, .langsw[open] > summary { color: var(--fg); }
.langsw > .langmenu { color: var(--fg); position: absolute; right: -16px; top: calc(100% + 6px); background: var(--bg); border: 1px solid var(--line); padding: 8px 0; min-width: 160px; z-index: 60; }
.langmenu a { display: block; padding: 6px 16px; font-size: 15px; text-decoration: none; color: var(--muted); transition: color .2s; }
.langmenu a:hover, .langmenu a[aria-current] { color: var(--fg); }
.langmenu a[aria-current] { font-weight: 700; }
.vertaald { margin: 14px 0 0; }
.foot-in + .foot-base + .vertaald { max-width: var(--wide); margin: 10px auto 0; padding: 0 24px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin: 0 -8px 0 0; cursor: pointer; color: var(--fg); }
@media (max-width: 760px) {
  .head-in { gap: 14px; }
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 64px 0 auto 0; background: #fff; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: 15px; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
}

/* ---------- algemene blokken ---------- */
main { display: block; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.col { max-width: var(--text); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line); }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin: 0 0 14px; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 22px; }
h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: 0; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; color: #333; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.btn { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 15px 22px; background: var(--fg); color: #fff; text-decoration: none; border: 1.5px solid var(--fg); transition: transform .15s var(--ease), background-color .2s, color .2s; }
.btn:hover { text-decoration: none; background: #fff; color: var(--fg); }
.btn:active { transform: scale(.97); }
.btn.line { background: none; color: var(--fg); }
.btn.line:hover { background: var(--fg); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 13px; color: var(--muted); }

/* ---------- opening ---------- */
/* Zwart, zoals de aarde in de ruimte. De aarde uit NASA-foto's draait heel langzaam (opening.js, gedeeld met de app). */
/* net iets lager dan het scherm: onderaan blijft altijd een randje wit staan, zodat je ziet dat er meer is */
.hero { position: relative; box-sizing: border-box; min-height: calc(100svh - 64px - 44px); display: flex; flex-direction: column; padding: clamp(12px, 2.5svh, 48px) 0 62px; text-align: center;
  background: #000; color: #f3f3f1; --muted: #8b9097; --line: #2a2d31;
  --rest: min(562px, 446px + 8vw); }
@media (max-width: 600px) { .hero { --rest: calc(472px + 7.6vw); } }   /* op de telefoon staat de datum onder de aarde */   /* alles behalve de aarde, met kop en randje; de titel groeit mee met de breedte */
.hero > .wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; gap: clamp(12px, 2.4svh, 30px); }
.hero ::selection { background: #f3f3f1; color: #000; }
.hero .titel { display: flex; flex-direction: column; align-items: center; gap: .35em; will-change: transform; }
/* WHOLE EARTH VIEW is precies zo breed als de tagline (opening.js zet de grootte) */
.hero .word { font-size: clamp(46px, min(9vw, 9svh), 92px); font-weight: 800; letter-spacing: .22em; margin: 0 -.22em 0 0; line-height: .9; white-space: nowrap; }
.hero .tag { font-size: clamp(11px, 1.55vw, 17px); font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: #c9c9c4; margin: 0 -.34em .55em 0; white-space: nowrap; }
/* de aarde krijgt wat er over is, zodat alles samen met het witte randje op één scherm past */
.hero .earth { position: relative; width: min(76vw, 42svh, 440px, max(140px, 100svh - var(--rest))); aspect-ratio: 1; max-width: 100%; will-change: transform, opacity; }
.hero .earth canvas, .hero .earth img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .earth img { display: none; }
.hero .earth.zonder-gl img { display: block; } .hero .earth.zonder-gl canvas { display: none; }
/* de dag van de NASA-foto's: onderaan gelijk met de aarde, rechts gelijk met WHOLE EARTH VIEW en de tagline */
.hero .datum { position: absolute; right: 0; bottom: 0; text-align: right; font-size: 7.5px; line-height: 1.5; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); opacity: .6; white-space: nowrap; pointer-events: none; }
/* slotzin, opgebouwd als de titel (zoals in de app): een kleine gespatieerde aanloop, daaronder groot en zwaar, ~1/3 van WHOLE EARTH VIEW */
.hero .goal { text-transform: uppercase; color: #f3f3f1; margin: 0; text-align: center; }
.hero .goal .g1 { display: block; font-size: clamp(11px, 1.2vw, 14px); font-weight: 600; letter-spacing: .3em; color: #c9c9c4; margin: 0 -.3em .6em 0; white-space: nowrap; }
.hero .goal .g2 { display: block; font-size: clamp(20px, min(3vw, 3svh), 31px); font-weight: 800; letter-spacing: .04em; line-height: 1.1; text-wrap: balance; }
.stats { display: flex; justify-content: center; gap: clamp(24px, 7vw, 64px); }
.stats div { display: flex; flex-direction: column; align-items: center; }
.stats b { font-size: clamp(20px, 3.4vw, 30px); font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stats span { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.hero .note { margin: 0; color: var(--muted); }
.o-uit { opacity: 0 !important; }
/* eerste bezoek: alles wacht op de opbouw (het scriptje in de kop zet dit aan) */
.o-speel .hero [data-o]:not([data-o="titel"]) { opacity: 0; }
/* scroll-hint: een rondje met pijl precies op de grens van zwart en wit, verdwijnt zodra je scrolt */
.cue { position: absolute; z-index: 5; left: 50%; bottom: -22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); transition: opacity .5s var(--ease), color .2s; }
.cue span { font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.cue i { position: relative; display: block; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #000; animation: duw 2.2s var(--ease) 1s infinite; }
.cue i::after { content: ""; position: absolute; left: 50%; top: 45%; width: 10px; height: 10px; border: solid #000; border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg); }
.cue:hover { color: #fff; }
.cue:hover i { animation-play-state: paused; }
.cue.gone { opacity: 0; pointer-events: none; }
/* voorpagina: de kop is zwart zolang hij over de opening ligt */
.home .site-head { transition: border-color .3s, background-color .3s, color .3s; }
.home .site-head:not(.past) { background: rgba(0,0,0,.94); color: #f3f3f1; border-bottom-color: transparent; }
.home .site-head:not(.past) .nav a { color: #8b9097; }
.home .site-head:not(.past) .nav a:hover { color: #fff; }
.home .site-head:not(.past) .langsw > summary { color: #8b9097; }
.home .site-head:not(.past) .langsw > summary:hover, .home .site-head:not(.past) .langsw[open] > summary { color: #fff; }
.home .site-head:not(.past) .menu-btn { color: #f3f3f1; }
@media (max-width: 760px) {
  .home .site-head:not(.past) .nav { background: #000; border-bottom-color: #2a2d31; }
  .home .site-head:not(.past) .nav a { border-bottom-color: #2a2d31; }
}
@keyframes duw { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(5px); } }
#kijken, #look { scroll-margin-top: 64px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- twee kolommen ---------- */
.stil-aarde { display: flex; justify-content: center; }
/* de stille aarde vult haar kolom: breed scherm tot 460px, op telefoon en tablet (één kolom) iets kleiner dan de tekst breed is */
.stil-aarde img { width: min(100%, 460px); height: auto; aspect-ratio: 1; opacity: .92; clip-path: circle(48.5%); }
@media (max-width: 860px) { .stil-aarde img { width: min(78vw, 380px); } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* hetzelfde woord, een andere blik */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trio figure { margin: 0; }
.trio img, .trio .you { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.trio .you { border: 1.5px dashed #bbb; background: none; display: grid; place-items: center; font-size: 34px; font-weight: 300; color: #999; }
.trio figcaption { font-size: 13px; margin-top: 8px; line-height: 1.35; }
.trio figcaption b { display: block; font-size: 15px; }
.trio figcaption span { color: var(--muted); }
.trio-word { font-size: 28px; font-weight: 800; letter-spacing: .03em; margin-bottom: 14px; }

/* stappen */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; margin-top: 44px; }
.steps > div { border-top: 2px solid var(--fg); padding-top: 18px; }
.steps > div::before { counter-increment: s; content: "0" counter(s); display: block; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--muted); margin-bottom: 14px; }
.steps p { color: #444; font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* beelden uit de wereld */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; margin-top: 44px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.gallery figcaption { margin-top: 10px; font-size: 14px; line-height: 1.35; }
.gallery figcaption b { font-size: 17px; letter-spacing: .03em; text-transform: uppercase; }
.gallery figcaption .tr { color: var(--muted); }
.gallery figcaption small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* één woord, duizenden talen */
.wordtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 30px; }
.wordtabs button { font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 9px 13px; background: none; border: 1.5px solid var(--line); color: var(--muted); cursor: pointer; transition: all .2s; }
.wordtabs button:hover { border-color: var(--fg); color: var(--fg); }
.wordtabs button[aria-selected="true"] { background: var(--fg); border-color: var(--fg); color: #fff; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 36px; border-top: 1px solid var(--line); }
.wall div { padding: 14px 0 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wall b { font-size: 19px; overflow-wrap: anywhere; }
.wall i { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.wall span { flex: none; max-width: 48%; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; text-align: right; }
.wall-count { margin-top: 18px; }

/* verdeling van woorden over talen */
.bars { margin-top: 36px; }
.bar { display: grid; grid-template-columns: 210px 1fr 70px; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.bar .t { height: 10px; background: var(--soft); position: relative; }
.bar .t i { position: absolute; inset: 0 auto 0 0; background: var(--fg); transform-origin: left; }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .bar { grid-template-columns: 1fr 64px; } .bar .t { grid-column: 1 / -1; order: 3; } }

/* principes */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin-top: 40px; }
.principles > div { padding: 22px 0; border-top: 1px solid var(--line); }
.principles p { color: #444; font-size: 16px; margin: 0; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* schouders */
.shoulders { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-top: 40px; }
.shoulders p { font-size: 16px; color: #444; }
@media (max-width: 760px) { .shoulders { grid-template-columns: 1fr; gap: 24px; } }

/* slot */
.closing { text-align: center; }

/* ---------- tekstpagina's ---------- */
.page-head { padding: 80px 24px 40px; }
.page-head h1 { font-size: clamp(36px, 6vw, 60px); }
.page-head .lead { margin-top: 20px; }
.prose { padding-bottom: 96px; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 56px 0 14px; }
.prose h3 { margin-top: 32px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--fg); font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; }
.prose blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose .ai-lijst li { margin-bottom: 14px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; hyphens: auto; }
.prose th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.draft { background: var(--soft); border-left: 3px solid #c58a1b; padding: 14px 18px; font-size: 14px; margin: 0 0 36px; }
.toc { font-size: 15px; columns: 2; column-gap: 40px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.toc a { display: block; text-decoration: none; padding: 3px 0; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 600px) { .toc { columns: 1; } }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 30px 16px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 24px; font-weight: 300; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 0 18px; color: #444; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.cards > div { border: 1.5px solid var(--line); padding: 22px; }
.cards p { font-size: 15px; color: #444; margin-bottom: 0; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.factlist { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 16px 0 24px; }
.factlist div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.factlist b { display: block; font-size: 24px; }
.factlist span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* ---------- voet ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; }
.foot-in { max-width: var(--wide); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-in .logo { display: inline-block; margin-bottom: 10px; }
.foot-in .tagline { font-size: 11px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: #555; margin: 0 0 10px; }
.foot-in ul { list-style: none; margin: 0; padding: 0; }
.foot-in li { margin-bottom: 8px; }
.foot-in a { text-decoration: none; color: #444; }
.foot-in a:hover { color: var(--fg); text-decoration: underline; }
.foot-in h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.foot-base { max-width: var(--wide); margin: 40px auto 0; padding: 22px 24px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > div:first-child { grid-column: 1 / -1; } }

/* ---------- beweging ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- de iPhone-app: icoon, naam en App Store, klein en rustig ---------- */
.appget { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; text-decoration: none; color: inherit; }
.appget img { width: 52px; height: 52px; border-radius: 23%; box-shadow: 0 0 0 1px var(--line); flex-shrink: 0; }
.appget b { display: block; font-size: 15px; line-height: 1.3; }
.appget > span > span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
a.appget:hover b { text-decoration: underline; text-underline-offset: 3px; }
.appget.klein { gap: 12px; margin-top: 14px; }
.appget.klein img { width: 40px; height: 40px; }
.appget.klein b { font-size: 14px; }
