@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-wdth-italic.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
}
@font-face { font-family: "Space Mono"; src: url("fonts/space-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/space-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --lime: #e2ff3d;
  --wit: #ffffff;
  --asfalt: #050607;           /* waar de straat naartoe fade */
  --kaart: rgba(10, 14, 20, .72);
  --lucht-1: #031253;          /* diep, stoer blauw zoals de poster */
  --lucht-2: #0a2f9e;
  --lucht-3: #1a5cc9;
  --lucht-4: #4f8fdc;          /* nevel vlak boven de horizon */
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* grof, donker korreltje voor de 'gedrukte poster'-look */
  --grit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* wolkenstructuur voor de regenlucht */
  --wolken: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .012' numOctaves='5' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .83 0 0 0 0 .88 0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--asfalt);
  color: var(--wit);
  font-family: var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lime); }
button { font: inherit; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 32px;
}
body::after { /* grain over de hele pagina (ook over de sneaker): gedrukte-poster-gevoel, zonder naad */
  content: ""; position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: var(--grain); mix-blend-mode: overlay; opacity: 1;
}

/* ---------- DECOR: lucht + straat achter de hele pagina ---------- */
main { position: relative; isolation: isolate; --horizon: 62svh; }
.decor { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.decor::after { /* grit over lucht en straat */
  content: ""; position: absolute; inset: 0; background: var(--grit); opacity: .22; mix-blend-mode: multiply;
}
.sky {
  position: absolute; left: 0; right: 0; top: 0; height: var(--horizon);
  background:
    radial-gradient(120% 70% at 50% 110%, transparent 55%, rgba(0,0,20,.35) 100%),
    linear-gradient(180deg, var(--lucht-1) 0%, var(--lucht-2) 38%, var(--lucht-3) 74%, var(--lucht-4) 100%);
  transition: filter .8s;
}
.sky::before { /* regenwolken, alleen bij NEE */
  content: ""; position: absolute; inset: 0; background: var(--wolken) center / cover;
  opacity: 0; transition: opacity .8s; mix-blend-mode: soft-light;
}
.skyline {
  position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(26px, 5.2vw, 76px);
  color: #0a1a4a;
}
.skyline .bomen { fill: #061338; opacity: .92; filter: blur(.5px); }
.skyline .hek rect, .skyline .lantaarn { fill: #0b1d52; }
.skyline .hek .gaas { opacity: .45; }
.straat {
  position: absolute; left: 0; right: 0; top: var(--horizon); bottom: 0;
  /* Foto loopt in de lengte door (breedte volgt het scherm, min. 900px) en fade onderaan naar zwart. */
  background:
    linear-gradient(180deg, rgba(120,150,210,.28) 0, rgba(120,150,210,0) 30px),
    linear-gradient(180deg, transparent calc(100% - 420px), var(--asfalt) calc(100% - 40px)),
    url("img/straat-900.webp") center top / max(100%, 900px) auto no-repeat,
    var(--asfalt);
}
.straat::after { /* natte glans bij NEE: de lucht spiegelt in het asfalt */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .8s;
  background:
    radial-gradient(60% 22% at 50% 0%, rgba(170,185,210,.35), transparent 100%),
    linear-gradient(180deg, rgba(150,165,190,.18), transparent 35%);
  mix-blend-mode: screen;
}
@media (min-width: 900px) {
  .straat { background-image:
    linear-gradient(180deg, rgba(120,150,210,.28) 0, rgba(120,150,210,0) 40px),
    linear-gradient(180deg, transparent calc(100% - 420px), var(--asfalt) calc(100% - 40px)),
    url("img/straat-1800.webp"); }
}

.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 0;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
}
.merk { font-weight: 700; }
.stempel { color: rgba(255,255,255,.7); display: none; position: absolute; left: 50%; transform: translateX(-50%); }
.locatie {
  justify-self: end;
  background: transparent; color: var(--lime); border: 1px solid rgba(226,255,61,.55);
  border-radius: 99px; padding: 6px 12px; cursor: pointer;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  max-width: 44vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .2s, color .2s;
}
.locatie:hover { background: var(--lime); color: #0b0b0c; }

.zijtekst {
  display: none;
  position: absolute; z-index: 4; right: 18px; top: 50%;
  margin: 0; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--lime);
}

.vraag {
  margin: 66px 0 0;
  font-family: var(--sans); font-style: italic; font-weight: 800; font-stretch: 72%;
  font-size: clamp(1.15rem, 4.8vw, 2rem); line-height: 1; text-align: center;
  text-transform: uppercase; letter-spacing: .03em;
}

.poster { position: relative; width: min(100%, 1180px); display: flex; flex-direction: column; align-items: center; }

.antwoord {
  margin: 3.2vh 0 0; position: relative; z-index: 1;
  font-family: var(--sans); font-style: italic; font-weight: 900; font-stretch: 62%;
  font-size: min(50vw, 22rem); line-height: .76; letter-spacing: -.035em;
  color: var(--lime);
  display: flex; justify-content: center;
}
.antwoord span {
  display: inline-block;
  transform: translateY(var(--y, 0)) rotate(var(--r, 0deg));
  transform-origin: 50% 100%;
  transition: transform .6s cubic-bezier(.2,1.3,.4,1);
}
.laden .antwoord span { animation: puls 1s ease-in-out infinite alternate; }
@keyframes puls { to { opacity: .35; } }

.sneaker-wrap {
  position: relative; z-index: 2;
  width: min(122%, 1000px); aspect-ratio: 16 / 10;
  margin-top: -27vw;
}
.sneaker-still, .sneaker-3d, .sneaker-3d canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.sneaker-still { object-fit: contain; transition: opacity .5s, filter .6s; }
.sneaker-3d { opacity: 0; transition: opacity .6s; }
.sneaker-3d canvas { touch-action: pan-y; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sleept .sneaker-3d canvas { cursor: grabbing; }
.live .sneaker-3d { opacity: 1; }
.live .sneaker-still { opacity: 0; }
.draai-hint {
  position: absolute; left: 50%; top: 79%; transform: translateX(-50%); white-space: nowrap; z-index: 2; pointer-events: none;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.7); opacity: 0; transition: opacity .4s;
}
.live .draai-hint { opacity: 1; animation: hint 1s 6s forwards; }
.sleept .draai-hint, .gedraaid .draai-hint { opacity: 0; animation: none; }
@keyframes hint { to { opacity: 0; } }
.plas {
  position: absolute; left: 14%; right: 14%; top: 62%; height: 16%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150,190,255,.45), rgba(80,120,200,.2) 60%, transparent);
  filter: blur(2px); opacity: 0; transition: opacity .6s;
}

.labels {
  list-style: none; margin: -4px 0 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
  font-family: var(--mono); text-transform: uppercase; position: relative; z-index: 2;
}
.labels li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 3px; align-items: baseline;
  padding-top: 9px; border-top: 1px solid rgba(226,255,61,.45);
}
.labels i { font-style: normal; font-size: .6rem; color: rgba(226,255,61,.6); letter-spacing: .06em; }
.labels b { color: var(--lime); font-size: .76rem; letter-spacing: .06em; }
.labels span { grid-column: 2; font-size: .7rem; color: rgba(255,255,255,.82); letter-spacing: .04em; }

.sub { /* zelfde letter als de vraag bovenaan */
  margin: 26px 0 0; max-width: 22ch; text-align: center; position: relative; z-index: 2;
  font-family: var(--sans); font-style: italic; font-weight: 800; font-stretch: 72%;
  font-size: clamp(1.3rem, 5.6vw, 2.2rem); line-height: 1; text-transform: uppercase;
  letter-spacing: .03em; text-wrap: balance;
}

.acties { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 4; }
.knop {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--lime); color: #0b0b0c;
  font-family: var(--sans); font-weight: 800; font-stretch: 78%; font-style: italic;
  text-transform: uppercase; font-size: 1rem; letter-spacing: .03em;
  padding: 15px 24px; border-radius: 99px; min-height: 52px;
  transition: transform .15s, background .2s, color .2s;
}
.knop::after { content: "→"; font-style: normal; font-family: var(--mono); font-weight: 700; }
.knop:hover { transform: translateY(-2px); }
.knop:active { transform: translateY(1px) scale(.98); }
.knop--ghost { background: transparent; color: var(--wit); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.knop--ghost::after { content: "↗"; }
.knop--ghost:hover { background: var(--wit); color: #0b0b0c; }

/* ---------- STATES ---------- */
.twijfel .sky { filter: saturate(.8) brightness(1.08); }
.nee { --lucht-1: #0d1119; --lucht-2: #1e2531; --lucht-3: #3a4453; --lucht-4: #5d6877; }
.nee .sky::before { opacity: .9; }
.nee .skyline .bomen, .nee .skyline .hek rect, .nee .skyline .lantaarn { fill: #10141b; }
.nee .straat::after { opacity: 1; }
.nee .straat { filter: contrast(1.1) brightness(.95); }
.nee .antwoord { color: #d8f23a; }
.nee .sneaker-still { filter: saturate(.5) brightness(.85) sepia(.25); }
.twijfel .plas, .nee .plas { opacity: 1; }
.sky { transition: filter .8s, background .8s; }

/* Regen: canvas over de hele pagina, getekend door regen.js */
.regen {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none;
  opacity: 0; transition: opacity .8s;
}
.regen.aan { opacity: 1; }

/* ---------- ONDER ---------- */
.onder {
  padding: 8px 16px 40px;
  display: grid; gap: 16px;
  max-width: 720px; margin: 0 auto;
}
.grap {
  margin: 12px 0 8px; font-style: italic; font-weight: 700; font-stretch: 80%;
  font-size: clamp(1.3rem, 5vw, 1.9rem); line-height: 1.15; text-wrap: balance;
}
.grap::before { content: "“"; color: var(--lime); }
.grap::after { content: "”"; color: var(--lime); }
.kaart {
  background: var(--kaart); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 18px 18px 16px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.kaart h2 {
  margin: 0 0 8px; color: var(--lime);
  font-family: var(--mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
}
.kaart p { margin: 0 0 8px; line-height: 1.5; color: #d9d9de; }
.morgen__antwoord {
  font-style: italic; font-weight: 900; font-stretch: 62%; font-size: 3.2rem; line-height: 1;
  color: var(--wit) !important; margin: 0 0 4px !important;
}
.regels { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.regels li { padding-left: 22px; position: relative; line-height: 1.4; color: #d9d9de; }
.regels li::before { content: "→"; position: absolute; left: 0; color: var(--lime); font-family: var(--mono); }
.faq details { border-top: 1px solid rgba(255,255,255,.1); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; padding-top: 4px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-family: var(--mono); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 8px 0 0; }

.eigenwijs { border: 2px solid var(--lime); border-radius: 18px; padding: 18px; background: var(--kaart); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.eigenwijs p { margin: 0 0 10px; }
.eigenwijs__kop { font-style: italic; font-weight: 900; font-stretch: 70%; font-size: 1.8rem; text-transform: uppercase; color: var(--lime); line-height: 1; }

/* Advertentie-/affiliateplekken: onzichtbaar live, zichtbaar in dev */
.slot { display: none; }
.dev .slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 110px; border: 2px dashed #45454b; border-radius: 14px; color: #77777f;
  font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: 12px;
}

.voet {
  text-align: center; padding: 24px 16px calc(28px + env(safe-area-inset-bottom));
  font-family: var(--mono); font-size: .75rem; color: #8b8b93; text-transform: uppercase; letter-spacing: .05em;
}
.voet p { margin: 4px 0; }
.voet .klein { text-transform: none; }

/* ---------- DESKTOP: labels rondom de sneaker, zoals op een poster ---------- */
@media (min-width: 600px) {
  .stempel { display: block; }
}
@media (min-width: 600px) and (max-width: 859px) { /* tablet */
  .sneaker-wrap { width: 104%; margin-top: -21vw; }
  .labels { margin-top: -8vw; }
}
@media (min-width: 860px) {
  .zijtekst { display: block; }
  .vraag { margin-top: 76px; }
  .antwoord { margin-top: 4vh; font-size: min(28vw, 25rem, 35vh); }
  .sneaker-wrap { margin-top: min(-15vw, -22vh); width: min(78%, 900px); }
  .labels { position: absolute; inset: 0; display: block; margin: 0; pointer-events: none; }
  .labels li { pointer-events: auto; }
  .labels li { position: absolute; width: 210px; }
  .labels b { font-size: .86rem; }
  .labels span { font-size: .76rem; }
  .labels .l1 { left: 1%; top: 30%; }
  .labels .l2 { right: 1%; top: 30%; }
  .labels .l3 { left: 4%; bottom: 13%; }
  .labels .l4 { right: 4%; bottom: 13%; }
  .labels li::after { /* haarlijn richting de sneaker */
    content: ""; position: absolute; top: -1px; width: 60px; height: 1px; background: rgba(226,255,61,.45);
  }
  .labels .l1::after, .labels .l3::after { left: 100%; }
  .labels .l2::after, .labels .l4::after { right: 100%; }
  .labels li::before {
    content: ""; position: absolute; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
  }
  .labels .l1::before, .labels .l3::before { left: calc(100% + 60px); }
  .labels .l2::before, .labels .l4::before { right: calc(100% + 60px); }
  .sub { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .live .draai-hint { animation: none; opacity: 0; }
  .antwoord span { transition: none; }
}

/* ?og=1 — alleen gebruikt om og.png te maken */
.og .locatie, .og .labels, .og .acties, .og .draai-hint, .og .stempel, .og .zijtekst { display: none; }
.og .sub { margin-top: 18px; }
.og .sneaker-wrap { width: 60%; margin-top: -11vw; }
