/* ==========================================================================
   Heartland Heals — site styles
   Palette from a central-Wisconsin evening: birch bark, pine, moss,
   prairie straw, dusk lavender, lake blue.
   ========================================================================== */

:root {
  --birch: #EEF0EA;
  --birch-deep: #E2E6DC;
  --paper: #F7F8F4;
  --pine: #1E3B34;
  --pine-deep: #152B26;
  --moss: #5E7A5B;
  --moss-soft: #A9B9A4;
  --straw: #D8B25C;
  --straw-soft: #EBD7A6;
  --dusk: #CBC6E0;
  --dusk-deep: #8E86B5;
  --lake: #2E5A87;
  --lake-soft: #8FB0D6;
  --ink: #1A2723;
  --ink-soft: #46554F;
  --line: rgba(30, 59, 52, 0.16);

  --serif: 'Young Serif', 'Georgia', serif;
  --sans: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale — perfect fourth from an 18px base */
  --t-sm: 0.889rem;
  --t-base: 1.125rem;
  --t-md: 1.333rem;
  --t-lg: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-xl: clamp(2rem, 1.5rem + 2vw, 2.85rem);
  --t-2xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.2rem);
  --t-hero: clamp(2.9rem, 1.4rem + 5.6vw, 6.4rem);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --wrap: 1240px;
  --narrow: 720px;
  --section-y: clamp(4.5rem, 9vw, 9rem);

  --ease-breath: cubic-bezier(0.45, 0, 0.55, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--birch);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lake); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--straw); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--pine);
  text-wrap: balance;
}
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }
p { margin: 0 0 1.1em; max-width: 64ch; text-wrap: pretty; }
em { font-style: italic; }

.on-dark { color: var(--birch); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark a { color: var(--straw-soft); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--pine); color: #fff; padding: 0.75rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 2; }
.wrap--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Lead text & small labels ---------- */
.lede { font-size: var(--t-md); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.on-dark .lede { color: rgba(238, 240, 234, 0.82); }
.kicker {
  display: block;
  font-family: var(--serif);
  font-size: var(--t-md);
  color: var(--moss);
  margin-bottom: 0.6rem;
}
.on-dark .kicker { color: var(--straw); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--straw);
  --btn-fg: var(--pine-deep);
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 3.1rem; padding: 0.7rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  border-radius: 999px;
  font-family: var(--sans); font-size: 1.05rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn, .on-dark .btn, .btn:visited { color: var(--btn-fg); }
.btn:hover { --btn-bg: #E4C276; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--pine { --btn-bg: var(--pine); --btn-fg: #fff; }
.btn--pine:hover { --btn-bg: var(--pine-deep); }
.btn.btn--ghost { background: transparent; color: var(--pine); border-color: currentColor; }
.btn.btn--ghost:hover { background: var(--pine); color: #fff; border-color: var(--pine); }
.on-dark .btn.btn--ghost { color: #fff; }
.on-dark .btn.btn--ghost:hover { background: #fff; color: var(--pine); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.text-link {
  font-weight: 700; color: var(--pine); text-decoration: none;
  border-bottom: 2px solid var(--straw); padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--pine); }
.on-dark .text-link { color: #fff; }

/* ---------- Header ---------- */
.announce {
  background: var(--pine-deep); color: var(--birch); font-size: var(--t-sm);
  text-align: center; padding: 0.55rem var(--gutter); position: relative; z-index: 31;
}
.announce a { color: var(--straw); font-weight: 700; margin-left: 0.4rem; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(238, 240, 234, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.has-photo-hero .site-header:not(.is-scrolled):not(.menu-open) {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.has-photo-hero .site-header { position: fixed; left: 0; right: 0; }

.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: 1400px; margin-inline: auto; padding: 0.85rem var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--pine); text-decoration: none; margin-right: auto; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.01em; color: var(--moss); margin-top: 0.3rem; }
.has-photo-hero .site-header:not(.is-scrolled):not(.menu-open) .brand,
.has-photo-hero .site-header:not(.is-scrolled):not(.menu-open) .nav-link { color: #fff; }
.has-photo-hero .site-header:not(.is-scrolled):not(.menu-open) .brand-name small { color: var(--straw-soft); }

.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.55rem 0.8rem; border-radius: 999px;
  color: var(--pine); text-decoration: none; font-weight: 700; font-size: 1rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-link[aria-current="page"] { background: rgba(30, 59, 52, 0.08); }
.has-photo-hero .site-header:not(.is-scrolled):not(.menu-open) .nav-link:hover { background: rgba(255, 255, 255, 0.14); }
.nav-link svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-item.open > .nav-link svg { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 0.4rem); left: 0; min-width: 300px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.5rem; list-style: none; margin: 0;
  box-shadow: 0 18px 40px -18px rgba(21, 43, 38, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item.open > .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: block; padding: 0.65rem 0.8rem; border-radius: 9px; color: var(--pine); text-decoration: none; }
.subnav a:hover { background: var(--birch); }
.subnav a strong { display: block; font-size: 1rem; }
.subnav a span { display: block; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.4; }
.header-cta { margin-left: 0.6rem; min-height: 2.7rem; padding: 0.5rem 1.15rem; font-size: 0.98rem; }

.menu-toggle {
  display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: inherit;
  width: 46px; height: 46px; border-radius: 999px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .25s, opacity .25s; border-radius: 2px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle { display: block; color: var(--pine); }
  .has-photo-hero .site-header:not(.is-scrolled):not(.menu-open) .menu-toggle { color: #fff; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 0; top: var(--header-h, 72px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--birch); padding: 1rem var(--gutter) 3rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .menu-open .nav { transform: none; visibility: visible; }
  .nav-link { width: 100%; justify-content: space-between; padding: 1rem 0.25rem; font-size: 1.25rem; font-family: var(--serif); font-weight: 400; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-link:hover { background: none; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0.5rem 0.75rem; display: none; min-width: 0; }
  .nav-item.open > .subnav { display: block; }
  .nav .mobile-cta { display: inline-flex; margin-top: 1.5rem; align-self: flex-start; }
}
@media (min-width: 1081px) { .nav .mobile-cta { display: none; } }

main { position: relative; display: block; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--deep { background: var(--birch-deep); }
.section--pine { background: var(--pine); }
.section--dusk { background: var(--dusk); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 760px; }
.section-head--half { max-width: calc(50% - 3rem); }
@media (max-width: 860px) { .section-head--half { max-width: none; } }
.section-head p { color: var(--ink-soft); font-size: var(--t-md); line-height: 1.55; }
.on-dark .section-head p { color: rgba(238, 240, 234, 0.8); }

/* Rolling-hill horizon at the top of a section */
.horizon { position: absolute; left: 0; right: 0; top: -1px; height: clamp(40px, 6vw, 90px); width: 100%; z-index: 0; pointer-events: none; }
.horizon path { fill: var(--horizon-fill, var(--birch)); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--pine-deep);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 43, 38, 0.55) 0%, rgba(21, 43, 38, 0) 22%),
    linear-gradient(15deg, rgba(21, 43, 38, 0.92) 8%, rgba(21, 43, 38, 0.35) 48%, rgba(21, 43, 38, 0) 70%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1400px; margin-inline: auto; padding: 9rem var(--gutter) clamp(3rem, 8vh, 6rem); }
.hero-title { font-size: var(--t-hero); line-height: 1.02; color: #fff; max-width: 13ch; margin-bottom: 1.6rem; letter-spacing: -0.02em; }
.hero-title .line { display: block; }
.hero-sub { font-size: var(--t-md); line-height: 1.55; max-width: 40ch; color: rgba(255, 255, 255, 0.88); margin-bottom: 2rem; }
.hero-caption {
  position: absolute; right: var(--gutter); bottom: 1.4rem; z-index: 2;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); margin: 0; max-width: 32ch; text-align: right;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: settle 14s var(--ease-breath) both; }
  .hero-title .line { animation: exhale 1.6s var(--ease-breath) both; }
  .hero-title .line:nth-child(2) { animation-delay: .9s; }
  .hero-title .line:nth-child(3) { animation-delay: 1.8s; }
  .hero-sub, .hero .btn-row { animation: exhale 1.6s var(--ease-breath) 2.4s both; }
}
@keyframes settle { from { transform: scale(1.09); } to { transform: scale(1); } }
@keyframes exhale { from { opacity: 0; filter: blur(6px); transform: translateY(0.25em); } to { opacity: 1; filter: blur(0); transform: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.page-hero h1 { font-size: var(--t-2xl); max-width: 14ch; }
.page-hero .lede { margin-bottom: 1.8rem; }
.page-hero-photo { position: relative; }
.page-hero-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 18px; }
.page-hero--plain .page-hero-grid { grid-template-columns: 1fr; }
.page-hero--plain h1 { max-width: 18ch; }
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-photo { order: -1; }
  .page-hero-photo img { aspect-ratio: 4 / 3; }
}
.breadcrumb { font-size: var(--t-sm); margin-bottom: 1rem; color: var(--moss); }
.breadcrumb a { color: var(--moss); }

/* ---------- Mission statement ---------- */
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.statement { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.22; color: var(--pine); margin: 0 0 1.5rem; max-width: 24ch; }
.statement em { font-style: normal; background: linear-gradient(transparent 62%, var(--straw-soft) 62%); }
.figure { margin: 0; }
.figure img { width: 100%; object-fit: cover; border-radius: 16px; }
.figure figcaption { font-size: var(--t-sm); color: var(--ink-soft); margin-top: 0.7rem; max-width: 44ch; }
.statement-grid .figure img { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .statement-grid { grid-template-columns: 1fr; } }

/* ---------- Audience rows ---------- */
.audiences { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.audience { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.audience:nth-child(even) .audience-photo { order: 2; }
.audience-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 18px; }
.audience:nth-child(2) .audience-photo img { aspect-ratio: 1 / 1; }
.audience h3 { font-size: var(--t-xl); margin-bottom: 0.8rem; }
.audience .who { font-size: var(--t-sm); color: var(--moss); font-weight: 700; margin-bottom: 0.6rem; }
@media (max-width: 860px) {
  .audience { grid-template-columns: 1fr; }
  .audience:nth-child(even) .audience-photo { order: 0; }
}

/* ---------- Activities explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.explorer-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.explorer-list li { border-bottom: 1px solid var(--line); }
.explorer-btn {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  padding: 1rem 0.25rem; font-family: var(--serif); font-size: var(--t-lg); color: var(--ink-soft);
  transition: color .2s, padding-left .3s var(--ease-breath);
}
.explorer-btn:hover { color: var(--pine); }
.explorer-btn[aria-selected="true"] { color: var(--pine); padding-left: 0.9rem; }
.explorer-btn .tick { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--moss-soft); transition: background-color .2s, border-color .2s; }
.explorer-btn[aria-selected="true"] .tick { background: var(--straw); border-color: var(--straw); }
.explorer-stage { position: sticky; top: 7rem; }
.explorer-panel { display: none; }
.explorer-panel.is-active { display: block; }
.explorer-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; margin-bottom: 1.2rem; }
.explorer-panel p { font-size: var(--t-md); line-height: 1.55; color: var(--ink); max-width: 44ch; }
@media (prefers-reduced-motion: no-preference) {
  .explorer-panel.is-active img { animation: fadeIn .5s ease both; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 860px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer-stage { position: static; }
}

/* ---------- Breathe with a horse ---------- */
.breathe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.breathe-copy h2 { font-size: var(--t-2xl); color: var(--pine-deep); }
.breathe-copy p { color: #2F3550; }
.breathe-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; }
.breathe-ring {
  position: absolute; inset: 6%; border-radius: 50%;
  border: 2px solid rgba(46, 51, 80, 0.25);
  transform: scale(0.82);
}
.breathe-ring--2 { inset: 0; border-style: dashed; border-color: rgba(46, 51, 80, 0.18); transform: scale(0.88); }
.breathe-photo { position: relative; width: 64%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; transform: scale(0.9); box-shadow: 0 30px 60px -30px rgba(46, 51, 80, 0.6); }
.breathe-photo img { width: 100%; height: 100%; object-fit: cover; }
.breathe-cue {
  position: absolute; left: 50%; bottom: -0.5rem; transform: translateX(-50%);
  font-family: var(--serif); font-size: var(--t-lg); color: var(--pine-deep); white-space: nowrap; min-height: 1.4em;
}
.breathe-count { font-size: var(--t-sm); color: #3E4466; margin-top: 0.6rem; }
.breathe.is-running .breathe-photo,
.breathe.is-running .breathe-ring { animation: breathe var(--cycle, 6s) var(--ease-breath) infinite; }
.breathe.is-running .breathe-ring--2 { animation: breathe var(--cycle, 6s) var(--ease-breath) infinite 0.25s; }
@keyframes breathe {
  0%, 100% { transform: scale(0.82); }
  50% { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .breathe.is-running .breathe-photo, .breathe.is-running .breathe-ring { animation: none; }
}
@media (max-width: 860px) { .breathe { grid-template-columns: 1fr; } .breathe-stage { max-width: 380px; } }

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.step { position: relative; padding-top: 4.2rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem;
  background: var(--paper); color: var(--pine); border: 2px solid var(--lake);
  z-index: 2;
}
.step h3 { font-size: var(--t-md); font-family: var(--serif); margin-bottom: 0.5rem; }
.step p { font-size: 1.02rem; color: var(--ink-soft); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { padding-top: 0; padding-left: 4.2rem; } }

/* ---------- Herd ---------- */
.herd-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 340px); gap: 1.4rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem var(--gutter) 1.5rem;
  margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin;
}
.horse-card { scroll-snap-align: start; position: relative; color: #fff; text-decoration: none; border-radius: 22px; overflow: hidden; background: var(--pine); display: block; }
.horse-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s var(--ease-breath); }
.horse-card:hover img { transform: scale(1.04); }
.horse-card .horse-meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem 1.3rem 1.3rem;
  background: linear-gradient(0deg, rgba(21, 43, 38, 0.92), rgba(21, 43, 38, 0));
}
.horse-card h3 { color: #fff; font-size: var(--t-lg); margin: 0 0 0.2rem; }
.horse-card p { margin: 0; font-size: 0.98rem; color: rgba(255, 255, 255, 0.82); }

.herd-grid { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.horse-profile { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.horse-profile:nth-child(even) .horse-profile-photo { order: 2; }
.horse-profile-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.horse-profile h2 { font-size: var(--t-2xl); margin-bottom: 0.3rem; }
.horse-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 1.4rem; padding: 0; list-style: none; }
.horse-facts li { background: var(--birch-deep); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.92rem; color: var(--pine); }
@media (max-width: 860px) { .horse-profile { grid-template-columns: 1fr; } .horse-profile:nth-child(even) .horse-profile-photo { order: 0; } }

/* ---------- Voices ---------- */
.voices { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.voices-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 1.4rem; font-family: var(--serif); font-size: var(--t-lg); line-height: 1.32; color: #fff; max-width: 30ch; }
.quote blockquote::before { content: '\201C'; display: block; font-size: 4.5rem; line-height: 0.6; color: var(--straw); margin-bottom: 0.6rem; }
.quote figcaption { color: rgba(238, 240, 234, 0.8); }
.quote figcaption strong { color: #fff; display: block; font-size: 1.1rem; }
.quote-list { display: grid; gap: 3rem; }
.quote-nav { display: flex; gap: 0.5rem; margin-top: 2rem; }
.quote-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4);
  background: none; color: #fff; cursor: pointer; display: grid; place-items: center;
}
.quote-nav button:hover { border-color: var(--straw); color: var(--straw); }
.quote-slide[hidden] { display: none; }
@media (max-width: 860px) { .voices { grid-template-columns: 1fr; } .voices-photo img { aspect-ratio: 4 / 3; } }

/* ---------- Ways to help ---------- */
.help-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.help-list { list-style: none; margin: 0; padding: 0; }
.help-list li { border-top: 1px solid var(--line); }
.help-list li:last-child { border-bottom: 1px solid var(--line); }
.help-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1.5rem; align-items: center;
  padding: 1.6rem 0.25rem; text-decoration: none; color: var(--ink);
}
.help-list a strong { font-family: var(--serif); font-weight: 400; font-size: var(--t-lg); color: var(--pine); }
.help-list a span { grid-column: 1; color: var(--ink-soft); }
.help-list a svg { grid-row: 1 / span 2; grid-column: 2; width: 40px; height: 40px; color: var(--lake); transition: transform .3s var(--ease-breath); }
.help-list a:hover svg { transform: translateX(6px); }
@media (max-width: 860px) { .help-grid { grid-template-columns: 1fr; } }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.news-item { text-decoration: none; color: var(--ink); display: block; }
.news-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; margin-bottom: 1rem; }
.news-item h3 { font-size: var(--t-md); margin-bottom: 0.4rem; }
.news-item:hover h3 { text-decoration: underline; text-decoration-color: var(--straw); text-underline-offset: 0.2em; }
.news-item time { font-size: var(--t-sm); color: var(--moss); display: block; margin-bottom: 0.4rem; }
.news-item p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Closing ---------- */
.closing { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.closing-media { position: absolute; inset: 0; }
.closing-media img { width: 100%; height: 100%; object-fit: cover; }
.closing::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 43, 38, 0.85) 0%, rgba(21, 43, 38, 0.45) 55%, rgba(21, 43, 38, 0.1) 100%); }
.closing .wrap { z-index: 3; }
.closing h2 { font-size: var(--t-2xl); max-width: 14ch; color: #fff; }
.closing p { color: rgba(255, 255, 255, 0.86); font-size: var(--t-md); max-width: 40ch; }
.closing address { font-style: normal; margin: 1.6rem 0 2rem; color: rgba(255, 255, 255, 0.86); line-height: 1.6; }
.closing address a { color: #fff; }

/* ---------- Prose blocks for inner pages ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--wide-text { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.split--flip > :first-child { order: 2; }
.split .figure img { aspect-ratio: 4 / 4.4; }
@media (max-width: 860px) { .split, .split--wide-text { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }

.prose > * + * { margin-top: 0; }
.prose p { font-size: 1.12rem; }
.prose h2 { margin-top: 0.2em; }
.prose h3 { margin-top: 1.6em; font-size: var(--t-md); }
.prose ul, .prose ol { padding-left: 1.2rem; max-width: 62ch; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--moss); }
.prose blockquote { margin: 1.8rem 0; padding-left: 1.4rem; border-left: 3px solid var(--straw); font-family: var(--serif); font-size: var(--t-md); color: var(--pine); }
.prose img { border-radius: 14px; margin: 1.5rem 0; }

.list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.9rem 2.5rem; list-style: none; padding: 0; margin: 0; }
.list-grid li { position: relative; padding: 0.95rem 0 0.95rem 2.1rem; border-top: 1px solid var(--line); font-size: 1.08rem; }
.list-grid li::before {
  content: ''; position: absolute; left: 0.2rem; top: 1.35rem; width: 0.9rem; height: 0.9rem; border-radius: 50%;
  border: 2px solid var(--lake); background: var(--paper);
}
.on-dark .list-grid li { border-top-color: rgba(255, 255, 255, 0.15); }
.on-dark .list-grid li::before { border-color: var(--straw); background: transparent; }

.note {
  background: var(--paper); border-radius: 16px; padding: clamp(1.4rem, 3vw, 2.2rem);
  border-left: 5px solid var(--straw);
}
.note h3 { font-size: var(--t-md); }
.note p:last-child { margin-bottom: 0; }

.columns-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.columns-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 860px) { .columns-3, .columns-2 { grid-template-columns: 1fr; } }
.column h3 { font-size: var(--t-md); margin-bottom: 0.5rem; }
.column p { color: var(--ink-soft); font-size: 1.05rem; }
.on-dark .column p { color: rgba(238, 240, 234, 0.8); }

/* Program teasers on Programs overview */
.program-rows { display: grid; gap: 1.2rem; }
.program-row {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: center;
  padding: 1rem; border-radius: 22px; background: var(--paper); text-decoration: none; color: var(--ink);
  transition: background-color .25s;
}
.program-row:hover { background: #fff; }
.program-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.program-row h3 { margin-bottom: 0.3rem; }
.program-row p { margin: 0; color: var(--ink-soft); }
.program-row svg { width: 40px; height: 40px; color: var(--lake); margin-right: 1rem; }
@media (max-width: 720px) { .program-row { grid-template-columns: 1fr; } .program-row svg { display: none; } }

/* CTA band */
.cta-band { text-align: left; }
.cta-band-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 2rem; align-items: end; }
.cta-band h2 { font-size: var(--t-2xl); margin-bottom: 0.6rem; max-width: 16ch; }
.cta-band p { font-size: var(--t-md); color: rgba(238, 240, 234, 0.82); margin: 0; }
@media (max-width: 860px) { .cta-band-inner { grid-template-columns: 1fr; } }

/* FAQ */
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: var(--t-lg); margin-bottom: 1rem; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 3rem 1.2rem 0.25rem; position: relative;
  font-family: var(--serif); font-size: var(--t-md); color: var(--pine);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 0.5rem; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2px solid var(--lake); border-bottom: 2px solid var(--lake); transform: rotate(45deg);
  transition: transform .25s;
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-answer { padding: 0 0.25rem 1.4rem; color: var(--ink-soft); }
.faq-answer p { max-width: 68ch; }

/* Team */
.founder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.founder .role { color: var(--moss); font-weight: 700; margin-bottom: 1.2rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; }
.team-member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; max-width: 200px; margin-bottom: 1rem; }
.team-member h3 { font-size: var(--t-md); margin-bottom: 0.2rem; }
.team-member .role { color: var(--moss); font-size: 0.98rem; margin-bottom: 0.6rem; }
.team-member p { font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-grid { columns: 3 280px; column-gap: 1rem; }
.gallery-grid button { display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; break-inside: avoid; }
.gallery-grid img { width: 100%; transition: transform .5s var(--ease-breath); }
.gallery-grid button:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(21, 43, 38, 0.9); }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 10px; }
.lightbox p { color: #fff; text-align: center; margin: 0.8rem auto 0; }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Article */
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 22px; }
.article-meta { color: var(--moss); margin-bottom: 1rem; }

/* ---------- Forms ---------- */
.form-shell { background: var(--paper); border-radius: 24px; padding: clamp(1.5rem, 4vw, 3rem); }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.3rem; }
.form > * { grid-column: 1 / -1; }
.form > .field--half { grid-column: auto; }
@media (max-width: 640px) { .form > .field--half { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 700; color: var(--pine); margin-bottom: 0.4rem; font-size: 1rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 2px solid #CCD3C7; border-radius: 12px; padding: 0.8rem 0.95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lake); box-shadow: 0 0 0 4px rgba(46, 90, 135, 0.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A3402B; }
.field-error { color: #A3402B; font-size: 0.95rem; margin-top: 0.35rem; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem 1rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 1.02rem; cursor: pointer; padding: 0.35rem 0; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--pine); flex: none; }
.form-note { font-size: 0.95rem; color: var(--ink-soft); background: var(--birch); border-radius: 12px; padding: 0.9rem 1.1rem; margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 14px; padding: 1rem 1.2rem; margin: 0; }
.form-status--error { background: #F6E3DE; color: #6E2A1C; }
.form-success { text-align: left; padding: clamp(1rem, 3vw, 2rem) 0; }
.form-success h3 { font-size: var(--t-xl); }
.form-success svg { width: 64px; height: 64px; color: var(--lake); margin-bottom: 1rem; }
.form button[type="submit"][aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* Contact details */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: 0.92rem; color: var(--moss); font-weight: 700; }
.contact-list a, .contact-list address { font-family: var(--serif); font-size: var(--t-md); color: var(--pine); text-decoration: none; font-style: normal; }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; filter: saturate(0.85); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--pine-deep); color: rgba(238, 240, 234, 0.82); padding: clamp(4rem, 8vw, 6rem) 0 2rem; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand .brand { color: #fff; margin-bottom: 1.2rem; }
.footer-brand .brand-name small { color: var(--straw-soft); }
.footer-brand p { max-width: 36ch; }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--straw); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: rgba(238, 240, 234, 0.9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.9rem; color: rgba(238, 240, 234, 0.6); }
.footer-base a { color: rgba(238, 240, 234, 0.75); }
.path-badge { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 1.2rem; background: #fff; color: var(--ink); border-radius: 10px; padding: 0.4rem 0.8rem 0.4rem 0.4rem; font-size: 0.85rem; }
.path-badge img { width: 54px; height: auto; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.lost { min-height: 70vh; display: flex; align-items: center; }
.lost h1 { font-size: var(--t-hero); }

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack-lg > * + * { margin-top: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- Inner-page helpers ---------- */
.list-grid--single { grid-template-columns: 1fr; }
.list-grid--cross li::before { border-color: var(--moss-soft); background: none; border-radius: 3px; transform: rotate(45deg) scale(0.8); }
.note--quiet { background: transparent; border: 1px solid var(--line); border-left-width: 5px; border-left-color: var(--moss-soft); }
.lede-soft { font-size: var(--t-md); line-height: 1.55; color: var(--ink-soft); }
.path-feature { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; max-width: 900px; }
.path-feature img { width: 160px; background: #fff; border-radius: 14px; padding: 0.8rem; }
@media (max-width: 600px) { .path-feature { grid-template-columns: 1fr; } }
.form-layout { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }
.give-note { margin-top: 1.4rem; font-size: 0.98rem; color: rgba(238, 240, 234, 0.75); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .steps--3 { grid-template-columns: 1fr; } .steps--3 .step { padding-top: 0; padding-left: 4.2rem; } }
.roles { row-gap: clamp(2rem, 4vw, 3rem); }
.roles .column { border-top: 2px solid var(--straw); padding-top: 1.2rem; }
.article-body { font-size: 1.15rem; }
.article-body h2 { font-size: var(--t-lg); margin-top: 1.8em; }
.article-body h3, .article-body h4 { margin-top: 1.5em; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.article-cover { margin-bottom: 0; }
.contact-grid .map { margin-top: 1rem; }
.form-shell h2 { font-size: var(--t-lg); }
.founder .prose blockquote { font-size: var(--t-lg); }
.horse-facts a { color: var(--pine); text-decoration: none; }
