/* =====================================================================
   Sacred Valley of Santa Barbara — landing page
   Aesthetic: sacred medicine, warm & luminous, elevated & spiritual.
   Cormorant Garamond (display serif) + Montserrat (letter-spaced sans).
   Tuned to the Robin Willett sound-healing / sacred-medicine brand.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* palette — warm cream, amber gold, espresso (no cool tones) */
  --ivory:      #f4eee1;
  --ivory-warm: #ede4d2;
  --limestone:  #e2d7c1;
  --oak:        #8a6a44;
  --oak-deep:   #5f452e;
  --soft-black: #2a2015;
  --gold:       #a9803f;
  --gold-lite:  #c9a869;
  --night:      #2b2114;
  --night-deep: #1d150c;

  --text:       #38301f;
  --text-soft:  #6d6350;
  --line:       rgba(138, 106, 68, 0.24);

  /* type */
  --serif: "Cormorant Garamond", "Cormorant", "Hoefler Text", Georgia, serif;
  --sans:  "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;

  /* spacing / rhythm */
  --wrap:   1180px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 12vw, 10rem);

  --ease: cubic-bezier(0.4, 0.05, 0.1, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* ensure the hidden attribute wins over element display rules (e.g. .btn) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typographic elements ---------- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--oak);
  margin-bottom: 1.4rem;
}
.eyebrow--light { color: var(--gold-lite); }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--soft-black);
}

.rule {
  width: 64px;
  height: 1px;
  margin-top: 3rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1.15em 2.6em;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background .5s var(--ease), color .5s var(--ease),
              border-color .5s var(--ease), transform .5s var(--ease);
}
/* primary: warm gold fill (legible on both cream and dark grounds) */
.btn--gold {
  background: var(--gold);
  color: var(--ivory);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--oak-deep); border-color: var(--oak-deep); color: var(--ivory); }
/* elegant light outline for photographic / dark grounds (the reference hero look) */
.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(244, 238, 225, 0.6);
}
.btn--ghost:hover { background: rgba(244, 238, 225, 0.14); border-color: var(--ivory); }
/* outline on light grounds */
.btn--outline {
  background: transparent;
  color: var(--oak-deep);
  border-color: var(--oak);
}
.btn--outline:hover { background: var(--oak-deep); color: var(--ivory); border-color: var(--oak-deep); }
.btn--full { width: 100%; }

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .5s var(--ease), box-shadow .5s var(--ease),
              padding .5s var(--ease);
  padding: 1.6rem 0;
}
.header-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ivory); }
.brand-mark { display: flex; transition: color .5s var(--ease); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 0.32rem;
  opacity: 0.82;
}

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav > a {
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  padding-block: 0.3rem;
  transition: color .4s var(--ease);
}
.nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid rgba(246, 241, 231, 0.45);
  border-radius: 2px;
  padding: 0.7em 1.35em !important;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ivory); }

/* scrolled state (added via JS) */
.site-header.scrolled {
  background: rgba(246, 241, 231, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.95rem 0;
}
.site-header.scrolled .brand,
.site-header.scrolled .nav > a { color: var(--soft-black); }
.site-header.scrolled .brand-mark { color: var(--gold); }
.site-header.scrolled .nav-cta { border-color: var(--gold); color: var(--oak); }
.site-header.scrolled .nav-cta:hover { color: var(--ivory); }
.site-header.scrolled .nav-toggle span { background: var(--soft-black); }

/* mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--ivory);
  transition: transform .4s var(--ease), opacity .3s var(--ease), background .4s var(--ease);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem var(--gutter) 6rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-emblem {
  display: block;
  width: clamp(72px, 9vw, 104px);
  height: auto;
  margin: 0 auto 1.6rem;
  color: rgba(244, 238, 225, 0.9);
}
.hero-emblem svg { width: 100%; height: auto; display: block; }
.hero-lede em { color: var(--gold-lite); font-style: italic; }
.page-hero-lede em { color: var(--gold-lite); font-style: italic; }
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: #131b2c url("../assets/home-hero.jpg") center 52% / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 26s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.12) translateY(-1.5%); }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28,20,12,0.5) 0%, rgba(28,20,12,0.1) 34%, rgba(28,20,12,0.06) 55%, rgba(24,16,9,0.5) 100%),
    radial-gradient(120% 90% at 50% 46%, rgba(20,13,7,0.42), transparent 62%);
}

.hero-content { max-width: 880px; margin-inline: auto; }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--ivory);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.35);
}
.hero-title-main { display: block; font-size: clamp(3rem, 9vw, 6.4rem); }
.hero-title-sub {
  display: block;
  font-size: clamp(1.1rem, 3vw, 1.9rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--gold-lite);
  margin-top: 0.5rem;
}
.hero-lede {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  color: var(--ivory);
  line-height: 1.4;
  max-width: 40ch;
  margin: 0 auto 1.4rem;
}
.hero-body {
  color: rgba(244, 238, 225, 0.85);
  font-size: 1rem;
  max-width: 52ch;
  margin: 0 auto 2.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.hero-scroll {
  position: absolute;
  bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  color: rgba(246, 241, 231, 0.75);
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.hero-scroll-dot { animation: scrollDot 2s var(--ease) infinite; }
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* =====================================================================
   STORY (What is Sacred Valley)
   ===================================================================== */
.story {
  background: var(--ivory);
  padding-block: var(--section-y);
}
.story-wrap { max-width: var(--wrap-narrow); text-align: center; }
.story-wrap .eyebrow { display: inline-block; }
.story-lead {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  line-height: 1.2;
  color: var(--soft-black);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.story-body {
  display: grid;
  gap: 1.4rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-soft);
  max-width: 58ch;
  margin-inline: auto;
}
.story .rule { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); width: 90px; }

/* =====================================================================
   PILLARS
   ===================================================================== */
.pillars {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-warm) 100%);
  padding-block: var(--section-y);
}
.pillars-head { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.pillars-head .eyebrow { display: inline-block; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.pillar {
  position: relative;
  text-align: center;
  padding: clamp(2.2rem, 4vw, 3.4rem) 1.6rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .6s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -30px rgba(33, 29, 23, 0.4);
  border-color: rgba(176, 141, 79, 0.4);
}
.pillar:hover::before { transform: scaleX(1); }
.pillar-num {
  display: block;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
.pillar-icon { display: inline-flex; color: var(--oak); margin-bottom: 1.5rem; }
.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--soft-black);
  margin-bottom: 0.7rem;
}
.pillar p { color: var(--text-soft); font-size: 0.98rem; max-width: 26ch; margin-inline: auto; }

/* =====================================================================
   EXPERIENCE GRID
   ===================================================================== */
.experiences {
  background: var(--ivory-warm);
  padding-block: var(--section-y);
}
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
}
.exp-tile {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
  cursor: default;
}
.exp-art { position: absolute; inset: 0; z-index: -2; }
.exp-art svg { width: 100%; height: 100%; }
.exp-tile::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 16, 12, 0.72) 100%);
  transition: background .55s var(--ease);
}
.exp-tile:hover::after { background: linear-gradient(180deg, rgba(20,16,12,0.15) 20%, rgba(20, 16, 12, 0.82) 100%); }
.exp-art { transition: transform .9s var(--ease); }
.exp-tile:hover .exp-art { transform: scale(1.06); }

.exp-caption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 1.4rem 1.5rem;
  color: var(--ivory);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.exp-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.75;
}
.exp-caption h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.15;
  text-shadow: 0 1px 20px rgba(0,0,0,0.4);
}
.exp-caption--dark { color: var(--soft-black); }
.exp-caption--dark .exp-caption h3 { text-shadow: none; }

/* =====================================================================
   VISION (night-sky note)
   ===================================================================== */
.vision {
  position: relative;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  padding-block: clamp(6rem, 13vw, 11rem);
  overflow: hidden;
  isolation: isolate;
}
.vision-sky { position: absolute; inset: 0; z-index: -1; opacity: 0.9; }
.vision-wrap { max-width: var(--wrap-narrow); text-align: center; }
.vision-wrap .eyebrow { display: inline-block; }
.vision-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.36;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin-bottom: 2rem;
}
.vision-attribution {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-lite);
}

/* =====================================================================
   INQUIRY
   ===================================================================== */
.inquiry {
  background: var(--ivory);
  padding-block: var(--section-y);
}
.inquiry-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.inquiry-intro .eyebrow { display: block; }
.inquiry-intro .section-title { margin-bottom: 1.4rem; }
.inquiry-copy { color: var(--text-soft); font-size: 1.06rem; max-width: 42ch; margin-bottom: 2.2rem; }
.inquiry-list {
  list-style: none; padding: 0;
  display: grid; gap: 0.85rem;
}
.inquiry-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--oak-deep);
  font-size: 0.98rem;
}
.inquiry-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* =====================================================================
   FORMS
   ===================================================================== */
.form { position: relative; }
.field { margin-bottom: 1.35rem; position: relative; }
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oak);
  margin-bottom: 0.55rem;
}
.field .optional { text-transform: none; letter-spacing: 0; opacity: 0.6; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--ivory-warm);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.95em 1em;
  transition: border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a5a40' fill='none' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1em center;
  padding-right: 2.6em;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--ivory);
  box-shadow: 0 0 0 3px rgba(176, 141, 79, 0.14);
}
.field.invalid input,
.field.invalid select {
  border-color: #a8503a;
  background: #f7ece7;
}
.field-error {
  display: block;
  font-size: 0.78rem;
  color: #a8503a;
  margin-top: 0.4rem;
  min-height: 0;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.field.invalid .field-error { opacity: 1; transform: translateY(0); }

.form-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 1rem;
  font-style: italic;
}

/* success states */
.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
  animation: fadeUp .7s var(--ease) both;
}
.form-success-mark { display: inline-flex; color: var(--gold); margin-bottom: 1.2rem; }
.form-success-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--soft-black);
  margin-bottom: 0.5rem;
}
.form-success-body { color: var(--text-soft); max-width: 34ch; margin-inline: auto; }
.form-success--inline { padding: 1.4rem 1rem; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   JOIN + FOOTER
   ===================================================================== */
.join {
  background: linear-gradient(180deg, var(--night-deep) 0%, #17110a 100%);
  color: var(--ivory);
  padding-top: var(--section-y);
}
.join-wrap { max-width: var(--wrap-narrow); text-align: center; padding-bottom: clamp(4rem, 8vw, 6rem); }
.join-wrap .eyebrow { display: inline-block; }
.join-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  color: var(--ivory);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.join-copy { color: rgba(246, 241, 231, 0.78); max-width: 40ch; margin: 0 auto 2.4rem; font-size: 1.05rem; }

.join-form { max-width: 520px; margin-inline: auto; }
.join-input-row { display: flex; gap: 0.7rem; align-items: flex-start; }
.field--inline { flex: 1; margin-bottom: 0; text-align: left; }
.join-form input {
  background: rgba(246, 241, 231, 0.06);
  border-color: rgba(246, 241, 231, 0.22);
  color: var(--ivory);
}
.join-form input::placeholder { color: rgba(246, 241, 231, 0.5); }
.join-form input:focus {
  background: rgba(246, 241, 231, 0.1);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 79, 0.18);
}
.join-form .btn { flex-shrink: 0; }
.join-form .field-error { color: #e0a08f; }
.join-form .form-success-title { color: var(--ivory); }
.join-form .form-success-body { color: rgba(246, 241, 231, 0.75); }

/* footer */
.site-footer { background: #17110a; border-top: 1px solid rgba(246, 241, 231, 0.12); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.footer-brand { display: flex; flex-direction: column; align-items: center; color: var(--ivory); }
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-brand .brand-sub { opacity: 0.7; margin-top: 0.4rem; }
.footer-tag { font-family: var(--serif); font-style: italic; color: rgba(246,241,231,0.7); font-size: 1.05rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; margin-top: 0.4rem; }
.footer-nav a {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(246, 241, 231, 0.7); transition: color .4s var(--ease);
}
.footer-nav a:hover { color: var(--gold-lite); }
.footer-fine { font-size: 0.75rem; color: rgba(246, 241, 231, 0.42); letter-spacing: 0.04em; margin-top: 0.6rem; }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
/* stagger children within a group */
.hero-content .reveal.in:nth-child(1) { transition-delay: .05s; }
.hero-content .reveal.in:nth-child(2) { transition-delay: .18s; }
.hero-content .reveal.in:nth-child(3) { transition-delay: .32s; }
.hero-content .reveal.in:nth-child(4) { transition-delay: .46s; }
.hero-content .reveal.in:nth-child(5) { transition-delay: .6s; }
.pillar:nth-child(2) { transition-delay: .12s; }
.pillar:nth-child(3) { transition-delay: .24s; }
.exp-tile:nth-child(2), .exp-tile:nth-child(4), .exp-tile:nth-child(6) { transition-delay: .1s; }
.exp-tile:nth-child(3), .exp-tile:nth-child(5) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-media, .hero-scroll-dot { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header .nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(20, 27, 43, 0.97);
    backdrop-filter: blur(12px);
  }
  .site-header .nav.open > a { color: var(--ivory); font-size: 1.1rem; }
  .site-header.scrolled .nav.open > a { color: var(--ivory); }

  .nav-toggle.open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

  .pillar-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .inquiry-wrap { grid-template-columns: 1fr; }
  .pillar:nth-child(n) { transition-delay: 0s; }
}

@media (max-width: 560px) {
  .hero { padding-top: 7rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .exp-grid { grid-template-columns: 1fr; }
  .join-input-row { flex-direction: column; }
  .join-form .btn { width: 100%; }
  .exp-tile { aspect-ratio: 16 / 10; }
}

/* =====================================================================
   INTERIOR PAGES
   Shared components for Sanctuary / Retreats / Farm / Contact.
   ===================================================================== */

/* active nav link (current page) */
.nav a[aria-current="page"] { color: var(--gold-lite); }
.site-header.scrolled .nav a[aria-current="page"] { color: var(--gold); }

/* ---------- Page hero banner ----------
   NOTE: the coded art in .page-hero-media is a swap target. To use a real
   photograph, replace the inline <svg> with a background image on this element,
   e.g. background: #131b2c url("assets/<photo>.jpg") center/cover no-repeat; */
.page-hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 11rem var(--gutter) clamp(4rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media svg { width: 100%; height: 100%; display: block; }
.page-hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(26,18,10,0.5) 0%, rgba(26,18,10,0.14) 40%, rgba(20,13,7,0.6) 100%),
    radial-gradient(110% 90% at 50% 50%, rgba(18,12,6,0.36), transparent 62%);
}
.page-hero-content { max-width: 820px; margin-inline: auto; }
.page-hero-lede { margin-inline: auto; }
.page-hero-title {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--ivory);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.35);
}
.page-hero-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  color: rgba(246, 241, 231, 0.9);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  max-width: 44ch;
  margin-top: 1.3rem;
}

/* ---------- Generic content sections ---------- */
.page-section { padding-block: var(--section-y); }
.page-section--tint { background: var(--ivory-warm); }
.page-section--limestone { background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-warm) 100%); }

.section-head { max-width: var(--wrap-narrow); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { display: inline-block; }
.section-intro {
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  color: var(--text-soft);
  max-width: 60ch;
  margin-top: 1.4rem;
}
.section-head--center .section-intro { margin-inline: auto; }
.prose { max-width: 62ch; }
.prose p { color: var(--text-soft); font-size: clamp(1.02rem, 1.5vw, 1.15rem); }
.prose p + p { margin-top: 1.2rem; }

/* ---------- Split rows (text + media) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}
.split + .split { margin-top: clamp(3.5rem, 8vw, 7rem); }
.split--reverse .split-media { order: -1; }
.split-text h2 { margin-bottom: 1.2rem; }
.split-text .eyebrow { display: block; }

/* media frame — coded-art placeholder, swap target for real photography */
.media-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(33, 29, 23, 0.55);
  isolation: isolate;
}
.media-frame svg { width: 100%; height: 100%; display: block; }
.media-frame--wide { aspect-ratio: 3 / 2; }
.media-caption {
  position: absolute; left: 0; bottom: 0;
  padding: 1rem 1.2rem;
  color: var(--ivory);
  font-family: var(--serif); font-style: italic; font-size: 0.95rem;
  text-shadow: 0 1px 16px rgba(0,0,0,0.5);
}

/* ---------- Offer / feature cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.1rem, 2.2vw, 1.8rem);
}
.card-grid--three { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(1.8rem, 3.2vw, 2.8rem);
  overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease);
}
.feature-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px -32px rgba(33, 29, 23, 0.42);
  border-color: rgba(176, 141, 79, 0.4);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { display: inline-flex; color: var(--oak); margin-bottom: 1.3rem; }
.feature-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  color: var(--soft-black);
  margin-bottom: 0.6rem;
}
.feature-card p { color: var(--text-soft); font-size: 0.99rem; }
.card-tag {
  display: inline-block;
  font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.card-tag--soon { color: var(--text-soft); opacity: 0.8; }

/* ---------- Simple numbered / listed steps ---------- */
.steps { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); grid-template-columns: repeat(3, 1fr); }
.step-num {
  font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  color: var(--gold); display: block; margin-bottom: 0.7rem;
  padding-bottom: 0.7rem; border-bottom: 1px solid var(--line);
}
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--soft-black); margin-bottom: 0.5rem; }
.step p { color: var(--text-soft); font-size: 0.97rem; }

/* ---------- Quote / intention band ---------- */
.quote-band {
  position: relative;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  padding-block: clamp(5rem, 11vw, 9rem);
  overflow: hidden; isolation: isolate;
}
.quote-band .vision-sky { position: absolute; inset: 0; z-index: -1; opacity: 0.9; }
.quote-band-inner { max-width: var(--wrap-narrow); margin-inline: auto; text-align: center; }
.quote-band .eyebrow { display: inline-block; }
.quote-band blockquote {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.36; letter-spacing: -0.01em;
  color: var(--ivory); margin-bottom: 1.6rem;
}
.quote-band cite {
  font-style: normal;
  font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-lite);
}

/* ---------- Closing CTA band (bridges into footer) ---------- */
.cta-band {
  background: linear-gradient(180deg, var(--night) 0%, #17110a 100%);
  color: var(--ivory);
  text-align: center;
  padding-block: clamp(4.5rem, 9vw, 7rem);
}
.cta-band .eyebrow { display: inline-block; color: var(--gold-lite); }
.cta-band h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  color: var(--ivory); line-height: 1.08; margin-bottom: 1.4rem;
}
.cta-band p { color: rgba(246, 241, 231, 0.78); max-width: 46ch; margin: 0 auto 2.2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Facts / at-a-glance list ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.fact { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.fact dt { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--oak); margin-bottom: 0.5rem; }
.fact dd { font-family: var(--serif); font-size: 1.15rem; color: var(--soft-black); }

/* ---------- Contact details ---------- */
.contact-details { display: grid; gap: 1.6rem; }
.contact-detail { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.contact-detail dt { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--oak); margin-bottom: 0.4rem; }
.contact-detail dd { color: var(--text-soft); font-size: 1.02rem; }
.contact-detail a { color: var(--oak-deep); border-bottom: 1px solid var(--line); transition: border-color .4s var(--ease); }
.contact-detail a:hover { border-color: var(--gold); }

/* ---------- Real imagery ---------- */
.exp-art img,
.media-frame img,
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-media { background: #131b2c center/cover no-repeat; }

/* offering cards with a photo header */
.feature-card--media { padding: 0; overflow: hidden; }
.feature-card--media::before { display: none; }
.feature-card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--limestone);
}
.feature-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.feature-card--media:hover .feature-card-media img { transform: scale(1.05); }
.feature-card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0) 55%, rgba(20,16,12,0.4) 100%);
}
.feature-card--media .card-tag {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  margin: 0; padding: 0.4rem 0.75rem; border: 0; border-radius: 2px;
  background: rgba(20, 16, 12, 0.55); color: var(--ivory);
  backdrop-filter: blur(6px);
}
.feature-card--media .card-tag--soon { color: var(--ivory); opacity: 0.92; }
.feature-card-body { padding: clamp(1.7rem, 3vw, 2.5rem); }

/* footer seal (logo emblem) */
.footer-seal {
  width: clamp(112px, 16vw, 148px);
  height: auto;
  border-radius: 50%;
  margin-bottom: 0.4rem;
  box-shadow: 0 0 0 1px rgba(203, 171, 110, 0.2), 0 18px 40px -22px rgba(0,0,0,0.7);
}

/* ---------- Interior responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse .split-media { order: 0; }
  .card-grid, .card-grid--three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .page-hero { min-height: 56vh; padding-top: 8rem; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
}
