/* Brandon McMillan Training Camps — canineminded.com
   Design language modeled on a luxury-resort layout: ivory ground, light serif display,
   wide-tracked geometric caps for titling, black and ranch-navy calls to action. */

:root {
  --ivory: #F8F8F3;
  --paper: #FFFFFF;
  --ink: #16191C;
  --black: #000000;
  --stone: #5C6266;
  --rule: #D8D9D1;
  --navy: #1E3443;
  --navy-deep: #15252F;
  --mist: #EAF1F5;
  --sky: #96C6E5;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;   /* headlines */
  --text: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif; /* reading text */
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.2vw, 64px);
  --maxw: 1360px;
  --header-h: 100px;
  --section: clamp(72px, 9vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--black); color: #fff; padding: 12px 18px; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.caps {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.caps-lg {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.35;
}
.display {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: clamp(28px, 4.1vw, 54px);
  line-height: 1.12;
}
.h-serif {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -.005em;
}
.h-serif { margin-bottom: 22px; }
.h-serif-md {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.1;
}
.h-card {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 29px;
  line-height: 1.12;
}
.lede { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.55; font-weight: 400; }
.italic { font-style: italic; }
.muted { color: var(--stone); }
.small { font-size: 16px; line-height: 1.6; }
.eyebrow { display: block; margin-bottom: 18px; }
.measure { max-width: 34em; }
.measure-narrow { max-width: 28em; }
.center { text-align: center; }
.center .measure, .center .measure-narrow { margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.section + .section.no-gap-top { padding-top: 0; }
.rule-top { border-top: 1px solid var(--rule); }
.bg-paper { background: var(--paper); }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 15px 28px;
  font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.2;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn-solid { background: var(--black); border-color: var(--black); color: #fff; }
.btn-solid:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.9); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.center .btn-row { justify-content: center; }
.link-u {
  font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  padding-bottom: 5px; border-bottom: 1px solid currentColor; display: inline-block;
}
.link-u:hover { border-bottom-color: var(--sky); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
}
.util {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px; padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
  color: var(--stone);
  transition: margin-top .3s ease;
}
.divider { display: inline-block; width: 1px; height: 11px; background: var(--sky); margin: 0 12px; vertical-align: -1px; }
.util-right { display: flex; gap: 26px; }
.util a:hover { color: var(--ink); }
.site-header.is-scrolled .util { margin-top: -35px; }
.mainbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h); padding: 0 var(--gutter);
}
.brand { display: inline-flex; flex-direction: column; align-items: center; justify-self: start; color: var(--ink); }
.brand img { width: 158px; height: auto; }
.brand-tag {
  display: flex; align-items: center; margin-top: 5px; white-space: nowrap;
  font-family: var(--sans); font-weight: 600; font-size: 9.4px; letter-spacing: .06em; line-height: 1; text-transform: uppercase;
}
.brand-tag i { display: inline-block; width: 1.5px; height: 1.2em; background: var(--sky); margin: 0 .75em; }
.brand-lg img { width: 230px; }
.brand-lg .brand-tag { font-size: 13.6px; margin-top: 8px; }
.nav { display: flex; gap: clamp(16px, 1.9vw, 30px); }
.nav a {
  font-family: var(--text); font-size: 16px; line-height: 1; color: var(--ink);
  padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.header-cta { justify-self: end; display: flex; align-items: center; gap: 18px; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 24px; height: 1.5px; background: var(--ink); position: relative; content: ""; transition: transform .3s ease, background-color .3s ease;
}
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ivory);
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.m-link { font-family: var(--serif); font-weight: 300; font-size: 38px; line-height: 1.25; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }
.mobile-menu .m-meta { margin-top: 26px; color: var(--stone); display: grid; gap: 10px; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mainbar { grid-template-columns: 1fr auto; }
  .header-cta .btn { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 84px; }
  .util { display: none; }
  .brand img { width: 134px; }
  .brand-tag { font-size: 8px; margin-top: 4px; }
}

/* ---------- Hero (home slider) ---------- */
.hero {
  position: relative; height: calc(100svh - var(--header-h) - 35px - 72px);
  min-height: 520px; max-height: 920px; overflow: hidden; background: var(--navy-deep); color: #fff;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-media, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after, .page-hero::after, .banner::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.38); pointer-events: none; }
.hero-copy {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 var(--gutter);
}
.hero-copy .display { max-width: 16em; }
.hero-copy .sub { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; max-width: 30em; margin: 22px 0 0; text-shadow: 0 1px 18px rgba(0,0,0,.25); }
.hero-copy .btn-row { margin-top: 34px; }
.hero-controls {
  height: 72px; display: flex; align-items: center; justify-content: center; gap: 22px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em;
}
.hero-controls button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.hero-controls .count { display: inline-flex; align-items: center; gap: 12px; min-width: 88px; justify-content: center; }
.hero-controls .count i { display: inline-block; width: 28px; height: 1px; background: var(--ink); }
.hero-controls svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.hero-controls .pause svg.play { display: none; }
.hero-controls .pause.is-paused svg.play { display: block; }
.hero-controls .pause.is-paused svg.bars { display: none; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; height: min(68vh, 720px); min-height: 420px; overflow: hidden; color: #fff; background: var(--navy-deep);
}
.page-hero > img, .page-hero .split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .split-img { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.page-hero .split-img > div { position: relative; overflow: hidden; }
.page-hero .hero-copy { position: relative; z-index: 2; }
.page-hero.short { height: min(52vh, 560px); }

/* ---------- Intro statement ---------- */
.statement { text-align: center; }
.statement .h-serif { max-width: 15em; margin: 0 auto 28px; }
.statement p { max-width: 36em; margin-left: auto; margin-right: auto; }
.statement .note { margin-top: 26px; color: var(--stone); font-style: italic; font-size: 16px; }

/* ---------- Intro + rail (cards carousel) ---------- */
.rail-section { display: grid; grid-template-columns: minmax(260px, 3.4fr) minmax(0, 8.6fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.rail-intro { position: sticky; top: calc(var(--header-h) + 40px); padding-top: 12px; }
.rail-intro .h-serif { font-size: clamp(36px, 3.6vw, 52px); margin-bottom: 22px; }
.rail-wrap { position: relative; min-width: 0; }
.rail {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 48px) / 3));
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px;
  margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter);
}
.rail::-webkit-scrollbar { display: none; }
.card { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; }
.card-img { display: block; overflow: hidden; background: #e8e8e2; margin-bottom: 22px; }
.card-img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.08; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
.card:hover .card-img img { transform: scale(1.035); }
.card .h-card { margin-bottom: 6px; }
.card .italic { font-size: 15.5px; color: var(--stone); margin-bottom: 12px; }
.card p.small { margin-bottom: 20px; }
.card .btn { align-self: flex-start; margin-top: auto; }
.rail-nav { display: flex; gap: 10px; margin-top: 28px; }
.rail-nav button { width: 48px; height: 48px; border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s; }
.rail-nav button:hover { background: var(--ink); }
.rail-nav button:hover svg { stroke: var(--ivory); }
.rail-nav button[disabled] { opacity: .3; pointer-events: none; }
.rail-nav svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.4; }

@media (max-width: 960px) {
  .rail-section { grid-template-columns: minmax(0, 1fr); }
  .rail-intro { position: static; }
  .rail { grid-auto-columns: minmax(250px, 72%); }
}

/* ---------- Split feature (image + text) ---------- */
.split { display: grid; grid-template-columns: 7fr 5fr; align-items: stretch; min-height: 600px; }
.split.reverse { grid-template-columns: 5fr 7fr; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; min-height: 460px; overflow: hidden; }
.split-media img, .split-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-text { padding: clamp(40px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.split-text .h-serif { font-size: clamp(36px, 3.8vw, 54px); margin-bottom: 24px; }
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; min-height: 0; }
  .split.reverse .split-media { order: 0; }
  /* Explicit height: iPhone Safari collapses an aspect-ratio box that is stretched in a grid row, hiding the photo */
  .split, .split.reverse { align-items: start; }
  .split-media { align-self: start; min-height: 0; aspect-ratio: auto; height: 75vw; max-height: 560px; }
  .split-text { padding: 48px var(--gutter) 8px; }
}

/* contained split (inside wrap) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media { overflow: hidden; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-media.tall img { aspect-ratio: 4 / 5; }
.feature .h-serif { font-size: clamp(34px, 3.4vw, 50px); margin-bottom: 22px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
}

/* ---------- Banner (full-bleed, centered) ---------- */
.banner { position: relative; min-height: min(78vh, 760px); display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { background: rgba(0,0,0,.46); }
.banner .hero-copy { height: auto; padding-top: 80px; padding-bottom: 80px; }

/* ---------- Two-city tiles ---------- */
.cities { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.city { position: relative; display: block; aspect-ratio: 4 / 3.1; overflow: hidden; color: #fff; }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.6,.2,1); }
.city:hover img { transform: scale(1.03); }
.city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 35%, rgba(0,0,0,.55)); }
.city-label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px; text-align: center; }
.city-label .display { font-size: clamp(24px, 2.6vw, 36px); }
.city-label .sub { font-size: 17px; margin-top: 8px; display: block; }
@media (max-width: 760px) { .cities { grid-template-columns: 1fr; } }

/* ---------- Feature tiles (About / Team) ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tile-img { aspect-ratio: 16 / 11; overflow: hidden; margin-bottom: 22px; background: #e8e8e2; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.6,.2,1); }
.tile:hover .tile-img img { transform: scale(1.03); }
.tile .caps-lg { margin-bottom: 8px; }
.tile p { margin-bottom: 14px; }
.tile-img { position: relative; }
.mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Quotes ---------- */
.quotes { text-align: center; }
.quote-stage { position: relative; display: grid; }
.quote { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; }
.quote.is-active { opacity: 1; visibility: visible; }
.quote blockquote { margin: 0 auto; max-width: 25em; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.1vw, 44px); line-height: 1.22; }
.quote figcaption { margin-top: 30px; }
.quote figcaption .muted { display: block; margin-top: 6px; font-style: italic; font-size: 16px; }
.quote-nav { margin-top: 40px; display: inline-flex; align-items: center; gap: 18px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.quote-nav button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.quote-nav svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.4; }

/* ---------- CTA line ---------- */
.cta-line { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-line .h-serif { font-size: clamp(34px, 3.4vw, 48px); }
.cta-line p { margin: 12px 0 0; }
.cta-line .contact-meta { margin-top: 16px; color: var(--stone); font-size: 16px; }
.cta-line .contact-meta a { border-bottom: 1px solid var(--rule); }
.cta-line .contact-meta a:hover { border-bottom-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-top: 72px; }
.foot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }

.foot-top .tag { max-width: 22em; margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.3; font-weight: 400; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; padding: 56px 0; }
.foot-cols h2 { margin-bottom: 22px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16px; line-height: 1.45; }
.foot-cols a:hover { border-bottom: 1px solid var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0 26px; border-top: 1px solid var(--rule); color: var(--stone); }
.foot-band { height: 10px; background: var(--navy); }
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-cols { grid-template-columns: 1fr; } }

/* ---------- Section heading ---------- */
.sec-head { margin-bottom: clamp(36px, 4vw, 60px); }
.sec-head.center { text-align: center; }
.sec-head .h-serif { margin-bottom: 20px; }
.sec-head p { max-width: 36em; }
.sec-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Programs (training page) ---------- */
.index-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 34px; }
.index-links a { font-family: var(--text); font-size: 16px; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.index-links a:hover { border-bottom-color: var(--ink); }
.program { padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--rule); }
.program:first-of-type { border-top: 0; }
.program .feature-media img { aspect-ratio: 5 / 4; }
.program .h-serif { margin-bottom: 8px; }
.program .italic.sub { font-size: 18px; color: var(--stone); margin-bottom: 22px; display: block; }
.rates { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.rates li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.rates .r-name { font-size: 17px; line-height: 1.4; }
.rates .r-name small { display: block; font-size: 15px; color: var(--stone); font-style: italic; }
.rates .r-price { font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: .06em; white-space: nowrap; }

/* ---------- Locations ---------- */
.amenities { display: flex; flex-wrap: wrap; justify-content: center; margin: 40px 0 0; padding: 0; list-style: none; }
.amenities li { padding: 6px 22px; border-left: 1px solid var(--sky); }
.amenities li:first-child { border-left: 0; }
.qualities { margin-top: 16px; font-style: italic; color: var(--stone); font-size: 17px; }
.gallery { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(300px, 44vw, 720px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter); }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery img { width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; background: #e8e8e2; }
.gallery figure.tall { grid-column: span 1; }
.gallery figure.tall img { aspect-ratio: 16 / 9.4; object-position: center 60%; }
.gallery figcaption { margin-top: 14px; }
.gallery-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
@media (max-width: 760px) { .gallery { grid-auto-columns: 84vw; } }
.tour { position: relative; background: #000; }
.tour video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.loc-anchor { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.person-img { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 20px; background: #e8e8e2; }
.person-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.person .h-card { margin-bottom: 6px; }
.person .caps { color: var(--stone); display: block; margin-bottom: 16px; }
.person p { font-size: 16px; line-height: 1.6; }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.commands { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 48px auto 0; padding: 0; list-style: none; max-width: 1100px; }
.commands li {
  font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  font-size: clamp(26px, 4.4vw, 60px); line-height: 1; padding: 18px clamp(14px, 2.2vw, 30px);
  border-left: 1px solid var(--sky);
}
.commands li:first-child { border-left: 0; }
.commands li:nth-child(even) { color: #6FA7CC; }
.lineage { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-auto-rows: 260px; gap: 12px; }
.lineage figure { margin: 0; overflow: hidden; background: #ddd; }
.lineage img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); }
.lineage .wide { grid-column: span 2; }
.lineage .tall { grid-row: span 2; }
@media (max-width: 860px) { .lineage { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; } .lineage .wide { grid-column: span 2; } }
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.covers img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 22px 40px -28px rgba(0,0,0,.45); }
@media (max-width: 760px) { .covers { grid-template-columns: 1fr 1fr; } }
.prose p { max-width: 34em; }
.prose h3 { margin: 40px 0 14px; }

/* ---------- Media ---------- */
.networks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin-top: 26px; }
.networks span { color: var(--ink); }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.media-card .card-img img { aspect-ratio: 16 / 10; }
.media-card .h-card { margin-bottom: 10px; }
.media-card p { font-size: 16px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; margin-bottom: 22px; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .3s ease; }
.yt:hover img { opacity: 1; }
.yt .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); }
.yt .play svg { width: 22px; height: 22px; fill: #fff; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 960px) { .media-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .media-grid { grid-template-columns: 1fr; } }

/* ---------- Books ---------- */
.book-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.book-hero .copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 6vw, 96px) var(--gutter); }
.book-hero .stage { background: var(--mist); display: flex; align-items: center; justify-content: center; gap: 4%; padding: 48px; }
.book-hero .stage img { width: 38%; height: auto; filter: drop-shadow(0 30px 30px rgba(20,30,40,.25)); }
.book { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.book-cover { background: var(--mist); display: flex; align-items: center; justify-content: center; padding: clamp(36px, 5vw, 72px); }
.book-cover img { width: 70%; filter: drop-shadow(0 30px 30px rgba(20,30,40,.25)); }
.buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 860px) { .book-hero, .book { grid-template-columns: 1fr; } .book-hero .stage { order: -1; min-height: 380px; } }

/* ---------- Out of Town ---------- */
.region-head { padding-top: var(--section); }
.region-head .h-serif { margin-bottom: 14px; }
.subhead { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); margin: 72px 0 18px; }
.subhead svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.3; }
.subhead h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
table.flights { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; letter-spacing: .02em; min-width: 560px; }
table.flights th { text-align: left; font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 14px 16px; background: var(--mist); }
table.flights td { padding: 16px; border-bottom: 1px solid var(--rule); }
.fine { font-size: 14.5px; line-height: 1.55; color: var(--stone); margin-top: 16px; }
.panel { background: var(--mist); padding: 28px 32px; margin-top: 28px; border-left: 2px solid var(--sky); }
.panel .caps { display: block; margin-bottom: 10px; }
.panel p { font-size: 16.5px; margin-bottom: .5em; }
.hotels { list-style: none; margin: 0; padding: 0; }
.hotel { display: grid; grid-template-columns: 5fr 4fr; gap: 12px 48px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.hotel .h-card { margin-bottom: 8px; }
.hotel .caps { color: var(--stone); }
.hotel .policy strong { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.hotel .policy span { font-size: 15.5px; color: var(--stone); }
.hotel.no-pets .policy strong { color: #8A3B2E; }
@media (max-width: 760px) { .hotel { grid-template-columns: 1fr; } }
.restaurants { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.resto { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.resto .caps { color: var(--stone); display: block; margin-bottom: 8px; }
.resto h4 { font-family: var(--serif); font-size: 26px; line-height: 1.15; margin-bottom: 6px; }
.resto p { font-size: 16px; margin-bottom: 6px; }
.resto address { font-style: normal; font-family: var(--sans); font-size: 13px; letter-spacing: .03em; color: var(--stone); }
@media (max-width: 760px) { .restaurants { grid-template-columns: 1fr; } }
.region-banner { position: relative; height: min(60vh, 600px); min-height: 360px; overflow: hidden; color: #fff; margin-top: var(--section); }
.region-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.region-banner::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.region-banner .hero-copy { position: relative; z-index: 2; }
.region-banner .display { font-size: clamp(26px, 3.4vw, 46px); max-width: 22em; }

/* ---------- Forms ---------- */
.inquire-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.field label .opt { color: var(--stone); font-weight: 500; letter-spacing: .12em; }
.field input, .field select, .field textarea {
  font-family: var(--text); font-size: 18px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: 10px 0 12px; border-radius: 0; -webkit-appearance: none; appearance: none; width: 100%; min-width: 0;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2316191C' fill='none' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 28px; }
.field textarea { min-height: 150px; resize: vertical; border: 1px solid var(--ink); padding: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 1px 0 0 var(--navy); }
.choices { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.field label.choice { font-family: var(--text); font-weight: 400; font-size: 16px; letter-spacing: normal; text-transform: none; position: relative; }
.choices legend { margin-bottom: 12px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--rule); font-size: 16px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.choice input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.form-foot p { margin: 0; font-size: 15px; color: var(--stone); }
.hp { position: absolute; left: -5000px; }
.aside-block { padding: 26px 0; border-top: 1px solid var(--rule); }
.aside-block:first-child { border-top: 1px solid var(--ink); }
.aside-block .caps { display: block; margin-bottom: 10px; }
.aside-block p { font-size: 16px; margin: 0; }
.aside-block a { border-bottom: 1px solid var(--rule); }
.aside-block a:hover { border-bottom-color: var(--ink); }
@media (max-width: 900px) { .inquire-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Reveal (single orchestrated hero entrance) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active .hero-copy > * { animation: rise 1.1s cubic-bezier(.2,.6,.2,1) both; }
  .hero-slide.is-active .hero-copy > *:nth-child(2) { animation-delay: .12s; }
  .hero-slide.is-active .hero-copy > *:nth-child(3) { animation-delay: .24s; }
  .hero-slide.is-active .hero-copy > *:nth-child(4) { animation-delay: .36s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .quote { transition: none; }
  .card-img img, .city img, .tile-img img { transition: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }

.nowrap { white-space: nowrap; }

/* ---------- Conversion elements ---------- */
.trust { border-bottom: 1px solid var(--rule); padding: 30px 0 34px; text-align: center; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 10px; }
.trust-list li { padding: 2px 22px; border-left: 1px solid var(--sky); }
.trust-list li:first-child { border-left: 0; }
.trust .seen { margin-top: 16px; color: var(--stone); font-style: italic; font-size: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { border-top: 1px solid var(--ink); padding-top: 26px; counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-weight: 300; font-size: 64px; line-height: .9; margin-bottom: 18px; color: #6FA7CC; }
.steps h3 { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin-bottom: 10px; }
.steps p { font-size: 16px; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.trusted-by { margin: 34px auto 0; font-size: 16px; color: var(--stone); font-style: italic; }
.quick { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.quick .h-serif { font-size: clamp(36px, 3.8vw, 54px); }
.quick .contact-meta { color: var(--stone); font-size: 16px; }
.quick .contact-meta a { border-bottom: 1px solid var(--rule); }
.quick .form-grid { gap: 22px 24px; }
@media (max-width: 900px) { .quick { grid-template-columns: minmax(0, 1fr); } }
.small-by-design { margin-top: 18px; font-style: italic; color: var(--stone); }
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--ivory); border-top: 1px solid var(--rule);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 10px;
  }
  .mobile-cta .btn { min-height: 46px; padding: 12px 10px; }
  body.has-mobile-cta { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}

/* Program headings that move the card row (home) */
.rail-tabs {
  position: relative; display: flex; flex-wrap: nowrap; gap: 0 22px; margin: 0 calc(var(--gutter) * -1) 28px 0; padding-right: var(--gutter);
  border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none;
}
.rail-tabs::-webkit-scrollbar { display: none; }
.rail-tabs button {
  flex: none; font-family: var(--text); font-size: 15.5px; line-height: 1.2; color: var(--stone);
  padding: 8px 0 13px; border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease; white-space: nowrap;
}
.rail-tabs button:hover { color: var(--ink); }
.rail-tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 1360px) { .rail-tabs { gap: 0 16px; } }

/* Hero buttons with arrows (Jess & Brandon's request) */
.btn .arr { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; margin-left: 2px; transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn:hover .arr { transform: none; } }
.hero-btns .btn { min-height: 54px; padding: 17px 30px; font-size: 12px; }
@media (max-width: 640px) {
  .hero-btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-left: auto; margin-right: auto; }
  .hero-btns .btn { width: 100%; font-size: 11px; letter-spacing: .15em; padding: 16px 18px; gap: 10px; }
}
