/* =============================================================
   Tarry There Farm — breed pages (e.g. /american-guinea-hogs/)
   A product-page layout built on the home page's tokens, type and
   components. Loaded after tarry-there-farm.css and only on breed
   pages, so nothing here can affect the home page.
   ============================================================= */

.breed { background: var(--paper); }
.breed-inner { max-width: 1200px; margin-inline: auto; }
.breed-section { padding: clamp(80px, 11vw, 160px) clamp(28px, 6vw, 96px); position: relative; }

/* ── top nav: ink on the light hero instead of paper on video ── */
.topnav--ink { color: var(--ink); }
.topnav--ink .wordmark-default { filter: none; }

/* ── hero: the headline is the hero ────────────────────────── */
.breed-hero {
  /* fills the first screen, leaving ~40px for the top of the film to peek in */
  min-height: calc(100svh - 40px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px clamp(28px, 6vw, 96px) clamp(24px, 4vh, 48px);
  text-align: center;
}
.breed-hero > * { flex: 0 0 auto; }
.breed-hero-illo {
  width: clamp(90px, min(10vw, 13vh), 150px);
  margin: 0 auto 6px;
}
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.breed-hero .tag { margin-bottom: clamp(14px, 2.4vh, 28px); }
.breed-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, min(11.5vw, 15vh), 184px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.breed-hero h1 em { font-style: italic; }
.breed-hero-sub {
  font-family: var(--serif);
  font-size: clamp(20px, min(2.4vw, 3.4vh), 34px);
  line-height: 1.25;
  color: var(--ink-soft);
  max-width: 15em;
  margin: clamp(16px, 3vh, 32px) auto 0;
  text-wrap: pretty;
}
@media (min-width: 721px) {
  .breed-hero-sub--wide { max-width: 24em; text-wrap: balance; }
}
.breed-hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: clamp(20px, 3.6vh, 44px);
}
.breed-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(16px, 2.6vh, 26px);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── the film: grows from a card to full bleed as you scroll ── */
.film {
  --expand: 0;
  padding: 0 calc((1 - var(--expand)) * clamp(48px, 13vw, 240px)) 0;
}
.film-frame {
  position: relative;
  max-width: calc(960px + var(--expand) * (100vw - 960px));
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  max-height: 92vh;
  width: 100%;
  border-radius: calc(16px + (1 - var(--expand)) * 28px);
  overflow: hidden;
  background: var(--ink);
}
.film-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 33% 50%; display: block; }
.film-toggle { z-index: 2; }
.film-toggle {
  position: absolute;
  right: clamp(18px, 2.4vw, 32px);
  bottom: clamp(18px, 2.4vw, 32px);
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(239, 233, 221, 0.45);
  background: rgba(29, 26, 20, 0.5);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: var(--paper);
  cursor: pointer;
  opacity: .75;
  transition: opacity .25s var(--ease);
}
.film-toggle:hover, .film-toggle:focus-visible { opacity: 1; }
.film-toggle:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.film-toggle svg { width: 16px; height: 16px; display: block; }
.film-toggle .icon-play { display: none; }
.film-toggle[data-paused="true"] .icon-pause { display: none; }
.film-toggle[data-paused="true"] .icon-play { display: block; }

/* ── big statement: words light up from muted to ink ───────── */
.statement {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--mid-soft);
  max-width: 39ch;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}
.statement strong { font-weight: 400; color: var(--ink); }
.statement em { color: var(--ink); }

/* ── highlight tiles ───────────────────────────────────────── */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.tile {
  background: var(--paper-warm);
  border-radius: 22px;
  padding: clamp(24px, 2.6vw, 36px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
  height: 100%;
  min-height: clamp(240px, 22vw, 300px);
  transition: background-color .35s var(--ease);
}
.tile-kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color .35s var(--ease);
}
.tile-big {
  font-family: var(--serif);
  font-size: clamp(38px, 3.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  transition: color .35s var(--ease);
}
.tile p {
  margin: 0;
  align-self: end;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  transition: color .35s var(--ease);
}
.tile:hover { background: var(--ink); }
.tile:hover .tile-kicker { color: rgba(239, 233, 221, 0.6); }
.tile:hover .tile-big { color: var(--paper); }
.tile:hover p { color: rgba(239, 233, 221, 0.78); }

/* ── photo + copy features ─────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(80px, 10vw, 150px); }
.feature--flip { grid-template-columns: 1fr 1.15fr; }
.feature--flip .feature-photo { order: 2; }
.feature-photo {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
}
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy .display { margin-bottom: 26px; }
.feature-copy .prose { margin: 0; }

/* ── why us: four promises ─────────────────────────────────── */
.section--why { background: var(--ink); color: var(--paper); }
.section--why .display { color: var(--paper); }
.section--why .display em { color: rgba(239, 233, 221, 0.92); }
.why-head { text-align: center; margin-bottom: clamp(48px, 6vw, 88px); }
.why-head .prose { margin: 26px auto 0; text-align: center; color: rgba(239, 233, 221, 0.78); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
}
.why-item { border-top: 1px solid rgba(239, 233, 221, 0.22); padding-top: 24px; }
.why-item svg { width: 30px; height: 30px; color: var(--paper); margin-bottom: 18px; }
.why-item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.1;
  margin: 0 0 12px;
}
.why-item p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(239, 233, 221, 0.72); }

/* ── compare ───────────────────────────────────────────────── */
.compare-head { text-align: center; margin-bottom: clamp(40px, 5vw, 72px); }
.compare-head .prose { margin: 24px auto 0; text-align: center; }
.compare-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.compare-scroll::-webkit-scrollbar { display: none; }
.compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
.compare-col {
  border-radius: 22px;
  padding: clamp(24px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
}
.compare-col--ours { background: var(--paper-warm); }
.compare-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 14px;
  min-height: 14px;
}
.compare-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.compare-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.05;
  margin: 0 0 8px;
  color: var(--ink);
}
.compare-tagline { margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: var(--mid); min-height: 3em; }
.compare-list { list-style: none; margin: 0; padding: 0; }
.compare-list li {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.compare-list .k {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid-soft);
}
.compare-list .v { font-size: 16px; line-height: 1.4; color: var(--ink); }
.compare-col:not(.compare-col--ours) .v { color: var(--mid); }
.compare-col--ours .v { display: flex; align-items: baseline; gap: 10px; }
.compare-col--ours .ck { flex: 0 0 14px; width: 14px; height: 14px; color: var(--sage-deep); transform: translateY(2px); }

.yes { background: var(--sage); color: var(--paper); }
.no { border: 1px solid var(--rule-strong); color: var(--mid-soft); }

/* ── reserve ───────────────────────────────────────────────── */
.section--reserve { background: var(--paper-warm); text-align: center; }
.reserve-stamp { width: clamp(120px, 12vw, 170px); margin: 0 auto 18px; mix-blend-mode: multiply; }
.reserve-copy { margin-top: 24px; }
.reserve-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
/* the price lives in the closing panel: one card per offer */
.offers {
  display: grid;
  gap: 16px;
  margin: clamp(40px, 5vw, 64px) auto 0;
}
.offers--1 { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
.offers--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
.offer {
  background: var(--paper);
  border-radius: 22px;
  padding: clamp(32px, 4vw, 44px) 28px clamp(36px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.offer-label {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
}
.offer-price {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.offer-unit {
  margin: 12px 0 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.offer-note { display: block; color: var(--sage-deep); }
.offer .btn { margin-top: auto; }
.reserve-ask { margin: 32px 0 0; }

/* ── more from the farm ───────────────────────────────────── */
.section--more { background: var(--ink); color: var(--paper); }
.section--more .display { color: var(--paper); }
.section--more .display em { color: rgba(239, 233, 221, 0.92); }
.more-head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.more-item {
  background: rgba(239, 233, 221, 0.06);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(24px, 2.6vw, 36px) clamp(18px, 2vw, 28px);
  transition: background-color .35s var(--ease);
}
.more-item:hover { background: rgba(239, 233, 221, 0.11); }
.more-item img {
  height: clamp(90px, 8vw, 120px);
  width: auto;
  margin-bottom: 22px;
  filter: invert(1) sepia(.25) brightness(.92);
}
.more-item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.05;
  margin: 0 0 10px;
}
.more-item p { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: rgba(239, 233, 221, 0.72); }
.more-link {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(239, 233, 221, 0.35);
}
.more-link .arrow { display: inline-block; transition: transform .3s var(--ease); }
.more-item:hover .more-link .arrow { transform: translateX(4px); }
.more-foot { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.btn--light { color: var(--paper); border-color: rgba(239, 233, 221, 0.4); }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }


/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-photo { order: 0; }
  .feature-copy { text-align: center; }
  .feature-copy .prose { margin-inline: auto; }
}
@media (max-width: 720px) {
  .breed-hero { padding-top: 92px; }
  .film { padding-inline: calc((1 - var(--expand)) * 32px); }
  .film-frame { aspect-ratio: 4 / 5; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 210px; }
  .offers--2 { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .more-grid { grid-template-columns: 1fr; gap: 12px; }
  .more-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    grid-template-areas: "img name" "img text" "img link";
    column-gap: 20px;
    align-items: start;
    text-align: left;
    padding: 22px 20px;
  }
  .more-item img { grid-area: img; height: auto; width: 96px; margin: 4px 0 0; }
  .more-item h3 { grid-area: name; }
  .more-item p { grid-area: text; margin-bottom: 14px; }
  .more-link { grid-area: link; justify-self: start; }
  .why-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: repeat(3, 74vw); gap: 12px; }
  .compare-scroll { margin-inline: calc(-1 * clamp(28px, 6vw, 96px)); padding-inline: clamp(28px, 6vw, 96px); scroll-snap-type: x mandatory; }
  .compare-col { scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .film { --expand: 1 !important; }
}

/* ---------- Pet pages: meet the personalities ---------- */
.meet-cards {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.meet-card {
  background: var(--paper-warm);
  border-radius: 22px;
  padding: 22px 24px;
}
.meet-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
.meet-role {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 6px 0 0;
}
.meet-card p:last-child { margin: 10px 0 0; }
mark.todo {
  background: #fff1a8;
  color: inherit;
  padding: 1px 4px;
  border-radius: 4px;
}
.meet-note {
  text-align: center;
  margin-top: 28px;
  font-size: 15px;
}
.meet-head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }

/* ---------- Meet the family ---------- */
.family-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 2vw, 28px);
  margin-top: clamp(28px, 5vh, 56px);
}
.family-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: clamp(72px, 9vw, 112px);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.family-nav-item img { width: 100%; transition: transform .3s ease; }
.family-nav-item:hover img { transform: translateY(-4px); }
.family-group { scroll-margin-top: 72px; }
.family-group + .family-group { padding-top: clamp(40px, 6vw, 80px); }
.family-head { text-align: center; margin-bottom: clamp(56px, 7vw, 96px); }
.family-stamp { width: clamp(90px, 10vw, 140px); margin: 0 auto 10px; display: block; }
.family-head .display { margin: 14px 0 22px; }
.family-intro {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  color: var(--mid-soft);
  max-width: 40ch;
  margin: 0 auto;
  text-wrap: balance;
}
.family-intro strong { font-weight: 400; color: var(--ink); }
.family-intro em { color: var(--ink); }
.family-group .feature-copy h3.display { margin-bottom: 26px; }
@media (max-width: 520px) {
  .family-nav { gap: 6px; flex-wrap: nowrap; }
  .family-nav-item { width: 62px; font-size: 9px; letter-spacing: .08em; }
}

/* Compare: line up each row across the three columns, even when one
   column's text wraps and the others don't. --compare-rows is set by the
   build (badge, name, tagline, then one row per comparison item). */
@supports (grid-template-rows: subgrid) {
  .compare.compare { row-gap: 0; grid-template-rows: repeat(var(--compare-rows, 9), auto); }
  .compare-col { display: grid; grid-row: span var(--compare-rows, 9); grid-template-rows: subgrid; }
  .compare-list { display: contents; }
  .compare-badge { justify-self: start; align-self: start; }
  .compare-tagline { min-height: 0; }
}
