/* ==========================================================================
   Olaf Minten Architectuur — shared design system
   styles.css · single source of truth for palette, type, spacing, motion
   and the site chrome (header/nav/footer) every page links to verbatim.

   Direction: light warm editorial ("architecture monograph"), derived from
   the reference tokens (accent oklch(68% .06 55) = #B08A66, radius .5rem,
   spacing .25rem, blur 8/12px) resolved against the shipped light render:
   warm paper canvas, near-black ink, hairline rules, one copper accent.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* --- Color: warm editorial palette ------------------------------- */
  --background: #fafaf7;          /* warm paper canvas                */
  --foreground: #171513;          /* warm near-black ink              */
  --surface: #ffffff;             /* cards, form fields               */
  --surface-muted: #f3f0ea;       /* subtle panels, stat strips       */
  --card: #ffffff;                /* reference token --card           */
  --popover: #ffffff;             /* reference token --popover        */
  --primary: #171513;             /* dark pill buttons                */
  --primary-foreground: #fafaf7;  /* label on primary                 */
  --secondary: #6b6864;           /* body copy, descriptions          */
  --muted: #8a8781;               /* metadata, captions (token)       */
  --accent: #b08a66;              /* oklch(68% .06 55) — copper       */
  --accent-strong: #8f6c4b;       /* accent hover / on-light text     */
  --accent-soft: #f0e7dd;         /* accent tint background           */
  --border: #e7e4de;              /* hairline rules (token)           */
  --input: rgba(23, 21, 19, 0.12);/* reference token --input          */
  --ring: #b08a66;                /* focus ring (token)               */
  --blueprint: #9fb0c0;           /* faint technical line-drawing     */
  --white: #ffffff;
  --black: #000000;
  --overlay: rgba(0, 0, 0, 0.8);  /* scrim over imagery               */

  /* --- Typography ------------------------------------------------- */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.1em;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* --- Spacing scale (base --spacing: .25rem) --------------------- */
  --spacing: 0.25rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* --- Radius & shadow -------------------------------------------- */
  --radius: 0.5rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-pill: 9999px;

  --shadow-xs: 0 1px 2px rgba(23, 21, 19, 0.05);
  --shadow-sm: 0 1px 3px rgba(23, 21, 19, 0.06), 0 1px 2px rgba(23, 21, 19, 0.04);
  --shadow-md: 0 4px 12px rgba(23, 21, 19, 0.07), 0 2px 4px rgba(23, 21, 19, 0.04);
  --shadow-lg: 0 16px 32px rgba(23, 21, 19, 0.10);

  /* --- Blur (reference tokens) ------------------------------------ */
  --blur-sm: 8px;
  --blur-md: 12px;

  /* --- Motion ----------------------------------------------------- */
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Layout ----------------------------------------------------- */
  --container-max: 74rem;         /* ~1185px content width            */
  --container-wide: 84rem;
  --gutter: 1.5rem;
  --header-height: 4.5rem;
  --section-y: var(--space-16);
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

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

::selection {
  background-color: var(--accent-soft);
  color: var(--foreground);
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--foreground);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5,
h6 {
  font-size: var(--text-lg);
}

p {
  color: var(--secondary);
}

strong,
b {
  font-weight: var(--weight-semibold);
  color: var(--foreground);
}

em,
i {
  font-style: italic;
}

.text-sm {
  font-size: var(--text-sm);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-muted {
  color: var(--muted);
}

.text-accent {
  color: var(--accent-strong);
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--secondary);
}

/* Signature gesture: one italic word inside an upright tight headline */
.emphasis {
  font-style: italic;
  font-weight: var(--weight-medium);
}

/* Uppercase mono eyebrow / metadata labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-normal);
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background-color: var(--accent);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   4. Layout: container, sections, grid & flex helpers
   -------------------------------------------------------------------------- */

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

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section-tight {
  padding-block: var(--space-10);
}

.section-muted {
  background-color: var(--surface-muted);
}

.section-rule {
  border-top: 1px solid var(--border);
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

.divider-dashed {
  border: 0;
  border-top: 1px dashed var(--border);
  margin: var(--space-8) 0;
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--space-6);
}

.flex {
  display: flex;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.text-center {
  text-align: center;
}

@media (min-width: 640px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 2.5rem;
    --section-y: var(--space-20);
  }

  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

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

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

@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-6xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  .lead {
    font-size: var(--text-xl);
  }
}

@media (min-width: 1280px) {
  h1 {
    font-size: var(--text-7xl);
  }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  text-align: center;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: var(--foreground);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--foreground);
  color: var(--foreground);
}

.btn-secondary:hover {
  background-color: var(--foreground);
  color: var(--primary-foreground);
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--surface-muted);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-arrow::after {
  content: "→";
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   6. Cards & media
   -------------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
}

.card-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--surface-muted);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--foreground);
}

.card-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
}

.card-link:hover .card-title {
  color: var(--accent-strong);
}

.card-link:hover .card-media {
  opacity: 0.92;
}

/* --------------------------------------------------------------------------
   7. Site chrome — header / nav (used verbatim on every page)
   The nav is always visible at every width: the mono links wrap in their own
   row under the brand on small screens and sit on one horizontal row on
   desktop. No toggle, no menu script — every link is reachable without any
   interaction, and the markup is identical on every page.
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(250, 250, 247, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  min-height: var(--header-height);
  padding-block: var(--space-3);
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  line-height: var(--leading-tight);
}

.site-brand-name {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--foreground);
}

.site-brand-sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  width: 100%;
  order: 3;
  padding-block: var(--space-3) var(--space-1);
  border-top: 1px solid var(--border);
}

.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  flex: 1 1 auto;
}

.site-nav-link {
  display: block;
  padding: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--secondary);
  transition: color var(--duration-fast) var(--ease);
}

.site-nav-link:hover,
.site-nav-link.is-active {
  color: var(--foreground);
}

.site-nav-cta {
  white-space: nowrap;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .site-header-inner {
    flex-wrap: nowrap;
    padding-block: 0;
  }

  .site-nav {
    width: auto;
    order: 0;
    flex-wrap: nowrap;
    gap: var(--space-6);
    padding-block: 0;
    border-top: 0;
  }

  .site-nav-links {
    flex-wrap: nowrap;
    gap: var(--space-1) var(--space-4);
  }

  .site-nav-cta {
    margin-left: 0;
  }
}

/* --------------------------------------------------------------------------
   8. Site chrome — footer (used verbatim on every page)
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: var(--space-16);
  padding-block: var(--space-16) 0;
  background-color: var(--surface-muted);
  border-top: 1px solid var(--border);
  color: var(--secondary);
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--foreground);
}

.footer-tagline {
  max-width: 28rem;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  display: inline-block;
  padding-block: var(--space-1);
  font-size: var(--text-sm);
  color: var(--secondary);
  transition: color var(--duration-fast) var(--ease);
}

.footer-link:hover {
  color: var(--accent-strong);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.footer-contact a:hover {
  color: var(--accent-strong);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-block: var(--space-6);
  border-top: 1px solid var(--border);
}

.footer-copyright,
.footer-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   9. Form controls (shared by the contact form and any page)
   -------------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: var(--surface);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--foreground);
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.textarea {
  min-height: 8rem;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   10. Motion: reusable animation & transition classes
   Durations 150–500ms, easing cubic-bezier(.4,0,.2,1) per the reference feel.
   -------------------------------------------------------------------------- */

@keyframes reveal-up {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

@keyframes enter {
  0% {
    opacity: var(--enter-opacity, 1);
    transform: translate3d(var(--enter-x, 0), var(--enter-y, 0), 0) scale3d(var(--enter-scale, 1), var(--enter-scale, 1), 1);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes exit {
  0% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: var(--exit-opacity, 1);
    transform: translate3d(var(--exit-x, 0), var(--exit-y, 0), 0) scale3d(var(--exit-scale, 1), var(--exit-scale, 1), 1);
  }
}

@keyframes accordion-down {
  0% {
    height: 0;
    opacity: 0;
  }
  100% {
    height: var(--accordion-height, auto);
    opacity: 1;
  }
}

@keyframes accordion-up {
  0% {
    height: var(--accordion-height, auto);
    opacity: 1;
  }
  100% {
    height: 0;
    opacity: 0;
  }
}

@keyframes caret-blink {
  0%,
  70%,
  100% {
    opacity: 1;
  }
  20%,
  50% {
    opacity: 0;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Scroll-reveal: apply .reveal (add .is-visible via IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease),
    transform var(--duration-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* fade-up: immediate enter animation, stagger with --delay */
.fade-up {
  animation: reveal-up var(--duration-slow) var(--ease) both;
  animation-delay: var(--delay, 0ms);
}

.fade-in {
  animation: fade-in var(--duration-base) var(--ease) both;
  animation-delay: var(--delay, 0ms);
}

.pulse {
  animation: pulse 2s var(--ease) infinite;
}

/* enter / exit helpers (dialog, menu, toast choreography) */
.enter {
  animation: enter var(--duration-base) var(--ease-out) both;
  --enter-opacity: 0;
  --enter-y: 12px;
  --enter-scale: 0.98;
}

.exit {
  animation: exit var(--duration-fast) var(--ease) both;
  --exit-opacity: 0;
  --exit-y: 8px;
  --exit-scale: 0.98;
}

/* Accordion panels: pair with height measured into --accordion-height */
.accordion-down {
  overflow: hidden;
  animation: accordion-down var(--duration-base) var(--ease) both;
}

.accordion-up {
  overflow: hidden;
  animation: accordion-up var(--duration-fast) var(--ease) both;
}

.caret-blink {
  animation: caret-blink 1.2s steps(1, end) infinite;
}

/* Marquee: duplicate the track content, wrap in .marquee > .marquee-track */
.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: var(--space-12);
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* Shared transition utilities */
.transition {
  transition:
    background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    opacity var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.transition-slow {
  transition-duration: var(--duration-slow);
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   11. Page & section components (home + blog content)
   Every layout class any page body uses lives here so the whole site shares
   one design language. All values come from the tokens above — no per-page
   palettes, fonts or spacing.
   -------------------------------------------------------------------------- */

/* Stagger helpers for the hero entrance (pair with .fade-up and --delay) */
.delay-1 { --delay: 80ms; }
.delay-2 { --delay: 180ms; }
.delay-3 { --delay: 280ms; }
.delay-4 { --delay: 380ms; }

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-20) var(--space-16);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  max-width: 18ch;
  margin-bottom: var(--space-6);
}

.hero-lead {
  max-width: 36rem;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-blueprint {
  position: absolute;
  right: -8rem;
  bottom: -6rem;
  width: min(78%, 44rem);
  color: var(--blueprint);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 768px) {
  .hero {
    padding-block: var(--space-24) var(--space-20);
  }

  .hero-blueprint {
    right: -4rem;
    bottom: -4rem;
    width: min(58%, 42rem);
  }
}

/* --- Stats strip -------------------------------------------------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  padding: var(--space-5) var(--space-4);
  border-top: 1px solid var(--border);
}

.stat-value {
  margin-bottom: var(--space-2);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--foreground);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat {
    padding: var(--space-6) var(--space-5);
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .stat:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

/* --- Werkwijze: numbered step list -------------------------------------- */

.werk-layout {
  display: grid;
  gap: var(--space-10);
}

.werk-list {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-top: 1px solid var(--border);
}

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

.step-num {
  padding-top: 0.3rem;
  color: var(--muted);
}

.step-title {
  margin-bottom: var(--space-2);
  font-size: var(--text-xl);
}

.step-text {
  font-size: var(--text-sm);
}

@media (min-width: 1024px) {
  .werk-layout {
    grid-template-columns: 1fr 1.45fr;
    gap: var(--space-16);
  }

  .werk-head {
    position: sticky;
    top: calc(var(--header-height) + var(--space-8));
    align-self: start;
  }
}

/* --- Filters & project grid --------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.chip {
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--secondary);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

.chip:hover {
  border-color: var(--foreground);
  color: var(--foreground);
}

.chip.is-active {
  background-color: var(--foreground);
  border-color: var(--foreground);
  color: var(--primary-foreground);
}

.project-grid {
  display: grid;
  gap: var(--space-6);
}

.project-grid .card {
  height: 100%;
}

.is-filtered-out {
  display: none;
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Media frames, splits & feature panels ------------------------------ */

.media-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--surface-muted);
}

.split {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.feature {
  padding: var(--space-6);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-title {
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
}

.feature-text {
  font-size: var(--text-sm);
}

.signature {
  color: var(--muted);
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

/* --- FAQ accordion (native details/summary) ----------------------------- */

.faq-grid {
  align-items: start;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border-top: 1px solid var(--border);
  padding-block: var(--space-4);
}

.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--foreground);
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  color: var(--accent-strong);
}

.faq-item[open] .faq-q::after {
  content: "\2013";
}

.faq-answer {
  padding-top: var(--space-3);
  font-size: var(--text-sm);
}

.faq-item[open] .faq-answer {
  animation: fade-in var(--duration-base) var(--ease) both;
}

/* --- Contact split, form & info column ---------------------------------- */

.contact-split {
  display: grid;
  gap: var(--space-10);
}

.contact-title {
  margin-bottom: var(--space-6);
}

.contact-side {
  display: grid;
  gap: var(--space-8);
  align-content: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-note {
  font-size: var(--text-sm);
  color: var(--accent-strong);
}

.form-note[hidden] {
  display: none;
}

@media (min-width: 1024px) {
  .contact-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

/* --- Cookie bar --------------------------------------------------------- */

.cookie-bar {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-text {
  max-width: 44rem;
  font-size: var(--text-sm);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .cookie-bar {
    left: var(--space-8);
    right: var(--space-8);
    bottom: var(--space-8);
  }
}

/* --- Blog listing ------------------------------------------------------- */

.page-intro {
  max-width: 46rem;
}

.post-list {
  margin-top: var(--space-12);
  border-bottom: 1px solid var(--border);
}

.post {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border);
}

.post-excerpt {
  max-width: 42rem;
  color: var(--secondary);
}

.cta-band .flex-between {
  flex-wrap: wrap;
  gap: var(--space-6);
}
