:root {
  --bg: #0E0C0B;
  --bg-alt: #16120F;
  --card: #1C1714;
  --line: #2A2420;
  --line-strong: #5C534A;
  --text: #F2ECE4;
  --muted: #C9C0B4;
  --faint: #A39A8F;
  --accent: #D9A777;
  --accent-ink: #17120E;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
section[id] { scroll-margin-top: 76px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 900px; }

/* ---------- typografie ---------- */
h1, h2, .display { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(48px, 7.2vw, 96px); line-height: 1.02; }
h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.08; margin-bottom: 56px; }
.display { font-size: clamp(42px, 6.4vw, 88px); line-height: 1.04; margin-bottom: 32px; }
h3 { margin: 0; font-size: 20px; font-weight: 600; }
p { margin: 0; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 24px; }
.lead { color: var(--muted); font-size: clamp(18px, 1.6vw, 20px); max-width: 640px; }
.muted { color: var(--muted); }
.placeholder { color: var(--faint); font-size: 15px; }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s;
}
.btn:hover { background: #E7BC92; color: var(--accent-ink); transform: translateY(-1px); }
.btn-small { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; padding: 12px 0; }
.link-arrow::after { content: '→'; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 12, 11, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: .24em; font-size: 14px; white-space: nowrap; }
.brand span { color: var(--faint); }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 12px 0; }
.nav a:not(.btn):hover { color: var(--text); }
.menu-toggle { display: none; width: 48px; height: 48px; background: none; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), background .3s; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ''; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 112px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero-text .eyebrow { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-price { color: var(--faint); font-size: 15px; }
.hero-photo { margin: 0; overflow: hidden; aspect-ratio: 2 / 3; max-width: 460px; justify-self: center; width: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.hero-photo.is-visible img { transform: scale(1); }

/* ---------- kerncijfers ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num { font-family: var(--serif); font-size: clamp(48px, 5vw, 64px); line-height: 1; }
.stat-label { color: var(--muted); }

/* ---------- hoofdstukken ---------- */
.chapter { padding: 144px 0; }
.chapter-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statement { max-width: 900px; margin-bottom: 80px; }
.wide-photo { margin: 0; border-radius: 8px; overflow: hidden; background: var(--card); }
.wide-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; }
.wide-photo-16x9 img { object-position: 50% 50%; }
.wide-photo figcaption { color: var(--faint); font-size: 14px; padding: 14px 0 0; background: var(--bg); }
#atelier .wide-photo { background: transparent; }
#atelier .wide-photo img { border-radius: 8px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.1; }
.card p { color: var(--muted); }
.card .unit-type { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .02em; margin-top: auto; padding-top: 8px; }
.section-intro { margin: -24px 0 48px; }
.unit { display: block; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 8px; background: #25211D; position: relative; }
.unit::after { content: ''; position: absolute; border-radius: 50%; }
.unit-tweeter::after { inset: 20px; background: radial-gradient(circle at 35% 35%, #F0F0F0, #8F8B85 70%); }
.unit-mid::after { inset: 9px; background: radial-gradient(circle at 50% 50%, #FFFFFF 0 22%, #E9E6E1 23% 100%); }
.unit-woofer::after { inset: 7px; background: radial-gradient(circle at 50% 50%, #111 0 16%, #3A3632 17% 100%); }

/* ---------- configurator ---------- */
.configurator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'viewer head' 'viewer controls'; column-gap: 80px; row-gap: 0; align-items: center; }
.config-viewer { grid-area: viewer; align-self: start; position: sticky; top: 100px; }
.config-head { grid-area: head; align-self: end; }
.config-controls { grid-area: controls; align-self: start; }
.viewer-stage {
  position: relative; height: min(78vh, 680px); min-height: 460px;
  border-radius: 8px; overflow: hidden; cursor: grab; touch-action: pan-y;
  background: radial-gradient(ellipse at 50% 38%, #2A231E 0%, #16120F 58%, #0E0C0B 100%);
  border: 1px solid var(--line);
}
.viewer-stage:active { cursor: grabbing; }
.viewer-stage canvas { display: block; width: 100%; height: 100%; position: relative; z-index: 1; touch-action: none; }
.viewer-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; pointer-events: none; }
.viewer-loading { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 14px; transition: opacity .4s; }
.viewer-stage.is-ready .viewer-loading { opacity: 0; pointer-events: none; }
.viewer-stage.no-webgl .viewer-fallback { opacity: 1; }
.viewer-stage.no-webgl .viewer-loading { opacity: 0; }
.viewer-hint { color: var(--faint); font-size: 14px; margin-top: 14px; }
.configurator-text h2 { margin-bottom: 28px; }
.configurator-text .lead { margin-bottom: 32px; }
.config-head .lead { margin-bottom: 32px; }
.finishes { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.finish {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px;
  padding: 8px 20px 8px 10px; border-radius: 999px; cursor: pointer;
  background: var(--bg-alt); color: var(--text); font: 500 15px/1 var(--sans);
  border: 1.5px solid var(--line); transition: border-color .2s, background .2s;
  position: relative;
}
.finish:hover { border-color: var(--line-strong); }
.finish[aria-pressed="true"] { border-color: var(--accent); background: #1E1915; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #5C534A; flex: none; }
.swatch-walnut { background: repeating-linear-gradient(100deg, #6B4630 0 3px, #5A3A26 3px 7px, #4C3020 7px 9px); }
.swatch-custom { background: #2F4A3E; }
.finish-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.finish-custom:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.finish-text { color: var(--muted); min-height: 84px; margin-bottom: 8px; max-width: 520px; }

/* ---------- werkwijze ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { border-top: 1px solid var(--line-strong); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--accent); }
.steps p { color: var(--muted); }

/* ---------- atelier ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px 80px; }
#atelier .two-col { margin-top: 96px; }
#atelier h2 { margin-bottom: 0; }
.prose { display: flex; flex-direction: column; gap: 20px; color: var(--muted); }
.prose .lead { color: var(--text); }

/* ---------- specificaties ---------- */
.specs { margin: 0; }
.specs div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.specs div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; line-height: 1.7; }
.specs a, .booking-text a, .site-footer a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.specs a:hover, .booking-text a:hover, .site-footer a:hover { color: var(--accent); }

/* ---------- luistersessie ---------- */
.two-col-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.booking-text h2 { margin-bottom: 28px; }
.booking-text .lead { margin-bottom: 40px; }
.price-block { display: flex; flex-direction: column; gap: 6px; padding-top: 28px; border-top: 1px solid var(--line); margin-bottom: 28px; color: var(--muted); }
.price { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--text); }
.booking-form { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { color: var(--muted); font-size: 15px; }
.optional { color: var(--faint); }
.field input, .field textarea, .field select {
  min-height: 50px; padding: 0 14px; background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--sans); border: 1px solid var(--line-strong); border-radius: 6px;
  transition: border-color .2s;
}
.field textarea { padding: 12px 14px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(217, 167, 119, .25); }
.hidden-field { position: absolute; left: -9999px; }
.form-note { color: var(--faint); font-size: 14px; }
.form-status { color: var(--accent); font-size: 15px; }
.form-status:empty { display: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 40px; padding-bottom: 40px; color: var(--faint); font-size: 14px; }

/* ---------- scroll-animatie ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo img { transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14, 12, 11, .97); border-bottom: 1px solid var(--line);
    padding: 8px 32px 24px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 20px; }
  .configurator { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'viewer' 'controls'; row-gap: 28px; }
  .config-viewer { position: static; }
  .config-head .lead { margin-bottom: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .wrap { padding: 0 22px; }
  .nav { padding-left: 22px; padding-right: 22px; }
  .hero { padding: 40px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-photo { max-width: 360px; }
  .stats-row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .chapter { padding: 96px 0; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .two-col, .two-col-form { grid-template-columns: minmax(0, 1fr); }
  #atelier .two-col { margin-top: 64px; }
  .viewer-stage { height: 460px; min-height: 0; }
  .booking-form { padding: 24px; }
  h2 { margin-bottom: 40px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .specs dd { text-align: left; }
  .viewer-stage { height: 480px; }
}

/* studiofoto's naadloos laten overlopen in de pagina */
.hero-photo, .studio-photo {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.studio-photo { background: transparent; border-radius: 0; }

/* walnoot-label en RAL-kiezer */
.finish-tag { font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid rgba(217,167,119,.45); border-radius: 999px; padding: 4px 8px; margin-left: 2px; }
.price-note { color: var(--faint); font-size: 14px; margin-top: 6px; }
.ral-panel { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.ral-panel[hidden] { display: none; }
.ral-head { display: flex; flex-direction: column; gap: 8px; }
.ral-head label { color: var(--muted); font-size: 14px; }
.ral-head input { min-height: 46px; padding: 0 14px; background: var(--bg); color: var(--text); font: 16px var(--sans); border: 1px solid var(--line-strong); border-radius: 6px; }
.ral-head input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(217,167,119,.25); }
.ral-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.ral-chip { min-height: 36px; padding: 0 14px; border-radius: 999px; background: transparent; color: var(--muted); border: 1px solid var(--line-strong); font: 500 13px var(--sans); cursor: pointer; }
.ral-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ral-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); grid-auto-rows: 44px; gap: 8px; max-height: 244px; overflow-y: auto; padding: 3px; }
.ral-swatch { height: 44px; border-radius: 6px; border: 1px solid rgba(255,255,255,.12); cursor: pointer; position: relative; padding: 0; }
.ral-swatch:hover { transform: scale(1.06); }
.ral-swatch[aria-selected="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.ral-swatch span { position: absolute; left: 0; right: 0; bottom: 2px; font: 600 9.5px/1 var(--sans); text-align: center; color: var(--ink, #fff); mix-blend-mode: normal; }
.ral-empty { color: var(--faint); font-size: 14px; grid-column: 1 / -1; }
.ral-note { color: var(--faint); font-size: 13px; }

/* contact in plaats van formulier */
.contact-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 36px; display: flex; flex-direction: column; gap: 14px; align-self: start; }
.contact-card h3 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.1; }
.contact-intro { color: var(--muted); margin-bottom: 8px; }
.contact-option { display: flex; align-items: center; gap: 18px; min-height: 72px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); text-decoration: none; transition: border-color .2s, background .2s, transform .25s var(--ease); }
.contact-option:hover { border-color: var(--accent); background: #1E1915; color: var(--text); transform: translateY(-1px); }
.contact-icon { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.contact-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-label { font-weight: 600; }
.contact-value { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.contact-note { color: var(--faint); font-size: 14px; margin-top: 4px; }
@media (max-width: 820px) { .contact-card { padding: 24px; } }
