/* ============================================================
   POCO LOCO RANCH — Boerne, Texas
   Handcrafted static site. Palette: parchment, ink, rust, sage.
   ============================================================ */

:root {
  --parchment: #f1e7d0;
  --paper: #f8f1e0;
  --paper-deep: #e9dcbe;
  --ink: #241b12;
  --ink-soft: #43362a;
  --brown: #5c3a24;
  --rust: #9c4a22;
  --copper: #c1683c;
  --gold: #d9a441;
  --sage: #5f6f52;
  --navy: #23405f;
  --wood: #1d150e;
  --wood-2: #2a1f15;
  --cream: #fdf9ee;

  --font-display: "Ledger", "Georgia", serif;
  --font-body: "Lora", "Georgia", serif;
  --font-label: "Oswald", "Arial Narrow", sans-serif;

  --shadow-soft: 0 10px 30px rgba(36, 27, 18, 0.18);
  --shadow-deep: 0 24px 60px rgba(36, 27, 18, 0.35);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

:root {
  /* fine paper grain (tiled) */
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.47 0 0 0 0 0.35 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  /* soft aged-paper mottling for light fills */
  --tex-mottle: url("../assets/art/mottle-light.png");
  /* cream mottling for dark wood fills */
  --tex-mottle-light: url("../assets/art/mottle-dark.png");
}

body {
  font-family: var(--font-body);
  background-color: var(--parchment);
  background-image: var(--tex-mottle);
  background-size: 560px 560px;
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: var(--tex-grain);
}

img { max-width: 100%; display: block; }
a { color: var(--rust); }

::selection { background: var(--gold); color: var(--ink); }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  height: 1px;
  width: 3.2rem;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow--left { justify-content: flex-start; }
.eyebrow--left::before { display: none; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0.7rem 0 1.1rem;
  text-align: center;
  text-shadow:
    0 -1px 0 rgba(36, 27, 18, 0.28),
    0 1px 0 rgba(253, 249, 238, 0.85),
    0 5px 14px rgba(36, 27, 18, 0.16);
}
.gallery .section-title {
  text-shadow:
    0 -1px 0 rgba(0, 0, 0, 0.75),
    0 1px 0 rgba(253, 249, 238, 0.16),
    0 6px 18px rgba(0, 0, 0, 0.55);
}
.section-title--left { text-align: left; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.star-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--rust);
  margin: 1.4rem auto 0;
}
.star-divider::before, .star-divider::after {
  content: "";
  height: 1px;
  width: 5rem;
  background: currentColor;
  opacity: 0.45;
}
.star-divider svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.9rem;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  position: relative;
  transition: color 0.35s var(--ease-out), background 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn--solid { background: var(--rust); border-color: var(--rust); color: var(--cream); }
.btn--solid:hover { background: var(--copper); border-color: var(--copper); color: var(--cream); }
.btn--ghost-light { border-color: rgba(253, 249, 238, 0.85); color: var(--cream); }
.btn--ghost-light:hover { background: rgba(253, 249, 238, 0.12); }
.btn svg { width: 1.05em; height: 1.05em; fill: currentColor; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.45s ease, box-shadow 0.45s ease, padding 0.45s ease;
}
.nav.scrolled {
  background: rgba(29, 21, 14, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
  margin-right: auto;
}
.nav__brand img { width: 46px; height: 46px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); transition: transform 0.5s var(--ease-out); }
.nav__brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav__brand span {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  white-space: nowrap;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
  list-style: none;
}
.nav__links a:not(.btn) {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.nav__links a:not(.btn):hover { border-bottom-color: var(--gold); color: var(--gold); }
.nav__book { border-width: 1.5px; padding: 0.55rem 1.1rem; font-size: 0.72rem; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  z-index: 300;
  position: relative;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: "";
  display: block;
  position: absolute;
  left: 8px;
  width: 28px; height: 2.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav__toggle span { top: 21px; }
.nav__toggle span::before { left: 0; top: -9px; }
.nav__toggle span::after { left: 0; top: 9px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: translateY(9px) rotate(45deg); }
body.menu-open .nav__toggle span::after { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(29, 21, 14, 0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  body.menu-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { font-size: 1.05rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--wood);
  color: var(--cream);
}
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-drift 26s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1.06) translateX(-0.6%); }
  to { transform: scale(1.12) translateX(0.6%); }
}
.hero__video {
  position: absolute;
  top: 50%; left: 50%;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero__video.playing { opacity: 1; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(20, 13, 8, 0.05) 0%, rgba(20, 13, 8, 0.52) 82%),
    linear-gradient(to bottom, rgba(20, 13, 8, 0.5) 0%, rgba(20, 13, 8, 0.12) 30%, rgba(20, 13, 8, 0.2) 58%, rgba(232, 220, 194, 0.65) 86%, var(--parchment) 98%);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 1.4rem clamp(9rem, 13vw, 12rem);
  max-width: 60rem;
}
.hero__loc {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: clamp(0.72rem, 1.3vw, 0.95rem);
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  margin-bottom: 1.4rem;
}
.hero__title { line-height: 0; }
.hero__brand {
  width: clamp(240px, 34vw, 400px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.65));
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hero__tag {
  margin: 1.5rem auto 2.4rem;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(253, 249, 238, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  max-width: 36rem;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__social {
  position: absolute;
  bottom: clamp(1.1rem, 3vh, 2rem);
  z-index: 6;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1.5px solid rgba(253, 249, 238, 0.55);
  border-radius: 50%;
  color: rgba(253, 249, 238, 0.9);
  background: rgba(20, 13, 8, 0.18);
  backdrop-filter: blur(2px);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.hero__social:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.hero__social svg { width: 21px; height: 21px; }
.hero__social--l { left: clamp(1.1rem, 3.5vw, 2.4rem); }
.hero__social--r { right: clamp(1.1rem, 3.5vw, 2.4rem); }
/* ============================================================
   ARRIVAL — the gate swings open and you ride through to the windmill
   ============================================================ */
.arrival { --gate-w: min(1150px, 100vw); height: 540vh; position: relative; }

/* prologue — the phrases sweep through one by one before the gate stirs */
.arrival__prologue {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.prologue__phrase {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 100%;
  padding: 0 1.5rem;
  text-align: center;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.08;
  color: var(--ink);
  text-shadow:
    0 -1px 0 rgba(36, 27, 18, 0.28),
    0 1px 0 rgba(253, 249, 238, 0.85),
    0 5px 14px rgba(36, 27, 18, 0.16);
}
@media (max-height: 780px) {
  .prologue__phrase { font-size: clamp(2.1rem, 5vw, 3.6rem); }
}
.arrival__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.arrival__clouds {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cloud {
  position: absolute;
  left: -28vw;
  width: clamp(130px, 16vw, 240px);
  height: auto;
  opacity: 0.9;
  animation: cloud-drift linear infinite;
}
.cloud--1 { top: 11%; animation-duration: 64s; }
.cloud--2 { top: 24%; width: clamp(90px, 11vw, 170px); opacity: 0.65; animation-duration: 92s; animation-delay: -38s; }
.cloud--3 { top: 5%; width: clamp(70px, 8.5vw, 130px); opacity: 0.5; animation-duration: 80s; animation-delay: -64s; }
.cloud--4 { top: 17%; width: clamp(110px, 13vw, 200px); opacity: 0.8; animation-duration: 72s; animation-delay: -18s; }
.cloud--5 { top: 31%; width: clamp(60px, 7vw, 110px); opacity: 0.42; animation-duration: 105s; animation-delay: -80s; }
.cloud--6 { top: 2%; width: clamp(85px, 10vw, 150px); opacity: 0.58; animation-duration: 88s; animation-delay: -50s; }
.cloud--7 { top: 40%; width: clamp(70px, 8vw, 120px); opacity: 0.4; animation-duration: 98s; animation-delay: -26s; }
.cloud--8 { top: 52%; width: clamp(55px, 6.5vw, 100px); opacity: 0.32; animation-duration: 112s; animation-delay: -72s; }
@media (max-width: 880px) {
  .cloud--7 { top: 46%; opacity: 0.5; }
  .cloud--8 { top: 58%; opacity: 0.44; }
}
@keyframes cloud-drift {
  from { transform: translateX(0); }
  to { transform: translateX(160vw); }
}
@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; }
  .cloud--1 { left: 12%; }
  .cloud--2 { left: 52%; }
  .cloud--3 { left: 78%; }
  .cloud--4 { left: 30%; }
  .cloud--5 { left: 66%; }
  .cloud--6 { left: 90%; }
  .cloud--7 { left: 22%; }
  .cloud--8 { left: 58%; }
}

.arrival__beyond {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4.5rem);
  padding: 6rem clamp(1.2rem, 5vw, 4rem) 3rem;
  will-change: transform, opacity;
}
.arrival__intro { max-width: 34rem; will-change: transform, opacity; }
.arrival__script {
  font-family: "Kaushan Script", cursive;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  color: var(--rust);
  text-align: center;
  transform: rotate(-2.5deg);
  margin-bottom: 0.3rem;
}
.arrival__title { font-size: clamp(2.6rem, 5.2vw, 4.2rem); }
.arrival__beyond .welcome__windmill {
  margin: 0;
  align-self: flex-end;
  margin-bottom: calc(4vh + var(--gate-w) * 0.084 - 2.6rem);
  will-change: transform, opacity;
  transform-origin: 50% 92%;
}
.arrival__beyond .wm-scene img { height: min(52vh, 520px); }
.arrival__beyond figcaption { will-change: opacity; }
@media (max-width: 880px) {
  .arrival__beyond { flex-direction: column; justify-content: flex-end; gap: 1.4rem; padding-top: 5rem; padding-bottom: 0; }
  .arrival__beyond .wm-scene img { height: min(30vh, 300px); }
  .arrival__beyond .welcome__windmill { align-self: center; margin-bottom: calc(10vh + 8.4vw - 2.6rem); }
  .arrival__gate { margin-bottom: 10vh; }
}
.arrival__gate {
  position: relative;
  width: var(--gate-w);
  margin-bottom: 4vh;
  will-change: transform, opacity;
  transform-origin: 49.8% 60%;
  pointer-events: none;
}
/* the stone wall continues past the artwork to the screen edges */
.arrival__gate::before, .arrival__gate::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: calc((100vw - var(--gate-w)) / 2 + 2px);
  background-repeat: repeat-x;
  background-size: auto 100%;
  z-index: -1;
}
.arrival__gate::before {
  right: 100%;
  margin-right: -2px;
  background-image: url("../assets/art/gate-wall-l.webp");
  background-position: right top;
}
.arrival__gate::after {
  left: 100%;
  margin-left: -2px;
  background-image: url("../assets/art/gate-wall-r.webp");
  background-position: left top;
}

.gate-scene {
  position: relative;
  width: 100%;
  perspective: 1000px;
}
.gate-scene img { display: block; }
.gate-frame { width: 100%; height: auto; }
/* the homestead sits beyond the gate, off to the right */
.gate-house {
  position: absolute;
  left: 49%;
  bottom: 39.5%;
  width: 38%;
  height: auto;
  opacity: 0.75;
  will-change: transform, opacity;
}
.gate-leaf {
  position: absolute;
  top: 44.537%;
  width: 14.65%;
  height: 31.26%;
  will-change: transform;
}
.gate-leaf--l { left: 35.15%; width: 17.15%; transform-origin: left center; }
.gate-leaf--r { left: 52.3%; width: 12.2%; transform-origin: right center; }

@media (prefers-reduced-motion: reduce) {
  .arrival { height: auto; }
  .arrival__sticky { position: static; height: auto; flex-direction: column; gap: 2rem; padding: 4rem 0 2rem; overflow: visible; }
  .arrival__prologue { position: static; order: -2; }
  .prologue__phrase { position: static; transform: none; margin: 0.6rem 0; }
  .arrival__beyond { position: static; transform: none !important; opacity: 1 !important; flex-direction: column; }
  .arrival__gate { transform: none !important; opacity: 1 !important; order: -1; }
  .gate-leaf { transform: none !important; }
}

/* ============================================================
   SECTIONS — shared shell
   ============================================================ */
.section { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.3rem, 5vw, 3.5rem); position: relative; }
.section__inner { max-width: 74rem; margin: 0 auto; position: relative; }

/* ---------- welcome ---------- */
.welcome { padding-top: clamp(3.5rem, 7vw, 6rem); }
.welcome__grid {
  max-width: 46rem;
  margin: 0 auto;
}
.welcome__text p { margin-bottom: 1.2rem; font-size: 1.06rem; }
.welcome__text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.6em;
  float: left;
  line-height: 0.82;
  padding: 0.08em 0.14em 0 0;
  color: var(--rust);
}
.welcome__script {
  font-family: "Kaushan Script", cursive;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--rust);
  transform: rotate(-2deg);
  margin: 1.8rem 0 0.4rem;
}
.welcome__windmill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.wm-scene {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation; /* no double-tap zoom while spinning it up (iOS) */
}
/* easter egg: the freewheeling scoreboard beside the whipped-up windmill */
.wm-rpm {
  position: absolute;
  top: 4%;
  left: calc(100% + 1.8rem);
  z-index: 5;
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: rotate(2deg);
  transition: opacity 0.35s;
}
.wm-rpm.on { opacity: 1; }
.wm-rpm__label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.85;
}
.wm-rpm__now {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  color: var(--rust);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.wm-rpm__now i {
  font-family: var(--font-label);
  font-style: normal;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 0.3rem;
}
.wm-rpm__max {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.wm-rpm__max b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.wm-rpm__rank {
  display: block;
  margin-top: 0.35rem;
  font-family: "Kaushan Script", cursive;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--ink);
  transform-origin: 0% 50%;
}
.wm-rpm__rank.pop { animation: rank-pop 0.5s var(--ease-out); }
@keyframes rank-pop {
  0% { transform: scale(0.5) rotate(-6deg); }
  55% { transform: scale(1.18) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}
/* on the stacked mobile layout the open sky is left of the mill */
@media (max-width: 880px) {
  .wm-rpm { left: auto; right: calc(100% + 0.8rem); text-align: right; transform: rotate(-2deg); }
  .wm-rpm__now { font-size: 1.8rem; }
  .wm-rpm__rank { font-size: 1.05rem; transform-origin: 100% 50%; }
}
.wm-scene img { height: min(540px, 64vh); width: auto; max-width: 100%; object-fit: contain; }
.wm-svg, .wm-tail { position: absolute; inset: 0; width: 100%; height: 100%; }
.wm-svg { overflow: visible; } /* the ground line runs past the artwork to the screen edges */
.wm-tail { object-fit: contain; pointer-events: none; }
.wm-scroll, .wm-rotor { transform-origin: 483px 416px; transform-box: view-box; }
/* hand-drawn landscape running along the tower base to the screen edges;
   the strip's ground line sits at 60% of its height, hence the offsets */
.wm-horizon {
  position: absolute;
  bottom: -4.8%;
  left: 50%;
  width: 300vw;
  height: 12%;
  transform: translateX(-50%);
  transform-origin: 50% 60%;
  background: url("../assets/art/horizon.webp") repeat-x center top / auto 100%;
  pointer-events: none;
}
.wm-rotor { animation: wm-spin 45s linear infinite; }
@keyframes wm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .wm-rotor { animation: none; }
  .wm-scroll { transform: none !important; }
}
.welcome__windmill figcaption {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
  white-space: nowrap;
}


/* stat strip */
.stats--4 { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 640px) { .stats--4 { grid-template-columns: repeat(2, 1fr) !important; } }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(36, 27, 18, 0.25);
  border: 1px solid rgba(36, 27, 18, 0.25);
  margin-top: 3.4rem;
}
.stat {
  background: var(--paper) var(--tex-mottle);
  background-size: 560px 560px;
  padding: 1.7rem 1.2rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--rust);
}
.stat span {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* ============================================================
   LIFE AT THE RANCH — feature mosaic
   ============================================================ */
.life { background: var(--paper-deep) var(--tex-mottle); background-size: 560px 560px; }
.life::before, .life::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 66px;
  background-image: url("../assets/art/rockwall.webp");
  background-size: auto 66px;
  background-repeat: repeat-x;
  z-index: 2;
  pointer-events: none;
}
.life::before { top: -33px; }
.life::after { bottom: -33px; }
@media (max-width: 640px) {
  .life::before, .life::after, .merch::before { background-size: auto 39px; height: 39px; }
  .life::before { top: -20px; }
  .life::after { bottom: -20px; }
  .merch::before { top: -20px; }
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.9rem, 2vw, 1.4rem);
  margin-top: 3.2rem;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  min-height: 300px;
  display: block;
  text-decoration: none;
  background: var(--wood);
  border: 4px solid var(--cream);
  outline: 1px solid rgba(36,27,18,.3);
}
.card--full { grid-column: span 12; min-height: clamp(320px, 38vw, 560px); }
.card--full img { object-position: center 82%; } /* keep the gate wall and sign centered in the crop */
.card--wide { grid-column: span 7; }
.card--five { grid-column: span 5; }
.card--six { grid-column: span 6; }
.card--tall { grid-column: span 5; grid-row: span 2; min-height: 0; }
.card--half { grid-column: span 7; }
.card--third { grid-column: span 4; }
@media (max-width: 860px) {
  .card--full, .card--wide, .card--tall, .card--half, .card--third, .card--five, .card--six { grid-column: span 12; grid-row: auto; min-height: 260px; }
}
.card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.card:hover img { transform: scale(1.06); }
.card__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.6rem 1.4rem 1.1rem;
  background: linear-gradient(to top, rgba(20, 13, 8, 0.82), transparent);
  color: var(--cream);
}
.card__label strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  display: block;
}
.card__label span {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   HISTORY — plaque
   ============================================================ */
.history__grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: clamp(2.4rem, 5vw, 5rem);
  align-items: center;
  margin-top: 3rem;
}
@media (max-width: 900px) {
  .history__grid { grid-template-columns: 1fr; }
  .history__grid > * { grid-area: 1 / 1; }
  .history__grid { align-items: center; }
  .history__photo-col { will-change: opacity; }
}

.history__plaque {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 3;
}
.history__plaque img {
  width: min(400px, 86vw);
  height: auto;
  transform: rotate(-1.2deg);
  transform-origin: top left;
  will-change: transform;
  filter: drop-shadow(0 22px 40px rgba(36, 27, 18, 0.35));
}

.history__photo {
  border: 4px solid var(--cream);
  outline: 1px solid rgba(36,27,18,.3);
  box-shadow: var(--shadow-soft);
  transform: rotate(1.2deg);
}
.history__photo img { width: 100%; height: 100%; object-fit: cover; }
.history__caption {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 1rem;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--wood) var(--tex-mottle-light); background-size: 560px 560px; color: var(--cream); }
.gallery .eyebrow { color: var(--gold); }
.gallery .lede { color: rgba(253, 249, 238, 0.75); }
/* row-flowing grid so photo groups read left to right */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 3.2rem;
}
.gallery__grid a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--wood-2);
}
.gallery__grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  filter: saturate(0.94);
}
@media (max-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
}

/* the ranch film — plain player, plays on demand */
.gallery__video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 3.2rem;
  overflow: hidden;
  border-radius: 3px;
  background: var(--wood-2);
  cursor: pointer;
  box-shadow: var(--shadow-deep);
}
.gallery__video > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94);
  transition: transform 0.9s var(--ease-out);
}
.gallery__video:hover > img { transform: scale(1.03); }
.gallery__video::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(253, 249, 238, 0.16);
  border-radius: 3px;
  pointer-events: none;
  transition: border-color 0.4s;
}
.gallery__video:hover::after { border-color: var(--gold); }
.gallery__video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 8vw, 92px);
  height: clamp(64px, 8vw, 92px);
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: rgba(156, 74, 34, 0.92);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.gallery__video:hover .gallery__video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--rust); }
.gallery__video-play svg { width: 38%; height: 38%; margin-left: 6%; fill: currentColor; }
.gallery__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.gallery__video.playing > img, .gallery__video.playing .gallery__video-play { display: none; }
.gallery__video.playing { cursor: default; }
.gallery__grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(253, 249, 238, 0.16);
  border-radius: 3px;
  transition: border-color 0.4s;
}
.gallery__grid a:hover img { transform: scale(1.05); filter: saturate(1.08); }
.gallery__grid a:hover::after { border-color: var(--gold); }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(16, 11, 7, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1500px);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  border-radius: 3px;
}
.lightbox__count {
  position: absolute;
  top: 1.2rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(253, 249, 238, 0.7);
  font-family: var(--font-label);
  letter-spacing: 0.3em;
  font-size: 0.75rem;
}
.lightbox button {
  position: absolute;
  background: rgba(253, 249, 238, 0.07);
  border: 1px solid rgba(253, 249, 238, 0.3);
  color: var(--cream);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s;
}
.lightbox button:hover { background: rgba(253, 249, 238, 0.18); border-color: var(--gold); }
.lightbox__close { top: 1.1rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1.2rem; transform: none; }
  .lightbox__prev { left: 24%; }
  .lightbox__next { right: 24%; }
}

/* ============================================================
   STAY
   ============================================================ */
.stay__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: 3rem;
}
@media (max-width: 900px) { .stay__grid { grid-template-columns: 1fr; } }
.stay__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.stay__photos img {
  width: 100%; height: 100%;
  object-fit: cover;
  border: 4px solid var(--cream);
  outline: 1px solid rgba(36,27,18,.3);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}
.stay__photos img:nth-child(1) { transform: rotate(-1.4deg); }
.stay__photos img:nth-child(2) { transform: rotate(1.1deg) translateY(0.8rem); }
.stay__photos img:nth-child(3) { transform: rotate(0.8deg); }
.stay__photos img:nth-child(4) { transform: rotate(-1deg) translateY(0.8rem); }

.booking-card {
  background:
    url("../assets/art/homestead-sketch.webp") no-repeat center top,
    var(--paper) var(--tex-mottle);
  background-size: cover, 560px 560px;
  border: 1px solid rgba(36, 27, 18, 0.28);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.8rem, 3.5vw, 3rem);
  position: relative;
}
.booking-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(36, 27, 18, 0.3);
  pointer-events: none;
}
.booking-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.55rem;
  margin-bottom: 1.4rem;
}
.booking-card dl { margin-bottom: 1.8rem; }
.booking-card dt {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 1.1rem;
}
.booking-card dd { font-size: 1.12rem; }
.booking-card dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(36,27,18,0.35); }
.booking-card dd a:hover { color: var(--rust); border-color: var(--rust); }
.booking-card__btns { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ============================================================
   MERCH
   ============================================================ */
.merch { background: var(--paper-deep) var(--tex-mottle); background-size: 560px 560px; }
.merch::before {
  content: "";
  position: absolute;
  top: -27px; left: 0; right: 0;
  height: 66px;
  background-image: url("../assets/art/rockwall.webp");
  background-size: auto 66px;
  background-repeat: repeat-x;
  z-index: 2;
  pointer-events: none;
}
.merch__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 3.2rem;
}
@media (max-width: 800px) { .merch__grid { grid-template-columns: 1fr; max-width: 24rem; margin-inline: auto; } }
.product {
  background: var(--cream) var(--tex-mottle);
  background-size: 560px 560px;
  border: 1px solid rgba(36, 27, 18, 0.22);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  padding: 1.4rem 1.4rem 1.7rem;
  text-align: center;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  position: relative;
}
.product:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-deep); }
.product img { aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; margin-bottom: 1rem; }
.product--photo img { object-fit: cover; mix-blend-mode: normal; border-radius: 3px; }
.product strong {
  font-family: var(--font-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.86rem;
  display: block;
}
.product span {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 0.5rem;
  display: inline-block;
  border-bottom: 1px solid currentColor;
}
.merch__all { text-align: center; margin-top: 2.6rem; }

/* ============================================================
   VISIT
   ============================================================ */
.visit__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
  margin-top: 3rem;
}
@media (max-width: 900px) { .visit__grid { grid-template-columns: 1fr; } }
.visit__info { display: flex; flex-direction: column; justify-content: center; }
.visit__brand { width: min(200px, 46vw); height: auto; margin-bottom: 1.4rem; }
.visit__info p { margin-bottom: 1.4rem; color: var(--ink-soft); }
.visit__map {
  border: 4px solid var(--cream);
  outline: 1px solid rgba(36,27,18,.3);
  box-shadow: var(--shadow-soft);
  min-height: 380px;
  filter: sepia(0.28) saturate(0.9);
  transition: filter 0.6s ease;
}
.visit__map:hover { filter: none; }
.visit__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--wood) var(--tex-mottle-light);
  background-size: 560px 560px;
  color: rgba(253, 249, 238, 0.85);
  padding: 4.5rem clamp(1.3rem, 5vw, 3.5rem) 2.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer__logo { width: 88px; margin: 0 auto 1.2rem; opacity: 0.95; }
.footer__script {
  font-family: "Kaushan Script", cursive;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold);
  margin-bottom: 1.6rem;
  transform: rotate(-1.6deg);
}
.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1.5px solid rgba(253, 249, 238, 0.45);
  border-radius: 50%;
  color: rgba(253, 249, 238, 0.85);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.footer__social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer__social svg { width: 21px; height: 21px; }

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  list-style: none;
  margin-bottom: 2.2rem;
}
.footer__links a {
  color: rgba(253, 249, 238, 0.75);
  text-decoration: none;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.footer__links a:hover { color: var(--gold); }
.footer__fine {
  font-size: 0.85rem;
  color: rgba(253, 249, 238, 0.55);
  border-top: 1px solid rgba(253, 249, 238, 0.14);
  padding-top: 1.8rem;
  max-width: 60rem;
  margin: 0 auto;
}
.footer__fine a { color: rgba(253, 249, 238, 0.75); }

/* ============================================================
   scroll reveal & parallax
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
