/* ============================================================
   HARMANUS ACADEMY — homepage
   Tokens lifted directly from DESIGN.md
   ============================================================ */

:root {
  /* Raw palette */
  --c-black: #0b0c0b;
  --c-dark-green: #132119;
  --c-light-green: #a6ddcc;
  --c-light-green-hover: #8fcebb;
  --c-beige: #f4f3ed;
  --c-white: #ffffff;
  --c-red: #ed2d2b;
  /* hover-state blues (only used for button hover color-shift) */
  --c-deep-blue: #0e2a47;
  --c-soft-blue: #b8d3e6;

  /* Semantic */
  --bg: var(--c-beige);
  --bg-alt: var(--c-white);
  --bg-cinematic: var(--c-black);
  --surface: var(--c-white);
  --surface-dark: var(--c-dark-green);
  --surface-deep: var(--c-black);
  --surface-accent: var(--c-light-green);

  --text-primary: var(--c-black);
  --text-secondary: #2a3530;
  --text-muted: #6b6f6c;
  --text-inverse: var(--c-beige);
  --text-on-accent: var(--c-dark-green);
  --text-muted-on-dark: rgba(244, 243, 237, 0.62);

  --accent: var(--c-dark-green);
  --accent-soft: var(--c-light-green);
  --detail: var(--c-red);

  --border-subtle: rgba(11, 12, 11, 0.08);
  --border-on-dark: rgba(244, 243, 237, 0.12);
  --overlay-cinematic: rgba(11, 12, 11, 0.55);
  --overlay-green-wash: rgba(19, 33, 25, 0.72);

  /* Type */
  --font-sans: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  /* New Atten via Adobe Fonts (use.typekit.net/rur0cvu.css) — koppen h1/h2 */
  --font-display: 'new-atten', 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --w-display: 500; /* 500 = Medium, 700 = Bold — één knop om te wisselen */
  --font-serif: 'Bodoni Moda', 'Bodoni 72', 'Didot', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Radius */
  --r-none: 0px;
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-pill: 999px;
  --r-organic: 62% 38% 56% 44% / 48% 52% 48% 52%;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 160px;
  --s-12: 200px;

  /* Grid */
  --max-w: 1440px;
  --content-w: 1200px;
  --gutter: 48px;

  /* Motion */
  --ease-std: cubic-bezier(0.2, 0, 0, 1);
  --ease-in: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.4, 0, 1, 1);
  --dur-quick: 160ms;
  --dur-base: 240ms;
  --dur-expressive: 480ms;
  --dur-cinematic: 800ms;

  /* Elevation */
  --el-flat: 0 1px 0 0 rgba(11, 12, 11, 0.06);
  --el-card: 0 2px 8px rgba(11, 12, 11, 0.06), 0 0 0 1px rgba(11, 12, 11, 0.04);
  --el-card-hover: 0 12px 32px rgba(11, 12, 11, 0.10), 0 0 0 1px rgba(11, 12, 11, 0.04);
  --el-cinematic: 0 24px 80px rgba(11, 12, 11, 0.35);
  --el-inset: inset 0 0 0 1px rgba(244, 243, 237, 0.08);
}

@media (max-width: 1023px) {
  :root { --gutter: 32px; }
}
@media (max-width: 639px) {
  :root { --gutter: 20px; }
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body, button, input, textarea, select {
  hyphens: none;
  -webkit-hyphens: none;
}
/* overflow-x: clip stopt zijwaarts scrollen zonder position:sticky te breken
   (hidden zou een scroll-container maken en de sticky TOC/blog-filter kapotmaken) */
html { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--c-light-green); color: var(--c-dark-green); }

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

/* ============================================================
   Type primitives
   ============================================================ */
/* Wordmark = HARMANUS tekstlogo (zonder beeldmerk); kleur volgt currentColor via mask */
.wordmark {
  display: inline-block;
  width: clamp(128px, 9vw, 156px);
  aspect-ratio: 1200 / 318.7;
  background-color: currentColor;
  -webkit-mask: url('../img/harmanus-logo-text.svg') no-repeat center / contain;
  mask: url('../img/harmanus-logo-text.svg') no-repeat center / contain;
  font-size: 0;
  line-height: 0;
}
.t-display-hero {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.t-display-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.t-h1 { font-family: var(--font-display); font-weight: var(--w-display); font-size: clamp(40px, 5vw, 72px); line-height: 1.05; letter-spacing: -0.02em; }
.t-h2 { font-family: var(--font-display); font-weight: var(--w-display); font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.t-h3 { font-family: var(--font-sans); font-weight: 600; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.005em; }
.t-body-l { font-size: 20px; line-height: 1.55; }
.t-label { font-size: 12px; font-weight: 500; line-height: 1.2; letter-spacing: 0.18em; text-transform: uppercase; }
.t-meta { font-size: 12px; line-height: 1.3; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.t-quote { font-family: var(--font-serif); font-weight: 400; font-style: italic; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.35; letter-spacing: -0.005em; text-wrap: pretty; }

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding-block: var(--s-10); }
.section-compact { padding-block: var(--s-8); }
.section-cinematic { padding-block: var(--s-12); }
@media (max-width: 1023px) {
  .section { padding-block: var(--s-9); }
  .section-cinematic { padding-block: var(--s-10); }
}
@media (max-width: 639px) {
  .section { padding-block: var(--s-8); }
  .section-cinematic { padding-block: var(--s-9); }
}

/* Hero base image fallback removed of animation since slider now handles imagery */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}
.eyebrow.on-dark { color: var(--accent-soft); }
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--detail);
  flex-shrink: 0;
}

/* Red hairline */
.hairline {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--detail);
  border: 0;
  margin: 0;
}

/* Section heading group */
.section-head {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
.section-head p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 60ch;
}
.on-dark .section-head p { color: var(--text-muted-on-dark); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4) var(--s-6);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: background var(--dur-base) var(--ease-std), color var(--dur-base) var(--ease-std), border-color var(--dur-base) var(--ease-std);
  min-height: 48px;
  white-space: nowrap;
  /* room for the dot-before-first-letter on hover */
}
/* Red dot before first letter — appears on hover, no layout jump */
.btn::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 6px;
  background: var(--detail);
  border-radius: var(--r-pill);
  opacity: 0;
  margin-right: 0;
  transition:
    width var(--dur-base) var(--ease-std),
    margin-right var(--dur-base) var(--ease-std),
    opacity var(--dur-base) var(--ease-std);
}
.btn:hover::before,
.btn:focus-visible::before {
  width: 6px;
  margin-right: 10px;
  opacity: 1;
}

.btn-primary {
  background: var(--surface-dark);
  color: var(--text-inverse);
}
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--c-black); }

.btn-secondary {
  background: var(--accent-soft);
  color: var(--text-on-accent);
}
.btn-secondary:hover,
.btn-secondary:focus-visible { background: var(--c-light-green-hover); }

.btn-red {
  background: var(--detail);
  color: var(--c-white);
}
.btn-red:hover,
.btn-red:focus-visible { background: #c81f1d; }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover,
.btn-ghost:focus-visible { border-color: var(--detail); background: rgba(11, 12, 11, 0.04); }
.btn-ghost.on-dark {
  color: var(--text-inverse);
  border-color: var(--border-on-dark);
}
.btn-ghost.on-dark:hover,
.btn-ghost.on-dark:focus-visible { background: rgba(244, 243, 237, 0.06); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 6px;
}
.btn-link.on-dark { color: var(--text-inverse); }
.btn-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--detail);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-std);
}
.btn-link:hover::after,
.btn-link:focus-visible::after { transform: scaleX(1); }

.btn-link .arr {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-std);
}
.btn-link:hover .arr { transform: translateX(4px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-base) var(--ease-std), border-color var(--dur-base) var(--ease-std), color var(--dur-base) var(--ease-std);
  border-bottom: 1px solid transparent;
  color: var(--text-inverse);
}
.site-header.is-scrolled {
  background: rgba(244, 243, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
  color: var(--text-primary);
}
.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-7);
}
.site-nav {
  display: flex;
  gap: var(--s-7);
  justify-content: center;
}
.site-nav a,
.site-nav .nav-dropdown-trigger {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: var(--s-2) 0;
  transition: opacity var(--dur-base) var(--ease-std);
}
.site-nav a::after,
.site-nav .nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--detail);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-std);
}
.site-nav a:hover::after,
.site-nav .nav-dropdown-trigger:hover::after { transform: scaleX(1); }
.header-cta { justify-self: end; display: flex; align-items: center; gap: var(--s-4); }
.header-cta .btn { min-height: 44px; padding: var(--s-3) var(--s-5); }

.site-header.is-scrolled .btn-primary { background: var(--surface-dark); color: var(--text-inverse); }
.site-header.is-scrolled .btn-primary:hover { background: var(--c-black); }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1px;
  background: currentColor;
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

@media (max-width: 1023px) {
  .site-nav, .header-cta .btn { display: none; }
  .header-inner { grid-template-columns: 1fr 1fr; }
  .hamburger { display: inline-flex; }
}

/* Mobile menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--c-black);
  color: var(--text-inverse);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-std);
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
}
.menu-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.menu-links {
  margin-top: auto;
  margin-bottom: auto;
  display: grid;
  gap: var(--s-5);
}
.menu-links a,
.menu-links .menu-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(40px, 10vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-inverse);
}
.menu-links .menu-label { display: block; }
.menu-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-on-dark);
  padding-top: var(--s-5);
  color: var(--text-muted-on-dark);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg-cinematic);
  color: var(--text-inverse);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-top: 120px;
  padding-bottom: var(--s-9);
}
@media (max-width: 1023px) { .hero { min-height: 90vh; } }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(60, 80, 70, 0.35), transparent 60%),
    linear-gradient(180deg, #131815 0%, #0b0c0b 100%);
  transform: scale(1.04);
  transform-origin: center;
  animation: heroScale var(--dur-cinematic) var(--ease-in) forwards;
}
@keyframes heroScale {
  to { transform: scale(1); }
}
/* Stylized piano-key silhouette as filler — placeholder for filmic piano photo */
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* sheen */
    linear-gradient(115deg, transparent 40%, rgba(166, 221, 204, 0.06) 50%, transparent 60%),
    /* light bleed bottom right */
    radial-gradient(circle at 80% 90%, rgba(166, 221, 204, 0.10), transparent 40%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 12, 11, 0.30) 0%, rgba(11, 12, 11, 0.15) 35%, rgba(11, 12, 11, 0.88) 100%),
    linear-gradient(90deg, rgba(11, 12, 11, 0.55) 0%, rgba(11, 12, 11, 0.15) 50%, rgba(11, 12, 11, 0.55) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-blob {
  position: absolute;
  width: 720px;
  height: 720px;
  right: -320px;
  top: -220px;
  z-index: 2;
  background: var(--accent-soft);
  border-radius: var(--r-organic);
  opacity: 0.12;
  filter: blur(2px);
  will-change: transform;
  mix-blend-mode: screen;
}

/* ===== Hero FX slider =====
   Each slide = 8 vertical slices that reveal with stagger.
   Inspired by Framer's FX slider — slice/curtain transition. */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
  /* Each slice covers 12.5% width and shows its 12.5% strip of the bg image */
  --bg: none;
}
.hero-slide .slice {
  flex: 1 1 0;
  background-image: var(--bg);
  background-size: 800% 100%;
  background-repeat: no-repeat;
  background-position: calc(var(--i) / 7 * 100%) center;
  transform: translateY(-110%);
  opacity: 0;
  transition:
    transform 720ms var(--ease-in),
    opacity 540ms var(--ease-in);
  transition-delay: calc(var(--i) * 70ms);
  will-change: transform, opacity;
}
/* Active slide: slices drop into place */
.hero-slide.is-active .slice {
  transform: translateY(0);
  opacity: 1;
  /* incoming uses reverse stagger for variety */
  transition-delay: calc((7 - var(--i)) * 60ms);
}
/* Outgoing fallback: slices push down */
.hero-slide.is-leaving .slice {
  transform: translateY(110%);
  opacity: 0;
  transition-delay: calc(var(--i) * 50ms);
}
/* Thin animated divider lines between slices for that mechanical FX feel */
.hero-slide .slice + .slice {
  border-left: 1px solid rgba(11, 12, 11, 0.18);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide .slice {
    transform: none !important;
    opacity: 1 !important;
    transition: opacity 200ms linear !important;
  }
  .hero-slide:not(.is-active) .slice { opacity: 0 !important; }
}

/* ===== Hero style picker (right side) =====
   Absolutely positioned on the right edge of the hero,
   vertically centered alongside the hero copy. */
.hero-picker {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  width: min(300px, 26vw);
}
.hero-picker-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(244, 243, 237, 0.18);
  border-bottom: 1px solid rgba(244, 243, 237, 0.18);
}
.hero-picker-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0 0 var(--s-3) 0;
  color: rgba(244, 243, 237, 0.55);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0;
}
.hero-picker-head::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--detail);
  border-radius: var(--r-pill);
}
.style-btn {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 0;
  color: rgba(244, 243, 237, 0.62);
  text-align: left;
  border-top: 1px solid rgba(244, 243, 237, 0.08);
  transition: color var(--dur-base) var(--ease-std), padding var(--dur-base) var(--ease-std);
  font-family: var(--font-sans);
}
.style-btn:first-of-type { border-top: 0; }
.style-btn .style-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244, 243, 237, 0.45);
  transition: color var(--dur-base) var(--ease-std);
}
.style-btn .style-label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-inverse);
  transition: transform var(--dur-base) var(--ease-std);
}
.style-btn .style-meta {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(244, 243, 237, 0.5);
}
.style-btn .style-arr {
  width: 14px;
  height: 14px;
  border-radius: var(--r-pill);
  background: transparent;
  transition: background var(--dur-base) var(--ease-std), transform var(--dur-base) var(--ease-std);
  position: relative;
}
.style-btn:hover .style-label { transform: translateX(4px); }
.style-btn:hover .style-num,
.style-btn:hover { color: var(--text-inverse); }

.style-btn.is-active .style-num { color: var(--detail); }
.style-btn.is-active .style-arr {
  background: var(--detail);
}
.style-btn.is-active .style-label { transform: translateX(2px); }

@media (max-width: 1023px) {
  .hero-picker {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    margin-top: var(--s-5);
  }
  .hero-picker-list {
    flex-direction: row;
    overflow-x: auto;
    gap: var(--s-2);
    border: 0;
    padding: 0;
    scrollbar-width: thin;
  }
  .hero-picker-head { display: none; }
  .style-btn {
    grid-template-columns: auto 1fr;
    flex: 0 0 auto;
    padding: var(--s-3) var(--s-4);
    border: 1px solid rgba(244, 243, 237, 0.14);
    border-radius: var(--r-sm);
    min-width: 200px;
  }
  .style-btn .style-arr { display: none; }
  .style-btn.is-active {
    background: rgba(166, 221, 204, 0.10);
    border-color: rgba(166, 221, 204, 0.4);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: var(--s-7);
  grid-template-columns: minmax(0, 1fr);
}
.hero-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  max-width: min(820px, calc(100% - 340px));
}
.hero-body .hero-eyebrow { margin-bottom: var(--s-2); }
@media (max-width: 1023px) {
  .hero-body { max-width: 100%; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--accent-soft);
}
.hero-eyebrow .hairline { width: 32px; }
.hero-headline {
  max-width: 14ch;
}
.hero-headline .line {
  display: block;
  overflow: hidden;
}
.hero-headline .line span {
  display: inline-block;
  transform: translateY(100%);
  animation: lineReveal var(--dur-cinematic) var(--ease-in) forwards;
}
.hero-headline .line:nth-child(2) span { animation-delay: 120ms; }
.hero-headline .line:nth-child(3) span { animation-delay: 240ms; }
@keyframes lineReveal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.hero-sub {
  max-width: 56ch;
  color: rgba(244, 243, 237, 0.78);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
}



.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  color: rgba(244, 243, 237, 0.78);
}
.meta-strip li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.meta-strip li::before {
  content: "/";
  color: var(--accent-soft);
  font-weight: 500;
  margin-right: var(--s-1);
}

.hero-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-2);
}

/* ============================================================
   Reveal animation primitive
   ============================================================ */
/* Initial reveal state only applies when JS is available;
   GSAP drives the animation itself (no CSS transition needed). */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-image { animation: none; transform: none; }
  .hero-headline .line span { transform: none; animation: none; }
  .hero-blob { will-change: auto; }
  * { scroll-behavior: auto; }
}

/* ============================================================
   Methode
   ============================================================ */
.methode {
  background: var(--c-black);
  color: var(--text-inverse);
}
.methode .eyebrow { color: var(--accent-soft); }
.methode .eyebrow::before { background: var(--detail); }
.methode-grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: var(--s-9);
  align-items: start;
}
@media (max-width: 1023px) {
  .methode-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}
.methode-text .t-h2 { max-width: 14ch; color: var(--text-inverse); }
.methode-text .t-body-l { color: rgba(244, 243, 237, 0.78); }
.methode-text p { margin-top: var(--s-5); }
.methode-text .btn-link { color: var(--text-inverse); }
.methode .key-divider span { background: var(--border-on-dark); }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
@media (max-width: 767px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--surface-dark);
  color: var(--text-inverse);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--r-md);
  padding: var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 320px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.pillar > * { position: relative; z-index: 1; }
.pillar:hover {
  box-shadow: var(--el-cinematic);
  transform: translateY(-2px);
}
.pillar .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
}
.pillar h3 { margin-top: auto; max-width: 18ch; }
.pillar p { color: rgba(244, 243, 237, 0.72); font-size: 15px; line-height: 1.6; max-width: 40ch; }

/* ===== Border beam =====
   A bright bead of mint light sits along the card edge.
   Idle: still, anchored at a soft default angle.
   Hover: the bead tracks the mouse around the perimeter,
   driven by JS setting --beam-angle on the pillar.
   Smooth following thanks to the registered custom property transition. */
@property --beam-angle {
  syntax: '<angle>';
  initial-value: 25deg;
  inherits: true;
}
.pillar {
  --beam-angle: 25deg;
  transition:
    box-shadow var(--dur-base) var(--ease-std),
    transform var(--dur-base) var(--ease-std),
    --beam-angle 380ms var(--ease-out);
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--beam-angle),
    #d9f1e8 0deg,
    rgba(166, 221, 204, 0.65) 14deg,
    rgba(166, 221, 204, 0) 56deg,
    transparent 56deg,
    transparent 304deg,
    rgba(166, 221, 204, 0) 304deg,
    rgba(166, 221, 204, 0.65) 346deg,
    #d9f1e8 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}
.pillar::after {
  /* Soft glow that sits with the beam — adds depth */
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: inherit;
  background: conic-gradient(
    from var(--beam-angle),
    rgba(166, 221, 204, 0.22) 0deg,
    rgba(166, 221, 204, 0) 50deg,
    transparent 50deg,
    transparent 310deg,
    rgba(166, 221, 204, 0) 310deg,
    rgba(166, 221, 204, 0.22) 360deg
  );
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .pillar { transition: none; }
}

.key-divider {
  display: flex;
  gap: 8px;
  margin: var(--s-7) 0;
  opacity: 0.7;
}
.key-divider span {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.section-head-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-7);
  align-items: end;
  margin-bottom: var(--s-8);
}
@media (max-width: 767px) {
  .section-head-row { grid-template-columns: 1fr; align-items: start; }
}
.section-head-row .head-left { display: grid; gap: var(--s-4); }
.section-head-row .head-left p { color: var(--text-muted); max-width: 50ch; }

/* ============================================================
   USPs
   ============================================================ */
.usps {
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
}
.usps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-7);
}
@media (max-width: 1023px) { .usps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 559px)  { .usps-grid { grid-template-columns: 1fr; } }

.usp {
  display: grid;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-subtle);
  position: relative;
}
.usp h3 { font-size: 20px; letter-spacing: -0.005em; max-width: 18ch; }
.usp p { color: var(--text-muted); font-size: 14px; line-height: 1.55; max-width: 28ch; }
.usp .usp-icon {
  width: 28px;
  height: 28px;
  margin-bottom: var(--s-3);
  color: var(--text-primary);
}

/* ============================================================
   Docent
   ============================================================ */
.docent {
  background: var(--c-black);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.docent-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--s-9);
  align-items: center;
}
@media (max-width: 1023px) { .docent-grid { grid-template-columns: 1fr; gap: var(--s-7); } }

.docent-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(166, 221, 204, 0.10), transparent 50%),
    linear-gradient(160deg, #1a2a22 0%, #0b0c0b 100%);
}
.docent-media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}
/* filmic green-black wash — same treatment as cards */
.docent-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 12, 11, 0.10) 0%, rgba(11, 12, 11, 0.05) 40%, rgba(11, 12, 11, 0.92) 100%),
    linear-gradient(180deg, rgba(19, 33, 25, 0.25), rgba(19, 33, 25, 0.05) 50%);
}
.docent-media::after {
  content: "ROY HARMANUS";
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244, 243, 237, 0.55);
}
.docent-media .reveal-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--surface-dark);
  transform: translateX(0);
  transition: transform var(--dur-cinematic) var(--ease-in);
}
.docent-media.is-visible .reveal-mask { transform: translateX(101%); }

.docent-text .t-h2 { max-width: 16ch; margin-bottom: var(--s-5); }
.docent-text .lede { font-size: 18px; color: rgba(244, 243, 237, 0.78); max-width: 56ch; line-height: 1.6; }
.docent-text .lede + p { margin-top: var(--s-5); color: rgba(244, 243, 237, 0.7); max-width: 56ch; }
.docent-actions { display: flex; gap: var(--s-3); margin-top: var(--s-7); flex-wrap: wrap; }
.docent .eyebrow.on-dark { color: var(--accent-soft); }
.docent-credentials {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  border-top: 1px solid var(--border-on-dark);
  padding-top: var(--s-5);
}
.docent-credentials li { color: rgba(244, 243, 237, 0.72); }
.docent-credentials .num {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 400;
  color: var(--text-inverse);
  letter-spacing: -0.01em;
  display: block;
}
.docent-credentials .lab {
  display: block;
  margin-top: var(--s-1);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

/* ============================================================
   Assessment
   ============================================================ */
.assessment {
  background: var(--c-black);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
/* ============================================================
   FAQ (darkmode accordion)
   ============================================================ */
.faq {
  background: var(--c-black);
  color: var(--text-inverse);
}
.faq .eyebrow.on-dark { color: var(--accent-soft); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: var(--s-9);
  align-items: start;
}
@media (max-width: 1023px) {
  .faq-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}
.faq-intro .t-h2 { max-width: 14ch; color: var(--text-inverse); margin-bottom: var(--s-5); }
.faq-intro p {
  color: rgba(244, 243, 237, 0.72);
  max-width: 44ch;
  margin-bottom: var(--s-6);
}

.faq-list {
  display: block;
  border-top: 1px solid var(--border-on-dark);
}
.faq-item {
  border-bottom: 1px solid var(--border-on-dark);
  position: relative;
}
.faq-item::before {
  /* Hairline that lights up when the item is open */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 1px;
  background: var(--detail);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease-in);
  z-index: 1;
}
.faq-item.is-open::before { transform: scaleX(1); }

.faq-q {
  appearance: none;
  background: transparent;
  border: 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-6) 0;
  text-align: left;
  color: var(--text-inverse);
  cursor: pointer;
  transition: padding var(--dur-base) var(--ease-std);
}
.faq-q-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  min-width: 24px;
}
.faq-q-text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text-inverse);
  transition: color var(--dur-base) var(--ease-std);
}
.faq-item:hover .faq-q-text { color: var(--accent-soft); }
.faq-item.is-open .faq-q-text { color: var(--accent-soft); }

/* +/− icon — vertical bar rotates 90° so two bars overlap into a single dash */
.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--text-inverse);
  transition: transform var(--dur-base) var(--ease-std);
}
.faq-icon .bar {
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 420ms var(--ease-in), background var(--dur-base) var(--ease-std);
}
.faq-icon .bar-h {
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-icon .bar-v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%) rotate(0deg);
  transform-origin: center;
}
.faq-item.is-open .faq-icon { color: var(--accent-soft); }
.faq-item.is-open .faq-icon .bar-v {
  transform: translateX(-50%) rotate(90deg);
}
.faq-item:hover .faq-icon { color: var(--accent-soft); }

/* Answer reveal — height is driven imperatively via WAAPI in motion.js
   to bypass a Chromium quirk where max-height transitions on flex-column
   children freeze at frame 0. CSS only sets the collapsed default. */
.faq-a-wrap {
  overflow: hidden;
  max-height: 0;
}
.faq-item.is-open .faq-a-wrap {
  max-height: 9999px;
}
.faq-a > p {
  padding-left: calc(24px + var(--s-5));
  padding-right: calc(22px + var(--s-5));
  padding-bottom: var(--s-7);
  padding-top: var(--s-1);
  margin: 0;
  max-width: 64ch;
  color: rgba(244, 243, 237, 0.72);
  font-size: 15px;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 380ms var(--ease-in),
    transform 380ms var(--ease-in);
}
.faq-item.is-open .faq-a > p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 140ms;
}

@media (max-width: 639px) {
  .faq-q { grid-template-columns: 1fr auto; padding: var(--s-5) 0; }
  .faq-q-num { display: none; }
  .faq-a > p {
    padding-left: 0;
    padding-right: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon .bar,
  .faq-a-wrap,
  .faq-a > p { transition: none; }
}

/* ============================================================
   Introductie CTA
   ============================================================ */
.intro-cta {
  background: var(--surface-dark);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.intro-cta-inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s-9);
  align-items: center;
  position: relative;
}
@media (max-width: 1023px) { .intro-cta-inner { grid-template-columns: 1fr; gap: var(--s-7); } }
.intro-cta .t-display-serif { max-width: 14ch; }
.intro-cta p { color: rgba(244, 243, 237, 0.72); max-width: 52ch; margin-top: var(--s-5); font-size: 18px; }
.intro-cta-actions { display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start; }
.intro-cta-actions .btn { min-width: 260px; }
.intro-cta-actions .small {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(244, 243, 237, 0.55);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.intro-cta-actions .small::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--detail);
  border-radius: var(--r-pill);
}
@media (max-width: 1023px) {
  .intro-cta-actions { align-items: stretch; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-cinematic);
  color: var(--text-inverse);
  padding-top: var(--s-10);
  padding-bottom: var(--s-7);
  position: relative;
  overflow: hidden;
}
.footer-cols {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-9);
  border-bottom: 1px solid var(--border-on-dark);
}
@media (max-width: 1023px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px)  { .footer-cols { grid-template-columns: 1fr; } }

.footer-cols h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: var(--s-5);
}
.footer-cols ul { display: grid; gap: var(--s-3); }
.footer-cols li { color: rgba(244, 243, 237, 0.78); font-size: 14px; }
.footer-cols a {
  color: rgba(244, 243, 237, 0.78);
  font-size: 14px;
  transition: color var(--dur-base) var(--ease-std);
  position: relative;
  display: inline-block;
}
.footer-cols a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--detail);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-std);
}
.footer-cols a:hover { color: var(--text-inverse); }
.footer-cols a:hover::after { transform: scaleX(1); }

.footer-blurb {
  color: rgba(244, 243, 237, 0.7);
  max-width: 36ch;
  margin-top: var(--s-5);
  font-size: 14px;
  line-height: 1.6;
}

.footer-wordmark {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-inverse);
  padding-block: var(--s-7);
}
/* Tekstlogo met MUSIC ACADEMY eronder (zonder beeldmerk), 50% van de oude breedte */
.footer-logo {
  display: block;
  width: min(50%, 620px);
  aspect-ratio: 1200 / 318.7;
  background-color: currentColor;
  -webkit-mask: url('../img/harmanus-logo-text.svg') no-repeat center / contain;
  mask: url('../img/harmanus-logo-text.svg') no-repeat center / contain;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-on-dark);
  padding-top: var(--s-5);
  color: rgba(244, 243, 237, 0.55);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.footer-bottom .lang-switch { display: flex; gap: var(--s-4); }
.footer-bottom .lang-switch a.active { color: var(--text-inverse); }
@media (max-width: 559px) {
  .footer-bottom { flex-direction: column; gap: var(--s-3); align-items: flex-start; }
}
