/* ============================================================
   LINHORD — Canvas Atelier
   Design system v3: "Night Atelier / Blueprint"
   Deep pine ground · bone type · oxide thread · paper bands
   Type: Space Grotesk / IBM Plex Mono — no serif, no italic:
   emphasis is the red thread.
   NOTE: legacy var names are kept as aliases so page markup
   (inline styles) needs no changes: --ink=text, --gesso=ground.
   ============================================================ */

:root {
  /* ---- LIGHT (default) — bone / cream ground, pine ink ---- */
  /* Fixed brand surfaces do not flip with the selected page theme. */
  --brand-cream: #F1EEE1;
  --brand-ink:   #182A20;
  --brand-pine:  #16241C;
  --brand-thread:#AA3F23;
  --brand-thread-on-pine:#E07149;
  --ground:   #F1EEE1;   /* page — warm bone / cream */
  --ground-2: #E7E2D1;   /* lifted panels / blueprint plates */
  --bone:     #182A20;   /* primary type — deep pine, near black */
  --bone-2:   #4C5C4E;   /* secondary type */
  --bone-3:   #60654F;   /* muted / captions — AA on the light panels */
  --paper:    #16241C;   /* inverted bands — flip to dark pine */
  --paper-2:  #1E2E24;
  --thread:   #AA3F23;   /* oxide red — AA on light ground and lifted panels */
  --thread-inverted: #E07149; /* oxide highlight on dark inverted bands */
  --thread-action: #963B22; /* filled interactive state — AA with white */
  --on-thread: #FFFFFF;
  --line:     #D9D3BF;   /* hairlines on ground */
  --line-2:   #E4DFCD;

  /* ink that sits on the inverted (--paper) bands — opposite of page */
  --paper-ink:   #EDE8D8;
  --paper-ink-2: rgba(237, 232, 216, 0.72);
  --paper-ink-3: rgba(237, 232, 216, 0.60);
  --paper-line:  rgba(237, 232, 216, 0.20);
  /* frosted nav / rail — page ground at alpha */
  --scrim: rgba(241, 238, 225, 0.90);
  /* blueprint drawing ink (on --ground-2 plates) */
  --draw:      rgba(24, 42, 32, 0.82);
  --draw-2:    rgba(24, 42, 32, 0.40);
  --draw-soft: rgba(24, 42, 32, 0.07);

  /* legacy aliases — keep inline styles in pages working */
  --ink:        var(--bone);
  --ink-2:      var(--bone-2);
  --ink-3:      var(--bone-3);
  --gesso:      var(--ground);
  --gesso-2:    var(--ground-2);
  --pine:       var(--paper);
  --hairline:   var(--line);
  --hairline-2: var(--line-2);

  --serif: 'Space Grotesk', -apple-system, sans-serif;  /* alias: display face */
  --sans:  'Space Grotesk', -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', 'SF Mono', monospace;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --site-width: 97.5rem;
  --site-pad: var(--pad);
  --stage-width: 91.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-entry: cubic-bezier(0.22, 0.65, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---- DARK (opt-in) — the original "Night Atelier" deep-pine system ---- */
:root[data-theme="dark"] {
  --ground:   #14211A;
  --ground-2: #1B2B22;
  --bone:     #EAE6D7;
  --bone-2:   #A9AB98;
  --bone-3:   #9A9E8B;
  --paper:    #EAE6D7;   /* inverted bands read as light on the dark page */
  --paper-2:  #DFDACA;
  --thread:   #E07149;
  --thread-inverted: #AA3F23;
  --thread-action: #A23F24;
  --on-thread: #FFFFFF;
  --line:     #2A3A2F;
  --line-2:   #223129;

  --paper-ink:   #16241C;
  --paper-ink-2: rgba(20, 33, 26, 0.70);
  --paper-ink-3: rgba(20, 33, 26, 0.66);
  --paper-line:  rgba(20, 33, 26, 0.22);
  --scrim: rgba(20, 33, 26, 0.90);
  --draw:      rgba(234, 230, 215, 0.88);
  --draw-2:    rgba(234, 230, 215, 0.45);
  --draw-soft: rgba(234, 230, 215, 0.09);
}
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ground);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--thread-action); color: var(--on-thread); }
img { max-width: 100%; display: block; }
.brand-logo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1163 / 287;
  line-height: 0;
}
.brand-logo img {
  width: 100%;
  height: auto;
  max-width: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 480ms var(--ease), filter 480ms var(--ease);
}
/* The supplied PNG is black with a transparent background. On dark/photo
   surfaces the fallback softens white toward the surrounding surface. Modern
   browsers use the PNG's real alpha channel as a mask below, which gives the
   exact #F1EEE1 brand cream instead of an approximate filter colour. */
:root[data-theme="dark"] .brand-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
/* The homepage navigation sits directly on photography until it scrolls. */
body.home-hero .nav:not(.scrolled) .brand-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
/* The transition curtain also sits on a dark surface, so its mark follows the
   same cream fallback in browsers without CSS masking support. */
.veil .brand-logo img,
:root[data-theme="dark"] .veil .brand-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  :root[data-theme="dark"] .brand-logo,
  body.home-hero .nav:not(.scrolled) .brand-logo,
  .veil .brand-logo {
    color: var(--brand-cream);
  }
  :root[data-theme="dark"] .brand-logo img,
  body.home-hero .nav:not(.scrolled) .brand-logo img,
  .veil .brand-logo img,
  :root[data-theme="dark"] .veil .brand-logo img {
    filter: none;
    opacity: 0;
  }
  :root[data-theme="dark"] .brand-logo::after,
  body.home-hero .nav:not(.scrolled) .brand-logo::after,
  .veil .brand-logo::after,
  :root[data-theme="dark"] .veil .brand-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: currentColor;
    -webkit-mask: url('/assets/brand/linhord-wordmark.png?v=127') center / 100% 100% no-repeat;
    mask: url('/assets/brand/linhord-wordmark.png?v=127') center / 100% 100% no-repeat;
  }
}
.sr-only {
  position: absolute !important;
  width: 0.0625rem !important; height: 0.0625rem !important;
  padding: 0 !important; margin: -0.0625rem !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}

/* emphasis: no italics in this house — the red thread does the work */
em, .it { font-style: normal; color: var(--thread); }

/* ---------- type utilities ---------- */

.serif { font-family: var(--serif); font-weight: 500; }

.mono {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-2);
}
.mono.dim { color: var(--bone-3); }
.mono .no { color: var(--thread); }

.display-1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.125rem, 8.2vw, 7.375rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.display-2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.display-3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.625rem, 3.2vw, 2.625rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

/* ---------- links ---------- */

.lnk {
  position: relative;
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  padding-bottom: 0.3125rem;
}
.lnk::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 0.0625rem;
  background: var(--bone);
  transform-origin: left;
  transition: transform 450ms var(--ease), background 300ms;
}
.lnk:hover::after { background: var(--thread); transform: scaleX(0.4); }
.lnk:hover { color: var(--thread); transition: color 300ms; }

.lnk-quiet { color: var(--bone-2); text-decoration: none; transition: color 300ms; font-size: 0.8125rem; }
.lnk-quiet:hover { color: var(--thread); }

.arrow { display: inline-block; transition: transform 350ms var(--ease); }
a:hover .arrow { transform: translateX(0.3125rem); }

/* ---------- selvage divider: hairline w/ a red thread ---------- */

.selvage {
  position: relative; height: 0.0625rem; background: var(--line);
  transform-origin: left;
  transition: transform 1400ms var(--ease);
}
html.js .selvage { transform: scaleX(0); }
html.js body.ready .selvage.in { transform: scaleX(1); }
.selvage::after {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 3.5rem; height: 0.0625rem;
  background: var(--thread);
}

/* ---------- veil: fixed deep-pine transition curtain ---------- */

html:not(.js) .veil { display: none; }
.veil {
  position: fixed; inset: 0; z-index: 999;
  background: var(--brand-pine);
  color: var(--brand-cream);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.25rem;
  opacity: 1;
  pointer-events: none;
  transition: opacity 260ms ease-out;
  will-change: opacity;
}
.veil.home-arrival {
  transition-duration: 700ms;
  transition-timing-function: ease-in-out;
}
.veil.quick { transition-duration: 180ms; }
.veil.snap { transition: none !important; }
.veil.nav-leaving {
  pointer-events: auto;
  transition-duration: 320ms;
  transition-timing-function: var(--ease);
}
.veil.below, .veil.lift { opacity: 0; }
.veil.gone { display: none; }
.veil-word {
  width: clamp(11.25rem, 28vw, 22.5rem);
  line-height: 0;
  opacity: 0;
  transform: translateY(1rem);
}
.veil.type-in .veil-word { animation: veilWord 240ms var(--ease) 20ms forwards; }
.veil-line {
  width: clamp(4.5rem, 9vw, 8.25rem); height: 0.0625rem;
  background: var(--brand-thread-on-pine);
  transform: scaleX(0);
}
.veil.type-in .veil-line { animation: veilLine 220ms var(--ease) 40ms forwards; }
.veil-sub {
  font-family: var(--mono);
  font-size: 0.65625rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(241, 238, 225, 0.72);
  opacity: 0;
}
.veil.type-in .veil-sub { animation: veilWord 220ms var(--ease) 60ms forwards; }
/* arriving via an internal link: the curtain is a continuation of the one that
   just rose on the previous page — show the mark already set, never re-animate */
.veil.instant .veil-word { opacity: 1; transform: none; animation: none; }
.veil.instant .veil-line { transform: scaleX(1); animation: none; }
.veil.instant .veil-sub { opacity: 1; animation: none; }
/* Internal navigation gets one restrained, 320 ms brand beat while the
   curtain itself fades in. The complete lock-up then holds for the existing
   0.5 s before the destination loads. */
.veil.nav-leaving .veil-word {
  animation: navVeilLogo 300ms var(--ease-entry) 20ms both;
  will-change: opacity, transform;
}
.veil.nav-leaving .veil-line {
  animation: veilLine 240ms var(--ease) 60ms both;
}
.veil.nav-leaving .veil-sub {
  animation: navVeilSub 200ms ease-out 120ms both;
}
@keyframes veilWord { to { opacity: 1; transform: none; } }
@keyframes veilLine { to { transform: scaleX(1); } }
@keyframes navVeilLogo {
  from { opacity: 0; transform: translateY(0.625rem) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes navVeilSub {
  from { opacity: 0; transform: translateY(0.3125rem); }
  to { opacity: 1; transform: none; }
}

/* ---------- entrance rises (hero etc.) ---------- */

[data-rise] {
  transition: opacity 1350ms var(--ease-entry), transform 1350ms var(--ease-entry);
  transition-delay: var(--rd, 0ms);
}
html.js [data-rise] { opacity: 0; transform: translateY(1.75rem); }
html.js body.ready [data-rise] { opacity: 1; transform: none; }

.hl { display: block; overflow: hidden; }
.hl-in {
  display: block;
  transition: transform 1450ms var(--ease-entry);
  transition-delay: var(--rd, 0ms);
}
html.js .hl-in { transform: translateY(112%); }
html.js body.ready .hl-in { transform: none; }

/* ---------- touch target floors ----------
   The round nav controls are drawn at 34px, which is the size the design
   wants. On touch that is under the 44px minimum, and simply growing them
   overflows the bar at 320px once four of them sit next to the wordmark.
   So the drawn size stays and an invisible pseudo-element carries the hit
   area outward instead. */
@media (pointer: coarse) {
  .theme-toggle,
  .lang-toggle,
  .nav-cart,
  .nav-burger,
  .cfg-sw {
    position: relative;
  }
  .theme-toggle::after,
  .lang-toggle::after,
  .nav-cart::after,
  .nav-burger::after,
  .cfg-sw::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 2.75rem);
    height: max(100%, 2.75rem);
    transform: translate(-50%, -50%);
  }
  .cfg-opts.sw { gap: 0.875rem; }
}

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  height: 4.25rem;
  border-bottom: 0.0625rem solid transparent;
  transition: background 400ms, border-color 400ms;
}
.nav.scrolled {
  background: var(--scrim);
  -webkit-backdrop-filter: blur(0.75rem);
  backdrop-filter: blur(0.75rem);
  border-bottom-color: var(--line);
}
/* Interior pages already render the navigation in its final solid state.
   Avoid a continuously re-sampled fixed backdrop over image-heavy pages. */
body:not(.home-hero) .nav.scrolled {
  background: var(--ground);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav-brand {
  display: block;
  width: 6.625rem;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}
.nav-links { display: flex; gap: 2.25rem; align-items: center; }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-2);
  text-decoration: none;
  transition: color 300ms;
}
.nav-links a:hover, .nav-links a.active { color: var(--thread); }
.nav-links a[aria-current="page"] { color: var(--thread); }
.nav-order-status { white-space: nowrap; }
.nav-cta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ground) !important;
  background: var(--paper);
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  transition: background 300ms, color 300ms;
}
.nav-cta:hover { background: var(--thread-action); color: var(--on-thread) !important; }

.nav-cart {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.125rem; height: 2.125rem; flex: none;
  border: 0.0625rem solid var(--line); border-radius: 50%;
  color: var(--bone); background: transparent;
  transition: color 300ms, border-color 300ms, background 300ms, transform 300ms var(--ease);
}
.nav-cart:hover { color: var(--thread) !important; border-color: var(--thread); }
.nav-cart:active { transform: scale(0.9); }
.nav-cart svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cart-count {
  position: absolute; top: -0.375rem; right: -0.4375rem;
  min-width: 1.0625rem; height: 1.0625rem; padding: 0 0.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0.125rem solid var(--ground); border-radius: 62.4375rem;
  background: var(--thread-action); color: var(--on-thread);
  font-family: var(--mono); font-size: 0.625rem; line-height: 1; letter-spacing: 0;
}
.cart-count[data-empty="true"] { display: none; }

/* Keep the full desktop navigation at the established 861px breakpoint,
   while giving the tablet-width band enough room to remain on one line. */
@media (min-width: 861px) and (max-width: 1180px) {
  .nav { padding-inline: clamp(0.875rem, 2vw, 1.5rem); }
  .nav-brand { width: 5.75rem; }
  .nav-links { gap: clamp(0.3125rem, 0.9vw, 0.625rem); }
  .nav-links a {
    font-size: 0.625rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  .nav-cta { padding: 0.5rem 0.5625rem; }
  .nav-links .lang-toggle { min-width: 1.875rem; height: 1.875rem; padding-inline: 0.4375rem; }
  .nav-links .theme-toggle,
  .nav-links .nav-cart { width: 1.875rem; height: 1.875rem; }
}
@media (pointer: coarse) and (min-width: 861px) and (max-width: 1180px) {
  /* Keep adjacent 44px invisible hit areas from overlapping on tablets. */
  .nav-links { gap: 0.875rem; }
}

/* theme toggle — moon in light mode, sun in dark mode.
   both icons are stacked and cross-fade + rotate on switch */
.theme-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.125rem; height: 2.125rem; padding: 0; flex: none;
  background: transparent;
  border: 0.0625rem solid var(--line); border-radius: 50%;
  color: var(--bone); cursor: pointer;
  transition: color 300ms, border-color 300ms, background 300ms, transform 300ms var(--ease);
}
.theme-toggle:hover { color: var(--thread); border-color: var(--thread); }
.theme-toggle:active { transform: scale(0.88); }
.theme-toggle svg {
  position: absolute; top: 50%; left: 50%; width: 1rem; height: 1rem;
  transition: opacity 400ms var(--ease), transform 520ms var(--ease);
}
.theme-toggle .ic-moon { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
.theme-toggle .ic-sun  { opacity: 0; transform: translate(-50%, -50%) rotate(-110deg) scale(0.4); }
:root[data-theme="dark"] .theme-toggle .ic-moon { opacity: 0; transform: translate(-50%, -50%) rotate(110deg) scale(0.4); }
:root[data-theme="dark"] .theme-toggle .ic-sun  { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }

/* ---------- i18n: bilingual text (English default, Chinese opt-in) ---------- */
/* wrap translatable text in inline pairs: <span class="i18n-en">…</span><span class="i18n-zh">…</span> */
.i18n-zh { display: none; }
html[data-lang="zh"] .i18n-en { display: none; }
html[data-lang="zh"] .i18n-zh { display: initial; }
/* collapsed pair (Chinese still in data-zh): keep English until main.js
   rebuilds the Chinese span, so a label is never blank */
html[data-lang="zh"] .i18n-en[data-zh] { display: initial; }

/* language toggle — shows the language you can switch TO */
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.125rem; height: 2.125rem; padding: 0 0.625rem; flex: none;
  background: transparent; border: 0.0625rem solid var(--line); border-radius: 1.0625rem;
  color: var(--bone); cursor: pointer;
  font-family: var(--mono); font-size: 0.65625rem; letter-spacing: 0.08em;
  transition: color 300ms, border-color 300ms, background 300ms, transform 300ms var(--ease);
}
.lang-toggle:hover { color: var(--thread); border-color: var(--thread); }
.lang-toggle:active { transform: scale(0.9); }
.lang-toggle .ll-to-en { display: none; }
html[data-lang="zh"] .lang-toggle .ll-to-zh { display: none; }
html[data-lang="zh"] .lang-toggle .ll-to-en { display: inline; }

/* full-page theme transition — circular reveal from the toggle (View
   Transitions API, where supported) with a plain colour cross-fade fallback */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 9999; }
::view-transition-old(root) { z-index: 1; }

html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color 480ms var(--ease), color 480ms var(--ease),
              border-color 480ms var(--ease), fill 480ms var(--ease),
              stroke 480ms var(--ease) !important;
}
/* keep the toggle icons rotating/fading through the switch */
html.theme-anim .theme-toggle svg {
  transition: opacity 400ms var(--ease), transform 520ms var(--ease) !important;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}

@media (max-width: 860px) {
  .nav-links a:not(.nav-cta):not(.nav-cart) { display: none; }
  .nav-links .nav-cta { display: none; }   /* the CTA moves into the mobile menu */
  .nav-links { gap: 0.875rem; }
  .nav-links .nav-cart { display: inline-flex; }
  .nav-links .nav-burger { display: inline-flex; }  /* beats the base .nav-burger below */
}

/* ---------- mobile menu: burger button + full-screen overlay ---------- */
.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.3125rem;
  width: 2.125rem; height: 2.125rem; padding: 0; flex: none;
  background: transparent; border: 0; cursor: pointer; color: var(--bone);
}
.nav-burger .bar {
  display: block;
  width: 1.25rem; height: 0.09375rem; flex: 0 0 0.09375rem;
  background: currentColor;
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 1200;
  background: var(--ground);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--pad) 3rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0; transition: opacity 320ms var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.open { opacity: 1; }
@media (min-width: 861px) { .mobile-menu { display: none !important; } }
.mm-close {
  position: absolute; top: 1rem; right: var(--pad);
  width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; color: var(--bone);
}
.mm-close svg { width: 1.5rem; height: 1.5rem; }
.mm-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.125rem; }
.mm-nav a {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.875rem, 8.5vw, 2.875rem); letter-spacing: -0.02em; line-height: 1.15;
  color: var(--bone); text-decoration: none; padding: 0.5rem 0;
  transition: color 200ms var(--ease);
}
.mm-nav a:hover { color: var(--thread); }
.mm-nav a.mm-cart { display: inline-flex; align-items: center; gap: 0.75rem; }
.mm-cart .cart-count {
  position: static; flex: none;
  border-color: var(--ground); transform: translateY(-0.5rem);
}
.mm-nav a.btn {
  font-family: var(--mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ground); background: var(--paper);
  border: 0.0625rem solid var(--paper); padding: 1rem 1.875rem; margin-top: 1.75rem; line-height: 1;
}
.mm-nav a.btn:hover { background: var(--thread-action); border-color: var(--thread-action); color: var(--on-thread); }
html.menu-open, body.menu-open { overflow: hidden; }

/* Centred menu content can become unreachable when it is taller than a
   landscape phone viewport. Start at the top in short viewports and let the
   overlay itself scroll so every link and the CTA remain reachable. */
@media (max-width: 860px) and (max-height: 640px) {
  .mobile-menu {
    justify-content: flex-start;
    padding-top: 4.5rem;
    padding-bottom: 2rem;
  }
  .mm-nav a {
    font-size: clamp(1.75rem, 7vh, 2.375rem);
    padding-block: 0.3125rem;
  }
  .mm-nav a.btn { margin-top: 1.125rem; }
}

/* ---------- skip link (first focusable, visible only on focus) ---------- */
.skip-link {
  position: fixed; left: 0.75rem; top: 0.75rem; z-index: 1200;
  transform: translateY(-160%);
  background: var(--paper); color: var(--ground);
  padding: 0.75rem 1.125rem; border-radius: 0;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; transition: transform 200ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }
.skip-link:focus-visible {
  outline: 0.1875rem solid var(--thread);
  outline-offset: 0.1875rem;
}

/* ---------- cart feedback ---------- */
.cart-toast {
  position: fixed; z-index: 1100;
  right: var(--pad); bottom: clamp(1.125rem, 4vw, 2.375rem);
  width: min(22.5rem, calc(100vw - (2 * var(--pad))));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 0.75rem;
  padding: 0.875rem 0.9375rem;
  border: 0.0625rem solid var(--line); border-left: 0.125rem solid var(--thread);
  background: var(--ground-2); color: var(--bone);
  box-shadow: 0 1.125rem 3.4375rem rgba(7, 14, 10, 0.24);
  transform: translateY(1.125rem); opacity: 0; pointer-events: none;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
.cart-toast.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.cart-toast-icon { color: var(--thread); font-size: 1.0625rem; }
.cart-toast-copy { min-width: 0; font-size: 0.8125rem; line-height: 1.45; }
.cart-toast a {
  color: var(--bone); font-family: var(--mono); font-size: 0.625rem;
  letter-spacing: 0.1em; text-transform: uppercase; text-underline-offset: 0.25rem;
}
@media (prefers-reduced-motion: reduce) {
  .cart-toast { transition: none; }
}

/* Responsive structures shared by the factory, process and legacy collection
   pages. These classes replace brittle inline grids so narrow screens can
   collapse without forcing the document wider than the viewport. */
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: end;
}
.process-step-grid {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.strip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.25rem;
  align-items: center;
  padding-top: clamp(3.25rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.25rem, 6vw, 5.5rem);
}
@media (max-width: 760px) {
  .page-hero-grid,
  .process-step-grid,
  .strip-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-hero-grid { align-items: start; }
  .process-step-grid { gap: 1.5rem; }
  .strip-row { justify-items: start; gap: 1.625rem; }
}

/* section-head titles are real <h2>/<h3> but keep the eyebrow look
   (only neutralise the UA margin + bold; .mono controls size/spacing) */
.sec-head h2, .sec-head h3 { margin: 0; font-weight: inherit; }

/* ---------- shell / sections ---------- */

.shell { padding-left: var(--site-pad); padding-right: var(--site-pad); max-width: var(--site-width); margin: 0 auto; }

.sec { padding-top: clamp(4.5rem, 10vw, 9rem); padding-bottom: clamp(4.5rem, 10vw, 9rem); }

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: clamp(2.25rem, 5vw, 4.5rem);
  border-bottom: 0.0625rem solid var(--line);
  position: relative;
}
.sec-head::before {
  content: '+';
  position: absolute; right: 0; bottom: -0.5625rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--bone-3);
  line-height: 1;
}
.sec-head::after {
  content: ''; position: absolute; left: 0; bottom: -0.0625rem;
  width: 3.5rem; height: 0.0625rem; background: var(--thread);
  transform-origin: left;
  transition: transform 1000ms var(--ease) 250ms;
}
html.js .sec-head::after { transform: scaleX(0); }
html.js body.ready .sec-head.reveal.in::after { transform: scaleX(1); }

/* ---------- instrument card (image + caption bar) ---------- */

.placard { }
.placard-img {
  position: relative;
  overflow: hidden;
  background: var(--ground-2);
  border: 0.0625rem solid var(--line);
}
.placard-img .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1200ms var(--ease);
}
.placard:hover .placard-img .bg { transform: scale(1.035); }
.placard-cap {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.625rem 0.875rem;
  border: 0.0625rem solid var(--line);
  border-top: 0;
  font-family: var(--mono);
  font-size: 0.65625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-3);
  background: var(--ground);
}
.placard-cap .fig { color: var(--thread); }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 0.0625rem solid var(--line);
  border-bottom: 0.0625rem solid var(--line);
  padding: 0.875rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  animation: marquee 42s linear infinite;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-2);
  padding-right: 0.75rem;
}
.marquee-track .sep { color: var(--thread); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- collection index list ---------- */

.idx { border-top: 0.0625rem solid var(--line); }
.idx-row {
  display: grid;
  grid-template-columns: 5.625rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: clamp(1.375rem, 3vw, 2.375rem) 0.75rem;
  border-bottom: 0.0625rem solid var(--line);
  text-decoration: none;
  color: var(--bone);
  position: relative;
  transition: background 400ms var(--ease);
}
.idx-row:hover { background: var(--ground-2); }
.idx-row .idx-no {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--bone-3);
  transition: color 300ms;
}
.idx-row .idx-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.875rem);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: transform 500ms var(--ease), color 300ms;
}
.idx-row .idx-meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-3);
  text-align: right;
  transition: color 300ms;
}
.idx-row:hover .idx-no { color: var(--thread); }
.idx-row:hover .idx-name { transform: translateX(1rem); color: var(--thread); }
.idx-row:hover .idx-meta { color: var(--bone); }
.idx-thumb { display: none; }
@media (max-width: 720px) {
  .idx-row { grid-template-columns: 2.75rem 1fr 4.5rem; align-items: center; }
  .idx-thumb {
    display: block; width: 4.5rem; height: 5.625rem;
    background-size: cover; background-position: center;
    border: 0.0625rem solid var(--line);
  }
  .idx-row .idx-meta { display: none; }
}

/* floating hover image (desktop only) */
.float-img {
  position: fixed; top: 0; left: 0;
  width: 17.5rem; height: 21.875rem;
  background-size: cover; background-position: center;
  pointer-events: none;
  opacity: 0;
  z-index: 60;
  border: 0.0625rem solid var(--bone-3);
  transition: opacity 350ms var(--ease);
  box-shadow: 0 1.5rem 3.75rem rgba(0, 0, 0, 0.55);
}
.float-img.on { opacity: 1; }
@media (hover: none), (max-width: 720px) { .float-img { display: none; } }

/* ---------- paper band (inverted strip) ---------- */

.strip {
  --thread: var(--thread-inverted);
  background: var(--paper);
  color: var(--ground);
  position: relative;
}
.strip::before {
  content: ''; position: absolute; top: 0; left: var(--pad);
  width: 3.5rem; height: 0.0625rem; background: var(--thread);
}
.strip .mono { color: var(--paper-ink-2); }
.strip .mono .no { color: var(--thread); }
.strip .lnk { color: var(--paper-ink); }
.strip .lnk::after { background: var(--paper-ink); }
.strip .lnk:hover { color: var(--thread); }
.strip .lnk:hover::after { background: var(--thread); }
.strip .lnk-quiet { color: var(--paper-ink-2); }
.strip .lnk-quiet:hover { color: var(--thread); }
.strip .sec-head { border-bottom-color: var(--paper-line); }
.strip .sec-head::before { color: var(--paper-ink-3); }
.strip .display-3, .strip .display-2 { color: var(--ground); }

/* ---------- spec table ---------- */

.spec { border-top: 0.0625rem solid var(--line); }
.spec-row {
  display: grid;
  grid-template-columns: 12.5rem 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 0.0625rem solid var(--line-2);
}
.spec-row dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-3);
  padding-top: 0.1875rem;
}
.spec-row dd { font-size: 0.90625rem; color: var(--bone-2); }
.strip .spec { border-top-color: var(--paper-line); }
.strip .spec-row { border-bottom-color: var(--paper-line); }
.strip .spec-row dt { color: var(--paper-ink-3); }
.strip .spec-row dd { color: var(--paper-ink); }
@media (max-width: 600px) { .spec-row { grid-template-columns: 8.125rem 1fr; } }

/* ---------- pinned scroll section: image holds, text scrolls ---------- */

.pin {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding: clamp(4.5rem, 10vw, 9rem) var(--site-pad);
  max-width: var(--site-width);
  margin: 0 auto;
}
.pin-media { position: sticky; top: 6rem; align-self: start; }
.pin-img {
  position: relative; overflow: hidden;
  background: var(--ground-2);
  border: 0.0625rem solid var(--line);
  height: calc(100svh - 12.5rem);
  min-height: 26.25rem;
}
.pin-img .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.pin-block {
  min-height: 72svh;
  display: flex; flex-direction: column; justify-content: center;
}
.pin-block .mono { margin-bottom: 1.25rem; }
.pin-block p.body { max-width: 46ch; color: var(--bone-2); margin-top: 1.375rem; font-size: 0.96875rem; }
.pin-block.quote { min-height: 60svh; }
@media (max-width: 860px) {
  .pin { display: block; }
  .pin-media { position: sticky; top: 4.25rem; z-index: 0; }
  .pin-img { height: 44svh; min-height: 18.75rem; }
  .pin-blocks { position: relative; z-index: 1; background: var(--ground); margin-top: 1.75rem; }
  .pin-block { min-height: 0; padding: 3rem 0; }
}

/* ---------- journal list ---------- */

.jr { border-top: 0.0625rem solid var(--line); }
.jr-row {
  display: grid;
  grid-template-columns: 8.125rem 1fr 6.875rem 1.5rem;
  gap: 1.75rem;
  align-items: baseline;
  padding: 1.625rem 0.75rem;
  border-bottom: 0.0625rem solid var(--line);
  text-decoration: none;
  color: var(--bone);
  transition: background 400ms var(--ease);
}
.jr-row:hover { background: var(--ground-2); }
.jr-row .jr-date { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-3); }
.jr-row .jr-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3125rem, 2.4vw, 1.875rem); letter-spacing: -0.015em; line-height: 1.15; transition: color 300ms; }
.jr-row .jr-tag { font-family: var(--mono); font-size: 0.65625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-3); text-align: right; }
.jr-row .jr-arr { color: var(--bone-3); transition: transform 350ms var(--ease), color 300ms; }
.jr-row:hover .jr-title { color: var(--thread); }
.jr-row:hover .jr-arr { transform: translateX(0.3125rem); color: var(--thread); }
@media (max-width: 720px) {
  .jr-row { grid-template-columns: 1fr 1.5rem; }
  .jr-row .jr-date { grid-column: 1 / -1; }
  .jr-row .jr-tag { display: none; }
}

/* ---------- product cards (category pages) ---------- */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  row-gap: clamp(3rem, 6vw, 5.5rem);
}
.prod { text-decoration: none; color: var(--bone); }
.prod .ph {
  position: relative; overflow: hidden;
  background: var(--ground-2);
  border: 0.0625rem solid var(--line);
}
.prod .ph .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1100ms var(--ease);
}
.prod:hover .ph .bg { transform: scale(1.04); }
.prod:hover .ph { border-color: var(--bone-3); }
.prod .sku {
  display: block;
  font-family: var(--mono);
  font-size: 0.65625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--thread);
  margin: 1rem 0 0.25rem;
}
.prod .nm { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.015em; line-height: 1.1; }
.prod .ds { font-size: 0.8125rem; color: var(--bone-2); margin-top: 0.375rem; }
.prod .wt { font-family: var(--mono); font-size: 0.65625rem; letter-spacing: 0.12em; color: var(--bone-3); margin-top: 0.625rem; text-transform: uppercase; }

/* blueprint plates — bone linework on lifted pine */
.plate {
  display: flex; align-items: center; justify-content: center;
  background: var(--ground-2);
}
.plate::before, .plate::after {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1;
  color: var(--bone-3);
  position: absolute;
  z-index: 2;
}
.plate::before { content: '+'; top: 0.5rem; left: 0.625rem; }
.plate::after { content: '+'; bottom: 0.5rem; right: 0.625rem; }
.plate svg { width: 64%; height: 64%; color: var(--draw); }
.plate svg text {
  font-family: var(--mono);
  /* ViewBox units: the outer SVG already scales with the layout. */
  font-size: 10px;
  letter-spacing: 0.1em;
  fill: var(--bone-3);
  text-transform: uppercase;
}
.plate svg .thread { stroke: var(--thread); }
.plate svg .dim { stroke: var(--bone-3); stroke-width: 0.75; }
.plate svg .dash { stroke-dasharray: 3 4; }

.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.r-34 .ph { aspect-ratio: 3 / 4; }
.r-45 .ph { aspect-ratio: 4 / 5; }
.r-11 .ph { aspect-ratio: 1 / 1; }
.r-32 .ph { aspect-ratio: 3 / 2; }
.r-169 .ph { aspect-ratio: 16 / 9; }
@media (max-width: 900px) {
  .prod-grid > * { grid-column: span 6; }
}
@media (max-width: 560px) {
  .prod-grid > * { grid-column: span 12; }
}

/* ---------- category header ---------- */

.cat-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: end;
  padding-top: 9.25rem;
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}
@media (max-width: 860px) { .cat-head { grid-template-columns: 1fr; } }

/* ---------- prose (journal posts, legal) ---------- */

.prose { max-width: 41.25rem; }
.prose > * + * { margin-top: 1.4em; }
.prose p { font-size: 1rem; line-height: 1.85; color: var(--bone-2); }
.prose h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--bone);
  margin-top: 2.2em;
}
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3125rem; color: var(--bone); margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--bone-2); font-size: 0.9375rem; }
.prose li + li { margin-top: 0.5em; }
.prose blockquote {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.375rem; line-height: 1.45; letter-spacing: -0.01em;
  color: var(--bone);
  border-left: 0.0625rem solid var(--thread);
  padding-left: 1.75rem;
  margin-top: 2em; margin-bottom: 2em;
}
.prose a { color: var(--bone); text-decoration: underline; text-underline-offset: 0.1875rem; }
.prose a:hover { color: var(--thread); }
.prose .lede {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.3125rem; line-height: 1.5; letter-spacing: -0.01em;
  color: var(--bone);
}

/* ---------- forms ---------- */

.field { display: block; margin-bottom: 1.75rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-3);
  margin-bottom: 0.5rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0.0625rem solid var(--line);
  padding: 0.5rem 0 0.75rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--bone);
  border-radius: 0;
  transition: border-color 300ms;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--thread);
}
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ground);
  background: var(--paper);
  border: 0.0625rem solid var(--paper);
  padding: 1rem 2.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 300ms, border-color 300ms, color 300ms;
}
.btn:hover { background: var(--thread-action); border-color: var(--thread-action); color: var(--on-thread); }
.btn.ghost { background: transparent; color: var(--bone); border-color: var(--bone-3); }
.btn.ghost:hover { background: var(--thread-action); color: var(--on-thread); border-color: var(--thread-action); }
.strip .btn.ghost { color: var(--paper-ink); border-color: var(--paper-ink-3); }
.strip .btn.ghost:hover { background: var(--ground); color: var(--paper); border-color: var(--ground); }
.strip .field input, .strip .field textarea {
  color: var(--paper-ink);
  border-bottom-color: var(--paper-ink-3);
}
.strip .field input:focus, .strip .field textarea:focus { border-bottom-color: var(--thread); }

/* ---------- RFQ fieldsets: group semantics, no default chrome ---------- */
.rfq-form {
  --rfq-field-background: #FBFAF5;
  --rfq-field-border: #858A78;
}
:root[data-theme="dark"] .rfq-form {
  --rfq-field-background: #1B2B22;
  --rfq-field-border: #7B8678;
}
.rfq-form .field input,
.rfq-form .field textarea,
.rfq-form .field select {
  min-width: 0;
  min-height: 2.875rem;
  background-color: var(--rfq-field-background);
  border: 0.0625rem solid var(--rfq-field-border);
  border-radius: 0.5rem;
  padding: 0.6875rem 0.875rem;
  transition: border-color 180ms, background-color 180ms;
}
.rfq-form .field select { padding-right: 2.5rem; }
.rfq-form .field input::placeholder,
.rfq-form .field textarea::placeholder {
  color: var(--bone-2);
  opacity: 1;
}
.rfq-form .field input:focus,
.rfq-form .field textarea:focus,
.rfq-form .field select:focus {
  border-color: var(--thread);
  outline: 0.125rem solid var(--thread);
  outline-offset: 0.125rem;
}
.rfq-form .field input[aria-invalid="true"],
.rfq-form .field textarea[aria-invalid="true"],
.rfq-form .field select[aria-invalid="true"] {
  border-color: var(--thread);
}
.rfq-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.rfq-fs > legend { display: block; width: 100%; padding: 0; }
.rfq-message {
  min-height: 9.25rem;
  resize: vertical;
}
.rfq-message[data-autogrow] {
  overflow-x: hidden;
  overflow-y: hidden;
  overflow-wrap: anywhere;
  resize: none;
}

.rfq-submit-status {
  min-height: 1.375rem; margin: 1.25rem 0 0.75rem;
  color: var(--bone-2); font-size: 0.78125rem; line-height: 1.6;
}
.rfq-submit-status[data-state="error"] { color: var(--thread); }
.rfq-submit-status:focus { outline: none; }
.inquiry-reference {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem 1.5rem;
  margin: 1.875rem 0 0; padding: 1.125rem 1.25rem;
  border: 0.0625rem solid var(--line); border-left: 0.125rem solid var(--thread);
  background: var(--ground-2);
}
.inquiry-reference dt {
  color: var(--bone-3); font: 0.5625rem/1.5 var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.inquiry-reference dd {
  margin: 0; color: var(--bone); font: 0.75rem/1.5 var(--mono); overflow-wrap: anywhere;
}
@media (max-width: 520px) { .inquiry-reference { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------- keyboard focus: one clear ring everywhere (keyboard only) ---------- */
:focus-visible { outline: 0.125rem solid var(--thread); outline-offset: 0.125rem; border-radius: 0.125rem; }
/* beat the form fields' outline:none (they only changed a border, too weak for keyboard) */
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible,
.pdp-thumb:focus-visible, .cfg-opt:focus-visible, .cfg-sw:focus-visible, .banner-dot:focus-visible {
  outline: 0.125rem solid var(--thread); outline-offset: 0.125rem;
}
/* the colour swatch is round — match the ring to it */
.cfg-sw:focus-visible { border-radius: 50%; }

/* ---------- footer ---------- */

footer {
  border-top: 0.0625rem solid var(--line);
  padding-top: clamp(3rem, 6vw, 5.5rem);
  position: relative;
}
footer::before {
  content: ''; position: absolute; top: -0.0625rem; left: var(--pad);
  width: 3.5rem; height: 0.0625rem; background: var(--thread);
}
.foot-word {
  width: clamp(15.625rem, 48vw, 48.75rem);
  line-height: 0;
  user-select: none;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}
.foot-grid h4, .foot-heading {
  font-family: var(--mono);
  font-size: 0.65625rem; font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-3);
  margin-bottom: 1.125rem;
}
.foot-grid a { display: block; font-size: 0.84375rem; color: var(--bone-2); text-decoration: none; padding: 0.25rem 0; transition: color 300ms; }
.foot-grid a:hover { color: var(--thread); }
.foot-fine {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  /* Leave the fixed contact launchers their own space at the end of the page. */
  border-top: 0.0625rem solid var(--line-2);
  padding: 1.25rem 14rem 1.75rem 0;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-3);
}
@media (max-width: 780px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-fine { padding-right: 0; padding-bottom: calc(9rem + env(safe-area-inset-bottom, 0px)); }
  body.pdp-page .foot-fine { padding-bottom: calc(13rem + env(safe-area-inset-bottom, 0px)); }
}
.knit-moq-summary {
  max-width: 45rem;
  margin-top: 1.125rem;
  color: var(--bone-2);
  font-size: 0.8125rem;
  line-height: 1.65;
}

/* ---------- reveal on scroll (staggered via --rvd, set by JS) ---------- */

.reveal {
  transition: opacity 1300ms var(--ease-entry), transform 1300ms var(--ease-entry);
  transition-delay: var(--rvd, 0ms);
}
html.js .reveal { opacity: 0; transform: translateY(2rem); }
html.js body.ready .reveal.in { opacity: 1; transform: none; }

/* image curtain-wipe inside reveals */
.reveal .ph .bg,
.reveal .placard-img .bg,
.reveal.pin-media .pin-img .bg {
  transition: clip-path 1500ms var(--ease-entry), transform 1450ms var(--ease-entry);
  transition-delay: var(--rvd, 0ms);
}
html.js .reveal .ph .bg,
html.js .reveal .placard-img .bg,
html.js .reveal.pin-media .pin-img .bg {
  clip-path: inset(0 0 100% 0);
}
html.js body.ready .reveal.in .ph .bg,
html.js body.ready .reveal.in .placard-img .bg,
html.js body.ready .reveal.in.pin-media .pin-img .bg {
  clip-path: inset(0 0 0 0);
}

/* Scale the complete public design proportionally above its approved
   1920px CSS viewport. Rem sizes include type, images, controls and spacing;
   viewport units retain the same proportions. Keep query thresholds in px.
   A 4K screen at 200% display scaling keeps the 1920px layout. Admin tools
   retain their separate sizing. */
@media (min-width: 1921px) {
  html:not(:has(> body.admin-page)) {
    font-size: clamp(16px, 0.8333333333vw, 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .selvage, [data-rise], .hl-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .reveal .ph .bg, .reveal .placard-img .bg, .reveal.pin-media .pin-img .bg { clip-path: none !important; transition: none !important; }
  .sec-head::after { transform: scaleX(1) !important; transition: none !important; }
  .marquee-track { animation: none; }
  .veil { display: none; }
  html { scroll-behavior: auto; }
}
