/* ============================================================
   RABBIT & SPARROW — brand tokens
   ============================================================ */
:root {
  --charcoal: #2C2C2C;
  --charcoal-deep: #232120;
  --terracotta: #B8704B;
  --gold: #C4A265;
  --sage: #7A8B6F;
  --cream: #F5F0E8;
  --stone: #E8E0D4;
  --ink-on-dark: #EFE9DE;
  --muted-on-dark: rgba(239, 233, 222, 0.62);
  --muted-on-light: rgba(44, 44, 44, 0.72);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", -apple-system, sans-serif;

  --max-width: 1200px;
  --nav-h: 72px;
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
*:focus:not(:focus-visible) { outline: none; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: rgba(184, 112, 75, 0.25); color: var(--charcoal); }
::-moz-selection { background: rgba(184, 112, 75, 0.25); color: var(--charcoal); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }

/* Type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h1 em, h2 em { font-style: italic; color: var(--gold); }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 2px;
  transition: background 0.35s var(--ease-lux), color 0.35s var(--ease-lux), border-color 0.35s var(--ease-lux), transform 0.35s var(--ease-lux), box-shadow 0.35s var(--ease-lux);
}
.btn-primary { background: var(--terracotta); color: var(--cream); border: 1px solid var(--terracotta); }
.btn-primary:hover { background: #a05e3d; border-color: #a05e3d; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(184, 112, 75, 0.28); }
.btn-primary:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn-secondary { background: transparent; color: var(--cream); border: 1px solid rgba(245, 240, 232, 0.5); }
.btn-secondary:hover { border-color: var(--cream); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15); }
.btn-secondary:active { transform: translateY(0) scale(0.98); box-shadow: none; }

.cta-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(196, 162, 101, 0.4);
  transition: border-color 0.3s var(--ease-lux), color 0.3s var(--ease-lux), transform 0.3s var(--ease-lux);
}
.cta-link:hover { color: var(--ink-on-dark); border-color: var(--gold); transform: translateX(4px); }

.brochure-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  padding: 10px 20px;
  border: 1px solid rgba(196, 162, 101, 0.5);
  border-radius: 2px;
  transition: background 0.3s var(--ease-lux), border-color 0.3s var(--ease-lux);
}
.brochure-link:hover { background: rgba(196, 162, 101, 0.18); border-color: var(--gold); }
.entry-content .brochure-link {
  color: var(--charcoal);
  border-color: var(--terracotta);
  margin-bottom: 16px;
}
.entry-content .brochure-link:hover { background: rgba(184, 112, 75, 0.1); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux); }
.reveal.in { opacity: 1; transform: none; }

/* Hero stagger cascade */
.hero-content .reveal:nth-child(1) { transition-delay: 0.12s; }
.hero-content .reveal:nth-child(2) { transition-delay: 0.32s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.52s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.72s; }

/* Shared subpage styles */
.nav-links a.active { color: var(--gold); }
.page-header { padding: calc(var(--nav-h) + 80px) 0 60px; background: var(--charcoal-deep); color: var(--cream); }
.page-header .container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.page-header h1 { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--cream); }
.page-header-sub { max-width: 50ch; margin-top: 16px; color: var(--muted-on-dark); font-size: 18px; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s var(--ease-lux), box-shadow 0.4s var(--ease-lux);
}
.site-nav.solid { background: rgba(35, 33, 32, 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(196, 162, 101, 0.18); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-wordmark { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: 0.02em; color: var(--cream); text-decoration: none; white-space: nowrap; }
.nav-wordmark .amp { color: var(--gold); font-style: italic; }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; letter-spacing: 0.06em; color: rgba(245, 240, 232, 0.82); text-decoration: none; transition: color 0.3s; }
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream); text-decoration: none;
  padding: 10px 20px; border: 1px solid var(--gold); border-radius: 2px;
  transition: background 0.3s var(--ease-lux);
}
.nav-cta:hover { background: rgba(196, 162, 101, 0.18); box-shadow: 0 0 20px rgba(196, 162, 101, 0.12); }
.nav-dropdown-wrap { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: rgba(35, 33, 32, 0.96); backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 162, 101, 0.22); border-radius: 4px;
  padding: 12px 0; min-width: 200px;
  list-style: none; opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease-lux), transform 0.25s var(--ease-lux);
  transform: translateX(-50%) translateY(6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.nav-dropdown-wrap:hover .nav-dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown li { padding: 0; }
.nav-dropdown a { display: block; padding: 8px 22px; font-size: 13px; white-space: nowrap; color: var(--muted-on-dark); transition: color 0.2s, background 0.2s; }
.nav-dropdown a:hover { color: var(--cream); background: rgba(196, 162, 101, 0.12); }

.nav-hamburger { display: none; background: none; border: none; cursor: pointer; width: 34px; height: 26px; position: relative; }
.nav-hamburger span { position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--cream); transition: transform 0.3s; }
.nav-hamburger span:first-child { top: 8px; }
.nav-hamburger span:last-child { bottom: 8px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--charcoal-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease-lux);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 28px; color: var(--cream); text-decoration: none; }
.mobile-menu .btn-primary { font-family: var(--font-body); font-size: 15px; margin-top: 12px; }
.mobile-menu-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: var(--cream); font-size: 40px; cursor: pointer; line-height: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: hero-drift 14s var(--ease-lux) forwards; }
@keyframes hero-drift { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,33,32,0.58) 0%, rgba(35,33,32,0.22) 40%, rgba(35,33,32,0.75) 100%); }
.hero-content { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 120px 24px 80px; width: 100%; color: var(--cream); }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 26px; }
.hero h1 { max-width: 15ch; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25); }
.hero-sub { max-width: 46ch; margin: 26px 0 38px; font-size: 18px; color: rgba(245, 240, 232, 0.85); }

/* ============================================================
   STORY
   ============================================================ */
.story { padding: 130px 0 110px; background: var(--cream); }
.story h2 { max-width: 18ch; }
.story-body { margin-top: 34px; max-width: 62ch; color: var(--muted-on-light); }
.story-body p + p { margin-top: 18px; }
.story-signature { margin-top: 40px; font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--terracotta); }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 70px; padding-top: 44px; border-top: 1px solid rgba(196, 162, 101, 0.45); }
.stat-number { display: block; font-family: var(--font-display); font-size: 52px; font-weight: 500; color: var(--charcoal); line-height: 1; letter-spacing: -0.02em; transition: opacity 0.4s ease, transform 0.4s ease; }
.stat-label { display: block; margin-top: 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-light); transition: opacity 0.4s ease; }
.stat.is-waiting .stat-number { opacity: 0.2; }
.stat.is-waiting .stat-label { opacity: 0.2; }
.stat.is-counting .stat-number { opacity: 1; transform: scale(1.08); color: var(--terracotta); }
.stat.is-done .stat-number { opacity: 1; transform: scale(1); }

/* ============================================================
   CHAPTERS — the signature: pinned photo pane, scrolling beats
   ============================================================ */
.chapters { background: var(--charcoal-deep); color: var(--ink-on-dark); }
.chapters-intro { max-width: var(--max-width); margin: 0 auto; padding: 120px 24px 30px; }
.chapters-hint { margin-top: 14px; font-size: 14px; letter-spacing: 0.04em; color: var(--muted-on-dark); }

.chapter {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 120px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.chapter.alt { grid-template-columns: 1fr 1.15fr; }
.chapter.alt .chapter-media { order: 2; }
.chapter.alt .chapter-copy { order: 1; }

.chapter-media { position: sticky; top: calc(var(--nav-h) + 24px); }
.chapter-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 60px rgba(184, 112, 75, 0.06);
}
.chapter-frame::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(196, 162, 101, 0.28);
  pointer-events: none;
}
.chapter-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1s var(--ease-lux), transform 1.6s var(--ease-lux);
}
.chapter-frame img.is-active { opacity: 1; transform: scale(1); }
.chapter-count {
  position: absolute; bottom: 14px; right: 16px; z-index: 3;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em;
  color: rgba(245, 240, 232, 0.85);
  background: rgba(35, 33, 32, 0.55); backdrop-filter: blur(6px);
  padding: 5px 12px; border-radius: 2px;
}
.chapter-count .current { color: var(--gold); }

.chapter-head { padding: 8px 0 30vh; }
.chapter-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.chapter-head h3 { font-size: clamp(2rem, 4vw, 3rem); color: var(--ink-on-dark); }

.beat { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; }
.beat p { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.75; color: var(--muted-on-dark); max-width: 46ch; transition: color 0.6s var(--ease-lux); }
.beat.active p { color: var(--ink-on-dark); }
.beat:last-of-type { min-height: 60vh; }

/* ============================================================
   START SMALLER — the priced ladder in
   ============================================================ */
.start-smaller { padding: 130px 0; background: var(--cream); }
.start-sub { max-width: 56ch; margin-top: 18px; color: var(--muted-on-light); }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 60px; }
.entry-card { background: var(--stone); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(196, 162, 101, 0.35); transition: transform 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux); }
.entry-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1); }
.entry-media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.entry-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-lux); }
.entry-card:hover .entry-media img { transform: scale(1.045); }
.entry-slideshow img { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease-lux), transform 1.4s var(--ease-lux); }
.entry-slideshow img.is-active { opacity: 1; }
.entry-content { padding: 34px 32px 38px; display: flex; flex-direction: column; flex: 1; }
.entry-content h3 { font-size: 30px; }
.entry-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracotta); margin: 6px 0 16px; }
.entry-content > p:not(.entry-tag):not(.entry-price) { color: var(--muted-on-light); }
.entry-price { margin: 22px 0 24px; font-family: var(--font-display); font-size: 32px; color: var(--charcoal); }
.entry-price span { display: block; font-family: var(--font-body); font-size: 13px; letter-spacing: 0.04em; color: var(--muted-on-light); margin-top: 4px; }
.entry-content .btn-primary { margin-top: auto; align-self: flex-start; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { padding: 120px 0; background: var(--stone); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 56px; }
.process-step h3 { font-family: var(--font-display); font-size: 24px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(196, 162, 101, 0.5); }
.process-step p { font-size: 15px; color: var(--muted-on-light); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { padding: 130px 0; background: var(--cream); }
.testimonials blockquote { max-width: 720px; margin: 0 auto; text-align: center; position: relative; }
.testimonials blockquote + blockquote { margin-top: 80px; }
.testimonials blockquote::before { content: "\201C"; display: block; font-family: var(--font-display); font-size: 100px; line-height: 0.5; color: var(--gold); opacity: 0.28; margin-bottom: 20px; }
.testimonials p { font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.55; color: var(--charcoal); }
.testimonials cite { display: block; margin-top: 20px; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { position: relative; padding: 160px 0; overflow: hidden; }
.final-cta-bg { position: absolute; inset: 0; }
.final-cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.final-cta-overlay { position: absolute; inset: 0; background: rgba(35, 33, 32, 0.72); }
.final-cta-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 0 24px; text-align: center; color: var(--cream); }
.final-cta-content h2 { color: var(--cream); }
.final-cta-content > p { margin: 24px auto 38px; max-width: 52ch; color: rgba(245, 240, 232, 0.85); }
.final-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--charcoal-deep); color: var(--muted-on-dark); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand p { margin-top: 12px; font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--gold); }
.footer-heading { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-on-dark); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted-on-dark); text-decoration: none; padding: 4px 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(196, 162, 101, 0.18); font-size: 13px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: block; }

  .chapter { grid-template-columns: 1fr; padding-bottom: 90px; }
  .chapter.alt { grid-template-columns: 1fr; }
  .chapter.alt .chapter-media { order: unset; }
  .chapter.alt .chapter-copy { order: unset; }

  /* Photo pane pins to top of viewport; beats scroll beneath it */
  .chapter-media { position: sticky; top: var(--nav-h); z-index: 2; }
  .chapter-frame { aspect-ratio: 16 / 10; box-shadow: 0 18px 44px rgba(0,0,0,0.5); }
  .chapter-head { padding-bottom: 8vh; }
  .beat { min-height: 46vh; }

  .entry-grid, .process-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; transform: none; }
  .chapter-frame img { transition: opacity 0.2s linear; transform: none; }
  .entry-slideshow img { transition: none; }
  .entry-card:hover { transform: none; }
  .entry-card:hover .entry-media img { transform: none; }
}
