/* Antemm homepage v1 — Studio Piñata
   Systeem: 12 kol (64/32/80 op 1440), 8pt, proportioneel schalen 1200–2560.
   Merk: brandguide Antemm V1 (Inter + Season, Discreet Blue / Deep Black / Soft Bone). */

@font-face { font-family: "Inter"; src: url("fonts/Inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
/* Season Mix: TRIAL-bestand enkel voor de preview. Voor livegang licentie kopen bij Displaay. */
@font-face { font-family: "Season"; src: url("fonts/SeasonMix-TRIAL-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
/* Geen zijwaarts scrollen en geen zichtbare scrollbalk (scrollen blijft werken).
   Zonder scrollbalk is 100vw ook exact de zichtbare breedte, zodat het proportioneel schalen klopt. */
html, body { overflow-x: clip; }
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

:root {
  /* Grid mobiel 390 */
  --grid-columns: 4;
  --grid-margin: 1rem;
  --grid-gutter: 1rem;
  --container-max: 82rem;

  --space-4: 0.25rem; --space-8: 0.5rem; --space-16: 1rem; --space-24: 1.5rem; --space-32: 2rem;
  --space-48: 3rem; --space-64: 4rem; --space-80: 5rem; --space-96: 6rem; --space-128: 8rem; --space-160: 10rem;

  --gap-element: var(--space-16);
  --gap-group: var(--space-48);
  --gap-section: var(--space-96);
  --hero-pad: var(--space-16);
  --gap-action: var(--space-32); /* tekst -> link of knop, overal gelijk */

  --font-sans: "Inter", Arial, sans-serif;
  --font-serif: "Season", Georgia, serif;

  /* Typeschaal (één schaal voor de hele site). Mobiel hier, tablet en desktop in de media queries.
     Regelhoogtes = veelvoud van 4 px. Gebruik:
     display  reserve (extra grote kop)       h1  hero- en sectietitels (titelduo)
     h2  intro-statement                       h3  waarden, menu-overlay mobiel
     h4  portfolionamen                        h5/h6  reserve voor subpagina's
     lead  grotere lopende tekst (contact)     body  lopende tekst
     label  knoppen, links, navigatie          small  footer, nummers   caption  bijschrift */
  --fs-display: 2.5rem;    --lh-display: calc(44 / 40);
  --fs-h1: 2.25rem;        --lh-h1: calc(40 / 36);
  --fs-h2: 1.375rem;       --lh-h2: calc(32 / 22);
  --fs-h3: 1.25rem;        --lh-h3: calc(28 / 20);
  --fs-h4: 1.125rem;       --lh-h4: calc(24 / 18);
  --fs-h5: 1rem;           --lh-h5: calc(24 / 16);
  --fs-h6: 0.9375rem;      --lh-h6: calc(24 / 15);
  --fs-lead: 1rem;         --lh-lead: calc(24 / 16);
  --fs-body: max(15px, 0.9375rem);    --lh-body: calc(24 / 15);
  --fs-small: max(13px, 0.8125rem);   --lh-small: calc(20 / 13);
  --fs-caption: max(12px, 0.75rem);   --lh-caption: calc(16 / 12);
  --fs-label: max(14px, 0.875rem);    --lh-label: calc(20 / 14);
  --ls-title: -0.01em;

  /* Kleur (brandguide 4.3) */
  --blue: #DEEDED;   /* Discreet Blue: merkkleur, achtergrond logo */
  --black: #000000;  /* Deep Black: tekst en contrast */
  --bone: #F2F0ED;   /* Soft Bone: rust en ruimte */
  --white: #FFFFFF;
  --color-bg: var(--white);
  --color-fg: var(--black);
  --color-muted: rgba(0, 0, 0, 0.62);
  --color-line: rgba(0, 0, 0, 0.14);

  /* Motionprofiel (ook in main.js) */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.4s;
  --dur-base: 1.2s;
}

@media (min-width: 768px) {
  :root {
    --grid-columns: 8; --grid-margin: 2rem; --grid-gutter: 1.5rem;
    --gap-element: var(--space-24); --gap-group: var(--space-64); --gap-section: var(--space-128);
    --hero-pad: var(--space-32);
    --fs-display: 3.5rem; --lh-display: calc(60 / 56);
    --fs-h1: 3rem;        --lh-h1: calc(52 / 48);
    --fs-h2: 1.75rem;     --lh-h2: calc(36 / 28);
    --fs-h3: 1.375rem;    --lh-h3: calc(28 / 22);
  }
}

@media (min-width: 1200px) {
  html { font-size: clamp(13.333px, calc(100vw / 90), 28.444px); }
  :root {
    --grid-columns: 12; --grid-margin: 4rem; --grid-gutter: 2rem;
    --gap-element: var(--space-24); --gap-group: var(--space-80); --gap-section: var(--space-160);
    --hero-pad: var(--space-48);

    /* Basis aat-architecten.be (gemeten op 1440), met meer contrast tussen groot en klein */
    --fs-display: 4rem;     --lh-display: calc(68 / 64);
    --fs-h1: 3.5rem;        --lh-h1: calc(60 / 56);
    --fs-h2: 2.25rem;       --lh-h2: calc(44 / 36);
    --fs-h3: 1.5rem;        --lh-h3: calc(32 / 24);
    --fs-h4: 1.125rem;      --lh-h4: calc(24 / 18);
    --fs-h5: 1rem;          --lh-h5: calc(24 / 16);
    --fs-h6: 0.9375rem;     --lh-h6: calc(24 / 15);
    --fs-lead: 1.125rem;    --lh-lead: calc(28 / 18);
    --fs-body: max(14px, 0.9375rem);    --lh-body: calc(24 / 15);
    --fs-small: max(13px, 0.8125rem);   --lh-small: calc(20 / 13);
    --fs-caption: max(12px, 0.75rem);   --lh-caption: calc(16 / 12);
    --fs-label: max(14px, 0.9375rem);   --lh-label: calc(20 / 15);
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body);
  color: var(--color-fg); background: var(--color-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  hyphens: manual; -webkit-hyphens: manual;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: var(--ls-title); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
::selection { background: var(--black); color: var(--blue); }

.container { width: 100%; max-width: calc(var(--container-max) + 2 * var(--grid-margin)); margin-inline: auto; padding-inline: var(--grid-margin); }
.grid { display: grid; grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr)); column-gap: var(--grid-gutter); }
.section { padding-block: var(--gap-section); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--space-16); top: -100px; z-index: 100; background: var(--black); color: var(--white); padding: var(--space-8) var(--space-16); }
.skip:focus { top: var(--space-16); }

/* ---------- Typografische rollen ---------- */
.display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-title); }
.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.h5 { font-size: var(--fs-h5); line-height: var(--lh-h5); }
.h6 { font-size: var(--fs-h6); line-height: var(--lh-h6); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); }
.small { font-size: var(--fs-small); line-height: var(--lh-small); }
.caption { font-family: var(--font-serif); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--color-muted); }
.label { font-size: var(--fs-label); line-height: var(--lh-label); }
.muted { color: var(--color-muted); }
.serif { font-family: var(--font-serif); font-weight: 400; }

/* Titelduo uit de brandguide: eerste regel Inter Bold, tweede regel Season Regular */
.duo > span { display: block; }
.duo .duo-b { font-family: var(--font-serif); font-weight: 400; letter-spacing: var(--ls-title); }

/* ---------- Knoppen en links ---------- */
/* Knop: zwarte pil met pijl-wissel bij hover (gebaseerd op Osmo Button 009) */
.btn {
  --btn-icon: var(--space-16);
  --btn-gap: var(--space-8);
  --btn-pl: var(--space-24);
  --btn-pr: var(--space-16);
  --btn-ease: cubic-bezier(0.32, 0.72, 0, 1);
  position: relative; display: inline-grid; color: var(--white);
  font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: scale 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn::after {
  content: ""; position: absolute; inset: calc(-1 * var(--space-4)); border-radius: 999px; pointer-events: none; z-index: 1;
  transition: box-shadow 0.3s var(--btn-ease);
}
.btn:focus-visible { outline: none; }
.btn:focus-visible::after { box-shadow: 0 0 0 2px var(--black); }
.btn:active { scale: 0.955 0.925; }
.btn__inner {
  grid-area: 1 / 1; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: var(--btn-gap);
  height: var(--space-48); padding-inline: var(--btn-pl) var(--btn-pr); border-radius: 999px; overflow: clip; pointer-events: none;
}
.btn__text { flex: none; transition: translate 0.5s var(--btn-ease); }
.btn__icon { width: var(--btn-icon); height: var(--btn-icon); flex: none; transition: translate 0.5s var(--btn-ease), opacity 0.15s ease-out; }
.btn__icon.is--left { position: absolute; left: var(--btn-pr); opacity: 0; translate: -1.5em 0 0; }
.btn__bg { grid-area: 1 / 1; width: 100%; height: 100%; border-radius: 999px; background: var(--black); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:is(:hover, :focus-visible) .btn__text {
    translate: calc(var(--btn-icon) + var(--btn-gap) + var(--btn-pr) - var(--btn-pl)) 0 0;
    transition: translate 0.5s 0.075s var(--btn-ease);
  }
  .btn:is(:hover, :focus-visible) .btn__icon.is--left {
    translate: 0 0 0; opacity: 1;
    transition: translate 0.5s 0.075s var(--btn-ease), opacity 0.15s 0.075s ease-out;
  }
  .btn:is(:hover, :focus-visible) .btn__icon.is--right {
    translate: 1.5em 0 0; opacity: 0;
    transition: translate 0.5s 0.05s var(--btn-ease), opacity 0.15s 0.075s ease-out;
  }
}

/* Tekstlink: tekst links, pijl rechts, lijn eronder. Zelfde pijlwissel bij hover als de knop. */
.link {
  --link-icon: var(--space-16);
  --link-gap: var(--space-8);
  position: relative; display: inline-flex; justify-content: space-between; align-items: center; gap: var(--space-48);
  min-width: 16rem; padding-bottom: var(--space-8); border-bottom: 1px solid currentColor; overflow: clip;
  font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 400;
}
.link__text { transition: translate 0.5s var(--btn-ease, cubic-bezier(0.32, 0.72, 0, 1)); }
.link__icon { width: var(--link-icon); height: var(--link-icon); flex: none; transition: translate 0.5s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.15s ease-out; }
.link__icon.is--left { position: absolute; left: 0; top: calc((var(--lh-label) * 1em - var(--link-icon)) / 2); opacity: 0; translate: -1.5em 0 0; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .link:is(:hover, :focus-visible) .link__text { translate: calc(var(--link-icon) + var(--link-gap)) 0 0; transition: translate 0.5s 0.075s cubic-bezier(0.32, 0.72, 0, 1); }
  .link:is(:hover, :focus-visible) .link__icon.is--left { translate: 0 0 0; opacity: 1; transition: translate 0.5s 0.075s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.15s 0.075s ease-out; }
  .link:is(:hover, :focus-visible) .link__icon.is--right { translate: 1.5em 0 0; opacity: 0; transition: translate 0.5s 0.05s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.15s 0.075s ease-out; }
}
.arrow { display: inline-block; }

/* ---------- Logo ---------- */
.logo { display: block; color: var(--black); }
.logo svg { width: auto; height: 100%; fill: currentColor; }

/* ---------- Vaste header (verschijnt na de hero bij terugscrollen) ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
  transform: translateY(-100%); transition: transform 0.6s var(--ease-out);
}
.bar.is-shown { transform: translateY(0); }
.bar .container { display: flex; align-items: center; justify-content: space-between; height: var(--space-80); }
.bar .logo { height: var(--space-32); }
.bar-nav { display: none; }
@media (min-width: 1200px) {
  .bar-nav { display: flex; align-items: center; gap: var(--space-32); }
  .bar-nav a:not(.btn) { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--color-muted); transition: color var(--dur-fast); }
  .bar-nav a:not(.btn):hover, .bar-nav a:not(.btn)[aria-current="true"] { color: var(--black); }
  .bar .menu-btn { display: none; }
}

.menu-btn {
  display: inline-flex; align-items: center; gap: var(--space-8); height: var(--space-48);
  padding: 0; background: none; border: 0; font: inherit; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; color: inherit; cursor: pointer;
}
.menu-btn .bars { position: relative; width: var(--space-24); height: var(--space-8); }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--dur-fast) var(--ease-out); }
.menu-btn .bars::before { top: 0; } .menu-btn .bars::after { bottom: 0; }
.menu-btn:hover .bars::after { transform: scaleX(0.6); transform-origin: right; }

/* ---------- Menu-overlay (tablet/mobiel) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--blue);
  display: flex; flex-direction: column; visibility: hidden; opacity: 0;
  transition: opacity 0.5s var(--ease-out), visibility 0s linear 0.5s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.5s var(--ease-out); }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--space-80); }
.menu-top .logo { height: var(--space-32); }
.menu-close { background: none; border: 0; font: inherit; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; cursor: pointer; height: var(--space-48); padding: 0; color: inherit; }
.menu-list { margin-top: auto; padding-bottom: var(--space-48); display: grid; gap: var(--space-8); }
.menu-list a { display: block; font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; letter-spacing: var(--ls-title); }
.menu-list li:nth-child(even) a { font-family: var(--font-serif); font-weight: 400; }
.menu-list a .arrow { opacity: 0; transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.menu-list a:hover .arrow { opacity: 1; transform: translateX(var(--space-8)); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--blue); overflow: hidden; }
.hero-grid { row-gap: var(--space-48); padding-block: var(--hero-pad); }
.hero-logo { grid-column: 1 / span 2; height: var(--space-32); align-self: center; }
.hero-nav { display: none; }
.hero-menu { grid-column: -2 / -1; justify-self: end; }
.hero-copy { grid-column: 1 / -1; display: grid; gap: var(--gap-element); }
.hero-copy p { max-width: 34ch; }
.hero-copy .link { justify-self: start; margin-top: calc(var(--gap-action) - var(--gap-element)); }
.hero-photo { grid-column: 1 / -1; position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.al { position: absolute; pointer-events: none; color: var(--black); }
.al svg { width: 100%; height: auto; overflow: visible; }
.al-pen { stroke-dasharray: 1000; stroke-dashoffset: 0; }
.js .al-pen { stroke-dashoffset: 1000; } /* JS tekent de pennenlijn */
.hero .al { width: 78%; right: -14%; bottom: -10%; z-index: 2; }

@media (min-width: 768px) {
  .hero-logo { height: var(--space-48); grid-column: 1 / span 3; }
  .hero-copy { grid-column: 1 / span 6; }
  .hero-photo { grid-column: 3 / -1; }
}

@media (min-width: 1200px) {
  .hero { height: 100svh; min-height: 45rem; max-height: 75rem; }
  .hero-grid { height: 100%; grid-template-rows: auto 1fr; row-gap: 0; }
  .hero-logo { grid-column: 1 / span 3; grid-row: 1; align-self: start; height: var(--space-48); }
  .hero-menu { display: none; }
  .hero-nav { display: grid; grid-column: 11 / span 2; grid-row: 1 / -1; align-self: start; justify-items: end; gap: var(--space-8); text-align: right; }
  .hero-nav a { font-size: var(--fs-label); line-height: var(--lh-label); padding-block: var(--space-4); position: relative; }
  .hero-nav a::after { content: ""; position: absolute; right: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur-fast) var(--ease-out); }
  .hero-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .hero-copy { grid-column: 1 / span 5; grid-row: 1 / -1; align-self: center; padding-top: var(--space-48); }
  .hero-photo { grid-column: 6 / span 5; grid-row: 1 / -1; aspect-ratio: auto; height: 100%; }
  .hero .al { width: 37rem; right: -4.5rem; bottom: -6rem; }
}

/* ---------- Intro (onder de hero) ---------- */
.intro { padding-bottom: 0; }
.intro + .dna { margin-top: calc(var(--gap-section) - var(--space-64)); }
.intro-body { grid-column: 1 / -1; display: grid; gap: var(--gap-group); justify-items: start; }
.intro-text { font-weight: 400; text-indent: var(--space-48); }
.intro-text > * + * { text-indent: 0; }
@media (min-width: 768px) { .intro-body { grid-column: 2 / span 6; } .intro-text { text-indent: var(--space-96); } }
@media (min-width: 1200px) { .intro-body { grid-column: 3 / span 8; } .intro-text { text-indent: 11.5rem; } }

/* ---------- Sectiekoppen ---------- */
.sec-head { grid-column: 1 / -1; }
@media (min-width: 1200px) { .sec-head { grid-column: 1 / span 6; } }

/* ---------- Ons DNA ---------- */
/* Wit vlak, foto links binnen de marge, tekst rechts onderaan (lay-outprincipe bcgbuildingdesign) */
.dna { background: var(--white); color: var(--black); padding-block: var(--space-64); }
.dna-grid { row-gap: var(--space-64); }
.dna-photo { grid-column: 1 / -1; aspect-ratio: 4 / 5; overflow: hidden; }
.dna-photo img { width: 100%; height: 100%; object-fit: cover; }
.dna-text { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap-element); }
.dna-mark { width: var(--space-48); height: var(--space-48); flex: none; margin-bottom: var(--space-24); }
.dna-copy { font-size: var(--fs-body); line-height: var(--lh-body); }
.dna .link { margin-top: calc(var(--gap-action) - var(--gap-element)); }
@media (min-width: 768px) {
  .dna-photo { grid-column: 1 / span 4; }
  .dna-text { grid-column: 5 / span 4; align-self: end; }
}
@media (min-width: 1200px) {
  .dna { min-height: 100svh; display: flex; align-items: stretch; }
  .dna .container { display: grid; }
  .dna-grid { grid-template-rows: 1fr; }
  .dna-photo { grid-column: 1 / span 4; align-self: start; }
  .dna-text { grid-column: 7 / span 4; align-self: stretch; padding-bottom: var(--space-96); }
  .dna-mark { margin-bottom: auto; }
}

/* ---------- Waarden: vier naast elkaar op Soft Bone ---------- */
.waarden { background: var(--bone); }
.waarden .sec-head { grid-column: 1 / -1; margin-bottom: var(--gap-group); }
.values { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: var(--space-32) var(--grid-gutter); }
.value { border-top: 1px solid var(--color-line); padding-top: var(--space-16); display: grid; gap: var(--space-8); align-content: start; }
.value-word { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 400; letter-spacing: var(--ls-title); }
.value-text { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-muted); max-width: 28ch; }
@media (min-width: 768px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  .waarden .sec-head { grid-column: 1 / span 10; }
  .values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .value { padding-top: var(--space-24); }
}

/* ---------- Portfolio ---------- */
/* Showcase (lay-outprincipe bcgbuildingdesign): grote foto midden, volle-breedte lijst erachter */
.port-head { row-gap: var(--gap-element); margin-bottom: var(--gap-group); }
.port-head .sec-head { grid-column: 1 / -1; text-align: center; }
.port-intro { grid-column: 1 / -1; color: var(--color-muted); max-width: 52ch; justify-self: center; text-align: center; }
.port-stage-inner { position: relative; }
.port-list { grid-column: 1 / -1; }
.port-row {
  display: grid; grid-template-columns: var(--space-32) 1fr auto; align-items: baseline; column-gap: var(--space-16);
  padding-block: var(--space-16); border-top: 1px solid var(--color-line);
}
.port-ul li:last-child .port-row { border-bottom: 1px solid var(--color-line); }
.port-num { font-size: var(--fs-small); line-height: var(--lh-small); font-variant-numeric: tabular-nums; }
.port-name { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 700; letter-spacing: var(--ls-title); }
.port-meta { font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-muted); text-align: right; }
.port-visual { display: none; }

@media (min-width: 1200px) {

  .port-head { margin-bottom: calc(var(--gap-group) - var(--space-24)); }
  .port-stage { height: 100svh; min-height: 40rem; display: flex; align-items: center; overflow: hidden; }
  .port-stage .container { width: 100%; }
  .port-stage-inner { height: 100%; align-items: center; }
  .port-list { grid-row: 1; position: relative; z-index: 1; }
  .port-row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter); padding-block: var(--space-24); color: rgba(0,0,0,0.2); transition: color 0.5s var(--ease-out); }
  .port-row .port-meta { color: inherit; font-weight: 400; }
  .port-row .port-num { color: inherit; font-weight: 700; }
  .port-num { grid-column: 1; }
  .port-name { grid-column: 2 / span 2; white-space: nowrap; }
  .port-meta { grid-column: 10 / span 3; justify-self: end; }
  .port-row.is-active { color: var(--black); border-top-color: var(--black); }
  .port-row:focus-visible { color: var(--black); }
  .port-visual {
    display: block; grid-row: 1; grid-column: 4 / span 6; position: relative; z-index: 2; margin: 0;
    height: calc(100svh - var(--space-48)); max-height: 56rem; overflow: hidden; pointer-events: none; background: var(--white);
  }
  .port-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.7s var(--ease-out), transform 1.2s var(--ease-out); }
  .port-visual img.is-active { opacity: 1; transform: scale(1); z-index: 2; }
  /* vorige foto blijft vol staan onder de nieuwe, zodat de lijst nooit doorschijnt */
  .port-visual img.was-active { opacity: 1; transform: scale(1); z-index: 1; transition: none; }
}

/* ---------- Contact + footer: één blok op Discreet Blue ---------- */
.end { position: relative; background: var(--blue); overflow: hidden; display: flex; flex-direction: column; min-height: 100svh; }
.contact { position: relative; z-index: 1; padding-top: var(--gap-section); padding-bottom: var(--space-64); }
.contact-head { grid-column: 1 / -1; }
.contact-body { grid-column: 1 / -1; margin-top: var(--gap-group); display: grid; gap: var(--gap-action); align-content: start; }
.contact-body p { max-width: 44ch; }
.contact-body .btn { justify-self: start; }
.details { grid-column: 1 / -1; margin-top: var(--gap-group); display: grid; gap: var(--space-24); }
.details div { display: grid; gap: var(--space-4); }
.details dt { font-family: var(--font-serif); color: var(--color-muted); }
.details dd { margin: 0; }
.details a { background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat; transition: background-size var(--dur-fast) var(--ease-out); }
.details a:hover { background-size: 100% 1px; }

.footer { position: relative; z-index: 1; margin-top: auto; padding-bottom: var(--space-32); }
.foot-logo { grid-column: 1 / -1; justify-self: start; height: var(--space-32); margin-bottom: var(--space-32); }
.foot-row { grid-column: 1 / -1; display: grid; gap: var(--space-16); padding-top: var(--space-24); border-top: 1px solid var(--color-line);
  font-size: var(--fs-small); line-height: var(--lh-small); }
.foot-nav { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-24); }
.foot-nav a, .foot-legal a { transition: color var(--dur-fast); }
.foot-nav a:hover, .foot-legal a:hover { color: var(--color-muted); }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-24); color: var(--color-muted); }
.foot-legal .sp img { width: 2.5rem; height: auto; }
.foot-logo { transition: opacity var(--dur-fast); }
.foot-logo:hover { opacity: 0.6; }

/* handtekening: zelfde maat en plek als in de hero */
.end .al { width: 78%; right: -14%; bottom: -10%; z-index: 0; }
/* op mobiel ruimte onderaan voor de handtekening */
.end .footer { padding-bottom: 40vw; }

@media (min-width: 1200px) {
  .contact-head { grid-column: 1 / span 10; }
  .contact-body { grid-column: 1 / span 5; }
  .details { grid-column: 7 / span 3; align-self: start; }
  .foot-logo { height: var(--space-48); }
  .foot-row { grid-column: 1 / span 7; grid-template-columns: 1fr auto; align-items: center; }
  .end .footer { padding-bottom: var(--space-48); }
  .end .al { width: 37rem; right: -4.5rem; bottom: -6rem; }
}

/* ---------- Motion-hulpklassen ---------- */
.reveal-img { overflow: hidden; }
.reveal-img img { will-change: transform; }
.line-mask { overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
