/* ============================================================
   NOUVEAU/ design system — gaslight to neon.
   Law of the build: dimensionality signals function. Flat
   elsewhere. The whiplash S-curve governs every gesture.
   Spacing under the ornament is 4/8px, always.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-display.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-display-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ground */
  --ground: #101410;
  --ground-raised: #161c17;
  --ground-deep: #0b0e0b;
  --ivory: #f5efe4;
  --ivory-dim: #e9e1d2;
  /* materials */
  --enamel: #1f4a38;
  --copper: #4e7a6a;
  --copper-text: #74a290; /* copper lifted to AA on dark ground for small text */
  --brass: #b08d3e;
  --brass-bright: #d4af5e;
  --brass-dim: #7a6230;
  --amber: #d9942f;
  --opal: #e8e0f0;
  /* ink */
  --ink-on-dark: #ece7da;
  --ink-secondary: #a8a291;
  --ink-faint: #96907e;
  --ink-on-light: #23201a;
  --ink-light-secondary: #5f594b;
  /* hairlines */
  --hairline-dark: rgba(176, 141, 62, 0.22);
  --hairline-light: rgba(35, 32, 26, 0.18);
  /* spectral — living canvases & focus ONLY */
  --spectral-a: #1fae9b;
  --spectral-b: #7b5cd6;
  --spectral-c: #d9942f;
  /* rhythm */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --s9: 96px; --s10: 128px;
  --shell: 1200px;
  /* the whiplash gesture */
  --whip: cubic-bezier(0.68, -0.4, 0.32, 1.25);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  /* type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-on-dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--s6); }
@media (max-width: 720px) { .shell { padding: 0 var(--s5); } }

/* ---------- display type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 560;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.gold-foil {
  background: linear-gradient(168deg,
    #e8c877 0%, #b08d3e 28%, #f2dfa0 47%,
    #a07c33 66%, #e8c877 84%, #8f7028 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gold-foil-note { color: var(--ink-faint); } /* honest labeling lives in colophon */

h1.display { font-size: clamp(44px, 7.2vw, 96px); margin: 0 0 var(--s5); }
h2.display { font-size: clamp(30px, 4.4vw, 56px); margin: 0 0 var(--s4); }
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 40, "SOFT" 60;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
  color: var(--ink-secondary);
  max-width: 34em;
  margin: 0 0 var(--s6);
}
.prose { max-width: 36em; }
.prose p { margin: 0 0 var(--s5); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- chrome ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-dark);
}
.site-head .shell {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: var(--s4); padding-bottom: var(--s4);
}
.wordmark {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-weight: 620;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark .slash { color: var(--brass); font-weight: 400; padding-left: 1px; }
.site-nav { display: flex; gap: var(--s5); }
.site-nav a {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-secondary);
  position: relative;
  padding-bottom: 3px;
  transition: color 160ms var(--ease-out);
}
.site-nav a::after { /* whiplash underline: asymmetric S, drawn on hover */
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 3' preserveAspectRatio='none'%3E%3Cpath d='M0 2 C8 2 12 0.4 22 1.5 S38 2.6 44 0.8' fill='none' stroke='%23b08d3e' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
  transition: right 240ms var(--whip);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink-on-dark); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }

.site-foot {
  margin-top: var(--s10);
  border-top: 1px solid var(--hairline-dark);
  padding: var(--s7) 0 var(--s8);
  color: var(--ink-faint);
  font-size: 13px;
}
.site-foot .shell { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); justify-content: space-between; }
.site-foot a { color: var(--ink-secondary); text-decoration: none; }
.site-foot a:hover { color: var(--brass-bright); }

/* ---------- whiplash & came dividers ---------- */
.whiplash-div { display: block; width: 100%; height: clamp(48px, 8vw, 110px); color: var(--brass); opacity: 0.75; }
.came-div {
  display: block; width: 100%;
  height: clamp(64px, 9vw, 130px);
}
.came-div .lead-line { stroke: var(--brass-dim); stroke-width: 2.5; fill: none; }
.came-div .pane { stroke: rgba(11, 14, 11, 0.55); stroke-width: 1; transition: fill 400ms var(--ease-out); }
.came-div:hover .pane--l1 { fill: #2a5c47; }
.came-div:hover .pane--l2 { fill: #6d5824; }
.came-div:hover .pane--l3 { fill: #4e3d63; }
.came-div:hover .pane--l4 { fill: #27505e; }

/* ---------- ivory seam (archive label ground) ---------- */
.ivory {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(217, 148, 47, 0.06), transparent 60%),
    var(--ivory);
  color: var(--ink-on-light);
  padding: var(--s9) 0;
}
.ivory .lede { color: var(--ink-light-secondary); }

/* ---------- museum label cards ---------- */
.label-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s4); }
.label-card {
  background: var(--ivory);
  color: var(--ink-on-light);
  border: 1px solid var(--hairline-light);
  border-top: 3px solid var(--brass);
  padding: var(--s5);
  text-decoration: none;
  display: flex; flex-direction: column; gap: var(--s2);
  transition: transform 200ms var(--whip), border-color 160ms var(--ease-out);
}
.label-card:hover { transform: translateY(-3px); border-top-color: var(--amber); }
.label-card .lc-no { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-light-secondary); }
.label-card h3 { font-family: var(--serif); font-variation-settings: "opsz" 60, "SOFT" 50; font-weight: 580; font-size: 21px; margin: 0; line-height: 1.15; }
.label-card .lc-meta { font-size: 13px; color: var(--ink-light-secondary); }
.label-card .lc-meta .num { color: var(--ink-on-light); }

/* dark-ground vitrine row variant */
.vitrine-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--s5); align-items: baseline;
  padding: var(--s4) var(--s2);
  border-bottom: 1px solid var(--hairline-dark);
  text-decoration: none;
  transition: background 160ms var(--ease-out), padding-left 220ms var(--whip);
}
.vitrine-row:hover { background: var(--ground-raised); padding-left: var(--s4); }
.vitrine-row .vr-no { font-family: var(--serif); font-size: 20px; color: var(--brass); }
.vitrine-row h3 { font-family: var(--serif); font-weight: 540; font-size: clamp(19px, 2vw, 24px); margin: 0; line-height: 1.15; }
.vitrine-row .vr-meta { font-size: 13px; color: var(--ink-secondary); white-space: nowrap; }
@media (max-width: 720px) {
  .vitrine-row { grid-template-columns: 48px 1fr; }
  .vitrine-row .vr-meta { grid-column: 2; white-space: normal; }
}

/* ---------- metadata table ---------- */
.meta-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.meta-table caption {
  text-align: left; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); padding-bottom: var(--s3);
}
.meta-table th, .meta-table td {
  text-align: left; vertical-align: top;
  border-top: 1px solid var(--hairline-dark);
  padding: var(--s3) var(--s3) var(--s3) 0;
}
.meta-table th {
  font-weight: 500; color: var(--ink-faint);
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px;
  width: 9.5em;
}
.meta-table td:first-of-type { min-width: 12em; }

/* ---------- enamel button ---------- */
.enamel-btn {
  display: inline-block;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #f3ecd9;
  background:
    radial-gradient(140% 120% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(180deg, #2a6650 0%, #1f4a38 52%, #16382b 100%);
  border: 1px solid #0e2a20;
  border-radius: 3px;
  padding: 14px 26px 13px;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -6px 12px rgba(6, 18, 14, 0.55),
    0 1px 0 rgba(0, 0, 0, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
  transition: transform 90ms var(--ease-out), box-shadow 90ms var(--ease-out), filter 160ms var(--ease-out);
}
.enamel-btn:hover { filter: brightness(1.09); }
.enamel-btn:focus-visible {
  outline: 2px solid transparent;
  box-shadow:
    0 0 0 2px var(--ground),
    0 0 0 4px var(--spectral-a),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -6px 12px rgba(6, 18, 14, 0.55);
}
.enamel-btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 4px 10px rgba(6, 18, 14, 0.6),
    0 0 0 rgba(0, 0, 0, 0.4);
}
.enamel-btn--ghost {
  background: transparent;
  border-color: var(--brass-dim);
  color: var(--brass-bright);
  box-shadow: none;
}
.enamel-btn--ghost:active { transform: translateY(1px); }

/* ---------- brass controls ---------- */
.brass-rail {
  background: linear-gradient(180deg, #1a211b, #12171200 140%);
  border: 1px solid var(--hairline-dark);
  border-radius: 6px;
  padding: var(--s5);
  display: flex; flex-direction: column; gap: var(--s5);
}
.brass-control { display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s4); align-items: center; }
.brass-control label {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-secondary);
}
.brass-control output {
  font-variant-numeric: tabular-nums;
  font-size: 13px; color: var(--brass-bright);
  min-width: 3.5em; text-align: right;
}
/* machined slider track: inset groove */
input[type="range"].brass-slider {
  grid-column: 1 / -1;
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 26px; margin: 0;
  background: transparent;
  cursor: ew-resize;
}
input[type="range"].brass-slider::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.25)),
    repeating-linear-gradient(90deg, #0d110d 0 2px, #151a15 2px 4px);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.85),
    inset 0 -1px 0 rgba(176, 141, 62, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.6);
}
input[type="range"].brass-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; margin-top: -7px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #f0d78c 0%, #c39a48 38%, #8a6c2c 72%, #5e491d 100%);
  border: 1px solid #3d2f12;
  box-shadow:
    inset 0 -2px 3px rgba(0, 0, 0, 0.5),
    inset 0 2px 2px rgba(255, 245, 210, 0.55),
    0 2px 5px rgba(0, 0, 0, 0.6);
  transition: transform 120ms var(--whip);
}
input[type="range"].brass-slider::-moz-range-track {
  height: 6px; border-radius: 3px;
  background: #0d110d;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.85);
}
input[type="range"].brass-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f0d78c 0%, #c39a48 38%, #8a6c2c 72%, #5e491d 100%);
  border: 1px solid #3d2f12;
}
input[type="range"].brass-slider:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"].brass-slider:focus-visible {
  outline: 2px solid transparent;
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--spectral-b);
}
input[type="range"].brass-slider:active::-webkit-slider-thumb {
  transform: scale(0.94);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px rgba(255, 245, 210, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.5);
}

/* brass switch: real travel */
.brass-switch {
  position: relative; display: inline-block;
  width: 52px; height: 26px;
}
.brass-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.brass-switch .track {
  position: absolute; inset: 0;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,.3)),
    #10150f;
  border: 1px solid rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9), inset 0 -1px 0 rgba(176,141,62,.2);
  transition: background 180ms var(--ease-out);
}
.brass-switch .knob {
  position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f0d78c 0%, #c39a48 40%, #8a6c2c 74%, #5e491d 100%);
  border: 1px solid #3d2f12;
  box-shadow:
    inset 0 -2px 3px rgba(0, 0, 0, 0.5),
    inset 0 2px 2px rgba(255, 245, 210, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.6);
  transition: transform 180ms var(--whip);
}
.brass-switch input:checked ~ .knob { transform: translateX(26px); }
.brass-switch input:checked ~ .track {
  background:
    linear-gradient(180deg, rgba(217,148,47,.35), rgba(217,148,47,.08)),
    #10150f;
}
.brass-switch input:focus-visible ~ .track {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--spectral-a), inset 0 2px 4px rgba(0,0,0,.9);
}

/* ---------- vitrine canvas frames ---------- */
.vitrine {
  position: relative;
  border: 1px solid var(--hairline-dark);
  border-radius: 4px;
  background: var(--ground-deep);
  overflow: hidden;
}
.vitrine canvas { width: 100%; height: 100%; touch-action: none; outline-offset: -2px; }
.vitrine canvas:focus-visible { outline: 2px solid var(--spectral-a); }
.vitrine .fallback-svg { width: 100%; height: auto; color: var(--brass); }
.vitrine-caption {
  display: flex; justify-content: space-between; gap: var(--s4);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint);
  padding: var(--s3) var(--s2) 0;
}
.vitrine-caption .num { text-transform: none; letter-spacing: 0; color: var(--ink-secondary); }

/* loading state inside vitrines — designed, not defaulted */
.vitrine[data-state="loading"]::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--hairline-dark);
  border-top-color: var(--brass);
  animation: vspin 1.1s linear infinite;
}
.vitrine[data-state="error"]::before {
  content: "The piece could not be lit tonight.";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic;
  color: var(--ink-faint); padding: var(--s5); text-align: center;
}
@keyframes vspin { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-canvas, .hero-fallback { position: absolute; inset: 0; z-index: -1; }
.hero-fallback svg { width: 100%; height: 100%; }
.hero[data-hero="ready"] .hero-fallback { display: none; } /* live scene replaced the still */
.hero-inner { padding-bottom: var(--s9); }
.hero-inner > * { position: relative; } /* type lifts above any backdrop ornament */
.hero-inner::before {
  /* gaslight scrim: keeps display type legible over bright ornament */
  content: "";
  position: absolute; inset: -48px calc(var(--s6) * -1) -48px;
  background: radial-gradient(85% 95% at 32% 60%, rgba(11, 14, 11, 0.88) 30%, rgba(11, 14, 11, 0.45) 62%, transparent 78%);
  pointer-events: none;
}
.hero :is(h1.display, .hero-kicker, .lede) { text-shadow: 0 1px 22px rgba(11, 14, 11, 0.85), 0 0 46px rgba(11, 14, 11, 0.6); }
.hero-kicker {
  font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--copper-text); margin: 0 0 var(--s4);
} /* retained: date-range marker anchoring the 1895→2026 thesis */
.hero-actions { display: flex; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s6); }
.hero-scroll-hint {
  position: absolute; bottom: var(--s5); right: var(--s6);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* breathing glow behind hero title — slow, alive, not looping for attention */
.gaslight {
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.86; }
  50% { opacity: 1; }
}

/* ---------- section rhythm ---------- */
.section { padding: var(--s9) 0; }
.section-tight { padding: var(--s8) 0; }
.section-head { margin-bottom: var(--s7); max-width: 46em; }

/* masters band variations */
.master-band { padding: var(--s9) 0; border-top: 1px solid var(--hairline-dark); }
.master-band:nth-child(even) { background: var(--ground-raised); }
.master-band .mb-grid { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: var(--s8); align-items: center; }
.master-band:nth-child(even) .mb-grid { direction: rtl; }
.master-band:nth-child(even) .mb-grid > * { direction: ltr; }
.master-band h2 { margin-bottom: var(--s3); }
.mb-years { font-size: 13px; letter-spacing: 0.16em; color: var(--copper-text); margin-bottom: var(--s4); }
.mb-vitrine { aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .master-band .mb-grid { grid-template-columns: 1fr; gap: var(--s5); }
}

/* filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-bottom: var(--s6); }
.chip {
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  background: transparent; color: var(--ink-secondary);
  cursor: pointer;
  transition: all 160ms var(--ease-out);
}
.chip:hover { border-color: var(--brass); color: var(--ink-on-dark); }
.chip[aria-pressed="true"] {
  border-color: var(--brass);
  color: var(--ground);
  background: linear-gradient(180deg, #e2bd6d, #b08d3e);
  box-shadow: inset 0 1px 0 rgba(255, 250, 230, 0.5);
}
.chip:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--spectral-b); }

/* ivory-section overrides: chrome designed for dark ground re-inked */
.ivory .chip { border-color: var(--hairline-light); color: var(--ink-light-secondary); }
.ivory .chip:hover { border-color: var(--brass-dim); color: var(--ink-on-light); }
.ivory .vitrine-row .vr-no { color: #7a6230; }
.ivory .vitrine-row h3 { color: var(--ink-on-light); }
.ivory .vitrine-row .vr-meta { color: var(--ink-light-secondary); }
.ivory .vitrine-row:hover { background: rgba(176, 141, 62, 0.08); }

/* empty state — designed */
.empty-state {
  padding: var(--s8) var(--s5);
  text-align: center;
  border: 1px dashed var(--hairline-dark);
  border-radius: 4px;
  color: var(--ink-faint);
  font-family: var(--serif); font-style: italic; font-size: 18px;
}

/* atelier instrument layout */
.instrument { display: grid; grid-template-columns: 1fr 320px; gap: var(--s5); align-items: start; }
.instrument .vitrine { aspect-ratio: 16 / 10; }
@media (max-width: 960px) { .instrument { grid-template-columns: 1fr; } }

/* object detail layout */
.object-layout { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s8); }
@media (max-width: 960px) { .object-layout { grid-template-columns: 1fr; } }
.object-companion .vitrine { aspect-ratio: 1; max-height: 640px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--enamel); color: #fff;
  padding: var(--s3) var(--s4); z-index: 100;
}
.skip-link:focus { left: 0; }

/* global focus discipline */
:focus-visible { outline: 2px solid var(--spectral-a); outline-offset: 2px; }
::selection { background: rgba(176, 141, 62, 0.35); color: #fff8e8; }

/* ---------- reduced motion: gorgeous stills ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .gaslight { opacity: 1; }
  [data-grow] { /* growth scenes render final frame instantly (JS also checks) */ }
}

@media (max-width: 540px) {
  /* nav wraps beneath the wordmark: no hamburger, no overflow at 375px */
  .site-head .shell { flex-wrap: wrap; row-gap: var(--s2); }
  .site-nav { flex-basis: 100%; gap: var(--s2); justify-content: space-between; }
  .site-nav a { font-size: 11.5px; letter-spacing: 0.04em; }
}

/* stacked hero canvases: tendril wall behind the vine */
.hero-canvas canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-canvas canvas + canvas { z-index: 1; }

/* screen-reader-only text that stays in the accessibility tree */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
