/* 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; }

/* Display: Light, met de kernwoorden in Demi Bold, zoals in het woordmerk */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 13ch;
  margin-bottom: var(--space-6);
}

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

/* 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); } }

.lead {
  font-size: 20px;
  line-height: 30px;
  color: var(--ink-muted);
  max-width: 36ch;
  margin-bottom: var(--space-12);
}

.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: 36px; width: auto; }

/* 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-12) var(--space-4) calc(var(--corner-w) * var(--tan-iso) + var(--space-6));
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

.hero-actions { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }

/* Het merk: de drie vlakken schuiven na elkaar binnen en zweven daarna rustig */
.hero-art {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
}

.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);
}

.plane { transform-box: fill-box; transform-origin: center; }
.plane-sketch path { fill: var(--white); }
.plane-shape path { fill: var(--sky); }
.plane-volume path { fill: var(--horizon); }

@keyframes plane-in {
  from { opacity: 0; transform: translate(-28px, 16px); }
  to { opacity: 1; transform: translate(0, 0); }
}

.plane { animation: plane-in 0.9s var(--ease-out) both; }
.plane-sketch { animation-delay: 1.1s; }
.plane-shape { animation-delay: 1.7s; }
.plane-volume { animation-delay: 2.3s; }

/* De zweving begint op de rustpositie zodra het vlak binnen is, 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: 2s; animation-duration: 7s; }
.plane-shape path { animation-delay: 2.6s; animation-duration: 8.5s; }
.plane-volume path { animation-delay: 3.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) 2.6s forwards;
}

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

/* Contact */
.contact {
  border-top: 1px solid var(--line);
  padding: var(--space-18) var(--space-4);
}

.contact-inner { max-width: 560px; margin: 0 auto; }

.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-12);
}

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

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

.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: 12px 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: 140px; }

.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 */
.footer {
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 22px;
}

.footer-row { max-width: 1120px; margin: 0 auto; padding: var(--space-6) var(--space-4); }

/* 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, .plane path, .rise, .hero-corner, .w > span { animation: none; }
  .w > span { transform: none; }
  .hero-corner { transform: none; }
  .layer { transform: none; transition: none; }
  .button { transition: none; }
}

@media (min-width: 720px) {
  .display { font-size: 60px; }
}

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