/* Proef 007: openingspagina. DESIGN_PROOF_NOT_PRODUCT.
   Tokens volgen de NMF-canon (02-TOKENS-MATERIALS-AND-DEPTH.md), light en dark. */

:root {
  color-scheme: light dark;

  --color-canvas: #e0e5ec;
  --color-surface-raised: #edf0f5;
  --color-surface-elevated: #ffffff;
  --color-surface-edge: transparent;
  --color-text-primary: #2d3748;
  --color-text-secondary: #4a5568;
  --color-brand: #004bff;
  --color-brand-hover: #003ad6;
  --color-brand-edge: #004bff;
  --color-brand-text: #004bff;
  --color-on-brand: #ffffff;
  --color-edge: #606b7e;
  --color-dot-mid: #8e99ab;
  --color-dot-soft: #b6bfcc;
  --color-focus-outer: #004bff;
  --color-focus-inner: #ffffff;

  --depth-high: -10px -10px 20px rgba(255, 255, 255, .88), 10px 10px 20px rgba(163, 177, 198, .65);
  --depth-low: -6px -6px 12px rgba(255, 255, 255, .80), 6px 6px 12px rgba(163, 177, 198, .55);
  --depth-press: inset 3px 3px 6px rgba(163, 177, 198, .45), inset -3px -3px 6px rgba(255, 255, 255, .85);

  --font-display: "Orbitron", sans-serif;
  --font-body: "Inter", sans-serif;

  --type-hero: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
  --type-section: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
  --type-sub: 1.125rem;
  --type-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --type-body: 1.0625rem;
  --type-small: .875rem;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-section: clamp(3rem, 2.25rem + 3.5vw, 5rem);

  --radius-panel: 20px;
  --radius-field: 12px;
  --radius-chip: 8px;
  --radius-pill: 9999px;
  --line-edge: 1.5px;

  --dur-fast: 160ms;
  --dur-draw: 900ms;
  --dur-reveal: 300ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-draw: cubic-bezier(.45, 0, .25, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-canvas: #1a1b1e;
    --color-surface-raised: #22232a;
    --color-surface-elevated: #2a2b2f;
    --color-surface-edge: rgba(255, 255, 255, .14);
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0aec0;
    --color-brand-hover: #2f66ff;
    --color-brand-edge: #4d83ff;
    --color-brand-text: #6b9aff;
    --color-edge: #8e99ab;
    --color-dot-mid: #6b7689;
    --color-dot-soft: #4a5568;
    --color-focus-outer: #ffffff;
    --color-focus-inner: #004bff;

    --depth-high: -8px -8px 18px rgba(255, 255, 255, .045), 8px 8px 18px rgba(0, 0, 0, .60);
    --depth-low: -5px -5px 10px rgba(255, 255, 255, .035), 5px 5px 10px rgba(0, 0, 0, .50);
    --depth-press: inset 3px 3px 8px rgba(0, 0, 0, .50), inset -3px -3px 8px rgba(255, 255, 255, .035);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

p,
dd {
  max-width: 58ch;
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--color-focus-outer);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--color-focus-inner);
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -6rem;
  z-index: 2;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-surface-elevated);
  font-weight: 600;
}

.skip:focus {
  top: var(--space-4);
}

.wrap {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

.display,
.steps h3,
.meet__how {
  word-spacing: .12em;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.005em;
  text-wrap: balance;
}

.section {
  padding-block: var(--space-section);
}

.section__title {
  font-size: var(--type-section);
}

.section__lead {
  margin-top: var(--space-4);
  font-size: var(--type-lead);
}

.muted {
  color: var(--color-text-secondary);
}

.small {
  font-size: var(--type-small);
  line-height: 1.5;
}

/* Knoppen en links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: var(--space-3) var(--space-5);
  border: var(--line-edge) solid var(--color-edge);
  border-radius: var(--radius-pill);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--depth-low);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.button--primary {
  border-color: var(--color-brand-edge);
  background: var(--color-brand);
  color: var(--color-on-brand);
}

.button--primary:hover {
  border-color: var(--color-brand-hover);
  background: var(--color-brand-hover);
}

.button--secondary {
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
}

.button--secondary:hover {
  border-color: var(--color-text-primary);
  background: var(--color-surface-raised);
}

.button:active {
  box-shadow: var(--depth-press);
}

.button:focus-visible {
  box-shadow: 0 0 0 3px var(--color-focus-inner);
}

.textlink {
  display: inline-block;
  padding-block: var(--space-3);
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .25em;
}

.textlink:hover {
  text-decoration-thickness: 3px;
}

p .textlink {
  display: inline;
  padding-block: 1rem;
}

/* Kop van de pagina */

.top {
  padding-block: var(--space-5);
}

.top__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
}

.brand {
  display: block;
  margin-left: -.6rem;
  border-radius: var(--radius-chip);
}

.brand img {
  display: block;
  width: auto;
  height: 3.75rem;
}

.top__phone {
  white-space: nowrap;
}

/* Opening */

.hero {
  padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) var(--space-section);
}

.hero__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.hero__title {
  font-size: var(--type-hero);
}

.hero__lead {
  margin-top: var(--space-5);
  font-size: var(--type-lead);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.wheel {
  position: relative;
  container-type: inline-size;
  width: min(96%, 32rem);
  margin-inline: auto;
  aspect-ratio: 84 / 76;
}

.wheel__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wheel__arc {
  fill: none;
  stroke: var(--color-edge);
  stroke-width: .5;
  stroke-linecap: round;
}

.wheel__word {
  fill: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 3.3px;
  font-weight: 600;
  letter-spacing: .08px;
}

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

/* Het kleine wiel staat altijd naast de kop, nooit erboven: het wijst aan welk deel van het diagram aan de beurt is. */

.section__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.section__head > h2 {
  min-width: 0;
}

.mini {
  flex: none;
  width: 4.25rem;
  height: 4.25rem;
}

.places__note {
  margin-top: var(--space-5);
}

.wheel__ring marker path {
  fill: var(--color-edge);
  stroke: none;
}

.wheel__node {
  position: absolute;
  left: calc((var(--x) - 10.8) / 84 * 100%);
  top: calc((var(--y) - 10.8) / 76 * 100%);
  display: grid;
  place-items: center;
  width: calc(21.6 / 84 * 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: clamp(.6875rem, 3.05cqw, 1rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.015em;
  text-align: center;
}

.wheel__node--long {
  letter-spacing: -.035em;
}

.wheel__node--start {
  border: var(--line-edge) solid var(--color-edge);
  background: var(--color-surface-elevated);
  box-shadow: var(--depth-low);
}

.wheel__node--core {
  border: var(--line-edge) solid var(--color-brand-edge);
  background: var(--color-brand);
  color: var(--color-on-brand);
  box-shadow: var(--depth-low);
}

.wheel__node--later {
  border: var(--line-edge) dashed var(--color-edge);
  color: var(--color-text-secondary);
}

.wheel__stage {
  position: absolute;
  left: calc((var(--x) - 8) / 84 * 100%);
  top: calc((var(--y) - 3) / 76 * 100%);
  display: grid;
  place-items: center;
  width: calc(16 / 84 * 100%);
  height: calc(6 / 76 * 100%);
  border-radius: var(--radius-pill);
  background: var(--color-text-primary);
  color: var(--color-canvas);
  font-family: var(--font-display);
  font-size: clamp(.6875rem, 3.05cqw, 1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
}

.key {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.key__label {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  column-gap: var(--space-3);
  align-items: center;
  font-size: var(--type-body);
  font-weight: 600;
}

.key__mark {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
}

.key__mark--start {
  border: var(--line-edge) solid var(--color-edge);
  background: var(--color-surface-elevated);
}

.key__mark--later {
  border: var(--line-edge) dashed var(--color-edge);
}

.key__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--space-4) var(--space-5);
  margin-top: var(--space-3);
}

.key__items dt {
  font-weight: 600;
}

.key__core::before {
  content: "";
  display: inline-block;
  width: .7rem;
  height: .7rem;
  margin-right: .45rem;
  border: var(--line-edge) solid var(--color-brand-edge);
  border-radius: 50%;
  background: var(--color-brand);
}

.key__route {
  max-width: 38rem;
  font-size: var(--type-small);
  color: var(--color-text-secondary);
}

.key__items dd {
  font-size: var(--type-small);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* Waarom nu */

.shift {
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  border: 1px solid var(--color-surface-edge);
  border-radius: var(--radius-panel);
  background: var(--color-surface-raised);
  box-shadow: var(--depth-high);
}

.shift__grid,
.points {
  display: grid;
  gap: var(--space-5) var(--space-7);
}

.shift__grid {
  align-items: center;
}

.chat {
  padding: var(--space-5);
  border-radius: var(--radius-field);
  background: var(--color-canvas);
}

.chat__question {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-field) var(--radius-field) 4px var(--radius-field);
  background: var(--color-surface-elevated);
}

.chat__reply {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.chat__who {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-chip);
  background: var(--color-surface-raised);
  box-shadow: var(--depth-low);
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
}

.chat__typing {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: var(--space-4) var(--space-5);
  border-radius: 4px var(--radius-field) var(--radius-field) var(--radius-field);
  background: var(--color-surface-elevated);
  box-shadow: var(--depth-low);
}

.chat__dot {
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: var(--color-edge);
}

.chat__dot:nth-child(2) {
  background: var(--color-dot-mid);
}

.chat__dot:nth-child(3) {
  background: var(--color-dot-soft);
}

.points {
  margin-top: var(--space-6);
}

.points dt {
  font-weight: 600;
}

.points dd {
  color: var(--color-text-secondary);
}

.shift__note {
  margin-top: var(--space-6);
}

/* De Factory */

.steps {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.steps__mark {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  overflow: visible;
}

.mark__ring {
  fill: none;
  stroke: var(--color-edge);
  stroke-width: 1.2;
}

.mark__dot {
  fill: var(--color-canvas);
  stroke: var(--color-edge);
  stroke-width: 1.2;
}

.mark__dot--on {
  fill: var(--color-brand);
  stroke: var(--color-brand-edge);
}

.mark__number {
  fill: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  text-anchor: middle;
}

.steps h3 {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--type-sub);
  font-weight: 500;
}

.steps p {
  margin-top: var(--space-2);
}

.factory__status {
  margin-top: var(--space-7);
  font-weight: 600;
}

/* Pioniers */

.pioneers__grid {
  display: grid;
  gap: var(--space-6) var(--space-7);
  align-items: center;
}

.gets {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.gets strong {
  display: block;
}

.spots {
  width: min(100%, 26rem);
  margin-inline: auto;
}

.spots__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(.5rem, 2vw, 1rem);
}

.spot {
  aspect-ratio: 1;
  border: var(--line-edge) dashed var(--color-edge);
  border-radius: 50%;
}

.spots figcaption {
  margin-top: var(--space-4);
}

/* Waarom wij dit bouwen */

.reasons {
  display: grid;
  gap: var(--space-6) var(--space-7);
  margin-top: var(--space-7);
}

.reasons h3 {
  font-size: var(--type-sub);
  line-height: 1.35;
}

/* De eerste uitspraak opent de reeks; de andere vier staan eronder in twee kolommen. */

.reason--lead h3 {
  font-size: var(--type-section);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.reason--lead p {
  margin-top: var(--space-3);
  font-size: var(--type-lead);
}

.reasons p {
  margin-top: var(--space-1);
  color: var(--color-text-secondary);
}

/* Kennismaking en uitnodiging */

.meet {
  display: grid;
  gap: var(--space-6) var(--space-7);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  border: 1px solid var(--color-surface-edge);
  border-radius: var(--radius-panel);
  background: var(--color-surface-elevated);
  box-shadow: var(--depth-high);
}

.meet__title {
  font-size: var(--type-hero);
}

.meet__number {
  display: inline-block;
  margin-top: var(--space-5);
  padding-block: var(--space-2);
  font-size: var(--type-hero);
  text-decoration: none;
  white-space: nowrap;
}

.meet__number:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .2em;
}

.meet__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-5);
}

.meet__direct {
  white-space: nowrap;
}

.meet__who {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: var(--space-4);
  align-items: center;
}

.meet__portrait {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border: var(--line-edge) dashed var(--color-edge);
  border-radius: 50%;
  font-size: var(--type-small);
  line-height: 1.2;
  text-align: center;
  color: var(--color-text-secondary);
}

.meet__how {
  margin-top: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--type-sub);
  font-weight: 500;
}

.meet__steps {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
  counter-reset: how;
}

.meet__steps li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  counter-increment: how;
}

.meet__steps li::before {
  content: counter(how);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-brand-text);
}

.meet address {
  margin-top: var(--space-6);
  font-style: normal;
}

.invite {
  display: grid;
  gap: var(--space-5) var(--space-7);
  align-items: center;
  margin-top: var(--space-6);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: var(--line-edge) dashed var(--color-edge);
  border-radius: var(--radius-panel);
}

.invite__title {
  font-size: var(--type-sub);
  line-height: 1.35;
}

.invite p {
  margin-top: var(--space-1);
  color: var(--color-text-secondary);
}

.invite .button {
  justify-self: start;
}

/* Voet */

.foot {
  padding-block: var(--space-6) var(--space-7);
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
}

/* Breedtes */

@media (min-width: 44rem) {
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .key__group--start .key__items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .key__group--later .key__items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  }

  .key {
    grid-template-columns: 3fr 4fr;
    gap: var(--space-5) var(--space-7);
  }

  .key__route {
    grid-column: 1 / -1;
  }

  .reason--lead {
    grid-column: 1 / -1;
  }

  .shift__grid,
  .points {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-7);
  }

  .pioneers__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meet {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
  }

  .invite {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .invite .button {
    justify-self: end;
  }
}

/* Eén laadmoment: de ring tekent zich en de latere thema's komen erbij.
   Uit bij prefers-reduced-motion en bij ?motion=off. */

@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="off"]) .wheel__arc {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw var(--dur-draw) var(--ease-draw) forwards;
  }

  :root:not([data-motion="off"]) .wheel__node--later {
    opacity: 0;
    animation: appear var(--dur-reveal) var(--ease-out) forwards;
    animation-delay: calc(var(--dur-draw) - 100ms);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes appear {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

:root[data-motion="off"] {
  scroll-behavior: auto;
}

@media print {
  .skip,
  .hero__actions,
  .invite .button {
    display: none;
  }
}
