/* Maxwell Timber Products — ATELIER CUT (DIRECTION-v7)
   Digital mill atelier: typographic cut, asymmetric canvas, slab rails.
   Chalk / ink / oxide on a warm bench. Homepage hero is the walnut film. */
:root {
  --chalk: #E6E2D8;
  --bench: #E4D2BA;
  --ink: #0E0E0C;
  --walnut: #4A3222;        /* deep walnut brown: secondary text on light (8.0:1 bench, 9.2:1 chalk, 10.6:1 paper) */
  --ink-mute: var(--walnut); /* was grey #6A6560 (3.9:1 on bench) */
  --cream: #F3ECDF;         /* secondary text on dark (16:1 on ink) */
  --cream-dim: #D9CDBA;     /* tertiary text on dark (12:1 on ink) */
  --hairline: #C8C2B6;
  --oxide: #B83A22;
  --oxide-hover: #9A2F1C;
  --oxide-ink: #8E2B19;     /* oxide for text on light: 5.7:1 on bench, 6.5:1 chalk */
  --bark: #2a1d14;          /* deep bark band ground */
  --heart: #5a3420;         /* walnut heartwood */
  --sap: #d9b98c;           /* sapwood */
  --kerf: #e4572e;          /* saw-line accent — decorative only, never small text on light */
  --copper: #9A6B45;
  --copper-ink: var(--walnut); /* piece labels: was copper #9A6B45 (3.6:1) */
  --control-line: #7D766D;  /* form field borders: >= 3:1 on paper */
  --control-line-soft: #A39C92;
  --void: #0A0908;
  --paper-warm: #F7F1E6;
  --ink-soft: #12100E;
  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-sans: "Sora", "Work Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  /* Creative pass type scale */
  --fs-giant: clamp(4.5rem, 14vw, 13rem);
  --fs-display: clamp(3rem, 8vw, 7.5rem);
  --fs-h2: clamp(2.2rem, 4.5vw, 4rem);
  --fs-body: clamp(1.0625rem, 0.35vw + 1rem, 1.125rem); /* 17–18px */
  --theme-ease: 600ms var(--ease);
  --grain-z: 40;
  --cursor-z: 90;
  --max: 1280px;
  --pad: clamp(1rem, 3.5vw, 2.25rem);
  /* one spacing scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --section-y: clamp(3.5rem, 6.5vw, 5.5rem);
  --hero-y: clamp(3rem, 6vw, 4.75rem);
  --grid-gap: clamp(0.75rem, 1.4vw, 1.25rem);
  /* left edge of the container, usable as inline padding on full-bleed rows */
  --gutter: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: var(--oxide);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  view-transition-name: root;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .magnet { transform: none !important; }
}
html.preview-mode *, html.preview-mode *::before, html.preview-mode *::after {
  animation: none !important;
  transition: none !important;
}
body.nav-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bench);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color var(--theme-ease), color var(--theme-ease);
}
body[data-theme="paper"] {
  background-color: var(--paper-warm);
  color: var(--ink);
}
body[data-theme="bark"] {
  background-color: var(--bark);
  color: var(--chalk);
}
body[data-theme="ink"] {
  background-color: var(--ink);
  color: var(--chalk);
}
/* Global grain / sawdust film — above content, below header (50) and dialogs (80) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--grain-z);
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  background-repeat: repeat;
}
body[data-theme="bark"]::after,
body[data-theme="ink"]::after {
  mix-blend-mode: soft-light;
  opacity: 0.055;
}
/* Sparse sawdust specks — dark themes only */
body[data-theme="bark"]::before,
body[data-theme="ink"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: calc(var(--grain-z) - 1);
  pointer-events: none;
  opacity: 0.035;
  background-image:
    radial-gradient(1.5px 1.2px at 12% 18%, rgba(217, 185, 140, 0.55) 40%, transparent 50%),
    radial-gradient(1px 1px at 28% 62%, rgba(230, 226, 216, 0.4) 40%, transparent 50%),
    radial-gradient(1.8px 1px at 47% 33%, rgba(217, 185, 140, 0.45) 40%, transparent 50%),
    radial-gradient(1px 1.4px at 63% 78%, rgba(230, 226, 216, 0.35) 40%, transparent 50%),
    radial-gradient(1.2px 1px at 81% 22%, rgba(217, 185, 140, 0.5) 40%, transparent 50%),
    radial-gradient(1px 1px at 91% 55%, rgba(230, 226, 216, 0.3) 40%, transparent 50%),
    radial-gradient(1.4px 1.1px at 8% 88%, rgba(217, 185, 140, 0.4) 40%, transparent 50%),
    radial-gradient(1px 1px at 55% 8%, rgba(230, 226, 216, 0.35) 40%, transparent 50%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  @media (min-width: 761px) {
    body::after {
      animation: grain-boil 0.5s steps(4) infinite;
    }
  }
}
@keyframes grain-boil {
  0% { background-position: 0 0; }
  25% { background-position: -18px 12px; }
  50% { background-position: 10px -14px; }
  75% { background-position: -8px -6px; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none !important; }
}
html.preview-mode body::after { animation: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--oxide-ink); }
.detail-root a:not(.btn):hover, .hero-copy a:not(.btn):hover { color: #F2CFA6; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--chalk); padding: 0.55rem 1rem;
}
.skip:focus { left: 0; }
.skip:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* —— Chrome: nav v8 (2026-09-30) ——
   Surface lives on .top::before (colour + frosted blur) so the mobile panel
   (position: fixed inside the header) stays anchored to the viewport. */
:root {
  --nav-h: 76px;
  --mark: 52px;
  /* real header height (logo + wordmark + tagline live inside it); the fixed homepage header offsets hero copy by this */
  --header-h: var(--nav-h);
  --header-gap: 1.5rem;
}
.top {
  position: sticky; top: 0; z-index: 50;
  --nav-fg: var(--ink);
  --nav-fg-mute: var(--walnut);
  --nav-rule: rgba(14, 14, 12, 0.16);
  --nav-focus: var(--oxide);
  color: var(--nav-fg);
}
.top::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-repeat: no-repeat;
  background-color: color-mix(in srgb, var(--chalk) 96%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 65%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.top.is-scrolled::before {
  background-color: color-mix(in srgb, var(--chalk) 97%, transparent);
  border-bottom-color: var(--hairline);
  box-shadow: 0 12px 28px -20px rgba(14, 14, 12, 0.55);
}
.top-inner {
  max-width: var(--max);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
}
/* --pad is fluid (vw), which put the logo on fractional x positions (e.g. 35.83px at 1024px). Snap the header gutter
   to whole pixels so the vector mark always rasterises on the pixel grid. (<1px shift; older browsers keep --pad.) */
@supports (padding: round(down, 1.5px, 1px)) {
  .top-inner { padding-left: round(down, var(--pad), 1px); padding-right: round(down, var(--pad), 1px); }
}
.top a:focus-visible, .top button:focus-visible {
  outline: 2px solid var(--nav-focus);
  outline-offset: 3px;
}

/* Logo: crisp vector mark + wordmark.
   No filter, perspective or 3D transform at rest (those rasterise the SVG and soften it); depth comes from the
   vector rim itself. Hover adds a small lift and a crisp shadow only. */
.logo {
  display: flex; align-items: center; gap: 0.85rem; min-width: 0; min-height: 44px;
  text-decoration: none; color: var(--nav-fg);
}
.logo:hover { color: var(--nav-fg); }
.logo-mark {
  position: relative; flex: none; display: block;
  width: var(--mark); height: var(--mark); border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 244, 228, 0.10);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.logo-mark img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.logo-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 238, 212, 0.26) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0;
  opacity: 0; transition: background-position 0.9s var(--ease), opacity 0.35s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .logo:hover .logo-mark, .logo:focus-visible .logo-mark {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(255, 244, 228, 0.14), 0 4px 0 rgba(10, 8, 6, 0.28);
  }
  .logo:hover .logo-mark::after, .logo:focus-visible .logo-mark::after { opacity: 1; background-position: -30% 0; }
}
.logo-text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; line-height: 1; }
.logo-text b {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.14rem; letter-spacing: -0.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.logo-text small {
  font-family: var(--font-mono); font-weight: 400; font-size: 0.6rem; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--nav-fg-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Desktop links */
.menu-btn { display: none; }
.nav { margin-left: auto; }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(0.1rem, 1vw, 0.75rem);
}
.nav a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 0.7rem;
  font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--nav-fg-mute);
  transition: color 0.25s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0.7rem; right: calc(0.7rem + 0.16em); bottom: 9px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.45s var(--ease);
}
.nav a:hover { color: var(--nav-fg); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--nav-fg); }
.nav a[aria-current="page"]::after { transform: scaleX(1); height: 2px; background: var(--oxide); }
.nav .nav-cta {
  margin-left: 0.5rem; padding-left: clamp(0.75rem, 1.4vw, 1.25rem); border-left: 1px solid var(--nav-rule);
  display: flex; align-items: center; gap: 0.5rem;
}
.nav a.nav-call {
  gap: 0.4rem; padding: 0 0.85rem; min-height: 44px;
  border: 1px solid var(--nav-rule); color: var(--nav-fg);
  font-weight: 400; letter-spacing: 0.12em;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.nav a.nav-call::after { display: none; }
.nav a.nav-call:hover { border-color: currentColor; color: var(--nav-fg); background: transparent; }
.nav a.nav-call svg { width: 14px; height: 14px; flex: none; }
.nav-call-full { display: none; }
.nav-call-short { display: inline; }
@media (min-width: 1100px) {
  .nav-call-full { display: inline; }
  .nav-call-short { display: none; }
}
.nav a.ask {
  padding: 0 1.15rem; min-height: 44px;
  background: var(--oxide); color: var(--paper-warm);
  font-weight: 400; letter-spacing: 0.14em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 20px -12px rgba(184, 58, 34, 0.9);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease);
}
.nav a.ask::after { display: none; }
.nav a.ask:hover { background: var(--oxide-hover); color: var(--paper-warm); }
.nav a.ask[aria-current="page"] {
  color: var(--paper-warm);
  box-shadow: inset 0 0 0 1px rgba(247, 241, 230, 0.55), 0 10px 20px -12px rgba(184, 58, 34, 0.9);
}
/* Button CTA: no active underline (clashes with the filled button edge) */
.nav a.ask[aria-current="page"]::after { display: none; }

/* Homepage: transparent over the walnut film -> smoked glass while scrolling the hero -> chalk glass past it */
.page-home .top {
  position: fixed; top: 0; left: 0; right: 0;
  --nav-fg: var(--chalk);
  --nav-fg-mute: var(--cream);
  --nav-rule: rgba(230, 226, 216, 0.24);
  --nav-focus: #F2CFA6;
}
.page-home .top::before {
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(10, 9, 8, 0.8) 0%, rgba(10, 9, 8, 0.62) 60%, rgba(10, 9, 8, 0) 100%);
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.page-home .top:not(.is-scrolled) .logo-text, .page-home .top:not(.is-scrolled) .nav a:not(.ask):not(.nav-call), .page-home .top:not(.is-scrolled) .menu-btn { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.page-home .top:not(.is-solid) .nav a.nav-call { border-color: rgba(230, 226, 216, 0.45); color: var(--chalk); }
.page-home .top:not(.is-solid) .nav a.nav-call:hover { border-color: var(--chalk); background: rgba(230, 226, 216, 0.08); }
.page-home .top.is-scrolled::before {
  background-color: rgba(14, 13, 11, 0.96);
  background-image: none;
  border-bottom-color: rgba(230, 226, 216, 0.1);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
}
.page-home .top.is-solid {
  --nav-fg: var(--ink);
  --nav-fg-mute: var(--walnut);
  --nav-rule: rgba(14, 14, 12, 0.16);
  --nav-focus: var(--oxide);
}
.page-home .top.is-solid::before {
  background-color: color-mix(in srgb, var(--chalk) 97%, transparent);
  border-bottom-color: var(--hairline);
  box-shadow: 0 12px 28px -20px rgba(14, 14, 12, 0.55);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
}

/* Mobile: toggle + full-height smoked panel */
@media (max-width: 860px) {
  :root { --nav-h: 64px; --mark: 46px; }
  /* 46px mark in a 64px bar sits at y = 9px (whole CSS pixels) and shares its centre line (y = 32px) with the wordmark.
     (Was 45px + 1px bottom margin, which left the badge 0.5px above the text centre.) */
  .logo-mark { margin-bottom: 0; }
  .logo { gap: 0.65rem; }
  .logo-text b { font-size: 1rem; }
  .logo-text small { font-size: 0.56rem; letter-spacing: 0.14em; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    margin-left: auto; min-width: 44px; min-height: 44px; padding: 0 0.8rem; gap: 0.5rem;
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--nav-fg); background: transparent; border: 1px solid var(--nav-rule); border-radius: 0;
    cursor: pointer; transition: border-color 0.25s ease, background-color 0.25s ease;
  }
  .menu-btn:hover { border-color: currentColor; }
  .menu-label { min-width: 5ch; text-align: left; }
  .menu-icon { position: relative; display: block; width: 18px; height: 10px; }
  .menu-icon i {
    position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 1px;
    transition: transform 0.35s var(--ease), top 0.35s var(--ease);
  }
  .menu-icon i:first-child { top: 0; }
  .menu-icon i:last-child { top: 8.5px; }
  .menu-btn[aria-expanded="true"] .menu-icon i:first-child { top: 4.25px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon i:last-child { top: 4.25px; transform: rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    display: flex; flex-direction: column;
    padding: calc(var(--nav-h) + 1.25rem) var(--pad) calc(2rem + env(safe-area-inset-bottom));
    background-color: #0E0D0B;
    background-image: radial-gradient(rgba(230, 226, 216, 0.035) 0.6px, transparent 0.6px);
    background-size: 3px 3px;
    color: var(--chalk);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .nav.open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.3s ease, transform 0.45s var(--ease), visibility 0s;
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; counter-reset: navi; }
  .nav li { border-bottom: 1px solid rgba(230, 226, 216, 0.12); }
  .nav li:first-child { border-top: 1px solid rgba(230, 226, 216, 0.12); }
  .nav a {
    display: flex; min-height: 64px; padding: 0 1.4rem 0 0; gap: 1rem;
    font-family: var(--font-display); font-size: 1.85rem; letter-spacing: -0.02em; text-transform: none;
    color: var(--cream);
  }
  .nav li:not(.nav-cta) a::before {
    counter-increment: navi;
    content: counter(navi, decimal-leading-zero);
    content: counter(navi, decimal-leading-zero) / "";
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
    color: var(--cream-dim); min-width: 1.6rem;
  }
  .nav a::after { display: none; }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--chalk); }
  .nav a[aria-current="page"]::after {
    display: block; transform: none;
    left: auto; right: 0.2rem; top: 50%; bottom: auto;
    width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--oxide);
  }
  .nav .nav-cta {
    margin: 1.75rem 0 0; padding: 0; border: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem;
  }
  .nav a.nav-call {
    display: flex; justify-content: center; min-height: 56px; padding: 0 1rem;
    font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
    border-color: rgba(230, 226, 216, 0.45); color: var(--chalk);
  }
  .nav a.nav-call:hover { background: rgba(230, 226, 216, 0.08); color: var(--chalk); }
  .nav a.ask {
    display: flex; justify-content: center; min-height: 56px; padding: 0 1.25rem;
    font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--paper-warm);
  }
  .nav a.ask[aria-current="page"]::after { display: none; }
  .nav a:focus-visible { outline-color: #F2CFA6; outline-offset: -2px; }

  /* Menu open: header joins the smoked panel */
  body.nav-open .top {
    --nav-fg: var(--chalk);
    --nav-fg-mute: var(--cream);
    --nav-rule: rgba(230, 226, 216, 0.28);
    --nav-focus: #F2CFA6;
  }
  body.nav-open .top .logo-text { text-shadow: none; }
  body.nav-open .mobile-hold { visibility: hidden; }
}
@media (max-width: 380px) {
  .logo-text small { display: none; }
}
@media (max-width: 374px) {
  /* keep the full name on small phones: icon-only toggle, label stays as the accessible name */
  .menu-btn { padding: 0; width: 44px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; min-width: 0; }
  .top-inner { gap: 0.75rem; }
}
@media (max-width: 340px) {
  :root { --mark: 40px; }
  .logo-mark { margin-bottom: 0; }   /* 40px mark inside the 44px .logo already centres on whole pixels */
  .logo { gap: 0.55rem; }
  .logo-text b { font-size: 0.9rem; }
}

/* —— Type (v8 refine 2026-09-30: one eyebrow / heading / body pattern) —— */
.kicker {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; line-height: 1.4;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 var(--space-sm);
}
.kicker-index {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; line-height: 1.4;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 var(--space-sm);
}
.display-xl {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-display); line-height: 0.98;
  letter-spacing: -0.02em; margin: 0 0 max(var(--space-md), 0.35em); color: var(--ink);
  text-wrap: balance;
}
.h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-display); line-height: 0.95;
  letter-spacing: -0.035em; margin: 0 0 var(--space-md); color: var(--ink);
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h2); line-height: 1.04;
  letter-spacing: -0.03em; margin: 0 0 var(--space-md);
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15;
  letter-spacing: -0.02em; margin: 0 0 var(--space-xs);
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-mute);
  max-width: 38rem; margin: 0; line-height: 1.6;
  text-wrap: pretty;
}
.note {
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.6; color: var(--ink-mute);
  margin: 0 0 var(--space-lg); max-width: 42rem;
}
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); min-width: 0; }
/* Section rhythm: every section uses the same vertical step; follow-on blocks (.section-tight) only pad below */
.section { padding-block: var(--section-y); }
.section-tight { padding-block: 0 var(--section-y); }
.page-hero { padding-block: var(--hero-y) var(--space-2xl); }
.page-hero .h1 { max-width: 12ch; }
.page-hero-split {
  position: relative;
  padding-block: var(--hero-y) 0;
  overflow: hidden;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: end;
  padding-bottom: var(--space-2xl);
}
.page-hero-copy { min-width: 0; }
.page-hero-copy .display-xl {
  max-width: 10ch;
  margin-bottom: max(var(--space-md), 0.35em);
}
.page-hero-copy .lead { margin-bottom: 0; }
.page-hero-actions { margin-top: var(--space-lg); }
/* Clear the page-hero kerf line before the next section (all subpages) */
.page-hero + .section-tight,
.page-hero-split + .section-tight {
  padding-top: var(--section-y);
}
.page-hero-photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--void);
  aspect-ratio: 3 / 4;
  max-height: min(34rem, 72vh);
  width: 100%;
}
.page-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.page-hero-kerf-wrap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  pointer-events: none;
}
.page-hero-kerf-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.page-hero-kerf-line {
  stroke: var(--kerf);
  stroke-width: 2;
  stroke-linecap: square;
  fill: none;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.page-hero-kerf-svg.is-drawn .page-hero-kerf-line { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .page-hero-kerf-line { stroke-dashoffset: 0; transition: none !important; }
}
html.preview-mode .page-hero-kerf-line { stroke-dashoffset: 0; transition: none !important; }
@media (max-width: 800px) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--space-lg);
  }
  .page-hero-photo {
    order: 2;
    aspect-ratio: 16 / 10;
    max-height: none;
  }
  .page-hero-copy { order: 1; }
  .page-hero-copy .display-xl { max-width: 12ch; }
}
@media (max-width: 360px) {
  .page-hero-actions .btn { flex: 1 1 100%; }
  .page-hero-copy .display-xl { font-size: clamp(2.35rem, 14vw, 3.25rem); }
}
.rule-top { position: relative; }
.rule-top::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--pad)), calc(var(--max) - 2 * var(--pad)));
  height: 1px; background: var(--hairline);
}
.section-tight.rule-top { padding-top: var(--section-y); }
/* head -> content spacing is the same everywhere */
.lead + .actions, .h2 + .actions { margin-top: var(--space-lg); }
.rail-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: var(--space-md) var(--space-xl); margin-bottom: var(--space-xl);
}
.rail-head .lead { margin-bottom: 0; }
.muted { color: var(--ink-mute); }

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; min-height: 48px; padding: 0.75rem 1.25rem;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
  will-change: transform;
}
.btn-oxide { background: var(--oxide); color: var(--paper-warm); border-color: var(--oxide); }
.btn-oxide:hover { background: var(--oxide-hover); color: var(--paper-warm); border-color: var(--oxide-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--chalk); }
.btn-call {
  background: transparent; color: var(--ink); border-color: var(--ink);
  white-space: normal; text-align: center;
}
.btn-call:hover { background: var(--ink); color: var(--chalk); }
.btn-call svg { width: 15px; height: 15px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; min-width: 0; max-width: 100%; }
.actions > * { min-width: 0; max-width: 100%; }
.actions .btn { white-space: normal; text-align: center; }

/* —— Band utilities (paper / ink rhythm) —— */
.band-ink {
  background: var(--bark); color: var(--chalk);
  padding-block: var(--section-y);
  --focus: #F2CFA6;
}
.band-ink .h2, .band-ink .display-xl, .band-ink .h3 { color: var(--chalk); }
.band-ink .lead { color: var(--cream); }
.band-ink .lead a, .band-ink a:not(.btn) { color: var(--chalk); }
.band-ink .kicker, .band-ink .kicker-index { color: var(--cream-dim); }
.band-ink .muted { color: var(--cream); }
.band-ink .btn-ghost, .band-ink .btn-call {
  border-color: rgba(230, 226, 216, 0.55); color: var(--chalk);
}
.band-ink .btn-ghost:hover, .band-ink .btn-call:hover {
  background: var(--chalk); color: var(--ink); border-color: var(--chalk);
}
.band-paper {
  background: var(--paper-warm); color: var(--ink);
  padding-block: var(--section-y);
}

/* —— Film grain on photo wells —— */
.grain-overlay { position: relative; }
.grain-overlay::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

/* —— Hero: full-bleed walnut (static by default; .is-scrub pins + scrubs on desktop) —— */
.hero-slab {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden; overflow: clip;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--bark);
  color: var(--chalk);
}
/* Inner panel: fills the track in static mode; sticky 100svh when scrubbing */
.hero-slab-sticky {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; overflow: clip;
}
/* Desktop scrub: track = viewport + scrub distance; sticky panel covers the viewport the whole way */
.hero-slab.is-scrub {
  --scrub-dist: 90svh;
  height: calc(100svh + var(--scrub-dist));
  min-height: 0;
  overflow: visible;
  display: block;
  background: transparent;
}
.hero-slab.is-scrub .hero-slab-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  flex: none;
  overflow: hidden; overflow: clip;
  background: var(--bark);
}
.hero-slab.is-scrub .hero-play[hidden] { display: none; }
.hero-slab-media, .hero-slab-scrim { position: absolute; inset: 0; }
.hero-slab-media {
  background: var(--bark);
}
.hero-slab-media .hero-poster,
.hero-slab-media .hero-poster img,
.hero-slab-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 72%;
  display: block;
}
.hero-slab-media .hero-poster { z-index: 0; margin: 0; }
.hero-slab-media video {
  z-index: 1;
  background: transparent;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.hero-slab-media video:not([data-ready]) { visibility: hidden; }
.hero-slab-media.is-ready video[data-ready],
.hero-slab-media video[data-ready] {
  visibility: visible;
  opacity: 1;
}
/* Lighter left-to-right scrim so the wood stays visible */
.hero-slab-scrim {
  z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 14, 12, 0.58) 0%, rgba(14, 14, 12, 0.32) 38%, rgba(14, 14, 12, 0.1) 62%, rgba(14, 14, 12, 0) 82%),
    linear-gradient(0deg, rgba(14, 14, 12, 0.5) 0%, rgba(14, 14, 12, 0.14) 28%, rgba(14, 14, 12, 0) 52%);
}
.hero-label {
  position: absolute; z-index: 3;
  top: calc(var(--header-h) + 0.85rem); left: var(--gutter);
  margin: 0; max-width: min(28rem, calc(100% - 8rem));
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; line-height: 1.45;
  text-transform: uppercase; color: var(--cream-dim);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.hero-play {
  position: absolute; z-index: 4; top: calc(var(--header-h) + 0.85rem); right: var(--pad);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-width: 44px; min-height: 44px; padding: 0 0.75rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--chalk); background: rgba(14, 14, 12, 0.35);
  border: 1px solid rgba(230, 226, 216, 0.4); cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-play:hover { background: rgba(14, 14, 12, 0.55); border-color: var(--chalk); }
.hero-play:focus-visible {
  outline: 2px solid #F2CFA6;
  outline-offset: 3px;
}
.hero-play svg { width: 12px; height: 12px; flex: none; }
.hero-copy {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: max(var(--space-3xl), calc(var(--header-h) + var(--header-gap))) var(--pad) var(--space-lg);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  min-width: 0; color: var(--chalk);
  --focus: #F2CFA6;
}
.hero-headline {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-giant); line-height: 0.88;
  letter-spacing: -0.03em; margin: 0 0 var(--space-lg);
  color: var(--chalk); max-width: 100%; width: 100%;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.3);
}
@media (max-height: 699px) and (min-width: 761px) {
  .hero-headline {
    font-size: min(var(--fs-giant), 19svh);
  }
}
.hero-headline em {
  font-style: italic; font-weight: 450;
}
.hero-copy .actions { margin-top: 0; }
.hero-copy .btn-call { color: var(--chalk); border-color: color-mix(in srgb, var(--chalk) 80%, transparent); }
.hero-copy .btn-call:hover { background: var(--chalk); color: var(--ink); }
.hero-text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600;
  color: var(--chalk); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--chalk) 55%, transparent);
  padding: 0 0.1rem;
}
.hero-text-link:hover { color: #F2CFA6; border-bottom-color: #F2CFA6; }
.hero-scroll-cue {
  position: absolute; z-index: 3;
  right: var(--pad); bottom: calc(1.25rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem;
  margin: 0;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; line-height: 1.3;
  text-transform: uppercase; color: var(--cream-dim);
}
.hero-scroll-line {
  display: block; width: 1px; height: 2.75rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--chalk) 70%, transparent), transparent);
  transform-origin: top center;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll-line {
    animation: hero-scroll-pulse 1.8s var(--ease) infinite;
  }
}
@keyframes hero-scroll-pulse {
  0%, 100% { transform: scaleY(0.45); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}
@media (max-width: 1023px) {
  .hero-slab-scrim {
    background:
      linear-gradient(90deg, rgba(14, 14, 12, 0.5) 0%, rgba(14, 14, 12, 0.22) 55%, rgba(14, 14, 12, 0) 100%),
      linear-gradient(0deg, rgba(14, 14, 12, 0.62) 0%, rgba(14, 14, 12, 0.28) 38%, rgba(14, 14, 12, 0) 68%);
  }
}
@media (max-width: 900px) {
  .hero-copy { padding-top: max(5.25rem, calc(var(--header-h) + var(--header-gap))); padding-bottom: var(--space-md); }
  .hero-copy .actions { width: 100%; }
  .hero-copy .actions .btn { flex: 1 1 100%; min-width: 0; }
  .hero-label { max-width: calc(100% - 5rem); font-size: 0.56rem; }
}
@media (max-width: 760px) {
  .hero-play { display: none; }
  .hero-scroll-cue { display: none; }
  .hero-label { display: none; }
  .hero-slab {
    --mobile-hold-h: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    height: calc(100svh - var(--mobile-hold-h));
    min-height: calc(100svh - var(--mobile-hold-h));
  }
  .hero-slab.is-scrub {
    /* mobile never scrubs; keep hold-bar height if class is somehow present */
    height: calc(100svh - var(--mobile-hold-h));
    min-height: calc(100svh - var(--mobile-hold-h));
    overflow: hidden; overflow: clip;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: var(--bark);
  }
  .hero-slab.is-scrub .hero-slab-sticky {
    position: relative;
    height: 100%;
    background: transparent;
  }
  .hero-copy {
    justify-content: flex-end;
    padding-top: max(4.5rem, calc(var(--header-h) + var(--header-gap)));
    padding-bottom: var(--space-lg);
    gap: 0;
  }
  .hero-headline {
    font-size: clamp(2.75rem, 13vw, 4.25rem);
    margin-bottom: var(--space-md);
  }
  .hero-copy .actions {
    width: 100%;
    margin-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line { animation: none; opacity: 0.7; transform: none; }
}
html.preview-mode .hero-scroll-line { animation: none; }

/* —— Proof line: four yard facts, aligned to the container —— */
.proof-line {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between;
  gap: var(--space-md) var(--space-xl);
  margin: 0; padding: var(--space-lg) var(--gutter);
  background: var(--ink);
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; line-height: 1.45;
  color: var(--chalk);
}
.proof-line span { min-width: 0; }
.proof-line strong {
  display: block; margin-bottom: 0.2rem;
  font-weight: 400; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-dim);
}
@media (max-width: 760px) {
  .proof-line { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .proof-line span:first-child, .proof-line span:last-child { grid-column: 1 / -1; }
}

/* —— Species marquee (home) —— */
.species-marquee {
  background: var(--bark); color: var(--chalk);
  height: 64px; overflow: hidden;
  border-block: 1px solid rgba(230, 226, 216, 0.12);
}
/* Thin divider restyle between hero and chapters */
.species-marquee--divider {
  height: 36px;
  border-block: 1px solid rgba(230, 226, 216, 0.1);
  background: color-mix(in srgb, var(--bark) 92%, var(--ink));
}
.species-marquee--divider .species-marquee-word {
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  font-style: normal;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.78;
}
.species-marquee--divider .species-marquee-sep {
  width: 10px; height: 10px; opacity: 0.45;
}
.species-marquee--divider .species-marquee-set {
  gap: clamp(0.65rem, 1.5vw, 1.1rem);
  padding-inline: clamp(0.65rem, 1.5vw, 1.1rem);
}
.species-marquee-viewport {
  height: 100%; display: flex; align-items: center; overflow: hidden;
}
.species-marquee-track {
  display: flex; width: max-content; align-items: center;
  animation: species-marquee-x 40s linear infinite;
  will-change: transform;
}
.species-marquee:hover .species-marquee-track { animation-play-state: paused; }
.species-marquee-set {
  display: flex; flex-shrink: 0; align-items: center;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  padding-inline: clamp(0.85rem, 2vw, 1.5rem);
}
.species-marquee-word {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); letter-spacing: -0.02em;
  line-height: 1; white-space: nowrap; color: var(--chalk);
}
.species-marquee-sep {
  flex: none; width: 14px; height: 14px; color: var(--cream-dim); opacity: 0.7;
}
@keyframes species-marquee-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .species-marquee { height: auto; min-height: 64px; }
  .species-marquee--divider { min-height: 36px; }
  .species-marquee-viewport { overflow: visible; }
  .species-marquee-track {
    animation: none; width: 100%; flex-wrap: wrap; justify-content: center;
    will-change: auto; transform: none;
  }
  .species-marquee-set {
    flex-wrap: wrap; justify-content: center;
    padding-block: var(--space-sm); row-gap: var(--space-xs);
  }
  .species-marquee-set[aria-hidden="true"] { display: none; }
  .species-marquee-word { white-space: normal; }
}
html.preview-mode .species-marquee-track { animation: none; }

/* —— Species showcase (home) —— */
.species-swatch-defs {
  position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none;
}
.species-showcase { overflow-x: clip; }
.species-showcase-title {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  max-width: 16ch; margin-bottom: var(--space-md);
}
.species-showcase .lead { margin-bottom: var(--space-xl); }
.species-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: var(--grid-gap);
  align-items: stretch;
}
.species-card {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background: var(--bench); color: var(--ink);
}
.species-card-feature { grid-row: 1 / -1; height: 100%; }
.species-card-media {
  position: relative; overflow: hidden; background: var(--void);
  isolation: isolate; aspect-ratio: 3 / 4; flex: 1 1 auto; min-height: 200px;
}
.species-card-feature .species-card-media {
  min-height: 0; aspect-ratio: auto; flex: 1 1 auto;
}
.species-card-feature .species-card-media img {
  object-fit: cover; object-position: center;
}
.species-card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  position: absolute; inset: 0;
  transition: transform 0.7s var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not(.preview-mode) .species-card:hover .species-card-media img { transform: scale(1.03); }
}
.species-card-body {
  display: flex; flex-direction: column; gap: var(--space-xs);
  padding: var(--space-md); background: var(--paper-warm);
  border-top: 1px solid var(--hairline);
}
.species-card-name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -0.02em;
  line-height: 1.15; margin: 0; color: var(--ink);
}
.species-swatch {
  position: relative;
  z-index: 1;
  height: 28px; overflow: hidden; border: 1px solid var(--hairline);
}
.species-swatch-svg { display: block; width: 100%; height: 28px; }
.species-card-note {
  position: relative;
  z-index: 1;
  margin: 0; font-size: 0.92rem; line-height: 1.45; color: var(--ink-mute);
}
.species-card-link {
  position: relative;
  z-index: 1;
  display: inline-flex; align-items: center; min-height: 44px;
  margin-top: var(--space-2xs);
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600;
  color: var(--oxide-ink); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--oxide-ink) 40%, transparent);
  align-self: flex-start; padding: 0 0.05rem;
}
.species-card-link:hover { color: var(--oxide-hover); border-bottom-color: var(--oxide-hover); }
.species-card-ask {
  background: var(--ink); color: var(--chalk);
  padding: clamp(1.25rem, 3vw, 2rem);
  justify-content: flex-end; gap: var(--space-md);
  --focus: #F2CFA6;
}
.species-ask-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem); letter-spacing: -0.03em;
  line-height: 1.05; margin: 0; color: var(--chalk); max-width: 10ch;
}
.species-ask-copy {
  margin: 0; max-width: 28rem;
  font-size: 1rem; line-height: 1.55; color: var(--cream);
}
.species-card-ask .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .species-grid {
    display: flex; flex-direction: row;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    gap: var(--space-md);
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: var(--hairline) transparent;
    overscroll-behavior-x: contain;
  }
  .species-card, .species-card-feature, .species-card-ask {
    flex: 0 0 min(78vw, 22rem);
    scroll-snap-align: start; scroll-snap-stop: always;
    grid-row: auto; grid-column: auto;
    min-height: 420px;
  }
  .species-card-feature .species-card-media {
    aspect-ratio: 3 / 4; flex: 0 0 auto; min-height: 240px; height: 240px;
  }
  .species-card-media { height: 220px; aspect-ratio: auto; flex: none; }
  .species-card-ask { min-height: 320px; }
}
@media (max-width: 360px) {
  .species-card, .species-card-feature, .species-card-ask {
    flex-basis: min(86vw, 18.5rem);
  }
  .species-showcase-title { font-size: clamp(1.85rem, 9vw, 2.25rem); }
  .species-card-body { padding: var(--space-sm); }
}

/* —— Mill process / CHAPTER 02 — THE CUT —— */
.chapter-cut,
.mill-process {
  overflow-x: clip;
  background: var(--bark);
  color: var(--chalk);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  --focus: #F2CFA6;
}
.chapter-cut .chapter-head { color: var(--chalk); }
.chapter-cut .chapter-title em {
  font-style: italic;
  font-weight: 450;
  color: var(--sap);
}
.chapter-cut .btn-ghost,
.chapter-cut .btn-call {
  border-color: rgba(230, 226, 216, 0.55);
  color: var(--chalk);
}
.chapter-cut .btn-ghost:hover,
.chapter-cut .btn-call:hover {
  background: var(--chalk);
  color: var(--ink);
  border-color: var(--chalk);
}
.mill-process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.mill-diagram-stage {
  position: relative;
  max-width: 640px;
  width: 100%;
  margin-inline: 0 auto;
}
.mill-saw-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 640px;
}
.mill-kerf {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
/* IO fallback: draw kerfs in sequence when .is-drawn is set */
.mill-saw-svg.is-drawn .mill-kerf {
  transition: stroke-dashoffset 0.55s var(--ease);
  stroke-dashoffset: 0;
}
.mill-saw-svg.is-drawn .mill-kerf:nth-child(1) { transition-delay: 0s; }
.mill-saw-svg.is-drawn .mill-kerf:nth-child(2) { transition-delay: 0.12s; }
.mill-saw-svg.is-drawn .mill-kerf:nth-child(3) { transition-delay: 0.24s; }
.mill-saw-svg.is-drawn .mill-kerf:nth-child(4) { transition-delay: 0.36s; }
.mill-saw-svg.is-drawn .mill-kerf:nth-child(5) { transition-delay: 0.48s; }
.mill-saw-svg.is-drawn .mill-kerf:nth-child(6) { transition-delay: 0.6s; }
/* Scroll-scrub: each kerf draws in sequence along #ch-cut view timeline */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not(.preview-mode) #ch-cut {
      view-timeline-name: --cut-tl;
      view-timeline-axis: block;
    }
    html:not(.preview-mode) #ch-cut .mill-kerf {
      animation: kerf-scrub linear both;
      animation-timeline: --cut-tl;
      transition: none;
    }
    html:not(.preview-mode) #ch-cut .mill-kerf:nth-child(1) { animation-range: cover 8% cover 22%; }
    html:not(.preview-mode) #ch-cut .mill-kerf:nth-child(2) { animation-range: cover 16% cover 30%; }
    html:not(.preview-mode) #ch-cut .mill-kerf:nth-child(3) { animation-range: cover 24% cover 38%; }
    html:not(.preview-mode) #ch-cut .mill-kerf:nth-child(4) { animation-range: cover 32% cover 46%; }
    html:not(.preview-mode) #ch-cut .mill-kerf:nth-child(5) { animation-range: cover 40% cover 54%; }
    html:not(.preview-mode) #ch-cut .mill-kerf:nth-child(6) { animation-range: cover 48% cover 62%; }
    /* When JS fallback marks drawn, prefer fully drawn over scrub conflict */
    html:not(.preview-mode) #ch-cut .mill-saw-svg.is-drawn .mill-kerf {
      animation: none;
      stroke-dashoffset: 0;
    }
  }
}
@keyframes kerf-scrub {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mill-kerf { stroke-dashoffset: 0; transition: none !important; animation: none !important; }
}
html.preview-mode .mill-kerf { stroke-dashoffset: 0; transition: none !important; animation: none !important; }

.mill-photo {
  position: absolute;
  top: 0; right: 0;
  width: min(32%, 8.5rem);
  margin: 0;
  z-index: 2;
  transform: rotate(3deg);
}
.mill-photo-frame {
  overflow: hidden; background: var(--void);
  border: 2px solid var(--chalk);
  aspect-ratio: 3 / 4;
  isolation: isolate;
}
.mill-photo-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.mill-photo-cap {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cream-dim); line-height: 1.3;
}

/* Large numbered rows with hairline separators */
.mill-timeline,
.mill-timeline--rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mill-timeline--rows .mill-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm) var(--space-md);
  align-items: start;
  position: relative;
  padding-block: 1.15rem;
  border-bottom: 1px solid color-mix(in srgb, var(--cream-dim) 28%, transparent);
}
.mill-timeline--rows .mill-step:first-child {
  border-top: 1px solid color-mix(in srgb, var(--cream-dim) 28%, transparent);
}
.mill-timeline--rows .mill-step-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3rem;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--chalk) 55%, transparent);
  min-width: 2.6rem;
  padding-top: 0.1rem;
}
@supports not (-webkit-text-stroke: 1px black) {
  .mill-timeline--rows .mill-step-num {
    color: color-mix(in srgb, var(--chalk) 35%, transparent);
  }
}
.mill-timeline--rows .mill-step-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  letter-spacing: -0.02em; line-height: 1.2;
  margin: 0 0 var(--space-2xs); color: var(--chalk);
}
.mill-timeline--rows .mill-step-copy {
  margin: 0; font-size: 0.95rem; line-height: 1.5;
  color: var(--cream); max-width: 32rem;
}
/* Legacy paper variant (inquire page may still use rail timeline) */
.mill-timeline:not(.mill-timeline--rows) {
  position: relative;
  padding-left: 1.75rem;
}
.mill-timeline-rail {
  position: absolute;
  left: 0.45rem; top: 0.55rem; bottom: 0.55rem;
  width: 1px;
  background: color-mix(in srgb, var(--cream-dim) 28%, transparent);
}
.mill-timeline-fill {
  position: absolute; inset: 0;
  width: 1px;
  background: var(--kerf);
  transform-origin: top center;
  transform: scaleY(1);
}
.mill-timeline-steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--space-lg);
}
.mill-timeline:not(.mill-timeline--rows) .mill-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm) var(--space-md);
  align-items: start;
  position: relative;
}
.mill-timeline:not(.mill-timeline--rows) .mill-step::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem + 0.45rem - 3px);
  top: 0.45rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bark);
  border: 1.5px solid var(--kerf);
  box-sizing: border-box;
}
.mill-step-num {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.12em; color: var(--kerf);
  line-height: 1.4; padding-top: 0.2rem;
  min-width: 1.6rem;
}
.mill-step-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -0.02em; line-height: 1.2;
  margin: 0 0 var(--space-2xs); color: var(--chalk);
}
.mill-step-copy {
  margin: 0; font-size: 0.95rem; line-height: 1.5;
  color: var(--cream); max-width: 32rem;
}
.mill-timeline--paper .mill-timeline-rail {
  background: color-mix(in srgb, var(--ink-mute) 28%, transparent);
}
.mill-timeline--paper .mill-step::before {
  background: var(--chalk);
}
.mill-timeline--paper .mill-step-title { color: var(--ink); }
.mill-timeline--paper .mill-step-copy { color: var(--ink-mute); }
.mill-process-actions { margin-top: var(--space-xl); }

@media (max-width: 860px) {
  .mill-process-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .mill-diagram-stage {
    max-width: min(100%, 28rem);
    margin-inline: auto;
    display: flex; flex-direction: column; align-items: center;
  }
  .mill-photo {
    position: static;
    width: min(55%, 10rem);
    margin: var(--space-md) auto 0;
    transform: rotate(1.5deg);
  }
  .mill-timeline--rows .mill-step-num { font-size: 2.4rem; }
}
@media (max-width: 360px) {
  .mill-timeline--rows .mill-step { gap: var(--space-xs) var(--space-sm); }
  .mill-process-actions .btn { flex: 1 1 100%; }
}

/* —— CHAPTER 04 — THE YARD: Muuto mosaic + inventory board —— */
.chapter-yard {
  overflow-x: clip;
}
.chapter-yard .chapter-title em {
  font-style: italic;
  font-weight: 450;
  color: var(--oxide-ink);
}
.yard-mosaic {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.95fr;
  grid-template-rows: auto auto;
  gap: clamp(0.65rem, 1.4vw, 1.15rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.yard-mosaic-item {
  margin: 0;
  min-width: 0;
  will-change: transform;
}
.yard-mosaic-frame {
  position: relative;
  overflow: hidden;
  background: var(--void);
  isolation: isolate;
}
.yard-mosaic-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not(.preview-mode) .yard-mosaic-item:hover .yard-mosaic-frame img { transform: scale(1.03); }
}
/* Muuto ratio mix: wide / wide-offset / tall */
.yard-mosaic-showroom {
  grid-column: 1 / 3;
  grid-row: 1;
}
.yard-mosaic-showroom .yard-mosaic-frame { aspect-ratio: 16 / 10; }
.yard-mosaic-stack {
  grid-column: 1 / 3;
  grid-row: 2;
  margin-top: clamp(0.5rem, 2vw, 1.75rem);
  width: 86%;
  justify-self: end;
}
.yard-mosaic-stack .yard-mosaic-frame { aspect-ratio: 5 / 3; }
.yard-mosaic-project {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  margin-top: clamp(1.5rem, 4vw, 3.25rem);
}
.yard-mosaic-project .yard-mosaic-frame {
  flex: 1 1 auto;
  min-height: 16rem;
  aspect-ratio: 3 / 4;
}
.yard-mosaic-cap {
  margin: 0.45rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.3;
}
.yard-mosaic .mask-reveal {
  transition-delay: var(--mask-delay, 0s);
}
.yard-mosaic .mask-reveal img {
  transition-delay: var(--mask-delay, 0s);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .yard-mosaic .mask-reveal:not(.is-revealed) {
      animation-delay: var(--mask-delay, 0s);
    }
    .yard-mosaic .mask-reveal:not(.is-revealed) img {
      animation-delay: var(--mask-delay, 0s);
    }
  }
}

.yard-board { min-width: 0; max-width: 52rem; }
.yard-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.yard-board-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: var(--space-sm) var(--space-md);
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  overflow: hidden;
  transition: color 0.2s ease;
}
.yard-board-row:hover { color: inherit; }
.yard-board-row:hover .yard-board-name { color: var(--oxide-ink); }
.yard-board-row:hover .yard-board-ask { color: var(--oxide-ink); }
.yard-board-idx {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  line-height: 1.6;
  align-self: start;
  padding-top: 0.45rem;
}
.yard-board-thumb {
  display: none;
}
.yard-board-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.yard-board-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  transition: color 0.2s ease;
}
.yard-board-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-mute);
  text-wrap: pretty;
  max-width: 38ch;
}
.yard-board-ask {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxide-ink);
  white-space: nowrap;
  align-self: center;
  min-height: 44px;
  padding-left: 0.15rem;
}
.yard-board-arrow {
  display: inline-block;
  color: var(--oxide);
  transform: translateX(-0.55rem);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.yard-board-actions { margin-top: var(--space-xl); }

@media (hover: hover) and (min-width: 901px) {
  .yard-board-row {
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    padding-right: 5.75rem;
  }
  .yard-board-thumb {
    display: block;
    position: absolute;
    right: 4.75rem;
    top: 50%;
    width: 4.25rem;
    height: 4.25rem;
    margin-top: -2.125rem;
    overflow: hidden;
    background: var(--void);
    opacity: 0;
    transform: translateX(0.6rem) scale(0.92);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
    pointer-events: none;
    z-index: 1;
  }
  .yard-board-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .yard-board-ask {
    position: relative;
    z-index: 2;
    background: var(--paper-warm);
    padding-left: 0.35rem;
  }
  .yard-board-row:hover .yard-board-thumb,
  .yard-board-row:focus-visible .yard-board-thumb {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  .yard-board-row:hover .yard-board-arrow,
  .yard-board-row:focus-visible .yard-board-arrow {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .yard-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .yard-mosaic-showroom { grid-column: 1 / -1; grid-row: 1; }
  .yard-mosaic-stack {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin-top: 0;
    justify-self: stretch;
  }
  .yard-mosaic-project {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }
  .yard-mosaic-showroom .yard-mosaic-frame { aspect-ratio: 16 / 10; }
  .yard-mosaic-stack .yard-mosaic-frame,
  .yard-mosaic-project .yard-mosaic-frame {
    aspect-ratio: 4 / 5;
    min-height: 0;
    flex: none;
  }
  .yard-board-name { font-size: clamp(1.35rem, 5.5vw, 1.75rem); }
}
@media (max-width: 560px) {
  .yard-mosaic { grid-template-columns: 1fr; gap: 0.75rem; }
  .yard-mosaic-showroom,
  .yard-mosaic-stack,
  .yard-mosaic-project { grid-column: 1; grid-row: auto; width: 100%; }
  .yard-mosaic-project .yard-mosaic-frame { aspect-ratio: 4 / 5; }
  .yard-board-row {
    grid-template-columns: 1.75rem minmax(0, 1fr);
    grid-template-areas:
      "idx name"
      "idx desc"
      "idx ask";
    gap: 0.15rem 0.65rem;
    padding: 0.95rem 0;
    align-items: start;
  }
  .yard-board-idx { grid-area: idx; padding-top: 0.35rem; }
  .yard-board-main { grid-area: name; display: contents; }
  .yard-board-name { grid-area: name; }
  .yard-board-desc { grid-area: desc; }
  .yard-board-ask { grid-area: ask; justify-self: start; margin-top: 0.25rem; align-self: start; }
  .yard-board-arrow { opacity: 1; transform: none; }
  .yard-board-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 360px) {
  .yard-mosaic { gap: 0.55rem; }
  .yard-board-name { font-size: 1.25rem; }
}

/* —— Service area / NJ location map —— */
.service-area { overflow-x: clip; }
.service-area-title {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  max-width: 16ch; margin-bottom: var(--space-xl);
}
.service-area-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.project-where-layout {
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
}
.service-area-map {
  display: flex; justify-content: center; align-items: center;
  max-height: 680px; min-width: 0; overflow: hidden;
}
.nj-map {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 680px;
  overflow: visible;
}
.nj-county {
  fill: color-mix(in srgb, var(--chalk) 11%, var(--bark));
  stroke: color-mix(in srgb, var(--chalk) 28%, transparent);
  stroke-width: 0.55;
}
.nj-county.is-burlington {
  fill: color-mix(in srgb, var(--heart) 78%, var(--oxide));
}
.nj-rings {
  opacity: 1;
  transform: scale(1);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-ready .nj-map:not(.is-lit) .nj-rings {
  opacity: 0.88;
  transform: scale(0.97);
}
.nj-map.is-lit .nj-rings {
  opacity: 1;
  transform: scale(1);
}
.nj-ring {
  fill: none;
  stroke: var(--chalk);
  stroke-opacity: 0.4;
  stroke-width: 1.1;
  stroke-dasharray: 5 7;
}
.nj-cities circle { fill: var(--chalk); }
.nj-city text {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.02em;
  fill: var(--cream-dim);
}
.nj-site-label {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  fill: var(--cream-dim);
}
.nj-pin { fill: var(--kerf); }
.nj-pulse {
  fill: none;
  stroke: var(--kerf);
  stroke-width: 1.4;
  opacity: 0.55;
  transform-box: fill-box;
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.preview-mode) .nj-pulse {
    animation: nj-pin-pulse 2.6s ease-out infinite;
  }
}
@keyframes nj-pin-pulse {
  0% { opacity: 0.65; transform: scale(0.55); }
  70% { opacity: 0; transform: scale(1.85); }
  100% { opacity: 0; transform: scale(1.85); }
}
@media (prefers-reduced-motion: reduce) {
  .nj-rings { opacity: 1; transform: none; transition: none; }
  .js-ready .nj-map:not(.is-lit) .nj-rings { opacity: 1; transform: none; }
  .nj-pulse { animation: none !important; opacity: 0.35; }
}
html.preview-mode .nj-rings,
html:not(.js-ready) .nj-rings { opacity: 1; transform: none; transition: none; }
html.preview-mode .nj-pulse { animation: none !important; opacity: 0.35; }

.location-card {
  border: 1px solid color-mix(in srgb, var(--chalk) 22%, transparent);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  min-width: 0;
}
.location-card .place {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.03em; line-height: 1;
  margin: 0 0 var(--space-2xs); color: var(--chalk);
}
.location-city {
  margin: 0 0 var(--space-lg);
  font-size: 1.05rem; color: var(--cream);
}
.location-miles-label {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-dim);
}
.location-miles {
  list-style: none; margin: 0 0 var(--space-lg); padding: 0;
  display: grid; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--cream);
}
.location-miles li {
  display: flex; justify-content: space-between; gap: var(--space-md);
  border-bottom: 1px solid color-mix(in srgb, var(--chalk) 14%, transparent);
  padding-bottom: 0.4rem;
}
.location-miles li span:last-child { color: var(--cream-dim); white-space: nowrap; }
.location-note {
  margin: 0 0 var(--space-lg);
  font-size: 0.95rem; line-height: 1.5; color: var(--cream);
  max-width: 34rem;
}
.location-card .actions { margin-top: 0; }

@media (max-width: 860px) {
  .service-area-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .service-area-map,
  .nj-map {
    max-height: min(70vw, 420px);
    width: 100%;
  }
  .nj-map { max-width: min(100%, 320px); margin-inline: auto; }
}
@media (max-width: 360px) {
  .service-area-title { font-size: clamp(1.85rem, 9vw, 2.35rem); }
  .location-card { padding: var(--space-md); }
  .location-card .place { font-size: clamp(1.65rem, 9vw, 2rem); }
  .location-card .actions .btn { flex: 1 1 100%; }
}

/* —— Horizontal rail: first card lines up with the container —— */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 23vw, 320px);
  gap: var(--grid-gap); overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0.15rem var(--gutter) var(--space-lg);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--hairline) transparent;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--hairline); }
.rail-card {
  scroll-snap-align: start; scroll-snap-stop: always;
  background: var(--void); color: var(--chalk);
  display: grid; grid-template-rows: 1fr auto; min-height: 400px;
  border: 1px solid transparent; text-decoration: none;
  transition: border-color 0.2s ease; min-width: 0;
}
div.rail-card { cursor: default; }
a.rail-card:hover { border-color: var(--oxide); color: var(--chalk); }
.rail-card .media { position: relative; min-height: 300px; overflow: hidden; background: var(--void); isolation: isolate; }
.rail-card .media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  position: absolute; inset: 0; transition: transform 0.7s var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not(.preview-mode) a.rail-card:hover .media img { transform: scale(1.04); }
}
.rail-card .body { padding: var(--space-md) var(--space-md) var(--space-lg); background: var(--ink-soft); }
.rail-card .tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cream-dim); display: block; margin-bottom: var(--space-2xs);
}
.rail-card .title {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  letter-spacing: -0.02em; margin: 0 0 var(--space-2xs); color: var(--chalk);
}
.rail-card .meta { font-size: 0.875rem; color: var(--cream); margin: 0; }
@media (max-width: 700px) {
  .rail { grid-auto-columns: 78vw; }
  .rail-card { min-height: 360px; }
  .rail-card .media { min-height: 260px; }
}

/* —— Featured canvas (asymmetric photo grid) —— */
.canvas {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap); margin-top: var(--space-xl);
}
.canvas .tile {
  position: relative; overflow: hidden; background: var(--void);
  text-decoration: none; color: var(--chalk); min-height: 180px;
  border: 1px solid transparent; isolation: isolate;
}
.canvas .tile:hover { border-color: var(--oxide); color: var(--chalk); }
.canvas .tile-media {
  position: absolute; inset: 0; overflow: hidden; isolation: isolate;
}
.canvas .tile img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  position: absolute; inset: 0; transition: transform 0.7s var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not(.preview-mode) .canvas .tile:hover img { transform: scale(1.03); }
}
/* Caption sits on its own scrim band so it reads on any photo */
.canvas .tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: var(--space-2xl) var(--space-md) var(--space-md);
  background: linear-gradient(180deg, rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, 0.72) 45%, rgba(10, 9, 8, 0.92) 100%);
}
.canvas .tile .tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cream);
}
.canvas .tile .title {
  font-family: var(--font-display); font-size: 1.3rem; margin: 0.2rem 0 0;
  letter-spacing: -0.02em; color: var(--chalk);
}
.canvas .t-lg { grid-column: span 7; min-height: 420px; }
.canvas .t-md { grid-column: span 5; min-height: 420px; }
.canvas .t-sm { grid-column: span 4; min-height: 260px; }
.canvas .t-wide { grid-column: span 8; min-height: 300px; }
.canvas .t-sq { grid-column: span 4; min-height: 300px; }
.canvas-tight { margin-top: var(--space-lg); }
.canvas-tight .t-lg { min-height: 380px; }
.canvas-tight .t-md { min-height: 380px; }
.canvas-tight .t-sm { min-height: 240px; }
.ig-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md) var(--space-xl);
  margin-bottom: var(--space-md);
  min-width: 0;
}
.ig-head > * { min-width: 0; max-width: 100%; }
.ig-head .h2 { margin-bottom: 0; max-width: 16ch; }
.ig-head-actions {
  flex-shrink: 1;
  width: auto;
  max-width: 100%;
}
.ig-head-actions .btn {
  flex: 1 1 auto;
  white-space: normal;
  max-width: 100%;
}
@media (max-width: 900px) {
  .canvas .t-lg, .canvas .t-md, .canvas .t-sm, .canvas .t-wide, .canvas .t-sq { grid-column: span 12; min-height: 260px; }
  .canvas .t-lg { min-height: 340px; }
  .ig-head-actions { width: 100%; }
  .ig-head-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .canvas-tight .t-lg,
  .canvas-tight .t-md,
  .canvas-tight .t-sm { min-height: 220px; }
  .ig-head .h2 { font-size: clamp(1.85rem, 8vw, 2.35rem); }
}

/* —— Filters + view toggle —— */
.toolbar-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0 var(--space-md);
  border: 1px solid var(--control-line-soft); background: transparent; color: var(--ink-mute);
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.view-toggle { display: inline-flex; border: 1px solid var(--control-line-soft); margin-left: auto; }
.view-toggle button {
  min-height: 44px; padding: 0 var(--space-md);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; border: 0; background: transparent; color: var(--ink-mute); cursor: pointer;
}
.view-toggle button.is-active { background: var(--ink); color: var(--chalk); }

/* —— Gallery grid (slabs) —— */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.gallery.is-index { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--hairline); }
.piece { background: var(--chalk); border: 1px solid var(--hairline); display: grid; grid-template-rows: auto 1fr; }
.gallery.is-index .piece {
  grid-template-columns: minmax(120px, 220px) 1fr auto; grid-template-rows: auto;
  border-left: 0; border-right: 0; border-top: 0; align-items: center;
}
.piece-media { aspect-ratio: 4/5; overflow: hidden; background: var(--void); cursor: pointer; position: relative; isolation: isolate; }
.gallery.is-index .piece-media { aspect-ratio: 1; max-height: 140px; }
.piece-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.65s var(--ease); display: block;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not(.preview-mode) .piece:hover .piece-media img { transform: scale(1.03); }
}
.piece-body { padding: var(--space-md) var(--space-md) var(--space-lg); display: grid; gap: var(--space-xs); align-content: start; }
.gallery.is-index .piece-body { padding: var(--space-md) var(--space-lg); }
.piece-tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--copper-ink);
}
.piece-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.piece-meta { margin: 0; color: var(--ink-mute); font-size: 0.9rem; }
.piece-actions { margin-top: var(--space-sm); }
.gallery.is-index .piece-actions { padding-right: var(--space-md); }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery.is-index .piece { grid-template-columns: 100px 1fr; }
  .gallery.is-index .piece-actions { grid-column: 1 / -1; padding: 0 var(--space-md) var(--space-md); }
}
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* —— Immersive piece detail —— */
.detail-root[hidden] { display: none !important; }
.detail-root {
  position: fixed; inset: 0; z-index: 80;
  display: grid; grid-template-columns: 1.4fr minmax(280px, 380px);
  background: var(--void); color: var(--chalk);
  --focus: #F2CFA6;
}
.detail-stage { position: relative; min-height: 50vh; background: var(--void); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.detail-stage img { width: 100%; height: 100%; object-fit: contain; object-position: center; max-height: 100vh; background: var(--void); }
.detail-rail {
  background: var(--ink-soft); border-left: 1px solid rgba(200, 194, 182, 0.2);
  padding: var(--space-lg) var(--space-lg) var(--space-xl); display: flex; flex-direction: column; gap: var(--space-md);
  overflow-y: auto; position: sticky; top: 0; max-height: 100vh;
}
.detail-rail .kicker { color: var(--cream-dim); }
.detail-rail .h2 { color: var(--chalk); font-size: clamp(1.75rem, 3vw, 2.4rem); }
.detail-rail .meta { color: var(--cream); margin: 0; }
.detail-rail .btn-ghost { border-color: rgba(230, 226, 216, 0.45); color: var(--chalk); }
.detail-rail .btn-ghost:hover { background: var(--chalk); color: var(--ink); }
.detail-rail .detail-foot {
  margin-top: auto; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.detail-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2; min-height: 44px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; background: var(--chalk); color: var(--ink);
  border: 0; padding: 0 var(--space-md); cursor: pointer;
}
.detail-stage .detail-close { right: auto; left: 1rem; }
@media (max-width: 860px) {
  .detail-root { grid-template-columns: 1fr; grid-template-rows: minmax(45vh, 55vh) 1fr; }
  .detail-rail { position: relative; max-height: none; border-left: 0; border-top: 1px solid rgba(200, 194, 182, 0.2); }
}

/* —— Frame list (lumber / yard facts) —— */
.frame-list {
  display: grid; gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline); margin-bottom: var(--space-lg);
}
.frame-list > div {
  background: var(--chalk); padding: var(--space-md) var(--space-lg);
  display: grid; grid-template-columns: minmax(110px, 180px) 1fr; gap: var(--space-md); align-items: baseline;
}
.frame-list strong {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
}
.frame-list span { color: var(--ink-mute); }
@media (max-width: 600px) { .frame-list > div { grid-template-columns: 1fr; gap: var(--space-2xs); } }

/* —— Address / contact blocks —— */
.address-block { border: 1px solid var(--hairline); padding: var(--space-lg); background: transparent; }
.address-block .place {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em; margin: 0 0 var(--space-2xs); line-height: 1;
}
.address-block p { margin: var(--space-2xs) 0; }
.address-block .maps-link { margin-top: var(--space-sm); }
.address-block .actions { margin-top: var(--space-md); }

/* —— Lumber: CTA row after the rail —— */
.after-rail { margin-top: var(--space-xl); }

/* —— Inquire form —— */
.form-layout {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.75fr);
  gap: var(--space-xl) var(--space-2xl); align-items: start;
}
.form {
  display: grid; gap: var(--space-md); border: 1px solid var(--hairline);
  padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper-warm);
}
.field { display: grid; gap: var(--space-xs); }
.field label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink);
}
.field .hint { color: var(--ink-mute); text-transform: none; letter-spacing: 0; font-size: 0.78rem; margin-left: 0.35rem; }
.field input, .field select, .field textarea {
  font: inherit; min-height: 48px; padding: 0.75rem 0.85rem; border: 1px solid var(--control-line);
  background: #FFFCF6; color: var(--ink); border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--oxide); outline-offset: 1px; border-color: var(--oxide);
}
.form-status { display: none; padding: var(--space-md); border: 1px solid var(--hairline); background: var(--chalk); margin-top: var(--space-xs); }
.form-status.is-visible { display: block; }
.form-status[data-state="error"] { border-color: var(--oxide); border-left-width: 4px; }
.form-status p { margin: 0 0 var(--space-xs); } .form-status p:last-child { margin-bottom: 0; }
.form-col { display: grid; gap: var(--space-md); min-width: 0; }
.form-note { margin: 0; padding: var(--space-sm) var(--space-md); border-left: 4px solid var(--oxide); background: var(--chalk); color: var(--ink); }
.form-note[hidden] { display: none; }
.field-group { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-md); min-width: 0; }
.field-group legend {
  padding: 0; margin-bottom: var(--space-sm);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.field-group legend .hint { color: var(--ink-mute); text-transform: none; letter-spacing: 0; font-size: 0.78rem; margin-left: 0.35rem; }
/* 16px minimum so iOS Safari never zooms into a field */
.field input, .field select, .field textarea { font-size: max(1rem, 16px); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--oxide); }
.form .btn[disabled] { opacity: 0.7; cursor: progress; }
.form-done { border: 1px solid var(--hairline); border-left: 4px solid var(--oxide); padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper-warm); }
.form-done[hidden] { display: none; }
.form-done .h2 { margin: var(--space-xs) 0 var(--space-sm); }
.form-done p { margin: 0 0 var(--space-sm); }
.form-done .btn { margin-top: var(--space-sm); }
.form-done:focus { outline: 2px solid var(--oxide); outline-offset: 3px; }
.form-layout aside .address-block { margin-top: var(--space-xl); }
@media (max-width: 860px) { .form-layout { grid-template-columns: minmax(0, 1fr); } }

/* —— Closing CTA band (end-grain) —— */
.cta-band {
  position: relative;
  overflow: clip;
  background: var(--bark);
  color: var(--chalk);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  --focus: #F2CFA6;
}
.cta-band .display-xl {
  color: var(--chalk);
  max-width: 14ch;
  margin-bottom: max(var(--space-md), 0.35em);
}
.cta-band .lead { color: var(--cream); max-width: 36rem; }
.cta-band .lead a, .cta-band a:not(.btn) { color: var(--chalk); }
.cta-band .kicker { color: var(--cream-dim); }
.cta-band .btn-call {
  border-color: rgba(230, 226, 216, 0.55); color: var(--chalk);
}
.cta-band .btn-call:hover {
  background: var(--chalk); color: var(--ink); border-color: var(--chalk);
}
.cta-band-inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
}
.cta-band-copy { max-width: min(36rem, 100%); }
.cta-band-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md);
  align-items: center; margin-top: var(--space-lg);
}
.cta-band-mail {
  font-size: 0.92rem; text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
  display: inline-flex; align-items: center; min-height: 44px;
}
.cta-band-mail:hover { text-decoration: underline; }

.end-grain {
  position: absolute;
  inset-block: 0;
  right: -8%;
  width: min(62vw, 34rem);
  max-width: 100%;
  pointer-events: none;
  display: grid; place-items: center;
}
.end-grain-svg {
  display: block;
  width: 130%;
  height: auto;
  max-width: none;
  transform: translateX(18%);
}
.eg-ring { transition: stroke-dashoffset 1.15s var(--ease), opacity 0.85s var(--ease); }
.eg-sap { stroke: var(--sap); stroke-width: 1.15; stroke-opacity: 0.22; }
.eg-heart { stroke: var(--heart); stroke-width: 2.65; stroke-opacity: 0.32; }
.eg-check {
  stroke: var(--sap); stroke-width: 1.1; stroke-opacity: 0.28;
  transition: stroke-dashoffset 1s var(--ease), opacity 0.8s var(--ease);
}
.js-ready .cta-band .eg-ring,
.js-ready .cta-band .eg-check {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  opacity: 0;
}
.js-ready .cta-band.is-in .eg-ring,
.js-ready .cta-band.is-in .eg-check,
html.preview-mode .cta-band .eg-ring,
html.preview-mode .cta-band .eg-check {
  stroke-dashoffset: 0;
  opacity: 1;
}
.js-ready .cta-band.is-in .eg-ring:nth-child(1),
.js-ready .cta-band.is-in .eg-check:nth-child(15) { transition-delay: 0s; }
.js-ready .cta-band.is-in .eg-ring:nth-child(2) { transition-delay: 0.04s; }
.js-ready .cta-band.is-in .eg-ring:nth-child(3) { transition-delay: 0.08s; }
.js-ready .cta-band.is-in .eg-ring:nth-child(4) { transition-delay: 0.12s; }
.js-ready .cta-band.is-in .eg-ring:nth-child(5) { transition-delay: 0.16s; }
.js-ready .cta-band.is-in .eg-ring:nth-child(6) { transition-delay: 0.2s; }
.js-ready .cta-band.is-in .eg-ring:nth-child(7) { transition-delay: 0.24s; }
.js-ready .cta-band.is-in .eg-ring:nth-child(8) { transition-delay: 0.28s; }
.js-ready .cta-band.is-in .eg-ring:nth-child(9) { transition-delay: 0.32s; }
.js-ready .cta-band.is-in .eg-ring:nth-child(10) { transition-delay: 0.36s; }
.js-ready .cta-band.is-in .eg-ring:nth-child(11) { transition-delay: 0.4s; }
.js-ready .cta-band.is-in .eg-ring:nth-child(12) { transition-delay: 0.44s; }
.js-ready .cta-band.is-in .eg-ring:nth-child(13) { transition-delay: 0.48s; }
.js-ready .cta-band.is-in .eg-ring:nth-child(14) { transition-delay: 0.52s; }
.js-ready .cta-band.is-in .eg-check:nth-child(16) { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .js-ready .cta-band .eg-ring,
  .js-ready .cta-band .eg-check {
    stroke-dashoffset: 0; opacity: 1; transition: none !important;
  }
}
@media (max-width: 760px) {
  .end-grain { width: min(78vw, 22rem); right: -18%; opacity: 0.85; }
  .end-grain-svg { transform: translateX(22%); width: 140%; }
  .cta-band .display-xl { font-size: clamp(2.4rem, 11vw, 3.75rem); }
}

/* —— Footer / mobile hold —— */
.mobile-hold {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding: 0.55rem var(--pad) calc(0.55rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--chalk) 96%, transparent);
  border-top: 1px solid var(--hairline);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  gap: 0.55rem;
}
.mobile-hold .btn {
  flex: 1 1 0; width: auto; min-width: 0; min-height: 48px; height: 48px;
  padding: 0 0.75rem; font-size: 0.82rem;
}
.mobile-hold .btn-call { color: var(--ink); border-color: var(--ink); }
.mobile-hold .btn-call:hover { background: var(--ink); color: var(--chalk); }
.foot {
  position: relative;
  border-top: none;
  padding-block: var(--space-2xl) var(--space-xl);
  background: var(--chalk);
  overflow-x: clip;
}
.foot-kerf {
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px; width: 100%;
  background: var(--kerf);
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 0.95s var(--ease);
  pointer-events: none;
}
.js-ready .foot:not(.is-in) .foot-kerf { transform: scaleX(0); }
.js-ready .foot.is-in .foot-kerf,
html.preview-mode .foot .foot-kerf { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .foot-kerf { transform: scaleX(1); transition: none !important; }
}
@media (max-width: 760px) {
  .mobile-hold { display: flex; align-items: stretch; }
  /* Hold bar clearance lives in the footer so end-of-page content scrolls above it */
  .foot {
    --mobile-hold-h: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(var(--space-xl) + var(--mobile-hold-h));
  }
  .page-inquire .mobile-hold .mobile-hold-quote { display: none; }
}
.foot-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr 0.8fr;
  gap: var(--space-xl) var(--space-lg);
  align-items: start;
}
.foot-col { min-width: 0; }
.foot-label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 var(--space-sm);
}
.foot-brand { display: flex; align-items: center; gap: var(--space-sm); margin: 0; }
.foot-brand img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.foot-brand strong { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.015em; }
.foot-brand strong { position: relative; top: 1px; } /* optical: wordmark ink centre = badge centre */
.foot-col > p { margin: var(--space-xs) 0 0; }
.foot-col > .foot-brand + p { margin-top: var(--space-sm); }
.foot-desc { color: var(--ink-mute); font-size: 0.92rem; line-height: 1.45; }
.foot-address { margin: 0; color: var(--ink); line-height: 1.45; }
.foot-bar {
  max-width: var(--max); margin: var(--space-xl) auto 0; padding: var(--space-md) var(--pad) 0;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg);
  justify-content: space-between; align-items: center;
}
.foot-copy {
  margin: 0; font-size: 0.82rem; color: var(--ink-mute);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.foot-social {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
}
.foot-social a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 44px; text-decoration: none;
}
.foot-social svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a { text-decoration: none; }
/* 44px tap targets for standalone links (footer contact, Instagram, maps, contact blocks) */
.foot p > a, .foot-contact a, .maps-link a, .address-block a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; }
.foot-contact a[href^="mailto:"] {
  display: inline;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 0.9rem;
  line-height: 1.45;
  min-height: 44px;
  padding-block: 0.55rem;
}
.foot nav a { min-width: 44px; }
.skip { min-height: 44px; }
.frame-list span > a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .foot-inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .foot-bar { flex-direction: column; align-items: flex-start; }
}

/* —— Reveals —— */
.js-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-ready .reveal.is-in, html.preview-mode .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-ready .reveal { opacity: 1; transform: none; } }

/* View transitions */
@view-transition { navigation: auto; }
@supports (view-transition-name: none) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
}

/* Lead-form honeypot: off-screen (not display:none) so bots fill it; humans never see it */
.hp{position:absolute!important;left:-10000px!important;top:auto;width:1px;height:1px;overflow:hidden}
.form{position:relative}

/* Contact info (approved 2026-09-29) */
.lead a[href^="mailto:"], .address-block a[href^="tel:"], .address-block a[href^="mailto:"] { overflow-wrap: anywhere; }
.foot-contact a[href^="mailto:"] { overflow-wrap: normal; word-break: normal; }

/* Keep .wrap gutters when a section class is on the same element */
.wrap.page-hero, .wrap.section-tight, .wrap.section { padding-left: var(--pad); padding-right: var(--pad); }

/* —— Inner pages: board-foot calc, ask strip, yard mosaic, inquire aside —— */
.bf-calc .lead { margin-bottom: var(--space-xl); }
.bf-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.bf-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}
.bf-result-panel {
  border: 1px solid var(--hairline);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--chalk);
  min-width: 0;
}
.bf-result {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 var(--space-md);
  color: var(--ink);
  text-wrap: balance;
}
.bf-result-num { display: inline; }
.bf-note { margin: var(--space-md) 0 0; }
@media (max-width: 800px) {
  .bf-calc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .bf-fields { grid-template-columns: minmax(0, 1fr); }
}

.ask-strip {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.ask-strip > li {
  background: var(--chalk);
  padding: var(--space-lg) var(--space-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm) var(--space-md);
  align-items: start;
  min-width: 0;
}
.ask-strip-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--kerf);
  line-height: 1.4;
  padding-top: 0.15rem;
}
.ask-strip strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2xs);
  color: var(--ink);
}
.ask-strip span:not(.ask-strip-num) {
  display: block;
  color: var(--ink-mute);
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (max-width: 800px) {
  .ask-strip { grid-template-columns: minmax(0, 1fr); }
}

.around-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: var(--space-xl);
}
.around-mosaic-item { margin: 0; min-width: 0; }
.around-mosaic-frame {
  position: relative;
  overflow: hidden;
  background: var(--void);
  isolation: isolate;
}
.around-mosaic-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not(.preview-mode) .around-mosaic-item:hover .around-mosaic-frame img { transform: scale(1.03); }
}
.around-mosaic-cap {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.3;
}
.around-mosaic-a { grid-column: span 5; }
.around-mosaic-a .around-mosaic-frame { aspect-ratio: 3 / 4; }
.around-mosaic-b { grid-column: span 7; }
.around-mosaic-b .around-mosaic-frame { aspect-ratio: 16 / 10; }
.around-mosaic-c { grid-column: span 4; }
.around-mosaic-c .around-mosaic-frame { aspect-ratio: 4 / 5; }
.around-mosaic-d { grid-column: span 4; }
.around-mosaic-d .around-mosaic-frame { aspect-ratio: 4 / 5; }
.around-mosaic-e { grid-column: span 4; }
.around-mosaic-e .around-mosaic-frame { aspect-ratio: 4 / 5; }
.around-mosaic-f { grid-column: span 12; }
.around-mosaic-f .around-mosaic-frame { aspect-ratio: 21 / 9; max-height: 16rem; }
@media (max-width: 800px) {
  .around-mosaic-a,
  .around-mosaic-b,
  .around-mosaic-c,
  .around-mosaic-d,
  .around-mosaic-e,
  .around-mosaic-f { grid-column: span 6; }
  .around-mosaic-f .around-mosaic-frame { aspect-ratio: 16 / 10; max-height: none; }
}
@media (max-width: 520px) {
  .around-mosaic-a,
  .around-mosaic-b,
  .around-mosaic-c,
  .around-mosaic-d,
  .around-mosaic-e,
  .around-mosaic-f { grid-column: span 12; }
}

.inquire-aside { min-width: 0; }
.inquire-aside .mill-timeline { margin-top: var(--space-md); }
.inquire-contact { margin-top: var(--space-xl); }
.inquire-contact-actions { margin-top: var(--space-md); }
.inquire-contact .muted { margin-top: var(--space-sm); }

/* 404 */
.notfound-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.notfound-links { list-style: none; padding: 0; margin: var(--space-lg) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.notfound-links a { display: inline-block; padding: 0.6rem 0; }
/* lead form states: [hidden] must win over .form's display; long email links must wrap at 360px */
.form[hidden] { display: none; }
.form, .form-col > * { min-width: 0; }
.form-status, .form-done, .form-note { overflow-wrap: anywhere; }
/* never split a phone number across lines */
a[href^="tel:"] { white-space: nowrap; }
a.btn-call[href^="tel:"], .nav a.nav-call[href^="tel:"] { white-space: normal; }
.form-lede { margin: 0; color: var(--ink); font-weight: 500; }
.form-lede[hidden] { display: none; }
/* the live note above the form is redundant once the thank-you panel is showing (also set via [hidden] in site.js) */
.form-col:has(.form-done:not([hidden])) .form-lede { display: none; }

/* —— Creative pass utilities (chapter / mask / split / cursor / rail) —— */
.num-giant {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-giant);
  line-height: 0.78;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.25px rgba(14, 14, 12, 0.35);
  text-stroke: 1.25px rgba(14, 14, 12, 0.35);
  pointer-events: none;
  user-select: none;
  opacity: 1;
}
/* Theme stroke contrast: paper = dark ink outline; bark/ink = light chalk outline */
.chapter[data-theme="paper"] .num-giant,
[data-theme="paper"] .num-giant {
  -webkit-text-stroke-color: rgba(14, 14, 12, 0.35);
  text-stroke-color: rgba(14, 14, 12, 0.35);
}
.chapter[data-theme="bark"] .num-giant,
.chapter[data-theme="ink"] .num-giant,
[data-theme="bark"] .num-giant,
[data-theme="ink"] .num-giant {
  -webkit-text-stroke-color: rgba(230, 226, 216, 0.35);
  text-stroke-color: rgba(230, 226, 216, 0.35);
}
/* Fallback when text-stroke is unsupported: very low-opacity solid fill */
@supports not (-webkit-text-stroke: 1px black) {
  .num-giant {
    -webkit-text-fill-color: unset;
    color: rgba(14, 14, 12, 0.12);
    opacity: 1;
  }
  .chapter[data-theme="paper"] .num-giant,
  [data-theme="paper"] .num-giant {
    color: rgba(14, 14, 12, 0.12);
  }
  .chapter[data-theme="bark"] .num-giant,
  .chapter[data-theme="ink"] .num-giant,
  [data-theme="bark"] .num-giant,
  [data-theme="ink"] .num-giant {
    color: rgba(230, 226, 216, 0.12);
  }
}
.chapter-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: var(--space-xl);
  min-height: 0;
}
.chapter-head .num-giant {
  position: static;
  display: block;
  top: auto;
  left: auto;
  z-index: auto;
  margin: 0 0 0.2em;
  line-height: 0.8;
}
.chapter-head .chapter-label {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.72;
}
.chapter-head .chapter-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
/* Reveals must leave numerals visible (parent .reveal.is-in / reduced motion) */
.js-ready .chapter-head.reveal.is-in .num-giant,
.js-ready .chapter-head .num-giant,
html.preview-mode .num-giant {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .num-giant { opacity: 1 !important; }
}
@media (max-width: 700px) {
  .chapter-head .num-giant { font-size: clamp(3.5rem, 18vw, 5.5rem); }
}

/* Split-line headline rise (HTML: .line > span) */
.split-lines .line {
  display: block;
  overflow: hidden;
}
.split-lines .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.split-lines.is-revealed .line > span,
.split-lines.is-shown .line > span,
.js-ready .hero-slab.is-ready .split-lines .line > span {
  transform: translateY(0);
}
.split-lines .line:nth-child(2) > span { transition-delay: 0.1s; }
.split-lines .line:nth-child(3) > span { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  .split-lines .line > span { transform: none !important; transition: none !important; }
}
html.preview-mode .split-lines .line > span { transform: none !important; transition: none !important; }

/* Mask reveal: clip-path inset → 0 + image scale 1.12 → 1 */
.mask-reveal {
  overflow: clip;
  clip-path: inset(12% 12% 12% 12% round 2px);
  transition: clip-path 1s var(--ease);
}
.mask-reveal img,
.mask-reveal video {
  transform: scale(1.12);
  transform-origin: center;
  transition: transform 1.15s var(--ease);
  will-change: transform;
}
.mask-reveal.is-revealed {
  clip-path: inset(0 round 0);
}
.mask-reveal.is-revealed img,
.mask-reveal.is-revealed video {
  transform: scale(1);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mask-reveal:not(.is-revealed) {
      animation: mask-reveal-clip linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 45%;
    }
    .mask-reveal:not(.is-revealed) img,
    .mask-reveal:not(.is-revealed) video {
      animation: mask-reveal-scale linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 45%;
    }
  }
}
@keyframes mask-reveal-clip {
  from { clip-path: inset(12% 12% 12% 12% round 2px); }
  to { clip-path: inset(0 round 0); }
}
@keyframes mask-reveal-scale {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .mask-reveal {
    clip-path: none !important;
    animation: none !important;
  }
  .mask-reveal img,
  .mask-reveal video {
    transform: none !important;
    animation: none !important;
  }
}
html.preview-mode .mask-reveal {
  clip-path: none !important;
  animation: none !important;
}
html.preview-mode .mask-reveal img,
html.preview-mode .mask-reveal video {
  transform: none !important;
  animation: none !important;
}

/* Cursor accent ring (pointer:fine only; JS mounts .cursor-accent) */
.cursor-accent {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid color-mix(in srgb, var(--kerf) 70%, var(--chalk));
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--cursor-z);
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) scale(1);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease),
    opacity 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  display: flex; align-items: center; justify-content: center;
  mix-blend-mode: difference;
}
.cursor-accent.is-on { opacity: 0.9; }
.cursor-accent.is-label {
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  border-color: var(--chalk);
  mix-blend-mode: normal;
}
.cursor-accent-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cursor-accent.is-label .cursor-accent-label { opacity: 1; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-accent { display: none !important; }
}
html.preview-mode .cursor-accent { display: none !important; }

/* Desktop sticky chapter rail — only when a free gutter exists (≥1400px) */
.chapter-rail {
  display: none;
}
@media (min-width: 1400px) {
  .chapter-rail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    position: fixed;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 35;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .chapter-rail.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .chapter-rail a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.15rem 0.35rem 0.15rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: color-mix(in srgb, var(--ink) 55%, transparent);
    transition: color 0.25s ease;
  }
  body[data-theme="bark"] .chapter-rail a,
  body[data-theme="ink"] .chapter-rail a {
    color: color-mix(in srgb, var(--chalk) 55%, transparent);
  }
  .chapter-rail a::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 1px; height: 100%;
    transform: translateY(-50%);
    background: color-mix(in srgb, currentColor 35%, transparent);
  }
  .chapter-rail a.is-active {
    color: var(--kerf);
  }
  body[data-theme="bark"] .chapter-rail a.is-active,
  body[data-theme="ink"] .chapter-rail a.is-active {
    color: var(--sap);
  }
  .chapter-rail a.is-active::before {
    width: 2px;
    background: currentColor;
  }
  .chapter-rail a:focus-visible {
    outline: 2px solid var(--kerf);
    outline-offset: 2px;
    color: var(--kerf);
  }
  body[data-theme="bark"] .chapter-rail a:focus-visible,
  body[data-theme="ink"] .chapter-rail a:focus-visible {
    outline-color: var(--sap);
    color: var(--sap);
  }
  .chapter-rail-progress {
    position: absolute;
    left: 0;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 2px;
    background: color-mix(in srgb, currentColor 18%, transparent);
    pointer-events: none;
    color: inherit;
  }
  .chapter-rail-progress > i {
    display: block;
    width: 100%;
    height: 0%;
    background: var(--kerf);
    transition: height 0.2s linear;
  }
}

/* —— Visually hidden (a11y) —— */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* —— Chapter placeholders (filled in later creative tasks) —— */
.chapter-placeholder {
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
}

/* —— SPECIES horizontal gallery (solid ink while pinned) —— */
.species-gallery {
  --species-ink: var(--ink);
  --species-paper: var(--paper-warm);
  position: relative;
  color: var(--chalk);
  background: var(--species-ink);
  overflow-x: clip;
  --focus: #F2CFA6;
}
.species-gallery-pin {
  position: relative;
  width: 100%;
  background: var(--species-ink);
}
.species-gallery-sticky {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  padding-block: clamp(1.25rem, 3vw, 2rem);
  padding-inline: var(--pad);
  box-sizing: border-box;
  background: var(--species-ink);
}
/* Mobile heading block (above rail). Desktop: visually hidden; real h2 kept for a11y. */
.species-gallery-heading {
  display: none;
  flex-direction: column;
  gap: var(--space-md);
  max-width: var(--max);
  width: 100%;
  margin: 0;
  color: var(--chalk);
}
.species-gallery-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--max);
  width: 100%;
  margin-inline: auto;
}
.species-gallery-counter {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--chalk) 72%, transparent);
}
.species-gallery-nav {
  display: inline-flex;
  gap: var(--space-xs);
}
.species-gallery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--chalk) 35%, transparent);
  background: color-mix(in srgb, var(--ink) 35%, transparent);
  color: var(--chalk);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.species-gallery-btn:hover,
.species-gallery-btn:focus-visible {
  background: color-mix(in srgb, var(--chalk) 12%, transparent);
  border-color: color-mix(in srgb, var(--chalk) 70%, transparent);
  color: var(--chalk);
}
.species-gallery-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.species-gallery-viewport {
  position: relative;
  width: 100%;
  max-width: none;
  outline: none;
}
.species-gallery-viewport:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.species-gallery-track {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 2rem);
  will-change: transform;
}
.species-h-panel {
  flex: 0 0 auto;
  min-width: 0;
  box-sizing: border-box;
}
.species-h-intro {
  width: min(40vw, 28rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  padding-inline-end: clamp(0.5rem, 2vw, 1.5rem);
  color: var(--chalk);
}
.species-h-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sap) 80%, var(--chalk));
}
.species-h-display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-display);
  letter-spacing: -0.03em;
  line-height: 0.95;
  max-width: 9ch;
  color: var(--chalk);
}
.species-h-display em {
  font-style: italic;
  font-weight: 450;
  color: var(--sap);
}
.species-h-note {
  margin: 0;
  max-width: 28ch;
  font-size: 0.98rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--cream) 88%, transparent);
}
.species-h-card {
  width: min(32vw, 26rem);
  height: clamp(18rem, calc(100svh - var(--header-h) - 11rem), 72svh);
  max-height: 780px;
  display: flex;
  flex-direction: column;
  background: var(--paper-warm);
  color: var(--ink);
  overflow: hidden;
}
.species-h-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--void);
  isolation: isolate;
}
.species-h-parallax {
  position: absolute;
  inset: -4% -8%;
  will-change: transform;
}
.species-h-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.species-h-body {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--paper-warm);
  border-top: 1px solid var(--hairline);
}
.species-h-index {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--ink) 12%, transparent);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.species-h-name {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-right: 3.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.species-h-outro {
  width: min(36vw, 24rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--ink);
  color: var(--chalk);
  --focus: #F2CFA6;
}
.species-h-outro-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 10ch;
  color: var(--chalk);
}
.species-h-outro-copy {
  margin: 0;
  max-width: 22ch;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--cream);
}
.species-h-outro .btn { align-self: flex-start; }
.species-gallery-progress {
  height: 2px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  background: color-mix(in srgb, var(--chalk) 18%, transparent);
  overflow: hidden;
}
.species-gallery-progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--kerf);
  transform-origin: left center;
}

/* Desktop pinned horizontal scroll */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  html:not(.preview-mode) .species-gallery-pin {
    /* height set by JS from track overflow; fallback keeps section usable */
    min-height: calc(100svh + 180vw);
  }
  html:not(.preview-mode) .species-gallery-sticky {
    position: sticky;
    top: var(--header-h);
    height: calc(100svh - var(--header-h));
    padding-block: clamp(0.75rem, 2vh, 1.5rem);
    padding-inline: 0;
  }
  html:not(.preview-mode) .species-gallery-heading {
    /* Keep h2 for a11y; visual intro lives in the rail */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    display: block;
  }
  html:not(.preview-mode) .species-gallery-chrome,
  html:not(.preview-mode) .species-gallery-progress {
    padding-inline: var(--pad);
    box-sizing: border-box;
  }
  html:not(.preview-mode) .species-gallery-viewport {
    overflow: hidden;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    cursor: grab;
    touch-action: pan-y;
  }
  html:not(.preview-mode) .species-gallery-viewport.is-dragging {
    cursor: grabbing;
  }
  html:not(.preview-mode) .species-gallery-track {
    transform: translate3d(0, 0, 0);
    /* Align intro with site container; end pad so last panel can reach centre */
    padding-left: var(--gutter);
    padding-right: calc(50vw - min(18vw, 12rem));
    box-sizing: content-box;
  }
}
@supports (animation-timeline: view()) {
  @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    html:not(.preview-mode) .species-gallery.is-css-scroll .species-gallery-pin {
      view-timeline-name: --species-tl;
      view-timeline-axis: block;
    }
    html:not(.preview-mode) .species-gallery.is-css-scroll .species-gallery-track {
      animation: species-track-x linear both;
      animation-timeline: --species-tl;
      animation-range: contain 0% contain 100%;
    }
    html:not(.preview-mode) .species-gallery.is-css-scroll .species-h-parallax {
      animation: species-img-parallax linear both;
      animation-timeline: --species-tl;
      animation-range: contain 0% contain 100%;
    }
  }
}
@keyframes species-track-x {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--species-max-x, 0px)), 0, 0); }
}
@keyframes species-img-parallax {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(6%, 0, 0); }
}

/* Mobile / tablet / reduced-motion / preview: native snap rail */
@media (max-width: 1023px) {
  .species-gallery {
    background: var(--ink);
  }
  .species-gallery-sticky {
    gap: var(--space-sm);
    padding-block: clamp(2rem, 6vw, 3.5rem);
  }
  .species-gallery-heading {
    display: flex;
    order: 0;
    margin-bottom: var(--space-sm);
  }
  .species-gallery-viewport {
    order: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--chalk) 40%, transparent) transparent;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
  }
  .species-gallery-chrome {
    order: 2;
    margin-top: var(--space-xs);
  }
  .species-gallery-progress {
    order: 3;
    max-width: none;
  }
  .species-gallery-track {
    transform: none !important;
    width: max-content;
  }
  /* Intro lives in heading above; hide rail intro and start on Walnut */
  .species-h-intro {
    display: none !important;
  }
  .species-h-card {
    width: min(80vw, 22rem);
    height: auto;
    max-height: none;
    min-height: min(68svh, 560px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .species-h-media {
    aspect-ratio: 3 / 4;
    flex: 0 0 auto;
    height: auto;
    min-height: 240px;
  }
  .species-h-parallax {
    transform: none !important;
    animation: none !important;
  }
  .species-h-outro {
    width: min(80vw, 22rem);
    min-height: min(52svh, 420px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .species-h-index {
    font-size: clamp(2rem, 12vw, 3rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .species-gallery-pin {
    min-height: 0 !important;
    height: auto !important;
  }
  .species-gallery-sticky {
    position: static !important;
    height: auto !important;
    padding-inline: var(--pad);
  }
  .species-gallery-heading {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 var(--space-sm);
    clip: auto;
    overflow: visible;
    white-space: normal;
  }
  .species-gallery-viewport {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    cursor: auto !important;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
  }
  .species-gallery-track {
    transform: none !important;
    animation: none !important;
    width: max-content;
    padding-left: 0;
    padding-right: 0;
  }
  .species-h-parallax {
    transform: none !important;
    animation: none !important;
  }
  .species-h-intro {
    display: none !important;
  }
  .species-h-card,
  .species-h-outro {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .species-h-card {
    width: min(80vw, 22rem);
    height: auto;
    max-height: none;
    min-height: min(68svh, 560px);
  }
  .species-h-media {
    aspect-ratio: 3 / 4;
    flex: 0 0 auto;
    min-height: 240px;
  }
  .species-h-outro {
    width: min(80vw, 22rem);
    min-height: min(52svh, 420px);
  }
}
html.preview-mode .species-gallery-pin {
  min-height: 0 !important;
  height: auto !important;
}
html.preview-mode .species-gallery-sticky {
  position: static !important;
  height: auto !important;
  padding-inline: var(--pad);
}
html.preview-mode .species-gallery-heading {
  display: flex;
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 var(--space-sm);
  clip: auto;
  overflow: visible;
  white-space: normal;
}
html.preview-mode .species-gallery-viewport {
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  cursor: auto !important;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
}
html.preview-mode .species-gallery-track {
  transform: none !important;
  animation: none !important;
  width: max-content;
  padding-left: 0;
  padding-right: 0;
}
html.preview-mode .species-h-parallax {
  transform: none !important;
  animation: none !important;
}
html.preview-mode .species-h-intro {
  display: none !important;
}
html.preview-mode .species-h-card,
html.preview-mode .species-h-outro {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  width: min(80vw, 22rem);
}
html.preview-mode .species-h-card {
  height: auto;
  max-height: none;
  min-height: min(68svh, 560px);
}
html.preview-mode .species-h-media {
  aspect-ratio: 3 / 4;
  flex: 0 0 auto;
  min-height: 240px;
}

/* Paper end of gallery: chrome shifts for contrast on light ground */
.species-gallery.is-near-end .species-gallery-counter {
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.species-gallery.is-near-end .species-gallery-btn {
  border-color: color-mix(in srgb, var(--ink) 28%, transparent);
  background: color-mix(in srgb, var(--paper-warm) 70%, transparent);
  color: var(--ink);
}
.species-gallery.is-near-end .species-gallery-progress {
  background: color-mix(in srgb, var(--ink) 14%, transparent);
}

@media (max-width: 360px) {
  .species-gallery {
    overflow-x: clip;
  }
  .species-gallery-viewport {
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
  }
  .species-h-intro,
  .species-h-card,
  .species-h-outro {
    width: min(80vw, 18.5rem);
  }
  .species-h-display {
    font-size: clamp(2.4rem, 11vw, 3rem);
  }
  .species-h-body { padding: var(--space-sm); }
}

/* —— CHAPTER 01 — THE LOG (Aiyanna sticky-media pattern) —— */
.chapter-log {
  background: var(--paper-warm);
  color: var(--ink);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.chapter-log-layout {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}
.chapter-log-stack {
  position: relative;
  height: 100%;
  min-height: min(72svh, 640px);
}
.chapter-log-main {
  margin: 0;
  height: 100%;
  min-height: inherit;
  background: color-mix(in srgb, var(--bark) 12%, var(--paper-warm));
}
.chapter-log-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.chapter-log-inset {
  margin: 0;
  position: absolute;
  right: clamp(0.65rem, 2vw, 1.25rem);
  bottom: clamp(0.65rem, 2vw, 1.25rem);
  width: min(38%, 180px);
  aspect-ratio: 3 / 4;
  box-shadow: 0 12px 32px rgba(14, 14, 12, 0.28);
  background: var(--bark);
  z-index: 2;
}
.chapter-log-inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chapter-log-copy {
  max-width: 38rem;
}
.chapter-log .chapter-head {
  margin-bottom: var(--space-lg);
}
.chapter-log .chapter-title em {
  font-style: italic;
  font-weight: 450;
}
.chapter-log-lead {
  margin: 0 0 var(--space-2xl);
  max-width: 36ch;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--walnut);
}
.chapter-log-moments {
  display: grid;
  gap: 0;
}
.big-moment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48vh;
  padding-block: var(--space-xl);
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.js-ready .big-moment {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.js-ready .big-moment.is-in,
.js-ready .big-moment.is-shown {
  opacity: 1;
  transform: none;
}
.big-moment-num {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-giant);
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.big-moment-unit {
  font-size: 0.38em;
  letter-spacing: -0.02em;
  margin-left: 0.08em;
  vertical-align: 0.18em;
}
.big-moment-cap {
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--walnut);
  max-width: 28ch;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js-ready .big-moment:not(.is-shown) {
      opacity: 1;
      transform: none;
      animation: big-moment-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 35%;
    }
  }
}
@keyframes big-moment-in {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop: sticky photo column, scrolling copy + big numbers */
@media (min-width: 901px) {
  .chapter-log-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(2.25rem, 5vw, 4.75rem);
  }
  .chapter-log-media {
    position: sticky;
    top: var(--header-h);
    height: calc(100svh - var(--header-h));
    align-self: start;
  }
  .chapter-log-stack {
    min-height: 0;
    height: 100%;
  }
  .big-moment {
    min-height: 60vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chapter-log-media {
    position: static !important;
    height: auto !important;
  }
  .big-moment {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    min-height: 0;
    padding-block: var(--space-lg);
  }
}
html.preview-mode .chapter-log-media {
  position: static !important;
  height: auto !important;
}
html.preview-mode .big-moment {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Mobile: image first, then text + numbers stacked tightly */
@media (max-width: 900px) {
  .chapter-log {
    padding-block: clamp(2.25rem, 6vw, 3.25rem);
  }
  .chapter-log-stack {
    min-height: min(58svh, 480px);
  }
  .chapter-log-inset {
    width: min(42%, 140px);
  }
  .chapter-log .chapter-head .num-giant {
    font-size: clamp(3.5rem, 18vw, 5.5rem);
  }
  .chapter-log .chapter-title {
    font-size: clamp(2rem, 8vw, 3rem);
    max-width: 12ch;
  }
  .chapter-log-lead {
    margin-bottom: var(--space-xl);
  }
  .big-moment {
    min-height: 0;
    padding-block: var(--space-lg);
  }
  .big-moment-num {
    font-size: clamp(3.25rem, 18vw, 5.5rem);
  }
}

/* —— CHAPTER 05 — YOUR PROJECT —— */
.chapter-project {
  background: var(--bark);
  color: var(--chalk);
  --focus: #F2CFA6;
  overflow-x: clip;
}
.chapter-project .chapter-head { color: var(--chalk); }
.chapter-project .chapter-label { opacity: 0.7; }
.project-close {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem);
  overflow: clip;
}
.project-close .end-grain {
  inset: auto;
  top: 50%;
  left: 50%;
  right: auto;
  width: min(92vw, 48rem);
  height: min(92vw, 48rem);
  transform: translate(-50%, -52%);
  opacity: 0.7;
  z-index: 0;
}
.project-close .eg-sap { stroke-opacity: 0.28; }
.project-close .eg-heart { stroke-opacity: 0.4; }
.project-close .eg-check { stroke-opacity: 0.32; }
.project-close .end-grain-svg {
  width: 100%;
  height: auto;
  max-width: none;
  transform: none;
  transform-origin: 50% 50%;
  will-change: transform;
}
.project-close-head,
.project-close-lead,
.project-close-actions {
  position: relative;
  z-index: 1;
}
.project-close-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0;
  min-height: 0;
}
.project-close-head .num-giant {
  position: static;
  display: block;
  top: auto;
  left: auto;
  z-index: auto;
  font-size: var(--fs-giant);
  line-height: 0.8;
  margin: 0 0 0.2em;
}
.project-close-head .chapter-label {
  position: relative;
  z-index: 2;
  margin: 0 0 var(--space-sm);
  opacity: 0.7;
}
.project-close-head .project-close-title {
  position: relative;
  z-index: 2;
  grid-column: unset;
  grid-row: unset;
}
.project-close-title {
  font-size: var(--fs-giant) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.03em !important;
  max-width: none !important;
  width: 100%;
  color: var(--chalk);
  padding-bottom: 0.14em;
}
.project-close-title em {
  font-style: italic;
  font-weight: 450;
  color: var(--sap);
}
.project-close-lead {
  max-width: 36rem;
  color: var(--cream);
  margin: var(--space-lg) 0 var(--space-xl);
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
}
.project-close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  align-items: center;
}
.btn-quote-xl {
  min-height: 72px;
  height: 72px;
  padding: 0 2rem;
  font-size: 1.1rem;
}
.chapter-project .btn-call {
  border-color: rgba(230, 226, 216, 0.55);
  color: var(--chalk);
  min-height: 56px;
}
.chapter-project .btn-call:hover {
  background: var(--chalk);
  color: var(--ink);
  border-color: var(--chalk);
}
.chapter-project .btn-ghost {
  border-color: rgba(230, 226, 216, 0.55);
  color: var(--chalk);
}
.chapter-project .btn-ghost:hover {
  background: var(--chalk);
  color: var(--ink);
  border-color: var(--chalk);
}
.project-close-mail {
  font-size: 0.95rem;
  color: var(--chalk);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.project-close-mail:hover { text-decoration: underline; }

/* End-grain: slow scroll rotation (CSS view timeline + JS fallback) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not(.preview-mode) .project-close .end-grain-svg {
      animation: eg-scroll-spin linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes eg-scroll-spin {
  from { transform: rotate(-8deg) scale(1.02); }
  to { transform: rotate(18deg) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .project-close .end-grain-svg {
    animation: none !important;
    transform: none !important;
  }
}
html.preview-mode .project-close .end-grain-svg {
  animation: none !important;
  transform: none !important;
}

.project-where {
  padding-block: 0 clamp(3rem, 6vw, 4.5rem);
}
.project-where .location-card {
  background: color-mix(in srgb, var(--ink) 35%, transparent);
}

@media (max-width: 860px) {
  .project-where-layout {
    grid-template-columns: 1fr;
  }
  .btn-quote-xl {
    min-height: 56px;
    height: auto;
    width: 100%;
  }
  .project-close-actions .btn-call { width: 100%; }
  .project-close .end-grain {
    width: min(110vw, 28rem);
    height: min(110vw, 28rem);
    opacity: 0.4;
  }
}
@media (max-width: 700px) {
  .project-close-head .num-giant {
    font-size: clamp(3.5rem, 18vw, 5.5rem);
  }
  .project-close-title {
    font-size: clamp(3rem, 14vw, 5.5rem) !important;
  }
}

/* —— Instagram strip (after Ch.05) —— */
.ig-strip {
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--hairline);
}
.ig-strip-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-md) clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}
.ig-strip-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.ig-strip-thumbs {
  display: flex;
  gap: 0.55rem;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 0.25rem;
}
.ig-strip-thumbs::-webkit-scrollbar { display: none; }
.ig-strip-thumb {
  flex: 0 0 auto;
  width: clamp(4.25rem, 8vw, 5.5rem);
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--void);
  scroll-snap-align: start;
  display: block;
  transition: transform 0.35s var(--ease);
}
.ig-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not(.preview-mode) .ig-strip-thumb:hover {
    transform: translateY(-4px);
  }
  html:not(.preview-mode) .ig-strip-thumb:hover img {
    transform: scale(1.06);
  }
}
.ig-strip-actions {
  flex-wrap: nowrap;
}
.ig-strip-actions .btn {
  min-height: 44px;
  font-size: 0.82rem;
  padding: 0 1rem;
  white-space: nowrap;
}
@media (min-width: 901px) {
  .ig-strip-thumbs {
    overflow: visible;
    justify-content: flex-start;
  }
  .ig-strip-thumb {
    flex: 1 1 0;
    width: auto;
    max-width: 5.75rem;
  }
}
@media (max-width: 900px) {
  .ig-strip-inner {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .ig-strip-actions { width: 100%; }
  .ig-strip-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .ig-strip-actions { flex-direction: column; align-items: stretch; }
  .ig-strip-actions .btn { width: 100%; }
}

/* —— CHAPTER 03 — THE SLAB (specimen) —— */
.chapter-slab {
  background: var(--ink);
  color: var(--chalk);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  --focus: #F2CFA6;
  overflow-x: clip;
}
.chapter-slab .chapter-head { color: var(--chalk); }
.chapter-slab .chapter-title em {
  font-style: italic;
  font-weight: 450;
  color: var(--sap);
}
.chapter-slab .btn-ghost {
  border-color: rgba(230, 226, 216, 0.55);
  color: var(--chalk);
}
.chapter-slab .btn-ghost:hover {
  background: var(--chalk);
  color: var(--ink);
  border-color: var(--chalk);
}
.specimen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.75fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}
.specimen-stage-wrap {
  min-width: 0;
}
.specimen-stage {
  position: relative;
  margin: 0;
  max-height: 85svh;
  aspect-ratio: 3 / 4;
  background: var(--void);
  outline: none;
  cursor: crosshair;
  isolation: isolate;
  overflow: hidden;
}
.specimen-stage:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.specimen-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--chalk) 35%, transparent);
}
.specimen-tick {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--chalk);
  border-style: solid;
  border-width: 0;
  opacity: 0.85;
}
.specimen-tick--tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.specimen-tick--tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.specimen-tick--bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.specimen-tick--br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.specimen-img {
  width: 100%;
  height: 100%;
  max-height: 85svh;
  object-fit: cover;
  object-position: center;
  display: block;
}
.specimen-loupe {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--chalk) 70%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ink) 40%, transparent),
    0 12px 28px rgba(0, 0, 0, 0.45);
  background-repeat: no-repeat;
  background-size: 250%;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.15s ease;
  will-change: left, top, background-position;
}
.specimen-stage.is-louping .specimen-loupe {
  opacity: 1;
}
.specimen-stage.is-zoomed .specimen-img {
  transform: scale(2.5);
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transition: transform 0.35s var(--ease);
}
.specimen-stage:not(.is-zoomed) .specimen-img {
  transition: transform 0.35s var(--ease);
}
.specimen-stage.is-zoomed {
  overflow: hidden;
  cursor: zoom-out;
}
.specimen-stage.is-zoomed .specimen-loupe {
  display: none;
}

/* Hotspot markers */
.specimen-hotspot {
  position: absolute;
  left: var(--hx);
  top: var(--hy);
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.specimen-hotspot:focus-visible {
  outline: 2px solid var(--chalk);
  outline-offset: 3px;
}
.specimen-hotspot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--kerf);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--chalk) 80%, transparent);
  position: relative;
}
.specimen-hotspot-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--kerf);
  opacity: 0.7;
  animation: hotspot-pulse 2s ease-out infinite;
}
@keyframes hotspot-pulse {
  0% { transform: scale(0.7); opacity: 0.75; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.specimen-hotspot[aria-expanded="true"] .specimen-hotspot-dot {
  background: var(--chalk);
  box-shadow: 0 0 0 2px var(--kerf);
}
.specimen-note {
  position: absolute;
  z-index: 6;
  left: clamp(0.75rem, 4%, 1.25rem);
  right: auto;
  bottom: auto;
  top: calc(var(--hy, 50%) + 1.4rem);
  max-width: min(22rem, calc(100% - 1.5rem));
  margin: 0;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
#hotspot-live-edge {
  --hy: 42%;
  left: clamp(0.75rem, 8%, 2rem);
}
#hotspot-figure {
  --hy: 55%;
  left: auto;
  right: clamp(0.75rem, 8%, 2rem);
}
.specimen-note:not([hidden]) {
  display: block;
}

/* Museum specimen label card */
.specimen-label {
  font-family: var(--font-mono);
  border: 1px solid color-mix(in srgb, var(--chalk) 28%, transparent);
  padding: 1.25rem 1.35rem 1.4rem;
  max-width: 28rem;
  background: color-mix(in srgb, var(--ink) 92%, var(--bark));
}
.specimen-label-kicker {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--chalk) 28%, transparent);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk);
}
.specimen-label-meta {
  margin: 0 0 1.35rem;
  display: grid;
  gap: 0;
}
.specimen-label-meta > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem 0.75rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--chalk) 16%, transparent);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.specimen-label-meta dt {
  margin: 0;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
}
.specimen-label-meta dd {
  margin: 0;
  color: var(--chalk);
}
.specimen-aside {
  color: var(--cream-dim);
  font-size: 0.7rem;
}
.specimen-label-meta a {
  color: var(--chalk);
  text-underline-offset: 0.18em;
}
.specimen-label-meta a:hover { color: var(--sap); }
.specimen-label-actions {
  margin-top: 0.25rem;
}
.specimen-label-actions .btn {
  font-family: var(--font-sans);
}

@media (pointer: fine) {
  .specimen-stage.is-zoomed { cursor: zoom-out; }
}
@media (pointer: coarse), (max-width: 760px) {
  .specimen-loupe { display: none !important; }
  .specimen-stage { cursor: zoom-in; }
}

@media (max-width: 900px) {
  .specimen-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .specimen-stage {
    width: 100%;
    max-height: 85svh;
    aspect-ratio: 3 / 4;
  }
  .specimen-label {
    max-width: none;
  }
}
@media (max-width: 360px) {
  .specimen-label-meta > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .specimen-label-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .specimen-hotspot-dot::after { animation: none !important; opacity: 0.45; }
  .specimen-stage.is-zoomed .specimen-img,
  .specimen-stage:not(.is-zoomed) .specimen-img {
    transition: none !important;
  }
  .specimen-loupe { transition: none !important; }
}
html.preview-mode .specimen-hotspot-dot::after { animation: none !important; opacity: 0.45; }
