/* Motion layer: word-by-word scroll reveal, opposing photo rows, headline rise, magnetic buttons.
   Everything is progressive: without JS or with reduced motion the content simply shows. */

/* ---- manifesto: words light up as you scroll ---- */
.manifesto { position: relative; padding: clamp(72px, 12vw, 150px) 0; background: var(--grad-dusk, #3b1511); color: #fff5ec; overflow: hidden; }
.manifesto::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 85% 10%, rgba(229, 72, 58, .32), transparent 70%), radial-gradient(50% 60% at 5% 100%, rgba(255, 190, 80, .14), transparent 70%); }
.manifesto .container { position: relative; }
.manifesto-text { margin: 0; max-width: 22ch; font: 800 clamp(2.1rem, 6.2vw, 5rem)/1.04 var(--font-display); letter-spacing: -.045em; color: #fff5ec; }
@media (min-width: 900px) { .manifesto-text { max-width: 24ch; } }
.manifesto-text .w { opacity: .2; transition: opacity .35s ease, color .35s ease; }
.manifesto-text .w.on { opacity: 1; }
.manifesto-text .w.gold.on { color: #ffc65c; font-family: var(--font-editorial); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.manifesto-sub { margin: clamp(28px, 4vw, 48px) 0 0; max-width: 52ch; color: rgba(255, 245, 236, .78); font-size: 1.08rem; line-height: 1.65; }
.manifesto .btn { margin-top: 26px; }
html:not(.js) .manifesto-text .w, .reduce-motion .manifesto-text .w { opacity: 1; }

/* ---- two rows of horses sliding in opposite directions ---- */
.reel { padding: clamp(40px, 6vw, 80px) 0; overflow: hidden; background: var(--paper, #fff5ec); }
.reel-host { overflow: hidden; }
.reel-row { display: flex; gap: 16px; width: max-content; will-change: transform; padding: 8px 0; }
.reel-host + .reel-host { margin-top: 8px; }
.reel-card { position: relative; flex: none; width: clamp(200px, 26vw, 340px); aspect-ratio: 4 / 3; border-radius: 22px 22px 22px 6px; overflow: hidden; background: #5a1a14; box-shadow: var(--shadow-2); }
.reel-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.reel-card:hover img { transform: scale(1.06); }
.reel-card span { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: var(--r-pill); font: 700 .78rem/1 var(--font-body); color: var(--ink-strong);
  background: rgba(255, 251, 243, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.reel-card a { position: absolute; inset: 0; z-index: 2; }

/* ---- hero headline: words rise out of a soft blur ---- */
.hw { display: inline-block; animation: hw .9s var(--ease-out, cubic-bezier(.22, 1, .36, 1)) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes hw { from { opacity: 0; transform: translateY(.45em); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* ---- magnetic buttons + hero depth ---- */
.btn-brass { translate: var(--mgx, 0) var(--mgy, 0); }
.hero-photo { translate: var(--px, 0) var(--py, 0); transition: translate .5s var(--ease-out, ease-out); }

@media (prefers-reduced-motion: reduce) {
  .hw { animation: none; }
  .manifesto-text .w { opacity: 1; transition: none; }
  .btn-brass, .hero-photo { translate: none !important; }
}

/* ---- round two: layered panels, headings, light, unveil ---- */
/* statement band becomes an inset, rounded panel like the closing band */
.manifesto { margin: clamp(32px, 5vw, 72px) clamp(8px, 2vw, 28px) 0; border-radius: clamp(32px, 5vw, 64px); box-shadow: var(--shadow-3); }

/* asymmetric goal grid on wide screens: one lead tile, three supporting */
@media (min-width: 1000px) {
  .goal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .goal-grid li:first-child { grid-column: span 2; }
  .goal-grid li:first-child .goal-tile strong { font-size: 1.9rem; }
}

/* section headings: words rise in */
.hr-head .hr { display: inline-block; opacity: 0; transform: translateY(.5em); }
.hr-head.hr-in .hr { animation: hr-rise .8s var(--ease-out) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes hr-rise { from { opacity: 0; transform: translateY(.5em); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* light that follows the pointer */
.goal-tile, .value-card, .panel, .post { position: relative; overflow: clip; }
.goal-tile::after, .value-card::after, .panel::after, .post::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--dur-component);
  background: radial-gradient(260px circle at var(--lx, 50%) var(--ly, 0%), rgba(255, 255, 255, .55), transparent 65%); }
@media (hover: hover) { .goal-tile:hover::after, .value-card:hover::after, .panel:hover::after, .post:hover::after { opacity: 1; } }

/* horse photos unveil as their card scrolls in */
.reveal.in .arch img { animation: unveil 1s var(--ease-out) both; }
@keyframes unveil { from { transform: scale(1.14); filter: blur(8px); opacity: .2; } to { transform: scale(1); filter: blur(0); opacity: 1; } }

/* hero layers move with scroll, so promote them */
.hero-full .hero-photo, .hero-full .hero-copy { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .hr-head .hr { opacity: 1; transform: none; animation: none !important; }
  .reveal.in .arch img { animation: none; }
  .goal-tile::after, .value-card::after, .panel::after, .post::after { display: none; }
}
