@font-face {
  font-family: Ranch Gotham;
  src: url("/assets/fonts/gotham/gotham-bold-webfont.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

body[data-page="/case-studies/buena-vista-turf-ranch"] .portable-header {
  background: #10100e;
}

body[data-page="/case-studies/buena-vista-turf-ranch"] .portable-header::after {
  display: none;
}

.ranch {
  --ink: #10100e;
  --paper: #f1e9da;
  --gold: #e0ad72;
  --muted: #c7bdb0;
  --rule: #e0ad724a;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

.ranch *, .ranch *::before, .ranch *::after { box-sizing: border-box; }
.ranch :is(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
.ranch a { text-decoration: none; }
.ranch img { display: block; width: 100%; }
.ranch h1, .ranch h2, .ranch h3 {
  color: inherit;
  font-family: Ranch Gotham, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: 1.02;
}
.ranch em {
  color: var(--gold);
  font: italic 400 1.1em/.9 Georgia, serif;
  letter-spacing: -.07em;
}

.ranch-wrap {
  width: min(100% - clamp(40px, 10vw, 160px), 1440px);
  margin-inline: auto;
}

.ranch-meta {
  font: 700 11px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ranch-gold { color: var(--gold); }
.ranch-hero { position: relative; isolation: isolate; background: #0b0b09; }
.ranch-hero-image, .ranch-hero-image::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.ranch-hero-image img {
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.ranch-hero-image::after {
  content: "";
  z-index: 0;
  background: linear-gradient(90deg, #0b0b09 1%, #0b0b09e8 20%, #0b0b0950 55%, transparent 78%),
    linear-gradient(0deg, #0b0b09 0%, transparent 29%, transparent 76%, #0b0b09d9 100%);
}
.ranch-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(590px, 52vw, 810px);
}
.ranch-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 57px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}
.ranch-rail a { display: inline-flex; min-height: 44px; align-items: center; }
.ranch-rail a:hover, .ranch-more a:hover { color: var(--gold); }
.ranch-hero-bottom { border-top: 1px solid var(--rule); border-bottom: 0; }
.ranch-hero-copy { padding-block: 72px; }
.ranch-hero h1 { font-size: clamp(60px, 8.6vw, 144px); margin: 19px 0 27px; }
.ranch-hero-copy > p:not(.ranch-meta) {
  max-width: 385px;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}
.ranch-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  color: var(--paper);
}
.ranch-hero-copy .ranch-action { margin-top: 28px; }
.ranch-action small { color: var(--gold); font: inherit; }
.ranch-action:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ranch-action:hover small { color: inherit; }

.ranch-screen { padding-block: clamp(66px, 9vw, 135px); }
.ranch-section-heading { margin-bottom: clamp(24px, 4vw, 55px); }
.ranch-section-heading h2 {
  font-size: clamp(40px, 6.5vw, 108px);
  margin-top: 12px;
}
.ranch-player { background: #090807; }
.ranch-play {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  padding: 0;
  border: 0;
  background: #090807;
  color: var(--paper);
}
.ranch-play img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.ranch-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #090807e0, transparent 35%), #09080725;
}
.ranch-play-mark {
  z-index: 1;
  display: grid;
  place-items: center;
  padding-left: .16em;
  width: clamp(54px, 7vw, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(16px, 2vw, 28px);
}
.ranch-play:hover .ranch-play-mark { background: var(--gold); }
.ranch-play-caption {
  position: absolute;
  z-index: 1;
  inset: auto clamp(12px, 3vw, 36px) clamp(10px, 2vw, 26px);
  display: flex;
  justify-content: space-between;
}
.ranch-no-script { padding: 12px; }
.ranch-no-script a { text-decoration: underline; }

.ranch .ranch-facts {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 22px;
  padding-top: 23px;
  border-top: 1px solid var(--rule);
  margin-top: 24px;
}
.ranch-facts dt { margin-bottom: 7px; color: var(--gold); }
.ranch-facts dd { font-size: 15px; color: var(--muted); }

.ranch-story {
  background: var(--paper);
  color: var(--ink);
  padding-block: clamp(60px, 9vw, 135px);
}
.ranch-story .ranch-meta { color: #754323; }
.ranch-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 7vw, 100px);
  padding-block: clamp(30px, 4.5vw, 70px);
  border-top: 1px solid #75432355;
}
.ranch-chapter:last-child { border-bottom: 1px solid #75432355; }
.ranch-chapter:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.ranch-chapter:nth-child(even) .ranch-stills { grid-column: 2; grid-row: 1; }
.ranch-stills { display: grid; gap: 22px; }
.ranch-chapter img { aspect-ratio: 3/2; object-fit: cover; }
.ranch-chapter figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.ranch-chapter h3 { font-size: clamp(30px, 3.8vw, 60px); margin: 11px 0 18px; }
.ranch-chapter-copy > p:last-child { max-width: 395px; color: #4f473d; font-size: 17px; }

.ranch-outcome { padding-block: clamp(70px, 11vw, 175px); }
.ranch-outcome-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 20px;
  align-items: baseline;
}
.ranch-outcome h2, .ranch-contact h2 { font-size: clamp(40px, 6.7vw, 104px); }
.ranch-outcome h2 + p { margin-top: 24px; max-width: 480px; color: var(--muted); font-size: 18px; }
.ranch-contact { background: #d6a269; color: #1e160f; padding-block: clamp(48px, 7vw, 110px); }
.ranch-contact-inner { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.ranch-contact h2 { margin-top: 16px; }
.ranch-contact .ranch-action { color: inherit; flex-shrink: 0; }
.ranch-contact .ranch-action:hover { background: #1e160f; border-color: #1e160f; color: var(--paper); }
.ranch-more { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 26px; }
.ranch-more a { min-height: 44px; align-content: center; }
.ranch-next { text-align: right; }
.ranch-next strong { display: block; font: 700 clamp(22px, 3vw, 44px)/1.2 Ranch Gotham, Arial, sans-serif; }

@media (max-width: 760px) {
  .ranch-meta { font-size: 10px; letter-spacing: .11em; }
  .ranch-hero-inner { min-height: 580px; }
  .ranch-hero-image { bottom: auto; height: 66%; }
  .ranch-hero-image img { object-position: 49% center; }
  .ranch-hero-image::after {
    background: linear-gradient(0deg, #0b0b09 0%, #0b0b0960 38%, transparent 68%, #0b0b09ad 100%);
  }
  .ranch-hero-copy { padding: 172px 0 40px; }
  .ranch-hero h1 { font-size: clamp(46px, 12vw, 86px); }
  .ranch .ranch-facts { grid-template-columns: 1fr 1fr; }
  .ranch-facts > div:last-child { grid-column: 1 / -1; }
  .ranch-chapter, .ranch-chapter:nth-child(even), .ranch-outcome-grid { grid-template-columns: 1fr; }
  .ranch-chapter:nth-child(even) .ranch-stills { grid-column: auto; grid-row: auto; }
  .ranch-contact-inner { align-items: start; flex-direction: column; }
}

/* The static layout doubles as the reduced-motion and no-script experience. */
.ranch-reel, .ranch-midnight-aerial { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .ranch-motion .ranch-hero { overflow: clip; }
  .ranch-motion .ranch-hero-image img:first-child {
    transform: scale(calc(1 + var(--ranch-camera, 0) * .12));
  }
  .ranch-motion .ranch-play img {
    transform: scale(calc(1 + (1 - var(--ranch-screen-entry, 1)) * .08));
  }
  .ranch-motion .ranch-play { overflow: clip; }
  .ranch-motion .ranch-outcome {
    background: radial-gradient(ellipse at 78% 72%, rgb(99 58 28 / calc(var(--ranch-outcome-entry, 0) * .35)), transparent 63%), var(--ink);
  }
  .ranch-motion .ranch-outcome h2 {
    transform: translateY(calc((1 - var(--ranch-outcome-entry, 1)) * 24px));
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 900px) and (min-height: 620px) {
  .ranch-motion .ranch-opening::after { content: ""; display: block; height: 45svh; }
  .ranch-motion .ranch-hero { position: sticky; top: 0; }
  .ranch-motion .ranch-hero-inner { min-height: 100svh; }
  .ranch-motion .ranch-hero-copy { padding-block: clamp(26px, 6vh, 72px); }
  .ranch-motion .ranch-hero h1 { font-size: clamp(60px, min(8.6vw, 15vh), 144px); }
  .ranch-motion .ranch-hero-image .ranch-midnight-aerial {
    display: block;
    position: absolute;
    inset: 0;
    opacity: var(--ranch-camera, 0);
    transform: scale(calc(1.09 - var(--ranch-camera, 0) * .09));
  }

  .ranch-motion .ranch-chapters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    column-gap: clamp(34px, 6vw, 110px);
    border-block: 1px solid #75432355;
  }
  .ranch-motion .ranch-reel { display: block; grid-column: 2; grid-row: 1 / span 3; }
  .ranch-motion .ranch-reel-stage {
    position: sticky;
    top: 0;
    display: grid;
    align-content: center;
    min-height: 100svh;
  }
  .ranch-motion .ranch-reel-stage figure {
    grid-area: 1 / 1;
    background: var(--paper);
    opacity: var(--ranch-dissolve, 0);
  }
  .ranch-motion .ranch-reel-stage figure:first-child { opacity: 1; }
  .ranch-motion .ranch-reel-stage img { aspect-ratio: 3/2; object-fit: cover; }
  .ranch-motion .ranch-reel-stage figcaption {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
  }
  .ranch-motion .ranch-chapter {
    display: flex;
    grid-column: 1;
    min-height: 104svh;
    border: 0;
  }
  .ranch-motion .ranch-chapter + .ranch-chapter { border-top: 1px solid #75432355; }
  .ranch-motion .ranch-chapter .ranch-stills {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (prefers-reduced-motion: no-preference) and ((max-width: 899px) or (max-height: 619px)) {
  .ranch-motion .ranch-chapter figure {
    clip-path: inset(0 calc((1 - var(--ranch-still-entry, 1)) * 12%) 0 0);
    transform: translateY(calc((1 - var(--ranch-still-entry, 1)) * 14px));
  }
}
