/* ============================================================
   SAVE FAMILY FARMS — Family Farmers Feeding US
   Navy #1a2744 · Amber #c85a2a · Cream #f0ece3
   Bebas Neue · Merriweather · Roboto Condensed
   ============================================================ */

:root {
  --navy: #1a2744;
  --navy-deep: #131d33;
  --navy-darker: #0e1626;
  --amber: #c85a2a;
  --amber-bright: #e06c35;
  --amber-soft: #d97b4a;
  --cream: #f0ece3;
  --cream-dim: #cfc9ba;
  --muted: #8d99b3;
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --serif: 'Merriweather', Georgia, serif;
  --cond: 'Roboto Condensed', 'Arial Narrow', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--cond);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--amber-bright); }

::selection { background: var(--amber); color: var(--cream); }

/* ---------- Typography helpers ---------- */
.big-head {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--amber);
  font-weight: 400;
}
.serif-head {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  color: var(--cream);
}
.serif-head em { font-style: italic; color: var(--amber-bright); }
.eyebrow {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  color: var(--amber-soft);
  margin-bottom: 0.75rem;
}
.accent { color: var(--amber); }

/* ---------- Star divider (from the FED UP graphic) ---------- */
.star-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin: 1.5rem auto; max-width: 560px;
}
.sd-line {
  flex: 1; height: 3px; background: var(--amber); position: relative;
  clip-path: polygon(0 50%, 12% 0, 100% 35%, 100% 65%, 12% 100%);
}
.sd-line:last-child { clip-path: polygon(0 35%, 88% 0, 100% 50%, 88% 100%, 0 65%); }
.sd-star { color: var(--amber); font-size: 1.4rem; line-height: 1; animation: starPulse 3s ease-in-out infinite; }
@keyframes starPulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 0 rgba(200,90,42,0); }
  50% { transform: scale(1.25); text-shadow: 0 0 18px rgba(224,108,53,0.7); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--display);
  font-size: 1.15rem; letter-spacing: 0.09em;
  padding: 0.8rem 2rem; border: 2px solid var(--amber);
  border-radius: 3px; cursor: pointer; text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s;
  position: relative; overflow: hidden; text-align: center;
}
.btn-lg { font-size: 1.4rem; padding: 1rem 2.6rem; }
.btn-xl { font-size: clamp(1.15rem, 4.4vw, 1.7rem); padding: 1.1rem clamp(1.4rem, 5vw, 3.2rem); letter-spacing: 0.1em; white-space: nowrap; }
.btn-pulse { box-shadow: 0 8px 26px rgba(19, 29, 51, 0.45); animation: ctaPulse 3.2s ease-in-out infinite; }
.btn-pulse:hover { animation-play-state: paused; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 26px rgba(19, 29, 51, 0.45), 0 0 0 0 rgba(224, 108, 53, 0.5); }
  70%, 100% { box-shadow: 0 8px 26px rgba(19, 29, 51, 0.45), 0 0 0 18px rgba(224, 108, 53, 0); }
}
.btn-primary { background: var(--amber); color: var(--cream); }
.btn-primary:hover { background: var(--amber-bright); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(200, 90, 42, 0.45); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-ghost:hover { border-color: var(--amber-bright); color: var(--amber-bright); transform: translateY(-3px); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- Reveal animations ---------- */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0; transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.reveal-up { transform: translateY(46px); }
.reveal-left { transform: translateX(-56px); }
.reveal-right { transform: translateX(56px); }
.in-view { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2.5rem;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(14, 22, 38, 0.92); backdrop-filter: blur(12px);
  padding: 0.6rem 2.5rem; box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-star { color: var(--amber); font-size: 1.3rem; animation: starPulse 4s ease-in-out infinite; }
.nav-title { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.08em; color: var(--cream); }
.nav-title em { font-style: normal; color: var(--amber-bright); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.85rem; color: var(--cream); text-decoration: none; position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px;
  background: var(--amber-bright); transition: width 0.3s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1.5px solid var(--amber); padding: 0.45rem 1.2rem; border-radius: 3px;
  color: var(--amber-bright) !important; transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--amber); color: var(--cream) !important; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; }
.nav-burger span { display: block; width: 26px; height: 3px; background: var(--cream); margin: 5px 0; border-radius: 2px; transition: 0.3s; }
.mobile-menu {
  position: fixed; inset: 0; background: rgba(14,22,38,0.97); z-index: 99;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--display); font-size: 2.2rem; color: var(--cream); text-decoration: none; letter-spacing: 0.06em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;   /* fallback for older browsers */
  min-height: 100svh;  /* stable small-viewport height */
  min-height: 100dvh;  /* tracks mobile address bar show/hide */
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: slowZoom 24s ease-in-out infinite alternate;
}
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,29,51,0.72) 0%, rgba(26,39,68,0.62) 45%, rgba(19,29,51,0.94) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 7rem 1.5rem 5rem; max-width: 1000px; }
.hero-kicker {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.4em;
  font-size: clamp(0.7rem, 1.6vw, 0.95rem); color: var(--cream-dim); margin-bottom: 3.5rem;
}
.hero-title { font-family: var(--display); font-weight: 400; line-height: 0.92; margin-bottom: 0.5rem; }
.hero-line {
  display: block; font-size: clamp(3.4rem, 10vw, 8.5rem); letter-spacing: 0.02em; color: var(--cream);
  opacity: 0; transform: translateY(60px) skewY(2deg);
  animation: heroLine 1s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-line[data-line="2"] { animation-delay: 0.25s; }
.hero-line-accent { color: var(--amber); text-shadow: 0 6px 40px rgba(200,90,42,0.35); }
@keyframes heroLine { to { opacity: 1; transform: translateY(0) skewY(0); } }
.hero-tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem); line-height: 1.6;
  color: var(--cream); max-width: 780px; margin: 1.5rem auto 2.2rem;
}
.hero-tagline strong { color: var(--amber-bright); font-style: normal; }
.hero-actions { display: flex; gap: 1.2rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(240,236,227,0.6); border-radius: 15px; z-index: 2;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 9px; margin-left: -2px;
  background: var(--amber-bright); border-radius: 2px; animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px; background: var(--navy-darker); padding: 0;
}
.stat {
  background: var(--navy-deep); text-align: center; padding: 3.5rem 1.5rem;
  transition: background 0.35s ease; position: relative; overflow: hidden;
}
.stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  transform: scaleX(0); transition: transform 0.6s ease;
}
.stat:hover { background: #16223c; }
.stat:hover::before { transform: scaleX(1); }
.stat-num { font-family: var(--display); font-size: clamp(3rem, 5vw, 4.4rem); color: var(--amber-bright); line-height: 1; }
.stat-label { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; max-width: 240px; margin-inline: auto; }

/* ---------- Mission ---------- */
.mission {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  padding: 7rem clamp(1.5rem, 6vw, 6rem); max-width: 1400px; margin: 0 auto;
}
.mission-media { position: relative; }
.parallax-frame { overflow: hidden; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.parallax-img { transform: scale(1.15); transition: transform 0.1s linear; will-change: transform; }
.mission-badge {
  position: absolute; bottom: -1.4rem; right: -0.75rem;
  background: var(--amber); color: var(--cream); font-family: var(--display);
  letter-spacing: 0.1em; padding: 0.7rem 1.4rem; font-size: 1rem; border-radius: 3px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.4); transform: rotate(-1.5deg);
}
.mission-copy p { margin-bottom: 1.2rem; color: var(--cream-dim); font-size: 1.05rem; }
.mission-copy p strong { color: var(--cream); }
.mission-copy .serif-head { margin-bottom: 1.4rem; }
.mission-copy .btn { margin-top: 0.8rem; }

/* ---------- Sections common ---------- */
.section-head { text-align: center; padding: 0 1.5rem; max-width: 900px; margin: 0 auto 3.5rem; }
.section-sub { color: var(--cream-dim); font-size: 1.08rem; max-width: 760px; margin: 1.2rem auto 0; }
.section-sub-strong { color: var(--cream); font-family: var(--serif); font-style: italic; }

/* ---------- Facts ---------- */
.facts { padding: 7rem 0 5rem; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); }
.fact-oligopoly { padding: 0 1.5rem; margin-bottom: 5rem; }
.fact-def-card {
  max-width: 860px; margin: 0 auto; text-align: center;
  border: 1px solid rgba(200,90,42,0.4); border-radius: 6px;
  padding: 3.2rem 2.6rem; position: relative;
  background: radial-gradient(ellipse at top, rgba(200,90,42,0.09), transparent 65%);
}
.fact-def-icon {
  position: absolute; top: -1.6rem; left: 50%; transform: translateX(-50%);
  width: 3.2rem; height: 3.2rem; background: var(--amber); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.5rem; color: var(--cream); font-weight: 700;
}
.fact-def-text {
  font-family: var(--serif); font-style: italic; font-size: 1.18rem;
  line-height: 1.8; color: var(--cream-dim); margin-top: 1.2rem;
}

/* Chart */
.chart-block { max-width: 1000px; margin: 0 auto 5rem; padding: 0 1.5rem; text-align: center; }
.chart-title { margin-bottom: 0.6rem; }
.chart-sub { color: var(--muted); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2rem; }
.chart-wrap { background: rgba(14,22,38,0.55); border: 1px solid rgba(141,153,179,0.15); border-radius: 6px; padding: 1.5rem 1rem 0.5rem; }
#dualChart { width: 100%; height: auto; }
.chart-legend { display: flex; gap: 2.2rem; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; }
.lg { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cream-dim); }
.lg i { width: 26px; height: 4px; border-radius: 2px; display: inline-block; }
.lg-amber i { background: var(--amber-bright); }
.lg-cream i { background: var(--cream); }
.chart-src { margin-top: 1.4rem; font-size: 0.72rem; color: var(--muted); max-width: 720px; margin-inline: auto; line-height: 1.5; }

/* Bankruptcy cards */
.bk-head { text-align: center; margin-bottom: 2.2rem; padding: 0 1.5rem; }
.bk-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
}
.bk-card {
  background: var(--navy-darker); border: 1px solid rgba(141,153,179,0.12);
  border-radius: 6px; padding: 1.8rem 1.2rem; text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.bk-card:hover { transform: translateY(-6px); border-color: var(--amber); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.bk-state { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; color: var(--muted); }
.bk-num { font-family: var(--display); font-size: 3.4rem; color: var(--amber-bright); line-height: 1.1; margin: 0.4rem 0; }
.bk-delta { font-size: 0.85rem; color: var(--cream-dim); }
.bk-note {
  text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--cream-dim); max-width: 700px; margin: 2.8rem auto 0; padding: 0 1.5rem;
}
.bk-note strong { color: var(--amber-bright); font-style: normal; }

/* CTA at the end of the facts section */
.facts-cta { text-align: center; margin-top: 4rem; padding: 0 1.5rem; }

/* Timeline */
.timeline-block { max-width: 820px; margin: 6rem auto 0; padding: 0 1.5rem; }
.section-subhead { text-align: center; margin-bottom: 3rem; }
.timeline { position: relative; padding-left: 2.4rem; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, rgba(200,90,42,0.15), var(--amber), rgba(200,90,42,0.15));
}
.tl-item { position: relative; padding-bottom: 2.6rem; }
.tl-dot {
  position: absolute; left: -2.4rem; top: 4px; width: 18px; height: 18px;
  background: var(--navy); border: 3px solid var(--amber); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200,90,42,0.15);
}
.tl-item-now .tl-dot { background: var(--amber-bright); animation: starPulse 2s ease-in-out infinite; }
.tl-date { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.06em; color: var(--amber-bright); }
.tl-body { color: var(--cream-dim); margin-top: 0.3rem; }
.tl-body strong { color: var(--cream); }

/* ---------- Photo breaks ---------- */
.photo-break { position: relative; height: 66vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.photo-break-tall { height: 80vh; }
.photo-break img {
  position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover;
  will-change: transform; top: -10%;
}
.photo-break::after { content: ''; position: absolute; inset: 0; background: rgba(19,29,51,0.55); }
.photo-break-quote { position: relative; z-index: 2; text-align: center; padding: 0 1.5rem; max-width: 900px; }
.photo-break-quote .serif-head { font-size: clamp(1.8rem, 4vw, 3rem); text-shadow: 0 4px 30px rgba(0,0,0,0.6); }
.photo-break-quote .btn { margin-top: 2rem; }

/* ---------- News ---------- */
.news { padding: 7rem 0; background: var(--navy); }
.ticker-wrap {
  overflow: hidden; border-top: 1px solid rgba(200,90,42,0.35); border-bottom: 1px solid rgba(200,90,42,0.35);
  padding: 0.9rem 0; margin-bottom: 3.5rem; background: rgba(14,22,38,0.5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker { display: flex; gap: 3rem; width: max-content; animation: tickerScroll 42s linear infinite; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker span { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.12em; color: var(--cream-dim); white-space: nowrap; }
.ticker span::after { content: '★'; color: var(--amber); margin-left: 3rem; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
}
.news-card {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--navy-deep); border: 1px solid rgba(141,153,179,0.14);
  border-radius: 6px; padding: 1.7rem; text-decoration: none; min-height: 190px;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.35s, box-shadow 0.35s;
  position: relative; overflow: hidden;
}
.news-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--amber); transform: scaleY(0); transform-origin: top; transition: transform 0.35s ease;
}
.news-card:hover { transform: translateY(-7px); border-color: rgba(200,90,42,0.55); box-shadow: 0 22px 44px rgba(0,0,0,0.45); }
.news-card:hover::before { transform: scaleY(1); }
.news-outlet {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.72rem; color: var(--amber-bright); margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.news-outlet .tag { border: 1px solid rgba(200,90,42,0.5); border-radius: 2px; padding: 0.1rem 0.45rem; }
.news-headline { font-family: var(--serif); font-size: 1.08rem; line-height: 1.45; color: var(--cream); font-weight: 700; }
.news-read { margin-top: 1.3rem; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; color: var(--muted); transition: color 0.3s; display: flex; align-items: center; gap: 0.4rem; }
.news-card:hover .news-read { color: var(--amber-bright); }
.news-read::after { content: '→'; transition: transform 0.3s; }
.news-card:hover .news-read::after { transform: translateX(5px); }

/* ---------- Video break ---------- */
.video-break { position: relative; min-height: 72vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vb-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vb-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(19,29,51,0.85) 20%, rgba(19,29,51,0.45)); }
.vb-copy { position: relative; z-index: 2; text-align: center; padding: 5rem 1.5rem; }
.vb-copy .big-head { color: var(--cream); }
.vb-copy .accent { color: var(--amber); }
.vb-copy .btn { margin-top: 2.4rem; }

/* ---------- Take Action / Wizard ---------- */
.action { padding: 7rem 1.5rem; background: linear-gradient(180deg, var(--navy-deep), var(--navy) 30%); }
.wizard {
  max-width: 860px; margin: 0 auto; background: var(--navy-darker);
  border: 1px solid rgba(141,153,179,0.16); border-radius: 10px;
  padding: clamp(1.6rem, 4vw, 3.2rem); box-shadow: 0 40px 100px rgba(0,0,0,0.45);
}
.wiz-progress { display: flex; align-items: center; margin-bottom: 2.8rem; }
.wiz-step-dot { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; position: relative; }
.wiz-step-dot span {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1.15rem; color: var(--muted);
  background: var(--navy-deep); transition: all 0.4s ease;
}
.wiz-step-dot label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); white-space: nowrap; position: absolute; top: 48px; transition: color 0.4s; }
.wiz-step-dot.active span, .wiz-step-dot.done span { border-color: var(--amber); color: var(--cream); background: var(--amber); box-shadow: 0 0 22px rgba(200,90,42,0.5); }
.wiz-step-dot.active label { color: var(--amber-bright); }
.wiz-bar { flex: 1; height: 2px; background: rgba(141,153,179,0.25); margin: 0 0.6rem; position: relative; top: -12px; overflow: hidden; }
.wiz-bar-fill { position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.6s ease; }
.wiz-bar.filled .wiz-bar-fill { transform: scaleX(1); }

.wiz-pane { display: none; animation: paneIn 0.55s cubic-bezier(0.16,1,0.3,1); }
.wiz-pane.active { display: block; }
@keyframes paneIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.wiz-q { text-align: center; margin: 1.6rem 0 0.8rem; }
.wiz-hint { text-align: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }

.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 2rem; }
.role-grid-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 560px; margin-inline: auto; }
.role-grid-3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); max-width: 760px; margin-inline: auto; }
.role-card {
  background: var(--navy-deep); border: 2px solid rgba(141,153,179,0.2); border-radius: 8px;
  padding: 1.8rem 1.2rem; cursor: pointer; text-align: center; color: var(--cream);
  font-family: var(--cond); transition: all 0.3s ease; display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
}
.role-card:hover { border-color: var(--amber); transform: translateY(-5px); box-shadow: 0 16px 38px rgba(0,0,0,0.4); }
.role-card.selected { border-color: var(--amber-bright); background: rgba(200,90,42,0.14); box-shadow: 0 0 0 3px rgba(200,90,42,0.25); }
.role-icon { font-size: 2.2rem; }
.role-name { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.05em; }
.role-desc { font-size: 0.85rem; color: var(--muted); }

.q-block { margin-bottom: 1.6rem; }
.q-label { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.02rem; margin-bottom: 0.6rem; color: var(--cream); line-height: 1.5; }
textarea, input[type="text"], input[type="email"], select {
  width: 100%; background: var(--navy-deep); color: var(--cream);
  border: 1.5px solid rgba(141,153,179,0.3); border-radius: 6px;
  font-family: var(--cond); font-size: 1rem; padding: 0.85rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s; resize: vertical;
}
textarea:focus, input:focus, select:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(200,90,42,0.2);
}
textarea::placeholder, input::placeholder { color: #5d6a86; font-style: italic; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.f-span2 { grid-column: span 2; }
.f-field label { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cream-dim); margin-bottom: 0.45rem; }
.req { color: var(--amber-bright); }
.opt { color: var(--muted); text-transform: none; letter-spacing: 0; }

.wiz-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; }
.wiz-err { color: #e88; text-align: center; margin-top: 0.9rem; min-height: 1.2em; font-size: 0.92rem; }

/* Step 4 */
.gen-loading { text-align: center; padding: 3rem 1rem; }
.gen-spinner { margin-bottom: 1.4rem; }
.gen-spinner .sd-star { font-size: 3rem; display: inline-block; animation: spinStar 1.6s ease-in-out infinite; }
@keyframes spinStar { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.3); } 100% { transform: rotate(360deg) scale(1); } }
.gen-sub { color: var(--muted); margin-top: 0.4rem; }
.mail-meta {
  background: var(--navy-deep); border: 1px solid rgba(141,153,179,0.2);
  border-radius: 6px 6px 0 0; padding: 1rem 1.2rem; font-size: 0.95rem;
  display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1.6rem;
}
.mm-label { color: var(--muted); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.15em; margin-right: 0.5rem; }
.mm-val { color: var(--amber-bright); font-weight: 700; }
#emailBody { border-radius: 0 0 6px 6px; border-top: none; font-size: 1.02rem; line-height: 1.65; }
.edit-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; font-style: italic; }
.send-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; justify-content: center; }
.copy-fallback {
  margin-top: 1.8rem; background: rgba(200,90,42,0.1); border: 1px solid rgba(200,90,42,0.4);
  border-radius: 6px; padding: 1.4rem 1.6rem; font-size: 0.98rem;
}
.copy-fallback ol { margin: 0.8rem 0 0 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; }
.copy-fallback code { background: var(--navy-deep); padding: 0.2rem 0.55rem; border-radius: 4px; color: var(--amber-bright); font-size: 0.92rem; }
.mini-copy {
  background: var(--amber); color: var(--cream); border: none; border-radius: 3px;
  font-family: var(--cond); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem; cursor: pointer; margin-left: 0.4rem; transition: background 0.25s;
}
.mini-copy:hover { background: var(--amber-bright); }
.sent-note { text-align: center; color: var(--amber-bright); font-family: var(--serif); font-style: italic; margin-top: 1.6rem; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-darker); padding: 4.5rem 1.5rem 3rem; text-align: center; }
.footer-name { font-family: var(--display); font-size: 1.7rem; letter-spacing: 0.1em; color: var(--cream); margin-top: 0.5rem; }
.footer-name em { font-style: normal; color: var(--amber-bright); }
.disclaimer {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.25em;
  font-size: 0.85rem; color: var(--cream-dim); margin-top: 2.2rem;
  border: 1px solid rgba(141,153,179,0.3); display: inline-block; padding: 0.6rem 1.6rem; border-radius: 3px;
}
.legal-small { max-width: 720px; margin: 1.8rem auto 0; font-size: 0.75rem; line-height: 1.7; color: var(--muted); }
.footer-links { margin-top: 1.4rem; }
.footer-links a {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.78rem; color: var(--muted); text-decoration: none; transition: color 0.25s;
}
.footer-links a:hover { color: var(--cream); }

/* ---------- Responsive ---------- */
/* Short screens: tighten the hero so it always fits in one screen */
@media (max-height: 760px) {
  .hero-content { padding: 5.5rem 1.5rem 4rem; }
  .hero-kicker { margin-bottom: 1.8rem; }
  .hero-line { font-size: clamp(2.6rem, 8.5vh, 6rem); }
  .hero-tagline { font-size: clamp(0.95rem, 2.6vh, 1.25rem); margin: 1rem auto 1.5rem; }
  .hero-content .star-divider { margin: 0.9rem auto; }
  .btn-lg { font-size: 1.15rem; padding: 0.75rem 2rem; }
  .scroll-cue { display: none; }
}
@media (max-height: 560px) {
  .hero-kicker { display: none; }
  .hero-line { font-size: clamp(2.2rem, 10vh, 4rem); }
}

@media (max-width: 900px) {
  .mission { grid-template-columns: 1fr; gap: 3.5rem; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .info-grid { grid-template-columns: 1fr; }
  .f-span2 { grid-column: span 1; }
  .wiz-step-dot label { display: none; }
  .photo-break { height: 52vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
