/* ==========================================================================
   Victoria Memorials — main.css
   Tokens, base typography, layout primitives, header, navigation, footer.
   Component styles live in components.css; breakpoint overrides and print
   styles in responsive.css. See DESIGN-SYSTEM.md for usage guidance.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, SIL Open Font Licence) ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/playfair-display.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }

/* Metric-matched local fallbacks (computed from the real font files) so text
   doesn't jump when the web fonts finish loading — keeps layout shift near zero. */
@font-face { font-family: "Playfair Fallback"; src: local("Georgia"); size-adjust: 100.37%; ascent-override: 107.8%; descent-override: 25.01%; line-gap-override: 0%; }
@font-face { font-family: "Poppins Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 111.35%; ascent-override: 94.3%; descent-override: 31.43%; line-gap-override: 8.98%; }

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (exact values from brand guidelines) */
  --c-evergreen: #29483D;
  --c-ivory: #F6F3EC;
  --c-stone: #B89B7A;
  --c-sage: #A8B7A6;
  --c-rose: #C9A5A1;
  --c-charcoal: #2B2B2B;

  /* Derived tints & accessible text shades */
  --c-evergreen-deep: #1F3830;   /* hover/pressed on evergreen */
  --c-evergreen-soft: #3B5E51;
  --c-ivory-deep: #EEE8DC;       /* alternate section background */
  --c-paper: #FBF9F5;            /* card surface */
  --c-sage-soft: #E2E8E0;
  --c-rose-soft: #F1E5E2;
  --c-stone-soft: #EADFD1;
  --c-stone-text: #7A6247;       /* stone hue darkened for AA small text on ivory (5.1:1) */
  --c-muted: #5B5A55;            /* secondary text on ivory (6.3:1) */
  --c-line: rgba(41, 72, 61, .14);
  --c-line-strong: rgba(41, 72, 61, .28);
  --c-on-dark: #F6F3EC;
  --c-on-dark-muted: #CBD3C9;    /* body text on evergreen (7.4:1) */

  /* Typography */
  --ff-serif: "Playfair Display", "Playfair Fallback", Georgia, serif;
  --ff-sans: "Poppins", "Poppins Fallback", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.5rem, 1.55rem + 4.1vw, 4.9rem);
  --fs-h1: clamp(2.2rem, 1.55rem + 2.7vw, 3.7rem);
  --fs-h2: clamp(1.8rem, 1.35rem + 1.85vw, 2.85rem);
  --fs-h3: clamp(1.28rem, 1.14rem + .55vw, 1.6rem);
  --fs-h4: clamp(1.05rem, 1rem + .25vw, 1.18rem);
  --fs-lead: clamp(1.08rem, .98rem + .42vw, 1.3rem);
  --fs-body: clamp(1rem, .97rem + .14vw, 1.0625rem);
  --fs-small: .9rem;
  --fs-xs: .8rem;
  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.72;
  --measure: 66ch;

  /* Space */
  --space-3xs: .25rem;
  --space-2xs: .5rem;
  --space-xs: .75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.25rem;
  --space-xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --space-2xl: clamp(3.5rem, 2.6rem + 4.5vw, 6.5rem);
  --section-y: clamp(4.5rem, 3.2rem + 6.2vw, 8.75rem);
  --gutter: clamp(1.25rem, .8rem + 2.4vw, 2.75rem);
  --container: 1240px;
  --container-wide: 1440px;
  --container-narrow: 780px;

  /* Shape, depth & motion */
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 16px;
  --radius-arch: 999px 999px var(--radius-s) var(--radius-s);
  --shadow-s: 0 1px 2px rgba(31, 56, 48, .06), 0 2px 8px rgba(31, 56, 48, .05);
  --shadow-m: 0 2px 6px rgba(31, 56, 48, .06), 0 14px 34px -12px rgba(31, 56, 48, .18);
  --shadow-l: 0 30px 70px -30px rgba(31, 56, 48, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-s: 180ms;
  --dur-m: 320ms;
  --dur-l: 700ms;
  --header-h: 84px;
  --focus: 0 0 0 2px var(--c-ivory), 0 0 0 4px var(--c-evergreen);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-ivory);
  color: var(--c-charcoal);
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p, li, dd, blockquote { overflow-wrap: break-word; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.1em; }
li + li { margin-top: .35em; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--space-xl) 0; }
strong, b { font-weight: 600; }
small { font-size: var(--fs-small); }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--c-sage); color: var(--c-charcoal); }

/* Headings */
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display {
  font-family: var(--ff-serif);
  font-weight: 400;
  color: var(--c-evergreen);
  line-height: var(--lh-tight);
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: 1.06; letter-spacing: -.02em; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4, .h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); font-family: var(--ff-sans); font-weight: 500; letter-spacing: 0; }
h1 em, h2 em, h3 em, .display em { font-style: italic; color: inherit; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* Links */
a { color: var(--c-evergreen); text-decoration-color: color-mix(in srgb, var(--c-evergreen) 40%, transparent); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color var(--dur-s) var(--ease), text-decoration-color var(--dur-s) var(--ease); }
a:hover { color: var(--c-evergreen-deep); text-decoration-color: currentColor; }

/* Focus: always visible for keyboard users */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--c-evergreen); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .section--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--c-ivory); }

/* ---------- Accessibility helpers ---------- */
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--c-evergreen); color: var(--c-ivory); padding: .75rem 1.1rem; border-radius: var(--radius-s);
  font-weight: 500; text-decoration: none; transition: top var(--dur-s) var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--c-ivory); }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--c-ivory-deep); }
.section--paper { background: var(--c-paper); }
.section--sage { background: var(--c-sage-soft); }
.section--rose { background: var(--c-rose-soft); }
.section--dark { background: var(--c-evergreen); color: var(--c-on-dark-muted); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--c-ivory); }
.section--dark a:not(.btn) { color: var(--c-ivory); }
.section--dark .eyebrow { color: var(--c-sage); }
.section--dark .eyebrow::before { background: var(--c-sage); }

.stack > * + * { margin-top: var(--stack, 1rem); }
.flow > * { margin-top: 0; }
.flow > * + * { margin-top: var(--flow, 1.1em); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--gap, .75rem 1rem); align-items: center; }
.grid { display: grid; gap: var(--gap, var(--space-l)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Section heading block */
.section-head { max-width: 46rem; margin-bottom: var(--space-xl); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--c-muted); font-size: var(--fs-lead); font-weight: 300; line-height: 1.65; margin-bottom: 0; }
.section--dark .section-head p:not(.eyebrow) { color: var(--c-on-dark-muted); }
.section-head--split { max-width: none; display: grid; gap: var(--space-m) var(--space-xl); align-items: end; }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--ff-sans); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--c-stone-text);
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: .7; flex: none; }
.center > .eyebrow, .eyebrow.center { justify-content: center; }

.lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.65; color: var(--c-muted); }
.section--dark .lead { color: var(--c-on-dark-muted); }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-small); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-evergreen); --btn-fg: var(--c-ivory); --btn-bd: var(--c-evergreen);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3.1rem; padding: .8rem 1.6rem; border: 1px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--ff-sans); font-size: .95rem; font-weight: 500; letter-spacing: .02em; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: background-color var(--dur-m) var(--ease), color var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease), transform var(--dur-s) var(--ease);
}
.btn:hover { --btn-bg: var(--c-evergreen-deep); --btn-bd: var(--c-evergreen-deep); color: var(--btn-fg); box-shadow: 0 10px 24px -14px rgba(31, 56, 48, .6); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn .icon { width: 1.05em; height: 1.05em; flex: none; transition: transform var(--dur-m) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--c-evergreen); --btn-bd: var(--c-line-strong); }
.btn--secondary:hover { --btn-bg: var(--c-evergreen); --btn-fg: var(--c-ivory); --btn-bd: var(--c-evergreen); }
.btn--light { --btn-bg: var(--c-ivory); --btn-fg: var(--c-evergreen); --btn-bd: var(--c-ivory); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--c-evergreen-deep); --btn-bd: #fff; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--c-ivory); --btn-bd: rgba(246, 243, 236, .55); }
.btn--ghost-light:hover { --btn-bg: var(--c-ivory); --btn-fg: var(--c-evergreen); --btn-bd: var(--c-ivory); }
.btn--small { min-height: 2.6rem; padding: .55rem 1.2rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .95rem;
  color: var(--c-evergreen); text-decoration: none; padding-block: .35rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur-m) var(--ease-out), color var(--dur-s);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .icon { width: 1em; height: 1em; transition: transform var(--dur-m) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--c-ivory); }

.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 243, 236, .97);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: 0 8px 30px -22px rgba(31, 56, 48, .45); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); transition: height var(--dur-m) var(--ease); }
.site-header.is-scrolled .site-header__inner { height: calc(var(--header-h) - 14px); }

.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; border-radius: 2px; }
.brand img { height: 46px; width: auto; transition: height var(--dur-m) var(--ease); }
.site-header.is-scrolled .brand img { height: 40px; }
.brand .brand__reverse { display: none; }

/* Overlay header (home hero): transparent until scrolled */
.has-overlay-header .site-header { position: fixed; left: 0; right: 0; background: transparent; }
.has-overlay-header .site-header:not(.is-scrolled):not(.menu-open) .brand__default { display: none; }
.has-overlay-header .site-header:not(.is-scrolled):not(.menu-open) .brand__reverse { display: block; }
.has-overlay-header .site-header:not(.is-scrolled):not(.menu-open) .nav-link,
.has-overlay-header .site-header:not(.is-scrolled):not(.menu-open) .nav-toggle { color: var(--c-ivory); }
.has-overlay-header .site-header:not(.is-scrolled):not(.menu-open) .nav-link::after { background: var(--c-ivory); }
.has-overlay-header .site-header:not(.is-scrolled):not(.menu-open) .header-cta { --btn-bg: var(--c-ivory); --btn-fg: var(--c-evergreen); --btn-bd: var(--c-ivory); }
.has-overlay-header .site-header.is-scrolled { background: rgba(246, 243, 236, .97); }
.has-overlay-header .site-header:not(.is-scrolled):not(.menu-open) :focus-visible { outline-color: var(--c-ivory); }

/* Desktop navigation */
.primary-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.nav-list > li { margin: 0; position: relative; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .15rem; border: 0; background: none;
  font-family: var(--ff-sans); font-size: .93rem; font-weight: 400; letter-spacing: .01em;
  color: var(--c-charcoal); text-decoration: none; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: .15rem; right: .15rem; bottom: .3rem; height: 1px;
  background: var(--c-evergreen); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-m) var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link[aria-expanded="true"], .nav-link.is-section-active { color: var(--c-evergreen); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link.is-section-active::after { transform: scaleX(1); }
.nav-link .chev { width: .8rem; height: .8rem; transition: transform var(--dur-m) var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-cta { display: none; }

/* Mega menu (desktop "Memorials") */
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(860px, 92vw);
  translate: -40% 0; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-l); padding: 1.75rem; display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.75rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease), visibility 0s linear var(--dur-m);
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__title { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--c-stone-text); font-weight: 500; margin: 0 0 .75rem; }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .75rem; }
.mega__list li { margin: 0; }
.mega__list a { display: block; padding: .6rem .7rem; border-radius: var(--radius-s); text-decoration: none; color: var(--c-charcoal); transition: background-color var(--dur-s); }
.mega__list a:hover, .mega__list a[aria-current="page"] { background: var(--c-ivory-deep); }
.mega__list strong { display: block; font-family: var(--ff-serif); font-weight: 400; font-size: 1.06rem; color: var(--c-evergreen); }
.mega__list span { display: block; font-size: .82rem; color: var(--c-muted); line-height: 1.45; }
.mega__aside { border-left: 1px solid var(--c-line); padding-left: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.mega__feature { display: block; padding: 1.1rem 1.2rem; border-radius: var(--radius-m); background: var(--c-evergreen); color: var(--c-on-dark-muted); text-decoration: none; transition: background-color var(--dur-s); }
.mega__feature:hover { background: var(--c-evergreen-deep); color: var(--c-on-dark-muted); }
.mega__feature strong { display: block; color: var(--c-ivory); font-family: var(--ff-serif); font-weight: 400; font-size: 1.2rem; margin-bottom: .25rem; }
.mega__feature span { font-size: .85rem; line-height: 1.5; display: block; }
.mega__links { list-style: none; margin: 0; padding: 0; }
.mega__links li { margin: 0; }
.mega__links a { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; font-size: .9rem; color: var(--c-charcoal); text-decoration: none; border-bottom: 1px solid var(--c-line); }
.mega__links a:hover { color: var(--c-evergreen); }

/* Mobile toggle */
.nav-toggle {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; min-width: 44px; padding: .5rem .25rem .5rem .6rem;
  background: none; border: 0; color: var(--c-evergreen); font-size: .85rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.nav-toggle__bars { position: relative; width: 26px; height: 14px; }
.nav-toggle__bars span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform var(--dur-m) var(--ease), opacity var(--dur-s), top var(--dur-m) var(--ease); }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; right: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile panel */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--c-ivory);
  padding: calc(var(--header-h) + .5rem) var(--gutter) 2rem; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0);
  transition: clip-path 520ms var(--ease-out), opacity 300ms var(--ease), visibility 0s linear 520ms;
}
.mobile-nav.is-open { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0); transition-delay: 0s; }
.mobile-nav__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.mobile-nav__list > li { margin: 0; border-bottom: 1px solid var(--c-line); opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease), transform 500ms var(--ease-out); }
.mobile-nav.is-open .mobile-nav__list > li { opacity: 1; transform: none; }
.mobile-nav.is-open .mobile-nav__list > li:nth-child(2) { transition-delay: 40ms; }
.mobile-nav.is-open .mobile-nav__list > li:nth-child(3) { transition-delay: 80ms; }
.mobile-nav.is-open .mobile-nav__list > li:nth-child(4) { transition-delay: 120ms; }
.mobile-nav.is-open .mobile-nav__list > li:nth-child(5) { transition-delay: 160ms; }
.mobile-nav.is-open .mobile-nav__list > li:nth-child(6) { transition-delay: 200ms; }
.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 3.6rem; padding: .7rem 0;
  font-family: var(--ff-serif); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.9rem); line-height: 1.2; color: var(--c-evergreen);
  text-decoration: none; background: none; border: 0; text-align: left;
}
.mobile-nav__link[aria-current="page"] { font-style: italic; }
.mobile-nav__link .chev { width: 1.1rem; height: 1.1rem; transition: transform var(--dur-m) var(--ease); }
.mobile-nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mobile-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-m) var(--ease); }
.mobile-sub.is-open { grid-template-rows: 1fr; }
.mobile-sub > div { overflow: hidden; }
.mobile-sub ul { list-style: none; margin: 0; padding: 0 0 1rem; display: grid; gap: .1rem; }
.mobile-sub li { margin: 0; }
.mobile-sub a { display: flex; align-items: center; min-height: 44px; padding: .35rem 0 .35rem 1rem; border-left: 1px solid var(--c-line-strong); color: var(--c-charcoal); text-decoration: none; font-size: 1rem; }
.mobile-sub a:hover, .mobile-sub a[aria-current="page"] { color: var(--c-evergreen); border-left-color: var(--c-evergreen); }
.mobile-nav__footer { margin-top: auto; padding-top: 2rem; display: grid; gap: 1rem; }
.mobile-nav__footer .btn { width: 100%; }
.mobile-nav__tag { font-family: var(--ff-serif); font-style: italic; color: var(--c-stone-text); text-align: center; margin: .5rem 0 0; }
html.nav-locked, html.nav-locked body { overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--c-evergreen); color: var(--c-on-dark-muted); font-size: .93rem; position: relative; overflow: hidden; }
.site-footer a { color: var(--c-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--c-ivory); text-decoration: underline; text-underline-offset: .25em; }
.footer-top { display: grid; gap: var(--space-xl); padding-block: var(--space-2xl) var(--space-xl); grid-template-columns: 1fr; }
.footer-brand img { width: 220px; height: auto; }
.footer-brand p { margin: 1.25rem 0 0; max-width: 24rem; line-height: 1.7; }
.footer-tagline { font-family: var(--ff-serif); font-style: italic; color: var(--c-ivory); font-size: 1.15rem; margin-top: 1.5rem !important; }
.footer-col h2 { font-family: var(--ff-sans); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--c-sage); margin: 0 0 1.1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; }
.footer-col li a { display: inline-block; padding: .3rem 0; }
.footer-contact li { display: grid; gap: .1rem; padding: .35rem 0; }
.footer-contact .label { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-sage); }
.placeholder-text { font-style: italic; opacity: .9; }
.footer-bottom { border-top: 1px solid rgba(246, 243, 236, .14); padding-block: 1.5rem 2rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }
.footer-emblem { position: absolute; right: -60px; bottom: -40px; width: 340px; opacity: .05; pointer-events: none; }
.footer-ack { border-top: 1px solid rgba(246, 243, 236, .14); padding-block: 1.5rem; font-size: .85rem; line-height: 1.7; }
.footer-ack p { margin: 0; max-width: 60rem; }

/* ==========================================================================
   Reveal-on-scroll (progressive enhancement, motion-safe)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
