/* ==========================================================================
   SMILE ON NASHVILLE / SYSTEM v3 "LIGHT LUXURY"  (site.css?v=3)
   Warm gallery whites + ink moments + brass jewelry.
   Fonts client-locked: Oswald (display) + Source Sans 3 (body).
   Palette client-locked, expressed in oklch with brass-tinted neutrals.
   BANNED here and on every page: pure #000/#fff, gradient text, glow shadows,
   colored side stripes thicker than 1px, three equal cards in a row.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* warm gallery whites (#F8F7F4 / #F5F3EE / #EFECE6 / #E8E5DE) */
  --paper:    oklch(97.7% 0.005 92);
  --panel:    oklch(96.4% 0.007 92);
  --panel-2:  oklch(94.4% 0.009 92);
  --line:     oklch(91.6% 0.010 92);

  /* ink (#1C1A16 text, #171717 cinema [brand dark], #1E1E1E cinema panel) */
  --ink:      oklch(23.5% 0.009 85);
  --ink-soft: oklch(40% 0.012 85);
  --cinema:   #171717;            /* brand dark, was oklch(18.5% 0.005 85)/#0F0F10 */
  --cinema-2: oklch(24% 0.006 85);

  /* 3-HEX SECTION SYSTEM (canonical brand): light / mid / deep */
  --sect-light: #F8F7F4;   /* warm gallery white  (== --paper)   */
  --sect-mid:   #EFECE6;   /* mid warm panel      (== --panel-2) */
  --sect-dark:  #171717;   /* brand deep          (== --cinema)  */

  /* brass jewelry (#B08D57 / #8F6B3D deep / #C2A46D / #D6BE8A) */
  --brass:       oklch(66.5% 0.083 78);
  --brass-deep:  oklch(54.5% 0.080 75);   /* text-safe on light */
  --brass-light: oklch(73% 0.077 83);     /* on ink only */
  --brass-pale:  oklch(81% 0.070 88);     /* on ink only */

  /* light text on ink */
  --milk:      oklch(94% 0.006 90);
  --milk-soft: oklch(76% 0.010 90);

  /* the ONE warm gradient per page (statband OR ctaband, never both) */
  --grad-warm: linear-gradient(108deg,
                oklch(97.5% 0.006 92) 0%,
                oklch(94.2% 0.022 88) 48%,
                oklch(89.5% 0.045 84) 100%);

  /* soft brass-tinted diffusion shadows, never glows */
  --shadow-soft: 0 20px 40px -15px oklch(23.5% 0.025 85 / 0.10);
  --shadow-deep: 0 32px 64px -22px oklch(23.5% 0.030 85 / 0.16);
  /* layered 3D lift: tight contact + mid + far ambient, warm-tinted (for images that pop off the page) */
  --shadow-lift: 0 2px 6px -2px oklch(23.5% 0.03 85 / 0.14), 0 14px 26px -10px oklch(23.5% 0.03 85 / 0.16), 0 38px 70px -30px oklch(23.5% 0.045 85 / 0.30);
  /* a brass radial glow for elements sitting on dark/cinema surfaces (use as background, not box-shadow) */
  --glow-brass: radial-gradient(60% 60% at 50% 45%, oklch(66.5% 0.083 78 / 0.20) 0%, transparent 70%);

  /* type */
  --font-d: "Oswald", "Arial Narrow", sans-serif;
  --font-b: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", sans-serif;
  --fs-d1:   clamp(2.7rem, 1.55rem + 4.6vw, 5.1rem);
  --fs-d2:   clamp(2.05rem, 1.45rem + 2.4vw, 3.3rem);
  --fs-d3:   clamp(1.45rem, 1.2rem + 1vw, 2rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-sm:   0.875rem;

  /* rhythm */
  --sect:      clamp(4.5rem, 3rem + 5vw, 7.75rem);
  --sect-sm:   clamp(3rem, 2.25rem + 2.5vw, 4.5rem);
  --nav-h:     5.25rem;
  --r-lg:      1.5rem;
  --r-md:      1.25rem;
  --r-sm:      0.75rem;

  --ease:     cubic-bezier(0.19, 1, 0.22, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* --------------------------------------------------------------------------
   2. RESET + BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-b);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, picture, video, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
address { font-style: normal; }

::selection { background: oklch(81% 0.070 88 / 0.55); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.cinema :focus-visible, .site-footer :focus-visible { outline-color: var(--brass-pale); }

a { color: inherit; }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--font-d);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1, .d1 { font-size: var(--fs-d1); }
h2, .d2 { font-size: var(--fs-d2); }
h3, .d3 { font-size: var(--fs-d3); letter-spacing: 0; }
h4, h5 { font-family: var(--font-b); font-weight: 700; font-size: 1.0625rem; }

/* weight-contrast pair inside a display heading: <span class="thin"> */
.thin { font-weight: 300; }

p { max-width: 70ch; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-soft); }
.small { font-size: var(--fs-sm); }
.muted { color: var(--ink-soft); }
.brass-text { color: var(--brass-deep); }
.tabular { font-variant-numeric: tabular-nums lining-nums; }

/* caption under images / small metadata */
.cap {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-top: 0.75rem;
}

/* short brass rule used above headings instead of eyebrow labels */
.rule {
  width: 3rem;
  height: 2px;
  background: var(--brass);
  border: 0;
  margin: 0 0 1.25rem;
}

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap        { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.wrap--wide  { width: min(1340px, 100% - 3rem); }
.wrap--slim  { width: min(840px, 100% - 3rem); }

.sect        { padding-block: var(--sect); position: relative; scroll-margin-top: 5.5rem; }
.sect--sm    { padding-block: var(--sect-sm); }
.sect--panel { background: var(--panel); }
.sect--flush { padding-block: 0; }

/* asymmetric split (heroes, 2-col editorial) */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.split--75   { grid-template-columns: 7fr 5fr; }
.split--gold { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 860px) {
  .split, .split--75, .split--gold { grid-template-columns: 1fr; }
}

.ctarow { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* --------------------------------------------------------------------------
   5. BUTTONS + LINKS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 2.1rem;
  border-radius: 99px;
  border: 1px solid transparent;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.015em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              transform 0.3s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover { background: var(--brass-deep); color: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow-deep); }
.btn:active { transform: scale(0.98); }

.btn--sm { min-height: 2.75rem; padding: 0.55rem 1.5rem; font-size: 0.95rem; }
.btn--lg { min-height: 3.6rem; padding: 1rem 2.6rem; font-size: 1.0625rem; }

.btn--ghost {
  background: transparent;
  border-color: oklch(23.5% 0.009 85 / 0.3);
  color: var(--ink);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--panel-2); border-color: var(--brass-deep); color: var(--brass-deep); box-shadow: none; }
.cinema .btn--ghost, .site-footer .btn--ghost {
  border-color: oklch(94% 0.006 90 / 0.35);
  color: var(--milk);
}
.cinema .btn--ghost:hover { background: var(--cinema-2); border-color: var(--brass-light); color: var(--brass-light); }

/* text link with underline draw */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--brass-deep);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
  min-height: 44px;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.45rem;
  height: 1.5px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.tlink:hover::after, .tlink:focus-visible::after { transform: scaleX(1); }
.tlink--arr::before { content: "\2192"; order: 2; transition: transform 0.35s var(--ease); }
.tlink--arr:hover::before { transform: translateX(4px); }
.cinema .tlink { color: var(--brass-light); }
.cinema .tlink::after { background: var(--brass-light); }

/* --------------------------------------------------------------------------
   6. HEADER + NAV  (light, sticky)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: oklch(97.7% 0.005 92 / 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header.is-scrolled {
  background: oklch(97.7% 0.005 92 / 0.94);
  border-bottom-color: var(--line);
}

.nav {
  width: min(1340px, 100% - 3rem);
  margin-inline: auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Oswald wordmark lockup (ink) + brass subline */
.nav__logo { text-decoration: none; display: block; line-height: 1.1; }
.nav__logo-img { display: block; height: clamp(2.7rem, 3.4vw, 3.4rem); width: auto; }
.nav__wordmark {
  display: block;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.nav__wordmark .thin { font-weight: 300; letter-spacing: 0.14em; }
.nav__subline {
  display: block;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brass-deep);
  margin-top: 0.1rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.9rem);
}
.nav__links > li > a:not(.btn),
.nav__droptoggle {
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.25s ease;
}
.nav__links > li > a:not(.btn):hover,
.nav__droptoggle:hover { color: var(--ink); }
.nav__links > li > a:not(.btn)[aria-current="page"] { color: var(--ink); }

/* highlighted PERL Program item */
.nav__perl {
  color: var(--brass-deep) !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav__perl::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--brass);
  border-radius: 50%;
  flex: none;
}
.nav__perl:hover { color: var(--brass) !important; }

.caret {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.25s ease;
  flex: none;
}

/* dropdown panels */
.nav__item--drop { position: relative; }
.nav__droppanel {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: -1rem;
  min-width: 15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-deep);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 30;
}
.nav__droppanel::before { /* hover bridge so the panel does not vanish mid-travel */
  content: "";
  position: absolute;
  top: -0.9rem; left: 0; right: 0;
  height: 0.9rem;
}
.nav__droppanel a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav__droppanel a:hover { background: var(--panel-2); color: var(--ink); }
.nav__droppanel a[aria-current="page"] { color: var(--brass-deep); }

@media (min-width: 1081px) {
  .nav__item--drop:hover .nav__droppanel,
  .nav__item--drop:focus-within .nav__droppanel,
  .nav__item--drop.is-open .nav__droppanel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav__item--drop:hover .caret,
  .nav__item--drop.is-open .caret { transform: rotate(225deg) translate(-2px, -2px); }
  .nav__panelfoot { display: none; }
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

/* ---- mobile: designed slide-in panel ---- */
@media (max-width: 1080px) {
  .nav__burger { display: flex; }

  /* keep the wordmark + close (X) above the open panel */
  .nav__logo, .nav__burger { position: relative; z-index: 75; }

  body.nav-open { overflow: hidden; }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: oklch(18.5% 0.005 85 / 0.45);
    z-index: 60;
  }
  body.nav-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav__burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(25rem, 100vw);
    z-index: 70;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-deep);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--nav-h) + 1.5rem) 2rem 2.25rem;
    overflow-y: auto;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0.5s;
  }
  body.nav-open .nav__links { transform: none; visibility: visible; }
  .nav__links::before { /* brass hairline crown */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brass), var(--brass-pale));
  }

  .nav__links > li { border-top: 1px solid var(--line); }
  .nav__links > li:first-child { border-top: 0; }
  .nav__links > li > a:not(.btn),
  .nav__droptoggle {
    font-family: var(--font-d);
    font-weight: 500;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink);
    width: 100%;
    justify-content: space-between;
    padding: 0.95rem 0;
    min-height: 44px;
  }
  .nav__perl { justify-content: flex-start !important; gap: 0.6rem; }

  .nav__droppanel {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 0.25rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
  }
  .nav__droppanel::before { display: none; }
  .nav__droppanel > li:last-child { margin-bottom: 1rem; }
  .nav__item--drop.is-open .nav__droppanel { max-height: 32rem; }
  .nav__item--drop.is-open .caret { transform: rotate(225deg) translate(-2px, -2px); }
  .nav__droppanel a {
    font-family: var(--font-b);
    font-size: 1rem;
    padding: 0.6rem 0.75rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav__cta { border-top: 0 !important; margin-top: 1.5rem; }
  .nav__cta .btn { width: 100%; }

  .nav__panelfoot {
    border-top: 0 !important;
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
  }
  .nav__panelfoot a {
    font-family: var(--font-d);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    color: var(--brass-deep);
    text-decoration: none;
  }
}

/* ---- header CTA chooser: the same 3 "ways to start" as the hero/hub, in a compact nav panel.
   Uses the shared [data-cta-reveal] JS. Own selectors (scoped under .nav__cta) so the
   home page's global .ctaways grid styles never leak into the header. ---- */
.nav__cta .cta-reveal__btn { gap: 0.5em; }
.nav__cta .cta-reveal__chev {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.3s var(--ease);
  flex: none;
}
.nav__cta.is-open .cta-reveal__chev { transform: rotate(-135deg) translateY(1px); }

.nav__cta .ctaways {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr; /* one option per row; resets the home page's global 3-column .ctaways grid so the panel never squeezes into columns */
  gap: 0;
}
.nav__cta .ctaways[hidden] { display: none; }
.nav__cta .ctaways__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav__cta .ctaways__item:first-child { border-top: 0; }
.nav__cta .ctaways.is-in .ctaways__item { opacity: 1; transform: none; }
.nav__cta .ctaways.is-in .ctaways__item:nth-child(2) { transition-delay: 0.05s; }
.nav__cta .ctaways.is-in .ctaways__item:nth-child(3) { transition-delay: 0.1s; }
.nav__cta .ctaways__ord {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--brass-deep);
  min-width: 1.4rem;
  font-variant-numeric: tabular-nums;
}
.nav__cta .ctaways__hlink {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.4rem;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav__cta .ctaways__hlink:hover { color: var(--ink); background: var(--panel-2); }
@media (prefers-reduced-motion: reduce) {
  .nav__cta .ctaways__item { transition: none; opacity: 1; transform: none; }
}

@media (min-width: 1081px) {
  .nav__cta { position: relative; }
  .nav__cta .ctaways {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 15rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-deep);
    padding: 0.5rem 0.75rem;
    z-index: 30;
  }
}

@media (max-width: 1080px) {
  .nav__cta .ctaways { padding: 0.5rem 0 0; margin-top: 0.25rem; }
  .nav__cta .ctaways__item { padding: 0.1rem 0; }
  .nav__cta .ctaways__hlink { min-height: 44px; font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   7. FOOTER  (ink, 5 columns)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--cinema);
  color: var(--milk-soft);
  padding-top: clamp(4rem, 6vw, 6rem);
  font-size: 0.95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.footer__brand p { margin-top: 1.25rem; max-width: 30ch; line-height: 1.6; }
.footer__perl { margin-top: 1.5rem; opacity: 0.85; }
.footer__head {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass-light);
  margin-bottom: 1.1rem;
}
.footer__list { display: grid; gap: 0; }
.footer__list a {
  color: var(--milk-soft);
  text-decoration: none;
  display: inline-block;
  padding: 0.6rem 0; /* 44px+ touch target with 0.95rem/1.65 line box */
  transition: color 0.2s ease;
}
.footer__list a:hover { color: var(--brass-pale); }
.footer__list a[aria-current="page"] { color: var(--milk); }
.footer__ext { color: var(--brass-light); font-size: 0.85em; }
.footer__nap { line-height: 1.8; }
.footer__nap strong { color: var(--milk); }
.footer__nap a { color: var(--milk-soft); text-decoration: none; transition: color 0.2s ease; }
.footer__nap a:hover { color: var(--brass-pale); }
.footer__fine { margin-top: 1rem; font-size: 0.85rem; color: oklch(60% 0.012 88); }
.footer__fine a { color: inherit; transition: color 0.2s ease; }
.footer__fine a:hover { color: var(--brass-pale); }
.footer__bottom {
  border-top: 1px solid oklch(94% 0.006 90 / 0.1);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: oklch(60% 0.012 88);
}
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   8. PAGE HERO (asymmetric variants) + BREADCRUMBS
   -------------------------------------------------------------------------- */
.pagehero { padding-block: clamp(3.25rem, 6vw, 6rem) clamp(3.5rem, 6vw, 6.5rem); position: relative; }
.pagehero h1 { margin-bottom: 1.25rem; }
.pagehero .lead { margin-bottom: 2rem; }

/* default: split text left / image right (use .split or .split--75 inside) */
.pagehero__media { position: relative; }
.pagehero__media .frame { aspect-ratio: 4 / 5; }
.pagehero--low { padding-block: clamp(2.5rem, 4vw, 3.75rem); }

/* text-only hero with ghost numeral breathing on the right */
.pagehero--text .pagehero__inner { max-width: 62ch; position: relative; }

@media (max-width: 860px) {
  .pagehero__media { order: 1; width: 100%; }
  /* keep the desktop 4/5 framing on mobile so portrait/square hero subjects
     (faces, the doctor at work) are not cropped into a wide letterbox band */
  .pagehero__media .frame { aspect-ratio: 4 / 5; }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; transition: color 0.2s ease; }
.crumbs a:hover { color: var(--brass-deep); }
.crumbs li { display: flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; color: var(--brass); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* --------------------------------------------------------------------------
   9. EDITORIAL LEDGER (hairline rows, hover image reveal)
   -------------------------------------------------------------------------- */
.ledger { border-top: 1px solid var(--line); }
.ledger__row {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1.05fr 1.55fr auto;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.4rem) 0.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease;
}
.ledger__row:hover { background: oklch(96.4% 0.007 92 / 0.7); }
.ledger__num {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--brass-deep);
  font-variant-numeric: tabular-nums;
}
.ledger__name {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  text-transform: uppercase;
  line-height: 1.1;
}
.ledger__desc { color: var(--ink-soft); font-size: 0.98rem; max-width: 52ch; }
.ledger__go {
  font-weight: 700;
  color: var(--brass-deep);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.ledger__go::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.ledger__row:hover .ledger__go::after { transform: translateX(5px); }

/* hover image reveal (desktop only) */
.ledger__img {
  position: absolute;
  right: clamp(6rem, 12vw, 11rem);
  top: 50%;
  width: clamp(11rem, 16vw, 15rem);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-deep);
  opacity: 0;
  transform: translateY(-50%) rotate(-2.5deg) scale(0.94);
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
  z-index: 5;
}
.ledger__row:hover .ledger__img { opacity: 1; transform: translateY(-50%) rotate(-1deg) scale(1); }

/* featured (PERL) row: warm brass tint, reads on paper AND panel sections */
.ledger__row--feature { background: oklch(95.8% 0.018 87); }
.ledger__row--feature:hover { background: oklch(94.5% 0.024 87); }
.ledger__row--feature .ledger__name { color: var(--brass-deep); }
.ledger__tag {
  display: inline-block;
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: var(--brass-deep);
  border-radius: 99px;
  padding: 0.25rem 0.7rem;
  margin-left: 0.75rem;
  vertical-align: middle;
}

@media (max-width: 980px) {
  .ledger__row { grid-template-columns: 2.5rem 1fr; row-gap: 0.4rem; }
  .ledger__desc, .ledger__go { grid-column: 2; }
  .ledger__img { display: none; }
}

/* --------------------------------------------------------------------------
   10. ZIG-ZAG 2-COL BLOCKS
   -------------------------------------------------------------------------- */
.zig {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2.5rem, 5.5vw, 5.5rem);
  align-items: center;
}
.zig + .zig { margin-top: var(--sect-sm); }
.zig--flip { grid-template-columns: 0.88fr 1.12fr; }
.zig--flip .zig__media { order: -1; }
.zig h2, .zig h3 { margin-bottom: 1.1rem; }
.zig p + p { margin-top: 1rem; }
.zig .ctarow { margin-top: 1.75rem; }
@media (max-width: 860px) {
  .zig, .zig--flip { grid-template-columns: 1fr; }
  .zig__media, .zig--flip .zig__media { order: -1; }
}

/* --------------------------------------------------------------------------
   11. BENTO (intentional spans, never equal cards)
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.9rem, 1.5vw, 1.4rem);
}
.bento__cell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  grid-column: span 6;
}
.bento__cell h3 { font-size: 1.2rem; }
.bento__cell p { color: var(--ink-soft); font-size: 0.97rem; }
.bento__cell--img { padding: 0; overflow: hidden; border: 0; }
.bento__cell--img img { width: 100%; height: 100%; object-fit: cover; }
.bento__cell--ink { background: var(--cinema); border-color: var(--cinema); color: var(--milk-soft); }
.bento__cell--ink h3 { color: var(--milk); }
.bento__cell--ink p { color: var(--milk-soft); }
.span-3 { grid-column: span 3; }
.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-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }
.rows-2 { grid-row: span 2; }
@media (max-width: 980px) {
  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-7, .span-8, .span-9 { grid-column: span 12; }
}
@media (max-width: 640px) {
  .bento__cell, .span-3, .span-4, .span-5, .span-6 { grid-column: span 12; }
  .rows-2 { grid-row: span 1; }
}

/* --------------------------------------------------------------------------
   12. STAT BAND (uses THE one warm gradient)
   -------------------------------------------------------------------------- */
.statband {
  background: var(--grad-warm);
  border-block: 1px solid var(--line);
  padding-block: clamp(2.75rem, 4.5vw, 4.25rem);
}
.statband__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: baseline;
}
.stat { min-width: 9rem; }
.stat__num {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: clamp(2.6rem, 4.5vw, 4.1rem);
  line-height: 1;
  color: var(--brass-deep);
  font-variant-numeric: tabular-nums lining-nums;
}
.stat__label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   13. QUOTES + KINETIC MARQUEE
   -------------------------------------------------------------------------- */
.quote { position: relative; max-width: 60ch; }
.quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--brass);
  margin-bottom: 1rem;
}
.quote__text { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem); line-height: 1.55; color: var(--ink); }
.quote__attr {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.quote__stars { color: var(--brass-deep); letter-spacing: 0.2em; font-size: 0.9rem; margin-top: 0.3rem; }
.quote--card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.cinema .quote__text { color: var(--milk); }
.cinema .quote__attr { color: var(--milk-soft); }
.cinema .quote__stars { color: var(--brass-light); }
.cinema .quote::before { color: var(--brass-light); }

/* kinetic marquee: JS duplicates .marquee__group and sets --marquee-dur */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, oklch(0% 0 0) 8%, oklch(0% 0 0) 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, oklch(0% 0 0) 8%, oklch(0% 0 0) 92%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  flex: none;
}
.marquee--on .marquee__track { animation: marquee-x var(--marquee-dur, 42s) linear infinite; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee-x { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee--on .marquee__track { animation: none; }
}
.marquee__item {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee__dot {
  width: 7px; height: 7px;
  background: var(--brass);
  border-radius: 50%;
  flex: none;
}
.cinema .marquee__item { color: var(--milk-soft); }
.cinema .marquee__dot { background: var(--brass-light); }

/* --------------------------------------------------------------------------
   14. COMPARISON TABLE (light)
   -------------------------------------------------------------------------- */
.vs-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.vs { width: 100%; min-width: 620px; border-collapse: collapse; }
.vs th, .vs td {
  padding: 1.05rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.vs thead th {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  background: var(--panel);
}
.vs tbody tr:last-child th,
.vs tbody tr:last-child td { border-bottom: 0; }
.vs tbody th { font-family: var(--font-b); font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.vs td { color: var(--ink-soft); font-size: 0.98rem; }
/* PERL column lifted in warm brass tint */
.vs th:nth-child(2), .vs td:nth-child(2) { background: oklch(95.8% 0.018 87); }
.vs thead th:nth-child(2) { color: var(--brass-deep); }

/* stacked mode below 768px: each row becomes a hairline-divided block,
   the feature name becomes an Oswald label, each cell carries its own
   brass column label via data-col. No horizontal scroll, ever. */
@media (max-width: 767px) {
  .vs-wrap { overflow-x: visible; }
  .vs { min-width: 0; }
  .vs thead { display: none; }
  .vs tbody, .vs tbody tr, .vs tbody th, .vs tbody td { display: block; }
  .vs tbody tr { border-bottom: 1px solid var(--line); padding-block: 1.15rem 1.2rem; }
  .vs tbody tr:last-child { border-bottom: 0; padding-bottom: 1.3rem; }
  .vs tbody th, .vs tbody td { border-bottom: 0; }
  .vs tbody th {
    font-family: var(--font-d);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 1.25rem 0.3rem;
  }
  .vs tbody td { padding: 0.55rem 1.25rem; font-size: 0.95rem; }
  .vs tbody td::before {
    content: attr(data-col);
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brass-deep);
    margin-bottom: 0.15rem;
  }
  .vs tbody td:last-child { padding-bottom: 0.2rem; }
}

/* --------------------------------------------------------------------------
   15. FAQ ACCORDION (details/summary, 44px+ targets)
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  list-style: none;
  transition: color 0.2s ease;
}
.faq summary:hover { color: var(--brass-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 0.8rem; height: 0.8rem;
  flex: none;
  background:
    linear-gradient(var(--brass-deep), var(--brass-deep)) center / 100% 2px no-repeat,
    linear-gradient(var(--brass-deep), var(--brass-deep)) center / 2px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 0.25rem 1.6rem; color: var(--ink-soft); max-width: 65ch; }
.faq__a p + p { margin-top: 0.8rem; }

/* --------------------------------------------------------------------------
   16. TIMELINE (hairline steps, big numerals)
   -------------------------------------------------------------------------- */
.timeline { display: grid; }
.timeline__step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}
.timeline__step:last-child { border-bottom: 1px solid var(--line); }
.timeline__num {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--brass-deep);
  font-variant-numeric: tabular-nums;
}
.timeline__step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.timeline__step p { color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 640px) {
  .timeline__step { grid-template-columns: 3.25rem 1fr; }
}

/* --------------------------------------------------------------------------
   17. DEFBOX + CHECKS
   -------------------------------------------------------------------------- */
.defbox {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 64ch;
}
.defbox::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  background: var(--brass);
  margin-bottom: 1.25rem;
}
.defbox__term {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.defbox p { color: var(--ink-soft); }

.checks { display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--brass-deep);
}
.cinema .checks li::before { color: var(--brass-light); }

/* --------------------------------------------------------------------------
   18. IMAGES: FRAME, WARM GRADE, LUX-FRAME, ASPECTS
   -------------------------------------------------------------------------- */
.frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  position: relative;
}
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame picture, .postcard__img picture { display: contents; }
.frame--flat { box-shadow: var(--shadow-soft); }
/* 3D lift: makes a framed image/card pop off the page. On light surfaces only. */
.lift { box-shadow: var(--shadow-lift); }
.frame.lift { box-shadow: var(--shadow-lift); }
/* a gentle settle on scroll-in for lifted media (transform handled by data-reveal) */
.lift--hover { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.lift--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift), 0 50px 90px -40px oklch(23.5% 0.05 85 / 0.34); }

.img-warm { filter: saturate(1.02) sepia(0.04); }

/* warm background washes for breaking up white sections (use on a .sect or wrapper) */
.wash-warm { position: relative; isolation: isolate; }
.wash-warm::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(80% 120% at 88% 0%, oklch(89.5% 0.045 84 / 0.55) 0%, transparent 55%);
}
.wash-warm--left::before { background: radial-gradient(80% 120% at 12% 0%, oklch(89.5% 0.045 84 / 0.5) 0%, transparent 55%); }

/* a slightly lighter charcoal dark tone, for tonal variation between adjacent dark sections */
.cinema--alt { background: var(--cinema-2); }
/* a soft brass radial behind a focal element on dark sections */
.darkglow { position: relative; isolation: isolate; }
.darkglow::before { content: ""; position: absolute; inset: -10% -6%; z-index: -1; pointer-events: none; background: var(--glow-brass); }
/* a brass hairline for framed images sitting on dark/cinema surfaces (drop shadows don't read on dark) */
.darkframe { border: 1px solid oklch(73% 0.077 83 / 0.30); }

/* warm cutout-mat + a 3D drop-shadow on the cut-out figure so it pops off the page */
.cutout-mat--warm { background: radial-gradient(120% 120% at 70% 12%, oklch(91% 0.04 86) 0%, var(--panel-2) 60%); }
.cutout-mat--pop img { filter: drop-shadow(0 24px 30px oklch(23.5% 0.04 85 / 0.32)); }

/* a deeper, taller warm-gradient close (page CTA band) */
.ctaband--deep {
  background: linear-gradient(108deg, oklch(95.5% 0.014 90) 0%, oklch(91% 0.038 86) 46%, oklch(85.5% 0.062 82) 100%);
  padding-block: clamp(3.5rem, 5vw, 6rem);
}

/* reusable child stagger: add class .stagger to a container inside a [data-reveal]; its
   direct children cascade in when the ancestor reveals. JS-gated + reduced-motion safe. */
html.js-anim [data-reveal] .stagger > * { opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
html.js-anim [data-reveal].is-in .stagger > * { opacity: 1; transform: none; }
html.js-anim [data-reveal].is-in .stagger > *:nth-child(1) { transition-delay: 0.04s; }
html.js-anim [data-reveal].is-in .stagger > *:nth-child(2) { transition-delay: 0.11s; }
html.js-anim [data-reveal].is-in .stagger > *:nth-child(3) { transition-delay: 0.18s; }
html.js-anim [data-reveal].is-in .stagger > *:nth-child(4) { transition-delay: 0.25s; }
html.js-anim [data-reveal].is-in .stagger > *:nth-child(5) { transition-delay: 0.32s; }
html.js-anim [data-reveal].is-in .stagger > *:nth-child(6) { transition-delay: 0.39s; }
html.js-anim [data-reveal].is-in .stagger > *:nth-child(7) { transition-delay: 0.46s; }
html.js-anim [data-reveal].is-in .stagger > *:nth-child(8) { transition-delay: 0.53s; }
@media (prefers-reduced-motion: reduce) { html.js-anim [data-reveal] .stagger > * { opacity: 1; transform: none; transition: none; } }

.ar-11  { aspect-ratio: 1 / 1; }
.ar-43  { aspect-ratio: 4 / 3; }
.ar-34  { aspect-ratio: 3 / 4; }
.ar-45  { aspect-ratio: 4 / 5; }
.ar-169 { aspect-ratio: 16 / 9; }
.ar-219 { aspect-ratio: 21 / 9; }

/* ultra-wide 21:9 banners become a thin unreadable strip on phones; give them
   more height so the subject reads. Placed after the base utils to win on mobile. */
@media (max-width: 860px) {
  .ar-219 { aspect-ratio: 16 / 9; }
}

/* transparent cutout portraits sit on a warm mat, never inside .frame */
.cutout-mat {
  background: var(--panel-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.cutout-mat img {
  width: auto;
  max-width: 86%;
  height: 94%;
  object-fit: contain;
  object-position: bottom center;
}

/* --------------------------------------------------------------------------
   SWIPEABLE REVIEW CAROUSEL (shared; JS hook data-rev-carousel in site.js)
   -------------------------------------------------------------------------- */
.rev { position: relative; }
.rev__track {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rev__track::-webkit-scrollbar { display: none; }
.rev__card {
  flex: 0 0 clamp(280px, 80%, 440px);
  scroll-snap-align: start;
  background: var(--card, var(--paper));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rev__stars { color: var(--brass-deep); letter-spacing: 0.18em; font-size: 0.95rem; }
.rev__text {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.rev__attr {
  margin-top: auto;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}
.rev__attr span {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-top: 0.25rem;
}
.rev__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.rev__nav { display: flex; gap: 0.6rem; }
.rev__btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.rev__btn:hover { background: var(--ink); color: var(--paper); }
.rev__btn:active { transform: scale(0.95); }
.rev__btn:focus-visible { outline: 3px solid var(--brass-deep); outline-offset: 3px; }
.rev__btn:disabled { opacity: 0.3; cursor: default; }
.rev__btn:disabled:hover { background: transparent; color: var(--ink); }

/* wide composite photos go edge to edge below 768px to keep faces large */
@media (max-width: 767px) {
  .bleed-mobile > .frame {
    margin-inline: calc(50% - 50vw);
    border-radius: 0;
  }
}

/* overlap moment: image breaking out of a panel */
.pull-up    { margin-top: -2rem; }
.pull-down  { margin-bottom: -2rem; }
@media (max-width: 860px) { .pull-up, .pull-down { margin: 0; } }

/* hairline + corner ticks, adapted to light */
.lux-frame {
  position: relative;
  border: 1px solid oklch(66.5% 0.083 78 / 0.4);
  border-radius: 2px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.lux-frame::before, .lux-frame::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
}
.lux-frame::before {
  top: -2px; left: -2px;
  border-top: 2px solid var(--brass);
  border-left: 2px solid var(--brass);
}
.lux-frame::after {
  bottom: -2px; right: -2px;
  border-bottom: 2px solid var(--brass);
  border-right: 2px solid var(--brass);
}
.cinema .lux-frame { border-color: oklch(73% 0.077 83 / 0.4); }

/* --------------------------------------------------------------------------
   19. GHOST NUMERALS + GRAIN + INK CINEMA
   -------------------------------------------------------------------------- */
/* corner section numerals removed per client preference */
.secnum { display: none !important; }

/* grain: ink sections ONLY */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}
.grain > * { position: relative; z-index: 2; }

/* ink cinema section: max 1-2 per page, the earned black moment */
.cinema {
  background: var(--cinema);
  color: var(--milk-soft);
  position: relative;
  overflow: hidden;
}
.cinema h1, .cinema h2, .cinema h3 { color: var(--milk); }
.cinema .lead { color: var(--milk-soft); }
.cinema .rule { background: var(--brass-light); }
.cinema .muted { color: var(--milk-soft); }
.cinema .cap { color: var(--milk-soft); }
.cinema ::selection { background: oklch(54.5% 0.080 75 / 0.6); color: var(--milk); }

/* --------------------------------------------------------------------------
   20. CTA BAND (warm gradient close)
   -------------------------------------------------------------------------- */
.ctaband {
  background: var(--grad-warm);
  border-block: 1px solid var(--line);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}
.ctaband__grid {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.ctaband h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.9rem); letter-spacing: -0.015em; }
.ctaband p { margin-top: 0.85rem; color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 760px) {
  .ctaband__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   21. BLOG: POSTCARD, BLOGGRID, PROSE, AUTHORBOX (light)
   -------------------------------------------------------------------------- */
.bloggrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
}
.postcard {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.postcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); }
.postcard__img { aspect-ratio: 16 / 10; overflow: hidden; }
.postcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.postcard:hover .postcard__img img { transform: scale(1.04); }
.postcard__body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; gap: 0.6rem; }
.postcard__meta {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brass-deep);
}
.postcard__title {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: 1.2rem;
  text-transform: uppercase;
  line-height: 1.15;
}
.postcard__excerpt { color: var(--ink-soft); font-size: 0.95rem; }
@media (min-width: 700px) {
  .postcard--feature { grid-column: span 2; }
  .postcard--feature .postcard__title { font-size: 1.6rem; }
}

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-top: 2.75rem; }
.prose h3 { font-size: 1.3rem; margin-top: 2.25rem; }
.prose a { color: var(--brass-deep); text-decoration: underline; text-decoration-color: oklch(66.5% 0.083 78 / 0.5); text-underline-offset: 3px; transition: text-decoration-color 0.2s ease; }
.prose a:hover { text-decoration-color: var(--brass-deep); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.45rem; }
.prose img { border-radius: var(--r-md); box-shadow: var(--shadow-soft); }
.prose blockquote {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem 1.9rem;
  color: var(--ink-soft);
}
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.5rem; }

.authorbox {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 1.5rem;
}
.authorbox img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
.authorbox__name { font-weight: 700; }
.authorbox__role { font-size: 0.88rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   22. REVEALS (one-shot, transform+opacity only)
   -------------------------------------------------------------------------- */
html.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
html.js-anim [data-reveal="left"]  { transform: translateX(-34px); }
html.js-anim [data-reveal="right"] { transform: translateX(34px); }
html.js-anim [data-reveal="fade"]  { transform: none; }
html.js-anim [data-reveal="scale"] { transform: scale(0.96); }
html.js-anim [data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  html.js-anim [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   23. SMALL UTILITIES
   -------------------------------------------------------------------------- */
.stack-sm > * + * { margin-top: 0.75rem; }
.stack    > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2.25rem; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* pre-reveal side transforms must never widen the document (old iOS Safari guard) */
html { overflow-x: hidden; overflow-x: clip; }

/* Section 1 (global): skip-to-content link (ADA) */
.skip-link { position: absolute; left: 0; top: 0; transform: translateY(-120%); background: var(--ink); color: var(--milk); padding: 0.65rem 1.1rem; z-index: 1000; border-radius: 0 0 var(--r-sm) 0; transition: transform 0.15s ease; }
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--brass-pale); outline-offset: 2px; }

/* ===== iteration: design-skill + verification fixes ===== */
/* MAIN-03: wordless "PERL." footer mark (replaces the descriptor logo) */
.footer__perl--mark { display: inline-block; font-family: var(--font-d); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.06em; line-height: 1; color: var(--milk); }
.footer__perl-dot { color: var(--brass-light); }
/* reviews carousel: soft edge fade so the peeking next card reads as intentional, not clipped (taste/ux) */
.rev__track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 93%, transparent 100%); }
/* impeccable: light text on dark needs more leading */
.cinema p, .cinema .lead { line-height: 1.7; }

/* ==========================================================================
   THEME-DARK — sitewide moody skin (client: "moodier and darker, like the
   Dr. Trembley page"). Add class="theme-dark" to <body> to convert a page.
   Everything derives from remapped tokens; component patches below.
   ========================================================================== */
body.theme-dark {
  /* grounds: page sits a hair above brand cinema for depth */
  --paper:    #141414;
  --panel:    #1c1c1c;
  --panel-2:  #232323;
  --line:     oklch(34% 0.004 85);

  /* text flips to milk */
  --ink:      oklch(94% 0.002 90);
  --ink-soft: oklch(76% 0.004 90);

  /* section system goes deep */
  --sect-light: #141414;
  --sect-mid:   #1c1c1c;

  /* brass: use the on-dark variants for text safety */
  --brass-deep: oklch(73% 0.077 83);

  /* the one warm gradient becomes an ember gradient */
  --grad-warm: linear-gradient(108deg, #181818 0%, #1c1c1c 48%, #242424 100%);

  /* shadows read as depth on dark, not glow */
  --shadow-soft: 0 20px 40px -15px oklch(0% 0 0 / 0.5);
  --shadow-deep: 0 32px 64px -22px oklch(0% 0 0 / 0.6);
  --shadow-lift: 0 2px 6px -2px oklch(0% 0 0 / 0.5), 0 14px 26px -10px oklch(0% 0 0 / 0.5), 0 38px 70px -30px oklch(0% 0 0 / 0.65);

  background: var(--paper);
  color: var(--ink);
}
/* header: dark glass instead of light glass */
body.theme-dark .site-header { background: oklch(20% 0.001 85 / 0.88); }
body.theme-dark .nav__logo-img { content: url("/assets/logos/son-white-real.png"); }
/* buttons keep dark text on brass (ink is milk now) */
body.theme-dark .btn { color: #171717; }
body.theme-dark .btn:hover { background: var(--brass-light); color: #171717; }
body.theme-dark .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
/* comparison cells: light hard-codes -> dark equivalents */
body.theme-dark .cmp__val--base { background: oklch(30% 0.002 85 / 0.45); }
body.theme-dark .cmp__val--perl { background: oklch(66.5% 0.083 78 / 0.14); border-left-color: oklch(73% 0.077 83 / 0.5); }
/* warm image treatment reads harsh on dark; ease it */
body.theme-dark .img-warm { filter: saturate(1.02) contrast(1.02); }
/* theme-dark: scrolled header state + porcelain panel keeps its lighter mirror */
body.theme-dark .site-header.is-scrolled { background: oklch(18% 0.005 85 / 0.95); border-bottom-color: oklch(34% 0.014 85); }
body.theme-dark .home-vs__panel--porc { background: #232323; }
body.theme-dark .home-vs__panel--porc .home-vs__eyebrow { color: var(--brass-light); }
/* theme-dark: gradient system — sections get depth, never flat black */
body.theme-dark {
  /* ember radial for hero/feature moments (warm top corner falling into cinema) */
  --grad-ember-soft: radial-gradient(140% 130% at 82% -12%, #212121 0%, #181818 48%, #121212 100%);
  /* deep diagonal for content sections (barely-there warm drift) */
  --grad-deep-a: linear-gradient(168deg, #1b1b1b 0%, #141414 55%, #151515 100%);
  /* panel gradient for banded sections */
  --grad-deep-panel: linear-gradient(180deg, #1d1d1d 0%, #171717 100%);
}
/* the sparing LIGHT BREAK: re-scope a section back to the light system.
   Add class="light-break" to a section. Use at most once or twice per page. */
body.theme-dark .light-break {
  --paper:    oklch(97.7% 0.005 92);
  --panel:    oklch(96.4% 0.007 92);
  --panel-2:  oklch(94.4% 0.009 92);
  --line:     oklch(91.6% 0.010 92);
  --ink:      oklch(23.5% 0.009 85);
  --ink-soft: oklch(40% 0.012 85);
  --brass-deep: oklch(54.5% 0.080 75);
  --shadow-soft: 0 20px 40px -15px oklch(23.5% 0.025 85 / 0.10);
  --shadow-deep: 0 32px 64px -22px oklch(23.5% 0.030 85 / 0.16);
  --shadow-lift: 0 2px 6px -2px oklch(23.5% 0.03 85 / 0.14), 0 14px 26px -10px oklch(23.5% 0.03 85 / 0.16), 0 38px 70px -30px oklch(23.5% 0.045 85 / 0.30);
  background: linear-gradient(180deg, oklch(98% 0.005 92) 0%, oklch(95.5% 0.008 90) 100%);
  color: var(--ink);
}
body.theme-dark .light-break .btn { color: oklch(23.5% 0.009 85); }
/* theme-dark: black signature flips to white anywhere it appears on a dark page */
body.theme-dark img[src*="trembley-signature-black"] { content: url("/assets/logos/trembley-signature-white.png"); opacity: 0.9; }
/* theme-dark: base-column header chip was a light hard-code */
body.theme-dark .cmp__head-row > span:nth-child(2) { background: oklch(30% 0.002 85 / 0.45); }

/* theme-dark: sculpted neutral gradients on dark sections (Ryan: no flat black, no brown).
   Every gradient is pure-luminance neutral gray; gold stays in accents only. */
body.theme-dark .pagehero { background: radial-gradient(120% 105% at 78% -12%, #272727 0%, #191919 48%, #121212 100%); }
body.theme-dark .sect:not(.light-break):not(.sect--panel):not(.cinema) { background: linear-gradient(172deg, #1d1d1d 0%, #151515 55%, #101010 100%); }
body.theme-dark .sect--panel:not(.light-break) { background: radial-gradient(140% 125% at 12% -12%, #242424 0%, #181818 52%, #121212 100%); }
body.theme-dark .ctaband { background: radial-gradient(90% 140% at 50% -10%, #262626 0%, #161616 58%, #0f0f0f 100%); }
/* warm cream washes read as brown smears on dark; keep them only inside light-breaks */
body.theme-dark .wash-warm:not(.light-break)::before { content: none; }
/* warm cutout mats go neutral on dark; light-breaks keep the warm mat */
body.theme-dark .cutout-mat--warm { background: radial-gradient(120% 120% at 70% 12%, #2a2a2a 0%, var(--panel-2) 60%); }
body.theme-dark .light-break .cutout-mat--warm { background: radial-gradient(120% 120% at 70% 12%, oklch(91% 0.04 86) 0%, var(--panel-2) 60%); }

/* ctaband contact links (shared: faq, glossary, ...) */
.ctaband__link { color: var(--brass-deep); font-weight: 700; text-decoration: none; }
.ctaband__link:hover { text-decoration: underline; }
body.theme-dark .ctaband__link { color: var(--brass-light); }

/* theme-dark: cream-highlight surfaces on dark sections keep dark ink */
body.theme-dark .sect:not(.light-break) .vs th:nth-child(2),
body.theme-dark .sect:not(.light-break) .vs td:nth-child(2) { color: oklch(34% 0.012 85); }
body.theme-dark .sect:not(.light-break) .vs thead th:nth-child(2) { color: var(--brass-deep); }
body.theme-dark .sect:not(.light-break) .ledger__row--feature .ledger__desc,
body.theme-dark .sect:not(.light-break) .ledger__row--feature .ledger__go,
body.theme-dark .sect:not(.light-break) .ledger__row--feature .ledger__num { color: oklch(40% 0.012 85); }

/* ==========================================================================
   v23 — restore heading-to-body rhythm lost to the * {margin:0} reset.
   :where() keeps specificity at zero so every tuned component rule wins.
   (mobile QA sweep 2026-07-10: 20 pages measured 0-8px heading gaps) */
:where(main, section) :where(h2, h3) + :where(p, ul, ol) { margin-top: 1rem; }
:where(main, section) :where(p, ul, ol) + :where(h2, h3) { margin-top: 2.25rem; }
/* tlinks inside running text must wrap like words — inline-flex + 44px min-height
   forced them onto their own line mid-sentence */
p .tlink { display: inline; min-height: 0; padding-bottom: 0; text-decoration: underline; text-underline-offset: 3px; }
p .tlink::after { display: none; }
/* mobile QA: portrait-source blog card image cropped the face in the 16/10 box */
@media (max-width: 767px) {
  .postcard__img img { object-position: 50% 24%; }
}
