/* ============================================================================
   HEARTH & HOLLIS — Kitchen Studio, Mill Valley
   Warm organic luxury: arches, soft shadows, cream, bone, clay, walnut, bronze — warm neutrals only
   Nothing here is shared with Northstone or Obsidian — by design.
   SOURCE OF TRUTH — inlined into every page by scripts/build.py
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --cream:      #faf6ef;
  --warm:       #fffdf9;
  --stone:      #d9cdbb;
  --stone-lt:   #ece4d8;
  --bone:       #efe7da;      /* the quiet mid-tone between cream and stone */
  --clay:       #b08968;      /* 2.9:1 on cream — large text, rules, icons only */
  --clay-dk:    #7a5334;      /* 6.0:1 on cream — safe at any size */
  --clay-lt:    #e0cdb8;
  --walnut:     #5c4433;
  --walnut-dk:  #3a2a1f;
  --bronze:     #a87c4f;
  --bronze-dk:  #7d5a34;      /* AA-safe bronze for small text */

  --ink:        #2e241d;
  --ink-70:     #5b4c41;
  --ink-50:     #857468;

  --line:       rgba(92,68,51,.16);
  --line-soft:  rgba(92,68,51,.08);
  --line-lt:    rgba(255,253,249,.22);

  --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body:    "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shell:      1320px;
  --gut:        clamp(1.25rem, 4vw, 4.5rem);
  --sect:       clamp(3.25rem, 6vw, 6.5rem);

  --r-s:        14px;
  --r-m:        26px;
  --r-l:        40px;
  --r-xl:       clamp(28px, 5vw, 64px);
  --arch:       999px 999px var(--r-m) var(--r-m);

  --e:          cubic-bezier(.33,.68,.35,1);
  --e-out:      cubic-bezier(.16,1,.3,1);

  --sh-s:       0 2px 8px rgba(92,68,51,.05), 0 10px 24px -12px rgba(92,68,51,.14);
  --sh-m:       0 4px 14px rgba(92,68,51,.06), 0 22px 48px -20px rgba(92,68,51,.22);
  --sh-l:       0 8px 24px rgba(92,68,51,.08), 0 40px 80px -28px rgba(92,68,51,.30);
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Paper grain — a whisper, not a texture */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
img, video, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--clay-lt); color: var(--walnut-dk); }

/* ---------- 3. Type ---------- */
h1,h2,h3,h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 40;
  letter-spacing: -.02em;
  line-height: 1.04;
  margin: 0;
  color: var(--walnut-dk);
  text-wrap: balance;
}
.d1 { font-size: clamp(2.4rem, 6.6vw, 5.4rem); line-height: 1.02; }
.d2 { font-size: clamp(1.95rem, 4.4vw, 3.5rem); }
.d3 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); }
.d4 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.25; }
.italic { font-style: italic; font-variation-settings: "SOFT" 60, "WONK" 1; color: var(--bronze-dk); }

.eyebrow {
  font-family: var(--ff-body);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--clay-dk);
  margin: 0 0 1.25rem;
  display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--clay); flex: none;
  transform: scale(0); transition: transform .6s var(--e-out) .15s;
}
[data-in="true"] .eyebrow::before, .eyebrow[data-in="true"]::before { transform: scale(1); }
.eyebrow--light { color: var(--stone); }
.eyebrow--light::before { background: var(--bronze); }

.lede { font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); line-height: 1.68; color: var(--ink-70); text-wrap: pretty; }
.muted { color: var(--ink-50); }

/* ---------- 4. Layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sect); position: relative; }
.section--warm { background: var(--warm); }
.section--stone { background: var(--stone-lt); }
.section--clay { background: var(--clay-dk); color: var(--warm); }
.section--walnut { background: var(--walnut-dk); color: var(--cream); }
.section--clay h2, .section--clay h3, .section--walnut h2, .section--walnut h3,
.section--clay .d1, .section--walnut .d1 { color: inherit; }
.section--clay .lede, .section--walnut .lede { color: rgba(255,253,249,.8); }
.section--tight { padding-block: clamp(2.25rem,4vw,3.5rem); }

/* Soft organic section transitions */
.section--curve { border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: calc(var(--r-xl) * -1); }
.section--curve-b { border-radius: 0 0 var(--r-xl) var(--r-xl); }

.grid { display: grid; gap: clamp(1.5rem, 2.5vw, 2.35rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
/* Asymmetric editorial split */
.g-asym { grid-template-columns: minmax(0,5fr) minmax(0,7fr); }
.g-asym-r { grid-template-columns: minmax(0,7fr) minmax(0,5fr); }

.stack > * + * { margin-top: 1.15rem; }
.center { text-align: center; }
.maxch { max-width: 60ch; }
.maxch-s { max-width: 46ch; }
.shead { display: grid; grid-template-columns: minmax(0,6fr) minmax(0,5fr); gap: clamp(1.5rem,3.5vw,3.25rem); align-items: end; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 56px; padding: 1rem 2rem; border-radius: 999px;
  font-family: var(--ff-body); font-size: .9375rem; font-weight: 700; letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .45s var(--e-out), box-shadow .45s var(--e), background .35s var(--e), color .35s var(--e), border-color .35s var(--e);
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn--primary { background: var(--walnut); color: var(--warm); box-shadow: var(--sh-s); }
.btn--primary:hover { background: var(--walnut-dk); box-shadow: var(--sh-m); }
.btn--clay { background: var(--clay); color: var(--warm); box-shadow: var(--sh-s); }
.btn--clay:hover { background: var(--clay-dk); box-shadow: var(--sh-m); }
.btn--ghost { background: transparent; color: var(--walnut); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--walnut); background: rgba(92,68,51,.04); }
.btn--onlight { background: var(--warm); color: var(--walnut-dk); box-shadow: var(--sh-s); }
.btn--onlight:hover { box-shadow: var(--sh-m); }
.btn--ghost-light { background: transparent; color: var(--warm); border-color: var(--line-lt); }
.btn--ghost-light:hover { border-color: var(--warm); background: rgba(255,253,249,.1); }
.btn--wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.tlink {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .9375rem; text-decoration: none; color: var(--bronze-dk);
  border-bottom: 2px solid var(--stone); padding-bottom: .3rem;
  transition: gap .35s var(--e), border-color .35s var(--e), color .35s var(--e);
}
.tlink:hover { gap: .95rem; border-bottom-color: var(--bronze); }
.section--clay .tlink, .section--walnut .tlink { color: var(--cream); border-bottom-color: var(--line-lt); }
.section--clay .tlink:hover, .section--walnut .tlink:hover { border-bottom-color: var(--cream); }

/* ---------- 6. Accessibility ---------- */
/* Clipped, not translated off-screen: `position: absolute` + translateY(-120%)
   resolves against the nearest positioned ancestor, which inside a GoHighLevel
   column is the column — so the link only rose its own height and stayed visible.
   A clipped 1px box is invisible at any depth, same as .vh below. */
.skip { position: fixed; left: 0; top: 0; z-index: 9999; background: var(--walnut-dk); color: var(--cream); text-decoration: none; border-radius: 0 0 var(--r-s) 0; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; padding: .9rem 1.4rem; overflow: visible; clip: auto; clip-path: none; }
:focus-visible { outline: 3px solid var(--clay-dk); outline-offset: 3px; border-radius: 4px; }
.section--clay :focus-visible, .section--walnut :focus-visible { outline-color: var(--stone); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 7. Header ---------- */
.hdr { position: fixed; inset: .75rem .75rem auto; z-index: 100; transition: transform .5s var(--e); }
.hdr__in {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 68px; padding-inline: clamp(1rem,2.5vw,1.75rem);
  border-radius: 999px;
  background: transparent; transition: background .45s var(--e), box-shadow .45s var(--e), backdrop-filter .45s;
}
.hdr[data-solid="true"] .hdr__in { background: rgba(255,253,249,.86); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: var(--sh-s); }
.hdr[data-theme="light"] { color: var(--warm); }
.hdr[data-theme="light"][data-solid="true"] { color: var(--ink); }
.hdr[data-hide="true"] { transform: translateY(calc(-100% - 1rem)); }

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; flex: none; }
.brand__n { font-family: var(--ff-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; font-variation-settings: "SOFT" 40, "WONK" 1; }
.brand__t { font-family: var(--ff-body); font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; opacity: .66; margin-top: .35rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav--main a { font-size: .9375rem; font-weight: 500; text-decoration: none; opacity: .84; transition: opacity .3s, color .3s; }
.nav--main a:hover, .nav--main a[aria-current="page"] { opacity: 1; color: var(--bronze-dk); }
.hdr[data-theme="light"]:not([data-solid="true"]) .nav--main a:hover { color: var(--stone); }
.hdr .btn { min-height: 46px; padding: .65rem 1.35rem; font-size: .875rem; }

.burger { display: none; width: 48px; height: 48px; border-radius: 50%; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); cursor: pointer; transition: background .3s; }
.hdr[data-theme="light"]:not([data-solid="true"]) .burger { border-color: var(--line-lt); }
.burger:hover { background: rgba(92,68,51,.06); }
.burger span { display: block; width: 17px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 17px; height: 2px; border-radius: 2px; background: currentColor; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

.drawer { position: fixed; inset: 0; z-index: 200; background: var(--cream); color: var(--ink); display: flex; flex-direction: column; padding: var(--gut); transform: translateY(-100%); transition: transform .6s var(--e-out); overflow-y: auto; }
.drawer[data-open="true"] { transform: translateY(0); }
.drawer__top { display: flex; justify-content: space-between; align-items: center; min-height: 68px; margin-bottom: 1.5rem; }
.drawer__close { width: 48px; height: 48px; border-radius: 50%; background: none; border: 1px solid var(--line); cursor: pointer; font-size: 1.2rem; transition: background .3s; }
.drawer__close:hover { background: rgba(92,68,51,.06); }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.6rem,6vw,2.5rem);
  text-decoration: none; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); color: var(--walnut-dk);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--e-out), transform .5s var(--e-out), color .3s;
}
.drawer[data-open="true"] nav a { opacity: 1; transform: none; }
.drawer nav a:hover { color: var(--bronze-dk); }
.drawer__foot { margin-top: auto; padding-top: 2rem; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--warm); overflow: hidden; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.hero__media { position: absolute; inset: 0; z-index: 0; background: var(--walnut-dk); }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { transform: scale(1.07); animation: heroSettle 14s var(--e-out) forwards; }
@keyframes heroSettle { to { transform: scale(1); } }
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s var(--e); }
.hero__media video[data-ready="true"] { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(58,42,31,.5) 0%, rgba(58,42,31,.12) 34%, rgba(58,42,31,.88) 100%);
}
.hero__in { position: relative; z-index: 2; width: 100%; padding-block: clamp(3rem,10vh,6rem) clamp(2.25rem,7vh,4.5rem); }
.hero__h { max-width: 16ch; margin-bottom: 1.5rem; color: var(--warm); }
.hero__sub { max-width: 46ch; color: rgba(255,253,249,.9); font-size: clamp(1.0625rem,1.5vw,1.3125rem); margin-bottom: 2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: clamp(1.25rem,3.5vw,3rem); margin-top: clamp(2rem,5vh,3.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(255,253,249,.24); }
.hero__meta div { font-size: .8125rem; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,253,249,.76); }
.hero__meta b { display: block; font-family: var(--ff-display); font-size: clamp(1.5rem,2.6vw,2rem); font-weight: 500; color: var(--warm); margin-bottom: .25rem; letter-spacing: -.01em; }

/* Top pad tracks the floating header (68px pill + .75rem inset) plus ~30px, so
   it stays nearly constant instead of opening a dead gap on tall screens. */
.phero { position: relative; padding-block: clamp(6.5rem,12vh,7.5rem) var(--sect); background: var(--warm); overflow: hidden; }
.phero__h { max-width: 18ch; }

/* ---------- 9. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.75rem,1.5vw,1.25rem); }
.stats > div { background: var(--warm); border-radius: var(--r-m); padding: clamp(1.4rem,2.6vw,2rem); box-shadow: var(--sh-s); transition: transform .45s var(--e-out), box-shadow .45s var(--e); }
.stats > div:hover { transform: translateY(-4px); box-shadow: var(--sh-m); }
.section--stone .stats > div { background: var(--cream); }
.stats b { display: block; font-family: var(--ff-display); font-size: clamp(1.75rem,3.2vw,2.6rem); font-weight: 500; color: var(--walnut-dk); line-height: 1; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.stats span { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-50); }

/* ---------- 10. Cards ---------- */
.card { background: var(--warm); border-radius: var(--r-m); padding: clamp(1.5rem,2.6vw,2.25rem); box-shadow: var(--sh-s); transition: transform .5s var(--e-out), box-shadow .5s var(--e); }
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-m); }
.card h3 { margin-bottom: .7rem; }
.card p { margin: 0; color: var(--ink-70); }
.card__ico { width: 52px; height: 52px; border-radius: 50%; background: var(--stone-lt); color: var(--bronze-dk); display: grid; place-items: center; margin-bottom: 1.15rem; font-family: var(--ff-display); font-size: 1.15rem; }
.section--stone .card { background: var(--warm); }

/* ---------- 11. Figures — the arch is the signature ---------- */
.fig { position: relative; overflow: hidden; background: var(--stone-lt); border-radius: var(--r-m); }
.fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--e-out); }
.fig--arch { border-radius: var(--arch); }
.fig--tall { aspect-ratio: 3/4; }
.fig--wide { aspect-ratio: 16/11; }
.fig--sq { aspect-ratio: 1/1; }
.fig--blob { border-radius: 62% 38% 46% 54% / 54% 44% 56% 46%; }
a.fig:hover img, .pitem:hover .fig img { transform: scale(1.055); }

.pitem { text-decoration: none; display: block; }
.pitem__meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-top: 1.1rem; }
.pitem__meta span { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-50); }

/* ---------- 12. Before / after ---------- */
.ba { position: relative; aspect-ratio: 16/11; overflow: hidden; border-radius: var(--r-l); background: var(--walnut-dk); user-select: none; box-shadow: var(--sh-m); touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--p,50%)); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: none; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100%; }
.ba__range::-moz-range-thumb { width: 60px; height: 100%; border: 0; background: transparent; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--p,50%); width: 2px; background: var(--warm); pointer-events: none; transform: translateX(-1px); }
.ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--warm); box-shadow: var(--sh-m); transition: transform .35s var(--e-out); }
.ba:hover .ba__handle::after { transform: translate(-50%,-50%) scale(1.08); }
.ba__handle::before { content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; color: var(--walnut); font-size: .6875rem; white-space: nowrap; }
.ba__tag { position: absolute; top: 1.1rem; z-index: 3; pointer-events: none; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--walnut-dk); background: rgba(255,253,249,.9); padding: .4rem .9rem; border-radius: 999px; }
.ba__tag--b { left: 1.1rem; } .ba__tag--a { right: 1.1rem; }
.ba__range:focus-visible + .ba__handle::after { outline: 3px solid var(--clay-dk); outline-offset: 3px; }

/* ---------- 13. Process — connected dots ---------- */
.steps { position: relative; display: grid; gap: clamp(1.25rem,2.5vw,2rem); }
.step { position: relative; display: grid; grid-template-columns: 64px minmax(0,1fr); gap: clamp(1rem,2.5vw,2rem); align-items: start; background: var(--warm); border-radius: var(--r-m); padding: clamp(1.35rem,2.4vw,1.9rem); box-shadow: var(--sh-s); transition: transform .45s var(--e-out), box-shadow .45s var(--e); }
.step:hover { transform: translateX(6px); box-shadow: var(--sh-m); }
.step__n { width: 48px; height: 48px; border-radius: 50%; background: var(--clay); color: var(--warm); display: grid; place-items: center; font-family: var(--ff-display); font-size: 1.1rem; font-weight: 600; }
.step h3 { margin-bottom: .45rem; }
.step p { margin: 0; color: var(--ink-70); max-width: 62ch; }
.section--walnut .step { background: rgba(255,253,249,.06); box-shadow: none; }
.section--walnut .step h3 { color: var(--cream); }
.section--walnut .step p { color: rgba(255,253,249,.72); }
.section--walnut .step__n { background: var(--bronze); }

/* ---------- 14. Testimonials ---------- */
.quote { background: var(--warm); border-radius: var(--r-m); padding: clamp(1.15rem,2vw,1.6rem); box-shadow: var(--sh-s); }
.quote blockquote { margin: 0 0 1rem; font-family: var(--ff-display); font-size: clamp(1.0625rem,1.25vw,1.1875rem); line-height: 1.5; font-style: italic; font-variation-settings: "SOFT" 60, "WONK" 1; color: var(--walnut-dk); }
.quote figcaption { display: flex; align-items: center; gap: .85rem; font-size: .875rem; color: var(--ink-50); }
.quote figcaption b { display: block; color: var(--walnut); font-family: var(--ff-body); }
.quote__av { width: 38px; height: 38px; border-radius: 50%; background: var(--stone-lt); flex: none; overflow: hidden; }
.quote__av img { width: 100%; height: 100%; object-fit: cover; }

.vfac { position: relative; width: 100%; padding: 0; border: 0; background: var(--walnut-dk); cursor: pointer; overflow: hidden; aspect-ratio: 16/10; display: block; border-radius: var(--r-m); box-shadow: var(--sh-m); }
.vfac img { width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: opacity .5s var(--e), transform 1.3s var(--e-out); }
.vfac:hover img { opacity: .72; transform: scale(1.05); }
.vfac__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 74px; height: 74px; border-radius: 50%; background: rgba(255,253,249,.94); display: grid; place-items: center; color: var(--walnut-dk); box-shadow: var(--sh-m); transition: transform .45s var(--e-out); }
.vfac:hover .vfac__play { transform: translate(-50%,-50%) scale(1.09); }
.vfac__play svg { margin-left: 3px; }
.vfac__label { position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 2; color: var(--warm); font-size: .8125rem; letter-spacing: .06em; }
.vfac video, .vfac iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* build.py emits .vfac--still when no MEDIA_BASE_URL is configured: the play
   control is stripped, so the block must stop advertising itself as clickable */
.vfac--still { cursor: default; }
.vfac--still:hover img { opacity: .86; transform: none; }

/* ---------- 15. Accordion ---------- */
.acc { display: grid; gap: .75rem; }
.acc details { background: var(--warm); border-radius: var(--r-m); box-shadow: var(--sh-s); overflow: hidden; transition: box-shadow .4s var(--e); }
.acc details[open] { box-shadow: var(--sh-m); }
.acc summary { list-style: none; cursor: pointer; padding: clamp(1.1rem,2vw,1.5rem) clamp(1.25rem,2.4vw,1.9rem); display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.05rem,1.6vw,1.25rem); color: var(--walnut-dk); line-height: 1.3; transition: color .3s; }
.acc summary:hover { color: var(--bronze-dk); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--stone-lt); position: relative; transition: background .35s, transform .45s var(--e-out); }
.acc details[open] summary::after { background: var(--clay); transform: rotate(135deg); }
.acc summary { position: relative; }
.acc__body { padding: 0 clamp(1.25rem,2.4vw,1.9rem) clamp(1.25rem,2.2vw,1.6rem); color: var(--ink-70); max-width: 68ch; animation: accIn .45s var(--e-out); }
@keyframes accIn { from { opacity: 0; transform: translateY(-5px); } }
.acc__body p { margin: 0 0 .9rem; } .acc__body p:last-child { margin-bottom: 0; }

/* ---------- 16. Forms + multi-step quiz ---------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field label, .field legend { font-size: .875rem; font-weight: 700; color: var(--walnut); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: .95rem 1.15rem;
  background: var(--warm); border: 1px solid var(--line); border-radius: var(--r-s);
  transition: border-color .3s var(--e), box-shadow .3s var(--e);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--stone); }
/* focus halo is clay (176,137,104) — was rgba(138,154,123), a leftover sage green
   from the removed palette, and this site is warm neutrals only */
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 4px rgba(176,137,104,.28); }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form__note { font-size: .875rem; color: var(--ink-50); }

.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pills input { position: absolute; opacity: 0; width: 0; height: 0; }
.pills label { display: inline-flex; align-items: center; min-height: 52px; padding: .75rem 1.35rem; border-radius: 999px; border: 1px solid var(--line); background: var(--warm); cursor: pointer; font-size: .9375rem; font-weight: 500; transition: all .3s var(--e); }
.pills label:hover { border-color: var(--clay); transform: translateY(-2px); }
.pills input:checked + label { background: var(--clay); color: var(--warm); border-color: var(--clay); }
.pills input:focus-visible + label { outline: 3px solid var(--clay-dk); outline-offset: 3px; }

/* Quiz */
.quiz { background: var(--warm); border-radius: var(--r-l); padding: clamp(1.5rem,3vw,2.5rem); box-shadow: var(--sh-l); }
.quiz__bar { height: 6px; border-radius: 999px; background: var(--stone-lt); overflow: hidden; margin-bottom: 1.75rem; }
.quiz__bar i { display: block; height: 100%; border-radius: 999px; background: var(--clay); width: 20%; transition: width .55s var(--e-out); }
.quiz__step { display: none; }
.quiz__step[data-active="true"] { display: block; animation: qIn .45s var(--e-out); }
@keyframes qIn { from { opacity: 0; transform: translateX(14px); } }
.quiz__nav { display: flex; gap: .75rem; margin-top: 1.5rem; }
.quiz__count { font-size: .875rem; color: var(--ink-50); margin-bottom: .6rem; }
.quiz__q { margin-bottom: 1.25rem; }

/* ---------- 17. Footer ---------- */
.ftr { background: var(--walnut-dk); color: var(--cream); padding-block: clamp(3.5rem,7vw,5.5rem) 2.25rem; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.ftr a { text-decoration: none; opacity: .76; transition: opacity .3s, color .3s; }
.ftr a:hover { opacity: 1; color: var(--stone); }
.ftr__top { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3,minmax(0,1fr)); gap: clamp(2rem,4vw,3rem); }
.ftr h3 { font-family: var(--ff-body); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,246,239,.55); margin-bottom: 1.1rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; font-size: .9375rem; }
.ftr__bot { margin-top: clamp(2.75rem,5vw,4rem); padding-top: 1.6rem; border-top: 1px solid var(--line-lt); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .875rem; color: rgba(250,246,239,.55); }

.lphdr { border-bottom: 1px solid var(--line); background: var(--warm); }
.lphdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }

/* ---------- 18. Sticky mobile CTA ---------- */
.mbar { position: fixed; inset: auto .6rem .6rem; z-index: 90; display: none; grid-template-columns: 1fr 1.4fr; gap: .5rem; padding-bottom: env(safe-area-inset-bottom); }
.mbar a { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 999px; text-decoration: none; font-size: .9375rem; font-weight: 700; background: var(--warm); color: var(--walnut-dk); box-shadow: var(--sh-m); }
.mbar a + a { background: var(--walnut); color: var(--warm); }

/* ---------- 19. Motion ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--e-out), transform 1s var(--e-out); transition-delay: var(--d,0ms); }
.rv[data-in="true"] { opacity: 1; transform: none; }
.rv-l { opacity: 0; transform: translateX(-24px); transition: opacity 1s var(--e-out), transform 1s var(--e-out); transition-delay: var(--d,0ms); }
.rv-l[data-in="true"] { opacity: 1; transform: none; }
.rvt { display: block; overflow: hidden; }
.rvt > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--e-out); transition-delay: var(--d,0ms); }
.rvt[data-in="true"] > span { transform: none; }
body { animation: pageIn .8s var(--e-out); }
@keyframes pageIn { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv-l, .rvt > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fig img, .vfac img, .hero__media img { transition: none !important; animation: none !important; transform: none !important; }
  body, .acc__body, .quiz__step[data-active="true"] { animation: none; }
  .eyebrow::before { transform: scale(1); transition: none; }
}

/* ============================================================================
   19b. PREMIUM MOTION LAYER
   Word-mask headlines · clip reveals · marquee · magnetic CTAs · custom cursor
   ========================================================================= */

/* Word-by-word headline reveal — JS wraps each word in .w > span */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .18em; margin-bottom: -.18em; }
.split .w > span { display: inline-block; transform: translateY(112%); transition: transform 1s var(--e-out); transition-delay: var(--wd, 0ms); }
.split[data-in="true"] .w > span { transform: none; }

/* Image reveal — the photograph wipes up behind a hard edge */
.clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.25s var(--e); }
.clip[data-in="true"] { clip-path: inset(0 0 0 0); }
.clip img { transform: scale(1.14); transition: transform 1.6s var(--e-out); }
.clip[data-in="true"] img { transform: scale(1); }

/* Editorial marquee */
.marq { overflow: hidden; border-block: 1px solid var(--line-soft); padding-block: 1.5rem; background: var(--warm); }
.section--clay + .marq { border-top: 0; }
.marq__t { display: flex; gap: 3.5rem; width: max-content; animation: marq 42s linear infinite; }
.marq__t span { font-family: var(--ff-display); font-weight: 500; letter-spacing: -.015em;
  font-size: clamp(1.5rem,3.6vw,3.25rem); white-space: nowrap; color: transparent;
  -webkit-text-stroke: 1px rgba(92,68,51,.32); }
.marq__t span.on { color: var(--walnut-dk); -webkit-text-stroke: 0; }
.marq__t span em { font-style: italic; color: var(--bronze-dk); -webkit-text-stroke: 0; }
.marq:hover .marq__t { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Magnetic CTA — the button leans toward the cursor */
.mag { will-change: transform; }

/* Custom cursor — a hairline ring, desktop pointer only */
.cur, .cur-dot { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none;
  border-radius: 50%; mix-blend-mode: multiply; opacity: 0; transition: opacity .3s, width .35s var(--e-out), height .35s var(--e-out); }
.cur { width: 40px; height: 40px; background: rgba(176,137,104,.30); margin: -20px 0 0 -20px; }  /* clay, not the old sage */
.cur-dot { width: 5px; height: 5px; background: var(--walnut); margin: -2.5px 0 0 -2.5px; }
.cur[data-on="true"], .cur-dot[data-on="true"] { opacity: 1; }
.cur[data-hot="true"] { width: 74px; height: 74px; margin: -37px 0 0 -37px; }
@media (hover: none), (pointer: coarse) { .cur, .cur-dot { display: none; } }

/* Pinned editorial statement — scales as it passes */
.pin { position: relative; height: 190svh; }
.pin__in { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.pin__t { text-align: center; max-width: 22ch; transform: scale(var(--ps, 1)); }

@media (prefers-reduced-motion: reduce) {
  .split .w > span { transform: none !important; transition: none !important; }
  .clip { clip-path: none !important; transition: none !important; }
  .clip img { transform: none !important; transition: none !important; }
  .marq__t { animation: none; }
  .cur, .cur-dot { display: none; }
  .pin { height: auto; } .pin__in { position: static; height: auto; padding-block: var(--sect); }
  .pin__t { transform: none !important; }
}

/* ---------- 20. Utilities ---------- */
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 1.6rem; } .mt-l { margin-top: clamp(1.85rem,3.4vw,2.75rem); }
.mt-0 { margin-top: 0; }
.dl { display: grid; margin: 0; }
.dl > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); gap: 1.25rem; padding-block: .85rem; border-bottom: 1px solid var(--line-soft); }
.dl dt { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-50); margin: 0; }
.dl dd { margin: 0; }
.section--walnut .dl > div { border-color: var(--line-lt); }
.section--walnut .dl dt { color: rgba(250,246,239,.58); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: .7rem; align-items: start; }
.ticks i { width: 24px; height: 24px; border-radius: 50%; background: var(--clay); color: var(--warm); display: grid; place-items: center; font-style: normal; font-size: .75rem; margin-top: .18rem; }

/* ============================================================================
   21. RESPONSIVE
   ========================================================================= */
@media (min-width: 1600px) { :root { --shell: 1440px; } }

@media (max-width: 1120px) {
  .nav--main { display: none; }
  .burger { display: flex; }
}
@media (max-width: 1024px) {
  .g-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .g-asym, .g-asym-r { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --sect: clamp(3.5rem,8vw,5.5rem); }
  .shead { grid-template-columns: 1fr; align-items: start; gap: 1.1rem; }
  .g-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 92svh; }
}
@media (max-width: 860px) {
  .mbar { display: grid; }
  body { padding-bottom: calc(56px + 1.2rem + env(safe-area-inset-bottom)); }
  .g-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ba { aspect-ratio: 4/3; }
}
@media (max-width: 620px) {
  :root { --sect: clamp(3rem,10vw,4.25rem); --gut: 1.25rem; --r-xl: 26px; }
  .g-3, .g-4 { grid-template-columns: 1fr; }
  .field--2 { grid-template-columns: 1fr; }
  .dl > div { grid-template-columns: 1fr; gap: .25rem; }
  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .hdr .btn, .lphdr .btn { width: auto; }
  .hdr .nav > .btn { display: none; }
  .quiz__nav .btn { width: auto; flex: 1 1 auto; }
  .step { grid-template-columns: 48px minmax(0,1fr); gap: .9rem; }
  .ftr__top { grid-template-columns: 1fr; }
  .ftr__bot { flex-direction: column; gap: .6rem; }
  .ba { aspect-ratio: 3/4; }
  .hero__meta { gap: 1.1rem 1.75rem; }
  .hero__meta div { flex: 1 1 40%; }
  .fig--arch { border-radius: 500px 500px var(--r-m) var(--r-m); }
}
@media (max-width: 430px) {
  .stats { grid-template-columns: 1fr; }
  .hero__meta div { flex: 1 1 100%; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 600px; }
  .hero__meta { display: none; }
}

/* ---------- Touch targets: phone + tablet only ---------- */
@media (max-width: 900px) {
  .tlink { min-height: 48px; align-items: center; }
  .brand { min-height: 48px; display: inline-flex; flex-direction: column; justify-content: center; }
  .crumbs a, .crumb a, nav[aria-label="Breadcrumb"] a { display: inline-flex; align-items: center; min-height: 44px; }
  .ftr a, .ftr__bot a { display: inline-flex; align-items: center; min-height: 44px; }
}
