/* ============================================================
   Horse Haven — "Editorial Equestrian" design system
   Warm heritage magazine: ivory paper, espresso ink, sage accent.
   No cards. Hairlines, whitespace, full-bleed imagery, big serif type.
   ============================================================ */

:root {
  /* palette */
  --paper:      #f6f1e8;   /* warm ivory */
  --paper-2:    #efe6d6;   /* slightly deeper, for sectional rhythm */
  --ink:        #241d18;   /* espresso near-black */
  --ink-soft:   #5d5347;   /* muted brown-grey body */
  --ink-faint:  #8c8173;   /* captions, meta */
  --line:       #ddd2c0;   /* hairline */
  --line-soft:  #e7ddcd;
  --accent:     #6c7551;   /* muted sage / olive */
  --accent-deep:#4f5739;
  --white:      #fffdf9;

  /* type */
  --display: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  /* metrics */
  --container: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --section: clamp(4.5rem, 11vw, 9.5rem);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent); color: var(--white); }

/* ---------- typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--ink);
}
h1 { font-size: clamp(2.9rem, 7.4vw, 6.6rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
}
p { color: var(--ink-soft); }
.muted { color: var(--ink-faint); }

/* ---------- layout primitives ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--alt { background: var(--paper-2); }
.rule { height: 1px; background: var(--line); border: 0; }
.measure { max-width: 42ch; }
.measure-wide { max-width: 58ch; }

/* editorial split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.split--media-right .split__media { order: 2; }

/* refined link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  position: relative;
  width: fit-content;
}
.link-arrow::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(1); transform-origin: left;
  transition: transform .5s var(--ease);
}
.link-arrow .arw { transition: transform .4s var(--ease); }
.link-arrow:hover .arw { transform: translateX(6px); }
.link-arrow:hover::after { transform: scaleX(0); transform-origin: right; }

.link-underline {
  position: relative; padding-bottom: 2px;
}
.link-underline::after {
  content:""; position:absolute; left:0; bottom:0; height:1px; width:100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1.1rem, 2vw, 1.7rem) var(--gutter);
  color: var(--white);
  transition: background .5s var(--ease), color .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom-color: var(--line);
  padding-block: clamp(0.8rem, 1.4vw, 1.1rem);
}
.brand {
  font-family: var(--display);
  font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.6rem;
}
.brand .mark {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  outline: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}
.nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.5vw, 2.6rem); }
.nav a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.92;
}
.nav .cta {
  border: 1px solid currentColor; border-radius: 100px;
  padding: 0.55em 1.25em; opacity: 1;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.site-header.solid .nav .cta:hover { background: var(--ink); color: var(--paper); }
.site-header:not(.solid) .nav .cta:hover { background: var(--white); color: var(--ink); }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,15,12,0.42) 0%, rgba(20,15,12,0) 26%),
    linear-gradient(0deg, rgba(20,15,12,0.88) 4%, rgba(20,15,12,0.5) 40%, rgba(20,15,12,0.08) 72%);
}
.hero__inner { width: 100%; padding-bottom: clamp(3.5rem, 8vh, 7rem); padding-top: 8rem; }
.hero h1 { color: var(--white); max-width: 16ch; margin-top: 0.7rem; }
.hero .lead { color: rgba(255,253,249,0.9); margin-top: 1.6rem; max-width: 40ch; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; margin-top: 2.6rem; align-items: center; }
.hero .link-arrow { color: var(--white); }
.hero .link-arrow::after { background: var(--white); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(2rem,6vh,3.5rem);
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  writing-mode: vertical-rl; opacity: 0.8; display: flex; align-items: center; gap: 1rem;
}
.hero__scroll::after { content:""; width:1px; height:54px; background: currentColor; animation: dropline 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes dropline { 0%,100%{ transform: scaleY(0.3); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* ---------- intro / manifesto ---------- */
.manifesto { display: grid; grid-template-columns: 1fr 2.1fr; gap: clamp(2rem, 6vw, 6rem); }
.manifesto .lead em { font-style: italic; color: var(--accent-deep); }

/* ---------- feature (boarding / lessons) ---------- */
.feature__index {
  font-family: var(--display); font-size: 0.95rem; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 1.4rem; display: block;
}
.feature h2 { margin-bottom: 1.3rem; }
.feature p { margin-bottom: 2rem; }
.feature__media { position: relative; }
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.feature__cap { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.8rem; letter-spacing: 0.04em; }
.spec { display: grid; gap: 0; margin: 0 0 2.2rem; }
.spec li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 0; border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.spec li:last-child { border-bottom: 1px solid var(--line); }
.spec .k { color: var(--ink); font-weight: 500; }
.spec .v { color: var(--ink-faint); text-align: right; }

/* ---------- values row ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); }
.values__item { padding: clamp(1.5rem,3vw,2.5rem) clamp(1rem,2vw,1.8rem); border-left: 1px solid var(--line); }
.values__item:first-child { border-left: 0; padding-left: 0; }
.values__n { font-family: var(--display); font-size: clamp(2.4rem,4vw,3.4rem); color: var(--accent); line-height: 1; }
.values__t { margin-top: 1.1rem; font-weight: 600; letter-spacing: 0.02em; }
.values__d { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ink-faint); line-height: 1.6; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.quote { padding: clamp(1.6rem,3vw,2.6rem) clamp(1.2rem,2.4vw,2.4rem); border-left: 1px solid var(--line); }
.quote:first-child { border-left: 0; padding-left: 0; }
.quote__text { font-family: var(--display); font-weight: 500; font-style: italic; font-size: 1.28rem; line-height: 1.45; color: var(--ink); }
.quote__by { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.6rem; }
.quote__by img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote__name { font-weight: 600; font-size: 0.9rem; }
.quote__role { font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.04em; }

/* ---------- closing CTA (full-bleed image) ---------- */
.invite { position: relative; color: var(--white); text-align: center; }
.invite__media { position: absolute; inset: 0; z-index: -2; }
.invite__media img { width: 100%; height: 100%; object-fit: cover; }
.invite::after { content:""; position:absolute; inset:0; z-index:-1; background: rgba(26,20,15,0.52); }
.invite__inner { padding-block: clamp(6rem, 16vh, 11rem); display: flex; flex-direction: column; align-items: center; }
.invite h2 { color: var(--white); max-width: 18ch; }
.invite p { color: rgba(255,253,249,0.86); margin-top: 1.3rem; max-width: 46ch; }
.invite .link-arrow { color: var(--white); margin-top: 2.4rem; }
.invite .link-arrow::after { background: var(--white); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cabfae; padding-block: clamp(3.5rem,7vw,5.5rem) 2.5rem; }
.site-footer .brand { color: var(--paper); font-size: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: #8a7f6d; margin-bottom: 1.2rem; font-weight: 600; }
.footer-grid a, .footer-grid p { color: #cabfae; font-size: 0.95rem; line-height: 2; }
.footer-grid li a:hover { color: var(--paper); }
.footer-about { max-width: 34ch; margin-top: 1.2rem; color: #a99e8c; font-size: 0.95rem; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: clamp(3rem,6vw,4.5rem); padding-top: 1.8rem; border-top: 1px solid #3a3128; font-size: 0.82rem; color: #8a7f6d; letter-spacing: 0.04em; }

/* ---------- reveal animation (only when JS is present, so content is
   never hidden if JS fails or is disabled) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js [data-delay="1"]{ transition-delay:.08s } .js [data-delay="2"]{ transition-delay:.16s }
.js [data-delay="3"]{ transition-delay:.24s } .js [data-delay="4"]{ transition-delay:.32s }

/* hero load stagger */
.js .hero .reveal { transform: translateY(34px); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__scroll::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split, .manifesto { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--media-right .split__media { order: 0; }
  .values { grid-template-columns: 1fr 1fr; }
  .values__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .quotes { grid-template-columns: 1fr; }
  .quote { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.8rem; }
  .quote:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; justify-content: center; gap: 2rem;
    position: fixed; inset: 0; background: var(--paper); color: var(--ink); z-index: 60;
    text-align: center;
  }
  .nav.open a { font-size: 1.4rem; }
  .nav.open .cta { border-color: var(--ink); }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; z-index: 70; width: 30px; }
  .nav-toggle span { height: 1.5px; width: 100%; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
  .nav-toggle.active span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2){ opacity: 0; }
  .nav-toggle.active span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }
  .hero__scroll { display: none; }
  .values { grid-template-columns: 1fr; }
  .values__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .values__item:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Inner-page components (boarding / lessons / gallery / about / contact)
   ============================================================ */

/* page hero (shorter than home) */
.page-hero { position: relative; min-height: 60vh; display: flex; align-items: flex-end; color: var(--white); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(0deg, rgba(20,15,12,0.82) 0%, rgba(20,15,12,0.26) 58%, rgba(20,15,12,0.34) 100%); }
.page-hero__inner { padding-bottom: clamp(2.5rem,6vh,4.5rem); padding-top: 8rem; }
.page-hero h1 { color: var(--white); margin-top: 0.6rem; max-width: 18ch; }
.page-hero .lead { color: rgba(255,253,249,0.9); max-width: 48ch; margin-top: 1.1rem; font-weight: 500; }

/* generic page intro */
.page-intro { display: grid; grid-template-columns: 1fr 2.1fr; gap: clamp(2rem,6vw,6rem); }

/* editorial rows wrapper */
.rows { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }

/* amenities / two-column hairline list */
.cols-list { columns: 2; column-gap: clamp(2rem,5vw,4.5rem); }
.cols-list li { padding: 0.9rem 0; border-top: 1px solid var(--line); break-inside: avoid;
  display: flex; gap: 0.8rem; align-items: baseline; color: var(--ink); font-size: 0.98rem; }
.cols-list li::before { content: "–"; color: var(--accent); }

/* pricing table */
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { text-align: left; padding: 1.15rem 1rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.ptable thead th { border-top: 0; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.72rem; color: var(--ink-faint); font-weight: 600; }
.ptable td:first-child { padding-left: 0; } .ptable th:first-child { padding-left: 0; }
.ptable .num { text-align: right; font-variant-numeric: tabular-nums; }
.ptable tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.ptable .plan { font-family: var(--display); font-size: 1.1rem; color: var(--ink); }

/* accordion (FAQ) */
.accordion { border-top: 1px solid var(--line); max-width: 60ch; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 1.5rem 0; display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--display); font-size: 1.2rem; color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .pm { color: var(--accent); transition: transform .35s var(--ease); flex: none; }
.acc[open] summary .pm { transform: rotate(45deg); }
.acc__body { padding-bottom: 1.6rem; color: var(--ink-soft); }

/* gallery masonry */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1.7rem; margin-bottom: 2.8rem; }
.filters button { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
  padding-bottom: 5px; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.filters button.active, .filters button:hover { color: var(--ink); border-bottom-color: var(--ink); }
.gallery { columns: 3 300px; column-gap: 16px; }
.gallery figure { break-inside: avoid; margin: 0 0 16px; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; display: block; transition: transform .9s var(--ease); }
.gallery figure:hover img { transform: scale(1.045); }
.gallery figure.hide { display: none; }

/* team / people portraits */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem,3vw,2.4rem); }
.team--3 { grid-template-columns: repeat(3, 1fr); }
.member__photo { aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius); margin-bottom: 1.1rem; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.member:hover .member__photo img { transform: scale(1.05); }
.member__name { font-family: var(--display); font-size: 1.3rem; }
.member__role { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0.35rem 0 0.8rem; }
.member__bio { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; }

/* contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 2.5rem; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 0.6rem; }
.field input, .field select, .field textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.7rem 0; font: inherit; color: var(--ink); border-radius: 0; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 0.6em; background: var(--ink); color: var(--paper);
  padding: 1em 2.1em; border-radius: 100px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; transition: background .4s var(--ease), transform .4s var(--ease); width: fit-content; }
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn .arw { transition: transform .4s var(--ease); }
.btn:hover .arw { transform: translateX(5px); }

/* contact detail block */
.cdetail { display: grid; gap: 1.8rem; }
.cdetail .k { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 0.35rem; }
.cdetail .v { font-family: var(--display); font-size: 1.25rem; color: var(--ink); }
.cdetail .v a { transition: color .3s; }
.cdetail .v a:hover { color: var(--accent); }

/* responsive — inner components */
@media (max-width: 900px) {
  .page-intro { grid-template-columns: 1fr; gap: 2rem; }
  .team { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cols-list { columns: 1; }
}
@media (max-width: 560px) {
  .team, .team--3 { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2 160px; column-gap: 10px; }
  .gallery figure { margin-bottom: 10px; }
}

/* ============================================================
   v2 — LIFT: depth, atmosphere, color contrast, motion
   ============================================================ */
:root {
  --clay:      #c0703f;   /* desert terracotta — warm pop / secondary accent */
  --clay-soft: #d68a59;
  --sand:      #ece0c9;   /* deeper cream so section alternation actually reads */
  --shadow-img:  0 28px 55px -26px rgba(48,32,18,0.55), 0 10px 24px -18px rgba(48,32,18,0.40);
  --shadow-soft: 0 20px 44px -30px rgba(48,32,18,0.50);
  --shadow-head: 0 10px 30px -12px rgba(36,29,24,0.18);
  /* tighter vertical rhythm — less blank space */
  --section: clamp(4rem, 8.5vw, 7.5rem);
}

/* deeper alt fill for visible scroll contrast */
.section--alt { background: var(--sand); }

/* film grain — subtle tactile texture over the whole page */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- elevation on imagery (lift off the page) ----------
   Shadow on the container (renders outside, never clipped);
   overflow:hidden masks the inner image-zoom reveal. */
.feature__media { box-shadow: var(--shadow-img); overflow: hidden; border-radius: var(--radius); }
.member__photo { box-shadow: var(--shadow-img); }
.gallery figure { box-shadow: var(--shadow-soft); }
.ptable, .accordion { filter: none; }
.site-header.solid { box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(36,29,24,0.5); }

/* ---------- full-bleed media: ken-burns + parallax overscan ---------- */
.hero, .page-hero, .invite { overflow: hidden; }
.hero__media, .page-hero__media, .invite__media { top: -8%; bottom: -8%; height: auto; will-change: transform; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.js .hero__media img, .js .page-hero__media img {
  animation: kenburns 7s var(--ease) both; transform-origin: 50% 42%;
}

/* ---------- richer reveals ---------- */
.js .reveal { transform: translateY(30px); }
/* image-reveal zoom: inner media eases from slightly scaled to rest */
.js .reveal .feature__media img,
.js .reveal.member .member__photo img { transform: scale(1.1); transition: transform 1.3s var(--ease); }
.js .reveal.in .feature__media img,
.js .reveal.in.member .member__photo img { transform: scale(1); }
/* a touch more stagger range */
.js [data-delay="3"] { transition-delay: .24s }
.js [data-delay="4"] { transition-delay: .34s }

/* ---------- contrasting DARK stat band ---------- */
.section--dark { position: relative; overflow: hidden; background: var(--ink); color: #e8ddca; }
.section--dark::before {            /* warm atmospheric glow */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 70% at 82% 8%, rgba(192,112,63,0.30), transparent 60%),
    radial-gradient(46% 80% at 10% 100%, rgba(108,117,81,0.28), transparent 62%);
}
.section--dark > * { position: relative; z-index: 1; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark p, .section--dark .values__d { color: #c0b39c; }
.section--dark .eyebrow { color: var(--clay-soft); }
.section--dark .values__n { color: var(--clay-soft); }
.section--dark .values__item { border-color: rgba(255,253,249,0.14); }
.section--dark .values__t { color: var(--paper); }
.section--dark .rule { background: rgba(255,253,249,0.16); }
.section--dark .link-arrow { color: var(--paper); }
.section--dark .link-arrow::after { background: var(--paper); }

/* slightly bolder stat numerals for presence */
.values__n { font-weight: 600; letter-spacing: -0.02em; }

/* ---------- header brand mark depth ---------- */
.brand .mark { box-shadow: 0 4px 12px -4px rgba(0,0,0,0.4); }

@media (prefers-reduced-motion: reduce) {
  .js .hero__media img, .js .page-hero__media img { animation: none; }
  .hero__media, .page-hero__media, .invite__media { top: 0; bottom: 0; transform: none !important; }
}

/* dark-section overrides for table / list / accordion / spec content */
.section--dark .feature__index { color: var(--clay-soft); }
.section--dark .ptable th, .section--dark .ptable td { color: #c0b39c; border-color: rgba(255,253,249,0.14); }
.section--dark .ptable thead th { color: #9a8e79; }
.section--dark .ptable .plan { color: var(--paper); }
.section--dark .ptable tbody tr:last-child td { border-color: rgba(255,253,249,0.14); }
.section--dark .ptable .num { color: var(--paper); }
.section--dark .cols-list li { color: #e8ddca; border-color: rgba(255,253,249,0.14); }
.section--dark .cols-list li::before { color: var(--clay-soft); }
.section--dark .acc { border-color: rgba(255,253,249,0.14); }
.section--dark .acc summary { color: var(--paper); }
.section--dark .acc summary .pm { color: var(--clay-soft); }
.section--dark .acc__body { color: #c0b39c; }
.section--dark .accordion { border-color: rgba(255,253,249,0.14); }
.section--dark .spec li { border-color: rgba(255,253,249,0.14); }
.section--dark .spec .k { color: var(--paper); }
.section--dark .spec .v { color: #9a8e79; }

/* ============================================================
   v3 — kill lone text blocks: centered statements + stacked headers
   ============================================================ */
/* centered manifesto / intro statement (no lopsided blank column) */
.statement__inner { max-width: 50ch; margin-inline: auto; text-align: center; }
.statement__inner .eyebrow { color: var(--accent); }
.statement__text {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.75rem); line-height: 1.3;
  letter-spacing: -0.01em; color: var(--ink); margin-top: 1.5rem;
}
.statement__text em { font-style: italic; color: var(--accent-deep); }
.statement__sig {
  font-family: var(--display); font-style: italic; font-size: 1.2rem;
  color: var(--ink-faint); margin-top: 1.9rem;
}
.section--dark .statement__text { color: var(--paper); }
.section--dark .statement__text em { color: var(--clay-soft); }

/* section headers: stack eyebrow above heading — no empty side column */
.page-intro { display: block; }
.page-intro > .eyebrow { display: block; margin-bottom: 0.9rem; }

/* v3.1 — widen statement so it fills the row (ch measured against tiny base
   font was far too narrow); tune size for a confident 3–4 line block */
.statement__inner { max-width: 52rem; }
.statement__text { font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1.26; }

/* v3.2 — value items without a numeral: title leads, no stray top gap */
.values__item > .values__t:first-child { margin-top: 0; }
