/* Kleurstijl: nachtblauw in plaats van de teal-tinten van het design system. Het logo is de witte versie,
   de vlakken van het merk zijn wit, lichtblauw en horizon. */
:root {
  --night: #0F1B2D;
  --horizon: #739BB5;
  --sky: #A9C4D8;
  --white: #FFFFFF;

  --line: #263A55;
  --ink: #FFFFFF;
  --ink-muted: #B7C6D6;

  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-12: 48px;
  --space-18: 72px;

  --tan-iso: 0.5774; /* tan(30deg): de hoek van elke schuine lijn in het merk */
  --corner-w: min(34vw, 440px); /* breedte van de hoek onderaan */

  --font-heading: "Avenir Next", "Mulish", system-ui, sans-serif;
  --font-display: "Avenir", "Avenir Next", "Mulish", system-ui, sans-serif;
  --font-body: "Avenir Next", "Mulish", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* muispositie in de hero, van -1 tot 1, gezet door site.js */
  --px: 0;
  --py: 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1 { margin: 0; }

p { margin: 0; }

/* Woord voor woord opkomen: site.js wikkelt elk woord in .w > span */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; transform: translateY(110%); animation: word-up 0.9s var(--ease-out) forwards; animation-delay: var(--d, 0s); }

@keyframes word-up { to { transform: translateY(0); } }

.button {
  display: inline-block;
  padding: 14px 24px;
  background: var(--horizon);
  color: var(--night);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.button:hover { background: #86abc4; transform: translateY(-1px); }

.button:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }

/* Nav: alleen het logo */
.nav {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.nav-logo { height: 32px; width: auto; }

@media (min-width: 720px) { .nav-logo { height: 36px; } }

/* Logo: wordt van links naar rechts zichtbaar */
@keyframes logo-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.logo-reveal { animation: logo-reveal 1.2s var(--ease-out) both; }

/* Hero: vult het scherm */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  /* onderaan ruimte voor de hoek van 30 graden, zodat die niets overlapt */
  padding: var(--space-6) var(--space-4) calc(var(--corner-w) * var(--tan-iso) + var(--space-4));
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

/* Het formulier, links naast het merk */
.hero-body { max-width: 520px; width: 100%; }

/* Het merk: op een telefoon klein en bovenaan, zodat het merk het eerste is wat je ziet */
.hero-art {
  position: relative;
  width: min(56%, 220px);
  margin: 0 auto;
  order: -1;
}

.mark-build { display: block; width: 100%; height: auto; overflow: visible; }

/* Elke laag verschuift met de muis, dieper liggende lagen meer: dat geeft diepte */
.layer {
  transform: translate(calc(var(--px) * var(--depth) * 5px), calc(var(--py) * var(--depth) * 4px));
  transition: transform 0.6s var(--ease-soft);
}

/* De opbouw zelf (potlood, vullen, oprijzen, lichtstreep) staat als SMIL-tijdlijn in de SVG in index.html:
   schets 0.5s tot 2.2s, vorm 2.2s tot 3.4s, volume 3.3s tot 4.0s, lichtstreep vanaf 5.5s elke 10s. */
.plane-sketch path { fill: var(--white); }
.plane-shape path { fill: var(--sky); }
.plane-volume path { fill: var(--horizon); }

/* Zodra een vlak staat, begint het zacht te zweven, vanaf de rustpositie zodat niets verspringt.
   4 eenheden in de SVG is ongeveer 7px op het scherm. */
@keyframes plane-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -4px); }
}

.plane path { transform-box: fill-box; animation: plane-float 7s ease-in-out infinite; }
.plane-sketch path { animation-delay: 2.4s; animation-duration: 7s; }
.plane-shape path { animation-delay: 3.6s; animation-duration: 8.5s; }
.plane-volume path { animation-delay: 4.2s; animation-duration: 10s; }

/* Hoek van 30 graden onderaan, in lichtblauw */
.hero-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--corner-w);
  height: calc(var(--corner-w) * var(--tan-iso));
  background: var(--sky);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transform: translateX(100%);
  animation: corner-in 1s var(--ease-out) 4.1s forwards;
}

@keyframes corner-in { to { transform: translateX(0); } }

/* De kop boven het formulier: Light, met de kernwoorden in Demi Bold, zoals in het woordmerk */
.display-sm {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-6);
}

.display-sm b { font-family: var(--font-heading); font-weight: 600; }

.form { display: grid; gap: var(--space-4); }

.field { display: grid; gap: var(--space-2); }

.field label {
  font-family: var(--font-heading);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  line-height: 24px;
}

.field textarea { resize: vertical; min-height: 112px; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
  border-color: var(--sky);
}

.form .button { border: 0; cursor: pointer; justify-self: start; }

.form-status { font-size: 15px; line-height: 24px; color: var(--ink-muted); min-height: 24px; }
.form-status.is-error { color: #F2B8B5; }
.form-status.is-success { color: var(--sky); }

.form.is-sending .button { opacity: 0.6; pointer-events: none; }

/* Honeypot: onzichtbaar, maar wel in het formulier */
.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer: een iets lichter vlak, het logo, de bedrijfsgegevens in kolommen, het copyright als laatste regel */
.footer {
  background: #16243A;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-4) var(--space-6);
  display: grid;
  gap: var(--space-12) var(--space-18);
  grid-template-areas: "logo" "cols" "copy";
}

.footer-logo { grid-area: logo; height: 28px; width: auto; }

.footer-cols {
  grid-area: cols;
  display: grid;
  gap: var(--space-6) var(--space-18);
  grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
}

.footer-col { font-style: normal; color: var(--ink); }

.footer-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: var(--space-2);
}

.footer-copy {
  grid-area: copy;
  font-size: 14px;
  line-height: 22px;
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo cols" "copy copy";
    align-items: start;
  }
  .footer-cols { justify-content: end; }
}

/* Opkomen bij laden */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.rise { animation: rise 0.8s var(--ease-out) both; animation-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-reveal, .plane path, .rise, .hero-corner, .w > span { animation: none; }
  .sweep { display: none; }
  .rise { opacity: 1; transform: none; }
  .w > span { transform: none; }
  .hero-corner { transform: none; }
  .layer { transform: none; transition: none; }
  .button { transition: none; }
}

@media (min-width: 720px) {
  .display-sm { font-size: 40px; }
  .hero-grid { padding-top: var(--space-12); gap: var(--space-12); }
  .hero-art { width: min(100%, 360px); }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--space-18); }
  .hero-art { width: 100%; max-width: 460px; margin: 0 0 0 auto; order: 0; }
}
