/* =========================================================
   DAWS — Acoustics & Auditoriums
   Tokens → base → components → sections
   Brand idea: "From fog to clarity". Fog-grey is the untreated
   room; brass is tuned sound. Everything moves from diffuse
   to precise.
   ========================================================= */

:root {
  /* Ink — the dark of a hall before the lights come up */
  --ink-950: #0B0C0E;
  --ink-900: #111317;
  --ink-850: #16191D;
  --ink-800: #1D2126;
  --ink-700: #2A2F36;

  /* Fog — untreated sound: muted, diffuse */
  --fog-500: #80868F;
  --fog-400: #9AA0A8;
  --fog-300: #B8BCC2;

  /* Bone — clarity: warm paper-white */
  --bone-50: #F6F3EE;
  --bone-100: #EDE8DF;
  --bone-200: #E2DBCE;

  /* Brass — the accent: stage light, tuned sound */
  --brass-300: #E3C898;
  --brass-400: #D6B57F;
  --brass-500: #C9A36A;
  --brass-700: #8A6934;

  /* Walnut — timber, the material of good rooms */
  --walnut-500: #7A5638;
  --walnut-700: #4E3726;
  --walnut-900: #241911;

  /* Roles */
  --bg: var(--ink-950);
  --surface: var(--ink-900);
  --line: rgba(237, 232, 223, 0.09);
  --line-strong: rgba(237, 232, 223, 0.2);
  --text: var(--bone-100);
  --text-muted: var(--fog-400);
  --accent: var(--brass-500);

  /* Type */
  --font-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1.06rem + 0.3vw, 1.3rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --text-2xl: clamp(2.5rem, 1.7rem + 3.4vw, 4.75rem);
  --text-3xl: clamp(3.4rem, 1.6rem + 7.6vw, 9.5rem);

  /* Layout & motion */
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1320px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
::selection { background: var(--brass-500); color: var(--ink-950); }

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 100;
  padding: .75rem 1.25rem; border-radius: 999px;
  background: var(--brass-500); color: var(--ink-950); font-weight: 500;
  transform: translateY(-200%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 2px solid var(--brass-300); outline-offset: 3px; }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-500);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}

.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.title em { color: var(--brass-400); }

/* ---------- Buttons ---------- */

.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: var(--h);
  padding: 0 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem; font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn--primary { background: var(--brass-500); color: var(--ink-950); }
.btn--primary:hover { background: var(--brass-300); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(11, 12, 14, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--brass-500); color: var(--brass-300); }
.btn--sm { --h: 42px; padding: 0 1.15rem; font-size: .875rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(11, 12, 14, .88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.is-open { background: var(--ink-950); }

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand__mark { width: 30px; height: 30px; color: var(--brass-500); }
.brand__word {
  font-weight: 600; font-size: 1rem; letter-spacing: .24em;
  margin-right: -.24em;
}

.nav__links {
  display: flex; gap: 2.25rem;
  list-style: none; margin: 0; padding: 0;
  font-size: .9rem; color: var(--fog-300);
}
.nav__links a { position: relative; padding-block: .4rem; transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brass-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav__toggle span:not(.sr-only) {
  width: 18px; height: 1.5px; background: var(--text);
  transition: transform .3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100svh - var(--header-h));
  padding: 2rem var(--gutter) 3rem;
  background: var(--ink-950);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  overflow-y: auto;
  animation: fade-in .35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.mobile-menu ul a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 9vw, 3rem);
  line-height: 1.2;
}
.mobile-menu ul a:hover { color: var(--brass-400); }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes defog {
  from { opacity: 0; filter: blur(22px); transform: translateY(.1em); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 9vh, 6.5rem));
  padding-bottom: clamp(220px, 32vh, 340px);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  border-radius: 50%;
}
/* the fog bank on the untreated side */
.hero::before {
  left: -20%; bottom: -15%; width: 80%; height: 85%;
  background: radial-gradient(closest-side, rgba(154, 160, 168, .16), transparent);
  filter: blur(30px);
}
/* stage light on the tuned side */
.hero::after {
  right: -15%; bottom: -10%; width: 55%; height: 70%;
  background: radial-gradient(closest-side, rgba(201, 163, 106, .12), transparent);
}

.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }

.hero__title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-3xl);
  line-height: .92;
  letter-spacing: -.03em;
}
.hero__line { display: block; }
.hero__line--fog { color: var(--fog-500); }
.hero__fogword {
  filter: blur(1.4px);
  text-shadow: 0 0 28px rgba(154, 160, 168, .55);
}
.hero__title em { color: var(--brass-400); }

.hero__lede {
  max-width: 36rem;
  margin: 2rem 0 0;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--fog-300);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.hero__legend {
  position: absolute; left: 0; right: 0; bottom: clamp(1rem, 3vh, 2rem);
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fog-500);
  pointer-events: none;
}
.hero__legend span { white-space: nowrap; }
.hero__legend span:last-child { color: var(--brass-400); }
@media (hover: none), (max-width: 640px) { .hero__hint { display: none; } }

.js .hero__line { animation: defog 2s var(--ease) both; }
.js .hero__line:nth-child(2) { animation-delay: .35s; }
.js .hero .eyebrow,
.js .hero__lede,
.js .hero__actions,
.js .hero__legend { animation: rise 1.2s var(--ease) both; }
.js .hero .eyebrow { animation-delay: .1s; }
.js .hero__lede { animation-delay: .9s; }
.js .hero__actions { animation-delay: 1.05s; }
.js .hero__legend { animation-delay: 1.8s; }

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-900);
  padding-block: 1.1rem;
}
.ticker__track {
  display: flex; width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker__track span {
  display: inline-flex; align-items: center;
  padding-right: 2.75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  color: var(--fog-300);
  white-space: nowrap;
}
.ticker__track span::after {
  content: ""; width: 6px; height: 6px; margin-left: 2.75rem;
  border-radius: 50%; background: var(--brass-500);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { position: relative; padding-block: clamp(4rem, 8vw, 7rem); }

.section-head {
  display: grid; gap: 1.25rem 4rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head .title { margin-top: 1.1rem; }
.section-head--split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; }
.section-head__text { margin: 0; max-width: 34rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .section-head--split { grid-template-columns: 1fr; }
}

.section--light {
  --line: rgba(11, 12, 14, .12);
  --line-strong: rgba(11, 12, 14, .24);
  --text: var(--ink-950);
  --text-muted: #4D5158;
  background: var(--bone-100);
  color: var(--ink-950);
}
.section--light .eyebrow,
.section--light .title em { color: var(--brass-700); }

/* ---------- Manifesto ---------- */

.manifesto__statement {
  max-width: 1120px;
  margin: 2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.2rem + 3.8vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.018em;
}
.manifesto__statement em { color: var(--brass-400); }
.manifesto .word { transition: opacity .6s var(--ease), filter .6s var(--ease); }
.js .manifesto .word { opacity: .16; filter: blur(6px); }
.js .manifesto .word.is-clear { opacity: 1; filter: none; }

.manifesto__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3.5rem;
  max-width: 58rem;
  margin: clamp(3rem, 6vw, 5rem) 0 0 auto;
}
.manifesto__cols p { margin: 0; color: var(--text-muted); }
.manifesto__cols p:first-child { color: var(--text); }

@media (max-width: 720px) {
  .manifesto__cols { grid-template-columns: 1fr; }
}

/* ---------- Challenges ---------- */

.challenge-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.challenge {
  display: flex; flex-direction: column; gap: .7rem;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  background: var(--bg);
}
.challenge__art {
  width: 100%; height: auto; aspect-ratio: 16 / 10;
  margin-bottom: .9rem;
  border-radius: 10px;
  background: var(--surface);
}
.challenge__num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--brass-500); }
.challenge h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -.01em; }
.challenge p { margin: 0; font-size: .95rem; color: var(--text-muted); }

.art-wall { fill: none; stroke: var(--fog-500); stroke-width: 1; opacity: .7; }
.art-echo {
  fill: none; stroke: var(--fog-400); stroke-width: 1;
  stroke-dasharray: 3 4;
  animation: march 1.6s linear infinite;
}
.art-direct { fill: none; stroke: var(--brass-500); stroke-width: 1.6; stroke-linecap: round; }
.art-src { fill: var(--brass-500); }
.art-ear { fill: none; stroke: var(--bone-100); stroke-width: 1.4; }
.art-bars { fill: none; stroke: var(--fog-400); stroke-width: 2.4; stroke-linecap: round; }
.art-ghost { fill: none; stroke: var(--fog-500); stroke-width: 1; stroke-dasharray: 2 3; }
.art-bad { fill: none; stroke: var(--fog-300); stroke-width: 1.4; stroke-linejoin: round; }
.art-smear { fill: rgba(154, 160, 168, .18); stroke: var(--fog-400); stroke-width: 1.2; }
.art-label { font-family: var(--font-mono); font-size: 7px; letter-spacing: .14em; fill: var(--fog-500); }

@keyframes march { to { stroke-dashoffset: -14; } }

@media (max-width: 1100px) {
  .challenge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .challenge-grid { grid-template-columns: 1fr; }
}

/* ---------- Sound lab ---------- */

.lab {
  --stat-color: var(--fog-300);
  --trace: var(--fog-400);
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.lab[data-room="treated"] { --stat-color: var(--brass-400); --trace: var(--brass-400); }

.lab__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem 2rem;
}

.segmented {
  display: inline-flex;
  margin: 0; padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block;
  padding: .65rem 1.15rem;
  border-radius: 999px;
  font-size: .9rem;
  color: var(--fog-300);
  transition: background-color .3s, color .3s;
}
.segmented label:hover span { color: var(--text); }
.segmented input:checked + span { background: var(--bone-100); color: var(--ink-950); }
.lab[data-room="treated"] .segmented input:checked + span { background: var(--brass-500); }
.segmented input:focus-visible + span { outline: 2px solid var(--brass-300); outline-offset: 2px; }

.lab__stats { display: flex; flex-wrap: wrap; gap: 1rem clamp(1.25rem, 3vw, 2.75rem); margin: 0; }
.lab__stats div { display: grid; gap: .2rem; }
.lab__stats dt {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fog-500);
}
.lab__stats dd {
  margin: 0;
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  line-height: 1;
  color: var(--stat-color);
  transition: color .4s;
}
.lab__stats small {
  padding: .2rem .55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
}

.lab__scope {
  position: relative;
  height: clamp(180px, 24vw, 280px);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(237, 232, 223, .035) 0 1px, transparent 1px 10%),
    var(--ink-950);
}
.lab__scope canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab__idle {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  margin: 0; padding: 1rem; text-align: center;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fog-500);
  transition: opacity .4s;
}
.lab.has-played .lab__idle { opacity: 0; }

.lab__sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.source {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, background-color .25s;
}
.source:hover { border-color: var(--brass-500); background: rgba(201, 163, 106, .06); }
.source strong { display: block; font-weight: 500; }
.source small { display: block; font-size: .82rem; color: var(--fog-500); }
.source__icon {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bone-100); color: var(--ink-950);
  transition: background-color .25s;
}
.source__icon svg { width: 16px; height: 16px; margin-left: 2px; }
.source .eq { display: none; }
.source.is-playing .source__icon { background: var(--brass-500); }
.source.is-playing .source__icon svg { display: none; }
.source.is-playing .eq { display: flex; }

.eq { align-items: flex-end; gap: 3px; height: 16px; }
.eq i { width: 3px; height: 100%; background: currentColor; border-radius: 2px; animation: eq .8s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.25s; }
.eq i:nth-child(3) { animation-delay: -.5s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.eq i { transform-origin: bottom; }

.lab__note { margin: 0; font-size: .8rem; color: var(--fog-500); }
.lab.is-unsupported .lab__sources { display: none; }

@media (max-width: 760px) {
  .lab__sources { grid-template-columns: 1fr; }
  .segmented { width: 100%; }
  .segmented label { flex: 1; text-align: center; }
}

/* ---------- Anatomy ---------- */

.anatomy__grid {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.anatomy__figure {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  margin: 0;
  padding: clamp(.5rem, 1.5vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 25% 75%, rgba(201, 163, 106, .07), transparent 60%),
    var(--surface);
}
.anatomy__figure figcaption {
  padding: .25rem .5rem .5rem;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fog-500);
}
.anatomy__svg { width: 100%; height: auto; overflow: visible; }

.anat-structure { color: var(--fog-500); }
.anat-performer { fill: none; stroke: var(--bone-100); stroke-width: 2; stroke-linecap: round; }
.anat-rays path {
  fill: none; stroke: var(--brass-500); stroke-width: 1.2;
  stroke-dasharray: 5 9;
  opacity: .75;
  animation: rays 1.6s linear infinite;
}
@keyframes rays { to { stroke-dashoffset: -28; } }

[data-part] { color: var(--fog-400); transition: color .35s, opacity .35s; }
[data-part].is-active { color: var(--brass-400); }
.anatomy.has-active [data-part]:not(.is-active) { opacity: .45; }

.spot { cursor: pointer; outline: none; }
.spot circle { fill: var(--ink-950); stroke: var(--brass-500); stroke-width: 1.5; transition: fill .25s; }
.spot text {
  fill: var(--brass-300);
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  text-anchor: middle;
  pointer-events: none;
}
.spot .ring { fill: none; opacity: 0; transform-box: fill-box; transform-origin: center; }
.spot:hover circle:not(.ring) { fill: var(--ink-800); }
.spot.is-active circle:not(.ring) { fill: var(--brass-500); }
.spot.is-active text { fill: var(--ink-950); }
.spot.is-active .ring { animation: ping 2s var(--ease) infinite; }
.spot:focus-visible circle:not(.ring) { stroke: var(--bone-100); stroke-width: 3; }
@keyframes ping { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }

.anatomy__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.anatomy__item { border-bottom: 1px solid var(--line); }
.anatomy__item button {
  display: flex; align-items: center; gap: 1rem;
  width: 100%;
  padding: 1.05rem 0;
  border: 0; background: none;
  font-size: 1.1rem; text-align: left;
  color: var(--fog-300);
  cursor: pointer;
  transition: color .25s;
}
.anatomy__item button:hover,
.anatomy__item.is-active button { color: var(--text); }
.anatomy__n {
  flex: none;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono); font-size: .75rem;
  color: var(--brass-400);
  transition: background-color .25s, color .25s, border-color .25s;
}
.anatomy__item.is-active .anatomy__n { background: var(--brass-500); border-color: var(--brass-500); color: var(--ink-950); }
.anatomy__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease); }
.js .anatomy__body { grid-template-rows: 0fr; }
.js .anatomy__item.is-active .anatomy__body { grid-template-rows: 1fr; }
.anatomy__body > div { overflow: hidden; }
.anatomy__body p { margin: 0 0 1.25rem 2.875rem; color: var(--text-muted); font-size: .97rem; }

@media (max-width: 960px) {
  .anatomy__grid { grid-template-columns: 1fr; }
  .anatomy__figure { position: relative; top: 0; }
}

/* ---------- Services ---------- */

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.1fr) minmax(0, 1fr);
  gap: .5rem 2rem;
  align-items: baseline;
  padding: clamp(1.4rem, 2.5vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
}
.service__num { font-family: var(--font-mono); font-size: .8rem; color: var(--brass-700); }
.service__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.service__text { margin: 0; color: var(--text-muted); }

@media (max-width: 760px) {
  .service { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .service__text { grid-column: 2; }
}

/* ---------- Materials ---------- */

.material-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.material h3 { margin-top: .3rem; font-size: 1.1rem; font-weight: 500; }
.material p:last-child { margin: .35rem 0 0; font-size: .9rem; color: var(--text-muted); }
.material__role {
  margin: 0;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-500);
}
.material__swatch {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
/* soft light raking across each sample */
.material__swatch::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, .14), transparent 38%, rgba(0, 0, 0, .38));
}

.tex-slats {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .1) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, var(--walnut-500) 0 13px, #6A4A30 13px 15px, #120D09 15px 21px);
}
.tex-fabric {
  background-color: #3A3F46;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #4B5059, #2B2F35);
}
.tex-perforated {
  background:
    radial-gradient(circle, #120D09 0 2.1px, transparent 2.6px) 0 0 / 13px 13px,
    linear-gradient(160deg, #94704A, #5D4029);
}
.tex-qrd {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .55) 0 2px, transparent 2px 12.5%),
    linear-gradient(90deg,
      #2A1D14 0 12.5%, #7A5638 12.5% 25%, #3E2B1E 25% 37.5%, #8C6644 37.5% 50%,
      #4F3726 50% 62.5%, #33241A 62.5% 75%, #6E4D33 75% 87.5%, #45301F 87.5% 100%);
}
.tex-bass {
  background:
    linear-gradient(135deg, #0F1114 0 46%, rgba(0, 0, 0, .5) 46% 47%, transparent 47%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #3F444C, #23262B);
}
.tex-plaster {
  background:
    radial-gradient(ellipse at 25% 15%, rgba(255, 255, 255, .5), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, .08), transparent 40%),
    linear-gradient(170deg, #E9E3D7, #C9C0AF);
}

/* ---------- Process ---------- */

.process-steps {
  position: relative;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.5rem;
}
.process-steps::before,
.process-steps::after {
  content: ""; position: absolute; top: 22px; left: 22px; right: 0; height: 1px;
  background: var(--line-strong);
}
.process-steps::after {
  background: linear-gradient(90deg, var(--brass-700), var(--brass-400));
  transform: scaleX(0); transform-origin: left;
  transition: transform 2.2s var(--ease) .3s;
}
.process-steps.is-in::after { transform: scaleX(1); }
.step__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--font-mono); font-size: .78rem;
  color: var(--brass-400);
}
.process-steps h3 {
  margin-bottom: .5rem;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.2rem);
  line-height: 1;
}
.process-steps p { margin: 0; font-size: .95rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr; gap: 2.25rem; }
  .process-steps::before,
  .process-steps::after { top: 0; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; }
  .process-steps::after { transform: scaleY(0); transform-origin: top; }
  .process-steps.is-in::after { transform: scaleY(1); }
  .process-steps li { position: relative; padding-left: 4.5rem; }
  .step__num { position: absolute; left: 0; top: -.4rem; margin: 0; }
}

/* ---------- Spaces / RT table ---------- */

.rt-table { border-top: 1px solid var(--line); }
.rt-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) minmax(0, 2fr) 6.5rem;
  gap: .5rem 1.75rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.rt-row--head {
  padding-block: .85rem;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fog-500);
}
.rt-scale { display: flex; justify-content: space-between; }
.rt-scale span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.rt-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + .9vw, 1.95rem);
  line-height: 1.1;
}
.rt-use { font-size: .92rem; color: var(--text-muted); }
.rt-bar {
  position: relative; height: 8px;
  border-radius: 99px;
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 20%),
    rgba(237, 232, 223, .04);
}
.rt-bar i {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--min) / 2.5 * 100%);
  width: calc((var(--max) - var(--min)) / 2.5 * 100%);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brass-700), var(--brass-400));
  box-shadow: 0 0 18px rgba(201, 163, 106, .35);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.3s var(--ease) .25s;
}
.rt-row.is-in .rt-bar i,
html:not(.js) .rt-bar i { transform: scaleX(1); }
.rt-val { font-family: var(--font-mono); font-size: .88rem; text-align: right; white-space: nowrap; }
.rt-foot { margin: 1.25rem 0 0; font-size: .82rem; color: var(--fog-500); }

@media (max-width: 760px) {
  .rt-row--head { display: none; }
  .rt-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name val" "use use" "bar bar";
  }
  .rt-name { grid-area: name; }
  .rt-use { grid-area: use; }
  .rt-bar { grid-area: bar; margin-top: .5rem; }
  .rt-val { grid-area: val; }
}

/* ---------- Closing ---------- */

.closing {
  padding-block: clamp(4.5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(201, 163, 106, .14), transparent);
  text-align: center;
}
.closing__line {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.closing__line span { display: block; }
.closing__line em { color: var(--brass-400); }

/* ---------- Contact ---------- */

.contact__grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__intro .title { margin: 1.1rem 0 1.5rem; }
.contact__intro > p { margin: 0; color: var(--text-muted); max-width: 30rem; }
.contact__helps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.contact__helps li { display: flex; gap: .75rem; align-items: baseline; color: var(--fog-300); font-size: .95rem; }
.contact__helps li::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass-500); transform: translateY(-2px);
}
.contact__direct { display: grid; gap: .35rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.contact__direct a {
  font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2;
  transition: color .2s;
}
.contact__direct a:hover { color: var(--brass-400); }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.field { display: grid; gap: .5rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fog-400);
}
.field label span { color: var(--brass-500); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: .8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--ink-950);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0A8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fog-500); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass-500);
  box-shadow: 0 0 0 3px rgba(201, 163, 106, .18);
}
.form__foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: .5rem;
}
.form__status { margin: 0; font-size: .9rem; color: var(--brass-300); }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
}

/* ---------- Footer ---------- */

.site-footer { padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer__brand p { max-width: 22rem; margin: 1.25rem 0 0; color: var(--text-muted); font-size: .95rem; }
.footer__col h2 {
  margin-bottom: 1rem;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fog-500);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__col a { color: var(--fog-300); transition: color .2s; }
.footer__col a:hover { color: var(--brass-400); }
.footer__word {
  margin-top: clamp(3rem, 6vw, 5rem);
  font-family: var(--font-display);
  font-size: clamp(7rem, 31vw, 30rem);
  line-height: .78;
  letter-spacing: -.035em;
  text-align: center;
  background: linear-gradient(180deg, rgba(201, 163, 106, .42), rgba(201, 163, 106, 0) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--fog-500);
}
.footer__bottom a:hover { color: var(--text); }

@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .ticker__track { animation: none; }
}
