/*
 * Studio Damanon: site styles.
 * Tokens mirror BRAND.md. Change a value there and here.
 * Mobile-first. Only transform and opacity are animated (BRAND.md §6).
 */

/* Fonts: self-hosted woff2 (Latin subset) from Fontsource 5.1.0, SIL Open Font License.
   No connection to Google Fonts (privacy). See public/assets/fonts/README.md. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-400-italic.woff2") format("woff2"); }

:root {
  /* Brand colours, measured from Manon's logo files (see BRAND.md) */
  --color-brown: #4A302C;
  --color-cream: #FDF1B4;
  --color-blue: #B5D7E9;

  /* Derived tints (mixed from the brand colours only) */
  --color-brown-deep: #3B2623;
  --color-brown-muted: #654D40;
  --color-cream-line: #E2D4A0;
  --color-cream-soft: #EFE2A9;
  --color-cream-light: #FFF8D6;   /* input fields on cream */
  --color-brown-soft: #5D4540;    /* floating shapes on brown */
  --color-brown-mid: #563B36;

  /* Typography (confirmed in the design canvas) */
  --font-sans: "Poppins", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --step-hero: clamp(2.5rem, 1.6rem + 4.5vw, 5.5rem);
  --step-h2: clamp(2rem, 1.4rem + 2.8vw, 3.5rem);
  --step-h3: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-small: 0.875rem;

  /* Shape and space */
  --radius-sm: 0.75rem;
  --radius-md: 1.5rem;
  --radius-lg: 2.25rem;
  --radius-card: 1.75rem;
  --radius-pill: 999px;
  --space-section: clamp(3.5rem, 2rem + 6vw, 7rem);
  --container: 75rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);

  /* Motion */
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 300ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Per-surface roles; sections override these */
  --surface: var(--color-cream);
  --on-surface: var(--color-brown);
  --on-surface-muted: var(--color-brown-muted);
  --accent-on-surface: var(--color-brown);
  --focus-ring: var(--color-brown);
}

/* Surfaces (BRAND.md, "Sectieritme") */
.surface-cream { --surface: var(--color-cream); --on-surface: var(--color-brown); --on-surface-muted: var(--color-brown-muted); --accent-on-surface: var(--color-brown); --focus-ring: var(--color-brown); }
.surface-blue  { --surface: var(--color-blue);  --on-surface: var(--color-brown); --on-surface-muted: var(--color-brown-muted); --accent-on-surface: var(--color-brown); --focus-ring: var(--color-brown); }
.surface-brown { --surface: var(--color-brown); --on-surface: var(--color-cream); --on-surface-muted: var(--color-blue); --accent-on-surface: var(--color-blue);  --focus-ring: var(--color-cream); }
[class*="surface-"] { background: var(--surface); color: var(--on-surface); }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-brown);
  color: var(--on-surface);
  font-family: var(--font-sans);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-hero); line-height: 1.05; }
h2 { font-size: var(--step-h2); margin-bottom: 0.75em; }
h3 { font-size: var(--step-h3); line-height: 1.2; }

p { margin: 0 0 1em; max-width: 65ch; }

a { color: inherit; text-underline-offset: 0.2em; }

/* The fixed heading pattern: one italic serif accent word */
.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-on-surface);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lead { font-size: calc(var(--step-body) * 1.15); color: var(--on-surface-muted); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Focus: always visible, colour per surface (BRAND.md §7) */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-brown);
  color: var(--color-cream);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); outline-color: var(--color-brown); }

/* Button (full component set in Fase 3) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--on-surface);
  color: var(--surface);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.button:hover { opacity: 0.9; }
.button:active { transform: scale(0.97); }

/* ------------------------------------------------------------------
 * Layout helpers
 * ------------------------------------------------------------------ */
.section { padding-block: var(--space-section); }
.section--tight { padding-block: calc(var(--space-section) * 0.6); }
.section--flush-top { padding-top: 0; }
.section-intro { margin-bottom: 2.5rem; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2.5rem;
}
.section-head h2 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
main:focus { outline: none; }
.breadcrumb { margin-bottom: 1.5rem; font-size: var(--step-small); }

/* Links and buttons */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.text-link span { transition: transform var(--dur-fast) var(--ease-out); }
.text-link:hover span { transform: translateX(3px); }
.button--large { min-height: 52px; padding: 1rem 2rem; font-size: 1.05rem; }
.button--light { background: var(--color-cream); color: var(--color-brown); }

/* ------------------------------------------------------------------
 * Header and navigation
 * ------------------------------------------------------------------ */
.site-header { position: relative; z-index: 20; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.5rem;
}
.logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-radius: var(--radius-sm); }
.logo img { display: block; width: auto; }
.logo--mark img { height: 2.5rem; }
@media (min-width: 960px) { .logo--mark img { height: 2.9rem; } }
.logo--full img { height: 6.5rem; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-blue);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-cream);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle__icon { display: grid; gap: 5px; width: 18px; }
.menu-toggle__icon span {
  display: block; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a:not(.button) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 2px;
  background: var(--color-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.site-nav a:not(.button):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.site-nav__cta { min-height: 44px; padding: 0.6rem 1.4rem; font-size: 0.95rem; }

/* Small screens: without JS the menu simply wraps below the logo; with JS it folds away. */
@media (max-width: 959px) {
  .site-header__inner { flex-wrap: wrap; padding-block: 0.75rem; }
  .site-nav { width: 100%; }
  .site-nav__cta { margin-top: 0.75rem; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    padding: 1rem var(--gutter) 2rem;
    background: var(--color-brown);
    box-shadow: 0 24px 24px -16px rgb(0 0 0 / 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
  }
  .js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s;
  }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a:not(.button) { width: 100%; font-size: 1.25rem; border-bottom: 1px solid var(--color-brown-muted); }
  .js .site-nav a:not(.button)::after { display: none; }
  .js .site-nav__cta { width: 100%; margin-top: 1.25rem; }
}
@media (min-width: 960px) {
  .site-nav { display: flex; align-items: center; gap: 1.75rem; }
}

/* ------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------ */
.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(3.5rem, 2rem + 6vw, 7rem); }
.hero h1 { max-width: 18ch; }
.hero__lead { margin-top: 1.5rem; font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.3125rem); max-width: 40rem; }
.hero--home { padding-block: clamp(3rem, 1.5rem + 7vw, 7.5rem) clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.hero--home h1 { font-size: clamp(2.65rem, 1.3rem + 6vw, 6rem); max-width: 15ch; }
.hero--compact { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.35fr 1fr; gap: 4rem; } }
.hero__text h1 { max-width: 14ch; }
.hero--page .hero__text h1 { max-width: 16ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.hero__art { max-width: min(100%, 18rem); width: 100%; justify-self: start; }
@media (min-width: 900px) { .hero__art { max-width: 32rem; justify-self: center; } }

/* ------------------------------------------------------------------
 * Decorative placeholder art (until real images exist)
 * ------------------------------------------------------------------ */
.art {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
}
.art.ratio-1x1 { aspect-ratio: 1 / 1; }
.art.ratio-3x4 { aspect-ratio: 3 / 4; }
.art.ratio-16x9 { aspect-ratio: 16 / 9; }
.art--blue { background: var(--color-blue); }
.art--cream { background: var(--color-cream); }
.art--brown { background: var(--color-brown); }
.art span { position: absolute; display: block; }
.art--blue span { background: var(--color-brown); }
.art--cream span { background: var(--color-blue); }
.art--brown span { background: var(--color-cream); }
.art--blob span { width: 62%; aspect-ratio: 1; right: -8%; bottom: -14%; border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; }
.art--blob::before { content: ""; position: absolute; width: 26%; aspect-ratio: 1; left: 14%; top: 16%; border-radius: 50%; background: var(--color-cream); }
.art--brown.art--blob::before { background: var(--color-blue); }
.art--cream.art--blob::before { background: var(--color-brown); }
.art--arch span { width: 52%; height: 78%; left: 24%; bottom: 0; border-radius: 999px 999px 0 0; }
.art--circle span { width: 58%; aspect-ratio: 1; left: 21%; top: 50%; transform: translateY(-50%); border-radius: 50%; }

/* ------------------------------------------------------------------
 * Home: split companies / private
 * ------------------------------------------------------------------ */
.split { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.split-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.75rem, 1rem + 2.5vw, 3.25rem);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out);
}

.split-card:hover, .split-card:focus-visible { transform: translateY(-4px); }
.split-card:focus-visible { outline-offset: 4px; outline-color: var(--color-brown); }
.split-card .eyebrow { margin: 0; font-size: 0.8rem; color: var(--on-surface-muted); }
.split-card__title { font-weight: 700; line-height: 1.15; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); text-wrap: balance; }
.split-card__text { color: var(--on-surface-muted); font-size: 1.0625rem; }
.split-card__button { align-self: flex-start; margin-top: auto; }

/* ------------------------------------------------------------------
 * Project cards and grid
 * ------------------------------------------------------------------ */
.project-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 1rem + 1.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
}
.project-card__link {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  text-decoration: none;
}
.project-card__link:focus-visible { outline-color: var(--color-brown); outline-offset: 4px; }
.project-card__tag { align-self: flex-start; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.project-card__media {
  overflow: hidden;
  border-radius: 1.25rem;
  aspect-ratio: 4 / 3;
}
@media (max-width: 639px) { .project-card__media { aspect-ratio: 16 / 10; } .project-card__link { padding: 1.25rem; } }
.project-card__media img, .project-card__media .art {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto;
  transition: transform var(--dur-slow) var(--ease-out);
}
.project-card__link:hover img, .project-card__link:hover .art,
.project-card__link:focus-visible img, .project-card__link:focus-visible .art { transform: scale(1.03); }
.project-card__body { margin-top: auto; }
.project-card__title { margin: 0 0 0.25rem; font-size: 1.375rem; font-weight: 600; }
.project-card__summary { margin: 0; font-size: 0.95rem; color: var(--on-surface-muted); }
.project-card__link:hover .project-card__title { text-decoration: underline; text-underline-offset: 0.2em; }

.empty-state {
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  border: 2px dashed currentColor;
  border-radius: var(--radius-md);
  text-align: center;
}
.empty-state p { margin-inline: auto; }
.empty-state p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
 * Steps, reasons, services
 * ------------------------------------------------------------------ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.step { padding: clamp(1.75rem, 1.2rem + 1.5vw, 2.25rem); border-radius: 2rem; }
.step__number { display: block; margin-bottom: 1.1rem; font-family: var(--font-serif); font-style: italic; font-size: 3.5rem; line-height: 1; color: var(--accent-on-surface); }
.step__title { margin-bottom: 0.5rem; }
.step p { margin: 0; }
.steps__note { margin-top: 3rem; font-size: calc(var(--step-body) * 1.1); font-weight: 500; }


.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  border-radius: 2rem;
  transition: transform var(--dur-base) var(--ease-out);
}
.service-card:hover, .service-card:focus-within { transform: translateY(-4px); }
.service-card__title { margin: 0 0 0.25rem; font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem); }
.service-card p { margin: 0; color: var(--on-surface-muted); }
.service-card__price { font-weight: 600; color: var(--on-surface) !important; }
.service-card__art { margin-top: 0.5rem; }
.service-card__art .art { border-radius: 1.25rem; }
.service-card__cta {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}


/* Private: practical info and season block */
.practical__list { display: grid; gap: 1rem; margin: 1.5rem 0 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.practical__list div { padding: 1.75rem 2rem; border: 1.5px solid var(--accent-on-surface); border-radius: var(--radius-card); }
.practical__list dt { font-weight: 700; margin-bottom: 0.35rem; }
.practical__list dd { margin: 0; color: var(--on-surface-muted); }
.season h2 { margin-bottom: 0.4em; }

/* About */
.about { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) {
  .about { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
}
.about__photo { max-width: 26rem; width: 100%; }
.about__img { width: 100%; border-radius: var(--radius-lg); }
.quote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid currentColor;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.35;
}
.quote p { margin: 0; }
.quote--large { margin: 0 auto; max-width: 40ch; padding: 0; border: 0; text-align: center; font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem); }
.quote--large p { margin-inline: auto; }

/* Work filter */
.work-filter { margin-top: 2.25rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips--sub { margin-top: 0.75rem; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1.2rem;
  border: 2px solid var(--accent-on-surface);
  border-radius: var(--radius-pill);
  color: var(--accent-on-surface);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.chip--small { min-height: 40px; padding: 0.3rem 1rem; font-size: 0.9rem; border-width: 1px; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-current="page"] { background: var(--accent-on-surface); color: var(--surface); }

/* Project detail */
.project__client { font-weight: 500; color: var(--on-surface-muted); }
.project__cover { margin: 3rem 0 0; }
.project__cover img, .project__cover .art { width: 100%; border-radius: var(--radius-lg); }
figcaption { margin-top: 0.6rem; font-size: var(--step-small); color: var(--on-surface-muted); }
.project__body { max-width: calc(46rem + 2 * var(--gutter)); margin-inline: 0; }
.prose p, .prose li { max-width: 65ch; }
.prose h2 { margin: 2.5rem 0 0.75rem; font-size: var(--step-h3); }
.prose ul { margin: 0 0 1em; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.prose .notice-box { margin-bottom: 2rem; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: var(--radius-md); }
.project-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.project-nav__link { gap: 0.6rem; }

/* Contact */
.contact { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.contact__channels-title { margin-top: 2.5rem; }
.contact__channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.contact__channels li { display: grid; gap: 0.1rem; }
.contact__channels span { font-size: var(--step-small); color: var(--on-surface-muted); }
.contact__channels li { font-weight: 600; }
.contact__channels a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }
.contact__form { padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem); border-radius: var(--radius-lg); }

/* ------------------------------------------------------------------
 * Contact form
 * ------------------------------------------------------------------ */
.contact__form-title { font-size: var(--step-h3); margin-bottom: 1.5rem; }
.contact-form { display: grid; gap: 1.25rem; }
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.form-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-field > label, .form-field > legend, .choice legend { display: block; margin-bottom: 0.4rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--on-surface-muted); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="date"],
.contact-form select, .contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--color-brown);
  border-radius: 1rem;
  background: var(--color-cream-light);
  color: var(--color-brown);
  font: inherit;
}
.contact-form textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.contact-form [aria-invalid="true"] { border-width: 3px; border-style: dashed; }
.field-error { margin: 0.4rem 0 0; font-size: var(--step-small); font-weight: 600; }
.field-error::before { content: "⚠ "; }
.form-alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--color-brown); color: var(--color-cream); --focus-ring: var(--color-brown); }
.form-alert p, .form-alert ul { margin: 0; }
.form-alert ul { padding-left: 1.2rem; margin-top: 0.4rem; }
.form-alert a { color: inherit; }
.form-alert:focus-visible { outline-color: var(--color-brown); }

.choice { margin: 0; padding: 0; border: 0; }
.choice__options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.choice__option { position: relative; display: block; cursor: pointer; }
.choice__option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__option span {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.6rem 1rem;
  border: 2px solid var(--color-brown); border-radius: var(--radius-pill);
  font-weight: 600; text-align: center;
  transition: transform var(--dur-fast) var(--ease-out);
}
.choice__option input:checked + span { background: var(--color-brown); color: var(--color-cream); }
.choice__option input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.choice__option:active span { transform: scale(0.98); }

.checks { display: grid; gap: 0.25rem; }
.checks--inline { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.check-option { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; cursor: pointer; }
.check-option input { width: 1.3rem; height: 1.3rem; margin: 0; accent-color: var(--color-brown); flex-shrink: 0; }

/* Variants: only the chosen one is shown (works without JS via :has). */
.contact-form:has(#type-bedrijf:checked) .variant--particulier,
.contact-form:has(#type-bedrijf:checked) .variant-hint--particulier,
.contact-form:has(#type-particulier:checked) .variant--bedrijf { display: none; }
.variant { display: grid; gap: 1.25rem; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { margin: 0; font-size: var(--step-small); color: var(--on-surface-muted); }
.contact-form .button { justify-self: start; }

.thanks h1 { max-width: 18ch; }

/* ------------------------------------------------------------------
 * Contact dialog ("Ik heb interesse")
 * ------------------------------------------------------------------ */
.contact-dialog {
  width: min(100% - 2rem, 44rem);
  max-height: min(100dvh - 2rem, 60rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-cream);
  color: var(--color-brown);
  --surface: var(--color-cream);
  --on-surface: var(--color-brown);
  --on-surface-muted: var(--color-brown-muted);
  --focus-ring: var(--color-brown);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.contact-dialog[open].is-visible { opacity: 1; transform: none; }
.contact-dialog::backdrop { background: rgb(74 48 44 / 0.55); }
.contact-dialog__inner { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); overflow-y: auto; max-height: inherit; }
.contact-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.contact-dialog__head h2 { margin: 0; font-size: var(--step-h3); }
.contact-dialog__close {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border: 2px solid var(--color-brown); border-radius: 50%;
  background: transparent; color: var(--color-brown);
  font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out);
}
.contact-dialog__close:active { transform: scale(0.94); }
body.dialog-open { overflow: hidden; }

/* Legal */
.notice-box { padding: 1.5rem; border: 2px dashed currentColor; border-radius: var(--radius-md); }

/* Closing CTA */
.cta__inner { text-align: center; }
.cta__title { font-size: clamp(2.25rem, 1.4rem + 4vw, 4.75rem); max-width: 16ch; margin-inline: auto; margin-bottom: 0.4em; }
.cta .lead { margin-inline: auto; }
.cta .button { margin-top: 1rem; }

/* ------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------ */
.site-footer { padding-block: 4rem 2rem; border-top: 1px solid var(--color-brown-muted); }
.site-footer .eyebrow { color: var(--color-blue); }
.site-footer__inner { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .site-footer__inner { grid-template-columns: 1.6fr 1.2fr 1fr; } .site-footer__brand { grid-column: auto; } }
.site-footer__brand p { margin-top: 1rem; max-width: 36ch; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: break-word; word-break: normal; }
.footer-list li:not(:has(a)) { min-height: 44px; display: flex; align-items: center; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-brown-muted);
  color: var(--color-blue);
  font-size: var(--step-small);
}
.site-footer__legal p { margin: 0; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* Error pages */
.error-page { padding-block: var(--space-section); }
.error-page h1 { max-width: 14ch; }
.debug {
  margin-top: 2rem;
  padding: 1rem;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: var(--color-cream-soft);
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ==================================================================
 * Play: floating shapes, ticker, badge, tilted cards, tabs, countdown,
 * speech bubble. Transform/opacity only; all off with reduced motion.
 * ================================================================== */
@keyframes float-a { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(18px, -24px) rotate(8deg); } }
@keyframes float-b { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-22px, 16px) rotate(-10deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(5deg); } }
@keyframes wob { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes intro { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.float-a { animation: float-a 9s ease-in-out infinite; }
.float-b { animation: float-b 11s ease-in-out infinite; }
.wiggle { animation: wiggle 4.5s ease-in-out infinite; }
.wob:hover, .logo:hover img { animation: wob 0.5s var(--ease-out); }
.js .intro { animation: intro 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js .intro--2 { animation-delay: 0.12s; }
.js .intro--3 { animation-delay: 0.26s; }

/* Floating blobs behind a hero; the outer span follows the mouse (site.js). */
.hero--play { position: relative; overflow: hidden; isolation: isolate; }
.hero--play > .container { position: relative; z-index: 1; }
.blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  display: block;
  transform: translate(calc(var(--px, 0) * var(--depth, 40) * 1px), calc(var(--py, 0) * var(--depth, 40) * 1px));
  transition: transform 0.6s var(--ease-out);
}
.blob__shape { display: block; width: 100%; height: 100%; }
.blob--blue .blob__shape { background: var(--color-blue); }
.blob--soft .blob__shape { background: var(--color-brown-soft); }
.blob--mid .blob__shape { background: var(--color-brown-mid); }
.blob--muted .blob__shape { background: var(--color-brown-muted); }
.blob-1 { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
.blob-2 { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
.blob-3 { border-radius: 55% 45% 60% 40% / 45% 60% 40% 55%; }
/* Positions as in the design canvas. The brown shapes are only a shade
   lighter than the background, so text on top keeps its contrast; the small
   blue one stays clear of the text and is hidden on small screens. */
.blob--pos-a { width: clamp(220px, 30vw, 420px); aspect-ratio: 1.1; right: -80px; top: 40px; }
.blob--pos-b { width: 88px; aspect-ratio: 1.05; right: 14%; top: 64px; }
.blob--pos-c { width: clamp(200px, 26vw, 360px); aspect-ratio: 1.12; left: -120px; bottom: -70px; }
.blob--pos-d { width: 90px; aspect-ratio: 1.05; right: 18%; bottom: 40px; }
.blobs--business .blob--pos-a { width: clamp(180px, 20vw, 260px); right: 2%; top: 30px; }
.blobs--private .blob--pos-a { width: clamp(200px, 26vw, 340px); right: -60px; top: 30px; }
.blobs--contact .blob--pos-a { width: 220px; right: 0; top: -10px; }
.blobs--contact .blob--pos-c { width: 200px; left: 0; bottom: 10px; }
@media (max-width: 899px) {
  .blob--pos-b, .blob--pos-d { display: none; }
  .blobs--private .blob--pos-a { width: 180px; right: -90px; top: -40px; }
}

/* Ticker: "Wij zorgen voor jouw [word]" */
.ticker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin: 2rem 0 0; font-size: clamp(1.375rem, 1rem + 1.8vw, 2.25rem); font-weight: 500; line-height: 1.25; max-width: none; color: var(--on-surface-muted); }
.ticker__line { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.35em; }
.ticker__words { display: inline-grid; overflow: hidden; padding-bottom: 0.15em; }
.ticker__word {
  grid-area: 1 / 1;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15em;
  color: var(--on-surface);
  opacity: 0;
  transform: translateY(70%);
  transition: opacity 0.5s var(--ease-out), transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ticker__word.is-active { opacity: 1; transform: none; }
.ticker__next {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border: 2px solid currentColor; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer;
}

/* Wobbling round badge on the hero art */
.hero__art { position: relative; }
.hero-badge {
  position: absolute; right: 8%; bottom: 4.5rem; z-index: 2;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  width: 168px; aspect-ratio: 1; margin: 0;
  border-radius: 50%; background: var(--color-cream); color: var(--color-brown);
  text-align: center;
}
@media (min-width: 960px) { .hero-badge { display: flex; } }
.hero-badge__big { font-family: var(--font-serif); font-style: italic; font-size: 1.875rem; line-height: 1.05; }
.hero-badge__small { margin-top: 0.4rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

/* Buttons: a little lift on hover */
.button { transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
.button:hover { opacity: 1; transform: translateY(-3px) scale(1.03); }
.button:active { transform: scale(0.97); }

/* Split cards: tilt on hover, chips appear (always visible on touch screens) */
.split-card:hover, .split-card:focus-visible { transform: translateY(-8px) rotate(-1deg); }
.split-card__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip-tag { display: inline-block; padding: 0.3rem 0.8rem; border: 1.5px solid currentColor; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 500; }
@media (hover: hover) {
  .split-card__chips .chip-tag { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
  .split-card:hover .chip-tag, .split-card:focus-visible .chip-tag { opacity: 1; transform: none; }
  .split-card:hover .chip-tag:nth-child(2), .split-card:focus-visible .chip-tag:nth-child(2) { transition-delay: 40ms; }
  .split-card:hover .chip-tag:nth-child(3), .split-card:focus-visible .chip-tag:nth-child(3) { transition-delay: 80ms; }
  .split-card:hover .chip-tag:nth-child(n+4), .split-card:focus-visible .chip-tag:nth-child(n+4) { transition-delay: 120ms; }
}

/* Project and service cards: playfully tilted, straighten on hover */
.project-card__link { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.project-grid > li:nth-child(odd) .project-card__link { transform: rotate(-1.4deg); }
.project-grid > li:nth-child(even) .project-card__link { transform: rotate(1.2deg); }
.project-grid > li .project-card__link:hover,
.project-grid > li .project-card__link:focus-visible { transform: rotate(0) translateY(-10px) scale(1.02); }
.project-card__more { display: inline-block; margin-top: 0.6rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; }
@media (hover: hover) {
  .project-card__more { opacity: 0; transform: translateX(-8px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
  .project-card__link:hover .project-card__more, .project-card__link:focus-visible .project-card__more { opacity: 1; transform: none; }
}
.service-grid > li:nth-child(odd) { transform: rotate(-1.2deg); }
.service-grid > li:nth-child(even) { transform: rotate(1deg); }
.service-grid > li.service-card:hover, .service-grid > li.service-card:focus-within { transform: rotate(0) translateY(-6px); }


/* Service tabs (Bedrijven) */
.service-tabs { display: grid; gap: 1.5rem 3rem; }
.js .service-tabs:has(.service-tabs__list:not([hidden])) { grid-template-columns: 1fr; }
@media (min-width: 900px) { .js .service-tabs:has(.service-tabs__list:not([hidden])) { grid-template-columns: minmax(16rem, 0.8fr) 1.4fr; align-items: start; } }
.service-tabs__list { display: flex; flex-direction: column; gap: 0.75rem; }
.service-tabs__list[hidden] { display: none; } /* phones and no JavaScript: services below each other */
@media (max-width: 899px) { .service-tabs__list { flex-direction: row; overflow-x: auto; padding-bottom: 0.25rem; } }
.service-tabs__tab {
  display: flex; align-items: center; gap: 1rem;
  min-height: 60px; padding: 0.75rem 1.4rem;
  border: 2px solid var(--color-brown); border-radius: var(--radius-md);
  background: transparent; color: var(--color-brown);
  font: inherit; font-size: 1.15rem; font-weight: 600; text-align: left; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out);
}
.service-tabs__tab:hover { transform: translateX(4px); }
.service-tabs__tab[aria-selected="true"] { background: var(--color-brown); color: var(--color-cream); transform: translateX(10px); }
@media (max-width: 899px) { .service-tabs__tab[aria-selected="true"], .service-tabs__tab:hover { transform: none; } }
.service-tabs__tab[aria-selected="true"]:focus-visible { outline-color: var(--color-brown); }
.service-tabs__n { font-size: 0.8rem; letter-spacing: 0.2em; }
.service-tabs__panels { display: grid; gap: 1.5rem; }
.service-tabs__panel {
  display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(1.5rem, 1rem + 3vw, 2.75rem); border-radius: var(--radius-lg);
}
@media (min-width: 640px) { .service-tabs__panel { grid-template-columns: 1.4fr 0.8fr; } }
.service-tabs__panel[hidden] { display: none; }
.service-tabs__panel.is-entering { animation: intro 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.service-tabs__title { font-size: var(--step-h2); margin-bottom: 0.3em; }
.service-tabs__art { max-width: 14rem; justify-self: center; width: 100%; }
@media (max-width: 639px) { .service-tabs__art { display: none; } }
.service-tabs__panel .lead { color: var(--on-surface-muted); }

/* Countdown (Particulieren) */
.countdown {
  display: grid; gap: 1.5rem 2.5rem; align-items: center;
  margin-top: 1.5rem; padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-radius: var(--radius-card);
}
.countdown[hidden] { display: none; }
@media (min-width: 860px) { .countdown { grid-template-columns: 1fr 1.15fr; } }
.countdown__label { display: block; margin: 0.9rem 0 0.6rem; font-size: 1.25rem; font-weight: 600; }
.countdown__input {
  width: 100%; max-width: 18rem; min-height: 48px; padding: 0.5rem 1rem;
  border: 1.5px solid var(--color-blue); border-radius: 1rem;
  background: var(--color-cream-light); color: var(--color-brown); font: inherit;
}
.countdown__days { margin: 0 0 1rem; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.1; color: var(--color-blue); }
.countdown__note { color: var(--color-blue); }
.countdown__days.is-bumped { animation: intro 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.countdown__note { font-size: var(--step-small); margin-top: -0.25rem; }

/* Speech bubble (Over Manon) */
.about__photo { position: relative; }
.bubble {
  position: absolute; right: 8%; top: -1.25rem; z-index: 2;
  min-height: 44px; padding: 0.7rem 1.3rem;
  border: 0; border-radius: var(--radius-pill);
  background: var(--color-brown); color: var(--color-cream);
  font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; line-height: 1.1;
  cursor: pointer;
}
.bubble::after {
  content: ""; position: absolute; left: 22%; bottom: -10px;
  border: 12px solid transparent; border-top-color: var(--color-brown); border-bottom: 0;
}
.bubble:focus-visible { outline-color: var(--color-brown); }

/* ==================================================================
 * Layout of the design canvas: buttons, sections and cards
 * ================================================================== */
.button { gap: 0.6rem; }
.button__arrow { flex-shrink: 0; transition: transform 0.25s var(--ease-out); }
.button:hover .button__arrow { transform: translateX(5px); }
.button--outline {
  background: transparent;
  color: var(--accent-on-surface);
  box-shadow: inset 0 0 0 2px var(--accent-on-surface);
}
.section-more { margin: 3rem 0 0; }
.section-intro { max-width: 40rem; margin-top: -0.75rem; }

/* Home: steps beside the reasons (brown) */
.how-why { display: grid; gap: 3.5rem; }
@media (min-width: 960px) { .how-why { grid-template-columns: 1.25fr 1fr; gap: 4rem; } }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.step--line { display: flex; gap: 1.25rem; align-items: baseline; padding: 0; border-radius: 0; }
.step--line .step__number { margin: 0; min-width: 1.6ch; font-size: 2.75rem; }
.step--line .step__title { margin: 0 0 0.2rem; font-size: 1.25rem; font-weight: 600; }
.step--line p { margin: 0; color: var(--on-surface-muted); }
.steps__note { margin: 2.25rem 0 0; font-size: 1rem; font-weight: 500; color: var(--on-surface-muted); }
.reason-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.reason-chip {
  display: grid; gap: 0.15rem;
  padding: 0.85rem 1.4rem;
  border: 1.5px solid currentColor; border-radius: 1.5rem;
  transition: transform var(--dur-base) var(--ease-out);
}
.reason-chip:hover { transform: translateY(-3px) rotate(-1deg); }
.reason-chip__title { font-size: 1.05rem; font-weight: 600; }
.reason-chip__text { font-size: 0.9rem; color: var(--on-surface-muted); }

/* Steps as cards: outlined on brown, filled on blue/cream */
.steps--outline .step { border: 1.5px solid var(--color-blue); }
.steps--outline .step p, .steps--filled .step p { color: var(--on-surface-muted); }
.step__title { font-size: 1.5rem; font-weight: 600; }

/* Business: per project or monthly */
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.plan {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  border-radius: 2rem;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.plan:hover { transform: translateY(-8px) rotate(-1deg); }
.plan__title { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); }
.plan p { margin: 0; color: var(--on-surface-muted); }
.plan__action { margin-top: auto !important; padding-top: 0.75rem; }

/* Project detail: facts in the hero */
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--accent-on-surface); font-weight: 500; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.breadcrumb { margin-bottom: 1rem; font-size: 1rem; }
.project-facts { display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; margin: 2.5rem 0 0; }
.project-facts dt { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-surface-muted); }
.project-facts dd { margin: 0.15rem 0 0; font-size: 1.125rem; font-weight: 600; }
.project__summary { color: var(--on-surface); }
.surface-brown figcaption { color: var(--color-blue); }

/* About: tilted photo card on blue */
.about__frame { overflow: hidden; border-radius: var(--radius-lg); background: var(--color-cream); transform: rotate(-1.4deg); }
.about__frame .art, .about__frame .about__img { border-radius: 0; }
.about__region { color: var(--on-surface-muted); }
.bubble { right: 12px; top: -22px; }

/* Contact: channels on brown, form on a cream card */
.contact__channels span { color: var(--color-blue); }
.contact .contact__form .optional, .contact .contact__form .form-privacy { color: var(--color-brown-muted); }

/* Frequently asked questions: native <details>, the "+" turns into a "×" */
.faq { display: grid; gap: 0.75rem; max-width: 54rem; }
.faq__item { border: 1.5px solid var(--on-surface); border-radius: 1.5rem; }
.faq__question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px; padding: 0.9rem 1.5rem;
  font-size: 1.125rem; font-weight: 600; line-height: 1.35;
  list-style: none; cursor: pointer; border-radius: 1.5rem;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__icon { flex-shrink: 0; font-size: 1.75rem; font-weight: 400; line-height: 1; transition: transform var(--dur-slow) var(--ease-out); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__answer { padding: 0 1.5rem 1.4rem; }
.faq__answer p { margin: 0 0 0.75em; font-size: 1.0625rem; }
.faq__answer p:last-child { margin-bottom: 0; }
.js .faq__item[open] .faq__answer { animation: intro 0.3s var(--ease-out) both; }

/* Home: two crossing, tilted bands with the services, on the seam between
   the brown hero and the cream section. They slide while scrolling (site.js
   sets --shift); without JavaScript or with reduced motion they stand still. */
.bands {
  --band-overlap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  background: linear-gradient(to bottom, var(--color-brown) 50%, var(--color-cream) 50%);
}
.band {
  width: 130%;
  margin-left: -15%;
  padding-block: clamp(0.7rem, 0.5rem + 0.8vw, 1.1rem);
  white-space: nowrap;
  color: var(--color-brown);
}
.band--a { position: relative; z-index: 2; background: var(--color-blue); transform: rotate(-4deg); }
.band--b { background: var(--color-cream); border-block: 2px solid var(--color-brown); transform: rotate(3.5deg); }
.band + .band { margin-top: calc(-1 * var(--band-overlap)); }
@media (max-width: 639px) { .bands { --band-overlap: -0.35rem; } }
.band__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 0.6rem + 1.2vw, 1.75rem);
  font-size: clamp(1.25rem, 0.85rem + 1.7vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  will-change: transform;
  transform: translateX(calc(var(--shift, 0) * -1px));
}
.band--b .band__track { transform: translateX(calc(var(--shift, 0) * 1px - 35%)); }
.band__word--accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.band__dot { flex-shrink: 0; width: 0.6em; aspect-ratio: 1; background: var(--color-brown); }
.band--b .band__dot { background: var(--color-blue); }

/* Post-it on the home hero: cream note with a strip of blue tape and a
   curled corner. In the text flow on smaller screens, pinned to the right of
   the hero on wide ones. Straightens and lifts a little on hover. */
.postit {
  position: relative;
  display: grid;
  gap: 0.9rem;
  width: min(100%, 16.5rem);
  margin-top: 2.75rem;
  padding: 2rem 1.5rem 1.6rem;
  /* cream paper with the bottom-right corner cut off; ::after draws the curl */
  background: linear-gradient(315deg, transparent 0 1.13rem, var(--color-cream) 1.13rem) no-repeat;
  color: var(--color-brown);
  text-decoration: none;
  box-shadow: 0 18px 30px -18px rgb(0 0 0 / 0.55);
  transform: rotate(3deg);
  transition: transform var(--dur-slow) var(--ease-out);
}
.postit::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1.6rem;
  height: 1.6rem;
  background: linear-gradient(315deg, transparent 50%, var(--color-cream-line) 50%);
  box-shadow: -3px -3px 6px -4px rgb(0 0 0 / 0.35);
}
.postit:hover, .postit:focus-visible { transform: rotate(-1deg) translateY(-6px) scale(1.03); }
.postit:focus-visible { outline-color: var(--color-cream); outline-offset: 6px; border-radius: 2px; }
.postit__tape {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  width: 5.5rem;
  height: 1.6rem;
  margin-left: -2.75rem;
  background: var(--color-blue);
  opacity: 0.85;
  transform: rotate(-4deg);
}
.postit__text { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; line-height: 1.3; }
.postit__link { font-size: 0.95rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.postit__link span { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.postit:hover .postit__link span { transform: translateX(4px); }
/* Wide screens: the note sits beside the text under the heading, the round
   badge moves to the top right so the two never touch. */
@media (min-width: 1200px) {
  .hero--home .postit { position: absolute; z-index: 2; right: 6%; bottom: -0.5rem; margin: 0; }
  .hero--home:has(.postit) .hero-badge { top: 5.5rem; bottom: auto; right: 5%; }
  .hero--home:has(.postit) .blob--pos-b { right: 28%; top: 2.5rem; }
}

/* Reveal on scroll (added by site.js only when motion is welcome) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out) var(--reveal-delay, 0ms),
              transform var(--dur-slow) var(--ease-out) var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .float-a, .float-b, .wiggle, .intro, .wob:hover, .logo:hover img { animation: none !important; }
  .blob { transform: none !important; }
  .project-grid > li .project-card__link:hover, .service-grid > li.service-card:hover,
  .button:hover, .service-tabs__tab:hover { transform: none; }
  .split-card:hover, .split-card:focus-visible, .service-card:hover, .service-card:focus-within,
  .project-card__link:hover img, .project-card__link:hover .art { transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* The ticker's "next word" button: invisible for mouse and touch, it appears
   only when reached with the keyboard (the moving word stays controllable). */
.ticker__next:not(:focus-visible) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0; }

/* Photo of a service (Beheer → Diensten), instead of the drawn shape */
.service-photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md, 1.5rem); }
.service-card__photo { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-md, 1.5rem); }
.service-tabs__photo { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-md, 1.5rem); }

/* Project page: cover size and layout (Beheer → Projecten → Weergave).
   The cover is always fully visible (contain), never cropped. */
.project-hero { display: grid; gap: 2rem; }
.project__cover { margin: 2rem 0 0; }
.project__cover img, .project__cover .art { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; object-fit: contain; border-radius: var(--radius-lg); }
.project__cover--klein img { max-height: 45vh; }
.project__cover--middel img { max-height: 68vh; }
.project__cover--groot img { max-height: 88vh; }
.project__cover .art { width: 100%; max-height: none; }
.project-hero--boven .project__cover--klein { max-width: 36rem; margin-inline: auto; }
@media (min-width: 900px) {
  .project-hero--naast { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 3.5rem; }
  .project-hero--naast .project__cover { margin: 0; }
  .project-hero--naast .project__cover--klein img { max-height: 50vh; }
  .project-hero--naast .project__cover--middel img { max-height: 70vh; }
  .project-hero--naast .project__cover--groot img { max-height: 84vh; }
}
.gallery img { max-height: 80vh; object-fit: contain; }
.gallery--klein { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.gallery--groot { grid-template-columns: 1fr; }
@media (min-width: 760px) { .gallery--klein { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); } .gallery--groot { grid-template-columns: 1fr; } }

/* Alignment chosen in the admin ([links] / [midden] / [rechts] before a text) */
.align-left, .align-center, .align-right { display: block; }
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
/* A centred or right-aligned title uses the full width, not just its own narrow box */
:is(h1, h2, h3, p, .lead):has(> .align-center, > .align-right) { max-width: none; }
p.align-center, p.align-right { max-width: none; }
p.align-center { margin-inline: auto; }
/* Centred or right-aligned text: the narrow text box itself moves to the
   middle (or right) of the page, not only its lines. */
.project__body:has(.align-center) { margin-inline: auto; }
.project__body:has(.align-right) { margin-left: auto; margin-right: 0; }
.prose p.align-center { max-width: 65ch; margin-inline: auto; }
.prose p.align-right { max-width: 65ch; margin-left: auto; margin-right: 0; }
.project__body:has(.prose .align-center) .project__summary { text-align: center; }
.project__body:has(.prose .align-right) .project__summary { text-align: right; }

/* Phones: calmer text sizes (the desktop sizes stay as they are) */
@media (max-width: 599px) {
  :root { --step-h2: 1.65rem; --step-h3: 1.2rem; }
  h1, .hero--home h1 { font-size: 2.15rem; line-height: 1.08; }
  .lead { font-size: 1.05rem; }
  .ticker { margin-top: 1.25rem; font-size: 1.2rem; }
  .eyebrow { font-size: 0.75rem; }
  .button--large { min-height: 48px; padding: 0.8rem 1.4rem; font-size: 1rem; }
  .split-card__title { font-size: 1.35rem; }
  .steps__note { margin-top: 2rem; font-size: 1rem; }
  .service-card__title { font-size: 1.3rem; }
  .hero__actions { gap: 0.6rem; }
  .postit__text { font-size: 1.15rem; }
}

/* Phones: menu bar at the bottom of the screen instead of the menu button */
.tabbar { display: none; }
@media (max-width: 959px) {
  .menu-toggle, .js .menu-toggle, .site-nav, .js .site-nav { display: none !important; }
  .site-header__inner { min-height: 4rem; padding-block: 0.6rem; }
  .tabbar {
    display: block; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
    background: var(--color-brown); color: var(--color-cream);
    box-shadow: 0 -10px 28px -14px rgb(0 0 0 / 0.55);
  }
  .tabbar ul { list-style: none; margin: 0 auto; padding: 0; max-width: 34rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.1rem; }
  .tabbar__link {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
    min-height: 3.4rem; padding: 0.3rem 0.05rem; border-radius: 14px;
    color: inherit; text-decoration: none; font-size: 0.64rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; text-align: center;
    transition: transform 150ms ease;
  }
  .tabbar__label { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
  .tabbar__link[aria-current="page"] { background: rgb(255 255 255 / 0.1); color: var(--color-blue); }
  .tabbar__link:active { transform: scale(0.94); }
  .tabbar__link--cta { background: var(--color-cream); color: var(--color-brown); }
  .tabbar__link--cta[aria-current="page"] { background: var(--color-blue); color: var(--color-brown); }
  .tabbar__link:focus-visible { outline: 3px solid var(--color-blue); outline-offset: -3px; }
  body { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .tabbar__link { transition: none; } }
