/* ========================================================================
   HeartSong Equine — spec preview
   Design system + layout
   ======================================================================== */

:root {
  /* Brand palette (earthy, holistic, calm) */
  --pine:        #2f463a;   /* primary deep green */
  --pine-deep:   #233428;
  --pine-soft:   #496052;
  --cream:       #f4ede0;   /* secondary warm cream */
  --cream-deep:  #ece2d1;
  --paper:       #fbf8f2;
  --clay:        #c0865a;   /* accent warm clay */
  --clay-deep:   #a76d44;
  --ink:         #2a2620;
  --ink-soft:    #574f44;
  --line:        rgba(47, 70, 58, 0.16);
  --white:       #ffffff;

  /* Typography */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --fs-body:    clamp(1rem, 0.97rem + 0.2vw, 1.12rem);
  --fs-lede:    clamp(1.16rem, 1.05rem + 0.6vw, 1.45rem);
  --fs-h3:      clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
  --fs-h2:      clamp(1.85rem, 1.3rem + 2.6vw, 3.1rem);
  --fs-h1:      clamp(2.6rem, 1.6rem + 4.6vw, 5rem);

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.25rem;
  --sp-5: 3.5rem;
  --sp-6: 5.5rem;
  --sp-section: clamp(4rem, 2.5rem + 6vw, 8rem);

  --maxw: 1240px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -28px rgba(35, 52, 40, 0.45);
  --shadow-soft: 0 14px 40px -24px rgba(35, 52, 40, 0.4);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--pine);
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
p { margin: 0 0 1.1em; max-width: 62ch; }

a { color: var(--clay-deep); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--pine); }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; 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: 50%; transform: translateX(-50%) translateY(-150%);
  top: 8px; z-index: 200;
  background: var(--pine); color: var(--cream);
  padding: 0.6rem 1.1rem; border-radius: 999px; font-size: 0.85rem;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); color: var(--cream); }

/* ---------- Shared layout ---------- */
.section { padding: var(--sp-section) 0; }
section[id] { scroll-margin-top: 84px; }
.header-inner,
.intro-grid,
.wellness-grid,
.board-rows,
.story-grid,
.gallery-grid,
.contact-inner,
.section-head,
.quote,
.footer-inner {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  color: var(--clay-deep);
  margin: 0 0 1.1rem;
}
.eyebrow.light { color: var(--clay); }

.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink); font-family: var(--serif); }

.section-head { max-width: 760px; margin-bottom: var(--sp-5); }
.section-head .section-intro { color: var(--ink-soft); margin-top: 1.2rem; }
.section-head--split {
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.section-head--split .section-intro { margin: 0; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(167, 109, 68, 0.8);
}
.btn-primary:hover { background: var(--clay-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(167, 109, 68, 0.9); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; transform: translateY(-2px); }
.btn-pill {
  background: var(--pine);
  color: var(--cream);
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
}
.btn-pill:hover { background: var(--pine-deep); color: #fff; transform: translateY(-2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--pine);
}
.link-arrow::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--clay-deep); }
.link-arrow:hover::after { transform: translateX(6px); }

/* ========================================================================
   Header
   ======================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.05rem 0;
}
.brand { margin-right: auto; display: flex; align-items: center; }
.brand-logo {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.35s var(--ease);
}
.primary-nav { display: flex; gap: 1.9rem; }
.primary-nav a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  padding: 0.2rem 0;
}
.primary-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.primary-nav a:hover { color: #fff; }
.primary-nav a:hover::after { transform: scaleX(1); }

/* scrolled state */
.site-header.scrolled {
  background: var(--paper);
  box-shadow: 0 6px 24px -16px rgba(35, 52, 40, 0.5);
  border-bottom-color: var(--line);
}
.site-header.scrolled .brand-logo { filter: none; }
.site-header.scrolled .primary-nav a { color: var(--ink-soft); }
.site-header.scrolled .primary-nav a:hover { color: var(--pine); }

.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* ========================================================================
   Hero
   ======================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 46%;
  transform: scale(1.08);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 70% 18%, rgba(20, 30, 23, 0) 30%, rgba(20, 30, 23, 0.35) 100%),
    linear-gradient(180deg, rgba(20, 30, 23, 0.5) 0%, rgba(20, 30, 23, 0.08) 26%, rgba(20, 30, 23, 0) 46%),
    linear-gradient(8deg, rgba(15, 23, 18, 0.95) 0%, rgba(15, 23, 18, 0.72) 26%, rgba(15, 23, 18, 0.28) 52%, rgba(15, 23, 18, 0.04) 78%);
}
.hero-content {
  padding: 0 0 clamp(5.5rem, 12vh, 9rem);
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  max-width: min(100% - 2.5rem, 940px);
}
.hero .eyebrow { color: var(--cream); opacity: 0.95; }
.hero-title {
  color: #fff;
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.018em;
  max-width: 15ch;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(15, 23, 18, 0.5);
}
.hero-sub {
  color: rgba(255, 255, 255, 0.94);
  font-size: var(--fs-lede);
  font-family: var(--serif);
  max-width: 46ch;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 20px rgba(15, 23, 18, 0.45);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }

/* eyebrow with leading rule */
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.85rem; }
.eyebrow-rule {
  display: inline-block;
  width: clamp(28px, 4vw, 48px);
  height: 1.5px;
  background: currentColor;
  opacity: 0.85;
  flex: 0 0 auto;
}

/* hero scroll cue */
.hero-scroll {
  position: absolute;
  left: 50%; bottom: clamp(1.4rem, 3vh, 2.2rem);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  z-index: 2;
}
.hero-scroll:hover { color: #fff; }
.js .hero-scroll { opacity: 0; transition: opacity 0.9s var(--ease) 1.05s; }
.js .hero.ready .hero-scroll { opacity: 1; }
.hero-scroll-track {
  width: 24px; height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  display: flex; justify-content: center;
  padding-top: 7px;
}
.hero-scroll-dot {
  width: 4px; height: 8px; border-radius: 999px;
  background: var(--cream);
  animation: scrollDot 1.9s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(-4px); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; }
}
@media (max-width: 820px) { .hero-scroll { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: none; }
  .hero-scroll-dot { animation: none; opacity: 0.9; }
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  margin: 0;
  backdrop-filter: blur(4px);
}
.hero-chip::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 4px rgba(192, 134, 90, 0.3);
}

/* ========================================================================
   Intro
   ======================================================================== */
.intro { padding-top: clamp(4.5rem, 9vw, 8rem); }
.intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.intro-figure { position: relative; }
.intro-figure-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.intro-figure-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 30, 23, 0) 55%, rgba(20, 30, 23, 0.32) 100%);
}
.intro-figure-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 32%;
  transition: transform 0.9s var(--ease);
}
.intro-figure:hover .intro-figure-frame img { transform: scale(1.045); }
.figure-tag {
  position: absolute;
  z-index: 2;
  bottom: -18px; left: -18px;
  background: var(--clay);
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem);
  padding: 0.7rem 1.3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  max-width: 70%;
}
.intro-copy p:last-of-type { margin-bottom: 1.6rem; }
.intro-copy h2 { margin-bottom: 1.3rem; }

/* ========================================================================
   Philosophy band
   ======================================================================== */
.philosophy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  padding: clamp(5rem, 12vw, 9rem) 0;
}
.philosophy-media { position: absolute; inset: 0; z-index: -2; }
.philosophy-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.philosophy-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(28, 42, 33, 0.94) 0%, rgba(28, 42, 33, 0.82) 45%, rgba(28, 42, 33, 0.45) 100%);
}
.philosophy-inner {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  max-width: 720px;
}
.philosophy h2 { color: #fff; margin-bottom: 1.4rem; }
.philosophy p { color: rgba(255, 255, 255, 0.92); font-size: var(--fs-lede); font-family: var(--serif); line-height: 1.55; max-width: 56ch; }

/* ========================================================================
   Wellness
   ======================================================================== */
.wellness { background: var(--cream); }
.wellness-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.wellness-feature {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 92px;
}
.wellness-feature-media { overflow: hidden; }
.wellness-feature-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.7s var(--ease);
}
.wellness-feature:hover .wellness-feature-media img { transform: scale(1.05); }
.wellness-feature-body { padding: clamp(1.5rem, 3vw, 2.4rem); }
.wellness-feature-body h3 { margin-bottom: 0.7rem; }

.wellness-cards { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.wcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.wcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: transparent; }
.wcard h3 { margin-bottom: 0.5rem; }
.wcard p { margin-bottom: 1rem; color: var(--ink-soft); }

.tag-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-list li {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pine);
  background: rgba(47, 70, 58, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
}

/* ========================================================================
   Boarding
   ======================================================================== */
.board-rows { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
.board-row h3 { margin-bottom: 1rem; }

.board-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--clay-deep);
  margin-bottom: 1rem;
}
.board-tag.light { color: var(--clay); }

/* feature row: large image + copy */
.board-row--feature {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.board-row-media { overflow: hidden; }
.board-row-media img {
  width: 100%; height: 100%;
  min-height: 340px;
  object-fit: cover; object-position: center 42%;
  transition: transform 0.8s var(--ease);
}
.board-row--feature:hover .board-row-media img { transform: scale(1.05); }
.board-row-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.8rem, 4vw, 3.2rem);
}
.board-row-body p { color: var(--ink-soft); margin-bottom: 0; }
.board-points {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: grid; gap: 0.65rem;
}
.board-points li {
  position: relative; padding-left: 1.6rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
.board-points li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 4px rgba(192, 134, 90, 0.16);
}

/* panel row: pine surface with emblem watermark */
.board-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--pine-soft) 0%, var(--pine) 45%, var(--pine-deep) 100%);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.8rem);
  box-shadow: var(--shadow-soft);
}
.board-watermark {
  position: absolute; z-index: -1;
  right: clamp(-50px, -3vw, -10px); bottom: -40px;
  width: clamp(190px, 28vw, 360px);
  opacity: 0.1;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.board-panel-body { max-width: 56ch; }
.board-panel h3 { color: #fff; }
.board-panel p { color: rgba(255, 255, 255, 0.85); margin-bottom: 0; }

/* ========================================================================
   Story / Nicole
   ======================================================================== */
.story { background: var(--pine); color: var(--cream); }
.story h2, .story .lede { color: #fff; }
.story .eyebrow { color: var(--clay); }
.story p { color: rgba(255, 255, 255, 0.86); }
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.story-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.story-copy h2 { margin-bottom: 1.3rem; }
.story-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem);
  color: var(--clay);
  line-height: 1;
}
.stat-label {
  font-family: var(--sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.5rem;
}

/* ========================================================================
   Gallery
   ======================================================================== */
.gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: clamp(0.8rem, 2vw, 1.4rem);
}
.g-item { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ========================================================================
   Testimonial
   ======================================================================== */
.testimonial { background: var(--cream); }
.quote {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  isolation: isolate;
  padding: clamp(0.5rem, 3vw, 2rem) clamp(1rem, 4vw, 2.5rem);
}
.quote-watermark {
  position: absolute; z-index: -1;
  top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  width: clamp(220px, 36vw, 400px);
  opacity: 0.08;
  pointer-events: none;
}
.quote-eyebrow {
  color: var(--clay-deep);
  margin-bottom: 1.5rem;
  justify-content: center;
}
.quote blockquote { margin: 0 0 1.8rem; position: relative; }
.quote blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 0.5;
  color: var(--clay);
  opacity: 0.45;
  margin-bottom: 0.4rem;
}
.quote blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.22rem, 1rem + 0.95vw, 1.6rem);
  line-height: 1.5;
  color: var(--pine);
  max-width: 44ch;
  margin: 0 auto;
}
.quote figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.quote-name {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--pine);
}
.quote-role {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ========================================================================
   Contact
   ======================================================================== */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(130% 150% at 50% 0%, var(--pine-soft) 0%, var(--pine) 44%, var(--pine-deep) 100%);
  color: var(--cream);
  text-align: center;
}
.contact-watermark {
  position: absolute; z-index: -1;
  left: 50%; top: 56%;
  transform: translate(-50%, -50%);
  width: clamp(320px, 52vw, 640px);
  opacity: 0.06;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.contact-inner {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact .eyebrow { justify-content: center; }
.contact h2 {
  color: #fff;
  margin-bottom: 1.4rem;
  font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.7rem);
}
.contact-lede {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-lede);
  font-family: var(--serif);
  line-height: 1.5;
  max-width: 52ch;
  margin: 0 auto;
}
.contact-actions { margin: 2.4rem 0 1.6rem; }
.contact-note {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
  max-width: 46ch;
}
.btn-lg { padding: 1.15rem 2.5rem; font-size: 1.05rem; }

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer { background: var(--pine); color: var(--cream); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}
.footer-logo { height: 54px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-tag { color: rgba(255, 255, 255, 0.8); max-width: 40ch; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.footer-nav a { color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--clay); }

.spec-footer {
  background: #14160f;
  color: #b9c0ad;
  font-family: var(--sans);
  font-size: 0.82rem;
  text-align: center;
  padding: 1.1rem 1.5rem;
  line-height: 1.6;
}
.spec-footer a { color: var(--clay); text-decoration: underline; }

/* ========================================================================
   Motion / reveal
   ======================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* hero on-load reveal */
.js .hero-line {
  opacity: 0;
  transform: translateY(24px);
}
.js .hero.ready .hero-line {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .hero.ready .hero-line[data-delay="1"] { transition-delay: 0.1s; }
.js .hero.ready .hero-line[data-delay="2"] { transition-delay: 0.25s; }
.js .hero.ready .hero-line[data-delay="3"] { transition-delay: 0.4s; }
.js .hero.ready .hero-line[data-delay="4"] { transition-delay: 0.55s; }
.js .hero.ready .hero-line[data-delay="5"] { transition-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero-line, .js .hero-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .js .hero-scroll { transform: translateX(-50%) !important; }
  .wellness-feature-media img, .board-row-media img, .g-item img, .intro-figure-frame img { transition: none; }
}

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 980px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; gap: 1.2rem; }
  .wellness-grid { grid-template-columns: 1fr; }
  .wellness-feature { position: static; }
  .wcard h3 { margin-bottom: 0.4rem; }
}

@media (max-width: 820px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    padding: 0 11px;
  }
  .scrolled .nav-toggle { background: rgba(47, 70, 58, 0.08); border-color: var(--line); }
  .nav-toggle span {
    display: block; height: 2px; width: 100%;
    background: #fff; border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .scrolled .nav-toggle span { background: var(--pine); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-nav {
    display: grid;
    gap: 0.4rem;
    overflow: hidden;
    max-height: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
    padding: 0 1.25rem;
  }
  .mobile-nav.open { max-height: 460px; padding: 1rem 1.25rem 1.5rem; }
  .mobile-nav a { font-weight: 600; color: var(--ink-soft); padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { border-bottom: 0; margin-top: 0.6rem; color: var(--cream); }
  .mobile-nav a.btn { justify-content: center; }

  .intro-grid, .story-grid { grid-template-columns: 1fr; }
  .intro-figure { max-width: 460px; }
  .story-figure { max-width: 420px; order: -1; }
  .figure-tag { left: 0; }
  .board-row--feature { grid-template-columns: 1fr; }
  .board-row-media img { min-height: 0; aspect-ratio: 3 / 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .g-wide { grid-column: span 1; }
  .g-tall { grid-row: span 1; }
  .story-stats { gap: 1.5rem; }
  .figure-tag { font-size: 0.95rem; bottom: -14px; }
}
