/* ==========================================================================
   Codevta: coming soon
   Diep nachtblauw, licht alleen in de linten. Eén familie: Sora.
   ========================================================================== */

:root {
  /* Nacht */
  --night-0: #03051a;
  --night-1: #060a2a;
  --night-2: #0b1250;

  /* Logo */
  --navy: #0c1859;
  --teal: #075c88;
  --royal: #0647be;
  --azure: #03a3ee;
  --cyan: #24d9ea;

  /* Tekst */
  --ink: #eef3fb;
  --ink-2: #aab8d8;
  --ink-3: #7886ad;
  --on-light: #050a2c;

  /* Lijnen en vlakken */
  --line: rgba(160, 190, 255, 0.12);
  --line-strong: rgba(170, 198, 255, 0.2);
  --field: rgba(2, 5, 26, 0.6);
  --danger: #ff9fb0;

  /* Beweging */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Maat */
  --gutter: clamp(16px, 4vw, 48px);
  /* Zijmarge die ook rekening houdt met de notch van iPhones in liggende stand */
  --gutter-x: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right));
  --radius-field: 14px;
  --font: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: dark;
}

/* ---------- basis ---------- */

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

[hidden] {
  display: none !important;
}

html {
  background: var(--night-0);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: #1a2766 var(--night-0);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--night-0);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

::selection {
  background: rgba(36, 217, 234, 0.32);
  color: #fff;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-light);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

/* Lenis (zelfde regels als lenis.css, scheelt een request) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* ---------- achtergrond: linten, fallback en korrel ---------- */

.ribbons {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  height: 100lvh;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.no-webgl .ribbons,
.no-js .ribbons {
  display: none;
}

/* Zonder WebGL of JavaScript: een stilstaand beeld van dezelfde linten.
   Het wordt alleen geladen als dit element zichtbaar wordt. */
.ribbons-fallback {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--night-0) url("../img/ribbons-fallback.jpg") 30% 50% / cover no-repeat;
}

.no-webgl .ribbons-fallback,
.no-js .ribbons-fallback {
  display: block;
}

.ribbons-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(38% 30% at 50% 46%, rgba(3, 5, 26, 0.6), transparent 78%);
}

.no-js .hero__clock {
  visibility: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main,
.footer {
  position: relative;
  z-index: 2;
}

/* ---------- navigatie: glazen pil ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter-x) 0;
  pointer-events: none;
}

.nav__pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  pointer-events: auto;
  background: rgba(8, 13, 50, 0.46);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 40px -24px rgba(0, 2, 18, 0.9);
  transition:
    gap 520ms var(--ease-drawer),
    padding 520ms var(--ease-drawer),
    background-color 300ms ease;
}

/* Lichtrand: helder bovenin, zacht onderin, zoals licht op glas */
.nav__pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(220, 235, 255, 0.28), rgba(160, 190, 255, 0.08) 45%, rgba(36, 217, 234, 0.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  border-radius: 999px;
}

.nav__mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.nav__name {
  display: inline-block;
  max-width: 6.5em;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 520ms var(--ease-drawer),
    opacity 320ms ease;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-light);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease;
}

.nav__cta:active {
  transform: scale(0.97);
}

.nav.is-compact .nav__pill {
  gap: 12px;
  padding-left: 9px;
  background: rgba(8, 13, 50, 0.62);
}

.nav.is-compact .nav__name {
  max-width: 0;
  opacity: 0;
}

/* ---------- knoppen ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--ease-out),
    background-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--solid {
  padding-right: 7px;
  background: var(--ink);
  color: var(--on-light);
  box-shadow: 0 16px 36px -18px rgba(0, 3, 24, 0.9);
}

.btn__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--night-2);
  color: var(--ink);
  transition: transform 320ms var(--ease-out);
}

.btn--ghost {
  background: rgba(8, 13, 48, 0.5);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn--small {
  height: 46px;
  padding: 0 20px;
  font-size: 0.9375rem;
}

/* ---------- kopieer-e-mail ---------- */

.copy {
  gap: 12px;
}

.btn--ghost.copy {
  padding: 0 7px 0 24px;
}

.copy__text {
  display: grid;
}

.copy__value,
.copy__done {
  grid-area: 1 / 1;
  transition:
    opacity 220ms ease,
    filter 220ms ease,
    transform 260ms var(--ease-out);
}

.copy__done {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(6px);
}

.copy.is-copied .copy__value {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-6px);
}

.copy.is-copied .copy__done {
  opacity: 1;
  filter: none;
  transform: none;
}

.copy__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(160, 190, 255, 0.08);
  color: var(--ink-2);
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

.copy__icon svg {
  grid-area: 1 / 1;
  transition:
    opacity 200ms ease,
    transform 260ms var(--ease-out);
}

.copy__icon-check {
  opacity: 0;
  transform: scale(0.6);
}

.copy.is-copied .copy__icon {
  background: rgba(36, 217, 234, 0.16);
  color: var(--cyan);
}

.copy.is-copied .copy__icon-copy {
  opacity: 0;
  transform: scale(0.6);
}

.copy.is-copied .copy__icon-check {
  opacity: 1;
  transform: none;
}

.copy--inline {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 4px 0 16px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition:
    transform 160ms var(--ease-out),
    background-color 220ms ease;
}

.copy--inline .copy__icon {
  width: 36px;
  height: 36px;
}

.copy--inline:active {
  transform: scale(0.97);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(max(14px, env(safe-area-inset-top)) + 56px + 24px) var(--gutter-x) 0;
}

.hero__inner {
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 1200px);
  padding-block: clamp(24px, 5vh, 56px);
  text-align: center;
  will-change: transform, opacity;
}

.hero__title {
  /* 7.5em: "Er komt iets" past, "moois" niet meer. Zo breekt de kop
     overal op dezelfde plek, ook zonder text-wrap: balance. */
  max-width: 7.5em;
  font-size: clamp(3.1rem, 1.15rem + 6.4vw, 7.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.048em;
  text-wrap: balance;
  font-kerning: normal;
}

.hero__lead {
  margin-top: clamp(20px, 3.2vh, 30px);
  max-width: 35rem;
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.1875rem);
  line-height: 1.66;
  color: #b9c6e4;
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(3, 5, 26, 0.75), 0 0 2px rgba(3, 5, 26, 0.5);
}

.hero__actions {
  margin-top: clamp(28px, 4.6vh, 44px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 max(22px, env(safe-area-inset-bottom));
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.hero__clock time {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

/* ---------- contact ---------- */

.contact {
  position: relative;
  padding: clamp(88px, 14vh, 168px) var(--gutter-x) clamp(72px, 12vh, 136px);
  outline: none;
}

.contact__grid {
  width: min(100%, 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
}

.contact__intro {
  position: sticky;
  top: 120px;
  padding-top: 8px;
}

.contact__title {
  max-width: 9em;
  font-size: clamp(2.35rem, 1.2rem + 3.2vw, 4.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.044em;
  text-wrap: balance;
}

.contact__text {
  margin-top: 24px;
  max-width: 28rem;
  font-size: 1.0625rem;
  line-height: 1.66;
  color: #b9c6e4;
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(3, 5, 26, 0.75);
}

.contact__mail {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-shadow: 0 1px 12px rgba(3, 5, 26, 0.8);
}

/* Kaart: glazen plaat in een dunne schaal */
.card {
  padding: 7px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(150, 180, 255, 0.07), rgba(150, 180, 255, 0.025));
  box-shadow:
    inset 0 0 0 1px rgba(160, 190, 255, 0.1),
    0 50px 100px -50px rgba(0, 2, 20, 0.95);
}

.card__core {
  position: relative;
  container-type: inline-size;
  border-radius: 25px;
  padding: clamp(22px, 3.2vw, 44px);
  background: linear-gradient(180deg, rgba(10, 17, 64, 0.9), rgba(5, 9, 38, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(160, 190, 255, 0.05);
}

/* ---------- formulier ---------- */

.form {
  display: grid;
  gap: 22px;
}

/* Zonder JavaScript kan het formulier niet versturen: toon dan het e-mailadres */
.no-js .form {
  display: none;
}

.form__noscript {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.form__noscript a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__row--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
}

@container (max-width: 500px) {
  .form__row--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}

legend.field__label {
  margin-bottom: 11px;
}

.field__optional {
  font-weight: 400;
  color: var(--ink-3);
}

.field__input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border-radius: var(--radius-field);
  border: 1px solid rgba(160, 190, 255, 0.14);
  background: var(--field);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  appearance: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.field__input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.field__input:focus,
.field__input:focus-visible {
  outline: none;
  border-color: rgba(36, 217, 234, 0.7);
  background: rgba(3, 7, 32, 0.78);
  box-shadow: 0 0 0 4px rgba(36, 217, 234, 0.14);
}

.field__input--area {
  height: auto;
  min-height: 148px;
  padding: 15px 18px;
  line-height: 1.6;
  resize: vertical;
}

.field__input[aria-invalid="true"] {
  border-color: rgba(255, 128, 150, 0.75);
}

.field__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(255, 128, 150, 0.16);
}

.field__error {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--danger);
}

.field__error:empty {
  display: none;
}

.field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 100px #0a1140 inset;
  caret-color: var(--ink);
}

/* Keuzechips: echte checkboxes */
.chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
}

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip__face {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 17px 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(160, 190, 255, 0.16);
  color: var(--ink-2);
  font-size: 0.9375rem;
  user-select: none;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    transform 160ms var(--ease-out);
}

.chip__tick {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(160, 190, 255, 0.36);
  color: var(--night-0);
  transition:
    background-color 200ms ease,
    border-color 200ms ease;
}

.chip__tick svg {
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 160ms ease,
    transform 240ms var(--ease-out);
}

.chip input:checked + .chip__face {
  color: var(--ink);
  border-color: rgba(36, 217, 234, 0.55);
  background: rgba(36, 217, 234, 0.1);
}

.chip input:checked + .chip__face .chip__tick {
  background: var(--cyan);
  border-color: var(--cyan);
}

.chip input:checked + .chip__face .chip__tick svg {
  opacity: 1;
  transform: none;
}

.chip input:focus-visible + .chip__face {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.chip:active .chip__face {
  transform: scale(0.97);
}

/* Spamval voor bots, onzichtbaar voor mensen */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 6px;
}

.form__privacy {
  flex: 1 1 14rem;
  max-width: 21rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.form__alert {
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #ffd0d8;
  background: rgba(255, 110, 140, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 128, 150, 0.28);
}

.form__alert a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Verzendknop: pijl wordt een spinner tijdens versturen */
.btn__arrow {
  transition:
    opacity 180ms ease,
    transform 260ms var(--ease-out);
}

.btn__spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.75px solid rgba(238, 243, 251, 0.25);
  border-top-color: var(--ink);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 180ms ease,
    transform 260ms var(--ease-out);
}

.btn--submit[data-state="sending"] {
  cursor: progress;
}

.btn--submit[data-state="sending"] .btn__arrow {
  opacity: 0;
  transform: scale(0.6);
}

.btn--submit[data-state="sending"] .btn__spinner {
  opacity: 1;
  transform: none;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Bevestiging */
.success {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: clamp(12px, 3vw, 40px) 0;
  outline: none;
}

.success[hidden] {
  display: none;
}

.success__badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(36, 217, 234, 0.1);
  box-shadow: inset 0 0 0 1px rgba(36, 217, 234, 0.35);
}

.success__check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.success.is-shown .success__check {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 700ms var(--ease-silk) 200ms;
}

.success__title {
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.success__text {
  max-width: 30rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.success .btn {
  margin-top: 14px;
}

/* ---------- footer ---------- */

.footer {
  width: min(100% - 2 * var(--gutter-x), 1240px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 26px 0 max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-3);
}

.footer__mail {
  transition: color 200ms ease;
}

/* ---------- hover alleen op apparaten met een muis ---------- */

@media (hover: hover) and (pointer: fine) {
  .nav__cta:hover {
    background: #ffffff;
  }

  .btn--solid:hover {
    background: #ffffff;
  }

  .btn--solid:hover .btn__icon {
    transform: translateY(2px);
  }

  .btn--submit:hover .btn__icon {
    transform: translateX(3px);
  }

  .btn--submit[data-state="sending"]:hover .btn__icon {
    transform: none;
  }

  .btn--ghost:hover {
    background: rgba(14, 22, 70, 0.66);
  }

  .copy:hover .copy__icon {
    background: rgba(160, 190, 255, 0.14);
    color: var(--ink);
  }

  .copy--inline:hover {
    background: rgba(160, 190, 255, 0.06);
  }

  .footer__mail:hover {
    color: var(--ink);
  }

  .field__input:hover:not(:focus) {
    border-color: rgba(160, 190, 255, 0.24);
  }

  .chip:hover .chip__face {
    border-color: rgba(160, 190, 255, 0.3);
    color: var(--ink);
  }
}

/* ---------- intro: begintoestand (alleen als JS de intro speelt) ---------- */

.intro-pending .nav__pill,
.intro-pending [data-intro] {
  opacity: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact__intro {
    position: static;
    padding-top: 0;
  }

  .contact__title {
    max-width: 11em;
  }
}

@media (max-width: 640px) {
  .nav__pill {
    height: 52px;
    gap: 18px;
    padding-left: 14px;
  }

  .nav__cta {
    height: 40px;
    padding: 0 18px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 340px);
  }

  .hero__actions .btn {
    justify-content: space-between;
  }

  .btn--solid {
    padding-left: 24px;
  }

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

  .form__foot .btn {
    width: 100%;
    justify-content: space-between;
    padding-left: 24px;
  }

  .form__privacy {
    max-width: none;
  }

  .card {
    border-radius: 26px;
    padding: 6px;
  }

  .card__core {
    border-radius: 20px;
  }
}

/* Lage telefoons (zoals 360x640): alles in één scherm houden */
@media (max-width: 640px) and (max-height: 720px) {
  .hero {
    padding-top: calc(max(14px, env(safe-area-inset-top)) + 52px + 12px);
  }

  .hero__inner {
    padding-block: 12px;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .hero__lead {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero__actions {
    margin-top: 22px;
    gap: 10px;
  }

  .hero__actions .btn {
    height: 52px;
  }

  .hero__actions .btn__icon,
  .hero__actions .copy__icon {
    width: 38px;
    height: 38px;
  }

  .hero__foot {
    padding-top: 10px;
  }
}

@media (max-height: 640px) and (min-width: 641px) {
  .hero__title {
    font-size: clamp(2.6rem, 9.5vh, 5rem);
  }
}

/* Liggende telefoons: compacter, zodat de hero in één scherm past */
@media (max-height: 500px) and (orientation: landscape) {
  .nav {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .nav__pill {
    height: 48px;
  }

  .nav__cta {
    height: 38px;
  }

  .hero {
    padding-top: calc(max(10px, env(safe-area-inset-top)) + 48px + 10px);
  }

  .hero__inner {
    padding-block: 8px;
  }

  .hero__title {
    font-size: 2.3rem;
  }

  .hero__lead {
    margin-top: 12px;
    max-width: 40rem;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .hero__actions {
    margin-top: 18px;
  }

  .hero__actions .btn {
    height: 46px;
  }

  .hero__actions .btn__icon,
  .hero__actions .copy__icon {
    width: 34px;
    height: 34px;
  }

  .hero__foot {
    padding-top: 8px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* ---------- minder beweging ---------- */

@media (prefers-reduced-motion: reduce) {
  .nav__pill,
  .nav__name,
  .btn__icon,
  .copy__value,
  .copy__done,
  .copy__icon svg {
    transition-property: opacity, background-color, color;
  }

  .copy__done,
  .copy.is-copied .copy__value {
    transform: none;
    filter: none;
  }

  .btn--submit[data-state="sending"] .btn__spinner {
    animation-duration: 1.6s;
  }
}
