@font-face { font-family: "Besley"; src: url("fonts/Besley.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Sometype Mono"; src: url("fonts/SometypeMono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ox: #4b1716;
  --ox-deep: #2c0b0f;
  --ox-lift: #6a1f25;
  --birch: #e6d0ab;
  --birch-2: #d8bd92;
  --birch-3: #c3a273;
  --pencil: #2e2826;
  --pencil-2: #57493f;
  --on-ox: #f4e7d3;
  --on-ox-2: #dcc5ad;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ox); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--birch-3) var(--ox-deep); }
body { margin: 0; color: var(--on-ox); background: var(--ox); font: 400 1.0625rem/1.55 "Hanken Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--birch); color: var(--ox-deep); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
img, canvas, svg { display: block; max-width: 100%; }
h1, h2, p, dl, dd, ul, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-underline-offset: .2em; }
ul { list-style: none; }
h1, h2 { font: 600 clamp(2.4rem, 4.9vw, 4.5rem)/1.03 "Besley", Georgia, serif; letter-spacing: -.02em; text-wrap: balance; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 60; padding: .5rem .9rem; background: var(--birch); color: var(--ox-deep); transform: translateY(-200%); }
.skip:focus { transform: none; }

.nav { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: .9rem var(--gutter); pointer-events: none; color: var(--on-ox); }
.nav > * { pointer-events: auto; }
.nav { transition: color 200ms, background-color 200ms; }
.nav.is-solid { background: var(--ox-deep); padding-block: .55rem; }
.nav.is-solid.is-light { background: var(--birch); }
.nav.is-light { color: var(--pencil); }
.nav.is-light nav .nav__cta { background: var(--ox); color: var(--on-ox); }
.nav__mark { font: 700 1.5rem/1 "Besley", serif; letter-spacing: -.02em; text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 1.5rem; font-weight: 500; font-size: .9375rem; }
.nav nav a { text-decoration: none; }
.nav nav a:hover { text-decoration: underline; }
.nav nav .nav__cta { padding: .4rem .85rem; background: var(--birch); color: var(--ox-deep); }
.nav nav .nav__cta:hover { background: #f4e2c4; text-decoration: none; }

.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .72rem 1.15rem; border: 0; border-radius: 2px; background: var(--birch); color: var(--ox-deep); font: 600 1rem/1.2 "Hanken Grotesk", sans-serif; text-decoration: none; cursor: pointer; transition: background-color 160ms; }
.btn:hover { background: #f4e2c4; }
.btn svg { width: 1rem; height: 1rem; fill: currentColor; }

/* ── hero: the film runs on a canvas, parts are named over its last frame ── */
.hero { position: relative; height: 780vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--ox); }
.hero__poster, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__canvas { opacity: 0; transition: opacity 500ms; }
.hero__canvas.is-on { opacity: 1; }
.hero__copy { position: absolute; left: 66%; right: var(--gutter); top: 50%; transform: translateY(calc(-50% + var(--cy, 0px))); opacity: var(--ca, 1); will-change: transform, opacity; }
.hero__copy h1 { font-size: clamp(2.1rem, 3.7vw, 3.6rem); }
.hero__copy p { margin-top: 1rem; max-width: 34ch; color: var(--on-ox); }
.hero__buy { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.1rem; margin-top: 1.4rem; font-family: "Sometype Mono", monospace; font-size: .9375rem; }
.beat { position: absolute; left: var(--gutter); bottom: 12vh; font: 600 clamp(1.6rem, 2.8vw, 2.5rem)/1.12 "Besley", serif; opacity: 0; will-change: opacity; }

.parts { position: absolute; left: var(--gutter); bottom: clamp(1.25rem, 5vh, 3rem); width: min(39vw, 34rem); opacity: var(--pa, 0); visibility: var(--pv, hidden); }
.parts h2 { font-size: clamp(1.5rem, 2.3vw, 2.15rem); margin-bottom: .8rem; }
.parts ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 1.25rem; }
.parts button { width: 100%; padding: .28rem 0; border: 0; border-bottom: 1px solid rgb(230 208 171 / .28); background: none; color: var(--on-ox-2); font: 500 1rem/1.4 "Hanken Grotesk", sans-serif; text-align: left; cursor: pointer; transition: color 140ms, border-color 140ms; }
.parts button:hover, .parts button[aria-pressed="true"] { color: #fff; border-color: var(--birch); }
.parts__text { min-height: 4.7em; margin-top: .7rem; max-width: 48ch; color: var(--on-ox); font-size: 1rem; }
.lead { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; opacity: var(--pa, 0); overflow: visible; }
.lead path, .lead circle { fill: none; stroke: var(--birch); stroke-width: 1.4; stroke-linecap: round; }

/* ── the book: birch ply ground ── */
.book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(4rem, 9vw, 8rem) var(--gutter); background: var(--birch); color: var(--pencil); }
.book__copy > p:first-of-type { margin-top: 1.1rem; max-width: 56ch; }
.leaf { display: block; margin-top: 2rem; font-weight: 600; }
.leaf input { display: block; width: 100%; height: 2rem; margin: .1rem 0 0; background: none; appearance: none; -webkit-appearance: none; cursor: ew-resize; }
.leaf input::-webkit-slider-runnable-track { height: 14px; background: repeating-linear-gradient(90deg, var(--pencil) 0 1px, transparent 1px 6px); }
.leaf input::-moz-range-track { height: 14px; background: repeating-linear-gradient(90deg, var(--pencil) 0 1px, transparent 1px 6px); }
.leaf input::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 30px; margin-top: -8px; background: var(--ox); border: 0; border-radius: 1px; }
.leaf input::-moz-range-thumb { width: 9px; height: 30px; background: var(--ox); border: 0; border-radius: 1px; }
.leaf__read { margin-top: .35rem; font: 500 .9375rem/1.4 "Sometype Mono", monospace; }
.stains { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.stains legend { margin-bottom: .4rem; font-weight: 600; }
.stains label, .solo label { position: relative; }
.stains input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stains span { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem .35rem .45rem; border: 1.5px solid transparent; border-radius: 2px; font-weight: 500; cursor: pointer; }
.stains span::before { content: ""; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(46 40 38 / .35); }
.stains input:checked + span { border-color: var(--pencil); }
.stains input:focus-visible + span { outline: 2px solid var(--pencil); outline-offset: 2px; }

.pair { display: flex; justify-content: center; gap: clamp(.4rem, 1.2vw, 1rem); }
.baffle { position: relative; flex: 0 1 19rem; aspect-ratio: 210 / 360; overflow: hidden; border-radius: 4px; background: #d9b98c; box-shadow: 0 22px 40px rgb(60 36 12 / .32), 0 3px 7px rgb(60 36 12 / .3); }
.baffle__wood { position: absolute; left: 50%; top: 50%; width: 190%; height: 62%; transform: translate(-50%, -50%) rotate(90deg); background: url("img/veneer.avif") var(--leaf, 40%) 50% / 130% auto; }
.baffle--r .baffle__wood { transform: translate(-50%, -50%) rotate(90deg) scaleY(-1); }
.baffle__stain { position: absolute; inset: 0; background: var(--stain, #7f2530); mix-blend-mode: multiply; transition: background-color 360ms; }
.drv { position: absolute; left: 50%; border-radius: 50%; transform: translateX(-50%); background: #190b09; box-shadow: inset 0 5px 12px #000, inset 0 0 0 2px rgb(255 255 255 / .07), 0 1px 0 rgb(255 255 255 / .14); }
.drv--t { top: 15%; width: 26%; aspect-ratio: 1; }
.drv--w { top: 41%; width: 72%; aspect-ratio: 1; }

/* ── listen ── */
.listen { position: relative; display: flex; justify-content: flex-end; min-height: 100vh; padding: clamp(2rem, 6vw, 5rem) var(--gutter); background: var(--ox-deep); }
.listen__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.listen__card { position: relative; align-self: center; width: min(100%, 31rem); padding: 1.6rem; background: var(--birch); color: var(--pencil); box-shadow: 0 22px 44px rgb(0 0 0 / .42), 0 3px 8px rgb(0 0 0 / .32); }
.listen__card h2 { font-size: clamp(2rem, 3.3vw, 3rem); }
.listen__card > p { margin-top: .75rem; }
.scope { width: 100%; height: 7.5rem; margin-top: 1rem; border-top: 1px solid var(--pencil-2); border-bottom: 1px solid var(--pencil-2); }
.listen__ctl { display: grid; gap: .8rem; margin-top: 1rem; }
.listen__ctl .btn { justify-content: center; background: var(--ox); color: var(--on-ox); }
.listen__ctl .btn:hover { background: var(--ox-lift); }
.solo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.solo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.solo span { display: block; padding: .42rem .2rem; text-align: center; border: 1.5px solid var(--pencil); font-size: .9375rem; font-weight: 600; cursor: pointer; }
.solo input:checked + span { background: var(--pencil); color: var(--birch); }
.solo input:focus-visible + span { outline: 2px solid var(--pencil); outline-offset: 2px; }
.listen .listen__note { margin-top: .8rem; font-size: .875rem; color: var(--pencil-2); }

/* ── measured ── */
.measured { padding: clamp(4rem, 9vw, 8rem) var(--gutter); background: var(--birch-2); color: var(--pencil); }
.measured > * { max-width: 72rem; margin-inline: auto; }
.measured__lead { margin-top: 1rem; max-width: 72rem; }
.measured__lead { padding-right: min(40vw, 24rem); }
.plot { margin-top: 2.25rem; }
.plot svg { width: 100%; height: auto; overflow: visible; }
.plot__grid line { stroke: var(--pencil); stroke-opacity: .2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot__grid text { fill: var(--pencil-2); font: 400 14px "Sometype Mono", monospace; }
.plot__l, .plot__r { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); }
.plot__l { stroke: var(--pencil); }
.plot__r { stroke: #8a1f28; }
.plot figcaption { margin-top: .6rem; font-size: .875rem; color: var(--pencil-2); }
.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; margin-top: 2rem; }
.spec div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid rgb(46 40 38 / .4); }
.spec dt { font-weight: 600; }
.spec dd { font: 400 .9375rem/1.5 "Sometype Mono", monospace; text-align: right; }

/* ── bench ── */
.bench { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); background: var(--ox-deep); }
.bench img { width: 100%; height: 100%; min-height: 26rem; object-fit: cover; }
.bench__copy { align-self: center; padding: clamp(2rem, 6vw, 5rem) var(--gutter); }
.bench__copy h2 { font-size: clamp(2.1rem, 3.4vw, 3.2rem); }
.bench__copy p { margin-top: 1rem; max-width: 40ch; }

/* ── reserve: a birch job tag ── */
.reserve { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(4rem, 9vw, 7rem) var(--gutter); background: var(--ox); }
.tag { display: grid; gap: .85rem; padding: 1.5rem; background: var(--birch); color: var(--pencil); box-shadow: 0 18px 36px rgb(0 0 0 / .32), 0 2px 5px rgb(0 0 0 / .3); }
.tag__pick span { display: block; font-size: .875rem; font-weight: 600; }
.tag__pick b { font: 600 1.4rem/1.2 "Besley", serif; }
.tag label { display: grid; gap: .2rem; font-size: .875rem; font-weight: 600; }
.tag input { padding: .55rem .6rem; border: 1.5px solid var(--pencil); border-radius: 2px; background: #f6ead4; color: var(--pencil); font: 400 1rem/1.3 "Hanken Grotesk", sans-serif; }
.tag input[aria-invalid="true"] { border-color: #a01824; }
.tag .btn { justify-content: center; background: var(--ox); color: var(--on-ox); }
.tag .btn:hover { background: var(--ox-lift); }
.tag__note { font-size: .875rem; color: var(--pencil-2); }

.foot { padding: 2rem var(--gutter) 5rem; background: var(--ox-deep); }
.foot__credit { max-width: 62ch; font-size: .875rem; color: var(--on-ox-2); }

.credit { position: fixed; right: 1rem; bottom: 1rem; z-index: 45; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border-radius: 2px; background: var(--ox-deep); color: var(--on-ox); font-size: .8125rem; text-decoration: none; box-shadow: 0 0 0 1px rgb(230 208 171 / .25); transition: background-color 160ms; }
.credit svg { width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.credit:hover { background: var(--ox-lift); }

@media (max-width: 1100px) and (min-width: 761px) {
  .hero__copy { left: 62%; }
  .parts { width: 46vw; }
}
@media (max-width: 760px) {
  .nav nav a:not(.nav__cta) { display: none; }
  .hero { height: 680vh; }
  .hero__poster { height: 62%; }
  .hero__copy { left: var(--gutter); top: auto; bottom: calc(1rem + 3.1rem); transform: translateY(var(--cy, 0px)); padding: 0; }
  .hero__copy h1 { font-size: clamp(2rem, 9.4vw, 2.6rem); }
  .hero__copy p { margin-top: .6rem; }
  .beat { bottom: calc(1rem + 3.4rem); }
  .parts { left: var(--gutter); right: var(--gutter); width: auto; bottom: calc(.75rem + 2.9rem); }
  .parts h2 { font-size: 1.45rem; margin-bottom: .5rem; }
  .parts button { font-size: .9375rem; padding: .22rem 0; }
  .parts__text { min-height: 6.2em; font-size: .9375rem; }
  .book, .bench, .reserve { grid-template-columns: minmax(0, 1fr); }
  .pair { order: -1; }
  .baffle { flex-basis: 44vw; }
  .listen { align-items: flex-end; min-height: auto; padding-top: 52vw; }
  .listen__bg { height: 62vw; object-position: 30% 50%; }
  .measured__lead { padding-right: 0; }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .credit { left: 1rem; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero__stage { position: relative; height: auto; min-height: 100vh; }
  .hero__canvas, .beat, .hero__copy, .lead { display: none; }
  .hero__poster { position: relative; height: auto; }
  .parts { position: static; width: auto; padding: 1.5rem var(--gutter); opacity: 1; visibility: visible; }
}
