/* ============================================================
   MooieEnSuite.nl · Atelier voor authentieke kamer en suites
   Design tokens uit brand-guidelines.md
   ============================================================ */

:root {
  --ivory: #F4F1E6;
  --espresso: #3B342A;
  --espresso-deep: #332D24;
  --olive: #687457;
  --olive-deep: #4A5240;
  --linnen: #D8D8B6;
  --linnen-soft: #E6E2CE;
  --sand: #C9B99A;
  --terra: #C78364;
  --border: rgba(59, 52, 42, 0.12);
  --border-light: rgba(244, 241, 230, 0.14);
  --ring: #C78364;

  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --font-serif: "Libre Caslon Text", Georgia, serif;
  --font-sans: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(2.7rem, 1.1rem + 6.6vw, 6.9rem);
  --fs-h2: clamp(2.15rem, 1.15rem + 3.9vw, 4.5rem);
  --fs-h3: clamp(1.6rem, 1.25rem + 1.6vw, 2.7rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.45vw, 1.3rem);
  --fs-body: clamp(1rem, 0.97rem + 0.2vw, 1.1rem);
  --fs-label: 0.72rem;

  --gutter: clamp(1.4rem, 5vw, 5rem);
  --section-pad: clamp(5.5rem, 13vh, 10.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & basis ---------- */

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

html {
  scrollbar-color: var(--sand) var(--ivory);
  scrollbar-width: thin;
}

body {
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--terra); color: var(--ivory); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.002em;
}

/* ---------- Filmkorrel ---------- */

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Preloader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}

.loader__mark {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--espresso);
}

.loader__mark em, .nav__mark em, .footer__mark em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--terra);
}

.loader__line {
  width: min(220px, 40vw);
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

.loader__line-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
}

.loader__note {
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
}

/* ---------- Cursor ---------- */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 600;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: #E9E4D3;
  mix-blend-mode: exclusion;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(233, 228, 211, 0.9);
  mix-blend-mode: exclusion;
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Knoppen ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.05em 2em;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--terra);
  transform: translateY(102%);
  transition: transform 0.55s var(--ease-out);
}

.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }

.btn span {
  position: relative;
  z-index: 2;
  transition: color 0.35s ease;
  display: inline-block;
}

.btn--ivory {
  color: var(--ivory);
  border-color: rgba(244, 241, 230, 0.55);
}

.btn--ivory:hover span, .btn--terra:hover span { color: var(--ivory); }

.btn--terra {
  background: var(--terra);
  color: var(--ivory);
}

.btn--terra::before { background: var(--espresso); }

.btn--nav {
  padding: 0.8em 1.5em;
  color: currentColor;
  border-color: currentColor;
}

.btn--nav:hover span { color: var(--ivory); }

/* ---------- Navigatie ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem var(--gutter);
  color: var(--ivory);
  transition:
    background-color 0.5s var(--ease-out),
    color 0.5s var(--ease-out),
    padding 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.nav--solid {
  background: var(--ivory);
  color: var(--espresso);
  padding-block: 0.85rem;
  box-shadow: 0 1px 0 var(--border);
}

.nav__mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: clamp(1.4rem, 3vw, 2.8rem);
}

.nav__links a {
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding-block: 0.3em;
  background-image: linear-gradient(var(--terra), var(--terra));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: left calc(100% - 0.1em);
  transition: background-size 0.45s var(--ease-out);
}

.nav__links a:hover { background-size: 100% 1px; }

@media (max-width: 900px) {
  .nav__links { display: none; }
}

/* ---------- Hoofdstukmarkering ---------- */

.chapter {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: clamp(2.2rem, 5vh, 3.4rem);
}

.chapter__numeral {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.chapter__rule {
  width: 60px;
  height: 1px;
  background: rgba(59, 52, 42, 0.3);
  transform-origin: left;
}

.chapter__label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
}

.chapter--dark .chapter__rule, .chapter--ivory .chapter__rule { background: rgba(244, 241, 230, 0.35); }
.chapter--dark .chapter__label, .chapter--ivory .chapter__label { color: var(--linnen); }

/* ============================================================
   I · HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--espresso-deep);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  will-change: transform;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 24, 18, 0.5) 0%, rgba(28, 24, 18, 0.18) 38%, rgba(28, 24, 18, 0) 60%),
    linear-gradient(180deg, rgba(28, 24, 18, 0.5) 0%, rgba(28, 24, 18, 0) 30%, rgba(28, 24, 18, 0) 58%, rgba(28, 24, 18, 0.62) 100%),
    radial-gradient(130% 95% at 50% 42%, rgba(28, 24, 18, 0) 55%, rgba(28, 24, 18, 0.34) 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-inline: calc(var(--gutter) * 1.3);
  padding-top: 3.5rem;
  color: var(--ivory);
}

@media (max-height: 760px) {
  .hero__title { font-size: clamp(2.3rem, 1rem + 5.4vw, 5rem); }
  .hero__sub { margin-top: 1.2rem; }
  .hero__cta { margin-top: 1.8rem; }
  .hero__scrollhint { bottom: 1.4rem; }
  .hero__scrollline { height: 38px; }
}

.hero__kicker {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 241, 230, 0.85);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: var(--fs-hero);
  max-width: 15ch;
  color: var(--ivory);
  text-wrap: balance;
  text-shadow: 0 2px 34px rgba(20, 17, 12, 0.45);
}

.hero__kicker, .hero__sub {
  text-shadow: 0 1px 18px rgba(20, 17, 12, 0.5);
}

.hero__sub {
  margin-top: 1.7rem;
  max-width: 44ch;
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(244, 241, 230, 0.88);
}

.hero__cta { margin-top: 2.8rem; }

.hero__caption {
  position: absolute;
  z-index: 3;
  color: rgba(244, 241, 230, 0.92);
  opacity: 0;
}

.hero__caption--mid {
  left: calc(var(--gutter) * 1.3);
  bottom: 17%;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__caption--end {
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  white-space: nowrap;
}

.hero__scrollhint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: rgba(244, 241, 230, 0.85);
}

.hero__scrollhint span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__scrollline {
  position: relative;
  width: 1px;
  height: 52px;
  background: rgba(244, 241, 230, 0.28);
  overflow: hidden;
}

.hero__scrollline::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 45%;
  background: var(--ivory);
  animation: hintdrop 2.3s var(--ease-out) infinite;
}

@keyframes hintdrop {
  0% { transform: translateY(-110%); }
  60%, 100% { transform: translateY(240%); }
}

/* ============================================================
   II · ATELIER (intro)
   ============================================================ */

.atelier {
  position: relative;
  z-index: 2;
  /* Trek de sectie omhoog zodat hij over de nog vastgezette herofilm schuift,
     halverwege de scrub in plaats van pas na het lospinnen. */
  margin-top: -130vh;
  background: var(--ivory);
  padding: var(--section-pad) var(--gutter);
  box-shadow: 0 -40px 80px rgba(28, 24, 18, 0.28);
}

.atelier > .chapter, .atelier__statement, .atelier__grid {
  max-width: 1400px;
  margin-inline: auto;
}

.atelier__statement {
  font-size: var(--fs-h2);
  max-width: min(1400px, 19ch);
  margin-bottom: clamp(3.5rem, 8vh, 6rem);
  line-height: 1.14;
}

.atelier__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: start;
}

.img-reveal {
  overflow: hidden;
  border-radius: 2px;
  background: rgba(201, 185, 154, 0.25);
}

.img-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.atelier__figure figcaption {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--olive);
}

.atelier__figure figcaption::before {
  content: "Afb. 01 · ";
  color: var(--terra);
  letter-spacing: 0.1em;
}

.atelier__copy p {
  max-width: 58ch;
  font-weight: 300;
  color: rgba(59, 52, 42, 0.88);
}

.atelier__copy p + p { margin-top: 1.4rem; }

.atelier__index {
  margin-top: 2.8rem;
  counter-reset: idx;
}

.atelier__index li {
  counter-increment: idx;
  display: flex;
  align-items: baseline;
  padding: 1.05rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.98rem;
  font-weight: 500;
}

.atelier__index li:last-child { border-bottom: 1px solid var(--border); }

.atelier__index li::before {
  content: counter(idx, decimal-leading-zero);
  margin-right: 1.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--terra);
}

/* ============================================================
   III · HORIZONTAAL VERHAAL
   ============================================================ */

.story {
  background: var(--espresso-deep);
  color: var(--ivory);
}

.story__pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.story__track {
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
}

.panel {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 4vw, 5rem);
  padding-inline: clamp(2rem, 6vw, 7rem);
}

.panel--title {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: max(52vw, 620px);
}

.panel--flip { flex-direction: row-reverse; }

.panel__heading {
  font-size: var(--fs-h2);
  max-width: 13ch;
  color: var(--ivory);
}

.panel__lead {
  margin-top: 1.6rem;
  font-weight: 300;
  color: rgba(244, 241, 230, 0.68);
  letter-spacing: 0.02em;
}

.panel__body { flex: 0 1 30rem; }

.panel__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 1;
  color: rgba(201, 185, 154, 0.38);
  margin-bottom: 1.3rem;
}

.panel__title {
  font-size: clamp(1.8rem, 2.6vw, 2.9rem);
  color: var(--ivory);
  margin-bottom: 1.2rem;
}

.panel__body p {
  font-weight: 300;
  font-size: 1.02rem;
  color: rgba(244, 241, 230, 0.78);
  max-width: 46ch;
}

.panel__media {
  width: min(44vw, 720px);
  height: 62vh;
}

.panel__media--tall {
  width: min(30vw, 460px);
  height: 74vh;
}

.panel__media--drawing {
  width: min(48vw, 780px);
  height: auto;
  align-self: center;
}

.panel__media .img-reveal {
  width: 100%;
  height: 100%;
  background: rgba(244, 241, 230, 0.06);
}

.img-reveal--dark { box-shadow: 0 0 0 1px rgba(244, 241, 230, 0.08); }

/* technische tekening */

.tekening { width: 100%; height: auto; }

.tekening .td {
  stroke: rgba(244, 241, 230, 0.88);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  fill: none;
}

.tekening .td--dim {
  stroke: rgba(199, 131, 100, 0.95);
  stroke-width: 1;
}

.tekening .td-txt {
  fill: var(--sand);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.tekening .td-txt--label {
  fill: rgba(216, 216, 182, 0.72);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.story__progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 2.1rem;
  height: 1px;
  background: rgba(244, 241, 230, 0.16);
}

.story__progress-fill {
  display: block;
  height: 100%;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
}

/* ============================================================
   IV · AMBACHTSDETAILS
   ============================================================ */

.craft {
  background: linear-gradient(180deg, var(--ivory) 0%, #EFEBDB 70%, var(--linnen-soft) 100%);
  padding: var(--section-pad) var(--gutter);
}

.craft > * { max-width: 1440px; margin-inline: auto; }

.craft__heading {
  font-size: var(--fs-h2);
  max-width: 16ch;
}

.craft__lead {
  margin-top: 1.5rem;
  margin-bottom: clamp(3rem, 7vh, 5rem);
  max-width: 50ch;
  font-weight: 300;
  color: rgba(59, 52, 42, 0.75);
}

.craft__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  perspective: 1200px;
}

.craft__item {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.craft__item--tall:nth-of-type(1) { grid-column: 1; grid-row: 1 / 3; }
.craft__item:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.craft__item:nth-of-type(3) { grid-column: 2; grid-row: 2; }
.craft__item--tall:nth-of-type(4) { grid-column: 3; grid-row: 1 / 3; }
.craft__item--wide { grid-column: 1 / 4; grid-row: 3; }

.craft__imgwrap {
  overflow: hidden;
  border-radius: 2px;
  background: rgba(201, 185, 154, 0.25);
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.6s var(--ease-out);
}

.craft__item:hover .craft__imgwrap {
  box-shadow: 0 34px 70px -34px rgba(59, 52, 42, 0.45);
}

.craft__imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.3s var(--ease-out);
}

.craft__item:hover .craft__imgwrap img { transform: scale(1.07); }

.craft__item--tall .craft__imgwrap { height: calc(100% - 5.4rem); }
.craft__item:not(.craft__item--tall):not(.craft__item--wide) .craft__imgwrap { aspect-ratio: 4 / 2.9; }
.craft__item--wide .craft__imgwrap { aspect-ratio: 21 / 7.5; }

.craft__item figcaption { margin-top: 1.1rem; }

.craft__item figcaption h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.craft__item figcaption p {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(59, 52, 42, 0.68);
}

.craft__marks {
  margin-top: clamp(4rem, 9vh, 6.5rem);
  padding-top: clamp(2.8rem, 5vh, 4rem);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.icon {
  width: 62px;
  height: 62px;
}

.icon .ic {
  stroke: var(--espresso);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon .ic--dim {
  stroke: var(--terra);
  stroke-width: 1.2;
}

.craft__mark h3 {
  font-size: 1.18rem;
  margin: 1.1rem 0 0.5rem;
}

.craft__mark p {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(59, 52, 42, 0.68);
  max-width: 30ch;
}

/* ============================================================
   V · TRANSFORMATIE (voor / na)
   ============================================================ */

.reveal-section {
  background: var(--linnen-soft);
}

.reveal-section__pin {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 10vh, 7rem) var(--gutter);
  text-align: center;
}

.reveal-section__pin .chapter { justify-content: center; margin-bottom: 1.8rem; }

.reveal-section__heading {
  font-size: var(--fs-h2);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.compare {
  --wipe: 0%;
  position: relative;
  width: min(86vw, 1180px);
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 44px 90px -44px rgba(59, 52, 42, 0.5);
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare__before img {
  filter: grayscale(0.92) sepia(0.12) brightness(0.68) contrast(0.9) saturate(0.45);
}

.compare__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--wipe)) 0 0);
}

.compare__tag {
  position: absolute;
  top: 1.3rem;
  padding: 0.45em 0.95em;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  border-radius: 2px;
}

.compare__tag--before { right: 1.4rem; background: rgba(59, 52, 42, 0.72); }
.compare__tag--after { left: 1.4rem; background: rgba(199, 131, 100, 0.92); }

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--wipe);
  width: 1px;
  background: rgba(244, 241, 230, 0.9);
  box-shadow: 0 0 26px rgba(28, 24, 18, 0.45);
}

.compare__handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 230, 0.85);
  background: rgba(59, 52, 42, 0.55);
  color: var(--ivory);
  font-size: 1rem;
  letter-spacing: 0.2em;
  padding-left: 0.2em;
}

.reveal-section__caption {
  margin-top: 2.2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18rem;
  color: rgba(59, 52, 42, 0.8);
}

/* ============================================================
   VI · WERKWIJZE
   ============================================================ */

.process {
  background: var(--olive-deep);
  color: var(--ivory);
  padding: var(--section-pad) var(--gutter);
}

.process > * { max-width: 1200px; margin-inline: auto; }

.process__heading {
  font-size: var(--fs-h2);
  color: var(--ivory);
  max-width: 18ch;
}

.process__timeline {
  position: relative;
  margin-top: clamp(3.5rem, 8vh, 5.5rem);
}

.process__rail {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  overflow: visible;
}

.process__railpath {
  stroke: rgba(244, 241, 230, 0.85);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  fill: none;
}

.process__step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: clamp(2.2rem, 5.5vh, 3.6rem);
}

.process__dot {
  position: absolute;
  left: 50%;
  top: clamp(2.9rem, 6.5vh, 4.3rem);
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  border-radius: 50%;
  border: 1px solid var(--terra);
  background: var(--olive-deep);
}

.process__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--terra);
}

.process__step:nth-child(odd) .process__card {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.process__step:nth-child(even) .process__card { grid-column: 2; }

.process__card { max-width: 26rem; }

.process__meta {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(216, 216, 182, 0.85);
  margin-bottom: 0.7rem;
}

.process__card h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  color: var(--ivory);
  margin-bottom: 0.8rem;
}

.process__card p {
  font-weight: 300;
  font-size: 0.98rem;
  color: rgba(244, 241, 230, 0.8);
}

/* ============================================================
   VII · SLOT
   ============================================================ */

.finale {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ivory);
}

.finale__bg {
  position: absolute;
  inset: 0;
}

.finale__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  will-change: transform;
}

.finale__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 24, 18, 0.42) 0%, rgba(28, 24, 18, 0.08) 55%),
    linear-gradient(180deg, rgba(28, 24, 18, 0.68) 0%, rgba(28, 24, 18, 0.42) 45%, rgba(28, 24, 18, 0.76) 100%);
}

.finale__heading, .finale__sub {
  text-shadow: 0 2px 30px rgba(20, 17, 12, 0.5);
}

.finale__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding: clamp(6rem, 14vh, 9rem) var(--gutter);
}

.finale__heading {
  font-size: var(--fs-h2);
  max-width: 17ch;
  color: var(--ivory);
}

.finale__sub {
  margin-top: 1.7rem;
  max-width: 46ch;
  font-size: var(--fs-lead);
  font-weight: 300;
  color: rgba(244, 241, 230, 0.86);
}

.finale__actions {
  margin-top: 2.9rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.finale__mail {
  font-size: 0.92rem;
  color: rgba(244, 241, 230, 0.82);
  background-image: linear-gradient(var(--terra), var(--terra));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: left calc(100% - 0.05em);
  padding-bottom: 0.2em;
  transition: color 0.35s ease;
}

.finale__mail:hover { color: var(--terra); }

/* ---------- Footer ---------- */

.footer {
  background: var(--espresso);
  color: rgba(244, 241, 230, 0.78);
  padding: clamp(3.5rem, 8vh, 5.5rem) var(--gutter) 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1400px;
  margin-inline: auto;
}

.footer__mark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ivory);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__nav a, .footer__contact a {
  font-size: 0.88rem;
  width: fit-content;
  background-image: linear-gradient(var(--terra), var(--terra));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: left calc(100% - 0.05em);
  transition: background-size 0.45s var(--ease-out);
}

.footer__nav a:hover, .footer__contact a:hover { background-size: 100% 1px; }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__contact a { color: var(--terra); }

.footer__contact span { font-size: 0.85rem; color: rgba(244, 241, 230, 0.55); }

.footer__seo {
  max-width: 1400px;
  margin: 3rem auto 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(244, 241, 230, 0.42);
  max-width: min(1400px, 68ch);
}

.footer__base {
  max-width: 1400px;
  margin: 2.4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(244, 241, 230, 0.45);
}

/* ============================================================
   Responsief
   ============================================================ */

@media (max-width: 980px) {
  .atelier__grid { grid-template-columns: 1fr; }
  .atelier__copy { max-width: 620px; }

  .craft__grid { grid-template-columns: 1fr 1fr; }
  .craft__item--tall:nth-of-type(1) { grid-column: 1; grid-row: 1 / 3; }
  .craft__item:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .craft__item:nth-of-type(3) { grid-column: 2; grid-row: 2; }
  .craft__item--tall:nth-of-type(4) { grid-column: 1; grid-row: 3 / 5; }
  .craft__item--wide { grid-column: 2; grid-row: 3 / 5; }
  .craft__item--wide .craft__imgwrap { aspect-ratio: auto; height: calc(100% - 5.4rem); }

  .craft__marks { grid-template-columns: 1fr; gap: 2.6rem; }
}

@media (max-width: 900px) {
  /* horizontaal verhaal wordt verticaal */
  .story__pin { height: auto; overflow: visible; padding-block: var(--section-pad); }
  .story__track { flex-direction: column; width: 100%; gap: clamp(4rem, 9vh, 6rem); }
  .panel, .panel--flip {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    width: 100%;
    padding-inline: var(--gutter);
    gap: 2rem;
  }
  .panel--title { width: 100%; }
  .panel__media, .panel__media--tall, .panel__media--drawing { width: 100%; height: auto; }
  .panel__media .img-reveal { height: min(58vh, 60vw); }
  .panel__media--tall .img-reveal { height: min(74vh, 110vw); }
  .story__progress { display: none; }

  .process__rail { left: 6px; transform: none; }
  .process__step { grid-template-columns: 1fr; padding-left: 2.6rem; }
  .process__step:nth-child(odd) .process__card { justify-self: start; text-align: left; }
  .process__step:nth-child(even) .process__card { grid-column: 1; }
  .process__dot { left: 6px; margin-left: 0; }
}

@media (max-width: 640px) {
  .hero__overlay { padding-inline: var(--gutter); justify-content: flex-end; padding-bottom: 22vh; }
  .hero__caption--mid { display: none; }
  .hero__caption--end { font-size: 1rem; white-space: normal; width: 86vw; text-align: center; }

  .craft__grid { grid-template-columns: 1fr; }
  .craft__item--tall:nth-of-type(1), .craft__item:nth-of-type(2), .craft__item:nth-of-type(3),
  .craft__item--tall:nth-of-type(4), .craft__item--wide { grid-column: 1; grid-row: auto; }
  .craft__item--tall .craft__imgwrap { height: auto; aspect-ratio: 3 / 4; }
  .craft__item--wide .craft__imgwrap { height: auto; aspect-ratio: 16 / 9; }

  .compare { aspect-ratio: 4 / 4.6; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero__scrollline::after { animation: none; }
  .hero__video { transform: none; }
  .finale__bg img { transform: none; }
  .compare { --wipe: 50%; }
  .craft__imgwrap img, .btn::before { transition: none; }
  .cursor-dot, .cursor-ring { display: none; }
}
