/* Run8 Equisports — site styles
   Type is built from the logo: Source Sans 3, light display weights,
   and the wide letterspacing of "Equisports" for labels. */

:root {
  --bg: #121412;          /* fir-black */
  --bg-2: #191C19;
  --bg-3: #212521;
  --text: #ECE8DF;        /* bone */
  --muted: #A6A59C;
  --line: rgba(236, 232, 223, .14);
  --line-2: rgba(236, 232, 223, .3);
  --maple: #D2654B;       /* the red maple at the gate */
  --bone: #ECE8DF;
  --ink: #121412;
  --ink-muted: #4F524B;
  --ink-line: rgba(18, 20, 18, .16);

  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --display: var(--sans);
  --display-w: 250;

  --gutter: clamp(20px, 3.4vw, 52px);
  --max: 1440px;
  --section: clamp(44px, 4.8vw, 84px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--maple); outline-offset: 3px; }
::selection { background: var(--maple); color: var(--bg); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--ink); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--tight { padding-top: calc(var(--section) * .6); padding-bottom: calc(var(--section) * .6); }
.rule { border-top: 1px solid var(--line); }

/* ---------- Type ---------- */
.d1, .d2, .d3, .numeral, .lk-main {
  font-family: var(--display);
  font-weight: var(--display-w);
  letter-spacing: -.025em;
  font-optical-sizing: auto;
}
.d1 { font-size: clamp(44px, 6.4vw, 104px); line-height: .9; letter-spacing: -.035em; }
.d2 { font-size: clamp(28px, 3.3vw, 50px); line-height: 1.02; }
.d3 { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; }
.numeral { font-size: clamp(64px, 6vw, 100px); line-height: .78; letter-spacing: -.045em; font-weight: 200; }
.lede { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.5; font-weight: 300; max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Labels take the logo's letterspacing ("E q u i s p o r t s") */
.label {
  font-size: 13px;
  letter-spacing: .32em;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}
.label--maple { color: var(--maple); }

/* Lockup: a big word over a letterspaced line, like the logo */
.lockup { display: flex; flex-direction: column; gap: .5em; }
.lk-main { display: block; font-size: clamp(42px, 6.2vw, 100px); line-height: .86; letter-spacing: -.035em; }
.lk-sub { display: block; font-size: clamp(13px, 1.1vw, 17px); letter-spacing: .38em; color: var(--muted); font-weight: 400; padding-left: .3em; }
.lockup--md .lk-main { font-size: clamp(32px, 3.6vw, 56px); }
.lockup--sm .lk-main { font-size: clamp(28px, 3vw, 44px); }
.lockup--sm .lk-sub { font-size: 13px; letter-spacing: .32em; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent;
  font-size: 15px; letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { border-color: var(--text); }
.btn--solid { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn--solid:hover { background: #fff; border-color: #fff; }
.btn--ink { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--ink:hover { background: #000; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 16px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.arrow-link::after { content: "→"; transition: transform .25s var(--ease); }
.arrow-link:hover { border-color: var(--text); }
.arrow-link:hover::after { transform: translateX(4px); }

.tbd { /* placeholder the owner still needs to fill */
  display: inline-block; padding: 0 .4em; border: 1px dashed currentColor; border-radius: 4px;
  font-size: .92em; opacity: .85; white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; }
.site-header--over { position: absolute; top: 0; left: 0; right: 0; }
.nav {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
}
.brand { display: inline-flex; position: relative; z-index: 32; }
.brand img { height: 40px; width: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; font-size: 15px; letter-spacing: .03em; }
.nav-list a { text-decoration: none; display: inline-block; padding: 10px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav-list a:hover { border-color: var(--line-2); }
.nav-list a[aria-current="page"] { border-color: var(--maple); }
.nav-list .nav-cta a { padding: 10px 20px; border: 1px solid var(--line-2); border-radius: 999px; }
.nav-list .nav-cta a:hover, .nav-list .nav-cta a[aria-current="page"] { border-color: var(--text); }
/* Dropdowns (Breeding, Young Horses): hover on desktop, the chevron button for click, touch and keyboard */
.has-sub { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.has-sub.is-section > a { border-color: var(--maple); }
.sub-btn {
  display: inline-grid; place-items: center; width: 22px; height: 32px; margin-right: -6px; padding: 0;
  border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer;
}
.sub-btn:hover { color: var(--text); }
.sub-btn svg { transition: transform .2s var(--ease); }
.has-sub.is-open .sub-btn svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 6px); left: -18px; z-index: 40;
  min-width: 210px; margin: 0; padding: 8px 0; list-style: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* keeps hover alive across the gap */
.has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (min-width: 981px) {
  .has-sub:hover > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-sub:hover .sub-btn svg { transform: rotate(180deg); }
}
.nav-list .sub a { display: block; padding: 8px 18px; border: 0; color: var(--muted); white-space: nowrap; letter-spacing: .02em; }
.nav-list .sub a:hover, .nav-list .sub a[aria-current="page"] { color: var(--text); }
.menu-btn {
  display: none; position: relative; z-index: 32;
  align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 14px; letter-spacing: .2em;
}
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav-list { display: none; }
  .nav.is-open .nav-list {
    display: flex; position: fixed; inset: 0; z-index: 31;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
    padding: 96px var(--gutter) 48px; background: var(--bg);
    font-family: var(--display); font-weight: var(--display-w); font-size: clamp(30px, 7vw, 44px); letter-spacing: -.02em;
  }
  .nav.is-open .nav-list .nav-cta a { border: 0; padding: 10px 0; border-radius: 0; }
  .nav.is-open .nav-list { justify-content: safe center; overflow-y: auto; }
  .nav.is-open .has-sub { display: block; }
  .nav.is-open .sub-btn { display: none; }
  .nav.is-open .sub {
    position: static; min-width: 0; padding: 0 0 6px; border: 0; border-radius: 0; background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
    font-family: var(--sans); font-weight: 400; font-size: 17px; letter-spacing: .02em;
  }
  .nav.is-open .sub::before { display: none; }
  .nav.is-open .nav-list .sub a { padding: 3px 0 3px 2px; }
  .brand img { height: 34px; }
}

/* ---------- Home: split hero ---------- */
.hero-split {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  height: clamp(520px, 76svh, 800px); background: var(--line);
}
.door { position: relative; overflow: hidden; display: block; color: var(--text); text-decoration: none; background: var(--bg); }
.door-link { position: absolute; inset: 0; z-index: 2; display: block; color: var(--text); text-decoration: none; }
.door-link:focus-visible { outline-offset: -6px; }
.door > img, .door > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.door::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,20,18,.8) 0%, rgba(18,20,18,.56) 25%, rgba(18,20,18,.09) 46%, rgba(18,20,18,.06) 60%, rgba(18,20,18,.8) 100%);
}
/* Video door: lighter overlay so the footage reads clearly; text and logo carry their own shadows */
.door--light::after {
  background: linear-gradient(180deg, rgba(18,20,18,.64) 0%, rgba(18,20,18,.38) 24%, rgba(18,20,18,.04) 42%, rgba(18,20,18,0) 66%, rgba(18,20,18,.45) 100%);
}
.door .label { color: rgba(236,232,223,.96); }
.door-text { text-shadow: 0 1px 2px rgba(0,0,0,.52), 0 2px 18px rgba(0,0,0,.45); }
.door-text::before { content: ""; position: absolute; z-index: -1; inset: -48px -72px -40px -64px; background: radial-gradient(closest-side, rgba(18,20,18,.25), rgba(18,20,18,0)); pointer-events: none; }
.door:hover > img, .door:hover > video { transform: scale(1.035); }
.door-text {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: clamp(110px, 15vh, 150px);
  display: flex; flex-direction: column; gap: 14px;
}
.door-title { font-family: var(--display); font-weight: 350; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.05; letter-spacing: -.02em; text-shadow: 0 1px 3px rgba(0,0,0,.4), 0 2px 26px rgba(0,0,0,.45); }
.door-go { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .04em; }
.door-go::after { content: "→"; transition: transform .3s var(--ease); }
.door:hover .door-go::after { transform: translateX(6px); }
.door-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
/* The logo is anchored so its "8" (centre at ~84.6% of its width) sits on the seam between the doors */
.hero-logo {
  --logo-w: clamp(300px, 34vw, 560px);
  position: absolute; z-index: 3; left: calc(50% - var(--logo-w) * .846); bottom: clamp(28px, 5vh, 56px);
  width: var(--logo-w); pointer-events: none;
}
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)) drop-shadow(0 4px 28px rgba(0,0,0,.3)); }

@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; height: auto; max-height: none; min-height: 0; gap: 1px; }
  .hero-logo { position: static; transform: none; width: auto; padding: 112px var(--gutter) 40px; background: var(--bg); order: -1; }
  .door { height: 58svh; min-height: 380px; max-height: 560px; }
  .door-text { top: auto; bottom: 32px; }
  .door::after { background: linear-gradient(180deg, rgba(18,20,18,0) 52%, rgba(18,20,18,.6) 100%); }
  .hero-logo img { filter: none; }
  .door--light { height: auto; min-height: 0; max-height: 84svh; aspect-ratio: 9 / 13; }
}

/* ---------- Home: statement ---------- */
.statement-grid { display: grid; grid-template-columns: minmax(0, max-content) minmax(16em, 1fr); gap: 32px clamp(48px, 6vw, 112px); align-items: center; }
.statement-grid .label { grid-column: 1 / -1; }
.statement-grid h1 { grid-column: 1; }
.statement-side { grid-column: 2; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; color: var(--muted); font-size: clamp(17px, 1.3vw, 20px); }
.statement-side p { max-width: 34em; }
@media (max-width: 980px) { .statement-grid { grid-template-columns: minmax(0, 1fr); } .statement-grid h1, .statement-side { grid-column: 1 / -1; } }

/* ---------- Home: this-season board ---------- */
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 40px; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.board > article { padding: 36px clamp(20px, 2.6vw, 40px) 8px; display: flex; flex-direction: column; gap: 22px; border-left: 1px solid var(--line); }
.board > article:first-child { border-left: 0; padding-left: 0; }
.board .numeral-row { display: flex; align-items: flex-end; gap: 16px; }
.board .numeral-cap { font-size: 16px; color: var(--muted); padding-bottom: 6px; max-width: 12em; line-height: 1.35; }
.board .arrow-link { margin-top: auto; align-self: flex-start; }
.mini-row { display: flex; gap: 8px; }
.mini-row figure { margin: 0; flex: 1 1 0; min-width: 0; }
.mini-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #000; }
.mini-row figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: .06em; }
@media (max-width: 980px) {
  .board { grid-template-columns: 1fr; }
  .board > article { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--line); padding-bottom: 36px; }
  .board > article:first-child { border-top: 0; }
}

/* ---------- Gestation tracker ---------- */
.gest { display: flex; flex-direction: column; gap: 10px; }
.gest + .gest { margin-top: 10px; }
.gest-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.gest-name { font-size: 17px; }
.gest-day { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gest-bar { position: relative; height: 2px; background: var(--line-2); }
.gest-bar > span { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, .5) * 100%); background: var(--text); }
.gest-bar > span::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--maple); }
.gest-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Full-bleed bands ---------- */
.band { position: relative; overflow: hidden; background: #000; }
.band > img, .band > video { width: 100%; height: clamp(420px, 78svh, 900px); object-fit: cover; }
.band--short > img, .band--short > video { height: clamp(320px, 62svh, 720px); }
/* Framed band: a 3:2 photo centred on the page, never wider than the screen can show top to bottom (whole horse stays in frame) */
.band--framed { background: var(--bg); }
.band--framed > img { width: min(100%, calc(92svh * 1.5)); height: auto; aspect-ratio: 3 / 2; margin: 0 auto; display: block; border-radius: 14px; }
@media (max-width: 700px) { .band--framed > img { border-radius: 0; } }
.band-credit { width: min(100%, calc(92svh * 1.5)); margin: 8px auto 0; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) { .band-credit { padding: 0 var(--gutter); } }
.band-cap { position: absolute; left: var(--gutter); bottom: 20px; font-size: 13px; color: rgba(236,232,223,.92); letter-spacing: .04em; text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 1px 10px rgba(0,0,0,.6); }
.band--story > img { height: clamp(360px, 60svh, 620px); }
.band--story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,20,18,0) 35%, rgba(18,20,18,.86) 100%); pointer-events: none; }
.band-text { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(40px, 7vw, 96px); }
.band-text .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.band-text h2 { max-width: 13em; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Inner page head ---------- */
.page-head { padding-top: clamp(32px, 4.5vw, 72px); padding-bottom: clamp(28px, 3.5vw, 56px); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, max-content) minmax(16em, 1fr); gap: 40px clamp(48px, 6vw, 112px); align-items: end; }
.page-head-grid .lockup { grid-column: 1; }
.page-head-grid .lede { grid-column: 2; color: var(--muted); }
@media (max-width: 980px) { .page-head-grid { grid-template-columns: minmax(0, 1fr); } .page-head-grid .lockup, .page-head-grid .lede { grid-column: 1 / -1; } }

.sec-head { display: grid; grid-template-columns: minmax(0, max-content) minmax(16em, 1fr); gap: 24px clamp(48px, 6vw, 112px); align-items: end; margin-bottom: clamp(24px, 3vw, 44px); }
.sec-head > :first-child { grid-column: 1; }
.sec-head > :last-child:not(:first-child) { grid-column: 2; color: var(--muted); max-width: 38em; }
@media (max-width: 980px) { .sec-head { grid-template-columns: minmax(0, 1fr); } .sec-head > * { grid-column: 1 / -1 !important; } }

/* In-page index (sub-navigation) */
.subnav { position: sticky; top: 0; z-index: 15; background: rgba(18,20,18,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-block; padding: 16px 0; text-decoration: none; font-size: 14px; letter-spacing: .06em; color: var(--muted); white-space: nowrap; border-bottom: 1px solid transparent; }
.subnav a:hover, .subnav a.is-here { color: var(--text); border-color: var(--maple); }
[id] { scroll-margin-top: 64px; }

/* ---------- Pedigree bracket ---------- */
.ped { margin: 0; position: relative; padding-left: 26px; font-size: 16px; }
.ped::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; border-top: 1px solid var(--line-2); }
.ped::after { content: ""; position: absolute; left: 12px; top: 1.05em; bottom: 1.05em; border-left: 1px solid var(--line-2); }
.ped > div { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 5px 0; }
.ped > div::before { content: ""; position: absolute; left: -14px; top: 1.05em; width: 10px; border-top: 1px solid var(--line-2); }
.ped dt { font-size: 12px; letter-spacing: .26em; color: var(--muted); padding-top: 3px; }
.ped dd { margin: 0; }
.ped .ds { color: var(--muted); }
.on-bone .ped::before, .on-bone .ped::after, .on-bone .ped > div::before { border-color: var(--ink-line); }
.on-bone .ped dt, .on-bone .ped .ds { color: var(--ink-muted); }

/* ---------- Mares ---------- */
.mares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.mare { display: flex; flex-direction: column; gap: 22px; }
.mare img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #000; }
.mare-meta { font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.mare-off { border-top: 1px solid var(--line); padding-top: 16px; font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.mare-off strong { color: var(--text); font-weight: 400; }
@media (max-width: 980px) { .mares { grid-template-columns: 1fr; } .mare img { aspect-ratio: 4 / 4; } }

/* ---------- Ring gallery ---------- */
.ring { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.ring figure { margin: 0; position: relative; }
.ring img { width: 100%; height: 100%; object-fit: cover; }
.ring .r1 { grid-column: span 8; aspect-ratio: 7 / 5; }
.ring .r2 { grid-column: span 4; }
.ring .r3, .ring .r4 { grid-column: span 6; aspect-ratio: 3 / 2; }
.ring figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 12px; color: rgba(236,232,223,.85); letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
@media (max-width: 820px) { .ring .r1, .ring .r2, .ring .r3, .ring .r4, .ring .r5 { grid-column: 1 / -1; aspect-ratio: 4 / 3; } }

/* ---------- 2027 foals ---------- */
.foals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.foal-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; padding: 28px; background: var(--bg-2); align-items: start; }
.foal-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.foal-card-body { display: flex; flex-direction: column; gap: 22px; }
.foal-card .status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 1100px) { .foals { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .foal-card { grid-template-columns: 1fr; padding: 20px; } .foal-card img { aspect-ratio: 4 / 3; } }
.foal-pics { display: grid; gap: 14px; }
.foal-pics figure { margin: 0; }
.foal-card .foal-pics img { aspect-ratio: 4 / 3; display: block; }
.foal-pics figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .foal-pics { grid-template-columns: 1fr 1fr; gap: 10px; } .foal-card .foal-pics img { aspect-ratio: 3 / 4; } }
.mare-off .label { margin-bottom: 6px; }

/* ---------- Bone (light) sections ---------- */
.on-bone { background: var(--bone); color: var(--ink); }
.on-bone .label, .on-bone .muted, .on-bone .lk-sub { color: var(--ink-muted); }
.on-bone .rule, .on-bone .arrow-link { border-color: var(--ink-line); }
.on-bone .sec-head > :last-child:not(:first-child) { color: var(--ink-muted); }
.on-bone :focus-visible { outline-color: var(--ink); }

/* Payment timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1px solid var(--ink); }
.timeline li { position: relative; padding: 40px 28px 0 0; display: flex; flex-direction: column; gap: 8px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bone); border: 1px solid var(--ink); }
.timeline li.has-pay::before { background: var(--ink); }
.timeline .when { font-size: 13px; letter-spacing: .26em; color: var(--ink-muted); }
.timeline .what { font-size: 22px; font-weight: 300; line-height: 1.1; }
.timeline .amt { font-family: var(--display); font-weight: var(--display-w); font-size: clamp(30px, 2.6vw, 40px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.timeline .note { font-size: 15px; color: var(--ink-muted); line-height: 1.5; max-width: 18em; }
/* Timeline on the dark ground (Breeding › Breeding your mare) */
.timeline--dark::before { border-color: var(--line-2); }
.timeline--dark li::before { background: var(--bg); border-color: var(--text); }
.timeline--dark .when, .timeline--dark .note { color: var(--muted); }
.timeline--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) and (min-width: 821px) { .timeline--five li { padding-right: 18px; } }
@media (max-width: 820px) { .timeline--dark::before { border-color: var(--line-2); } }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink-line); font-size: 18px; }
.total .amt { font-family: var(--display); font-weight: var(--display-w); font-size: 32px; letter-spacing: -.02em; }
.total-note { margin: 14px 0 0; max-width: 44em; font-size: 15px; color: var(--ink-muted); }
@media (max-width: 820px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px solid var(--ink); }
  .timeline li { padding: 0 0 36px 44px; }
}

.terms { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); }
.terms > div { padding: 22px 0; border-top: 1px solid var(--ink-line); }
.terms dt { font-size: 19px; margin-bottom: 4px; }
.terms dd { margin: 0; color: var(--ink-muted); }
@media (max-width: 820px) { .terms { grid-template-columns: 1fr; } }

/* ---------- Young horses: catalogue lots ---------- */
.lot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.lot:first-of-type { border-top: 0; padding-top: 0; }
.lot-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #000; }
.lot-media figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.lot-body { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.lot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.lot-no { font-family: var(--display); font-weight: 200; font-size: clamp(44px, 4.4vw, 68px); line-height: .8; color: var(--muted); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 14px 28px 14px 0; margin-right: 28px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; margin-right: 0; }
.facts dt { font-size: 12px; letter-spacing: .26em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 17px; }
.edu-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 15px; color: var(--muted); }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2); }
.dots i.on { background: var(--text); border-color: var(--text); }
.lot-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--maple); }
@media (max-width: 860px) { .lot { grid-template-columns: 1fr; } }

/* Education record matrix */
.matrix-box { overflow-x: auto; border-top: 1px solid var(--line-2); }
.matrix { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.matrix th, .matrix td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix thead th { font-weight: 400; font-size: 13px; letter-spacing: .2em; color: var(--muted); vertical-align: bottom; }
.matrix thead th .name { display: block; font-size: 22px; letter-spacing: -.01em; color: var(--text); margin-top: 4px; }
.matrix th[scope="row"] { text-align: left; font-weight: 400; padding-left: 0; }
.matrix td span { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line-2); }
.matrix td span.on { background: var(--text); border-color: var(--text); }

/* Alumni rows */
.alum { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); }
.alum:last-child { border-bottom: 1px solid var(--line); }
.alum img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; background: #000; }
/* Mike's development, under his alumni row: every photo at its own shape, scrollable */
.alum-strip { margin: 0; padding: 0 0 24px calc(96px + 28px); }
.carousel--natural { margin-top: 0; }
.carousel--natural .carousel-track { grid-auto-columns: max-content; gap: 6px; }
.carousel--natural .carousel-slide img { width: auto; height: clamp(220px, 22vw, 320px); max-width: 86vw; aspect-ratio: auto; object-fit: cover; background: var(--bg-2); }
.carousel--natural .carousel-controls { margin-top: 12px; }
.alum-strip-cap { margin: 0 auto 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .alum-strip { padding-left: 0; } }
/* Rows of uncropped photos at one shared height (Our Program › Value that grows) */
.photo-rows { display: flex; gap: 8px; align-items: flex-start; }
.photo-row { display: flex; gap: 8px; flex: var(--sum) 1 0; min-width: 0; }
.photo-row figure { margin: 0; flex: var(--ar) 1 0; min-width: 0; }
.photo-row img { display: block; width: 100%; height: auto; }
.photo-row figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .photo-rows { flex-direction: column; } .photo-row { width: 100%; } }
@media (max-width: 600px) { .alum { grid-template-columns: 72px minmax(0, 1fr); } .alum img { width: 72px; height: 72px; } .alum > :last-child { grid-column: 2; } }

/* ---------- Retirement & layup ---------- */
.day { position: relative; }
.day-track { position: relative; height: 120px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.day-night { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, rgba(236,232,223,.05) 0 1px, transparent 1px 6px); }
.day-night.a { left: 0; width: 22%; }
.day-night.b { right: 0; width: 18%; }
.day-mark { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 0 14px 12px; border-left: 1px solid var(--text); }
.day-mark b { font-weight: 400; font-size: 17px; }
.day-mark span { font-size: 13px; color: var(--muted); }
.day-cam { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.day-cam::before { content: ""; flex: 1 1 auto; order: 2; height: 1px; background: repeating-linear-gradient(90deg, var(--maple) 0 6px, transparent 6px 12px); }
.day-cam span:last-child { order: 3; }
.day-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; letter-spacing: .2em; }
@media (max-width: 760px) {
  .day-track { height: auto; display: flex; flex-direction: column; border-bottom: 0; }
  .day-night { display: none; }
  .day-mark { position: static; border-left: 0; border-bottom: 1px solid var(--line); padding: 16px 0; flex-direction: row; justify-content: space-between; align-items: baseline; }
}

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.plan { background: var(--bg-2); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 24px; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.plan li::after { content: "✓"; color: var(--muted); }
.plan .rate { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: auto; border-top: 1px solid var(--line-2); padding-top: 20px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.facility { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.facility figure { margin: 0; position: relative; }
.facility img { width: 100%; height: 100%; object-fit: cover; }
.facility .f1 { grid-column: span 7; grid-row: span 2; }
.facility .f2 { grid-column: span 5; aspect-ratio: 5 / 4; }
.facility .f3 { grid-column: span 5; aspect-ratio: 5 / 4; }
.facility figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 13px; color: rgba(236,232,223,.9); text-shadow: 0 1px 8px rgba(0,0,0,.7); }
@media (max-width: 820px) { .facility .f1, .facility .f2, .facility .f3 { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; } }

.residents { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
@media (max-width: 1180px) { .residents { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.resident { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.resident img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.resident figcaption { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 860px) { .residents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Farm ---------- */
.quote { font-family: var(--display); font-weight: var(--display-w); font-size: clamp(26px, 2.7vw, 42px); line-height: 1.12; letter-spacing: -.02em; max-width: 20em; margin: 0; }
.quote::before { content: "“"; color: var(--maple); }
.quote::after { content: "”"; color: var(--maple); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.pillars > div { padding: 28px clamp(16px, 2vw, 32px) 0 0; display: flex; flex-direction: column; gap: 12px; }
.pillars h3 { font-size: 22px; font-weight: 400; }
.pillars p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr 1fr; gap: 28px 0; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--gutter); }
.figures > div { display: flex; flex-direction: column; gap: 14px; }
.figures .numeral { font-size: clamp(56px, 5vw, 84px); }
.figures p { color: var(--muted); font-size: 15px; max-width: 14em; }
@media (max-width: 860px) { .figures { grid-template-columns: 1fr 1fr; } }

.reels { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 22vw, 320px); gap: 12px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; scrollbar-color: var(--line-2) transparent; }
.reels figure { margin: 0; scroll-snap-align: start; }
.reels video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--bg-2); }
.reels figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

.places { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.places figure { margin: 0; position: relative; }
.places img { width: 100%; height: 100%; object-fit: cover; }
.places .p1, .places .p2 { grid-column: span 6; aspect-ratio: 4 / 5; }
.places figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 13px; color: rgba(236,232,223,.9); text-shadow: 0 1px 8px rgba(0,0,0,.7); }
@media (max-width: 820px) { .places .p1, .places .p2 { grid-column: 1 / -1; aspect-ratio: 4 / 3; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.contact-info dl { margin: 0; }
.contact-info dl > div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
.contact-info dt { font-size: 12px; letter-spacing: .26em; color: var(--muted); padding-top: 4px; }
.contact-info dd { margin: 0; }
.form { background: var(--bone); color: var(--ink); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 24px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 12px; letter-spacing: .26em; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(18,20,18,.35); border-radius: 0;
  background: transparent; color: var(--ink); font-size: 17px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.choice legend { font-size: 12px; letter-spacing: .26em; color: var(--ink-muted); margin-bottom: 10px; padding: 0; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(18,20,18,.3); border-radius: 999px; font-size: 15px; cursor: pointer; }
.choice input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-note { font-size: 14px; color: var(--ink-muted); }
.form-done { display: none; padding: 16px 0; border-top: 1px solid var(--ink); }
.form.is-sent .form-done { display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- CTA strip ---------- */
.cta-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(40px, 4.5vw, 72px) 0 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px var(--gutter); }
.foot-grid img { width: min(320px, 70%); height: auto; }
.foot-grid h2 { font-size: 12px; letter-spacing: .3em; color: var(--muted); font-weight: 400; margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); letter-spacing: .08em; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

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

/* Lot extras */
.lot-media img.on-black { object-fit: contain; }
.lot-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.lot-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg-2); }
.lot-note { color: var(--muted); max-width: 34em; }
.matrix tbody th.group { text-align: left; font-size: 12px; letter-spacing: .26em; color: var(--muted); padding-top: 28px; font-weight: 400; }

/* Skill tags: what each young horse already knows */
.knows { display: flex; flex-direction: column; gap: 12px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; line-height: 1.4; }

/* Stallions */
.sires { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gutter); }
.sires li { padding: 24px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.sires .d3 { font-size: clamp(22px, 1.8vw, 28px); }
@media (max-width: 900px) { .sires { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sires { grid-template-columns: 1fr; } }

/* Stall availability (Retirement & layup › Board) */
.avail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 22px 0; margin-bottom: clamp(20px, 4vw, 56px); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.avail-main { display: flex; flex-direction: column; gap: 6px; }
.day-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gutter); margin-top: 40px; color: var(--muted); font-size: 15px; }
.day-notes strong { display: block; color: var(--text); font-weight: 400; font-size: 17px; margin-bottom: 4px; }
@media (max-width: 760px) { .day-notes { grid-template-columns: 1fr; } }

/* Stallion credentials */
.sires li > span:not(.d3):not(.muted) { font-size: 15px; }

/* Full three-generation pedigree */
.fullped summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line-2); font-size: 15px; letter-spacing: .02em; }
.fullped summary::-webkit-details-marker { display: none; }
.fullped summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--muted); }
.fullped[open] summary::after { content: "−"; }
.fullped summary:hover { border-color: var(--text); }
.ped3-box { overflow-x: auto; margin-top: 14px; }
.ped3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); min-width: 440px; border-top: 1px solid var(--line-2); }
.ped3 > div { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 7px 10px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.ped3 b { font-weight: 400; font-size: 14px; line-height: 1.3; }
.ped3 .m b { font-weight: 600; }
.ped3 span { font-size: 12px; line-height: 1.35; color: var(--muted); }
.ped3 > :nth-child(1) { grid-column: 1; grid-row: 1 / span 4; }
.ped3 > :nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.ped3 > :nth-child(3) { grid-column: 3; grid-row: 1; }
.ped3 > :nth-child(4) { grid-column: 3; grid-row: 2; }
.ped3 > :nth-child(5) { grid-column: 2; grid-row: 3 / span 2; }
.ped3 > :nth-child(6) { grid-column: 3; grid-row: 3; }
.ped3 > :nth-child(7) { grid-column: 3; grid-row: 4; }
.ped3 > :nth-child(8) { grid-column: 1; grid-row: 5 / span 4; }
.ped3 > :nth-child(9) { grid-column: 2; grid-row: 5 / span 2; }
.ped3 > :nth-child(10) { grid-column: 3; grid-row: 5; }
.ped3 > :nth-child(11) { grid-column: 3; grid-row: 6; }
.ped3 > :nth-child(12) { grid-column: 2; grid-row: 7 / span 2; }
.ped3 > :nth-child(13) { grid-column: 3; grid-row: 7; }
.ped3 > :nth-child(14) { grid-column: 3; grid-row: 8; }
.ped3 > :nth-child(1), .ped3 > :nth-child(8) { border-left: 0; padding-left: 0; }
.ped3 > :nth-child(8) { border-top: 1px solid var(--line-2); }

/* Homepage: the big hero logo is the brand, so hide the small one in the top bar */
.site-header--over .brand { visibility: hidden; }
@media (max-width: 820px) { .hero-logo { padding-top: 84px; } }

/* Stallion photos */
.sires { gap: 48px var(--gutter); }
.sires li { border-top: 0; padding: 0; gap: 6px; }
.sire-img { margin: 0 0 14px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.sire-img img { width: 100%; height: 100%; object-fit: cover; }
.sire-img--tbd { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; }

/* Program: image pair */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pair figure { margin: 0; }
.pair img, .pair video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.pair figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.pair--compact { max-width: 960px; gap: 12px; }

/* Program: value ladder */
.ladder-axis { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.ladder-axis::after { content: "→"; letter-spacing: 0; font-size: 18px; color: var(--maple); }
.ladder-bars, .ladder-text { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(14px, 2vw, 28px); }
.ladder-bars { align-items: end; }
.ladder-bars span { display: block; background: var(--bg-2); border-top: 2px solid var(--maple); }
.ladder-bars span:nth-child(1) { height: 44px; }
.ladder-bars span:nth-child(2) { height: 88px; }
.ladder-bars span:nth-child(3) { height: 132px; }
.ladder-bars span:nth-child(4) { height: 176px; }
.ladder-text > div { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; }
.ladder-text h3 { font-size: 22px; font-weight: 400; }
.ladder-text p { font-size: 15px; color: var(--muted); }
.ladder-text .who { font-size: 15px; color: var(--text); }
.ladder-text .who a { text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.ladder-text .price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
@media (max-width: 860px) {
  .ladder-bars { display: none; }
  .ladder-text { grid-template-columns: 1fr; }
  .ladder-text > div { padding: 20px 0 24px 20px; border-left: 2px solid var(--maple); margin-bottom: 8px; }
  .ladder-text > div:nth-child(2) { border-left-width: 4px; }
  .ladder-text > div:nth-child(3) { border-left-width: 6px; }
  .ladder-text > div:nth-child(4) { border-left-width: 8px; }
}

/* Farm: on the property */
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); }
.amenities li { padding: 18px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.amenities b { font-weight: 400; font-size: 19px; }
.amenities span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .amenities, .pair { grid-template-columns: 1fr; } }

.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; }

/* Visit: Stay at the farm photos */
.stay-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: clamp(20px, 2.5vw, 36px); }
.stay-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 700px) { .stay-photos { grid-template-columns: 1fr; } }
.contact-info dd .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* Carousel (rental house photos) */
.carousel { margin-top: clamp(20px, 2.5vw, 36px); }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: 4px; }
.carousel-slide { margin: 0; scroll-snap-align: start; }
.carousel-slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.carousel--captioned .carousel-slide figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.carousel-controls { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 16px; }
.carousel-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: center; }
.carousel-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 18px; cursor: pointer; transition: border-color .2s, opacity .2s; }
.carousel-btn:hover { border-color: var(--text); }
.carousel-btn:disabled { opacity: .35; cursor: default; border-color: var(--line-2); }
@media (max-width: 700px) { .carousel-track { grid-auto-columns: 90%; } }

/* Visit page photo */
.visit-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.contact-info > p { margin-top: 8px; }

/* Alumni photo placeholder */
.alum-ph { width: 96px; height: 96px; border-radius: 50%; border: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; line-height: 1.3; color: var(--muted); padding: 8px; }
@media (max-width: 600px) { .alum-ph { width: 72px; height: 72px; font-size: 10px; } }

/* Video carousel (Young Horses › Farm life) */
.carousel--reels .carousel-track { grid-auto-columns: clamp(200px, 23%, 300px); }
.carousel--photos { margin-top: 0; }
.carousel--small { margin-top: 0; }
.carousel--single { margin-top: 0; }
.mare-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: -16px; }
.mare-strip img { aspect-ratio: 3 / 4 !important; }
/* Two photos at the same height as a three-photo strip: a tall headshot and a wide one */
.mare { container-type: inline-size; }
.mare-strip--two { grid-template-columns: calc((100cqw - 12px) * 4 / 15) minmax(0, 1fr); } /* headshot at 3:5 */
.mare-strip--two img { aspect-ratio: auto !important; height: calc((100cqw - 12px) * 4 / 9); } /* = a 3:4 tile's height */
.reels--short { grid-auto-columns: clamp(160px, 18%, 220px); }
.carousel--single .carousel-track { grid-auto-columns: 100%; }
.carousel--single .carousel-slide img { aspect-ratio: 4 / 3; }
.carousel--single .carousel-slide figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.carousel--single + .credit { margin-top: 4px; }
.carousel--small .carousel-track { grid-auto-columns: clamp(240px, 31%, 420px); }
.carousel--small .carousel-slide img { aspect-ratio: 4 / 3; }
.credit { margin-top: 4px; font-size: 12px; letter-spacing: .02em; color: var(--muted); opacity: .8; }
.carousel--photos .carousel-track { grid-auto-columns: clamp(220px, 30%, 380px); }
.carousel--photos .carousel-slide img { aspect-ratio: 3 / 4; }
.carousel--reels video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: var(--bg-2); }
.carousel--reels figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .carousel--reels .carousel-track { grid-auto-columns: 68%; } }

/* Development page: three jumping photos in one row */
.ring3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 900px; }
.ring3 figure { margin: 0; min-width: 0; }
.ring3 img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.ring3 figcaption { margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (max-width: 560px) { .ring3 { gap: 4px; } .ring3 figcaption { font-size: 11px; } }
.ph-tile { aspect-ratio: 3 / 2; border: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-align: center; padding: 8px; }

/* Rounded corners on every photo and video, except full-bleed bands, the homepage doors and logos */
main img, main video { border-radius: 10px; }
main .lot-strip img, main .mare-strip img, main .mini-row img, main .sire-img img { border-radius: 6px; }
main .band:not(.band--framed) > img, main .band:not(.band--framed) > video, main .door > img, main .door > video, main .hero-logo img { border-radius: 0; }

/* Design a custom foal (custom-foal.html) */
.builder { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pick-group { border: 0; margin: 0 0 clamp(24px, 3vw, 40px); padding: 0; min-width: 0; }
.pick-group legend { padding: 0; margin-bottom: 14px; }
.pick-intro { margin: -4px 0 14px; font-size: 15px; }
.mare-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stallion-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pick { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.pick--stallion { padding: 14px 16px; gap: 2px; }
.pick:hover { border-color: var(--line-2); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick:has(input:checked) { border-color: var(--maple); background: rgba(210, 101, 75, .08); }
.pick:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
main .pick img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.pick-name { font-size: 18px; line-height: 1.25; }
.pick-meta { font-size: 13px; color: var(--muted); line-height: 1.4; }
.pick ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.builder-result { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 2.4vw, 32px); }
.foal-cross { font-family: var(--display); font-weight: var(--display-w); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 10px 0 18px; }
.foal-traits { margin: 0; }
.foal-traits > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.foal-traits dt { font-size: 12px; letter-spacing: .2em; color: var(--muted); padding-top: 3px; }
.foal-traits dd { margin: 0; font-size: 15px; line-height: 1.5; }
.foal-src { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .04em; color: var(--maple); }
.foal-notes { margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.foal-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
@media (max-width: 980px) { .builder { grid-template-columns: 1fr; } .builder-result { position: static; } }
@media (max-width: 600px) { .mare-picks { gap: 8px; } .pick { padding: 8px; } .pick ul { display: none; } .pick-name { font-size: 15px; } .stallion-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pick--stallion { padding: 8px; } .pick--stallion .pick-meta:last-child { display: none; } .foal-traits > div { grid-template-columns: 1fr; gap: 4px; } }
main .pick--stallion img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.foal-pair { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 8px; margin: 0 0 18px; }
.foal-pair figure { margin: 0; }
main .foal-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.foal-pair figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
/* Feature card for the foal designer (home, Breeding, Young Horses) */
.foal-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(14px, 1.6vw, 22px); border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); color: var(--text); text-decoration: none; transition: border-color .25s; }
.foal-feature:hover { border-color: var(--maple); }
.ff-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
main .ff-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.ff-text { display: flex; flex-direction: column; gap: 12px; }
.ff-title { font-family: var(--display); font-weight: var(--display-w); font-size: clamp(22px, 2vw, 32px); line-height: 1.2; letter-spacing: -.01em; }
.ff-go { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.ff-go::after { content: "→"; transition: transform .3s var(--ease); }
.foal-feature:hover .ff-go::after { transform: translateX(6px); }
@media (max-width: 760px) { .foal-feature { grid-template-columns: 1fr; } }
/* Designer: bigger primary button, natural-shape mare photos, another-stallion fields, disclaimer */
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 18px; }
main .mare-picks .pick img { aspect-ratio: 4 / 5; }
.pick--other { border-style: dashed; justify-content: center; }
.other-stallion { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.other-stallion[hidden] { display: none; }
.field--dark > span { color: var(--muted); }
.field--dark input { background: transparent; color: var(--text); border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0; font: inherit; }
.field--dark input:focus { outline: none; border-bottom-color: var(--text); }
.foal-pair-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--muted); font-size: 14px; text-align: center; padding: 8px; }
.foal-disclaimer { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.other-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.other-actions .btn[disabled] { opacity: .6; cursor: progress; }
.other-status { margin: 0; flex: 1 1 240px; font-size: 14px; color: var(--muted); }
.other-status:empty { display: none; }
.other-status.is-loading::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: currentColor; vertical-align: middle; animation: lookpulse .9s ease-in-out infinite alternate; }
@keyframes lookpulse { from { opacity: .2; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .other-status.is-loading::before { animation: none; } }
.foal-found { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.foal-found a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) { .other-stallion { grid-template-columns: 1fr; } }

/* In retirement: a short video plays over Dewy's and Indira's photos on hover (tap on phones) */
.resident-media { position: relative; overflow: hidden; border-radius: 10px; cursor: pointer; }
.resident-media img { display: block; }
.resident-media img { transition: filter .35s var(--ease), transform .35s var(--ease); }
.resident-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 0; background: transparent; opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.resident-media.is-playing video { opacity: 1; }
.resident-media.is-playing img { filter: blur(14px) brightness(.45); transform: scale(1.1); }
.resident-hint { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 10px; border-radius: 999px; background: rgba(12, 14, 12, .62); color: #fff; font-size: 12px; letter-spacing: .03em; pointer-events: none; transition: opacity .3s var(--ease); }
.resident-hint::before { content: ""; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.resident-media.is-playing .resident-hint { opacity: 0; }
.resident-media.is-loading .resident-hint { opacity: .7; }
.resident-media:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.other-status a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.pick-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--sans); font-size: 11px; letter-spacing: .04em; color: var(--muted); vertical-align: middle; white-space: nowrap; }
@media (max-width: 600px) { .pick-tag { display: table; margin: 4px 0 2px; } }
