@font-face {
  font-family: "Google Sans Flex";
  src: url("/fonts/google-sans-flex-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Google Sans Flex";
  src: url("/fonts/google-sans-flex-latin-ext.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Milker";
  src: url("/fonts/Milker.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

/* Tokens van AVL Install (visual-dna.md): champagne op obsidian. */
:root {
  --obsidian: #06060a;
  --champ: #d4b98c;
  --champ-x: #f2e5c8;
  --fg2: #c8bda8;
  --fg3: #b8a98d;
  --line: rgba(212, 185, 140, 0.15);
  --line-soft: rgba(212, 185, 140, 0.32);
  --vul: rgba(212, 185, 140, 0.16);
  --vul-hover: #f2e5c8;
  --radius: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duur: 220ms;
  --fh: "Milker", sans-serif;
  --fb: "Google Sans Flex", system-ui, sans-serif;
  --fm: "JetBrains Mono", ui-monospace, monospace;
  --marge: clamp(1.5rem, 1rem + 4vw, 5rem);
  --tekst-kop: clamp(2rem, 1.2rem + 1.6vw, 3rem);
  --tekst-basis: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}

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

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(60% 50% at 85% 88%, rgba(212, 185, 140, 0.09), transparent 70%),
    var(--obsidian);
  color: var(--champ-x);
  font-family: var(--fb);
  font-size: var(--tekst-basis);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Korrel over de hele pagina, zoals bij AVL Install. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .83 0 0 0 0 .73 0 0 0 0 .55 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  pointer-events: none;
}

/* Het schuine icoon uit het logo, in champagne, te groot voor het beeld en afgesneden aan de rand. */
.motief {
  position: fixed;
  right: calc(var(--marge) * -1.6);
  bottom: -16vh;
  width: min(92vw, 66vh, 760px);
  height: auto;
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
  animation: motief-in 1200ms var(--ease) both;
}

.pagina {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2rem, 6vh, 5rem);
  min-height: 100svh;
  padding: var(--marge);
}

.logo {
  display: block;
  width: clamp(11rem, 8rem + 12vw, 20rem);
  height: auto;
  animation: op-komen 700ms var(--ease) both;
}

.inhoud { max-width: 62rem; }

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--champ);
  font-family: var(--fm);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: op-komen 800ms 80ms var(--ease) both;
}

h1 {
  margin: 0;
  max-width: 52rem;
  font-family: var(--fh);
  /* "totaalprojecten." is 10,77 x de lettergrootte breed en breekt nooit af: de kop schaalt mee met de kolom. */
  font-size: min(var(--tekst-kop), calc((100vw - 2 * var(--marge)) / 11.4));
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  /* Bij grotere tekstafstand (WCAG 1.4.12) breekt het lange woord in plaats van af te vallen. */
  overflow-wrap: anywhere;
  animation: op-komen 800ms 140ms var(--ease) both;
}

.niet-breken { white-space: nowrap; }

.tekst {
  max-width: 34ch;
  margin: clamp(1.25rem, 3vh, 2rem) 0 clamp(1.5rem, 3.5vh, 2.25rem);
  color: var(--fg2);
  animation: op-komen 800ms 220ms var(--ease) both;
}

.knop {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.8125rem 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--vul);
  color: var(--champ-x);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  /* Het label slaat om op het moment dat vulling en label evenveel contrast hebben; een crossfade van beide laat het label kort onleesbaar. */
  transition: background-color var(--duur) ease, border-color var(--duur) ease, color 0s 80ms;
  animation: op-komen 800ms 300ms var(--ease) both;
}

.knop:focus-visible,
.knop:active {
  background: var(--vul-hover);
  border-color: var(--vul-hover);
  color: var(--obsidian);
  transition-delay: 0s, 0s, 55ms;
}

.pijl {
  margin-right: -2px;
  transition: transform var(--duur) var(--ease);
}
.knop:focus-visible .pijl,
.knop:active .pijl { transform: translateX(3px); }

/* Hover alleen waar een aanwijzer is: op touch blijft de knop na een tik niet in de hoverstand staan. */
@media (hover: hover) {
  .knop:hover {
    background: var(--vul-hover);
    border-color: var(--vul-hover);
    color: var(--obsidian);
    transition-delay: 0s, 0s, 55ms;
  }
  .knop:hover .pijl { transform: translateX(3px); }
  .contact a:hover { text-decoration-color: var(--champ-x); }
}

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

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3.5rem;
  margin: clamp(1.75rem, 4.5vh, 3rem) 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  animation: op-komen 800ms 380ms var(--ease) both;
}

.contact dt {
  margin: 0 0 0.25rem;
  color: var(--fg3);
  font-family: var(--fm);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact dd { margin: 0; }

.contact a {
  display: inline-block;
  padding-block: 0.6875rem;
  color: var(--champ-x);
  text-decoration: underline;
  text-decoration-color: var(--line-soft);
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--duur) ease;
}

.contact a:active { text-decoration-color: var(--champ-x); }

/* Wettelijke gegevens: AVL Projects valt onder AVL-Install B.V. (Britt 30-11). */
.voet {
  margin-top: clamp(1.25rem, 3vh, 2rem);
  max-width: 62rem;
  color: var(--fg2);
  font-size: 0.8125rem;
  line-height: 1.6;
  animation: op-komen 800ms 440ms var(--ease) both;
}
.voet p { margin: 0; }

@keyframes op-komen {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: none; }
}

@keyframes motief-in {
  from { opacity: 0; transform: translateX(0.75rem); }
  to { opacity: 0.1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 40rem) {
  .motief { bottom: -6vh; width: 120vw; right: -38vw; }

  /* Mobiel: alleen de kern in Milker, de rest van dezelfde zin in de bodyletter (Britt 01-12, keuze B). */
  .kop-rest {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--fb);
    font-weight: 400;
    font-size: 1.3125rem;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    /* Breekt een lang woord alleen als het anders buiten beeld valt (tekst op 190% bij 320 px). */
    overflow-wrap: break-word;
  }
}
