/* ============================================================
   Shelter from the Storm — Design System
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Palette: warm earth, hand-crafted refuge */
  --c-cream: #F5EFE4;
  --c-cream-deep: #EBE3D2;
  --c-ink: #1F2A24;
  --c-ink-soft: #3A453F;
  --c-muted: #6B6256;
  --c-forest: #2C3E36;
  --c-forest-deep: #1A2520;
  --c-terracotta: #B5613F;
  --c-terracotta-deep: #8F4828;
  --c-gold: #C9A55C;
  --c-gold-soft: #E0C68A;
  --c-rose: #C99B8A;
  --c-line: #D4C9B5;
  --c-line-soft: #E5DCC9;

  /* Type */
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Container */
  --max-w: 1240px;
  --max-w-narrow: 720px;
  --max-w-prose: 620px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-cream);
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

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

/* ---------- Type ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.875rem); letter-spacing: -0.015em; }
h4 { font-size: 1.25rem; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-terracotta-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--c-terracotta);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--c-ink-soft);
  font-weight: 400;
}

em, .serif-italic {
  font-family: var(--f-display);
  font-style: italic;
  font-variation-settings: "opsz" 14;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container-narrow { max-width: var(--max-w-narrow); }
.section { padding: var(--s-10) 0; }
.section-sm { padding: var(--s-9) 0; }

@media (max-width: 768px) {
  .section { padding: var(--s-9) 0; }
  .section-sm { padding: var(--s-8) 0; }
  .container { padding: 0 var(--s-5); }
}

/* ============================================================
   Crisis Bar — always visible, calm but present
   ============================================================ */
.crisis-bar {
  background: var(--c-forest-deep);
  color: var(--c-cream);
  font-size: 0.85rem;
  padding: var(--s-3) var(--s-5);
  text-align: center;
  position: relative;
  z-index: 60;
  border-bottom: 1px solid rgba(245, 239, 228, 0.08);
}
.crisis-bar strong { font-weight: 600; color: var(--c-gold-soft); }
.crisis-bar a {
  color: var(--c-cream);
  border-bottom: 1px solid rgba(245, 239, 228, 0.3);
  transition: border-color 0.2s var(--ease);
  white-space: nowrap;
}
.crisis-bar a:hover { border-color: var(--c-cream); }
.crisis-bar .divider {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--c-gold);
  border-radius: 50%;
  margin: 0 var(--s-4);
  vertical-align: middle;
}
@media (max-width: 640px) {
  .crisis-bar { font-size: 0.78rem; padding: var(--s-2) var(--s-4); }
  .crisis-bar .divider { margin: 0 var(--s-2); }
}

/* ============================================================
   Quick Exit — fixed, top right, always reachable
   ============================================================ */
.quick-exit {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-cream);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 28px rgba(31, 42, 36, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
  border: 1px solid rgba(245, 239, 228, 0.08);
}
.quick-exit:hover {
  background: var(--c-terracotta-deep);
  transform: translateY(-2px) scale(1.03);
}
.quick-exit svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .quick-exit { font-size: 0.72rem; padding: 8px 14px; }
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 228, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--c-line-soft);
  background: rgba(245, 239, 228, 0.95);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5) 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--c-forest-deep);
}
.brand-text small {
  display: block;
  font-family: var(--f-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-7);
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--c-terracotta);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--c-ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--c-ink); }

.nav-cta {
  background: var(--c-forest);
  color: var(--c-cream) !important;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--c-forest-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--c-ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { width: 22px; }
.nav-toggle span:nth-child(2) { width: 16px; margin-left: auto; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); width: 22px; }
.nav-toggle.open span:nth-child(2) { transform: rotate(-45deg) translate(3px, -4px); width: 22px; margin-left: 0; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 86%;
    max-width: 360px;
    height: 100vh;
    background: var(--c-cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--s-8) var(--s-7);
    gap: var(--s-6);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.5rem; font-family: var(--f-display); font-weight: 400; }
  .nav-cta { font-size: 1rem !important; padding: 14px 28px; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--c-terracotta);
  color: var(--c-cream);
  box-shadow: 0 4px 20px rgba(181, 97, 63, 0.25);
}
.btn-primary:hover {
  background: var(--c-terracotta-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(181, 97, 63, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
}
.btn-secondary:hover {
  background: var(--c-ink);
  color: var(--c-cream);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--c-ink);
  padding: 14px 4px;
  border-bottom: 1.5px solid var(--c-ink);
  border-radius: 0;
}
.btn-ghost:hover { color: var(--c-terracotta-deep); border-color: var(--c-terracotta); }

/* ============================================================
   Hero — Home page
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-9);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}
.hero-content > * { opacity: 0; transform: translateY(20px); animation: rise 0.9s var(--ease) forwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }

.hero h1 {
  margin-top: var(--s-5);
  margin-bottom: var(--s-5);
}
.hero h1 .accent {
  font-style: italic;
  color: var(--c-terracotta-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero .lead { margin-bottom: var(--s-7); max-width: 540px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.hero-note {
  font-size: 0.85rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.hero-note .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-terracotta);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Hero visual — layered organic shapes */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  opacity: 0;
  animation: rise 1.2s var(--ease) 0.4s forwards;
}
.hero-visual .shape-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-forest) 0%, var(--c-forest-deep) 100%);
  border-radius: 50% 50% 12% 88% / 60% 50% 50% 40%;
  transform: rotate(-2deg);
}
.hero-visual .shape-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: var(--c-gold);
  border-radius: 50%;
  opacity: 0.9;
  animation: float 8s var(--ease-soft) infinite;
}
.hero-visual .shape-leaf {
  position: absolute;
  top: 8%;
  left: -8%;
  width: 90px;
  height: 90px;
  background: var(--c-terracotta);
  border-radius: 80% 20% 80% 20% / 50% 50% 50% 50%;
  opacity: 0.85;
  transform: rotate(35deg);
  animation: float 7s var(--ease-soft) 1s infinite reverse;
}
.hero-visual .epigraph {
  position: absolute;
  bottom: var(--s-7);
  left: var(--s-6);
  right: var(--s-6);
  color: var(--c-cream);
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.4;
  z-index: 2;
}
.hero-visual .epigraph cite {
  display: block;
  font-style: normal;
  font-family: var(--f-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
  margin-top: var(--s-4);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(-8px, -12px) rotate(8deg); }
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Soft background ornament behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -15%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, var(--c-gold-soft) 0%, transparent 60%);
  opacity: 0.35;
  filter: blur(60px);
  pointer-events: none;
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   Section heads
   ============================================================ */
.section-head {
  max-width: var(--max-w-narrow);
  margin: 0 auto var(--s-8);
  text-align: center;
}
.section-head.left { text-align: left; margin-left: 0; }
.section-head .eyebrow { margin-bottom: var(--s-5); }
.section-head.left .eyebrow { display: inline-flex; }
.section-head h2 { margin-bottom: var(--s-5); }
.section-head .lead { margin: 0 auto; max-width: 580px; }
.section-head.left .lead { margin-left: 0; }

/* ============================================================
   Pillars (three-card section)
   ============================================================ */
.pillars {
  background: var(--c-cream-deep);
  position: relative;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (max-width: 880px) {
  .pillar-grid { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--c-cream);
  padding: var(--s-7) var(--s-6);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border: 1px solid var(--c-line-soft);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -20px rgba(31, 42, 36, 0.18);
}
.pillar-num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--c-terracotta);
  margin-bottom: var(--s-5);
  letter-spacing: 0.02em;
}
.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-forest);
  color: var(--c-gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
  transition: transform 0.4s var(--ease);
}
.pillar:hover .pillar-icon { transform: rotate(-8deg) scale(1.06); }
.pillar-icon svg { width: 26px; height: 26px; }
.pillar h3 { margin-bottom: var(--s-4); }
.pillar p { color: var(--c-ink-soft); margin-bottom: var(--s-5); }
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-forest);
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.pillar-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.pillar-link:hover svg { transform: translateX(4px); }

/* ============================================================
   Story / split sections
   ============================================================ */
.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: center;
}
.story-split.reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .story-split, .story-split.reverse { grid-template-columns: 1fr; gap: var(--s-7); }
  .story-split.reverse > :first-child { order: 0; }
}
.story-art {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  background: var(--c-forest);
  position: relative;
  overflow: hidden;
}
.story-art svg { width: 100%; height: 100%; display: block; }
.story-art .tag {
  position: absolute;
  bottom: var(--s-5);
  left: var(--s-5);
  background: var(--c-cream);
  color: var(--c-ink);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.story-art .tag::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--c-terracotta);
  border-radius: 50%;
}
.story-text p { color: var(--c-ink-soft); margin-bottom: var(--s-4); }
.story-text p:last-of-type { margin-bottom: var(--s-6); }

/* ============================================================
   Quote / epigraph block
   ============================================================ */
.epigraph-block {
  background: var(--c-forest-deep);
  color: var(--c-cream);
  padding: var(--s-10) var(--s-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.epigraph-block::before {
  content: '"';
  position: absolute;
  font-family: var(--f-display);
  font-size: 22rem;
  color: var(--c-gold);
  opacity: 0.08;
  top: -8rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  pointer-events: none;
}
.epigraph-block blockquote {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.epigraph-block cite {
  display: block;
  margin-top: var(--s-6);
  font-family: var(--f-body);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
}

/* ============================================================
   CTA strip
   ============================================================ */
.cta-strip {
  padding: var(--s-9) 0;
  text-align: center;
}
.cta-strip h2 { margin-bottom: var(--s-5); }
.cta-strip .lead { margin: 0 auto var(--s-7); max-width: 580px; }
.cta-actions {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--c-forest-deep);
  color: var(--c-cream);
  padding: var(--s-9) 0 var(--s-6);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-8);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .brand-text { color: var(--c-cream); }
.footer-brand .brand-text small { color: var(--c-gold-soft); }
.footer-brand p {
  margin-top: var(--s-4);
  font-size: 0.9rem;
  color: rgba(245, 239, 228, 0.7);
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
  margin-bottom: var(--s-5);
}
.footer-col ul li {
  margin-bottom: var(--s-3);
}
.footer-col a {
  font-size: 0.92rem;
  color: rgba(245, 239, 228, 0.75);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--c-cream); }
.footer-bottom {
  padding-top: var(--s-6);
  border-top: 1px solid rgba(245, 239, 228, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: 0.8rem;
  color: rgba(245, 239, 228, 0.55);
}
.footer-verse {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--c-gold-soft);
}

/* ============================================================
   Page header (interior pages)
   ============================================================ */
.page-header {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  border-bottom: 1px solid var(--c-line-soft);
  position: relative;
}
.page-header .eyebrow { margin-bottom: var(--s-5); justify-content: center; }
.page-header .eyebrow::after {
  content: '';
  width: 28px; height: 1px;
  background: var(--c-terracotta);
}
.page-header h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: var(--s-5); }
.page-header .lead { max-width: 620px; margin: 0 auto; }

/* ============================================================
   Prose (about, resources copy)
   ============================================================ */
.prose {
  max-width: var(--max-w-prose);
  margin: 0 auto;
}
.prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--c-ink-soft);
  margin-bottom: var(--s-5);
}
.prose p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-size: 4.2rem;
  font-style: italic;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 -2px;
  color: var(--c-terracotta-deep);
}
.prose h3 {
  margin-top: var(--s-7);
  margin-bottom: var(--s-4);
}
.prose blockquote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--c-forest);
  border-left: 2px solid var(--c-terracotta);
  padding: var(--s-3) var(--s-6);
  margin: var(--s-6) 0;
}

/* ============================================================
   Resources grid
   ============================================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (max-width: 720px) {
  .resource-grid { grid-template-columns: 1fr; }
}
.resource-card {
  background: var(--c-cream);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.resource-card:hover {
  border-color: var(--c-terracotta);
  transform: translateY(-3px);
}
.resource-card .resource-cat {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--c-terracotta-deep);
  margin-bottom: var(--s-3);
}
.resource-card h4 { margin-bottom: var(--s-3); font-family: var(--f-display); font-size: 1.3rem; }
.resource-card p { font-size: 0.95rem; color: var(--c-ink-soft); margin-bottom: var(--s-4); }
.resource-card .resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.82rem;
  color: var(--c-muted);
}
.resource-card .resource-meta a {
  color: var(--c-forest);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ============================================================
   Forms — Intake & Contact
   ============================================================ */
.form-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: var(--c-cream);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  padding: clamp(var(--s-6), 4vw, var(--s-8));
  box-shadow: 0 4px 24px rgba(31, 42, 36, 0.04);
}

.form-intro {
  padding: var(--s-5);
  background: var(--c-cream-deep);
  border-left: 3px solid var(--c-terracotta);
  border-radius: var(--r-md);
  margin-bottom: var(--s-7);
  font-size: 0.92rem;
  color: var(--c-ink-soft);
  line-height: 1.6;
}
.form-intro strong { color: var(--c-ink); }

.form-step {
  display: none;
}
.form-step.active {
  display: block;
  animation: fade 0.4s var(--ease);
}
@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-label {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--c-terracotta-deep);
  margin-bottom: var(--s-2);
}
.step-title {
  font-family: var(--f-display);
  font-size: 1.7rem;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-6);
  color: var(--c-ink);
}

.progress {
  display: flex;
  gap: 4px;
  margin-bottom: var(--s-7);
}
.progress-tick {
  flex: 1;
  height: 3px;
  background: var(--c-line-soft);
  border-radius: 2px;
  transition: background 0.4s var(--ease);
}
.progress-tick.done { background: var(--c-terracotta); }
.progress-tick.active { background: var(--c-forest); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-5);
}
.form-row.full { grid-template-columns: 1fr; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .form-row, .form-row.three { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
}
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: var(--s-2);
  letter-spacing: 0.01em;
}
.field label .req {
  color: var(--c-terracotta);
  margin-left: 3px;
}
.field .hint {
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-top: var(--s-2);
  font-style: italic;
  font-family: var(--f-display);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--c-cream-deep);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  color: var(--c-ink);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-forest);
  background: var(--c-cream);
}
.field textarea {
  min-height: 110px;
  resize: vertical;
  font-family: var(--f-body);
  line-height: 1.6;
}
.field select {
  appearance: none;
  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 fill='%231F2A24' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
@media (max-width: 540px) { .check-grid { grid-template-columns: 1fr; } }
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: var(--s-3) var(--s-4);
  background: var(--c-cream-deep);
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.check:hover { border-color: var(--c-line); }
.check input { margin-top: 4px; accent-color: var(--c-forest); flex-shrink: 0; }
.check input:checked + span { color: var(--c-ink); font-weight: 500; }
.check span { font-size: 0.9rem; color: var(--c-ink-soft); line-height: 1.4; }
.check:has(input:checked) { background: var(--c-cream); border-color: var(--c-forest); }

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.radio-pill {
  position: relative;
}
.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-pill span {
  display: inline-block;
  padding: 10px 20px;
  background: var(--c-cream-deep);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.radio-pill input:checked + span {
  background: var(--c-forest);
  color: var(--c-cream);
  border-color: var(--c-forest);
}
.radio-pill:hover span { border-color: var(--c-line); }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-line-soft);
  gap: var(--s-4);
  flex-wrap: wrap;
}
.form-actions .btn { padding: 12px 24px; font-size: 0.88rem; }

.form-success {
  text-align: center;
  padding: var(--s-8) var(--s-5);
}
.form-success .checkmark {
  width: 72px; height: 72px;
  margin: 0 auto var(--s-5);
  background: var(--c-forest);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-gold-soft);
  animation: pop 0.6s var(--ease);
}
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.form-success h3 { margin-bottom: var(--s-4); }
.form-success p { color: var(--c-ink-soft); max-width: 460px; margin: 0 auto; }

/* ============================================================
   Contact details (Contact page)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info {
  background: var(--c-forest);
  color: var(--c-cream);
  padding: var(--s-7);
  border-radius: var(--r-lg);
  position: sticky;
  top: 120px;
}
.contact-info h3 { color: var(--c-cream); margin-bottom: var(--s-5); }
.contact-info .lead { color: rgba(245, 239, 228, 0.8); margin-bottom: var(--s-6); }
.contact-item {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-4) 0;
  border-top: 1px solid rgba(245, 239, 228, 0.1);
}
.contact-item:first-of-type { border-top: none; padding-top: 0; }
.contact-item .icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(201, 165, 92, 0.15);
  color: var(--c-gold-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item .icon svg { width: 16px; height: 16px; }
.contact-item .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
  margin-bottom: 4px;
}
.contact-item .value { font-size: 1rem; color: var(--c-cream); }
.contact-item .value a { border-bottom: 1px solid rgba(245, 239, 228, 0.3); }

/* ============================================================
   Donate page tiers
   ============================================================ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
@media (max-width: 880px) { .tier-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tier-grid { grid-template-columns: 1fr; } }
.tier {
  background: var(--c-cream);
  border: 1.5px solid var(--c-line-soft);
  border-radius: var(--r-md);
  padding: var(--s-5);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
}
.tier:hover, .tier.selected {
  border-color: var(--c-terracotta);
  background: var(--c-cream-deep);
}
.tier.selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 12px;
  color: var(--c-terracotta);
  font-weight: 700;
}
.tier .amount {
  font-family: var(--f-display);
  font-size: 1.8rem;
  color: var(--c-ink);
  margin-bottom: var(--s-2);
}
.tier .desc {
  font-size: 0.82rem;
  color: var(--c-muted);
  font-style: italic;
  font-family: var(--f-display);
}

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.mt-5 { margin-top: var(--s-5); }
.mt-7 { margin-top: var(--s-7); }
.mb-5 { margin-bottom: var(--s-5); }
.divider-leaf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  margin: var(--s-8) 0;
  color: var(--c-terracotta);
}
.divider-leaf::before,
.divider-leaf::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 80px;
  background: var(--c-line);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Ambient cursor bloom — a slow, soft golden light that follows
   the cursor like a candle. Hidden on touch + reduced-motion.
   ============================================================ */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 165, 92, 0.18) 0%, rgba(201, 165, 92, 0.08) 35%, transparent 65%);
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: multiply;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.8s var(--ease-soft);
  filter: blur(8px);
  will-change: transform, opacity;
}
.cursor-glow.on { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

/* ============================================================
   Aurora — slow drifting warm gradient behind sections.
   Adds breath without being distracting.
   ============================================================ */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora::before,
.aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}
.aurora::before {
  top: -10%;
  left: -8%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, var(--c-gold-soft) 0%, transparent 70%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.aurora::after {
  bottom: -15%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, var(--c-rose) 0%, transparent 70%);
  opacity: 0.25;
  animation: drift-b 28s ease-in-out infinite alternate;
}
@keyframes drift-a {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.12); }
}
@keyframes drift-b {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, -30px) scale(1.18); }
}

/* ============================================================
   Hero scene — warm window in a sheltering home.
   Layered SVG/CSS art with parallax and breathing light.
   ============================================================ */
.hero-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 14% 86% / 58% 50% 50% 42%;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, #3a5044 0%, #1a2520 70%);
  box-shadow:
    0 30px 60px -20px rgba(31, 42, 36, 0.4),
    inset 0 0 80px rgba(0, 0, 0, 0.25);
  transform: rotate(-1.5deg);
  opacity: 0;
  animation: rise 1.4s var(--ease) 0.3s forwards;
}
.hero-scene__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 35% 25%, rgba(224, 198, 138, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(181, 97, 63, 0.2) 0%, transparent 60%);
  animation: shimmer 8s ease-in-out infinite alternate;
}
@keyframes shimmer {
  0% { opacity: 0.85; }
  100% { opacity: 1; }
}
.hero-scene__rain {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(245, 239, 228, 0.04) 50%, transparent 100%);
  background-size: 2px 18px;
  animation: rain 3s linear infinite;
  opacity: 0.6;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
}
@keyframes rain {
  0% { background-position: 0 0; }
  100% { background-position: 0 18px; }
}
.hero-scene__house {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  aspect-ratio: 1.1 / 1;
}
.hero-scene__house svg { width: 100%; height: 100%; }
.hero-scene__window-glow {
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: 28%;
  height: 14%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(224, 198, 138, 0.95) 0%, rgba(201, 165, 92, 0.5) 35%, transparent 70%);
  filter: blur(14px);
  animation: glow-breathe 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}
.hero-scene__moon {
  position: absolute;
  top: 14%;
  right: 18%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--c-gold-soft) 0%, var(--c-gold) 60%, transparent 80%);
  opacity: 0.55;
  filter: blur(2px);
  animation: float 9s var(--ease-soft) infinite;
}
.hero-scene__leaf {
  position: absolute;
  top: 12%;
  left: 10%;
  width: 80px;
  height: 80px;
  background: var(--c-terracotta);
  border-radius: 80% 20% 80% 20% / 50% 50% 50% 50%;
  opacity: 0.7;
  transform: rotate(35deg);
  animation: float 7s var(--ease-soft) 1s infinite reverse;
  filter: blur(0.5px);
}
.hero-scene__epigraph {
  position: absolute;
  bottom: var(--s-6);
  left: var(--s-6);
  right: var(--s-6);
  color: var(--c-cream);
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.45;
  z-index: 2;
  font-variation-settings: "opsz" 24, "SOFT" 80;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero-scene__epigraph cite {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--f-body);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
  opacity: 0.9;
}

/* ============================================================
   Gentle stagger reveals — group children come in one by one
   when the wrapper enters view.
   ============================================================ */
.reveal-group > .reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal-group.visible > .reveal-item { opacity: 1; transform: translateY(0); }
.reveal-group.visible > .reveal-item:nth-child(1) { transition-delay: 0.05s; }
.reveal-group.visible > .reveal-item:nth-child(2) { transition-delay: 0.15s; }
.reveal-group.visible > .reveal-item:nth-child(3) { transition-delay: 0.25s; }
.reveal-group.visible > .reveal-item:nth-child(4) { transition-delay: 0.35s; }
.reveal-group.visible > .reveal-item:nth-child(5) { transition-delay: 0.45s; }
.reveal-group.visible > .reveal-item:nth-child(6) { transition-delay: 0.55s; }

/* ============================================================
   Trauma-informed validation — never red, never punishing.
   A soft amber wash, an inline note, focus on the offending field.
   ============================================================ */
.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: var(--c-gold) !important;
  background: #FBF3DE !important;
  box-shadow: 0 0 0 4px rgba(201, 165, 92, 0.18);
}
.field .gentle-note {
  display: none;
  margin-top: var(--s-2);
  padding: 8px 12px;
  background: #FBF3DE;
  border-left: 2px solid var(--c-gold);
  border-radius: var(--r-sm);
  color: var(--c-ink-soft);
  font-size: 0.82rem;
  font-style: italic;
  font-family: var(--f-display);
  font-variation-settings: "opsz" 14;
  animation: fade-soft 0.4s var(--ease);
}
.field .gentle-note.show { display: block; }
.radio-group.invalid,
.check-grid.invalid {
  padding: 6px;
  border-radius: var(--r-md);
  background: #FBF3DE;
  transition: background 0.3s var(--ease);
}
@keyframes fade-soft {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Better focus rings universally — visible but warm */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.btn:focus-visible,
.radio-pill input:focus-visible + span,
.tier:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 62, 54, 0.18), 0 0 0 1.5px var(--c-forest);
}

/* ============================================================
   Intake — named steps with breathing progress
   ============================================================ */
.step-stages {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: var(--s-7);
  position: relative;
  counter-reset: stage;
}
.step-stages::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--c-line-soft);
  z-index: 0;
}
.stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
  cursor: default;
}
.stage__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-cream);
  border: 1.5px solid var(--c-line);
  display: grid;
  place-items: center;
  color: var(--c-muted);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.stage__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  text-align: center;
  transition: color 0.3s var(--ease);
  max-width: 12ch;
  line-height: 1.3;
}
.stage.active .stage__dot {
  background: var(--c-forest);
  border-color: var(--c-forest);
  color: var(--c-cream);
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(44, 62, 54, 0.08);
}
.stage.active .stage__label { color: var(--c-forest); }
.stage.done .stage__dot {
  background: var(--c-terracotta);
  border-color: var(--c-terracotta);
  color: var(--c-cream);
}
.stage.done .stage__dot::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}
.stage.done .stage__dot > span { display: none; }
@media (max-width: 640px) {
  .step-stages { gap: 0; }
  .stage__label { font-size: 0; }
  .stage__label::first-letter { font-size: 0.7rem; }
}

/* Intake transitions — softer, with movement */
.form-step {
  display: none;
}
.form-step.active {
  display: block;
  animation: step-in 0.55s var(--ease);
}
@keyframes step-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reassurance microcopy per step */
.step-affirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: var(--s-4) var(--s-5);
  background: var(--c-cream-deep);
  border-radius: var(--r-md);
  margin-bottom: var(--s-6);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  line-height: 1.5;
  font-variation-settings: "opsz" 14, "SOFT" 100;
}
.step-affirm svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--c-terracotta);
}

/* Resume / saved indicator */
.resume-bar {
  display: none;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--c-forest);
  color: var(--c-cream);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
  font-size: 0.85rem;
}
.resume-bar.show { display: flex; }
.resume-bar svg { width: 16px; height: 16px; color: var(--c-gold-soft); flex-shrink: 0; }
.resume-bar button {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-gold-soft);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.resume-bar button:hover { color: var(--c-cream); }

/* ============================================================
   Quick Reach Out — the fast path on get-help.html
   ============================================================ */
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  max-width: 1040px;
  margin: 0 auto var(--s-7);
}
@media (max-width: 880px) {
  .path-grid { grid-template-columns: 1fr; }
}
.path-card {
  position: relative;
  padding: var(--s-7) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--c-cream);
  border: 1.5px solid var(--c-line-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}
.path-card.quick {
  background: linear-gradient(160deg, var(--c-forest) 0%, var(--c-forest-deep) 100%);
  color: var(--c-cream);
  border-color: transparent;
}
.path-card.quick::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle, var(--c-gold) 0%, transparent 65%);
  opacity: 0.18;
  filter: blur(40px);
  pointer-events: none;
  animation: drift-a 12s ease-in-out infinite alternate;
}
.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -20px rgba(31, 42, 36, 0.22);
}
.path-card.quick:hover {
  box-shadow: 0 24px 60px -20px rgba(31, 42, 36, 0.5);
}
.path-card .path-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: var(--s-5);
  background: var(--c-cream-deep);
  color: var(--c-forest);
}
.path-card.quick .path-icon {
  background: rgba(201, 165, 92, 0.18);
  color: var(--c-gold-soft);
}
.path-card .path-icon svg { width: 22px; height: 22px; }
.path-card .path-label {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--c-terracotta-deep);
  margin-bottom: var(--s-3);
}
.path-card.quick .path-label { color: var(--c-gold-soft); }
.path-card h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-bottom: var(--s-4);
}
.path-card.quick h3 { color: var(--c-cream); }
.path-card p {
  color: var(--c-ink-soft);
  margin-bottom: var(--s-5);
  font-size: 0.98rem;
}
.path-card.quick p { color: rgba(245, 239, 228, 0.82); }
.path-card .path-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--s-5);
}
.path-card.quick .path-meta { color: var(--c-gold-soft); }
.path-card .path-meta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-terracotta);
}
.path-card.quick .path-meta::before { background: var(--c-gold); }

.quick-form {
  background: rgba(245, 239, 228, 0.06);
  border: 1px solid rgba(245, 239, 228, 0.12);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin-top: var(--s-5);
}
.quick-form .field label { color: var(--c-cream); }
.quick-form .field input,
.quick-form .field select,
.quick-form .field textarea {
  background: rgba(245, 239, 228, 0.07);
  color: var(--c-cream);
  border-color: rgba(245, 239, 228, 0.1);
}
.quick-form .field input::placeholder,
.quick-form .field textarea::placeholder { color: rgba(245, 239, 228, 0.4); }
.quick-form .field input:focus,
.quick-form .field select:focus,
.quick-form .field textarea:focus {
  background: rgba(245, 239, 228, 0.1);
  border-color: var(--c-gold);
}
.quick-form .field .hint { color: rgba(245, 239, 228, 0.55); }
.quick-form .btn-primary {
  background: var(--c-gold);
  color: var(--c-forest-deep);
  width: 100%;
  justify-content: center;
}
.quick-form .btn-primary:hover {
  background: var(--c-gold-soft);
  color: var(--c-forest-deep);
}

/* Two-form path divider — "or, when you're ready" */
.path-or {
  position: relative;
  text-align: center;
  margin: var(--s-8) auto var(--s-7);
  max-width: 540px;
}
.path-or::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--c-line);
}
.path-or span {
  display: inline-block;
  position: relative;
  padding: 0 var(--s-5);
  background: var(--c-cream);
  font-family: var(--f-display);
  font-style: italic;
  color: var(--c-muted);
  font-size: 1.05rem;
}

/* ============================================================
   Magnetic button hover — subtle gravitation toward the cursor.
   ============================================================ */
.btn { position: relative; }
.btn.magnetic { transition: transform 0.3s var(--ease-soft), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease); }

/* ============================================================
   Subtle ink-style underline reveal on long-form links
   ============================================================ */
.ink-link {
  position: relative;
  color: inherit;
  font-weight: 600;
  display: inline;
}
.ink-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 0.5s var(--ease);
}
.ink-link:hover::after {
  transform-origin: left center;
  transform: scaleX(0);
  animation: ink-redraw 0.7s var(--ease) 0.2s forwards;
}
@keyframes ink-redraw {
  to { transform: scaleX(1); }
}

/* ============================================================
   Marquee of values (small ambient strip)
   ============================================================ */
.values-strip {
  background: var(--c-cream-deep);
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
  padding: var(--s-5) 0;
  overflow: hidden;
}
.values-track {
  display: flex;
  gap: var(--s-7);
  animation: track 38s linear infinite;
  width: max-content;
}
.values-track:hover { animation-play-state: paused; }
.values-track span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--c-ink-soft);
  white-space: nowrap;
}
.values-track span::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--c-terracotta);
  border-radius: 50%;
  opacity: 0.7;
}
@keyframes track {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Submit-state button (loading spinner / sending)
   ============================================================ */
.btn.sending { pointer-events: none; opacity: 0.85; }
.btn.sending svg { animation: spin 1s linear infinite; }
@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   Step buttons — secondary back link refinements
   ============================================================ */
.btn-soft {
  background: transparent;
  color: var(--c-muted);
  padding: 12px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-soft:hover { color: var(--c-forest); }
.btn-soft svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn-soft:hover svg { transform: translateX(-3px); }

/* ============================================================
   Tiny refinements
   ============================================================ */
.hero-content h1 .accent {
  position: relative;
  display: inline-block;
}
.hero-content h1 .accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6%;
  width: 100%;
  height: 8px;
  background: var(--c-gold);
  opacity: 0.35;
  z-index: -1;
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  animation: highlight 1.2s var(--ease) 1.2s forwards;
}
@keyframes highlight {
  to { transform: scaleX(1); }
}

/* Bolder hero call distinction — pulsing aura on primary */
.btn-primary.btn-call {
  position: relative;
}
.btn-primary.btn-call::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(181, 97, 63, 0.4);
  animation: ring 2.4s var(--ease) infinite;
  pointer-events: none;
}
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(181, 97, 63, 0.45); }
  60%, 100% { box-shadow: 0 0 0 20px rgba(181, 97, 63, 0); }
}

/* Image-style story card — texture, not just color */
.story-art {
  position: relative;
}
.story-art::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 8px,
    rgba(245, 239, 228, 0.025) 8px,
    rgba(245, 239, 228, 0.025) 9px
  );
  mix-blend-mode: overlay;
}

/* Smooth page entrance — content fades in slightly */
body { animation: page-in 0.5s var(--ease); }
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hide raw [hidden] reliably */
[hidden] { display: none !important; }

/* ============================================================
   Hero Sanctuary — calm panel that replaces the old house scene.
   No illustration, no rotation, no clipping. Just warm light,
   slow rings, drifting orbs, and a single contained promise.
   ============================================================ */
.hero-sanctuary {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 50% 110%, #4A3220 0%, #2C2018 35%, #1A1410 70%),
    linear-gradient(180deg, #1F2A24 0%, #1A2520 100%);
  box-shadow:
    0 32px 80px -28px rgba(31, 42, 36, 0.45),
    inset 0 0 100px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: rise 1.2s var(--ease) 0.3s forwards;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* Warm bloom from bottom-center — the hearth */
.sanctuary-light {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 110%;
  background:
    radial-gradient(circle at center, rgba(255, 220, 150, 0.55) 0%, rgba(201, 165, 92, 0.25) 25%, rgba(181, 97, 63, 0.12) 50%, transparent 75%);
  filter: blur(20px);
  animation: hearth 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hearth {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

/* Concentric rings — slow, deeply gentle */
.sanctuary-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.sanctuary-rings span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(224, 198, 138, 0.18);
}
.sanctuary-rings span:nth-child(1) { width: 38%; aspect-ratio: 1; animation: ring-pulse 7s ease-in-out infinite; }
.sanctuary-rings span:nth-child(2) { width: 56%; aspect-ratio: 1; animation: ring-pulse 7s ease-in-out -1.75s infinite; opacity: 0.7; }
.sanctuary-rings span:nth-child(3) { width: 76%; aspect-ratio: 1; animation: ring-pulse 7s ease-in-out -3.5s infinite; opacity: 0.45; }
.sanctuary-rings span:nth-child(4) { width: 96%; aspect-ratio: 1; animation: ring-pulse 7s ease-in-out -5.25s infinite; opacity: 0.22; }
@keyframes ring-pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Soft drifting golden orbs — embers rising */
.sanctuary-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sanctuary-orbs span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-gold-soft) 0%, var(--c-gold) 60%, transparent 100%);
  bottom: -20px;
  opacity: 0;
  animation: ember 9s ease-in-out infinite;
  filter: blur(1px);
}
.sanctuary-orbs span:nth-child(1) { left: 12%; animation-delay: 0s;  width: 8px; height: 8px; }
.sanctuary-orbs span:nth-child(2) { left: 28%; animation-delay: 1.5s; }
.sanctuary-orbs span:nth-child(3) { left: 46%; animation-delay: 3.2s; width: 5px; height: 5px; }
.sanctuary-orbs span:nth-child(4) { left: 62%; animation-delay: 4.8s; width: 9px; height: 9px; }
.sanctuary-orbs span:nth-child(5) { left: 78%; animation-delay: 6.5s; }
.sanctuary-orbs span:nth-child(6) { left: 88%; animation-delay: 7.8s; width: 4px; height: 4px; }
@keyframes ember {
  0%   { transform: translateY(0)    translateX(0);   opacity: 0; }
  15%  { opacity: 0.9; }
  60%  { opacity: 0.6; }
  100% { transform: translateY(-120%) translateX(20px); opacity: 0; }
}

/* The promise — perfectly contained, never clipped */
.sanctuary-quote {
  position: relative;
  z-index: 2;
  max-width: 88%;
  text-align: center;
  font-family: var(--f-display);
  font-style: italic;
  color: var(--c-cream);
  font-variation-settings: "opsz" 60, "SOFT" 100;
}
.sanctuary-quote span {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.sanctuary-quote cite {
  display: block;
  margin-top: var(--s-5);
  font-family: var(--f-body);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
  opacity: 0.85;
}

/* ============================================================
   Fix: dark form selects need readable native option dropdowns.
   Native <option> renders in OS chrome — must explicitly set
   dark text on a light background regardless of card theme.
   ============================================================ */
.field select option,
.quick-form .field select option {
  color: var(--c-ink);
  background: var(--c-cream);
}

/* And the closed-state select itself in the dark quick-form card:
   give it a proper down-arrow that contrasts with the card. */
.quick-form .field select {
  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 fill='%23E0C68A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
}

/* ============================================================
   Brand logo image swap — replaces SVG mark with the real logo.
   Keeps the same dimensions; respects header + footer color logic.
   ============================================================ */
.brand-mark.brand-mark--img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
}
.site-footer .brand-mark--img {
  /* Footer is dark — subtle ring helps the artwork breathe */
  background: rgba(245, 239, 228, 0.05);
  padding: 2px;
}
