/* ============================================================
   BARN RESCUE — styles
   Aesthetic: equestrian editorial. Deep hunter green, bone,
   brass accent. Fraunces display + Hanken Grotesk body.
   ============================================================ */

:root {
  --green:      #1c3027;   /* deep hunter */
  --green-2:    #23463a;
  --bone:       #f4efe4;   /* warm paper */
  --bone-2:     #eae2d1;
  --ink:        #1a1d1a;
  --brass:      #c08a2e;   /* accent */
  --brass-soft: #d9b06a;
  --cream-text: #efe7d6;
  --muted:      #6b6457;

  --display: "Fraunces", Georgia, serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 0.95em 1.8em; border-radius: 2px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .18s ease, background .18s ease, color .18s ease;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--brass); color: #2a1d05; }
.btn-primary:hover { background: var(--brass-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bone-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand-mark { color: var(--brass); font-size: 0.9rem; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-link {
  font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--muted);
  transition: color .18s;
}
.nav-link:hover { color: var(--green); }
.nav-cta {
  font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--green);
  border-bottom: 2px solid var(--brass); padding-bottom: 2px;
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(60px, 12vh, 140px) 0 clamp(48px, 9vh, 110px); }
.eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1.4rem;
}
h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.7rem, 8.5vw, 6.2rem); line-height: 0.98; letter-spacing: -0.025em;
  color: var(--green);
}
h1 .ital { font-style: italic; font-weight: 500; color: var(--brass); }
.lede {
  max-width: 40ch; margin-top: 1.8rem; font-size: clamp(1.05rem, 2.1vw, 1.32rem);
  color: var(--ink); line-height: 1.5;
}
.lede strong { color: var(--green); font-weight: 700; }
.hero-cta { display: flex; align-items: center; gap: 1.3rem 1.6rem; flex-wrap: wrap; margin-top: 2.6rem; }
.hero-cta-link {
  font-weight: 600; font-size: 0.96rem; color: var(--green); text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--brass) 55%, transparent); padding-bottom: 2px;
  transition: border-color .18s, color .18s;
}
.hero-cta-link:hover { color: var(--brass); border-color: var(--brass); }
.hero-cta-note { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

/* cinematic band under the hero */
.showband {
  width: 100%; height: clamp(220px, 44vw, 460px); overflow: hidden;
  border-block: 1px solid var(--bone-2); background: var(--green);
}
.showband img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; display: block; }

/* ---------- marquee ---------- */
.marquee {
  background: var(--green); color: var(--cream-text); overflow: hidden;
  padding: 1rem 0; border-block: 1px solid var(--green-2);
}
.marquee-track {
  display: inline-flex; gap: 1.4rem; white-space: nowrap;
  font-family: var(--display); font-style: italic; font-size: 1.35rem;
  animation: scroll 26s linear infinite;
}
.marquee-track .dot { color: var(--brass); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- blocks ---------- */
.block { padding: clamp(64px, 12vh, 130px) 0; }
.block-dark { background: var(--green); color: var(--cream-text); }
.section-tag {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1.1rem;
}
.section-tag.light { color: var(--brass-soft); }
.section-h {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.05; letter-spacing: -0.02em; color: var(--green);
}

.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); }
.col-sticky { position: sticky; top: 100px; align-self: start; }
.col-body p { font-size: clamp(1.05rem, 1.8vw, 1.2rem); margin-bottom: 1.3rem; max-width: 52ch; }
.pull {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem) !important; color: var(--green);
  border-left: 3px solid var(--brass); padding-left: 1.2rem; margin-top: 0.5rem;
}

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; margin-top: 2.4rem; }
.card {
  background: var(--green-2); border: 1px solid color-mix(in srgb, var(--brass) 30%, transparent);
  border-radius: 4px; padding: 2rem 1.8rem;
}
.card-num { font-family: var(--display); font-style: italic; color: var(--brass-soft); font-size: 1.3rem; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin: 0.6rem 0 0.7rem; color: #fff; }
.card p { color: color-mix(in srgb, var(--cream-text) 82%, transparent); font-size: 1rem; }
.fine-print { margin-top: 2.4rem; max-width: 60ch; color: color-mix(in srgb, var(--cream-text) 70%, transparent); font-size: 0.95rem; }

/* check list */
.check-list { list-style: none; display: grid; gap: 1.1rem; }
.check-list li {
  position: relative; padding-left: 2.2rem; font-size: clamp(1.05rem, 1.8vw, 1.2rem); max-width: 50ch;
}
.check-list li::before {
  content: "→"; position: absolute; left: 0; top: 0; color: var(--brass); font-weight: 700;
}
.col-body-light .check-list li { color: var(--cream-text); }

/* ---------- inline media figures ---------- */
.media { margin: 0; border-radius: 6px; overflow: hidden; background: var(--green-2);
  border: 1px solid color-mix(in srgb, var(--brass) 26%, transparent);
  box-shadow: 0 22px 50px -30px rgba(0,0,0,0.5); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-sticky { margin-top: 1.8rem; aspect-ratio: 4 / 3; }

/* ---------- the method / free book ---------- */
.method { background: var(--bone-2); }
.method-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-top: 2.4rem;
}
.ebook-cover { margin: 0; }
.ebook-cover a { display: block; border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(28,48,39,0.55); transition: transform .25s ease, box-shadow .25s ease; }
.ebook-cover a:hover { transform: translateY(-4px); box-shadow: 0 38px 70px -24px rgba(28,48,39,0.6); }
.ebook-cover img { width: 100%; display: block; }
.method-body .section-h { margin-bottom: 1.4rem; }
.method-body > p { font-size: clamp(1.05rem, 1.8vw, 1.18rem); margin-bottom: 1.1rem; max-width: 52ch; }
.method-body em { font-style: italic; color: var(--green); font-weight: 500; }
.method-list { margin: 1.6rem 0 1.8rem; }
.ebook-cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.6rem; }
.ebook-note { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.method-soft {
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid color-mix(in srgb, var(--green) 16%, transparent);
  font-size: 0.98rem; color: var(--muted); max-width: 54ch;
}
.method-soft strong { color: var(--green); }

/* ---------- gallery strip ---------- */
.section-tag.center { text-align: center; }
.gallery-band { padding: clamp(54px, 9vh, 96px) 0; background: var(--bone); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.7rem, 1.6vw, 1.1rem); margin-top: 1.8rem; }
.gallery figure { margin: 0; border-radius: 5px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--green-2); }
.gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease; filter: saturate(1.02);
}
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- apply ---------- */
.apply { background: var(--green); color: var(--cream-text); padding: clamp(64px, 12vh, 130px) 0; }
.apply-inner { max-width: 760px; }
.apply-head { text-align: center; margin-bottom: 3rem; }
.apply-h { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; letter-spacing: -0.02em; }
.apply-sub { margin: 1rem auto 0; max-width: 46ch; color: color-mix(in srgb, var(--cream-text) 78%, transparent); }

/* progress */
.progress { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 2.6rem; flex-wrap: wrap; }
.progress-step {
  display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; font-weight: 600;
  color: color-mix(in srgb, var(--cream-text) 50%, transparent); transition: color .25s;
}
.progress-step span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: 0.85rem;
}
.progress-step.active { color: var(--brass-soft); }
.progress-step.done { color: var(--cream-text); }
.progress-step.done span { background: var(--brass); color: #2a1d05; border-color: var(--brass); }
.progress-line { width: 28px; height: 1.5px; background: color-mix(in srgb, var(--cream-text) 30%, transparent); }

/* form */
.step { border: none; display: none; animation: fade .35s ease; }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--cream-text); }
.opt { font-weight: 400; color: color-mix(in srgb, var(--cream-text) 55%, transparent); }
input, textarea {
  width: 100%; font-family: var(--body); font-size: 1.05rem; color: #fff;
  background: color-mix(in srgb, #fff 6%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--cream-text) 22%, transparent);
  border-radius: 3px; padding: 0.85em 0.95em; transition: border .18s, background .18s;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--brass);
  background: color-mix(in srgb, #fff 9%, transparent);
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--cream-text) 40%, transparent); }
.hint { font-size: 0.85rem; color: color-mix(in srgb, var(--cream-text) 62%, transparent); margin-top: 0.4rem; }

.money { position: relative; display: flex; align-items: center; }
.money span {
  position: absolute; left: 0.95em; font-size: 1.05rem; font-weight: 600;
  color: var(--brass-soft); pointer-events: none;
}
.money input { padding-left: 2em; }

.field.invalid input, .field.invalid textarea { border-color: #e0795f; }

.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; gap: 1rem; }
.step-nav .btn { flex-shrink: 0; }

/* success */
.success { text-align: center; padding: 2rem 0; animation: fade .4s ease; }
.success-mark {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--brass); color: #2a1d05; font-size: 2rem; margin-bottom: 1.2rem;
}
.success h3 { font-family: var(--display); font-size: 1.9rem; color: #fff; margin-bottom: 0.6rem; }
.success p { max-width: 44ch; margin: 0 auto; color: color-mix(in srgb, var(--cream-text) 80%, transparent); }

.form-error {
  margin-top: 1.2rem; text-align: center; color: #f0a78f; font-weight: 600; font-size: 0.95rem;
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--bone-2); padding: 2.4rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer .brand-name { color: var(--bone); }
.footer-fine { font-size: 0.85rem; color: color-mix(in srgb, var(--bone-2) 55%, transparent); }

/* ---------- reveal animations ---------- */
.reveal, .reveal-up { opacity: 0; }
.reveal { animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .1s; }
.reveal.d2 { animation-delay: .22s; }
.reveal.d3 { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.reveal-up { transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal-up.d1 { transition-delay: .12s; }
.reveal-up.d2 { transition-delay: .24s; }
.reveal-up.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 1.6rem; }
  .col-sticky { position: static; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .person { grid-template-columns: 1fr; gap: 1.8rem; }
  .person-host .person-photo { max-width: 320px; }
  .method-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ebook-cover { max-width: 300px; }
  .media-sticky { max-width: 460px; }
}
@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .progress-step { font-size: 0; gap: 0; }
  .progress-step span { font-size: 0.85rem; }
  .progress-line { width: 18px; }
  .step-nav { flex-direction: column-reverse; }
  .step-nav .btn { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .hero-cta-link { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 1rem; }
  .ebook-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
}

/* ---------- people: producer + host ---------- */
.person {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: 2.4rem;
}
.person-body p {
  font-size: clamp(1.02rem, 1.7vw, 1.18rem); line-height: 1.6;
  margin-bottom: 1.1rem; max-width: 56ch;
}
.person-name {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04;
  font-size: clamp(2rem, 4.4vw, 3rem); color: var(--green);
}
.person-name.light { color: #fff; }
.person-role {
  font-family: var(--display); font-style: italic; font-size: 1.15rem;
  color: var(--brass); margin: 0.35rem 0 1.1rem;
}
.person-role.light { color: var(--brass-soft); }

/* broadcaster credits */
.credits { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.4rem; padding: 0; }
.credits span {
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); background: color-mix(in srgb, var(--brass) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--brass) 38%, transparent);
  padding: 0.32em 0.7em; border-radius: 2px;
}

/* showreel embed (16:9) */
.reel-embed {
  position: relative; width: 100%; padding-top: 56.25%; overflow: hidden;
  border-radius: 6px; background: #000;
  border: 1px solid color-mix(in srgb, var(--brass) 28%, transparent);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.55);
}
.reel-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-link {
  display: inline-block; margin-top: 0.95rem; font-weight: 600; font-size: 0.92rem;
  color: var(--brass); text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--brass) 45%, transparent); padding-bottom: 2px;
}
.reel-link:hover { color: var(--green); }

/* host photo (with graceful fallback to initials) */
.person-photo {
  position: relative; aspect-ratio: 4 / 5; max-width: 420px; overflow: hidden;
  border-radius: 6px; background: var(--green-2);
  border: 1px solid color-mix(in srgb, var(--brass) 30%, transparent);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-photo-fallback {
  width: 100%; height: 100%; align-items: center; justify-content: center;
  font-family: var(--display); font-style: italic; font-size: 4rem; color: var(--brass-soft);
}
