/* Home Place Horse & Cattle Co. demo - catalog grammar, light world.
   The engine's own selectors (.sc-stage, [data-sc-*]) are never restyled.
   position: relative is NEVER set on a [data-sc-stage] element. */

:root {
  --sc-canvas:      #F7F4EE;
  --sc-surface:     #FFFDF8;
  --sc-ink:         #1B1611;
  --sc-ink-soft:    #5A5047;
  --sc-accent:      #8A3B1E;
  --sc-accent-ink:  #FFFFFF;
  --hp-gold:        #C9A24A;

  --sc-hairline:        rgba(27, 22, 17, 0.14);
  --sc-hairline-strong: rgba(27, 22, 17, 0.28);

  --sc-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --sc-font-text:    "Source Sans 3", system-ui, -apple-system, sans-serif;
  --sc-font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --sc-shadow-color: 28 30% 18%;
  --sc-r-sm: 2px; --sc-r-md: 3px; --sc-r-lg: 4px; --sc-r-pill: 4px;
  --sc-maxw: 84rem;

  --hp-bar: 4.25rem;
  --hp-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

html, body { background: var(--sc-canvas); }
body { color: var(--sc-ink); font-family: var(--sc-font-text); }

/* ------------------------------------------------------------- chrome -- */
.skip {
  position: absolute; left: 0; top: 0; z-index: 200;
  transform: translateY(-140%);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  padding: 0.75rem 1.25rem; font-family: var(--sc-font-mono); font-size: 0.8125rem;
  transition: transform 160ms var(--hp-ease);
}
.skip:focus-visible { transform: none; }

.hp-progress {
  position: fixed; inset-inline: 0; top: 0; height: 2px; z-index: 90;
  transform-origin: 0 50%; transform: scaleX(var(--sc-progress, 0));
  background: var(--sc-accent); display: block;
}

.bar {
  position: fixed; inset-inline: 0; top: 0; z-index: 80;
  min-height: var(--hp-bar);
  display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 2rem);
  padding: 0.5rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in oklab, var(--sc-canvas) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sc-hairline);
}
.bar__mark { flex: 0 0 auto; display: block; }
.bar__mark img { width: clamp(7.5rem, 12vw, 10.5rem); height: auto; }
.bar__index {
  display: flex; gap: clamp(0.6rem, 1.6vw, 1.6rem); margin-inline-start: auto;
  font-family: var(--sc-font-mono); font-size: 0.75rem; letter-spacing: 0.06em;
}
.bar__index a {
  color: var(--sc-ink-soft); text-decoration: none;
  min-height: 24px; display: inline-flex; align-items: center;
  padding-inline: 2px;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--hp-ease), border-color 160ms var(--hp-ease);
}
.bar__index a:hover { color: var(--sc-accent); border-bottom-color: var(--hp-gold); }
@media (max-width: 900px) { .bar__index { display: none; } }

.demo {
  position: fixed; left: 50%; bottom: 1rem; z-index: 85;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.75rem;
  max-width: min(92vw, 40rem);
  padding: 0.5rem 0.5rem 0.5rem 0.9rem;
  background: var(--sc-surface);
  border: 1px solid var(--sc-hairline);
  box-shadow: var(--sc-e1);
}
.demo__text {
  margin: 0; font-family: var(--sc-font-mono); font-size: 0.6875rem;
  letter-spacing: 0.04em; color: var(--sc-ink-soft); line-height: 1.45;
}
.demo__x {
  flex: 0 0 auto; min-height: 24px; min-width: 24px; padding: 0 0.5rem;
  background: transparent; border: 1px solid var(--sc-hairline);
  font-family: var(--sc-font-mono); font-size: 0.6875rem; color: var(--sc-ink);
  cursor: pointer;
  transition: background-color 140ms var(--hp-ease), color 140ms var(--hp-ease);
}
.demo__x:hover { background: var(--sc-accent); color: var(--sc-accent-ink); border-color: var(--sc-accent); }
.demo__x:active { transform: translateY(1px); }

/* -------------------------------------------------------- type & bits -- */
.plate {
  font-family: var(--sc-font-display); font-weight: 600;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem);
  line-height: 1.02; letter-spacing: 0.005em;
  margin: 0; color: var(--sc-ink); text-wrap: balance;
}
.plate--sm { font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.6rem); letter-spacing: 0.015em; }

.head {
  font-family: var(--sc-font-display); font-weight: 600;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem);
  line-height: 1.1; letter-spacing: -0.005em; margin: 0; text-wrap: balance;
}
.head--sm { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.9rem); }

.sub {
  font-family: var(--sc-font-display); font-weight: 500;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  line-height: 1.2; margin: 0; color: var(--sc-ink);
}

.ts {
  font-family: var(--sc-font-mono); font-size: 0.6875rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--sc-ink-soft); margin: 0; line-height: 1.5;
}

.lead-line {
  font-family: var(--sc-font-display); font-weight: 500;
  font-size: 1.0625rem; line-height: 1.35; margin: 0; color: var(--sc-accent);
}

.label-line {
  font-family: var(--sc-font-mono); font-size: 0.75rem; letter-spacing: 0.05em;
  color: var(--sc-ink-soft); margin: 0;
}

.rule { border: 0; height: 1px; background: var(--sc-hairline); margin: 0; }
.rule--gold { background: var(--hp-gold); }

.schema { margin: 0; display: grid; gap: 0.3rem; }
.schema__row {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem;
  align-items: baseline;
  padding-block: 0.3rem;
  border-top: 1px solid var(--sc-hairline);
}
.schema__row dt {
  font-family: var(--sc-font-mono); font-size: 0.6875rem;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--sc-ink-soft);
}
.schema__row dd { margin: 0; font-size: 0.9375rem; color: var(--sc-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.55rem 1.25rem;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  border: 1px solid var(--sc-accent); border-radius: var(--sc-r-sm);
  font-family: var(--sc-font-mono); font-size: 0.75rem; letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform 120ms var(--hp-ease), background-color 160ms var(--hp-ease);
}
.btn:hover { background: #6F2F17; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--sm { min-height: 36px; padding: 0.35rem 0.85rem; font-size: 0.6875rem; }
.btn--ghost {
  background: transparent; color: var(--sc-accent);
  border-color: color-mix(in oklab, var(--sc-accent) 45%, transparent);
}
.btn--ghost:hover { background: var(--sc-accent); color: var(--sc-accent-ink); }

/* ============================================== ACT 1 - OBJECT ONE ====== */
.one { display: grid; }
.one__inner {
  height: 100%;
  display: grid; align-content: center; align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.9fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: calc(var(--hp-bar) + 0.75rem) clamp(1rem, 4vw, 3.5rem) 4.5rem;
}
.one__frame {
  position: relative;
  width: 100%; aspect-ratio: 1134 / 801;
  max-height: 58svh;
  overflow: clip;
  border: 1px solid var(--sc-hairline);
  background: #E9E3D8;
}
.one__label { display: grid; gap: 0.85rem; justify-items: start; }
.one__label .schema { width: 100%; max-width: 24rem; }
.turn {
  margin: 0; font-size: 0.9375rem; color: var(--sc-ink-soft);
  font-style: italic;
}

@media (max-width: 900px) {
  .one__inner {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 1rem;
    padding: calc(var(--hp-bar) + 0.5rem) 1rem 4.75rem;
  }
  .one__frame { max-height: 34svh; }
  .plate { font-size: clamp(1.75rem, 7vw, 2.4rem); }
  .schema__row { grid-template-columns: 6.5rem 1fr; padding-block: 0.2rem; }
  .schema__row dd { font-size: 0.875rem; }
  .turn { font-size: 0.875rem; }
}
@media (max-height: 620px) and (min-width: 901px) {
  .one__frame { max-height: 46svh; }
  .one__label { gap: 0.55rem; }
  .schema__row { padding-block: 0.18rem; }
}

/* ================================================= ACT 2 - CATALOG ====== */
.act--catalog { padding-block: clamp(3rem, 6vw, 6rem) clamp(4rem, 8vw, 8rem); }
.act--catalog .head { max-width: 22ch; }
.act--catalog .rule { margin: 1.25rem 0 clamp(1.75rem, 3vw, 3rem); }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2.5rem) clamp(1rem, 1.8vw, 1.75rem);
}
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .grid { grid-template-columns: minmax(0, 1fr); } }

.card { display: grid; align-content: start; gap: 0.6rem; }
.card__fig {
  margin: 0; overflow: clip; background: #E9E3D8;
  aspect-ratio: 4 / 5; border: 1px solid var(--sc-hairline);
}
.card__img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1) translate3d(0, 0, 0);
  transition: transform 900ms var(--hp-ease);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__img,
  .card:focus-within .card__img { transform: scale(1.055) translate3d(-1.4%, 0, 0); }
  .card:nth-child(3n+2):hover .card__img,
  .card:nth-child(3n+2):focus-within .card__img { transform: scale(1.055) translate3d(1.4%, 0, 0); }
}
.card__name { margin: 0; }
.schema--card .schema__row { grid-template-columns: 5.5rem 1fr; gap: 0.5rem; padding-block: 0.22rem; }
.schema--card .schema__row dd { font-size: 0.8125rem; }
.card__cta { justify-self: start; margin-top: 0.2rem; }

/* per-card reveal: one component, a different arrival each time */
.card[data-sc-in] {
  clip-path: inset(0 0 14% 0);
  transition: opacity 700ms var(--hp-ease), transform 700ms var(--hp-ease),
              clip-path 700ms var(--hp-ease);
}
.card[data-sc-in].sc-in { clip-path: inset(0 0 0 0); }
.card:nth-child(5n+1) { transform: translate3d(0, 26px, 0); transition-duration: 760ms; }
.card:nth-child(5n+2) { transform: translate3d(-14px, 18px, 0); transition-duration: 640ms; transition-delay: 60ms; }
.card:nth-child(5n+3) { transform: translate3d(0, 32px, 0); transition-duration: 880ms; transition-delay: 30ms; }
.card:nth-child(5n+4) { transform: translate3d(14px, 20px, 0); transition-duration: 700ms; transition-delay: 90ms; }
.card:nth-child(5n+5) { transform: translate3d(0, 22px, 0); transition-duration: 820ms; }
.card.sc-in { transform: none; }
.card:nth-child(2n) .card__name { color: var(--sc-ink); }
.card:nth-child(4n+3) .card__fig { border-color: color-mix(in oklab, var(--hp-gold) 60%, transparent); }
.card:nth-child(4n+1) .schema--card .schema__row:first-child { border-top-color: var(--hp-gold); }

/* ================================================ ACT 3 - HORSE PAGE === */
.horse { display: grid; }
.horse__inner {
  height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.25rem, 3vw, 3.25rem);
  align-items: center;
  padding: calc(var(--hp-bar) + 1rem) clamp(1rem, 4vw, 3.5rem) 4.5rem;
}
.horse__media { position: relative; display: grid; gap: 0.6rem; align-content: center; }
.horse__frame {
  position: relative;
  transform: scale(calc(1.04 - 0.04 * var(--ease, 1)));
  transform-origin: 50% 50%; width: 100%; aspect-ratio: 1134 / 801;
  max-height: 52svh; overflow: clip;
  border: 1px solid var(--sc-hairline); background: #E9E3D8;
  opacity: var(--mA, 1);
  transition: opacity 220ms linear;
}
.cap { margin: 0; font-family: var(--sc-font-mono); font-size: 0.6875rem;
  letter-spacing: 0.05em; color: var(--sc-ink-soft); opacity: var(--mA, 1); }

.crops {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
  align-content: center;
  opacity: var(--mB, 0);
  pointer-events: none;
  transition: opacity 220ms linear;
}
.crops[data-lit="1"] { pointer-events: auto; }
.crop { margin: 0; display: grid; gap: 0.4rem; align-content: start; }
.crop__box {
  aspect-ratio: 4 / 5; overflow: clip; background: #E9E3D8;
  border: 1px solid var(--sc-hairline);
  max-height: 46svh;
}
.crop__box img { width: 100%; height: 100%; object-fit: cover; }
.crop--head .crop__box img { object-position: 100% 42%; transform: scale(1.95); transform-origin: 103% 42%; }
.crop--hind .crop__box img { object-position: 0% 56%; transform: scale(1.95); transform-origin: -3% 56%; }

.horse__side { display: grid; gap: 0.7rem; align-content: center; }
.horse__side .btn { justify-self: start; margin-top: 0.35rem; }
.horse__close {
  display: grid; gap: 0.45rem; justify-items: start;
  margin-top: 0.5rem;
  opacity: var(--close, 1);
  transform: translateY(calc((1 - var(--close, 1)) * 24px));
}

.ped { width: 100%; height: auto; max-height: 44svh; margin-top: 0.35rem; }
.ped .n {
  font-family: var(--sc-font-display); font-weight: 600; font-size: 14px;
  fill: var(--sc-ink);
}
.ped .n--subject { font-size: 17px; }
.ped .n--sm { font-size: 12px; font-weight: 500; }
.ped .c {
  font-family: var(--sc-font-mono); font-size: 9.5px; letter-spacing: 0.06em;
  fill: var(--sc-ink-soft); text-transform: uppercase;
}
.ped .tsvg {
  font-family: var(--sc-font-mono); font-size: 9.5px; letter-spacing: 0.06em;
  fill: var(--sc-ink-soft); text-transform: uppercase;
}
.ped__lines path { stroke-dasharray: 1; }
.ped .p1 { stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 1) - 0.30) / 0.25, 1)); }
.ped .p2 { stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 1) - 0.52) / 0.23, 1)); }
.ped .p3 { stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 1) - 0.72) / 0.21, 1)); }
.ped .g1 { opacity: clamp(0, (var(--sc-p, 1) - 0.32) / 0.18, 1); }
.ped .g2 { opacity: clamp(0, (var(--sc-p, 1) - 0.54) / 0.17, 1); }
.ped .g3 { opacity: clamp(0, (var(--sc-p, 1) - 0.74) / 0.16, 1); }

@media (max-width: 1000px) {
  .horse__inner {
    grid-template-columns: 1fr; align-content: start; gap: 0.9rem;
    padding: calc(var(--hp-bar) + 0.5rem) 1rem 4.75rem;
    overflow-y: auto;
  }
  .horse__frame { max-height: 26svh; }
  .crop__box { max-height: 24svh; }
  .ped { max-height: 30svh; }
}

/* ================================================ ACT 4 - STALLIONS ==== */
.stallions { display: grid; align-content: center; }
.rail {
  display: flex; align-items: stretch;
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
  padding-inline: clamp(1rem, 4vw, 3.5rem);
  padding-block: calc(var(--hp-bar) + 0.5rem) 2.25rem;
  will-change: transform;
}
.rail__lead {
  flex: 0 0 auto; width: clamp(13rem, 20vw, 19rem);
  align-self: center; display: grid; gap: 0.85rem; align-content: center;
}
.rail__end {
  flex: 0 0 auto; width: clamp(12rem, 16vw, 15rem);
  align-self: center; display: grid; gap: 0.85rem; justify-items: start;
}

.stud {
  flex: 0 0 auto; width: clamp(26rem, 50vw, 48rem);
  display: grid; align-content: start; gap: 0.5rem;
  padding: 0.9rem 1.15rem;
  background: var(--sc-surface);
  border: 1px solid var(--sc-hairline);
  box-shadow: var(--sc-e1);
  max-height: calc(100svh - var(--hp-bar) - 3.25rem);
  overflow-y: auto;
  opacity: var(--stud-o, 1);
  transition: opacity 220ms linear;
}
.stud__top { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 1rem; align-items: end; }
.stud__cut { aspect-ratio: 1 / 1; max-height: 8.5rem; display: grid; align-items: end; justify-items: start; }
.stud__cut img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(6px 14px 16px rgba(60, 44, 30, 0.28));
}
.stud__head { display: grid; gap: 0.4rem; align-content: end; }
.facts {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.3rem 0.55rem;
  font-family: var(--sc-font-mono); font-size: 0.6875rem; letter-spacing: 0.04em;
  color: var(--sc-ink-soft);
}
.facts li { border: 1px solid var(--sc-hairline); padding: 0.1rem 0.4rem; }

.stud__body { display: grid; gap: 0.3rem; }
.stud__body p { margin: 0; font-size: 0.75rem; line-height: 1.45; color: var(--sc-ink-soft); max-width: 62ch; }
.stud__body p.lead-line { font-size: 0.9375rem; color: var(--sc-accent); }

.stats { list-style: none; margin: 0; padding: 0.35rem 0; display: grid; gap: 0.15rem;
  border-block: 1px solid var(--hp-gold); }
.stats li { font-family: var(--sc-font-display); font-weight: 500; font-size: 0.8125rem; }

.words {
  list-style: none; margin: 0; padding: 0.35rem 0;
  display: flex; flex-wrap: wrap; gap: 0.1rem 0.7rem;
  border-block: 1px solid var(--hp-gold);
  font-family: var(--sc-font-mono); font-size: 0.625rem; letter-spacing: 0.05em;
  color: var(--sc-ink-soft);
}

.stud__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pic { margin: 0; aspect-ratio: 16 / 9; max-height: 5.4rem; overflow: clip; background: #E9E3D8; border: 1px solid var(--sc-hairline); }
.pic img { width: 100%; height: 100%; object-fit: cover; }

.tree { display: grid; gap: 0.35rem; }
.tree__ol, .tree__ol ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; justify-content: space-around; gap: 1px;
}
.tree__ol li { display: flex; align-items: center; gap: 0.25rem; min-width: 0; }
.tree__ol li > ol { flex: 1 1 auto; min-width: 0; border-left: 1px solid var(--sc-hairline); padding-left: 0.25rem; }
.tn {
  flex: 0 0 auto; width: 5.5rem;
  font-family: var(--sc-font-display); font-weight: 500; font-size: 0.625rem;
  line-height: 1.15; color: var(--sc-ink);
}
.tc {
  flex: 0 0 auto; width: 2.3rem;
  font-family: var(--sc-font-mono); font-size: 0.5rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--sc-ink-soft);
}
.tree__ol > li > .tn { font-weight: 600; font-size: 0.6875rem; }

/* ============================================== ACT 5 - SALE FITTING === */
.fit { display: grid; }
.fit__inner {
  position: relative;
  height: 100%;
  display: grid; grid-template-rows: auto auto auto; align-content: center;
  gap: 0.85rem;
  padding: calc(var(--hp-bar) + 0.85rem) clamp(1rem, 4vw, 3.5rem) 3.75rem;
}
.fit__head { display: grid; gap: 0.5rem; }
.fit__intro { margin: 0; font-size: 0.9375rem; color: var(--sc-ink-soft); max-width: 78ch; }
.fit__four {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem;
  font-family: var(--sc-font-display); font-weight: 500; font-size: 0.875rem;
  color: var(--sc-accent);
}

.fit__cols {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0;
  overflow: clip;
}
.fit__col { min-width: 0; overflow: hidden; }
.fit__col--left { overflow: visible; z-index: 2; }
.fit__col--left .fit__colin {
  transform: translateX(calc(var(--recentre, 0) * 50%));
}
.fit__hd { display: block; transform: translateY(calc((1 - var(--hd, 1)) * 24px)); opacity: calc(0.6 + 0.4 * var(--hd, 1)); }
.fit__hdrule {
  display: block; height: 1px; background: var(--hp-gold); margin: 0.15rem 0 0.1rem;
  transform: scaleX(var(--hdrule, 1)); transform-origin: 0 50%;
}
.fit__colin {
  display: grid; gap: 0.4rem; align-content: start;
  padding-right: 1.5rem; padding-top: 0.6rem;
  min-width: 22rem;
  border-top: 1px solid var(--hp-gold);
  height: 100%; overflow-y: auto;
}
.fit__col--right .fit__colin { padding-left: 1.5rem; padding-right: 0; }
.fit__col--right {
  opacity: var(--rightOpacity, 1);
  transform: translateX(calc(var(--reveal, 0) * 100%));
}
.fit__body { margin: 0; font-size: 0.78125rem; line-height: 1.5; color: var(--sc-ink-soft); }
.inc {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem 0.9rem;
  font-size: 0.75rem; line-height: 1.45; color: var(--sc-ink);
}
.inc li { padding-left: 0.75rem; position: relative; }
.inc li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 4px; height: 1px; background: var(--sc-accent);
}
.fit__divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--hp-gold);
  pointer-events: none; z-index: 3;
  transform: translateX(calc(var(--reveal, 0) * var(--halfw, 0px)));
}
.fit__cover {
  position: absolute; top: 0; bottom: 0; left: 50%; right: 0;
  background: var(--sc-canvas);
  pointer-events: none; z-index: 1;
  transform: translateX(calc((1 - var(--reveal, 0)) * 100%));
}
.fit__resolve {
  display: grid; gap: 0.6rem; justify-items: start;
  margin-top: 0.75rem; padding-top: 0.65rem;
  border-top: 1px solid var(--sc-hairline);
  opacity: var(--resolve, 0);
  transition: opacity 220ms linear;
}
.fit__close { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--sc-ink); max-width: 72ch; }
.fit__pics { display: flex; gap: 0.6rem; align-items: end; }
.fit__pics img {
  width: clamp(4.5rem, 8vw, 7rem); aspect-ratio: 5 / 4; height: auto;
  object-fit: cover; border: 1px solid var(--sc-hairline);
}
.fit__pics img:last-child { aspect-ratio: 4 / 5; }

@media (max-width: 1000px) {
  .fit__inner { grid-template-rows: auto auto auto; overflow-y: auto; padding-bottom: 4.75rem; }
  .fit__cols { grid-template-columns: 1fr; gap: 1rem; overflow: visible; }
  .fit__cover { display: none; }
  .fit__col--left .fit__colin { transform: none !important; }
  .fit__colin { min-width: 0; padding-inline: 0 !important; height: auto; overflow: visible; }
  .fit__divider { display: none; }
  .fit__col--right { opacity: 1 !important; transform: none !important; }
  .fit__resolve { opacity: 1 !important; }
  .inc { grid-template-columns: 1fr; }
  .fit__pics { display: none; }
}

/* ================================================= ACT 6 - BREEDING ==== */
.act--breeding { padding-bottom: clamp(3.5rem, 7vw, 7rem); }
.breather { width: 100%; overflow: clip; }
.breather__bed {
  width: 100%; height: clamp(11rem, 26vw, 22rem); object-fit: cover;
  object-position: 50% 58%;
}
.breeding { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); padding-top: clamp(2rem, 4vw, 3.5rem); }
.breeding__head { display: grid; gap: 0.9rem; }
.breeding__head .head { max-width: 24ch; }
.breeding__intro { margin: 0; font-size: 1rem; color: var(--sc-ink-soft); max-width: 68ch; }
.services {
  margin: 0; display: grid; gap: 0 clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .services { grid-template-columns: minmax(0, 1fr); } }
.svc { padding-block: 0.85rem; border-top: 1px solid var(--sc-hairline); }
.svc dt {
  font-family: var(--sc-font-display); font-weight: 600; font-size: 1rem;
  color: var(--sc-ink); margin-bottom: 0.2rem;
}
.svc dd { margin: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--sc-ink-soft); }
.breeding__foot { display: grid; gap: 1rem; }
.breeding__pics { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; max-width: 42rem; }
.breeding__pics img {
  width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover;
  border: 1px solid var(--sc-hairline);
}
.breeding__foot .lead-line { font-size: 1.15rem; }

/* ================================================== ACT 7 - CONTACT ==== */
.gate { position: relative; display: grid; }
.gate__bed {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%; z-index: 0;
}
.gate__wrap {
  position: relative; z-index: 2;
  display: grid; justify-items: center; align-content: center;
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 4vw, 3.5rem);
  min-height: 100svh;
}
.gate__wrap::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 52% at 50% 50%,
    color-mix(in oklab, var(--sc-canvas) 78%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 34%, transparent) 62%,
    transparent 100%);
}
.plate-card {
  width: min(100%, 42rem);
  background: var(--sc-surface);
  border: 1px solid var(--sc-hairline);
  border-top: 2px solid var(--sc-accent);
  box-shadow: var(--sc-e2);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid; gap: 1rem;
}
.plate-card__line { margin: 0; font-size: 0.9375rem; color: var(--sc-ink-soft); }
.form { display: grid; gap: 0.85rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.3rem; }
.field > span {
  font-family: var(--sc-font-mono); font-size: 0.6875rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--sc-ink-soft);
}
.field input, .field select {
  min-height: 44px; padding: 0.5rem 0.7rem;
  background: var(--sc-canvas); color: var(--sc-ink);
  border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-sm);
  font-size: 0.9375rem;
  transition: border-color 160ms var(--hp-ease);
}
.field input:hover, .field select:hover { border-color: var(--sc-accent); }
.form__pre { color: var(--sc-accent); }
.form .btn { justify-self: start; }
.social { display: grid; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--hp-gold); }
.social__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.1rem; }
.social__list a {
  font-family: var(--sc-font-mono); font-size: 0.75rem; letter-spacing: 0.05em;
  color: var(--sc-accent); min-height: 24px; display: inline-flex; align-items: center;
}

/* ==================================================== FOOTER =========== */
.foot { border-top: 1px solid var(--sc-hairline); padding-block: clamp(2rem, 4vw, 3.5rem); background: var(--sc-canvas); }
.foot__in { display: grid; gap: 0.9rem; justify-items: start; }
.foot__mark { width: 9rem; height: auto; }
.foot__index { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.foot__index a {
  font-family: var(--sc-font-mono); font-size: 0.75rem; letter-spacing: 0.05em;
  color: var(--sc-ink-soft); text-decoration: none;
  min-height: 24px; display: inline-flex; align-items: center;
}
.foot__index a:hover { color: var(--sc-accent); }

/* ================================================ REDUCED MOTION ======= */
@media (prefers-reduced-motion: reduce) {
  .card__img { transition: none; }
  .ped__lines path { stroke-dashoffset: 0 !important; }
  .ped .g1, .ped .g2, .ped .g3 { opacity: 1 !important; }
  .horse__frame, .cap { opacity: 1 !important; }
  .crops {
    position: static; opacity: 1 !important; pointer-events: auto;
    margin-top: 0.6rem;
  }
  .crop__box { max-height: 24svh; }
  .horse__inner { overflow-y: auto; align-content: start; }
  .fit__col--right, .fit__resolve { opacity: 1 !important; }
  .fit__col--right { transform: none !important; }
  .fit__divider { left: 50% !important; transform: none !important; }
  .fit__cover { display: none; }
  .fit__col--left .fit__colin { transform: none !important; }
  .fit__hd { transform: none !important; opacity: 1 !important; }
  .fit__hdrule { transform: none !important; }
  .horse__frame { transform: none !important; }
  .horse__close { opacity: 1 !important; transform: none !important; }
  .stud { opacity: 1 !important; }
}
