/* ==========================================================================
   STN Studio — design tokens
   Naamgeving volgt shadcn/ui (background, foreground, muted, border, radius),
   met het STN-oranje als enige merkaccent.
   ========================================================================== */
/* Lettertypen van de eigen site (vendor/fonts, SIL Open Font License): geen verzoek naar Google.
   Eén variabel bestand per schrift; de browser haalt alleen op wat de pagina nodig heeft. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/vendor/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/vendor/fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/vendor/fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/vendor/fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --background: #ffffff;
  --foreground: #0c0a09;
  --foreground-soft: #292524;
  --card: #ffffff;
  --muted: #f5f5f4;
  --muted-foreground: #6b6560;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --primary: #1c1917;
  --primary-foreground: #fafaf9;
  --ring: #0c0a09;

  --orange: #fe6e00;
  --orange-dark: #c44f00;
  --orange-soft: #fff1e6;
  --green: #22a447;

  --radius: 0.625rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;

  --container: 1200px;
  --header-height: 64px;

  --shadow-xs: 0 1px 2px rgb(12 10 9 / 5%);
  --shadow: 0 1px 2px rgb(12 10 9 / 4%), 0 12px 32px -12px rgb(12 10 9 / 14%);
  --shadow-soft: 0 1px 2px rgb(12 10 9 / 4%), 0 28px 56px -28px rgb(12 10 9 / 22%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --background: #0c0a09;
  --foreground: #fafaf9;
  --foreground-soft: #e7e5e4;
  --card: #151311;
  --muted: #1c1917;
  --muted-foreground: #a8a29e;
  --border: #292524;
  --border-strong: #44403c;
  --primary: #fafaf9;
  --primary-foreground: #1c1917;
  --ring: #fafaf9;

  --orange-dark: #ff8a32;
  --orange-soft: #2b1a0e;

  --shadow-xs: 0 1px 2px rgb(0 0 0 / 30%);
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -12px rgb(0 0 0 / 60%);
  --shadow-soft: 0 1px 2px rgb(0 0 0 / 30%), 0 28px 56px -28px rgb(0 0 0 / 70%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
.section,
.blog-card,
.article-main,
.legal-main {
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    color 240ms ease;
}

body.menu-open {
  overflow: hidden;
}

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

/* Met width en height in de HTML reserveert de browser de ruimte al voor het laden (geen verspringen);
   de hoogte volgt de breedte. */
img {
  height: auto;
}

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

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--orange);
  color: #fff;
}

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

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 7.5vw, 104px);
}

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  translate: 0 -200%;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: translate 180ms ease;
}

.skip-link:focus {
  translate: 0;
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    translate 160ms ease;
}

.button:active {
  translate: 0 1px;
}

.button .icon {
  transition: translate 200ms var(--ease);
}

.button:hover .icon {
  translate: 2px 0;
}

.button:hover .icon--down {
  translate: 0 2px;
}

.button--dark {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-xs);
}

.button--dark:hover {
  background: color-mix(in oklab, var(--primary) 86%, var(--background));
}

.button--dark .icon {
  color: var(--orange);
}

.button--orange {
  background: var(--orange);
  color: #1c0d00;
  box-shadow: var(--shadow-xs);
}

.button--orange:hover {
  background: #ff7f1f;
}

.button--light {
  border-color: var(--border);
  background: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow-xs);
}

.button--light:hover {
  border-color: var(--border-strong);
  background: var(--muted);
}

.button--ghost {
  border-color: rgb(255 255 255 / 18%);
  background: transparent;
  color: #fafaf9;
}

.button--ghost:hover {
  border-color: rgb(255 255 255 / 40%);
  background: rgb(255 255 255 / 8%);
}

.button--sm {
  min-height: 36px;
  padding-inline: 14px;
  font-size: 0.8125rem;
}

.button--large {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 0.9375rem;
}

.text-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 160ms ease;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.text-link::after,
.contact-buttons .button::after,
a[href*="linkedin.com"]::after {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  flex: 0 0 auto;
  background: currentColor;
  content: "";
  -webkit-mask: url("/arrow-up-right.svg") center / contain no-repeat;
  mask: url("/arrow-up-right.svg") center / contain no-repeat;
}

.text-link::after {
  color: var(--orange);
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translate(2px, -2px);
}

.faq-intro .text-link::after {
  transform: rotate(90deg);
}

.faq-intro .text-link:hover::after {
  transform: translate(2px, 2px) rotate(90deg);
}

a[href*="linkedin.com"]::after {
  margin-inline-start: 0.35em;
}

/* Small shared pieces */
.section-kicker {
  display: inline-flex;
  align-items: center;
  align-self: start;
  justify-self: start;
  gap: 10px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.section-kicker--light {
  color: rgb(255 255 255 / 60%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--foreground-soft);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
}

.badge--accent {
  border-color: color-mix(in oklab, var(--orange) 34%, transparent);
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.status-dot::after {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--green);
  content: "";
  opacity: 0.22;
  animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.45;
  }

  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.section-heading {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-heading > div {
  display: grid;
  gap: 18px;
}

.section-heading h2 {
  max-width: 810px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.section-heading > p {
  max-width: 540px;
  color: var(--muted-foreground);
  font-size: 1rem;
}

/* Service card helpers (services hub) */
.service-topline {
  display: flex;
  min-height: 42px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: auto;
}

.service-number {
  color: var(--muted-foreground);
  font-size: 0.73rem;
  font-weight: 600;
}

.service-outcome {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.84rem;
}

.service-outcome span {
  display: block;
  margin-bottom: 5px;
  color: var(--foreground);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* FAQ (shadcn-achtige accordion) */
.faq {
  background: var(--background);
}

.faq-grid {
  display: grid;
  gap: 48px;
}

.faq-intro {
  align-self: start;
}

.faq-intro h2 {
  max-width: 560px;
  margin-top: 18px;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.faq-intro > p {
  max-width: 450px;
  margin-top: 20px;
  color: var(--muted-foreground);
}

.faq-intro .text-link {
  margin-top: 20px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
  transition: color 160ms ease;
}

.faq-list summary:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

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

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 8px;
  height: 8px;
  margin-top: -7px;
  transform: rotate(45deg);
  border-right: 1.5px solid var(--muted-foreground);
  border-bottom: 1.5px solid var(--muted-foreground);
  content: "";
  transition: transform 220ms var(--ease), margin-top 220ms var(--ease);
}

.faq-list details[open] summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.faq-list details p {
  max-width: 680px;
  padding: 0 44px 24px 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Contact call-to-action card (home, service pages, articles) */
.contact {
  padding-top: 0;
  background: var(--background);
}

/* Slotblok: geen zwart vlak maar een zachte tint met dezelfde wazige baan als de hero. */
.contact-card {
  position: relative;
  display: grid;
  gap: 40px;
  padding: clamp(28px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--orange) 14%, var(--border));
  border-radius: var(--radius-xl);
  background: color-mix(in oklab, var(--orange) 5%, var(--background));
  isolation: isolate;
}

.contact-card::before,
.contact-card::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(clamp(32px, 5vw, 72px));
  opacity: var(--haze-strength);
  rotate: -17deg;
  animation: haze-drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}

.contact-card::before {
  right: -22%;
  bottom: -34%;
  width: 78%;
  height: 62%;
  background: var(--haze-mid);
}

.contact-card::after {
  right: -8%;
  bottom: -52%;
  width: 70%;
  height: 54%;
  background: var(--haze-low);
  animation-direction: alternate-reverse;
}

.contact-card h2 {
  max-width: 790px;
  margin-top: 20px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.contact-card .section-kicker--light {
  color: var(--muted-foreground);
}

.contact-action {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 24px;
}

.contact-action p {
  max-width: 520px;
  color: var(--foreground-soft);
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-card .button--ghost {
  border-color: color-mix(in oklab, var(--foreground) 22%, transparent);
  background: color-mix(in oklab, var(--background) 62%, transparent);
  color: var(--foreground);
}

.contact-card .button--ghost:hover {
  border-color: color-mix(in oklab, var(--foreground) 44%, transparent);
  background: var(--background);
}

.contact-mark {
  display: none;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition:
    background-color 220ms ease,
    border-color 220ms ease;
}

.site-header.is-scrolled,
.menu-open .site-header {
  border-color: var(--border);
  background: color-mix(in oklab, var(--background) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}

/* Geen backdrop-filter bij een open menu: die maakt de header tot containing block
   voor het position: fixed menu, waardoor het menu geen hoogte krijgt. */
.menu-open .site-header {
  background: var(--background);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav-shell {
  position: relative;
  display: flex;
  width: min(calc(100% - 32px), var(--container));
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  min-height: 40px;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(9px, 1vw, 12px);
}

/* Het beeldmerk mag gezien worden. Op een telefoon blijft het compact: daar past er naast de
   knoppen niet meer bij. */
.brand img {
  width: clamp(28px, 3.4vw, 40px);
  height: clamp(28px, 3.4vw, 40px);
  transition: transform 800ms var(--ease-out);
}

.brand:hover img,
.brand:focus-visible img {
  transform: rotate(60deg);
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.38em;
  font-size: clamp(0.8125rem, 1.45vw, 1.0625rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-name .mark-strong {
  color: var(--foreground);
  font-weight: 700;
}

.brand-name .mark-soft {
  color: var(--muted-foreground);
  font-weight: 500;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding-inline: 12px;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.nav-links a:hover {
  background: var(--muted);
  color: var(--foreground);
}

.nav-links a[aria-current="page"] {
  color: var(--foreground);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  cursor: pointer;
  place-items: center;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted-foreground);
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.nav-icon:hover {
  background: var(--muted);
  color: var(--foreground);
}

.nav-icon .icon {
  width: 16px;
  height: 16px;
}

.language-switch {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.theme-toggle .icon--moon,
[data-theme="dark"] .theme-toggle .icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon--moon {
  display: block;
}

.nav-cta {
  margin-left: 8px;
}

.menu-toggle {
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 200ms var(--ease);
}

.menu-toggle span:first-child {
  top: 14px;
}

.menu-toggle span:last-child {
  top: 20px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-height) 0 0;
  display: flex;
  flex-direction: column;
  padding: 8px 16px 24px;
  overflow-y: auto;
  background: var(--background);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.mobile-menu a[aria-current="page"] {
  color: var(--muted-foreground);
}

.mobile-menu a.mobile-menu-lang {
  color: var(--muted-foreground);
  font-size: 1rem;
}

.mobile-menu a:last-child {
  min-height: 48px;
  justify-content: center;
  margin-top: 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.9375rem;
  letter-spacing: 0;
}

/* Smalle telefoons (tot 400px): de balk wordt compacter, zodat de menuknop binnen beeld blijft. */
@media (max-width: 25rem) {
  .nav-shell {
    gap: 8px;
  }

  .nav-actions {
    gap: 2px;
  }

  .nav-icon {
    width: 36px;
  }

  .menu-toggle span {
    left: 10px;
  }

  .nav-cta {
    margin-left: 4px;
    padding-inline: 12px;
  }

  .nav-cta .icon {
    display: none;
  }
}

/* Heel smalle schermen (tot 344px): alleen "STN" naast het beeldmerk. */
@media (max-width: 21.5rem) {
  .brand-name .mark-soft {
    display: none;
  }
}

/* Op een telefoon staat de taalwissel in het menu, zodat de contactknop in de balk past. */
@media (max-width: 35.99rem) {
  .nav-actions .language-switch {
    display: none;
  }

  .nav-cta {
    margin-left: 4px;
    padding-inline: 12px;
  }
}

@media (min-width: 60rem) {
  .nav-shell {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .nav-links {
    display: flex;
  }

  .nav-actions {
    justify-self: end;
  }

  .menu-toggle {
    display: none;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--background);
}

.footer-main {
  display: grid;
  gap: 40px 32px;
  padding-block: clamp(48px, 6vw, 80px);
}

.footer-brand {
  display: grid;
  max-width: 22rem;
  align-content: start;
  justify-items: start;
  gap: 14px;
}

.footer-brand > p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 11px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--foreground-soft);
  font-size: 0.75rem;
  font-weight: 500;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-heading {
  margin-bottom: 4px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a {
  width: fit-content;
  color: var(--foreground-soft);
  font-size: 0.875rem;
  transition: color 160ms ease;
}

.footer-col a:hover,
.footer-bottom a:hover {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-col a[aria-current="page"] {
  color: var(--foreground);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

.footer-bottom > :first-child {
  margin-right: auto;
}

@media (min-width: 40rem) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 60rem) {
  .footer-main {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* Legal pages (terms) */
.legal-main {
  background: var(--card);
}

.legal-hero {
  padding-block: clamp(140px, 15vw, 200px) 0;
}

.legal {
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(72px, 9vw, 130px);
}

.legal-grid {
  display: grid;
  gap: 44px;
}

.legal-aside {
  align-self: start;
}

.legal-aside h1 {
  margin-top: 16px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.039em;
  line-height: 1;
}

.legal-updated {
  margin-top: 18px;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 500;
}

.legal-toc {
  display: none;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legal-toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 160ms ease;
}

.legal-toc a:hover {
  color: var(--foreground);
}

.legal-doc {
  max-width: 720px;
}

.legal-intro {
  padding-bottom: clamp(28px, 4vw, 44px);
  margin-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--border);
  color: var(--foreground-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.62;
}

.legal-article + .legal-article {
  margin-top: clamp(34px, 4vw, 52px);
}

.legal-article h2 {
  display: flex;
  align-items: baseline;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.legal-article h2 span {
  margin-right: 12px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.legal-article .legal-summary {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid var(--orange);
  color: var(--foreground-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.legal-summary span {
  margin-right: 0.45em;
  color: var(--orange-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-article p {
  margin-top: 14px;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-article ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  list-style: none;
}

.legal-article li {
  position: relative;
  padding-left: 22px;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.6;
}

.legal-article li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 1px;
  background: var(--orange);
  content: "";
}

.legal-article strong {
  color: var(--foreground);
  font-weight: 600;
}

.legal-article a {
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.legal-article a:hover {
  border-color: var(--foreground);
}

.legal-note {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.65;
}

.legal-note a {
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 60rem) {
  .legal-grid {
    grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
    gap: clamp(50px, 8vw, 120px);
  }

  .legal-aside {
    position: sticky;
    top: calc(var(--header-height) + 36px);
    max-height: calc(100vh - var(--header-height) - 72px);
    overflow-y: auto;
  }

  .legal-toc {
    display: grid;
  }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

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

/* Wanneer GSAP de reveals aanstuurt, mag de CSS-transitie niet meevechten
   met de inline-tweens die GSAP per frame zet. GSAP bezit dan opacity + transform. */
.gsap-on [data-reveal] {
  transition: none;
}

/* Vóór het script klaar is, zijn ook de hero-onderdelen nog onzichtbaar; het script neemt het over. */
/* (De hero wacht niet meer op het script: zie "Hero-entree" hieronder.) */

/* Hero-entree in CSS. Ze start bij de eerste weergave en wacht niet op JavaScript, zodat de kop
   en de tekst meteen in beeld zijn (goed voor de laadtijd die Google meet). Een kop met
   .hero-line schuift per regel achter een rand vandaan; de rest komt recht omhoog. */
/* Begint op 1% in plaats van 0: voor het oog hetzelfde, maar de browser telt de tekst dan al
   bij de eerste weergave als zichtbaar. */
@keyframes hero-rise {
  from {
    opacity: 0.01;
    transform: translateY(24px);
  }
}

@keyframes hero-line-up {
  from {
    transform: translateY(108%);
  }
}

@keyframes haze-in {
  from {
    opacity: 0;
    scale: 0.7;
  }
}

.hero-line {
  display: block;
  clip-path: inset(-0.12em -0.08em -0.2em);
}

.hero-line > span {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  :is(.home-hero-copy, .page-hero-copy, .case-hero-copy, .hero-enter) > * {
    animation: hero-rise 1s var(--ease-out) both;
    animation-delay: calc(var(--hero-step, 0) * 80ms);
  }

  :is(.home-hero-copy, .page-hero-copy, .case-hero-copy, .hero-enter) > :nth-child(2) {
    --hero-step: 1;
  }

  :is(.home-hero-copy, .page-hero-copy, .case-hero-copy, .hero-enter) > :nth-child(3) {
    --hero-step: 2;
  }

  :is(.home-hero-copy, .page-hero-copy, .case-hero-copy, .hero-enter) > :nth-child(4) {
    --hero-step: 3;
  }

  :is(.home-hero-copy, .page-hero-copy, .case-hero-copy, .hero-enter) > :nth-child(5) {
    --hero-step: 4;
  }

  :is(.home-hero-copy, .page-hero-copy, .case-hero-copy, .hero-enter) > :nth-child(n + 6) {
    --hero-step: 5;
  }

  :is(.home-hero-copy, .page-hero-copy, .case-hero-copy, .hero-enter) > h1:has(> .hero-line) {
    animation: none;
  }

  .hero-line > span {
    animation: hero-line-up 1.2s var(--ease-out) 0.1s both;
  }

  .hero-line + .hero-line > span {
    animation-delay: 0.2s;
  }

  /* Homepage: eerst de kop, dan de tekst en de knop, in het ritme dat er al was. */
  .home-hero-copy > .home-hero-intro {
    animation-delay: 0.4s;
  }

  .home-hero-copy > .home-hero-actions {
    animation-delay: 0.55s;
  }

  /* Werkoverzicht: de eerste case staat al half in beeld en komt daarom met de hero mee. */
  .work-card--lead,
  .blog-list--enter {
    animation: hero-rise 1s var(--ease-out) 0.3s both;
  }
}

/* Koppen komen per regel omhoog achter een rand vandaan. Het masker is een clip-path die iets
   buiten de regel valt: staartletters blijven heel en de regel neemt precies zijn gewone ruimte in. */
.split-line {
  display: block;
  clip-path: inset(-0.12em -0.08em -0.2em);
}

.split-line-inner {
  display: block;
  will-change: transform;
}

@media (min-width: 640px) {
  .container {
    width: min(calc(100% - 56px), var(--container));
  }
}

@media (min-width: 760px) {
  .section-heading {
    grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
    align-items: end;
  }

  .section-heading > p {
    justify-self: end;
    padding-bottom: 4px;
  }
}

@media (min-width: 980px) {
  .faq-grid {
    grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(70px, 10vw, 150px);
  }

  .faq-intro {
    position: sticky;
    top: calc(var(--header-height) + 36px);
  }

  .contact-card {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    align-items: end;
  }

  .contact-card > div:nth-child(2) {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 430px) {
  .contact-action .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* About page */

.about-main,
.about-hero {
  background: var(--background);
}

.about-focus {
  background: var(--muted);
}

.about-hero {
  position: relative;
  overflow: clip;
  padding-block: calc(var(--header-height) + clamp(28px, 4vw, 56px)) clamp(48px, 6vw, 88px);
}

.about-shell {
  max-width: none;
}

.about-hero h1 {
  margin-top: 20px;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.about-lede {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--muted-foreground);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: 28px;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 500;
  list-style: none;
}

.about-meta li {
  display: inline-flex;
  align-items: center;
}

.about-meta li + li::before {
  margin-inline: 12px;
  color: var(--orange);
  content: "·";
}

.about-meta a {
  border-bottom: 1px solid currentColor;
  color: var(--foreground);
}

.about-story {
  background: var(--background);
}

.about-story-grid {
  display: grid;
  gap: 42px;
}

/* Linkerkolom: label met de kerngegevens, blijft in beeld tijdens het lezen */
.about-story-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

@media (min-width: 48rem) {
  .about-story-side {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
  }
}

.about-prose {
  display: grid;
  max-width: 760px;
  gap: 22px;
}

.about-prose > p {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.72;
}

.about-prose .about-prose-lead {
  color: var(--foreground-soft);
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
}

.about-principle {
  display: grid;
  gap: 18px;
  margin-top: clamp(34px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 50px);
  border-top: 1px solid var(--border);
}

.about-section-label {
  color: var(--orange-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.about-principle h2 {
  max-width: 680px;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.about-principle > p:last-child {
  max-width: 650px;
  color: var(--muted-foreground);
}

.about-focus-grid {
  display: grid;
  gap: 14px;
}

.about-focus-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--background);
}

.about-focus-card > span {
  margin-bottom: auto;
  color: var(--orange-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.about-focus-card h3 {
  max-width: 560px;
  margin-top: 40px;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.about-focus-card > p {
  max-width: 590px;
  margin-top: 18px;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.about-focus-card .text-link {
  margin-top: 26px;
}

.about-quote {
  background: var(--background);
}

.about-quote-inner {
  display: grid;
  max-width: 1080px;
  justify-items: start;
}

.about-quote blockquote {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.about-quote-inner > p {
  margin-top: 24px;
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.about-quote-inner .button {
  margin-top: 40px;
}

@media (min-width: 48rem) {
  .about-story-grid {
    grid-template-columns: minmax(150px, 0.3fr) minmax(0, 0.7fr);
    gap: clamp(50px, 8vw, 120px);
  }

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

@media (max-width: 35.99rem) {

  .about-meta {
    display: grid;
    gap: 8px;
  }

  .about-meta li + li::before {
    display: none;
  }

  .about-focus-card {
    min-height: 330px;
  }

  .about-quote-inner .button {
    width: 100%;
  }
}

/* Blog landing */
.blog-main,
.blog-hero {
  background: var(--background);
}

.blog-hero {
  position: relative;
  padding-block: calc(var(--header-height) + clamp(40px, 7vw, 96px)) 0;
  overflow: clip;
}

.blog-shell {
  max-width: none;
}

.blog-hero h1 {
  max-width: 14ch;
  margin-top: 20px;
  font-size: clamp(2.6rem, 7.4vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.blog-lede {
  max-width: 720px;
  margin-top: clamp(30px, 4vw, 48px);
  color: var(--muted-foreground);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.6;
}

.blog-index {
  background: var(--background);
}

.blog-index-shell {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
}

.blog-index-heading {
  display: grid;
  gap: 20px;
}

.blog-index-heading h2 {
  max-width: none;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.blog-index-heading > p:last-child {
  max-width: 34rem;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.blog-list {
  display: grid;
  gap: 16px;
}

@media (min-width: 62rem) {
  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-list > .blog-card:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Homepage: de nieuwste artikelen naast elkaar, compacter dan op het blogoverzicht. */
.blog-list--home .blog-card-link {
  min-height: 0;
}

@media (min-width: 62rem) {
  .blog-list.blog-list--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blog-list--home > .blog-card:first-child:nth-last-child(odd) {
    grid-column: auto;
  }

  .blog-list--home .blog-card h3 {
    font-size: clamp(1.25rem, 1.7vw, 1.5rem);
    line-height: 1.12;
  }
}

.home-posts .service-rows-foot {
  margin-top: 24px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition:
    border-color 220ms var(--ease),
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.blog-card:hover {
  border-color: color-mix(in srgb, var(--orange) 42%, var(--border));
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.blog-card-link {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  height: 100%;
  min-height: 300px;
  padding: clamp(24px, 3.4vw, 44px);
  color: inherit;
  text-decoration: none;
}

.blog-card-topline,
.blog-card-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--muted-foreground);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card-topline > span {
  color: var(--orange-dark);
}

.blog-card h2,
.blog-card h3 {
  max-width: 24ch;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.blog-card > a > p {
  max-width: 36rem;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.blog-card-bottom {
  align-self: end;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.blog-card-bottom strong {
  color: var(--foreground);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* Blog article */
.article-main,
.article-hero {
  background: var(--background);
}

.article-hero {
  position: relative;
  padding-block: calc(var(--header-height) + clamp(40px, 7vw, 96px)) clamp(48px, 6vw, 88px);
  overflow: clip;
}

.article-shell {
  max-width: 1160px;
}

.article-back {
  display: inline-flex;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.article-back:hover {
  color: var(--orange-dark);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: clamp(36px, 6vw, 72px);
  color: var(--muted-foreground);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta > span:first-child {
  color: var(--orange-dark);
}

.article-hero h1 {
  max-width: 20ch;
  margin-top: 24px;
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.article-intro {
  max-width: 780px;
  margin-top: clamp(32px, 5vw, 58px);
  color: var(--foreground-soft);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.article-content {
  padding-block: clamp(8px, 2vw, 24px) clamp(68px, 9vw, 124px);
  background: var(--background);
}

.article-body {
  max-width: 800px;
}

.article-body p,
.article-body li {
  color: var(--foreground-soft);
  font-size: clamp(1.03rem, 1.35vw, 1.16rem);
  line-height: 1.82;
}

.article-body p + p {
  margin-top: 24px;
}

.article-body h2 {
  margin-top: clamp(52px, 7vw, 80px);
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.article-body h3 {
  margin-top: clamp(32px, 4vw, 44px);
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.article-body p a,
.article-body li a,
.article-body figcaption a,
.article-body td a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.article-body p a:hover,
.article-body li a:hover,
.article-body td a:hover {
  color: var(--orange-dark);
}

.article-body strong {
  color: var(--foreground);
  font-weight: 600;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.article-body li {
  position: relative;
  padding-left: 28px;
}

.article-body ul > li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.article-body ol {
  counter-reset: step;
}

.article-body ol > li {
  padding-left: 40px;
  counter-increment: step;
}

.article-body ol > li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-weight: 500;
  content: counter(step, decimal-leading-zero);
}

.article-body blockquote {
  margin: clamp(40px, 6vw, 64px) 0;
  padding: clamp(24px, 4vw, 40px);
  border-left: 4px solid var(--orange);
  background: var(--card);
  color: var(--foreground);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.article-body blockquote cite {
  display: block;
  margin-top: 18px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* "In het kort": het antwoord staat bovenaan, voor wie niet het hele artikel leest. */
.article-takeaways {
  margin-bottom: clamp(36px, 5vw, 56px);
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid color-mix(in oklab, var(--orange) 22%, var(--border));
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--orange) 5%, var(--background));
}

.article-body .article-takeaways h2,
.article-toc > p {
  margin: 0 0 16px;
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.article-body .article-takeaways ul {
  margin: 0;
}

.article-body .article-takeaways li {
  color: var(--foreground);
}

.article-toc {
  margin-bottom: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(24px, 3vw, 32px);
  border-bottom: 1px solid var(--border);
}

.article-body .article-toc ol {
  gap: 8px;
  margin: 0;
}

.article-body .article-toc li {
  font-size: 1rem;
  line-height: 1.5;
}

.article-body .article-toc a {
  text-decoration: none;
}

.article-body .article-toc a:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}

.article-note {
  margin: 32px 0;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
}

.article-note strong {
  display: block;
  margin-bottom: 6px;
}

.article-body .article-note p {
  font-size: 1rem;
  line-height: 1.65;
}

.article-figure,
.article-cover {
  margin: clamp(32px, 5vw, 56px) 0;
}

.article-figure img,
.article-cover img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.article-figure figcaption,
.article-cover figcaption {
  margin-top: 12px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}

.article-cover {
  max-width: 960px;
  margin-bottom: 0;
}

.article-table {
  margin: 32px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.article-table table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.article-table caption {
  padding: 14px 18px;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  text-align: left;
  caption-side: bottom;
  border-top: 1px solid var(--border);
}

.article-table th,
.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--foreground-soft);
  text-align: left;
  vertical-align: top;
}

.article-table thead th {
  background: var(--card);
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-table tbody th {
  color: var(--foreground);
  font-weight: 600;
}

.article-table tbody tr:last-child th,
.article-table tbody tr:last-child td {
  border-bottom: 0;
}

.article-faq .faq-list {
  margin-top: 8px;
}

.article-body .article-faq details p {
  max-width: none;
  font-size: 1rem;
  line-height: 1.7;
}

.article-body .article-sources ol {
  gap: 8px;
}

.article-body .article-sources li {
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.article-author {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px 24px;
  align-items: start;
  margin-top: clamp(52px, 7vw, 80px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--border);
}

.article-author img {
  width: 88px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 12%;
}

.article-body .article-author p {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.65;
}

.article-body .article-author .section-kicker {
  margin-top: 0;
}

.article-author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.article-body .article-author-links a {
  text-decoration: none;
}

.article-meta a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
}

.article-meta a:hover {
  text-decoration-color: var(--orange);
}

.article-hero .breadcrumbs {
  margin-bottom: 0;
}

/* Cookiemelding: een kaart linksonder, pas zichtbaar als er iets te kiezen valt. Beide knoppen
   zien er hetzelfde uit: weigeren is net zo makkelijk als accepteren. */
.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  max-width: 26rem;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background);
  box-shadow: var(--shadow-soft);
}

.consent-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.consent-text {
  margin-top: 6px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.55;
}

.consent-text a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.consent-actions .button {
  flex: 1 1 8rem;
  justify-content: center;
}

.footer-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.footer-button:hover {
  color: var(--foreground);
}

.legal-aside [data-cookie-settings] {
  margin-top: 24px;
}

.page-updated {
  margin-top: clamp(28px, 4vw, 44px);
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-related {
  padding-top: 0;
  background: var(--background);
}

@media (max-width: 30rem) {
  .article-author {
    grid-template-columns: 64px 1fr;
  }

  .article-author img {
    width: 64px;
  }
}

.article-cta {
  padding-block: clamp(70px, 9vw, 122px);
  background: var(--muted);
}

.article-cta-inner {
  display: grid;
  gap: clamp(36px, 7vw, 92px);
}

.article-cta-inner h2 {
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(2.5rem, 5.8vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.046em;
  line-height: 0.96;
}

.article-cta-inner > div:last-child {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 28px;
}

.article-cta-inner > div:last-child p {
  max-width: 560px;
  color: var(--muted-foreground);
  line-height: 1.7;
}

@media (min-width: 48rem) {
  .article-cta-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: end;
  }

}

@media (max-width: 35.99rem) {

  .blog-card {
    border-radius: var(--radius-md);
  }

  .blog-card-link {
    min-height: 0;
  }

  .article-meta {
    gap: 9px 16px;
  }
}

/* Service tags on the non-featured service cards */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  list-style: none;
}

.service-tags li {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--foreground-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Dark mode */

/* Het beeldmerk is in licht en donker hetzelfde bestand: witte lussen met een donkere lijn. */

[data-theme="dark"] .button--orange {
  color: #151515;
}

[data-theme="dark"] .button--dark:hover {
  background: #ffffff;
}

[data-theme="dark"] .contact-card {
  border-color: var(--border-strong);
  background: var(--card);
}

/* Service, services hub and contact pages (generated by scripts/build-pages.js) */
.page-main,
.page-hero {
  background: var(--background);
}

.page-hero {
  position: relative;
  padding-block: calc(var(--header-height) + clamp(28px, 4vw, 56px)) clamp(48px, 6vw, 88px);
  overflow: clip;
}

.page-shell {
  max-width: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 44px);
  color: var(--muted-foreground);
  font-size: 0.74rem;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: var(--orange-dark);
}

.breadcrumbs [aria-current="page"] {
  color: var(--foreground);
}

.page-title {
  max-width: 18ch;
  margin-top: 20px;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.page-lede {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--muted-foreground);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 32px;
}

.article-cta .page-actions {
  margin-top: 0;
}

.page-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(32px, 4vw, 48px);
  list-style: none;
}

.page-highlights li {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--foreground-soft);
  font-size: 0.74rem;
  font-weight: 600;
}

.svc-problems,
.svc-deliver,
.svc-related,
.contact-options {
  background: var(--background);
}

.svc-approach {
  background: var(--card);
}

.svc-problem-grid,
.svc-related-grid,
.svc-index-grid {
  display: grid;
  gap: 14px;
}

.svc-problem {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}

.svc-problem > span,
.svc-related-card > span,
.svc-example-label,
.svc-index-kicker {
  color: var(--orange-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.svc-problem h3 {
  margin-top: 18px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.029em;
  line-height: 1.08;
}

.svc-problem p {
  color: var(--muted-foreground);
  font-size: 0.94rem;
}

.svc-approach-grid {
  display: grid;
  gap: clamp(36px, 6vw, 64px);
}

.svc-approach-lead {
  display: grid;
  align-content: start;
  gap: 18px;
}

.svc-approach-lead h2,
.svc-deliver-card h2 {
  max-width: 560px;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.svc-approach-lead > p {
  max-width: 440px;
  color: var(--muted-foreground);
}

.svc-steps {
  display: grid;
  border-top: 1px solid var(--border);
  list-style: none;
}

.svc-steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding-block: 26px;
  border-bottom: 1px solid var(--border);
}

.svc-step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

.svc-steps h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.svc-steps p {
  max-width: 560px;
  margin-top: 6px;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.svc-steps .text-link {
  margin-top: 6px;
  min-height: 36px;
}

.svc-deliver-grid {
  display: grid;
  gap: 14px;
}

.svc-deliver-card,
.svc-example {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 4.5vw, 52px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.svc-checklist {
  display: grid;
  gap: 12px;
  margin-block: 10px 6px;
  list-style: none;
}

.svc-checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--foreground-soft);
}

.svc-checklist li::before {
  position: absolute;
  top: 0.3em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange-soft);
  content: "";
}

.svc-checklist li::after {
  position: absolute;
  top: 0.62em;
  left: 6px;
  width: 6px;
  height: 3px;
  border-bottom: 1.5px solid var(--orange-dark);
  border-left: 1.5px solid var(--orange-dark);
  content: "";
  transform: rotate(-45deg);
}

.svc-example {
  justify-content: flex-end;
  border-color: transparent;
  background: var(--foreground);
  color: var(--background);
}

.svc-example h3 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.039em;
  line-height: 1;
}

.svc-example p:not(.svc-example-label) {
  max-width: 520px;
  color: rgb(255 255 255 / 64%);
}

.svc-example .svc-example-label {
  color: var(--orange);
}

.svc-example .text-link {
  align-self: flex-start;
}

.svc-related-card,
.svc-index-card > a {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  transition:
    transform 220ms var(--ease),
    border-color 220ms ease;
}

.svc-related-card:hover,
.svc-index-card > a:hover {
  transform: translateY(-3px);
  border-color: var(--foreground);
}

.svc-related-card h3 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.033em;
  line-height: 1.04;
}

.svc-related-card p {
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.svc-related-card strong,
.svc-index-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.86rem;
  font-weight: 600;
}

.svc-related-card strong::after,
.svc-index-link::after {
  display: inline-block;
  width: 0.82em;
  height: 0.82em;
  background: var(--orange);
  content: "";
  -webkit-mask: url("/arrow-up-right.svg") center / contain no-repeat;
  mask: url("/arrow-up-right.svg") center / contain no-repeat;
  transition: transform 180ms ease;
}

.svc-related-card:hover strong::after,
.svc-index-card > a:hover .svc-index-link::after {
  transform: translate(2px, -2px);
}

.svc-index {
  padding-top: 0;
  background: var(--card);
}

.svc-index-card > a {
  min-height: 340px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--background);
}

.svc-index-card h2 {
  margin-top: clamp(28px, 5vw, 64px);
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 0.98;
}

.svc-index-card p {
  max-width: 520px;
  color: var(--muted-foreground);
}

.svc-index-card .service-tags {
  margin-top: 4px;
}

.svc-index-card--featured > a {
  border-color: transparent;
  background: var(--orange-soft);
}

.page-cta {
  padding-top: 0;
  background: var(--background);
}

.services-hub .page-cta {
  padding-top: clamp(68px, 8vw, 116px);
  background: var(--card);
}

/* Hero van de subpagina's: links de tekst, rechts de rozet als podium met een scherm uit het werk. */
.page-hero > .container,
.about-hero > .container,
.blog-hero > .container,
.article-hero > .container {
  position: relative;
}

.page-hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(20px, 3vw, 40px);
}

.page-hero-aside {
  position: relative;
}

.page-hero-caption {
  position: absolute;
  right: 0;
  bottom: 6%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
  transition:
    border-color 200ms ease,
    translate 240ms var(--ease);
}

.page-hero-caption span {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero-caption strong {
  font-weight: 600;
}

.page-hero-caption .icon {
  color: var(--case);
  transition: translate 240ms var(--ease);
}

.page-hero-caption:hover {
  border-color: var(--case);
  translate: 0 -2px;
}

.page-hero-caption:hover .icon {
  translate: 3px 0;
}

/* Lijst met kansen op volgorde, in de hero van AI-consultancy */
.roadmap {
  display: grid;
  gap: 8px;
  list-style: none;
}

.roadmap li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
}

.roadmap b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
}

.roadmap em {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roadmap .is-first {
  border-color: color-mix(in oklab, var(--orange) 50%, var(--border));
  background: var(--orange-soft);
}

.roadmap .is-first b {
  background: var(--orange);
  color: #ffffff;
}

.roadmap .is-first em {
  color: var(--orange-dark);
}

.device--card .flow-log {
  margin-top: 12px;
}

/* Het gedimde deel van een tweekleurige kop staat op een eigen regel, zoals op de homepage. */
.page-title .hero-dim,
.blog-hero h1 .hero-dim {
  display: block;
}

/* Een kaart in plaats van een scherm: het automatiseringsfragment of de kerngegevens. */
.device--card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow:
    0 30px 60px -22px rgb(12 10 9 / 40%),
    0 10px 22px -12px rgb(12 10 9 / 28%);
}

.case-stage--card .device--1 {
  position: absolute;
  top: 30%;
  left: 6%;
  width: 88%;
  transform: rotateY(-14deg) rotateX(8deg) rotateZ(2deg);
}

.device--card .fact-card {
  margin: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

@media (min-width: 56rem) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 55.99rem) {
  .page-hero-aside {
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
  }
}

/* Contact page */
/* De agenda en het formulier horen zo hoog mogelijk te beginnen. */
.contact-page-main .page-hero {
  padding-bottom: clamp(20px, 3vw, 36px);
}

.contact-page-main .page-title {
  max-width: none;
}

.contact-page-main .contact-options {
  padding-top: clamp(16px, 2vw, 28px);
}

.contact-options-grid {
  display: grid;
  gap: 14px;
}

.contact-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.contact-panel h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.039em;
  line-height: 1;
}

.contact-panel > p:not(.section-kicker) {
  max-width: 520px;
  color: var(--muted-foreground);
}

.cal-inline {
  min-height: 560px;
  margin-top: 8px;
  overflow: auto;
  border-radius: var(--radius-md);
  background: var(--background);
}

.cal-fallback {
  align-self: flex-start;
  font-size: 0.82rem;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.field-row {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span,
.topic-field legend {
  font-size: 0.8rem;
  font-weight: 600;
}

.field small {
  color: var(--muted-foreground);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  font-size: 1rem;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.8;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 4px rgb(254 110 0 / 16%);
}

.topic-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.topic-field legend {
  margin-bottom: 10px;
  padding: 0;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-chip {
  position: relative;
  cursor: pointer;
}

.topic-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.topic-chip span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--foreground-soft);
  font-size: 0.8rem;
  font-weight: 600;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

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

.topic-chip input:checked + span {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--foreground);
}

.topic-chip input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.contact-form > .button {
  justify-self: start;
}

.form-success {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--orange-soft);
  color: var(--foreground-soft);
  font-size: 0.92rem;
}

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

.form-success a {
  border-bottom: 1px solid currentColor;
  font-weight: 600;
}

.form-success .text-link {
  justify-self: start;
  padding: 0;
  background: none;
  cursor: pointer;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin: 18px 0 0;
}

.contact-details div {
  display: grid;
  gap: 4px;
}

.contact-details dt {
  color: var(--muted-foreground);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  font-size: 0.95rem;
}

.contact-details a {
  border-bottom: 1px solid var(--border);
}

.contact-details a:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

@media (min-width: 48rem) {
  .svc-problem-grid,
  .svc-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .svc-index-grid,
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-deliver-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .svc-deliver-grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 820px;
  }
}

@media (min-width: 62rem) {
  .svc-approach-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(60px, 9vw, 130px);
  }

  .svc-approach-lead {
    position: sticky;
    top: calc(var(--header-height) + 36px);
  }

  .contact-options-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
  }
}

@media (max-width: 35.99rem) {

  .page-actions .button {
    width: 100%;
  }
}

[data-theme="dark"] .svc-example {
  border-color: var(--border);
  background: #0b0b0a;
  color: var(--foreground);
}

/* ==========================================================================
   Homepage (index.html en index-nl.html)
   ========================================================================== */
/* Hero: alleen kop, één alinea en twee knoppen op een wazige gradient in de merkkleuren.
   De hero volgt het thema: licht en zacht in de lichte modus, donker en dieper in de donkere. */
.home-hero,
.contact-card {
  --haze-low: #f6a9bd;
  --haze-mid: radial-gradient(closest-side, #ff9a4d, #ffb27d 58%, #ffc7a3);
  --haze-core: #ffe08f;
  --haze-strength: 0.78;
}

.home-hero {
  position: relative;
  display: grid;
  /* Het hele eerste scherm: de tekst staat net boven het midden, de logostrook valt eronder. */
  min-height: 100svh;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: calc(var(--header-height) + 4svh);
  overflow: clip;
  isolation: isolate;
}

[data-theme="dark"] .home-hero,
[data-theme="dark"] .contact-card {
  --haze-low: #8e1f33;
  --haze-mid: radial-gradient(closest-side, #ff8a1f, #fe6e00 55%, #e04d00);
  --haze-core: #fff1d8;
  --haze-strength: 0.95;
}

.page-hero::before,
.about-hero::before,
.blog-hero::before,
.article-hero::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in oklab, var(--foreground) 16%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  -webkit-mask-image: radial-gradient(55% 60% at 78% 38%, #000, transparent);
  mask-image: radial-gradient(55% 60% at 78% 38%, #000, transparent);
  pointer-events: none;
}

/* De gradient: een schuine baan van vervaagde vlekken op de paginakleur, met korrel erover.
   Onderaan loopt hij uit in de pagina, zodat er geen harde rand ontstaat. */
.hero-haze {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

.hero-haze i {
  position: absolute;
  border-radius: 50%;
  filter: blur(clamp(36px, 5.6vw, 84px));
  opacity: var(--haze-strength);
  rotate: -17deg;
  /* Eerst komt de vlek op, daarna drijft ze langzaam heen en weer. */
  animation:
    haze-in 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) both,
    haze-drift 22s ease-in-out infinite alternate;
  will-change: translate;
}

/* Onderkant van de baan */
.hero-haze i:nth-child(1) {
  top: 63%;
  left: 14%;
  width: 110%;
  height: 30%;
  background: var(--haze-low);
  animation-duration: 1.8s, 34s;
}

/* Brede oranje baan */
.hero-haze i:nth-child(2) {
  top: 44%;
  left: 30%;
  width: 104%;
  height: 30%;
  background: var(--haze-mid);
  animation-delay: 0.12s, 0s;
}

/* Lichte kern, scherper dan de rest */
.hero-haze i:nth-child(3) {
  top: 41%;
  left: 54%;
  width: 66%;
  height: 13%;
  background: var(--haze-core);
  filter: blur(clamp(22px, 3.4vw, 50px));
  animation-duration: 1.8s, 28s;
  animation-delay: 0.24s, 0s;
  animation-direction: normal, alternate-reverse;
}

/* Paginakleur linksboven, zodat de kop altijd leesbaar blijft */
.hero-haze i:nth-child(4) {
  top: -24%;
  left: -24%;
  width: 76%;
  height: 96%;
  background: var(--background);
  opacity: 0.96;
  animation: haze-in 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.36s both;
  rotate: 0deg;
}

/* Op een smal scherm staat de tekst over de volle breedte: de baan ligt onder de knoppen,
   het vlak in de paginakleur achter de tekst. */
@media (max-width: 61.99rem) {
  .hero-haze i:nth-child(1) {
    top: 78%;
    left: -10%;
    width: 150%;
    height: 18%;
  }

  .hero-haze i:nth-child(2) {
    top: 66%;
    left: 6%;
    width: 150%;
    height: 18%;
  }

  .hero-haze i:nth-child(3) {
    top: 65%;
    left: 44%;
    width: 100%;
    height: 7%;
  }

  .hero-haze i:nth-child(4) {
    top: -30%;
    left: -40%;
    width: 180%;
    height: 92%;
    opacity: 0.94;
  }
}

.hero-haze::after {
  position: absolute;
  inset: 0;
  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.85' 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");
  content: "";
  mix-blend-mode: soft-light;
  opacity: 0.2;
  pointer-events: none;
}

[data-theme="dark"] .hero-haze::after {
  opacity: 0.3;
}

@keyframes haze-drift {
  from {
    translate: -3% 2%;
  }

  to {
    translate: 4% -3%;
  }
}

.home-hero-copy {
  position: relative;
}

.home-hero h1 {
  /* Houdt lange regels links van de lichte baan in de gradient. */
  max-width: 8.2em;
  font-size: clamp(2.25rem, 10.5vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.hero-line {
  display: block;
}

.hero-dim {
  color: color-mix(in oklab, var(--foreground) 46%, var(--background));
}

.home-hero-intro {
  /* Drie regels op een breed scherm, zonder los woord op de laatste. */
  max-width: 44rem;
  text-wrap: pretty;
  margin-top: clamp(28px, 3.4vw, 48px);
  color: var(--muted-foreground);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(32px, 3.4vw, 48px);
}

/* Logostrook onder de hero: pas in beeld na een stukje scrollen. */
.home-logos {
  padding-block: clamp(40px, 6vw, 88px) clamp(16px, 3vw, 40px);
}

.hero-foot {
  display: grid;
  gap: 20px;
}

.partners-label {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Logo-carrousel: zonder JavaScript of bij verminderde beweging een gewone rij. */
.logo-marquee {
  min-width: 0;
}

.logo-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 56px;
  list-style: none;
}

.logo-marquee.is-running {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.is-running .logo-track {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  padding-right: 56px;
  animation: logo-marquee 48s linear infinite;
}

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

@keyframes logo-marquee {
  to {
    transform: translateX(-100%);
  }
}

.logo-item {
  display: flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  filter: grayscale(1);
  opacity: 0.55;
  transition:
    filter 250ms ease,
    opacity 250ms ease;
}

.logo-item:hover {
  filter: none;
  opacity: 1;
}

/* Beeldmerk met de naam ernaast, voor partijen waarvan het woordmerk gewone tekst is. */
.logo-item--mark {
  gap: 9px;
  color: var(--foreground);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo {
  width: auto;
  height: 28px;
}

.logo--aiam {
  height: 26px;
}

.logo--tag {
  height: 17px;
}

.logo--mind {
  height: 58px;
}

.logo--quote,
.logo--uva,
.logo--mkb {
  height: 30px;
}

.logo--trouw {
  height: 24px;
}

.logo--hva {
  height: 24px;
}

.logo--pure {
  height: 26px;
}

/* Donkere modus: de logo's zijn donker op transparant, dus omkeren naar licht. */
[data-theme="dark"] .logo {
  filter: invert(1) grayscale(1);
}

.flow {
  display: grid;
  grid-template-columns: 1fr 26px 1fr 26px 1fr;
  align-items: center;
}

.flow-node {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 10px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  text-align: center;
}

.flow-node strong {
  font-size: 0.75rem;
  font-weight: 600;
}

.flow-node small {
  color: var(--muted-foreground);
  font-size: 0.625rem;
  white-space: nowrap;
}

.flow-icon {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 5px;
  place-items: center;
  border-radius: 8px;
  background: var(--muted);
  font-size: 14px;
}

.flow-icon img {
  width: 16px;
  height: 16px;
}

.flow-node--agent {
  border-color: color-mix(in oklab, var(--orange) 40%, transparent);
  background: var(--orange-soft);
}

.flow-node--agent .flow-icon {
  background: var(--card);
}

.flow-link {
  position: relative;
  height: 1px;
  background: var(--border-strong);
}

.flow-link i {
  position: absolute;
  top: -2.5px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: flow-dot 2.4s var(--ease) infinite;
}

.flow-link:nth-of-type(2) i {
  animation-delay: 1.2s;
}

@keyframes flow-dot {
  0% {
    left: 0;
    opacity: 0;
  }

  15%,
  85% {
    opacity: 1;
  }

  100% {
    left: calc(100% - 6px);
    opacity: 0;
  }
}

.flow-log {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  list-style: none;
}

.flow-log li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-log .icon {
  color: var(--green);
  font-size: 12px;
}

.flow-log .is-waiting {
  color: var(--foreground);
  font-weight: 500;
}

.flow-log .is-waiting i {
  width: 6px;
  height: 6px;
  margin-inline: 3px;
  border-radius: 50%;
  background: var(--orange);
  animation: wait-blink 1.4s ease-in-out infinite alternate;
}

@keyframes wait-blink {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 1;
  }
}

/* Sectiekop op de homepage */
.home-heading {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.home-heading h2,
.home-about h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.home-heading > p:last-child {
  max-width: 34rem;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
}

.work-index {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Visie */
.home-statement {
  padding-top: clamp(24px, 4vw, 56px);
}

.statement {
  max-width: 62rem;
  margin-top: 28px;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.statement h2,
.statement p {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
  text-wrap: wrap;
}

.statement-foot {
  display: grid;
  max-width: 62rem;
  gap: 12px 40px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.statement-foot p {
  max-width: 36rem;
  color: var(--muted-foreground);
}

.statement-foot .text-link {
  width: fit-content;
}

/* Diensten als rijen */
.service-rows {
  border-top: 1px solid var(--border);
  list-style: none;
}

.service-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 16px;
  position: relative;
  padding: 24px 4px;
  border-bottom: 1px solid var(--border);
  isolation: isolate;
  transition: border-color 300ms ease;
}

.service-row-index {
  padding-top: 0.45em;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.service-row-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.service-row-type {
  display: block;
  margin-top: 8px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-row-summary {
  grid-column: 2;
  max-width: 34rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.service-row-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  grid-column: 3;
  grid-row: 1;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.service-row:hover .service-row-arrow {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.service-rows-foot {
  margin-top: 24px;
}

/* Over mij */
.home-about {
  border-block: 1px solid var(--border);
  background: var(--muted);
}

.home-about-grid {
  display: grid;
  gap: 40px;
}

.home-about h2 {
  margin-top: 18px;
}

.home-about-copy > p:not(.section-kicker) {
  max-width: 36rem;
  margin-top: 20px;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.home-about-copy .text-link {
  margin-top: 16px;
}

.fact-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-xs);
}

/* Profielkaart op de homepage: foto met de kerngegevens eronder. */
.profile-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-xs);
}

.profile-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 15%;
}

.profile-card .fact-card {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.fact-card > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.fact-card > div:last-child {
  border-bottom: 0;
}

.fact-card dt {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-card dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

@media (min-width: 48rem) {
  .home-heading {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    align-items: end;
    column-gap: 48px;
  }

  .home-heading .section-kicker {
    grid-column: 1 / -1;
  }

  .statement-foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 56rem) {
  .service-row {
    grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.1fr) auto;
    align-items: center;
    column-gap: 32px;
    padding: 28px 16px;
  }

  .service-row-index {
    padding-top: 0;
  }

  .service-row-summary {
    grid-column: 3;
  }

  .service-row-arrow {
    grid-column: 4;
  }

  .home-about-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: end;
    gap: 64px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .hero-haze i {
    animation: none;
  }

  .flow-link i,
  .status-dot::after {
    animation: none;
  }

  .flow-link i {
    left: calc(50% - 3px);
  }
}

/* ==========================================================================
   Werk: overzicht en case-pagina's (scripts/build-work.js)
   Elke case zet zijn eigen accentkleur in --case.
   ========================================================================== */
.case-main,
.work-main,
.page-hero-aside {
  --case: var(--orange);
  --case-soft: color-mix(in oklab, var(--case) 10%, var(--background));
  --case-tint: color-mix(in oklab, var(--case) 18%, var(--background));
}

.case-main,
.work-main {
  overflow-x: clip;
}

.case-hero,
.work-hero {
  padding-top: calc(var(--header-height) + clamp(28px, 4vw, 56px));
}

.case-hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(20px, 3vw, 40px);
}

.case-hero h1,
.work-hero h1 {
  margin-top: 20px;
  font-size: clamp(2.75rem, 10vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.work-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 7.4vw, 5.5rem);
  line-height: 0.96;
}

.case-lede {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--muted-foreground);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.case-meta dt {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-meta dd {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Reactie van een opdrachtgever, direct onder de kerngegevens van de case */
.case-quote {
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding-left: clamp(18px, 3vw, 36px);
  border-left: 3px solid var(--case);
}

.case-quote blockquote,
.quote-card blockquote {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.14;
  text-wrap: balance;
}

.case-quote blockquote {
  max-width: 52rem;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
}

.case-quote figcaption,
.quote-card figcaption span {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-quote figcaption {
  margin-top: 18px;
}

/* Homepage: reacties naast elkaar */
.home-quotes {
  padding-top: 0;
}

.quote-cards {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  margin: 0;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-xl);
  background: color-mix(in oklab, var(--case) 10%, var(--background));
}

.quote-card blockquote {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.quote-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

@media (min-width: 56rem) {
  .quote-cards {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }
}

/* Podium: de STN-rozet in de casekleur, met de schermen er in 3D voor. */
.case-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  margin-inline: auto;
  perspective: 1500px;
}

/* Zachte schijf in de casekleur; de bladeren van de rozet steken erbuiten. */
.case-stage::before {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: var(--case-tint, color-mix(in oklab, var(--case) 18%, var(--background)));
  content: "";
}

.case-bloom {
  position: absolute;
  inset: -13%;
  width: 126%;
  height: 126%;
  overflow: visible;
  animation: case-bloom-spin 90s linear infinite;
}

.case-bloom path {
  fill: var(--case);
  stroke: var(--case);
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.case-bloom-petals g:nth-child(even) path {
  fill: color-mix(in oklab, var(--case) 78%, #ffffff);
  stroke: color-mix(in oklab, var(--case) 78%, #ffffff);
}

.case-bloom circle {
  fill: var(--background);
}

@keyframes case-bloom-spin {
  to {
    transform: rotate(360deg);
  }
}

.case-orbit {
  position: absolute;
  inset: 1%;
  border: 1px solid color-mix(in oklab, var(--foreground) 12%, transparent);
  border-radius: 50%;
  animation: case-bloom-spin 38s linear infinite reverse;
}

.case-orbit i {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--case);
  box-shadow: 0 0 0 4px var(--background);
}

/* Op het podium is de rozet geen harde bloem maar een wazige kleurwolk in de casekleur:
   dezelfde zes bladeren, sterk vervaagd, met om en om een verschoven tint. De ring vervalt. */
.case-stage::before {
  inset: 4%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--case) 20%, var(--background)), transparent);
}

.case-stage .case-bloom {
  filter: blur(clamp(26px, 4.2vw, 58px));
  opacity: 0.62;
}

.case-stage:not(.case-stage--mini) .case-bloom {
  opacity: 0.8;
}

.case-stage .case-bloom-petals g:nth-child(even) path {
  fill: color-mix(in oklab, var(--case) 52%, #ffd9a8);
  stroke: color-mix(in oklab, var(--case) 52%, #ffd9a8);
}

@supports (color: oklch(from red l c h)) {
  .case-stage .case-bloom-petals g:nth-child(even) path {
    fill: oklch(from var(--case) calc(l + 0.12) c calc(h + 38));
    stroke: oklch(from var(--case) calc(l + 0.12) c calc(h + 38));
  }
}

.case-stage .case-bloom circle,
.case-stage .case-orbit {
  display: none;
}

.case-devices {
  position: absolute;
  inset: 0;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out);
}

.case-stage .device {
  position: absolute;
  margin: 0;
  transform-style: preserve-3d;
}

/* Apparaten */
.device {
  margin: 0;
}

.device img,
.device video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.device--phone {
  position: relative;
  aspect-ratio: 9 / 19.3;
  padding: 2.4%;
  border-radius: 14% / 6.6%;
  background: #100e0d;
  box-shadow:
    inset 0 0 0 1.5px #4a4541,
    1px 1px 0 #2b2724,
    2px 2px 0 #2b2724,
    3px 3px 0 #252220,
    4px 4px 0 #201d1b,
    0 30px 60px -20px rgb(12 10 9 / 45%),
    0 12px 24px -12px rgb(12 10 9 / 35%);
}

.device--phone img,
.device--phone video {
  border-radius: 11.5% / 5.4%;
  background: var(--card);
}

/* De schermopnamen bevatten zelf al de statusbalk; de notch is alleen voor losse beelden. */
.device-notch {
  display: none;
  position: absolute;
  top: 3.2%;
  left: 50%;
  z-index: 1;
  width: 27%;
  height: 2.9%;
  border-radius: 99px;
  background: #100e0d;
  translate: -50% 0;
}

.device--browser,
.device--image {
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--foreground) 14%, transparent);
  border-radius: 12px;
  background: var(--card);
  box-shadow:
    0 30px 60px -22px rgb(12 10 9 / 40%),
    0 10px 22px -12px rgb(12 10 9 / 28%);
}

.device--browser img,
.device--browser video {
  height: auto;
  aspect-ratio: 16 / 9;
}

.device--image img,
.device--image video {
  height: auto;
}

.device-bar {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 5px;
  padding-inline: 11px;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.device-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.device-bar b {
  max-width: 60%;
  margin-inline: auto;
  padding: 2px 12px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--background);
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device--slides {
  position: relative;
  aspect-ratio: 16 / 9;
  transform-style: preserve-3d;
}

.device--slides img {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in oklab, var(--foreground) 14%, transparent);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 18px 40px -18px rgb(12 10 9 / 40%);
  transform: translate3d(calc(var(--n) * -5%), calc(var(--n) * -7%), calc(var(--n) * -40px)) rotate(calc(var(--n) * -3deg));
  transition: transform 500ms var(--ease-out);
  z-index: calc(10 - var(--n));
}

[data-tilt]:hover .device--slides img,
.case-stage:hover .device--slides img {
  transform: translate3d(calc(var(--n) * -9%), calc(var(--n) * -11%), calc(var(--n) * -40px)) rotate(calc(var(--n) * -5deg));
}

/* Podium-indelingen */
.case-stage--phones-1 .device--1 {
  top: 6%;
  left: 29%;
  width: 42%;
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(3deg);
}

.case-stage--phones-2 .device--1 {
  top: 2%;
  left: 13%;
  width: 39%;
  transform: translateZ(-40px) rotateY(18deg) rotateX(5deg) rotateZ(-6deg);
}

.case-stage--phones-2 .device--2 {
  top: 12%;
  left: 49%;
  width: 39%;
  transform: translateZ(40px) rotateY(-16deg) rotateX(5deg) rotateZ(5deg);
}

.case-stage--phones-3 .device--1 {
  top: 8%;
  left: 3%;
  width: 34%;
  transform: translateZ(-70px) rotateY(24deg) rotateX(4deg) rotateZ(-8deg);
}

.case-stage--phones-3 .device--2 {
  top: 1%;
  left: 33%;
  z-index: 2;
  width: 35%;
  transform: translateZ(50px) rotateX(4deg);
}

.case-stage--phones-3 .device--3 {
  top: 8%;
  left: 63%;
  width: 34%;
  transform: translateZ(-70px) rotateY(-24deg) rotateX(4deg) rotateZ(8deg);
}

.case-stage--wide-1 .device--1 {
  top: 22%;
  left: -2%;
  width: 104%;
  transform: rotateY(-14deg) rotateX(7deg) rotateZ(2deg);
}

.case-stage--wide-2 .device--1 {
  top: 10%;
  left: -6%;
  width: 88%;
  transform: translateZ(-50px) rotateY(12deg) rotateX(4deg) rotateZ(-2deg);
}

.case-stage--wide-2 .device--2 {
  top: 44%;
  left: 18%;
  width: 88%;
  transform: translateZ(50px) rotateY(-12deg) rotateX(4deg) rotateZ(2deg);
}

.case-stage--mixed .device--1 {
  top: 18%;
  left: -6%;
  width: 96%;
  transform: translateZ(-40px) rotateY(12deg) rotateX(5deg) rotateZ(-2deg);
}

.case-stage--mixed .device--2 {
  top: 24%;
  left: 60%;
  width: 34%;
  transform: translateZ(70px) rotateY(-16deg) rotateX(5deg) rotateZ(4deg);
}

/* Een portret op het podium: minder kanteling dan een scherm, zodat het gezicht recht blijft. */
.case-stage--portrait .device--1 {
  top: 6%;
  left: 21%;
  width: 58%;
  border-radius: var(--radius-xl);
  transform: rotateY(-8deg) rotateX(3deg) rotateZ(1.5deg);
}

.case-stage--portrait .device--1 img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.case-stage--slides .device--1 {
  top: 30%;
  left: 10%;
  width: 86%;
  transform: rotateY(-14deg) rotateX(8deg) rotateZ(2deg);
}

.case-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  box-shadow: var(--shadow);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.case-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--case);
}

.case-chip--1 {
  top: 6%;
  left: 2%;
}

.case-chip--2 {
  right: 0;
  bottom: 9%;
}

/* Secties */
.case-section--tight {
  padding-top: 0;
}

.case-features {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.case-card {
  position: relative;
  display: flex;
  min-height: 420px;
  grid-column: 1 / -1;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--case-soft);
  perspective: 1200px;
}

.case-card:nth-child(4n + 2),
.case-card:nth-child(4n + 3) {
  background: var(--muted);
}

.case-card-copy {
  padding: clamp(22px, 2.6vw, 34px) clamp(22px, 2.6vw, 34px) 0;
}

.case-card-label {
  display: flex;
  gap: 12px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card-label span {
  color: color-mix(in oklab, var(--case) 70%, var(--foreground));
}

.case-card h3 {
  max-width: 22ch;
  margin-top: 14px;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.case-card-copy > p:last-child {
  max-width: 30rem;
  margin-top: 12px;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.case-card--text {
  min-height: 0;
  padding-bottom: clamp(22px, 2.6vw, 34px);
}

.case-card-visual {
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 40px);
  padding-inline: clamp(22px, 2.6vw, 34px);
  transform: rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg));
  transform-origin: 50% 100%;
  transition: transform 400ms var(--ease-out);
}

.case-card-visual .device {
  transition: translate 500ms var(--ease-out);
}

.case-card:hover .case-card-visual .device {
  translate: 0 -10px;
}

.case-card-visual .device--phone {
  width: min(62%, 250px);
  margin-bottom: -38%;
}

.case-card-visual .device--browser,
.case-card-visual .device--image {
  width: 100%;
  margin-bottom: -6%;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.case-card-visual .device--slides {
  width: 78%;
  margin: 8% 0 12% 8%;
}

/* Uitgelicht onderdeel op donker */
.case-spotlight {
  position: relative;
  display: grid;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 90% at 0% 100%, color-mix(in oklab, var(--case) 34%, transparent), transparent 62%),
    #0c0a09;
  color: #fafaf9;
  perspective: 1400px;
}

[data-theme="dark"] .case-spotlight {
  border-color: var(--border);
}

.case-spotlight h2 {
  max-width: 18ch;
  margin-top: 18px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.case-spotlight-copy > p:last-child {
  max-width: 34rem;
  margin-top: 18px;
  color: rgb(255 255 255 / 66%);
}

.case-spotlight-visual {
  transform: rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg));
  transition: transform 400ms var(--ease-out);
}

.case-spotlight-visual .device--phone {
  width: min(56%, 260px);
  margin-inline: auto;
}

.case-spotlight .device--browser,
.case-spotlight .device--image {
  border-color: rgb(255 255 255 / 14%);
}

/* Trailer: breed beeld met een afspeelknop in de casekleur */
.case-trailer {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #0c0a09;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.case-trailer video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-trailer-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(to top, rgb(12 10 9 / 55%), rgb(12 10 9 / 10%) 60%);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.case-trailer-play[hidden] {
  display: none;
}

.case-trailer-play small {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.72;
}

.case-trailer-icon {
  display: grid;
  width: clamp(64px, 8vw, 96px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--case);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--case) 50%, transparent);
  transition:
    scale 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out);
}

.case-trailer-icon svg {
  width: 38%;
  fill: #ffffff;
  translate: 6% 0;
}

.case-trailer-play:hover .case-trailer-icon,
.case-trailer-play:focus-visible .case-trailer-icon {
  box-shadow: 0 0 0 14px color-mix(in oklab, var(--case) 28%, transparent);
  scale: 1.06;
}

/* Foto's en video: horizontale strook */
.case-gallery-nav {
  display: none;
  gap: 8px;
  justify-content: flex-end;
  margin-top: -24px;
  margin-bottom: 16px;
}

.case-gallery-nav.is-ready {
  display: flex;
}

.case-gallery-nav button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.case-gallery-nav button:hover {
  border-color: var(--case);
  background: var(--case);
  color: #ffffff;
}

.case-gallery-nav button:first-child .icon {
  rotate: 180deg;
}

.case-gallery {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  padding: 8px max(16px, calc((100vw - var(--container)) / 2)) 28px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.case-photo {
  position: relative;
  flex: 0 0 auto;
  width: min(78vw, 520px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--muted);
  scroll-snap-align: center;
  transition: transform 400ms var(--ease-out);
}

.case-photo:nth-child(odd) {
  transform: rotate(-0.8deg);
}

.case-photo:nth-child(even) {
  transform: rotate(0.8deg) translateY(10px);
}

.case-photo:hover {
  transform: rotate(0deg) scale(1.02);
}

.case-photo img,
.case-photo video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-photo figcaption {
  padding: 12px 16px 14px;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

/* Rol en bouw */
.case-split {
  display: grid;
  gap: 32px;
}

.case-split h2,
.case-next-link strong {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.case-split h2 {
  margin-top: 16px;
}

.case-role {
  border-top: 1px solid var(--border);
  list-style: none;
}

.case-role li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: baseline;
  padding-block: 20px;
  border-bottom: 1px solid var(--border);
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.case-role span {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
}

.case-build {
  display: grid;
  gap: 28px 32px;
}

.case-build article {
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
}

.case-build h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.case-build p {
  margin-top: 8px;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.case-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: clamp(32px, 4vw, 48px);
}

.case-stack span {
  margin-right: 8px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-stack b {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Statusbanner in de casekleur */
.case-section--outcome {
  padding-bottom: clamp(64px, 7.5vw, 104px);
}

/* Resultaatblok: geen vol kleurvlak maar een zachte tint met een wazige kleurwolk. */
.case-outcome {
  position: relative;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: color-mix(in oklab, var(--case) 9%, var(--background));
  isolation: isolate;
}

.case-outcome h2 {
  position: relative;
  max-width: 22ch;
  margin-top: 18px;
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.case-outcome h2 span {
  display: block;
  color: color-mix(in oklab, var(--foreground) 52%, transparent);
}

.case-outcome .case-bloom {
  inset: auto -14% -70% auto;
  z-index: -1;
  width: min(72%, 640px);
  height: auto;
  aspect-ratio: 1;
  filter: blur(clamp(30px, 4.6vw, 64px));
  opacity: 0.6;
}

.case-outcome .case-bloom-petals g:nth-child(even) path {
  fill: color-mix(in oklab, var(--case) 52%, #ffd9a8);
  stroke: color-mix(in oklab, var(--case) 52%, #ffd9a8);
}

@supports (color: oklch(from red l c h)) {
  .case-outcome .case-bloom-petals g:nth-child(even) path {
    fill: oklch(from var(--case) calc(l + 0.12) c calc(h + 38));
    stroke: oklch(from var(--case) calc(l + 0.12) c calc(h + 38));
  }
}

.case-outcome .case-bloom circle {
  display: none;
}

/* Volgende case */
.case-next {
  padding-bottom: clamp(64px, 7.5vw, 104px);
}

/* Verwijzing van de case naar de dienst waar dit werk onder valt */
.case-service {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: clamp(32px, 4vw, 48px);
  font-size: clamp(1.125rem, 1.8vw, 1.4375rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.case-next-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 24px;
  padding: clamp(24px, 4vw, 48px) 4px;
  border-block: 1px solid var(--border);
  isolation: isolate;
  transition: border-color 300ms ease;
}

/* Het vlak ligt achter de tekst en steekt iets buiten de kolom uit, zodat de tekst zelf niet verschuift. */
.case-next-link::before,
.service-row::before,
a.session-row::before {
  position: absolute;
  inset: 0 calc(-1 * clamp(8px, 1.6vw, 20px));
  z-index: -1;
  border-radius: var(--radius-lg);
  background: var(--row-hover, var(--muted));
  content: "";
  opacity: 0;
  scale: 0.99 0.94;
  transition:
    opacity 260ms ease,
    scale 420ms var(--ease-out);
}

.case-next-link:hover::before,
.service-row:hover::before,
a.session-row:hover::before {
  opacity: 1;
  scale: 1;
}

.case-next-link {
  --row-hover: color-mix(in oklab, var(--case) 10%, var(--background));
}

.case-next-link::before {
  inset-block: 8px;
  border-radius: var(--radius-xl);
}

.case-next-link:hover,
.service-row:hover,
a.session-row:hover {
  border-color: transparent;
}

.case-next-link strong,
.case-next-link .service-row-arrow {
  transition:
    translate 420ms var(--ease-out),
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.case-next-link:hover strong {
  translate: 6px 0;
}

.case-next-link:hover .service-row-arrow {
  translate: 4px 0;
}

.case-next-link .section-kicker,
.case-next-link strong,
.case-next-kind {
  grid-column: 1;
}

.case-next-kind {
  color: var(--muted-foreground);
}

.case-next-link .service-row-arrow {
  grid-row: 1 / span 3;
  grid-column: 2;
  align-self: center;
  width: 48px;
  height: 48px;
}

.case-next-link:hover .service-row-arrow {
  border-color: var(--case);
  background: var(--case);
  color: #ffffff;
}

.case-next-all {
  margin-top: 20px;
}

/* Werkoverzicht en kaarten (ook op de homepage) */
.work-overview {
  padding-top: clamp(40px, 5vw, 72px);
}

/* Het contactblok volgt op /werk direct op de grijze band en heeft daar eigen ruimte nodig. */
.work-sessions + .page-cta {
  padding-top: clamp(64px, 7.5vw, 104px);
}

/* Trainingen en talks */
.work-sessions {
  border-top: 1px solid var(--border);
  background: var(--muted);
}

.session-rows {
  border-top: 1px solid var(--border-strong);
  list-style: none;
}

.session-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 24px;
  position: relative;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border-strong);
  isolation: isolate;
  transition: border-color 300ms ease;
}

a.session-row {
  --row-hover: var(--background);
}

a.session-row:hover .service-row-arrow {
  border-color: var(--case);
  background: var(--case);
  color: #ffffff;
}

.session-date,
.session-format {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-date,
.session-main,
.session-format {
  grid-column: 1;
}

.session-row > :last-child {
  grid-row: 1 / span 3;
  grid-column: 2;
}

.session-main {
  display: grid;
  gap: 4px;
}

.session-main strong {
  font-size: clamp(1.125rem, 1.8vw, 1.4375rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.session-main span {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* Een foto bij een training: de rij lijnt dan bovenaan uit. */
.session-row--photo {
  align-items: start;
}

.session-photo {
  width: 100%;
  max-width: 26rem;
  height: auto;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.upcoming-list {
  display: grid;
  gap: 16px;
}

.upcoming-list article {
  padding: 20px 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.upcoming-list strong {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.upcoming-list article > p:last-child {
  margin-top: 8px;
  color: var(--muted-foreground);
}

/* Homepage: na het werk meteen de weg naar contact */
.work-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: clamp(32px, 4vw, 48px);
}

/* Homepage: lopende projecten als strook onder de cases */
.upcoming-strip {
  display: grid;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--border);
}

@media (min-width: 56rem) {
  .upcoming-strip .upcoming-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.work-upcoming {
  padding-top: clamp(64px, 7.5vw, 104px);
}

@media (min-width: 56rem) {
  .session-row {
    grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 14rem) 36px;
    padding: 22px 12px;
  }

  .session-date,
  .session-main,
  .session-format,
  .session-row > :last-child {
    grid-row: auto;
    grid-column: auto;
  }
}

.work-cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(16px, 2vw, 24px);
}

.work-card {
  --case-soft: color-mix(in oklab, var(--case) 10%, var(--background));
  --case-tint: color-mix(in oklab, var(--case) 22%, var(--background));
  display: grid;
  grid-column: 1 / -1;
  align-content: start;
  gap: 20px;
}

.work-card-cover {
  position: relative;
  display: grid;
  height: clamp(300px, 34vw, 440px);
  overflow: hidden;
  place-items: center;
  border-radius: var(--radius-xl);
  background: var(--case-soft);
  perspective: 1400px;
}

.work-card--wide .work-card-cover {
  height: clamp(320px, 40vw, 520px);
}

.case-stage--mini {
  width: auto;
  height: 132%;
  max-width: none;
  transform: rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg));
  transition: transform 500ms var(--ease-out);
}

.case-stage--mini .case-bloom {
  transition: scale 700ms var(--ease-out);
}

.work-card:hover .case-stage--mini .case-bloom {
  scale: 1.08;
}

.case-stage--mini .device--1 {
  transition: translate 600ms var(--ease-out);
}

.work-card:hover .case-stage--mini .device--1 {
  translate: 0 -3%;
}

.case-stage--mini.case-stage--phone .device--1 {
  top: 14%;
  left: 32%;
  width: 36%;
  transform: rotateY(-18deg) rotateX(8deg) rotateZ(4deg);
}

.case-stage--mini.case-stage--browser .device--1,
.case-stage--mini.case-stage--image .device--1 {
  top: 24%;
  left: 2%;
  width: 96%;
  transform: rotateY(-14deg) rotateX(8deg) rotateZ(2deg);
}

.case-stage--mini.case-stage--slides .device--1 {
  top: 32%;
  left: 14%;
  width: 78%;
  transform: rotateY(-14deg) rotateX(8deg) rotateZ(2deg);
}

.work-card-info {
  display: grid;
  gap: 6px;
}

.work-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.work-card h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.work-card-kind {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-card-summary {
  max-width: 36rem;
  margin-top: 6px;
  color: var(--muted-foreground);
}

.work-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.work-card-more .icon {
  color: var(--case);
  transition: translate 240ms var(--ease);
}

.work-card:hover .work-card-more .icon {
  translate: 4px 0;
}

@media (min-width: 40rem) {
  .case-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (min-width: 56rem) {
  .case-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .case-card {
    grid-column: span 6;
  }

  .case-card:nth-child(4n + 1),
  .case-card:nth-child(4n + 4) {
    grid-column: span 7;
  }

  .case-card:nth-child(4n + 2),
  .case-card:nth-child(4n + 3) {
    grid-column: span 5;
  }

  .case-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .case-spotlight {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .case-spotlight--text {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
  }

  .work-card {
    grid-column: span 6;
  }

  .work-card--wide {
    grid-column: 1 / -1;
  }

  .work-card--wide .work-card-info {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 48px;
  }

  .work-card--wide .work-card-top,
  .work-card--wide h3,
  .work-card--wide .work-card-kind {
    grid-column: 1;
  }

  .work-card--wide .work-card-summary {
    grid-row: 1 / span 2;
    grid-column: 2;
    margin-top: 0;
  }

  .work-card--wide .work-card-more {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-bloom,
  .case-orbit {
    animation: none;
  }
}
