/* ==========================================================================
   NuForm Counter Top Company — Design System
   "Warm stone editorial"

   Palette is drawn from the slab photography itself: bone, warm charcoal,
   stone grey, with deep brick used sparingly for action and emphasis only.

   Constraints this file is built to satisfy:
   - CSP has no 'unsafe-inline' for scripts and no fonts.gstatic.com, so
     fonts are self-hosted in /fonts and all behaviour lives in nuform.js.
   - Every animation is gated behind prefers-reduced-motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS — self-hosted variable, latin subset
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces-latin-var.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-stretch: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                 U+FFFD;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-latin-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                 U+FFFD;
}

/* --------------------------------------------------------------------------
   2. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* --- color ------------------------------------------------------------ */
  --bone:        #FAF8F5;
  --bone-sunk:   #F2EDE6;
  --bone-raised: #FFFFFF;
  --ink:         #1C1917;
  --ink-soft:    #44403C;
  --muted:       #78716C;
  --muted-light: #A8A29E;
  --line:        #E7E2DA;
  --line-strong: #D6CFC4;

  --brick:       #9B2C2C;
  --brick-deep:  #7A2020;
  --brick-tint:  #FBF1EF;
  --brass:       #B08D57;

  --shadow-sm: 0 1px 2px rgba(28, 25, 23, .05);
  --shadow-md: 0 4px 16px -4px rgba(28, 25, 23, .10);
  --shadow-lg: 0 24px 56px -20px rgba(28, 25, 23, .22);

  /* --- type -------------------------------------------------------------- */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype',
                  Palatino, Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto,
                  'Helvetica Neue', Arial, sans-serif;

  --t-display: clamp(2.1rem, 1.15rem + 4.1vw, 4.75rem);
  --t-h1:      clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  --t-h2:      clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem);
  --t-h3:      clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --t-body:    clamp(1rem, 0.97rem + 0.14vw, 1.0625rem);
  --t-lede:    clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --t-small:   0.875rem;
  --t-kicker:  0.75rem;

  /* --- space ------------------------------------------------------------- */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;
  --s-10: 8rem;

  --section-y: clamp(4rem, 2rem + 7vw, 8rem);
  --gutter:    clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --shell:     78rem;
  --shell-narrow: 46rem;

  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 18px;

  /* --- motion ------------------------------------------------------------ */
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --dur-fast: 160ms;
  --dur-mid:  320ms;
  --dur-slow: 720ms;

  --header-h: 6rem;

  /* The full horizontal nav (logo + 7 links + CTA) measures ~1255px. Below
     that it must collapse to the hamburger, so the breakpoint sits at 82rem
     (1312px) to leave headroom — tablets and small laptops get the menu. */
  --bp-nav: 82rem;
}

/* --------------------------------------------------------------------------
   2b. CROSS-DOCUMENT VIEW TRANSITIONS
   Declarative MPA transitions. Browsers without support simply navigate
   normally; no script and no fallback required.
   -------------------------------------------------------------------------- */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: vt-out 220ms var(--ease-out) both;
  }
  ::view-transition-new(root) {
    animation: vt-in 320ms var(--ease-out) both;
  }
}

@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(0.75rem); } }

/* The masthead should feel continuous across pages, not cross-faded. */
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }

/* --------------------------------------------------------------------------
   3. RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  /* `clip` rather than `hidden`: it contains the off-canvas mobile nav and the
     marquee without creating a scroll container, so position:sticky still
     works on the header. */
  overflow-x: clip;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-synthesis-weight: none;
}

img, svg, video, iframe {
  display: block;
  max-width: 100%;
}

img, video { height: auto; }

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button { background: none; border: none; cursor: pointer; }

ul, ol { list-style: none; padding: 0; }

a { color: inherit; }

table { border-collapse: collapse; }

:target { scroll-margin-top: calc(var(--header-h) + 2rem); }

/* --------------------------------------------------------------------------
   4. BASE TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
}

h1 { font-size: var(--t-h1); font-variation-settings: 'opsz' 100, 'SOFT' 0, 'WONK' 0; }
h2 { font-size: var(--t-h2); font-variation-settings: 'opsz' 72,  'SOFT' 0, 'WONK' 0; }
h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.012em; line-height: 1.25;
     font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0; }

p { text-wrap: pretty; }

strong, b { font-weight: 600; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--t-kicker);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: var(--s-4);
}

.kicker::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.kicker--center { justify-content: center; }

.lede {
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--ink-soft);
  letter-spacing: -0.011em;
}

.lede a {
  color: var(--brick);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.lede a:hover { color: var(--brick-deep); }

.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   5. LAYOUT
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: var(--shell-narrow); }

.section { padding-block: var(--section-y); }

.section--sunk { background: var(--bone-sunk); }
.section--white { background: var(--bone-raised); }

/* Single-column grids used purely for gap-based spacing.
   An implicit `auto` column is sized to max-content, which lets a long line
   push the track wider than its container and overflow the page. Pinning the
   track to minmax(0, 1fr) makes it fit. Applied to every such list. */
.prose ul,
.prose ol,
.checklist,
.callout__list,
.faq-list,
.detail-rows,
.footer-hours,
.field,
.toast-region {
  grid-template-columns: minmax(0, 1fr);
}

/* For a section immediately followed by its own sticky toolbar. */
.section--tight-bottom { padding-bottom: var(--s-5); }

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head h2 { margin-bottom: var(--s-4); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
}

/* --------------------------------------------------------------------------
   6. MOTION PRIMITIVES
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Clip-reveal used for headline lines. The negative margin cancels the
   padding that keeps italic swashes and descenders from being clipped. */
.line-mask {
  display: block;
  overflow: hidden;
  padding-block: 0.14em;
  margin-block: -0.14em;
}

.line-mask > span {
  display: block;
  transform: translate3d(0, 105%, 0);
  transition: transform 900ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.is-in .line-mask > span,
.line-mask.is-in > span { transform: none; }

/* --------------------------------------------------------------------------
   7. BUTTONS & LINKS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brick);
  --btn-fg: #fff;
  --btn-bd: var(--brick);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: 0.95rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition:
    background var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    color var(--dur-mid) var(--ease-out),
    transform var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

/* Wipe fill that rises from the bottom on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brick-deep);
  transform: translate3d(0, 101%, 0);
  transition: transform var(--dur-mid) var(--ease-out);
}

.btn:hover::before,
.btn:focus-visible::before { transform: none; }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(155, 44, 44, .55);
}

.btn:active { transform: translateY(0); }

.btn__arrow {
  transition: transform var(--dur-mid) var(--ease-out);
  flex: none;
}

.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}

.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover,
.btn--ghost:focus-visible { color: var(--bone); border-color: var(--ink); }
.btn--ghost:hover { box-shadow: 0 10px 24px -10px rgba(28, 25, 23, .4); }

.btn--light {
  --btn-bg: rgba(255,255,255,.10);
  --btn-fg: #fff;
  --btn-bd: rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--light::before { background: #fff; }
.btn--light:hover,
.btn--light:focus-visible { color: var(--ink); border-color: #fff; }

/* Text link with an underline that draws in from the left */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--brick);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 2px;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}

.link:hover::after,
.link:focus-visible::after { transform: scaleX(1); }

.link svg { transition: transform var(--dur-mid) var(--ease-out); }
.link:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   8. FOCUS & SKIP LINK
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-header :focus-visible,
.hero :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--ink);
  color: var(--bone);
  padding: var(--s-3) var(--s-5);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Fully removed from layout — used for the spam honeypot field, which must
   not be reachable by keyboard or screen reader at all. */
.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   9. ANNOUNCEMENT BAR
   -------------------------------------------------------------------------- */
.announce {
  position: relative;
  z-index: 1100;
  background: var(--ink);
  color: var(--bone);
  text-align: center;
  font-size: var(--t-small);
  letter-spacing: 0.01em;
  padding: 0.6rem var(--gutter);
}

.announce a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.announce a:hover { border-color: #fff; }

.announce__dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--brass);
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   10. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  transition:
    background var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    min-height var(--dur-mid) var(--ease-out);
}

/* The header height stays fixed so nothing reflows when it becomes stuck —
   only the logo and the surface change. */
.site-header.is-stuck {
  box-shadow: var(--shadow-md);
  background: rgba(250, 248, 245, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

/* Over a hero image the header floats transparent until you scroll. It stays
   sticky (not fixed) so the announcement bar above it still scrolls away
   normally; the hero is pulled up underneath it instead. */
body[data-hero] .site-header {
  background: transparent;
  border-bottom-color: transparent;
  color: #fff;
}

/* Pull the hero up under the transparent header. Must cover BOTH hero types —
   without .page-hero the interior pages render white nav text on the bone
   background, which is invisible. */
body[data-hero] .hero,
body[data-hero] .page-hero { margin-top: calc(-1 * var(--header-h)); }

body[data-hero] .site-header.is-stuck {
  background: rgba(250, 248, 245, .88);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.site-header__logo {
  flex: none;
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-header__logo img {
  height: 4.5rem;
  width: auto;
  transition: height var(--dur-mid) var(--ease-out), filter var(--dur-mid) var(--ease-out);
}

.site-header.is-stuck .site-header__logo img { height: 3.5rem; }

/* The logo art is dark; invert it while it floats over the hero */
body[data-hero] .site-header:not(.is-stuck) .site-header__logo img {
  filter: brightness(0) invert(1);
}

.nav { margin-left: auto; }

/* Only rendered inside the slide-in panel; hidden in the desktop bar. */
.nav__foot { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.006em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.28rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--brick); }

body[data-hero] .site-header:not(.is-stuck) .nav__link[aria-current="page"] { color: #fff; }

.header__cta {
  flex: none;
  margin-left: var(--s-4);
  padding: 0.7rem 1.35rem;
  font-size: 0.875rem;
}

body[data-hero] .site-header:not(.is-stuck) .header__cta {
  --btn-bg: rgba(255,255,255,.12);
  --btn-fg: #fff;
  --btn-bd: rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body[data-hero] .site-header:not(.is-stuck) .header__cta::before { background: #fff; }
body[data-hero] .site-header:not(.is-stuck) .header__cta:hover { color: var(--ink); }

/* --- hamburger + "Menu" label --- */
.nav-toggle {
  display: none;
  flex: none;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  padding: 0.6rem 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: inherit;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.nav-toggle:hover { background: rgba(28, 25, 23, .07); }

body[data-hero] .site-header:not(.is-stuck) .nav-toggle {
  border-color: rgba(255, 255, 255, .55);
}

body[data-hero] .site-header:not(.is-stuck) .nav-toggle:hover {
  background: rgba(255, 255, 255, .14);
}

.nav-toggle__bars {
  position: relative;
  flex: none;
  width: 1.15rem;
  height: 0.75rem;
}

.nav-toggle__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: calc(50% - 0.75px); }
.nav-toggle__bar:nth-child(3) { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(calc(0.375rem - 0.75px)) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(.3);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(calc(-0.375rem + 0.75px)) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   11. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92svh, 54rem);
  display: grid;
  align-items: end;
  overflow: clip;
  color: #fff;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 60%;
}

/* Two-stop scrim: readable text at the bottom, image left alone at the top.
   Starts slightly transparent so the scroll-driven darken has room to move. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .92;
  background:
    linear-gradient(to top,
      rgba(20, 17, 15, .92) 0%,
      rgba(20, 17, 15, .78) 22%,
      rgba(20, 17, 15, .46) 55%,
      rgba(20, 17, 15, .22) 78%,
      rgba(20, 17, 15, .40) 100%);
}

.hero__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(3rem, 2rem + 6vw, 6rem);
  padding-top: calc(var(--header-h) + 3rem);
}

.hero__kicker {
  color: rgba(255,255,255,.82);
  margin-bottom: var(--s-5);
}

.hero__kicker::before { background: var(--brass); opacity: 1; }

.hero h1 {
  font-size: var(--t-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin-bottom: var(--s-5);
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1;
}

/* Fraunces italic leans hard to the right, so the following word needs a
   little air or it collides with the descender. */
.hero h1 em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 20, 'WONK' 1;
  color: #fff;
  padding-right: 0.09em;
}

.hero__lede {
  max-width: 42ch;
  font-size: var(--t-lede);
  color: rgba(255,255,255,.86);
  margin-bottom: var(--s-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,.22);
}

.hero__meta div { display: flex; flex-direction: column; }

.hero__meta dt {
  font-size: var(--t-kicker);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 0.3rem;
}

.hero__meta dd {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0;
}

/* Scroll cue */
.hero__cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 2rem + 6vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-kicker);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  text-decoration: none;
}

.hero__cue-track {
  width: 1px;
  height: 3.5rem;
  background: rgba(255,255,255,.28);
  position: relative;
  overflow: hidden;
}

.hero__cue-track::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 40%;
  background: #fff;
  animation: cue-slide 2.4s var(--ease-inout) infinite;
}

@keyframes cue-slide {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(250%); }
  100% { transform: translateY(250%); }
}

/* Scroll-driven parallax — progressive enhancement, no fallback needed */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__media img {
      animation: hero-zoom linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100svh;
    }
    .hero__scrim {
      animation: hero-darken linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100svh;
    }
    .hero__inner {
      animation: hero-lift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 80svh;
    }
    .hero__cue { animation: hero-cue-fade linear both;
      animation-timeline: scroll(root);
      animation-range: 0 30svh; }
  }
}

@keyframes hero-zoom   { to { transform: scale(1.16); } }
@keyframes hero-darken { to { opacity: 1; } }
@keyframes hero-lift   { to { transform: translateY(-3rem); opacity: .25; } }
@keyframes hero-cue-fade { to { opacity: 0; transform: translateY(1rem); } }

/* --------------------------------------------------------------------------
   12. BRAND MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bone-raised);
  padding-block: var(--s-5);
  overflow: hidden;
  --marquee-gap: clamp(2.5rem, 1rem + 4vw, 5rem);
}

.marquee__label {
  text-align: center;
  font-size: var(--t-kicker);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-4);
}

.marquee__viewport {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Two identical tracks scroll in lockstep; when track A has travelled exactly
   its own width, track B is sitting where A began, so the loop is seamless. */
.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--marquee-gap);
  padding-right: var(--marquee-gap);
  animation: marquee-scroll 42s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

.marquee__item {
  flex: none;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.marquee__item:hover { color: var(--ink); }

@keyframes marquee-scroll {
  to { transform: translateX(-100%); }
}

/* --------------------------------------------------------------------------
   13. PRODUCT TILES
   -------------------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
  gap: clamp(1.25rem, 0.5rem + 2vw, 2.25rem);
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bone-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bone-sunk);
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out), filter 900ms var(--ease-out);
}

.tile:hover .tile__media img { transform: scale(1.06); }

.tile__index {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding-inline: 0.5rem;
  border-radius: 999px;
  background: rgba(250, 248, 245, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.tile__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  flex: 1;
}

.tile__body h3 { margin: 0; }

.tile__body p {
  font-size: var(--t-small);
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.tile__go {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-4);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--brick);
}

.tile__go svg { transition: transform var(--dur-mid) var(--ease-out); }
.tile:hover .tile__go svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   14. INTRO / STORY + STAT PANEL
   -------------------------------------------------------------------------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

.story__copy p + p { margin-top: var(--s-4); }

.story__copy h2 { margin-bottom: var(--s-5); }

.story__copy > .link { margin-top: var(--s-5); }

.story__panel {
  position: relative;
  background: var(--bone-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.story__panel::before {
  content: "";
  position: absolute;
  top: 0; left: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  width: 3rem;
  height: 2px;
  background: var(--brick);
}

.stat { border-bottom: 1px solid var(--line); padding-bottom: var(--s-5); margin-bottom: var(--s-5); }

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 2rem + 4vw, 4.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brick);
  font-variant-numeric: tabular-nums;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1;
}

.stat__label {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.checklist { display: grid; gap: var(--s-3); }

.checklist li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--brick-tint);
  border: 1px solid rgba(155, 44, 44, .28);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 0.33rem;
  top: 0.72em;
  width: 0.42rem;
  height: 0.22rem;
  border-left: 1.5px solid var(--brick);
  border-bottom: 1.5px solid var(--brick);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   15. COMPARISON TABLE
   -------------------------------------------------------------------------- */
.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone-raised);
}

.compare {
  width: 100%;
  min-width: 46rem;
  font-size: 0.9rem;
}

.compare caption {
  caption-side: bottom;
  padding: var(--s-4);
  font-size: var(--t-small);
  color: var(--muted);
  text-align: left;
}

.compare th,
.compare td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: none;
}

.compare thead th:first-child {
  font-family: var(--font-body);
  font-size: var(--t-kicker);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,248,245,.6);
}

.compare thead th a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(250,248,245,.35);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.compare thead th a:hover { border-bottom-color: var(--bone); }

.compare tbody th {
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink);
  background: var(--bone-sunk);
  white-space: nowrap;
}

.compare tbody td { color: var(--ink-soft); }

.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: none; }

.compare tbody tr { transition: background var(--dur-fast) var(--ease-out); }
.compare tbody tr:hover td { background: var(--brick-tint); }

/* Mobile: table collapses into per-material cards */
@media (max-width: 48rem) {
  .compare-scroll { border: none; background: none; overflow: visible; }

  /* A `display: block` table drops caption-side, so the caption would land
     above the cards as a narrow column. Flex ordering puts it back underneath
     at full width. */
  .compare { min-width: 0; display: flex; flex-direction: column; }
  .compare thead { display: none; }
  .compare tbody { order: 1; display: grid; gap: var(--s-4); }
  .compare caption {
    order: 2;
    display: block;
    width: 100%;
    padding: var(--s-4) 0 0;
  }

  .compare tbody tr {
    display: block;
    background: var(--bone-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .compare tbody th {
    display: block;
    font-size: var(--t-kicker);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--bone-sunk);
    border-bottom: 1px solid var(--line);
  }

  .compare tbody td {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: var(--s-4);
    align-items: baseline;
    padding: 0.75rem 1.1rem;
  }

  .compare tbody td::before {
    content: attr(data-material);
    font-size: var(--t-small);
    font-weight: 600;
    color: var(--ink);
  }

  .compare tbody tr:hover td { background: transparent; }
}

/* --------------------------------------------------------------------------
   16. TESTIMONIALS
   -------------------------------------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: clamp(1.25rem, 0.5rem + 2vw, 2rem);
}

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin: 0;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  background: var(--bone-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}

.quote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.quote__stars {
  display: flex;
  gap: 2px;
  color: var(--brass);
}

.quote__stars svg { width: 1rem; height: 1rem; }

.quote blockquote {
  flex: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;
}

.quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
}

.quote figcaption strong { font-weight: 600; }
.quote figcaption span { color: var(--muted); font-size: 0.8125rem; }

/* --------------------------------------------------------------------------
   17. FAQ
   -------------------------------------------------------------------------- */
.faq-list { display: grid; gap: var(--s-3); }

.faq-item {
  background: var(--bone-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}

.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.4;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
  font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brick); }

.faq-item__icon {
  flex: none;
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--brick);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-mid) var(--ease-out);
}

.faq-item__icon::before { width: 1.05rem; height: 1.5px; }
.faq-item__icon::after  { width: 1.5px; height: 1.05rem; }

.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item[open] .faq-item__icon::before { transform: translate(-50%, -50%) rotate(180deg); }

.faq-item__body { padding: 0 1.35rem 1.35rem; }

.faq-item__body p { color: var(--ink-soft); line-height: 1.7; }
.faq-item__body p + p { margin-top: var(--s-3); }

.faq-item__body a { color: var(--brick); text-decoration: underline; text-underline-offset: 2px; }

/* Animated open/close where supported; instant elsewhere */
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .faq-item::details-content {
      block-size: 0;
      overflow: hidden;
      opacity: 0;
      transition:
        block-size var(--dur-mid) var(--ease-out),
        opacity var(--dur-mid) var(--ease-out),
        content-visibility var(--dur-mid) allow-discrete;
    }
    .faq-item[open]::details-content {
      block-size: auto;
      opacity: 1;
    }
  }
}

/* --------------------------------------------------------------------------
   18. CONTACT
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}

.contact-card {
  background: var(--bone-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.contact-card h3 { margin-bottom: var(--s-5); }

.field { display: grid; gap: 0.4rem; margin-bottom: var(--s-4); }

.field label {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.004em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bone);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-light); }

.field input:hover,
.field textarea:hover { border-color: var(--muted-light); }

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--bone-raised);
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(155, 44, 44, .12);
}

.field textarea { resize: vertical; min-height: 8rem; }

.form__submit { width: 100%; margin-top: var(--s-2); }

.form__note {
  margin-top: var(--s-4);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* Button busy state */
.btn[data-busy="true"] { pointer-events: none; opacity: .75; }

.btn__spinner {
  width: 1rem; height: 1rem;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- visit / details card --- */
.visit__map {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--s-5);
  background: var(--bone-sunk);
  filter: saturate(.82) contrast(1.02);
  transition: filter var(--dur-slow) var(--ease-out);
}

.visit__map:hover { filter: none; }

.visit__map iframe { width: 100%; height: 20rem; border: 0; }

.detail-rows { display: grid; gap: 0; }

.detail-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: var(--s-4);
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.detail-row:last-child { border-bottom: none; }

.detail-row dt {
  font-size: var(--t-kicker);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-row dd { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }

.detail-row dd a { color: var(--brick); font-weight: 600; text-decoration: none; }
.detail-row dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

.detail-row dd strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(250, 248, 245, .72);
  padding-block: var(--section-y) var(--s-6);
  font-size: 0.9375rem;
}

.site-footer a { color: inherit; text-decoration: none; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(250, 248, 245, .14);
}

.footer-brand img {
  height: 6rem;
  width: auto;
  max-width: 100%;
  filter: brightness(0) invert(1);
  opacity: .92;
  margin-bottom: var(--s-5);
}

.footer-brand p { max-width: 30ch; line-height: 1.7; }

/* h2, not h4 — the footer is the last landmark on every page, and jumping
   from an h1/h2 in the content straight to an h4 is a heading-level skip for
   screen reader users. The visual size is set here, not by the tag. */
.footer-col h2 {
  font-family: var(--font-body);
  font-size: var(--t-kicker);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, .5);
  margin-bottom: var(--s-4);
  line-height: 1.4;
}

.footer-col li + li { margin-top: 0.65rem; }

.footer-col a {
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-col a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}

.footer-col a:hover { color: #fff; }
.footer-col a:hover::after { transform: scaleX(1); }

/* Direct contact details, so nobody has to hunt for a way to reach the shop. */
.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  margin-bottom: var(--s-5);
}

.footer-contact a { overflow-wrap: break-word; }

.footer-contact__phone {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-contact__phone:hover { color: var(--brass); }

.footer-contact address {
  font-style: normal;
  line-height: 1.65;
  color: rgba(250, 248, 245, .72);
}

.footer-col .link {
  color: var(--brass);
  margin-bottom: var(--s-6);
}

.footer-col h2 + .footer-hours { margin-top: 0; }

.footer-subhead {
  font-family: var(--font-body);
  font-size: var(--t-kicker);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, .5);
  margin-bottom: var(--s-3);
}

.footer-hours { display: grid; gap: 0.4rem; }

.footer-hours div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
}

.footer-hours span:last-child { color: rgba(250, 248, 245, .55); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-5);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-6);
  font-size: var(--t-small);
  color: rgba(250, 248, 245, .5);
}

.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }

.footer-legal a:hover { color: #fff; }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  transition: color var(--dur-fast) var(--ease-out);
}

.to-top:hover { color: #fff; }
.to-top svg { transition: transform var(--dur-mid) var(--ease-out); }
.to-top:hover svg { transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   20. FLOATING CALL BUTTON
   -------------------------------------------------------------------------- */
.call-fab {
  position: fixed;
  right: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  bottom: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 3.5rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--brick);
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 12px 28px -10px rgba(155, 44, 44, .65);
  transform: translateY(120%);
  opacity: 0;
  transition:
    transform 520ms var(--ease-spring),
    opacity var(--dur-mid) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.call-fab.is-in { transform: none; opacity: 1; }

.call-fab:hover {
  background: var(--brick-deep);
  box-shadow: 0 16px 34px -10px rgba(155, 44, 44, .8);
}

.call-fab svg { flex: none; width: 1.25rem; height: 1.25rem; }

.call-fab__text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 420ms var(--ease-out),
              opacity var(--dur-mid) var(--ease-out),
              margin-left 420ms var(--ease-out);
}

.call-fab:hover .call-fab__text,
.call-fab:focus-visible .call-fab__text {
  max-width: 11rem;
  margin-left: 0.6rem;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   20b. COOKIE CONSENT
   -------------------------------------------------------------------------- */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2500;
  background: var(--ink);
  color: rgba(250, 248, 245, .85);
  border-top: 1px solid rgba(250, 248, 245, .14);
  box-shadow: 0 -12px 40px -16px rgba(0, 0, 0, .55);
  transform: translateY(100%);
  transition: transform 420ms var(--ease-out);
}

.consent.is-in { transform: none; }

.consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
  max-width: var(--shell);
  margin-inline: auto;
  padding: var(--s-5) var(--gutter);
}

.consent__text {
  flex: 1 1 24rem;
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.consent__text a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent__actions {
  display: flex;
  gap: var(--s-3);
  flex: none;
}

.consent__actions .btn { padding: 0.7rem 1.5rem; }

/* The ghost button sits on ink here, so invert its palette. */
.consent .btn--ghost {
  --btn-fg: var(--bone);
  --btn-bd: rgba(250, 248, 245, .38);
}

.consent .btn--ghost::before { background: var(--bone); }
.consent .btn--ghost:hover { color: var(--ink); border-color: var(--bone); }

/* Keep the floating call button clear of the bar while it is showing. */
body:has(.consent.is-in) .call-fab { transform: translateY(-6rem); }

@media (max-width: 40rem) {
  .consent__inner { padding-block: var(--s-4); }
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1 1 0; width: auto; }
  body:has(.consent.is-in) .call-fab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .consent { transform: none; }
}

/* --------------------------------------------------------------------------
   21. TOAST
   -------------------------------------------------------------------------- */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  z-index: 2000;
  display: grid;
  gap: var(--s-2);
  width: min(26rem, calc(100vw - 2rem));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: 0.9rem 1.1rem;
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.9375rem;
  line-height: 1.5;
  pointer-events: auto;
  animation: toast-in 420ms var(--ease-spring) both;
}

.toast[data-leaving="true"] { animation: toast-out 240ms var(--ease-out) both; }

.toast__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.35rem; height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: #2F7D5B;
  color: #fff;
}

.toast[data-tone="error"] .toast__icon { background: var(--brick); }

.toast__icon svg { width: 0.8rem; height: 0.8rem; }

@keyframes toast-in {
  from { transform: translateY(1.5rem) scale(.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

@keyframes toast-out {
  to { transform: translateY(0.5rem) scale(.98); opacity: 0; }
}

/* --------------------------------------------------------------------------
   22. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 68rem) {
  .story { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 82rem) {
  :root { --header-h: 5.25rem; }

  .site-header__logo img { height: 3.9rem; }
  .site-header.is-stuck .site-header__logo img { height: 3.2rem; }

  /* Must sit above the slide-in panel so it doubles as the close control. */
  .nav-toggle { display: inline-flex; position: relative; z-index: 2; }

  /* Over the hero the toggle is white; once the bone panel is behind it, that
     would be invisible, so force it back to ink while the menu is open. */
  body.nav-open .site-header .nav-toggle,
  body[data-hero].nav-open .site-header:not(.is-stuck) .nav-toggle {
    color: var(--ink);
    border-color: var(--line-strong);
  }

  body[data-hero].nav-open .site-header:not(.is-stuck) .nav-toggle:hover {
    background: rgba(28, 25, 23, .07);
  }

  /* Same problem for the current-page link inside the panel. */
  body[data-hero] .site-header:not(.is-stuck) .nav__link[aria-current="page"],
  .nav__link[aria-current="page"] { color: var(--brick); }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(22rem, 88vw);
    margin: 0;
    padding: calc(var(--header-h) + 2rem) var(--s-6) var(--s-6);
    background: var(--bone);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px -20px rgba(28, 25, 23, .3);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 420ms var(--ease-out), visibility 0s linear 420ms;
    overflow-y: auto;
    color: var(--ink);
  }

  .nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform 420ms var(--ease-out), visibility 0s;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list li {
    opacity: 0;
    transform: translateX(1.5rem);
    transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav__list li {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 45ms + 120ms);
  }

  .nav__link {
    padding: 0.95rem 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.018em;
  }

  .nav__link::after { display: none; }

  .header__cta { display: none; }

  /* The header CTA is hidden at this width, so the panel carries it instead. */
  .nav__foot {
    display: grid;
    gap: var(--s-3);
    margin-top: var(--s-6);
    opacity: 0;
    transform: translateX(1.5rem);
    transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
  }

  .nav.is-open .nav__foot {
    opacity: 1;
    transform: none;
    transition-delay: 460ms;
  }

  .nav__foot .btn { width: 100%; }

  .nav__phone {
    display: block;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    padding-block: var(--s-2);
  }

  .nav__phone:hover { color: var(--brick); }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(28, 25, 23, .45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-mid) var(--ease-out), visibility 0s linear var(--dur-mid);
  }

  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--dur-mid) var(--ease-out), visibility 0s;
  }

  body.nav-open { overflow: hidden; }

  .hero__cue { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
  :root { --header-h: 4.75rem; }

  .site-header__logo img { height: 3.1rem; }
  .site-header.is-stuck .site-header__logo img { height: 2.7rem; }

  .nav-toggle { padding: 0.5rem 0.8rem; font-size: 0.72rem; gap: 0.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .detail-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .btn { width: 100%; }
  .hero__actions .btn { width: auto; flex: 1 1 auto; }
  .footer-bottom { justify-content: flex-start; }

  /* Keep the hero to roughly one screen instead of running long */
  .hero { min-height: 0; }
  .hero__inner { padding-block: 2.25rem 2.5rem; padding-top: calc(var(--header-h) + 2rem); }
  .hero__kicker { margin-bottom: var(--s-4); font-size: 0.68rem; letter-spacing: 0.12em; }
  .hero h1 { max-width: none; margin-bottom: var(--s-4); }
  .hero__lede { font-size: 1rem; margin-bottom: var(--s-5); }

  .hero__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4) var(--s-5);
    margin-top: var(--s-6);
  }

  .hero__meta dt { font-size: 0.66rem; letter-spacing: 0.12em; }
  .hero__meta dd { font-size: 1rem; }
}

/* ==========================================================================
   INTERIOR PAGES
   Everything below is used by the product, catalog, policy and error pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   P1. COMPACT PAGE HERO + BREADCRUMBS
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(62svh, 34rem);
  overflow: clip;
  isolation: isolate;
  color: #fff;
}

.page-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 55%;
}

.page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .94;
  background: linear-gradient(to top,
    rgba(20, 17, 15, .90) 0%,
    rgba(20, 17, 15, .72) 30%,
    rgba(20, 17, 15, .40) 66%,
    rgba(20, 17, 15, .46) 100%);
}

.page-hero__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  padding-top: calc(var(--header-h) + 2.5rem);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 18ch;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1;
}

.page-hero__lede {
  margin-top: var(--s-4);
  max-width: 46ch;
  font-size: var(--t-lede);
  color: rgba(255, 255, 255, .86);
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .page-hero__media img {
      animation: hero-zoom linear both;
      animation-timeline: scroll(root);
      animation-range: 0 70svh;
    }
  }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: var(--s-4);
  font-size: var(--t-small);
  color: rgba(255, 255, 255, .68);
}

.crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.5); }
.crumbs li { display: flex; align-items: center; gap: 0.45rem; }
.crumbs li + li::before { content: "/"; opacity: .45; }
.crumbs [aria-current="page"] { color: #fff; }

/* --------------------------------------------------------------------------
   P2. FEATURE GRID
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
}

.feature {
  position: relative;
  padding: clamp(1.35rem, 1rem + 1vw, 1.85rem);
  background: var(--bone-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out);
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.feature__num {
  display: block;
  font-family: var(--font-body);
  font-size: var(--t-kicker);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brick);
  margin-bottom: var(--s-3);
}

.feature h3 { margin-bottom: var(--s-2); }

.feature p { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   P3. BRAND BADGES
   -------------------------------------------------------------------------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.6rem 1.15rem;
  background: var(--bone-raised);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.004em;
  color: var(--ink);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

a.badge:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
  transform: translateY(-2px);
}

a.badge svg { opacity: .5; transition: opacity var(--dur-fast) var(--ease-out); }
a.badge:hover svg { opacity: 1; }

/* Non-linking badge (no manufacturer URL on file) */
span.badge { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   P4. GALLERY
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  gap: clamp(0.5rem, 0.25rem + 0.8vw, 1rem);
}

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--bone-sunk);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  isolation: isolate;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out), filter 500ms var(--ease-out);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,17,15,.45), transparent 55%);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
}

.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; }

.gallery-item__zoom {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(250, 248, 245, .94);
  color: var(--ink);
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}

.gallery-item:hover .gallery-item__zoom,
.gallery-item:focus-visible .gallery-item__zoom { opacity: 1; transform: none; }

.gallery-item__zoom svg { width: 0.9rem; height: 0.9rem; }

/* --------------------------------------------------------------------------
   P5. LIGHTBOX
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(12, 10, 9, .94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-mid) var(--ease-out), visibility 0s linear var(--dur-mid);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-mid) var(--ease-out), visibility 0s;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--gutter);
  color: rgba(250, 248, 245, .75);
  font-size: var(--t-small);
}

.lightbox__count { font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }

.lightbox__close {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(250, 248, 245, .3);
  border-radius: 999px;
  color: var(--bone);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease-out);
}

.lightbox__close:hover { background: rgba(250, 248, 245, .14); }

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding-inline: var(--gutter);
}

.lightbox__img {
  max-width: min(100%, 78rem);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  transform: scale(.97);
  opacity: 0;
  transition: transform 420ms var(--ease-out), opacity 300ms var(--ease-out);
}

.lightbox.is-open .lightbox__img { transform: none; opacity: 1; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(250, 248, 245, .10);
  border: 1px solid rgba(250, 248, 245, .22);
  color: var(--bone);
  transition: background var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.lightbox__nav:hover { background: rgba(250, 248, 245, .22); }
.lightbox__nav[disabled] { opacity: .25; pointer-events: none; }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }

.lightbox__caption {
  padding: var(--s-4) var(--gutter) var(--s-6);
  text-align: center;
  color: rgba(250, 248, 245, .8);
  font-size: 0.9375rem;
  max-width: 60ch;
  margin-inline: auto;
}

body.lightbox-open { overflow: hidden; }

@media (max-width: 40rem) {
  .lightbox__nav { width: 2.5rem; height: 2.5rem; }
  .lightbox__nav--prev { left: 0.35rem; }
  .lightbox__nav--next { right: 0.35rem; }
}

/* --------------------------------------------------------------------------
   P6. RELATED CARDS
   -------------------------------------------------------------------------- */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.5rem);
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: clamp(1.35rem, 1rem + 1vw, 1.75rem);
  background: var(--bone-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.related-card h3 { color: var(--ink); }
.related-card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

.related-card__go {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-3);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--brick);
}

.related-card__go svg { transition: transform var(--dur-mid) var(--ease-out); }
.related-card:hover .related-card__go svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   P7. PROGRAM CALLOUT
   -------------------------------------------------------------------------- */
.callout {
  position: relative;
  padding: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90rem 30rem at 12% -10%, rgba(155, 44, 44, .35), transparent 60%);
  pointer-events: none;
}

.callout > * { position: relative; }

.callout .kicker { color: var(--brass); }
.callout .kicker::before { background: var(--brass); opacity: 1; }

.callout h2 { margin-bottom: var(--s-4); max-width: 22ch; }

.callout__lede { color: rgba(250, 248, 245, .82); max-width: 58ch; font-size: var(--t-lede); }

.callout__list {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-6) 0;
  max-width: 52ch;
}

.callout__list li {
  position: relative;
  padding-left: 1.75rem;
  color: rgba(250, 248, 245, .82);
  line-height: 1.55;
}

.callout__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brass);
}

.callout__list strong { color: #fff; }

.callout .btn {
  --btn-bg: var(--bone);
  --btn-fg: var(--ink);
  --btn-bd: var(--bone);
}

.callout .btn::before { background: #fff; }

.callout__foot { margin-top: var(--s-5); font-size: 0.9375rem; color: rgba(250, 248, 245, .66); }
.callout__foot a { color: var(--brass); font-weight: 600; }

/* --------------------------------------------------------------------------
   P8. BROCHURE / CATALOG SCROLL
   -------------------------------------------------------------------------- */
.brochure {
  display: grid;
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
  max-width: 68rem;
  margin-inline: auto;
}

.brochure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bone-raised);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   P9. PROSE (policy pages)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 44rem;
  /* Defensive: a long URL or pasted non-breaking run should wrap rather
     than push the page wide. */
  overflow-wrap: break-word;
}

.prose h2 {
  margin-top: var(--s-8);
  margin-bottom: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
}

.prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.prose h3 { margin-top: var(--s-6); margin-bottom: var(--s-3); }

.prose p { margin-bottom: var(--s-4); color: var(--ink-soft); line-height: 1.75; }

.prose ul, .prose ol { margin: 0 0 var(--s-5); display: grid; gap: var(--s-3); }

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--brick);
}

.prose ol { counter-reset: n; }

.prose ol li {
  position: relative;
  padding-left: 2rem;
  counter-increment: n;
  color: var(--ink-soft);
  line-height: 1.7;
}

.prose ol li::before {
  content: counter(n) ".";
  position: absolute;
  left: 0;
  color: var(--brick);
  font-weight: 700;
  font-size: 0.9rem;
}

.prose a { color: var(--brick); text-decoration: underline; text-underline-offset: 3px; }

.prose strong { color: var(--ink); }

.prose__updated {
  display: inline-block;
  margin-bottom: var(--s-6);
  padding: 0.4rem 0.9rem;
  background: var(--bone-sunk);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--t-small);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   P10. ERROR PAGES
   -------------------------------------------------------------------------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: var(--section-y) var(--gutter);
  text-align: center;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 12vw, 12rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--line-strong);
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1;
}

.error-page h1 { margin: var(--s-5) 0 var(--s-4); }

.error-page p { max-width: 46ch; margin-inline: auto; color: var(--ink-soft); }

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  margin-top: var(--s-6);
}

/* --------------------------------------------------------------------------
   P11. PROGRAM COLORS — toolbar, filtering, cards
   -------------------------------------------------------------------------- */
.pc-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 500;
  margin-bottom: var(--s-6);
  padding: var(--s-4) 0;
  background: rgba(250, 248, 245, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.pc-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.pc-search {
  position: relative;
  flex: 1 1 16rem;
  min-width: 0;
}

.pc-search input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.6rem;
  background: var(--bone-raised);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--ink);
}

.pc-search input:focus {
  outline: none;
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(155, 44, 44, .12);
}

.pc-search__icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  translate: 0 -50%;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  pointer-events: none;
}

.pc-search__clear {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  translate: 0 -50%;
  display: none;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  color: var(--muted);
  background: var(--bone-sunk);
}

.pc-search__clear:hover { color: var(--ink); }
.pc-search.has-value .pc-search__clear { display: grid; }

.pc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}

.pc-chip {
  padding: 0.5rem 0.95rem;
  background: var(--bone-raised);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.pc-chip:hover { border-color: var(--muted); }

.pc-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

.pc-count {
  margin-left: auto;
  font-size: var(--t-small);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pc-group { margin-bottom: var(--s-8); scroll-margin-top: calc(var(--header-h) + 6rem); }

.pc-group[hidden] { display: none; }

.pc-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}

.pc-group__head h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); }

.pc-group__meta { font-size: var(--t-small); color: var(--muted); }

.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr));
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.35rem);
}

.pc-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone-raised);
  overflow: hidden;
  text-align: left;
  cursor: zoom-in;
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out);
}

.pc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.pc-card[hidden] { display: none; }

.pc-card__media {
  aspect-ratio: 1280 / 608;
  overflow: hidden;
  background: var(--bone-sunk);
}

.pc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.pc-card:hover .pc-card__media img { transform: scale(1.05); }

.pc-card__body { padding: 0.85rem 1rem 1rem; }

/* These are spans (the card is a <button>, which cannot contain block-level
   elements), so they need to be made block explicitly or they run together. */
.pc-card__media,
.pc-card__body,
.pc-card__name,
.pc-card__meta { display: block; }

.pc-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  color: var(--ink);
  font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;
}

.pc-card__meta {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

mark.pc-hit {
  background: rgba(176, 141, 87, .28);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.pc-empty {
  display: none;
  padding: var(--s-8) var(--s-4);
  text-align: center;
  color: var(--muted);
}

.pc-empty.is-shown { display: block; }

.pc-empty h3 { color: var(--ink); margin-bottom: var(--s-3); }

@media (max-width: 48rem) {
  .pc-toolbar { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .pc-count { margin-left: 0; width: 100%; }
}

/* --------------------------------------------------------------------------
   23. REDUCED MOTION — the global off switch
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .line-mask > span { transform: none; }
  .call-fab { transform: none; opacity: 1; }
  .marquee__track { animation: none; }
  .hero__cue-track::after { animation: none; opacity: .6; }
  .call-fab__text { max-width: 11rem; margin-left: 0.6rem; opacity: 1; }
  .lightbox__img { transform: none; opacity: 1; }
  .gallery-item__zoom { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   24. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .announce, .call-fab, .hero__cue,
  .marquee, .toast-region, .nav-backdrop,
  .lightbox, .pc-toolbar { display: none !important; }

  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-footer { background: #fff; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
