/* ==========================================================================
   do we actually need more? — stylesheet
   Huisstijl: mist (grond), steen (inkt), water (alleen de kern van het symbool).
   Geist Mono voor koppen en vragen, altijd onderkast. Newsreader voor lopende tekst.
   Mobile-first; de meeste bezoekers komen via de in-app browser van Instagram.
   ========================================================================== */

/* 1. Lettertypes (zelf gehost)
   ========================================================================== */
@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/geist-mono-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/geist-mono-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-300-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* 2. Tokens
   ========================================================================== */
:root {
  --mist: #dce0db;
  --water: #5e8577;
  --stone: #263033;

  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 5vw, 56px);
  --line: 1px solid var(--stone);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 3. Basis
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--mist);
  color: var(--stone);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--stone);
  font: 400 18px/1.55 var(--serif);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--stone);
  color: var(--mist);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--stone);
  outline-offset: 3px;
}

html:not(.js) .js-only {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* 4. Typografie (huisstijl 03)
   ========================================================================== */
.label {
  margin: 0;
  font: 400 10px/1.5 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kop {
  font: 500 clamp(22px, 5.4vw, 30px)/1.2 var(--mono);
  letter-spacing: -0.05em;
}

.quote {
  font: 300 italic clamp(19px, 4.6vw, 22px)/1.45 var(--serif);
}

/* 5. Track en stage
   De track geeft de scrollafstand, de stage blijft ondertussen in beeld.
   ========================================================================== */
.track {
  position: relative;
}

.js .track {
  height: 1000vh;
  height: 1000svh;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.js .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
}

.hud {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 0;
  pointer-events: none;
}

.hud .label {
  background: var(--mist);
  padding: 3px 6px;
  margin-inline: -6px;
}

.question {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: var(--gutter);
  right: var(--gutter);
  margin: 0;
  transform: translateY(-58%);
  font: 500 clamp(38px, 11vw, 120px)/0.98 var(--mono);
  letter-spacing: -0.06em;
  outline: none;
}

.hint {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hint::after {
  content: "";
  width: 1px;
  height: 40px;
  background: var(--stone);
  transform-origin: top;
  animation: hint 2.4s var(--ease) infinite;
}

@keyframes hint {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* 6. Dingen
   Kaartjes steen op mist; later in de reeks steeds vaker omgekeerd,
   zodat het scherm vol inkt loopt.
   ========================================================================== */
.things {
  position: absolute;
  z-index: 2;
  inset: 0;
}

html:not(.js) .things,
html:not(.js) .note,
html:not(.js) .closing {
  display: none;
}

.thing {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: center;
  will-change: transform;
}

.thing-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 8px;
  background: var(--mist);
  color: var(--stone);
  border: var(--line);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}

.thing.is-in .thing-inner {
  opacity: 1;
  transform: none;
}

.thing.is-out .thing-inner {
  opacity: 0;
  transform: scale(0.92);
  transition-duration: 0.3s;
}

.thing.is-ink .thing-inner {
  background: var(--stone);
  color: var(--mist);
}

.thing svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--sw, 1.5);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thing .label {
  line-height: 1.35;
}

.thing.is-word .thing-inner {
  padding: 0.2em 0.45em 0.25em;
  font: 500 clamp(15px, 4vw, 24px)/1.1 var(--mono);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

/* 7. Notities
   ========================================================================== */
.note {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  max-width: min(30ch, calc(100% - 2 * var(--gutter)));
  margin: 0;
  padding: 12px 14px;
  background: var(--mist);
  border: var(--line);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.note.is-on {
  opacity: 1;
  transform: none;
}

.note-have {
  bottom: calc(16% + env(safe-area-inset-bottom));
}

.note-notice {
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  padding: 18px 22px;
  text-align: center;
  transform: translate(-50%, calc(-50% + 8px));
}

.note-notice.is-on {
  transform: translate(-50%, -50%);
}

/* 8. Afsluiting: alles trekt samen tot het symbool
   ========================================================================== */
.closing {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vh, 36px);
  padding: 72px var(--gutter);
  text-align: center;
  pointer-events: none;
}

.rings {
  width: clamp(140px, 40vmin, 220px);
  height: auto;
  overflow: visible;
  transform: rotate(-90deg); /* ringen tekenen vanaf boven */
}

.rings .ring {
  fill: none;
  stroke: var(--stone);
  stroke-width: 5;
  visibility: hidden; /* js tekent ze */
}

.rings .core {
  fill: var(--water);
}

.closing-quote,
.closing-ask {
  margin: 0;
  opacity: 0;
}

.closing-quote {
  max-width: 30ch;
}

.closing-ask {
  max-width: 22ch;
}

/* 9. Scènes: elk scherm één gedachte
   ========================================================================== */
.scene {
  position: relative;
}

.js .scene {
  height: calc(var(--h) * 1vh);
  height: calc(var(--h) * 1svh);
}

.scene-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(18px, 3.2vh, 32px);
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 64px;
  padding-inline: var(--gutter);
  overflow: hidden;
}

.js .scene-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
}

.js [data-at] {
  opacity: 0;
}

.scene-line,
.scene-big,
.scene-kop,
.scene-stat {
  position: relative;
  z-index: 1;
  margin: 0;
}

.scene-line {
  max-width: 26ch;
  font: 400 clamp(21px, 5.2vw, 34px)/1.35 var(--serif);
}

.scene-line > span {
  display: block;
}

.scene-big {
  max-width: 16ch;
  font: 500 clamp(34px, 9vw, 88px)/1.02 var(--mono);
  letter-spacing: -0.06em;
  text-transform: lowercase;
}

.scene-kop {
  max-width: 24ch;
  font: 500 clamp(24px, 6vw, 48px)/1.15 var(--mono);
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.on-mist {
  padding: 0 0.15em;
  background: var(--mist);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.scene-things {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

/* attention / desire / friction / conversion */
.skills {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill {
  position: relative;
  width: max-content;
  font: 500 clamp(40px, 11vw, 104px)/1.05 var(--mono);
  letter-spacing: -0.06em;
}

.badge {
  position: absolute;
  top: 0.12em;
  left: 100%;
  min-width: 26px;
  margin-left: 4px;
  padding: 5px 7px;
  background: var(--stone);
  color: var(--mist);
  border-radius: 999px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0;
  text-align: center;
  visibility: hidden;
}

.friction {
  display: inline-block;
  will-change: transform;
}

.offer {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: 12vh;
  width: clamp(110px, 28vw, 190px);
  perspective: 800px;
}

.offer-card {
  position: relative;
  transform-style: preserve-3d;
}

.offer-face {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.offer-front {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 8px;
  background: var(--stone);
  color: var(--mist);
  border: var(--line);
}

.offer-front svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offer-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 10px;
  background: var(--mist);
  border: var(--line);
  font: 500 clamp(15px, 3.6vw, 22px)/1.2 var(--mono);
  letter-spacing: -0.04em;
  text-align: center;
  transform: rotateY(180deg);
}

/* knowing ··· doing */
.gap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-block: clamp(8px, 3vh, 32px);
}

.gap-word {
  font: 500 clamp(18px, 5vw, 40px)/1 var(--mono);
  letter-spacing: -0.05em;
}

.gap-track {
  position: relative;
  flex: 1;
  height: 1px;
}

.gap-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--stone);
}

.gap-line::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 0;
  width: 1px;
  height: 11px;
  background: var(--stone);
}

/* Visie: donker scherm en film */
.scene-dark .scene-stage,
.scene-film .scene-stage {
  background: var(--stone);
  color: var(--mist);
}

.scene-film .scene-stage {
  justify-content: flex-end;
  padding-block: 0;
}

.clip {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
}

html:not(.js) .clip {
  display: none;
}

.clip video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Beschrijving van het shot, zichtbaar zolang er geen video is */
.clip-shot {
  position: absolute;
  z-index: 0;
  top: 38%;
  left: var(--gutter);
  right: var(--gutter);
  padding: 18px;
  border: 1px dashed var(--mist);
  text-align: center;
}

.film-text {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  padding-bottom: calc(10vh + env(safe-area-inset-bottom));
}

.film-text > * {
  grid-area: 1 / 1;
  align-self: end;
}

.on-stone {
  padding: 0 0.15em;
  background: var(--stone);
  color: var(--mist);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.core-dot {
  display: block;
  width: 18px;
  height: 18px;
  background: var(--water);
  border-radius: 50%;
}

/* 10. Einde
   ========================================================================== */
.end {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(72px, 14vh, 140px);
  padding-inline: var(--gutter);
  border-top: var(--line);
}

.end-inner {
  width: 100%;
  max-width: 44rem;
}

.closing-copy {
  max-width: 36rem;
  margin: 0 0 48px;
}

.closing-copy p {
  margin: 0 0 0.9em;
}

.closing-kop {
  margin: 0 0 28px;
  text-transform: lowercase;
}

/* Aanmeldformulier */
.join {
  max-width: 36rem;
  margin: 0 0 72px;
}

.join-row {
  display: flex;
  margin-top: 8px;
  border: var(--line);
}

.join input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  background: var(--mist);
  color: var(--stone);
  border: 0;
  border-radius: 0;
  font: 400 16px/1 var(--mono);
  -webkit-appearance: none;
  appearance: none;
}

.join input:focus-visible {
  outline: 2px solid var(--stone);
  outline-offset: -4px;
}

.join button {
  width: 56px;
  background: var(--stone);
  color: var(--mist);
  border: 0;
  border-radius: 0;
  font: 500 20px/1 var(--mono);
  cursor: pointer;
}

.join-status {
  min-height: 1.5em;
  margin-top: 10px;
}

.end-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 48px;
}

.sign {
  width: 28px;
  height: 28px;
}

.again {
  margin-left: auto;
  padding: 12px 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.again:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 11. Minder beweging
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
