/* Public website of Mein Rinderbestand. Brand tokens from app/static/app.css. */
:root {
  --forest: #193f32;
  --forest-deep: #0f2a20;
  --night: #0b1f18;
  --green: #2f6249;
  --mint: #e9f0e6;
  --cream: #f5f5ef;
  --paper: #fbfcf7;
  --ink: #243b31;
  --muted: #657369;
  --line: #dfe5dc;
  --gold: #bc8726;
  --gold-light: #d9a440;
  --sand: #e2c78f;
  --on-dark: #f3f6ef;
  --on-dark-muted: #c9d6c8;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
  --header: 64px;
  --stage: calc(100vh - var(--header));
  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-device: 0 40px 90px rgba(10, 30, 22, .35), 0 12px 30px rgba(10, 30, 22, .25);
}

@supports (height: 100svh) { :root { --stage: calc(100svh - var(--header)); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(44px, 8vw, 104px); letter-spacing: -.035em; }
h2 { font-size: clamp(34px, 5.4vw, 68px); }
h3 { font-size: clamp(26px, 3.4vw, 42px); }
p { margin: 0; text-wrap: pretty; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.lead { font-size: clamp(18px, 1.9vw, 23px); line-height: 1.45; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.button:hover { transform: translateY(-1px); }
.button-gold { background: var(--gold); color: #fff; box-shadow: 0 10px 26px rgba(188, 135, 38, .35); }
.button-gold:hover { background: #a87720; }
.button-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.button-ghost:hover { background: rgba(255, 255, 255, .12); }
.button-light { background: var(--cream); color: var(--forest); }
.button-light:hover { background: #fff; }
.button-small { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: var(--header); padding: 0 var(--gutter);
  color: #fff;
  background: rgba(15, 42, 32, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  transition: background-color .35s;
}
.motion .site-header:not(.is-solid) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.site-nav a { text-decoration: none; color: rgba(255, 255, 255, .82); }
.site-nav a:hover { color: #fff; }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-header .button { margin-left: auto; }
}

/* devices (CSS mockups; real app screenshots inside) */
.device { position: relative; }
.phone {
  --pw: 300px;
  width: var(--pw);
  padding: calc(var(--pw) * .032);
  border-radius: calc(var(--pw) * .165);
  background: linear-gradient(145deg, #2b302d, #0e100f 40%, #1c201e);
  box-shadow: var(--shadow-device), inset 0 0 0 2px #3d4440, inset 0 0 0 4px #0b0c0c;
}
.phone::before, .phone::after {
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2f2c;
}
.phone::before { left: -3px; top: 22%; height: 9%; }
.phone::after { right: -3px; top: 28%; height: 14%; }
.phone-screen { position: relative; overflow: hidden; border-radius: calc(var(--pw) * .135); background: var(--paper); }
.statusbar {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--pw) * .1); padding: 0 calc(var(--pw) * .085);
  font-size: calc(var(--pw) * .042); font-weight: 700; color: #111;
  background: var(--paper);
}
.island { position: absolute; left: 50%; top: 22%; width: 31%; height: 52%; margin-left: -15.5%; border-radius: 99px; background: #0b0c0c; }
.status-icons {
  width: calc(var(--pw) * .13); height: calc(var(--pw) * .035);
  background:
    linear-gradient(#111, #111) 0 100% / 12% 40% no-repeat,
    linear-gradient(#111, #111) 18% 100% / 12% 65% no-repeat,
    linear-gradient(#111, #111) 36% 100% / 12% 100% no-repeat,
    linear-gradient(#111, #111) 100% 50% / 38% 100% no-repeat;
  border-radius: 2px;
}
.phone-view { position: relative; overflow: hidden; aspect-ratio: 390 / 844; background: var(--paper); }
.phone-view > img { position: absolute; inset: 0 0 auto; width: 100%; height: auto; }
.phone-static { padding: calc(var(--pw) * .032); }
.phone-static .phone-view { border-radius: calc(var(--pw) * .135); }
.tablet {
  width: 100%;
  padding: 2.2%;
  border-radius: 4.2% / 6%;
  background: linear-gradient(145deg, #2b302d, #0e100f 40%, #1c201e);
  box-shadow: var(--shadow-device), inset 0 0 0 2px #3d4440;
}
.tablet-view { position: relative; overflow: hidden; aspect-ratio: 1180 / 820; border-radius: 1.6% / 2.3%; background: var(--paper); }
.tablet-view > img { position: absolute; inset: 0 0 auto; width: 100%; height: auto; }
.laptop .lid {
  padding: 1.8% 1.8% 2.6%;
  border-radius: 18px 18px 4px 4px;
  background: linear-gradient(#232825, #0f1110);
  box-shadow: var(--shadow-device), inset 0 0 0 2px #3a403c;
}
.laptop-view { position: relative; overflow: hidden; aspect-ratio: 1440 / 900; border-radius: 4px; background: var(--paper); }
.laptop-view > img { position: absolute; inset: 0 0 auto; width: 100%; }
.laptop .base { position: relative; height: 16px; margin: 0 -7%; border-radius: 0 0 18px 18px; background: linear-gradient(#dfe2de, #9ea29e); box-shadow: 0 18px 30px rgba(10, 30, 22, .25); }
.laptop .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; margin-left: -8%; border-radius: 0 0 10px 10px; background: #868a86; }

/* highlight rings on screenshots */
.ring {
  position: absolute; z-index: 5; display: none;
  border-radius: 14px;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px rgba(188, 135, 38, .22), 0 0 40px rgba(188, 135, 38, .45);
  pointer-events: none;
}

/* ---------- 1 hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-content: center; justify-items: center;
  padding: 120px var(--gutter) 0;
  color: #fff; text-align: center;
  background: var(--forest-deep);
}
.hero-layers, .layer { position: absolute; inset: 0; }
.layer { background-repeat: no-repeat; background-position: center bottom; background-size: cover; will-change: transform; }
.hero-sky { background-image: url("../assets/photos/ki-01-weide-morgen.webp"), linear-gradient(#2f4a3f, #c9a25c 70%, #4b6b45); background-position: center 70%; inset: -6% -4% -4%; }
.hero-hills, .hero-herd { background-size: 100% auto; background-position: center bottom; }
/* soft mist drawn in CSS: no image edge can show at any screen width */
.hero-mist {
  inset: auto -15% 10% -15%; height: 46%;
  background:
    radial-gradient(ellipse 38% 46% at 24% 58%, rgba(246, 238, 222, .5), rgba(246, 238, 222, 0) 72%),
    radial-gradient(ellipse 34% 40% at 58% 64%, rgba(246, 238, 222, .42), rgba(246, 238, 222, 0) 72%),
    radial-gradient(ellipse 30% 44% at 86% 54%, rgba(246, 238, 222, .38), rgba(246, 238, 222, 0) 72%),
    linear-gradient(to top, rgba(246, 238, 222, 0), rgba(246, 238, 222, .18) 45%, rgba(246, 238, 222, 0));
  filter: blur(14px);
}
/* progress rail: one bar per section, the active one grows and shows its steps */
.rail { display: none; }
/* desktop: a column on the left that continues the header; content keeps clear of it */
@media (min-width: 900px) {
  .motion { --gutter: clamp(84px, 6vw, 96px); }
}
.motion .rail {
  position: fixed; z-index: 60; left: 0; top: 64px; bottom: 0; width: 56px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 9px;
  padding: 20px 0 20px 20px;
  color: #fff;
  background: rgba(15, 42, 32, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  transition: background-color .35s;
}
.motion .rail:not(.is-solid) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.rail-item { position: relative; display: flex; align-items: flex-start; gap: 9px; text-decoration: none; color: inherit; }
.rail-track {
  position: relative; display: block; flex: none; width: 3px; height: 16px; border-radius: 3px;
  background: rgba(255, 255, 255, .32);
  transition: height .45s cubic-bezier(.2, .7, .2, 1), width .3s;
}
.rail-fill {
  position: absolute; inset: 0; border-radius: inherit; background: var(--gold-light);
  transform: scaleY(var(--p, 0)); transform-origin: 50% 0;
}
.rail-item.is-active .rail-track { width: 4px; height: 130px; }
.rail-tick {
  position: absolute; left: 50%; top: calc(var(--at) * 100%);
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: rgba(15, 42, 32, .9); border: 1.5px solid rgba(255, 255, 255, .7);
  opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s, background-color .3s, border-color .3s;
}
.rail-item.is-active .rail-tick { opacity: 1; transform: scale(1); }
.rail-tick.is-done { background: var(--gold-light); border-color: var(--gold-light); }
/* the label runs upwards next to the active bar, inside the column */
.rail-label {
  display: none; gap: 8px; align-items: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
  white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.rail-step { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--sand); }
.rail-step:empty { display: none; }
.rail-item.is-active .rail-label { display: flex; animation: rail-label-in .4s ease-out; }
.rail-item:not(.is-active):hover .rail-track { background: rgba(255, 255, 255, .7); }
@keyframes rail-label-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 899px) {
  /* phone: one thin line of segments along the lower edge of the header */
  .motion .rail {
    top: 60px; bottom: auto; right: 0; left: 0; width: auto; height: 4px;
    flex-direction: row; align-items: stretch; gap: 3px;
    padding: 0 var(--gutter); background: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none;
  }
  .motion .rail:not(.is-solid) { background: none; }
  .rail-item { flex: 1; }
  .rail-track, .rail-item.is-active .rail-track { width: 100%; height: 3px; background: rgba(255, 255, 255, .3); }
  .rail-fill { transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
  .rail-tick, .rail-label, .rail-item.is-active .rail-label { display: none; }
}
/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
@media (max-aspect-ratio: 4 / 3) {
  .hero-hills { background-size: auto 46%; }
  .hero-herd { background-size: auto 34%; }
}
.hero-shade {
  background:
    linear-gradient(180deg, rgba(11, 31, 24, .72) 0%, rgba(11, 31, 24, .35) 38%, rgba(11, 31, 24, .1) 60%, rgba(11, 31, 24, .55) 100%);
}
.hero-copy { position: relative; z-index: 3; max-width: 900px; }
.hero h1 { text-shadow: 0 4px 40px rgba(0, 0, 0, .35); }
.hero h1 .line { display: inline-block; }
.hero .eyebrow { color: var(--sand); }
.hero .lead { max-width: 640px; margin: 22px auto 0; color: #eef3ea; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.hero .actions { justify-content: center; }
.scroll-hint { position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%); display: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.scroll-hint span::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(rgba(255, 255, 255, .8), transparent); }
.motion .scroll-hint { display: block; }

/* ---------- 3 story ---------- */
.story { position: relative; background: var(--cream); }
.story-stage { position: relative; max-width: var(--max); margin: 0 auto; padding: 100px var(--gutter); }
.story-device { display: none; }
/* without motion the start picture sits full width above the chapters */
.story-stage > .hero { margin: -100px calc(50% - 50vw) 100px; }
.chapters { display: grid; gap: 110px; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: center; }
.chapter > * { grid-column: 1; }
.chapter h3 { font-size: clamp(32px, 4.4vw, 58px); color: var(--forest); }
.chapter > p:not(.eyebrow) { margin-top: 18px; max-width: 540px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.chapter-shot { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
.chapter-shot .phone { --pw: 280px; }
@media (max-width: 760px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter-shot { grid-column: 1; grid-row: auto; justify-self: center; margin-top: 18px; }
  .chapter-shot .phone { --pw: min(280px, 76vw); }
}

/* ---------- 4 breeding ---------- */
.breeding { position: relative; background: var(--cream); }
.breeding-stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: center; max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter); }
.breeding-step h2, .breeding-step h3 { color: var(--forest); }
.breeding-step > p:not(.eyebrow) { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.breeding-step + .breeding-step { margin-top: 64px; }
.breeding-device { perspective: 1600px; }
/* the tablet shows the family tree part of the screenshot, nothing scrolls in it */
.tablet-img { transform: translateY(-19.7%); }
@media (max-width: 900px) {
  .breeding-stage { grid-template-columns: 1fr; }
}

/* ---------- 5 pasture ---------- */
.pasture { position: relative; color: #fff; background: #23402f; }
.pasture-stage { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding: 120px max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.pasture-bg { position: absolute; inset: 0; background: url("../assets/photos/ki-13-luftbild-weiden.webp") center / cover no-repeat, #2f5a3b; will-change: transform; }
.pasture-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 31, 24, .82) 0%, rgba(11, 31, 24, .45) 45%, rgba(11, 31, 24, .1) 100%); }
.pasture-copy { position: relative; z-index: 3; max-width: 520px; }
.pasture-copy .eyebrow { color: var(--sand); }
.pasture-copy p:not(.eyebrow) { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: #e4ece2; }
.pasture-device { position: relative; z-index: 3; }
.pasture-device .phone { --pw: 280px; }
.pasture-copy { grid-column: 1; grid-row: 1; }
.pasture-device { grid-column: 2; grid-row: 1 / span 2; }
.pins { position: relative; z-index: 3; grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 10px; align-self: start; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.pin {
  position: relative; display: grid; padding: 8px 14px 8px 34px; border-radius: 12px;
  font-size: 14px; line-height: 1.25; color: var(--ink); background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
.pin::before { content: ""; position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50% 50% 50% 0; background: var(--gold); transform: rotate(-45deg); }
.pin span { font-size: 12px; color: var(--muted); }
.motion .pins { position: absolute; inset: 0; z-index: 2; display: block; grid-column: auto; grid-row: auto; align-self: stretch; justify-self: stretch; }
.motion .pin { position: absolute; transform: translate(-14px, -50%); }
.motion .pin[data-pin="1"] { left: 25%; top: 30%; }
.motion .pin[data-pin="2"] { left: 58%; top: 52%; }
.motion .pin[data-pin="3"] { left: 30%; top: 76%; }
@media (max-width: 900px) {
  .pasture-stage { grid-template-columns: 1fr; justify-items: center; padding-top: 100px; }
  .pasture-copy, .pins { justify-self: start; }
  .pasture-device { grid-column: 1; grid-row: 3; }
  .motion .pin[data-pin="1"] { left: 48%; top: 44%; }
  .motion .pin[data-pin="2"] { left: 10%; top: 55%; }
  .motion .pin[data-pin="3"] { left: 38%; top: 66%; }
}

/* ---------- 6 HIT ---------- */
.hit { position: relative; background: var(--cream); }
.hit-stage { max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter); }
.hit-intro { max-width: 640px; }
.hit-intro h2 { color: var(--forest); }
.hit-intro p:not(.eyebrow) { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.hit-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 56px; }
.hit-card { display: grid; gap: 22px; align-content: start; padding: 26px; border-radius: 28px; background: #fff; box-shadow: 0 20px 50px rgba(25, 63, 50, .08); }
.hit-card .phone { --pw: 220px; justify-self: center; }
.hit-text h3 { font-size: 22px; letter-spacing: -.01em; color: var(--forest); }
.hit-text p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.step { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; font-size: 15px; font-weight: 700; color: #fff; background: var(--gold); }

/* ---------- 10 call to action ---------- */
.cta { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 56px; padding: 150px var(--gutter) 90px; color: #fff; text-align: center; background: var(--forest-deep); }
.cta-bg { position: absolute; inset: -10% 0 0; background: url("../assets/photos/ki-07-mutterkuehe-kaelber.webp") center 40% / cover no-repeat, var(--forest); will-change: transform; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 31, 24, .82) 0%, rgba(11, 31, 24, .6) 50%, rgba(11, 31, 24, .9) 100%); }
.cta::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: min(45vh, 380px); background: linear-gradient(180deg, var(--cream) 0%, rgba(245, 245, 239, .55) 45%, rgba(245, 245, 239, 0) 100%); pointer-events: none; }
.cta-inner, .insta { z-index: 2; }
.cta-inner { position: relative; max-width: 760px; }
.cta .eyebrow { color: var(--sand); }
.cta .lead { margin-top: 20px; color: #e8efe5; }
.cta .actions { justify-content: center; }
.insta {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px 22px; align-items: center;
  width: min(820px, 100%); padding: 22px 26px; border-radius: 24px; text-align: left;
  background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.insta-icon { width: 44px; height: 44px; color: var(--sand); }
.insta h3 { font-size: 21px; letter-spacing: -.01em; }
.insta p { margin-top: 4px; font-size: 15px; color: #dce6da; }
@media (max-width: 700px) {
  .insta { grid-template-columns: auto 1fr; }
  .insta .button { grid-column: 1 / -1; }
}

/* footer */
.site-footer { color: var(--on-dark-muted); background: var(--night); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter); font-size: 15px; }
.site-footer .brand { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-left: auto; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.footer-inner .note { flex-basis: 100%; font-size: 13px; color: #8fa496; }

/* legal pages */
.legal-page { padding: 120px var(--gutter) 80px; background: var(--paper); min-height: 70vh; }
.legal-page article { max-width: 760px; margin: 0 auto; }
.legal-page h1 { font-size: clamp(36px, 5vw, 56px); color: var(--forest); margin-bottom: 28px; }
.legal-page h2 { font-size: 26px; margin: 36px 0 12px; color: var(--forest); }
.legal-page h3 { font-size: 20px; margin: 26px 0 10px; color: var(--forest); }
.legal-page p, .legal-page ul { margin: 0 0 14px; color: var(--ink); }
.legal-page a { color: var(--green); }
.legal-pending { padding: 18px 22px; border-radius: 16px; background: var(--mint); font-weight: 600; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--green); font-weight: 600; text-decoration: none; }

/* ======================================================================
   Motion layout: only with JavaScript, GSAP and without prefers-reduced-motion
   (html.motion is set by js/early.js and removed again if GSAP is missing)
   ====================================================================== */
.motion .hero { padding-top: 0; align-content: start; }
.motion .hero-copy { margin-top: max(17vh, 110px); }

/* pinned scenes stop right below the header, never behind it */
.motion .breeding-stage, .motion .pasture-stage, .motion .hit-stage { height: var(--stage); min-height: 0; }
.motion .pasture { background: var(--cream); }
/* cream veils dissolve the dark photo scenes into the light page instead of a hard edge */
.veil { position: absolute; z-index: 4; left: 0; right: 0; height: 100%; pointer-events: none; }
.veil-in { top: 0; background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 30%, rgba(245, 245, 239, .6) 62%, rgba(245, 245, 239, 0) 100%); }
.veil-out { bottom: 0; height: 62%; background: linear-gradient(0deg, var(--cream) 0%, var(--cream) 24%, rgba(245, 245, 239, .6) 55%, rgba(245, 245, 239, 0) 100%); }
.hero .veil-out { z-index: 1; }
/* the feature story starts with the full screen start picture under the transparent header,
   so it pins at the very top; its phone and chapters keep clear of the header */
.motion .story-stage { height: 100vh; height: 100svh; max-width: none; padding: 0; overflow: hidden; }
.motion .story .hero { position: absolute; z-index: 1; inset: 0; min-height: 0; margin: 0; }
.motion .story-device { display: block; position: absolute; z-index: 2; left: 62%; top: calc(50% + var(--header) / 2); perspective: 1600px; }
.motion .story-device .phone { --pw: min(320px, (var(--stage) - 90px) / 2.17); transform: translate(-50%, -50%); }
.motion .story-device .screen { position: absolute; inset: 0 0 auto; width: 100%; opacity: 0; }
.motion .ring { display: block; opacity: 0; }
.motion .chapters { position: absolute; z-index: 3; inset: 0; display: block; pointer-events: none; }
.motion .chapter { position: absolute; left: max(var(--gutter), calc((100vw - var(--max)) / 2)); top: calc(50% + var(--header) / 2); width: min(44vw, 520px); display: block; opacity: 0; visibility: hidden; transform: translateY(-50%); }
.motion .chapter-shot { display: none; }
.beats { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; font-size: clamp(17px, 1.45vw, 20px); font-weight: 600; color: var(--ink); }
.beats li { position: relative; padding-left: 26px; }
.beats li::before { content: ""; position: absolute; left: 0; top: .48em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(188, 135, 38, .18); }
@media (max-width: 899px) {
  .motion .story-device { left: 50%; top: calc(var(--header) + 12px + 27svh); }
  .motion .story-device .phone { --pw: min(320px, 52svh / 2.17, 62vw); }
  .motion .chapter { left: var(--gutter); right: var(--gutter); top: auto; bottom: 26px; width: auto; transform: none; padding: 18px 20px; border-radius: 22px; background: rgba(251, 252, 247, .94); box-shadow: 0 16px 40px rgba(25, 63, 50, .14); }
  .motion .chapter h3 { font-size: 26px; }
  .motion .chapter > p:not(.eyebrow) { margin-top: 8px; font-size: 15px; line-height: 1.45; }
  .motion .chapter .eyebrow { margin-bottom: 6px; }
  .motion .beats { margin-top: 10px; gap: 6px; font-size: 15px; }
  .motion .beats li { padding-left: 20px; }
  .motion .beats li::before { width: 8px; height: 8px; }
  .motion .chapter h3 br { display: none; }
}

.motion .breeding-stage { padding-top: 24px; padding-bottom: 32px; }
.motion .breeding-copy { position: relative; align-self: stretch; }
.motion .breeding-step { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.motion .breeding-step + .breeding-step { margin-top: 0; opacity: 0; visibility: hidden; }
.motion .breeding-device .tablet { transform-origin: 50% 50%; }
@media (max-width: 900px) {
  .motion .breeding-stage { grid-template-rows: auto 1fr; gap: 20px; padding-top: 16px; }
  .motion .breeding-device { order: -1; width: min(560px, 100%); justify-self: center; }
  .motion .breeding-step { top: 0; transform: none; }
  .motion .breeding-step > p:not(.eyebrow) { margin-top: 10px; font-size: 16px; }
  .motion .breeding-step h2, .motion .breeding-step h3 { font-size: 30px; }
}

.motion .pasture-stage { padding-top: 32px; padding-bottom: 32px; }
.motion .pin { opacity: 0; }
.motion .pasture-device { grid-column: auto; grid-row: auto; position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2)); top: 50%; transform: translateY(-50%); }
.motion .pasture-device .phone { --pw: min(300px, (var(--stage) - 100px) / 2.17); }
@media (max-width: 900px) {
  .motion .pasture-stage { align-content: start; }
  .motion .pasture-device { right: auto; left: 50%; top: auto; bottom: 20px; transform: translateX(-50%); }
  .motion .pasture-device .phone { --pw: min(230px, 46svh / 2.17); }
}

.motion .hit-stage { max-width: none; padding: 36px 0 24px; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.motion .hit-intro { max-width: none; padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.motion .hit-intro > * { max-width: 640px; }
.motion .hit-track { display: flex; gap: 28px; margin-top: 28px; padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2)); align-items: stretch; width: max-content; justify-self: start; }
.motion .hit-card { width: min(560px, 84vw); grid-template-columns: auto 1fr; align-items: center; }
.motion .hit-card .phone { --pw: min(220px, (100svh - 340px) / 2.17); }
@media (max-width: 700px) {
  .motion .hit-stage { padding-top: 20px; }
  .motion .hit-intro h2 { font-size: 32px; }
  .motion .hit-intro p:not(.eyebrow) { margin-top: 8px; font-size: 15px; }
  .motion .hit-card { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .motion .hit-card .phone { --pw: min(170px, (100svh - 470px) / 2.17); }
  .motion .hit-text h3 { font-size: 19px; }
  .motion .hit-text p { font-size: 14px; }
  .motion .step { width: 26px; height: 26px; margin-bottom: 6px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
