
/* ============================================================
   BARTRAM TRAIL GOLF CLUB — Design System v2
   ------------------------------------------------------------
   Reference: Wentworth Club. What's borrowed is the CRAFT —
   prose where others use cards, a nav of four items, full-width
   photography, classical serif at large sizes, enormous negative
   space, motion you notice only if you look for it.
   What is deliberately NOT borrowed is the positioning. Wentworth
   sells exclusivity; Bartram sells belonging. So the restraint
   reads as considered and generous, never velvet-rope.

   Type:   Spectral throughout — one family, display and UI alike.
   Colour: near-monochrome. Photography carries all the colour.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --ink:        #12140F;
  --ink-2:      #23261E;
  --ink-3:      #4A4F44;

  --alabaster:  #F6F4EE;
  --paper:      #FBFAF6;
  --stone:      #E7E3D8;
  --stone-2:    #D5CFC0;

  --forest:     #1C3326;
  --forest-2:   #12241A;
  --brass:      #A8894C;
  --brass-lit:  #C8A968;

  --bg:         var(--alabaster);
  --surface:    var(--paper);
  --text:       var(--ink);
  --text-mute:  var(--ink-3);
  --line:       rgba(18, 20, 15, 0.14);
  --line-soft:  rgba(18, 20, 15, 0.07);
  --accent:     var(--brass);

  /* Single family site-wide. Spectral carries true 200/300 weights, so every
     font-weight declaration below renders as authored instead of collapsing
     to 400 the way Quattrocento (400/700 only) forced. It also ships real
     italics rather than a synthesised slant. */
  --display: "Spectral", Georgia, "Times New Roman", serif;
  --sans:    "Spectral", Georgia, "Times New Roman", serif;

  --t-mega:  clamp(3.6rem, 12vw, 11rem);
  --t-h1:    clamp(2.9rem, 7vw, 6rem);
  --t-h2:    clamp(2.3rem, 5vw, 4.4rem);
  --t-h3:    clamp(1.6rem, 2.6vw, 2.4rem);
  --t-h4:    clamp(1.15rem, 1.5vw, 1.4rem);
  --t-lead:  clamp(1.05rem, 1.25vw, 1.22rem);
  --t-body:  clamp(0.97rem, 1vw, 1.04rem);
  --t-kick:  clamp(0.62rem, 0.74vw, 0.7rem);

  --gut:     clamp(1.4rem, 5vw, 5rem);
  --sec:     clamp(4.5rem, 9vw, 9rem);
  --sec-sm:  clamp(3rem, 5.5vw, 5.5rem);
  --maxw:    1500px;
  --readw:   54ch;

  --e-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --e-io:    cubic-bezier(0.76, 0, 0.24, 1);
  --d-fast:  0.4s;
  --d-mid:   0.9s;
  --d-slow:  1.6s;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: var(--t-body);
  font-weight: 300; line-height: 1.72;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.has-bar { padding-bottom: 76px; }
@media (max-width: 700px) { body.has-bar { padding-bottom: 70px; } }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--forest); color: var(--paper); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: var(--gut); z-index: 999; background: var(--forest); color: var(--paper); padding: 0.9rem 1.4rem; font: 400 0.8rem/1 var(--sans); letter-spacing: 0.1em; }
.skip-link:focus { top: 1rem; }

/* ---------- 3. TYPE ---------- */
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 300;
  line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.1; }
h4 { font-size: var(--t-h4); font-weight: 400; line-height: 1.25; }

.kicker {
  font-family: var(--sans); font-size: var(--t-kick); font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.8rem; display: block;
}
.kicker.is-center { text-align: center; }
.kicker-rule { display: flex; align-items: center; gap: 1.1rem; }
.kicker-rule::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: 0.35; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--e-out) 0.25s; }
.is-in .kicker-rule::after { transform: scaleX(1); }

.lead { font-size: var(--t-lead); line-height: 1.65; color: var(--text-mute); max-width: var(--readw); font-weight: 300; }
.prose p { max-width: var(--readw); margin-bottom: 1.35em; color: var(--text-mute); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 500; }
.prose .big { font-size: var(--t-lead); color: var(--text); line-height: 1.6; }
.emph { font-style: italic; color: inherit; }

.rl { display: block; overflow: hidden; padding-bottom: 0.1em; }
.rl > span { display: block; transform: translateY(112%); transition: transform 1.5s var(--e-out); }
.is-in .rl > span { transform: translateY(0); }
.is-in .rl:nth-child(2) > span { transition-delay: 0.11s; }
.is-in .rl:nth-child(3) > span { transition-delay: 0.22s; }
.is-in .rl:nth-child(4) > span { transition-delay: 0.33s; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.4s var(--e-out), transform 1.4s var(--e-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.12s; }
.reveal[data-d="2"] { transition-delay: 0.24s; }
.reveal[data-d="3"] { transition-delay: 0.36s; }
.reveal[data-d="4"] { transition-delay: 0.48s; }
.reveal[data-d="5"] { transition-delay: 0.6s; }
.reveal[data-d="6"] { transition-delay: 0.72s; }

/* ---------- 4. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 940px; }
.wrap-tight { max-width: 720px; }
.section { padding-block: var(--sec); position: relative; }
.section-tight { padding-block: var(--sec-sm); }
main { position: relative; z-index: 1; }

.ed { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(2.5rem, 7vw, 8rem); align-items: start; }
.ed-center { align-items: center; }
.ed-flip { grid-template-columns: minmax(0,7fr) minmax(0,5fr); }
.split, .split-even { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.split-even { align-items: center; }
@media (max-width: 940px) { .ed, .ed-flip, .split, .split-even { grid-template-columns: 1fr; gap: 2.6rem; } }

.section-head { max-width: 760px; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .lead { margin-inline: auto; }
.section-head h2 + .lead { margin-top: 2rem; }

.tone-dark {
  background: var(--ink); color: var(--alabaster);
  --text: var(--alabaster); --text-mute: rgba(246,244,238,0.62);
  --line: rgba(246,244,238,0.16); --line-soft: rgba(246,244,238,0.08);
  --surface: rgba(246,244,238,0.035); --accent: var(--brass-lit);
}
.tone-forest, .tone-pine {
  background: var(--forest); color: var(--alabaster);
  --text: var(--alabaster); --text-mute: rgba(246,244,238,0.7);
  --line: rgba(246,244,238,0.2); --line-soft: rgba(246,244,238,0.1);
  --surface: rgba(246,244,238,0.05); --accent: var(--brass-lit);
}
.tone-stone, .tone-sand { background: var(--stone); }
.tone-paper { background: var(--paper); }

/* ---------- 5. BUTTONS & LINKS ---------- */
.btn {
  --btn-fg: var(--text);
  position: relative; display: inline-flex; align-items: center; gap: 0.9rem;
  padding: 1.1rem 2.2rem;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--btn-fg); border: 1px solid currentColor; border-radius: 0;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color var(--d-fast) ease, border-color var(--d-fast) ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.7s var(--e-io);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .arw { transition: transform 0.6s var(--e-out); }
.btn:hover .arw { transform: translateX(6px); }

.btn-solid, .btn-clay { --btn-fg: var(--paper); background: var(--forest); border-color: var(--forest); }
.btn-solid::before, .btn-clay::before { background: var(--brass); }
.btn-solid:hover, .btn-clay:hover { color: var(--ink); border-color: var(--brass); }
.btn-brass { --btn-fg: var(--ink); background: var(--brass); border-color: var(--brass); }
.btn-brass::before { background: var(--forest); }
.btn-brass:hover { color: var(--paper); border-color: var(--forest); }
.btn-ghost { --btn-fg: var(--text); }
/* The generic .btn::before fill is `currentColor`, which transitions together
   with the text on hover — so a ghost button swept in a dark fill behind text
   that was going dark at the same moment, and blacked itself out. --btn-fg is
   a custom property no :hover rule touches, so the fill holds the resting
   colour and the hover text always reads against it. */
.btn-ghost::before { background: var(--btn-fg); }
.btn-ghost:hover { color: var(--bg); }
.btn-light, .btn-bone { --btn-fg: var(--ink); background: var(--alabaster); border-color: var(--alabaster); }
.btn-light::before, .btn-bone::before { background: var(--brass); }
.btn-light:hover, .btn-bone:hover { color: var(--ink); border-color: var(--brass); }
.btn-sm { padding: 0.82rem 1.4rem; font-size: 0.64rem; letter-spacing: 0.2em; }
.btn-lg { padding: 1.25rem 2.6rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.8rem; }
.btn-row.is-center { justify-content: center; }

/* Dark surfaces: outlined buttons go light */
.hero .btn-ghost, .phero .btn-ghost, .cta-band .btn-ghost,
.band-over .btn-ghost, .tone-dark .btn-ghost, .tone-forest .btn-ghost,
.tone-pine .btn-ghost, .bookbar .btn-ghost { --btn-fg: var(--alabaster); }
.hero .btn-ghost:hover, .phero .btn-ghost:hover, .cta-band .btn-ghost:hover,
.band-over .btn-ghost:hover, .tone-dark .btn-ghost:hover, .tone-forest .btn-ghost:hover,
.tone-pine .btn-ghost:hover, .bookbar .btn-ghost:hover { color: var(--ink); }

.tlink {
  position: relative; display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  padding-bottom: 7px; color: var(--text);
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; opacity: 0.4;
  transform-origin: right; transform: scaleX(1);
  transition: transform 0.7s var(--e-io), opacity 0.4s ease;
}
.tlink:hover { color: var(--accent); }
.tlink:hover::after { transform-origin: left; transform: scaleX(0.24); opacity: 1; }

/* ---------- 6. PRELOADER ---------- */
.preloader { position: fixed; inset: 0; z-index: 9999; background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.pl-inner { position: relative; z-index: 2; text-align: center; width: min(88vw, 520px); }
.pl-mark {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 4.4rem); color: var(--alabaster);
  line-height: 1; letter-spacing: 0.04em;
  display: flex; justify-content: center; flex-wrap: wrap;
}
.pl-mark span { display: inline-block; opacity: 0; transform: translateY(0.5em); animation: plLetter 1.2s var(--e-out) forwards; }
@keyframes plLetter { to { opacity: 1; transform: none; } }
.pl-sub {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 300;
  letter-spacing: 0.44em; text-transform: uppercase; color: var(--brass-lit);
  margin-top: 1.9rem; opacity: 0; animation: plFade 1s var(--e-out) 0.9s forwards;
}
@keyframes plFade { to { opacity: 1; } }
.pl-bar { margin: 2.6rem auto 0; width: 100%; height: 1px; background: rgba(246,244,238,0.14); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; animation: plBar 1.9s var(--e-io) 0.3s forwards; }
@keyframes plBar { to { transform: scaleX(1); } }
.preloader.is-done { pointer-events: none; }
.preloader.is-done .pl-inner { opacity: 0; transition: opacity 0.7s ease; }

/* ---------- 7. PAGE TRANSITION ---------- */
.curtain { position: fixed; inset: 0; z-index: 9500; pointer-events: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.curtain i { background: var(--forest); transform: scaleY(0); transform-origin: bottom; transition: transform 0.75s var(--e-io); }
.curtain.is-out i { transform-origin: bottom; transform: scaleY(1); }
.curtain.is-in i { transform-origin: top; transform: scaleY(0); transition-duration: 0.9s; }
.curtain i:nth-child(2) { transition-delay: 0.07s; }
.curtain i:nth-child(3) { transition-delay: 0.14s; }
.curtain i:nth-child(4) { transition-delay: 0.21s; }
.curtain i:nth-child(5) { display: none; }

/* ---------- 8. HEADER ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: clamp(1.1rem, 2.2vw, 1.9rem) 0;
  transition: transform 0.7s var(--e-out), padding 0.5s ease;
}
.site-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 250, 246, 0.93);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  opacity: 0; transition: opacity 0.5s ease;
}
.site-head.is-stuck::before { opacity: 1; }
.site-head.is-stuck { padding: 0.75rem 0; }
.site-head.is-hidden { transform: translateY(-105%); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; gap: 0.85rem; line-height: 1; color: var(--forest); }
.brand-mark { width: 38px; height: 38px; flex: none; color: inherit; transition: transform 0.9s var(--e-out); }
.brand-mark svg { width: 100%; height: 100%; }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-txt { font-family: var(--display); font-size: 1.24rem; font-weight: 400; letter-spacing: 0.03em; }
.brand-txt small {
  display: block; font-family: var(--sans); font-size: 0.5rem; font-weight: 300;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px;
}
.site-head:not(.is-stuck).on-dark .brand { color: var(--alabaster); }
.site-head:not(.is-stuck).on-dark .brand-txt small { color: rgba(246,244,238,0.6); }
.site-head:not(.is-stuck).on-dark .nav-link { color: var(--alabaster); }
.site-head:not(.is-stuck).on-dark .burger i { background: var(--alabaster); }
.site-head:not(.is-stuck).on-dark .head-cta .btn-ghost { --btn-fg: var(--alabaster); }
.site-head:not(.is-stuck).on-dark .head-cta .btn-ghost:hover { color: var(--ink); }
/* The hero scrim used to guarantee a dark top strip. Without it the header can
   sit on open sky — measured luminance up to Y=195 across the drone clip — so
   the light state carries its own weight instead of relying on the backdrop. */
.site-head:not(.is-stuck).on-dark .brand,
.site-head:not(.is-stuck).on-dark .nav-link,
.site-head:not(.is-stuck).on-dark .burger,
.site-head:not(.is-stuck).on-dark .head-cta .btn-ghost { text-shadow: 0 1px 16px rgba(12,16,11,0.8); }
.site-head:not(.is-stuck).on-dark .brand-txt small { color: rgba(246,244,238,0.78); }

.nav-main { display: flex; align-items: center; gap: clamp(1.6rem, 3.2vw, 3.2rem); }
.nav-link {
  position: relative; font-family: var(--sans); font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.26em; text-transform: uppercase; padding: 0.5rem 0; color: var(--ink-2);
  transition: color 0.4s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.6s var(--e-out);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"], .nav-link-active { color: var(--accent); }

.head-cta { display: flex; align-items: center; gap: 1rem; }
.head-cta .btn { padding: 0.85rem 1.6rem; font-size: 0.62rem; letter-spacing: 0.22em; }

.burger { display: none; width: 42px; height: 42px; position: relative; flex: none; }
.burger i { position: absolute; left: 8px; width: 26px; height: 1px; background: var(--ink); transition: transform 0.5s var(--e-out), background 0.3s ease; }
.burger i:nth-child(1) { top: 17px; }
.burger i:nth-child(2) { top: 25px; }
.burger.is-open i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.is-open i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1000px) { .nav-main { display: none; } .burger { display: block; } }
/* Two CTAs crowd the bar on a phone; the drawer already lists The Range. */
@media (max-width: 700px) { .head-cta .btn-range { display: none; } }
@media (max-width: 560px) {
  .brand-txt { font-size: 1.05rem; }
  .brand-txt small { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .head-cta .btn { padding: 0.72rem 1.05rem; font-size: 0.56rem; letter-spacing: 0.18em; }
  .head-cta .btn .arw { display: none; }
}

/* Drawer */
.drawer {
  position: fixed; inset: 0; z-index: 890; background: var(--forest); color: var(--alabaster);
  padding: clamp(6rem, 14vh, 8rem) var(--gut) 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--e-io); overflow-y: auto;
}
.drawer.is-open { clip-path: inset(0 0 0 0); }
.drawer ul { display: flex; flex-direction: column; }
.drawer a.d-link {
  font-family: var(--display); font-weight: 300; display: block; padding: 0.1em 0;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--e-out), transform 0.8s var(--e-out), color 0.3s ease;
}
.drawer.is-open a.d-link { opacity: 1; transform: none; }
.drawer a.d-link:hover { color: var(--brass-lit); }
.drawer-group { margin-bottom: 1.7rem; }
.drawer-group > p {
  font-family: var(--sans); font-size: 0.56rem; font-weight: 300;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass-lit);
  margin-bottom: 0.7rem; opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s var(--e-out), transform 0.6s var(--e-out);
}
.drawer.is-open .drawer-group > p { opacity: 1; transform: none; }
.drawer-group a.d-link { font-size: clamp(1.3rem, 5vw, 1.9rem); }
.drawer.is-open .drawer-group:nth-of-type(1) > p, .drawer.is-open .drawer-group:nth-of-type(1) a.d-link { transition-delay: 0.2s; }
.drawer.is-open .drawer-group:nth-of-type(2) > p, .drawer.is-open .drawer-group:nth-of-type(2) a.d-link { transition-delay: 0.29s; }
.drawer.is-open .drawer-group:nth-of-type(3) > p, .drawer.is-open .drawer-group:nth-of-type(3) a.d-link { transition-delay: 0.38s; }
.drawer.is-open .drawer-group:nth-of-type(4) > p, .drawer.is-open .drawer-group:nth-of-type(4) a.d-link { transition-delay: 0.47s; }
.drawer.is-open .drawer-group:nth-of-type(5) > p, .drawer.is-open .drawer-group:nth-of-type(5) a.d-link { transition-delay: 0.56s; }
.drawer.is-open .drawer-group:nth-of-type(6) > p, .drawer.is-open .drawer-group:nth-of-type(6) a.d-link { transition-delay: 0.65s; }
.drawer-foot {
  margin-top: 2.5rem; padding-top: 1.9rem; border-top: 1px solid rgba(246,244,238,0.18);
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em;
  display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between;
  color: rgba(246,244,238,0.7);
}

/* ---------- 9. BOOK BAR ---------- */
.bookbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 880;
  background: rgba(18, 20, 15, 0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(246,244,238,0.12);
  transform: translateY(105%); transition: transform 0.9s var(--e-out);
  padding: 0.75rem var(--gut) calc(0.75rem + env(safe-area-inset-bottom));
}
.bookbar.is-up { transform: translateY(0); }
.bookbar-in { max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bookbar-txt { color: var(--alabaster); min-width: 0; }
.bookbar-txt b { display: block; font-family: var(--display); font-size: 1.16rem; font-weight: 400; letter-spacing: 0.02em; line-height: 1.15; }
.bookbar-txt span { display: block; font-family: var(--sans); font-size: 0.56rem; font-weight: 300; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(246,244,238,0.5); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bookbar-act { display: flex; gap: 0.6rem; flex: none; }
@media (max-width: 720px) {
  .bookbar-txt span { display: none; }
  .bookbar-txt b { font-size: 1rem; }
  .bookbar .btn { padding: 0.78rem 1.1rem; font-size: 0.58rem; letter-spacing: 0.16em; }
  .bookbar-act .btn-ghost { display: none; }
}

/* ---------- 10. HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.hero-media img,
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Scrim removed at Brayden's request 2026-08-21 — the hero video plays clean.
   The headline keeps a soft shadow so it still holds over the bright sky. */
.hero h1, .hero-sub { text-shadow: 0 2px 30px rgba(12,16,11,0.55); }
.hero-inner { width: 100%; color: var(--alabaster); text-align: center; padding-block: 8rem; }
.hero .kicker { color: rgba(246,244,238,0.72); letter-spacing: 0.42em; }
/* One line, always. Sized in vw and capped at 5rem so it cannot outgrow the
   1500px .wrap on a wide monitor; nowrap guarantees it never breaks. */
.hero h1 { font-size: clamp(1.5rem, 6vw, 5rem); font-weight: 200; letter-spacing: -0.005em; line-height: 1.05; margin-inline: auto; max-width: none; white-space: nowrap; }
.hero h1 .ital { font-style: italic; font-weight: 300; }
@media (max-width: 700px) {
  .hero h1 { white-space: normal; font-size: clamp(2.6rem, 10.5vw, 3rem); max-width: 13ch; }
}
.hero-sub { margin: clamp(2.8rem, 4.6vw, 4.2rem) auto 0; max-width: 68ch; font-size: clamp(1.15rem, 1.45vw, 1.4rem); font-weight: 300; color: rgba(246,244,238,0.82); }
.hero .btn-row { justify-content: center; }
.hero-meta {
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem;
  border-top: 1px solid rgba(246,244,238,0.18);
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 4.5rem);
  font-family: var(--sans); font-size: 0.62rem; font-weight: 300;
  letter-spacing: 0.26em; text-transform: uppercase; color: rgba(246,244,238,0.58);
  max-width: 1000px; margin-inline: auto;
}
.hero-meta b { color: var(--alabaster); font-weight: 400; }

.scroll-cue {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(2rem, 5vh, 3.5rem); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  font-family: var(--sans); font-size: 0.55rem; font-weight: 300; letter-spacing: 0.34em;
  text-transform: uppercase; color: rgba(246,244,238,0.5);
}
.scroll-cue i { display: block; width: 1px; height: 52px; background: rgba(246,244,238,0.24); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--brass-lit); animation: cueRun 2.6s var(--e-io) infinite; }
@keyframes cueRun { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

.phero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: center; overflow: hidden; background: var(--ink); isolation: isolate; }
.phero-media { position: absolute; inset: -10% 0; z-index: -2; will-change: transform; }
.phero-media img { width: 100%; height: 100%; object-fit: cover; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(12,16,11,0.68), rgba(12,16,11,0.56) 50%, rgba(12,16,11,0.84)); }
.phero-inner { color: var(--alabaster); padding: 9rem 0 4rem; width: 100%; text-align: center; }
.phero h1 { font-size: var(--t-h1); max-width: 17ch; margin-inline: auto; font-weight: 300; text-shadow: 0 1px 44px rgba(12,16,11,0.45); }
.phero .lead { color: rgba(246,244,238,0.78); margin: 1.8rem auto 0; }
.phero .kicker { color: rgba(246,244,238,0.7); }
.crumbs { font-family: var(--sans); font-size: 0.6rem; font-weight: 300; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(246,244,238,0.45); margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--brass-lit); }

/* ---------- 11. EDITORIAL BAND — the core v2 component ---------- */
.band { position: relative; }
.band-media { position: relative; overflow: hidden; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band-full .band-media { height: clamp(58vh, 74vh, 88vh); }
.band-wide .band-media { aspect-ratio: 21/9; }
.band-copy { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.band-copy .inner { max-width: 620px; }
.band-copy.is-center .inner { margin-inline: auto; text-align: center; }
.band-copy.is-center .lead, .band-copy.is-center p { margin-inline: auto; }
.band-copy.is-right .inner { margin-left: auto; }
.band h2 { margin-bottom: 1.6rem; }
.band p { color: var(--text-mute); max-width: var(--readw); }
.band .tlink { margin-top: 2.2rem; }

.band-over { position: relative; display: flex; align-items: flex-end; min-height: clamp(62vh, 80vh, 92vh); background: var(--ink); color: var(--alabaster); isolation: isolate; overflow: hidden; }
.band-over .band-media { position: absolute; inset: -8% 0; z-index: -2; }
.band-over::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12,16,11,0.9) 0%, rgba(12,16,11,0.34) 52%, rgba(12,16,11,0.1) 100%); }
.band-over .band-copy { width: 100%; }
.band-over .kicker { color: var(--brass-lit); }
.band-over p { color: rgba(246,244,238,0.78); }
.band-over.is-center { align-items: center; }
.band-over.is-center::after { background: linear-gradient(to bottom, rgba(12,16,11,0.62), rgba(12,16,11,0.78)); }
.band-over.band-mid { min-height: clamp(46vh, 60vh, 68vh); }

/* ---------- 12. PULL QUOTE ---------- */
.quote { max-width: 30ch; }
.quote blockquote { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 3rem); font-style: italic; font-weight: 300; line-height: 1.24; letter-spacing: -0.01em; }
.quote cite { display: block; margin-top: 2rem; font-style: normal; font-family: var(--sans); font-size: 0.62rem; font-weight: 300; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
.quote-lg { max-width: 24ch; margin-inline: auto; text-align: center; }
.quote-lg blockquote { font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.16; }

/* ---------- 13. TIMELINE ---------- */
.timeline { border-top: 1px solid var(--line); }
.tl-item { display: grid; grid-template-columns: 9rem minmax(0,1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: baseline; padding: clamp(1.8rem, 3.4vw, 3rem) 0; border-bottom: 1px solid var(--line); }
.tl-year { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 300; color: var(--accent); line-height: 1; }
.tl-body h4 { margin-bottom: 0.55rem; }
.tl-body p { color: var(--text-mute); max-width: 60ch; font-size: 0.96rem; }
@media (max-width: 700px) { .tl-item { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ---------- 14. FACTS ---------- */
.facts, .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (max-width: 780px) { .facts, .stats { grid-template-columns: repeat(2, 1fr); } }
.fact, .stat { background: var(--bg); padding: clamp(2rem, 4vw, 3.4rem) clamp(1rem, 2vw, 1.8rem); text-align: center; }
.tone-dark .fact, .tone-forest .fact, .tone-dark .stat, .tone-forest .stat, .tone-pine .stat { background: transparent; }
.fact b, .stat-n { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 300; line-height: 1; color: var(--text); letter-spacing: -0.01em; }
.tone-dark .fact b, .tone-forest .fact b, .tone-dark .stat-n, .tone-forest .stat-n, .tone-pine .stat-n { color: var(--brass-lit); }
.fact span, .stat-l { display: block; font-family: var(--sans); font-size: 0.58rem; font-weight: 300; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-mute); margin-top: 1.1rem; }

/* ---------- 15. INDEX RAIL ---------- */
.rail { border-top: 1px solid var(--line); }
.rail-item {
  position: relative; display: grid;
  grid-template-columns: 4.5rem minmax(0,1fr) minmax(0,1.2fr) auto;
  gap: clamp(1rem, 3vw, 3rem); align-items: baseline;
  padding: clamp(1.9rem, 3.6vw, 3.1rem) 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.8s var(--e-out);
}
a.rail-item:hover { padding-left: 1.2rem; }
a.rail-item:hover .rail-title { color: var(--accent); }
.rail-n { font-family: var(--sans); font-size: 0.62rem; font-weight: 300; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); padding-top: 0.6rem; }
.rail-title { font-family: var(--display); font-size: clamp(1.45rem, 2.3vw, 2.1rem); font-weight: 300; letter-spacing: -0.01em; line-height: 1.08; transition: color 0.4s ease; }
.rail-title small { display: block; font-family: var(--sans); font-size: 0.58rem; font-weight: 300; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-mute); margin-top: 0.9rem; }
.rail-body { color: var(--text-mute); font-size: 0.96rem; line-height: 1.68; }
.rail-body ul { margin-top: 0.8rem; display: grid; gap: 0.45rem; }
.rail-body li { position: relative; padding-left: 1.1rem; font-size: 0.9rem; }
.rail-body li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.rail-act { align-self: center; }
.rail-arw { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; font-size: 0.85rem; transition: background 0.6s var(--e-out), color 0.4s ease, border-color 0.4s ease; }
a.rail-item:hover .rail-arw { background: var(--forest); border-color: var(--forest); color: var(--paper); }
/* Row hover image. Each row carries its own --rail-img. A row without one shows
   nothing at all: the undefined var invalidates background-image outright, so
   the scrim can never appear on its own. isolation keeps the z-index:-1 layer
   above the section background instead of behind it. */
.rail-item { isolation: isolate; }
.rail-item::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0 calc(var(--gut) * -0.5);
  background-image: linear-gradient(rgba(12,16,11,0.72), rgba(12,16,11,0.72)), var(--rail-img);
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.65s var(--e-out);
  pointer-events: none;
}
.rail-item:hover::before { opacity: 1; }
a.rail-item:hover .rail-title,
.rail-item:hover .rail-title { color: var(--brass-lit); }
.rail-item:hover .rail-title small,
.rail-item:hover .rail-body { color: rgba(246,244,238,0.84); }
.rail-item:hover .rail-body li::before { background: var(--brass-lit); }
.rail-item:hover .rail-n { color: var(--brass-lit); }
.rail-item:hover .rail-arw { border-color: rgba(246,244,238,0.45); color: var(--paper); }

@media (max-width: 900px) {
  .rail-item { grid-template-columns: 3rem minmax(0,1fr); }
  .rail-body, .rail-act { grid-column: 2; }
  .rail-act { align-self: start; margin-top: 0.5rem; }
}

/* ---------- 16. PLATE / CARD (legacy, reduced to a ruled block) ---------- */
.plate, .card {
  position: relative; background: transparent;
  border: 0; border-top: 1px solid var(--line);
  border-radius: 0; padding: clamp(1.8rem, 3vw, 2.4rem) 0 0;
  display: block; transition: none; overflow: visible;
}
a.card:hover .tlink, a.card:hover h3 { color: var(--accent); }
.card h3, .plate h3 { margin-bottom: 0.9rem; }
.card p, .plate p { color: var(--text-mute); font-size: 0.96rem; }
.card-num, .plate-l { font-family: var(--sans); font-size: 0.58rem; font-weight: 300; letter-spacing: 0.26em; color: var(--accent); margin-bottom: 1.4rem; display: block; text-transform: uppercase; }
.plate-hot { background: var(--forest); color: var(--alabaster); border: 0; padding: clamp(1.9rem, 3vw, 2.6rem); }
.plate-hot h3 { color: var(--alabaster); }
.plate-hot .plate-l { color: var(--brass-lit); }
.plate-hot p { color: rgba(246,244,238,0.74); }
.plate-hot .rail { border-top-color: rgba(246,244,238,0.2); }
.plate-hot .rail-item { border-bottom-color: rgba(246,244,238,0.2); }
.plate-hot .rail-n, .plate-hot .rail-title small { color: var(--brass-lit); }
.plate-hot .rail-arw { border-color: rgba(246,244,238,0.3); }
.value-card { display: flex; flex-direction: column; gap: 0.6rem; }
.value-card ul { margin-top: 0.9rem; display: grid; gap: 0.5rem; }
.value-card li { position: relative; padding-left: 1.1rem; font-size: 0.9rem; color: var(--text-mute); line-height: 1.6; }
.value-card li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }

.grid { display: grid; gap: clamp(1.8rem, 3.4vw, 3.2rem); }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- 17. FIGURES ---------- */
.figure { position: relative; overflow: hidden; background: var(--stone); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--e-out); }
.figure::after { content: ""; position: absolute; inset: 0; background: var(--bg); transform-origin: right; transition: transform 1.6s var(--e-io); }
.is-in .figure::after, .figure.is-in::after { transform: scaleX(0); }
.figure-h { aspect-ratio: 4/3; }
.figure-v { aspect-ratio: 3/4; }
.figure-w { aspect-ratio: 16/9; }
.figure-s { aspect-ratio: 1; }
.figure-t { aspect-ratio: 5/7; }
a.figure:hover img, .figure-zoom:hover img { transform: scale(1.04); }
.fig-cap { font-family: var(--sans); font-size: 0.6rem; font-weight: 300; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-mute); margin-top: 1.2rem; }
.pll { will-change: transform; }

.overlap { position: relative; }
.overlap .figure-back { width: 78%; }
.overlap .figure-front { position: absolute; right: 0; bottom: -12%; width: 46%; border: 10px solid var(--bg); z-index: 2; }
@media (max-width: 700px) {
  .overlap .figure-back { width: 100%; }
  .overlap .figure-front { position: relative; width: 62%; right: auto; bottom: auto; margin: -18% 0 0 auto; border-width: 7px; }
}

.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.7rem, 1.4vw, 1.4rem); }
.mosaic > * { overflow: hidden; }
.m-a { grid-column: span 4; aspect-ratio: 16/11; }
.m-b { grid-column: span 2; aspect-ratio: 3/4; }
.m-c { grid-column: span 2; aspect-ratio: 1; }
.m-d { grid-column: span 4; aspect-ratio: 16/9; }
@media (max-width: 780px) { .mosaic { grid-template-columns: repeat(2, 1fr); } .m-a,.m-b,.m-c,.m-d { grid-column: span 2; aspect-ratio: 4/3; } }

/* ---------- 18. SCROLLYTELLING — stacking cards ---------- */
/* Each card is a full-viewport frame pinned with position:sticky. Because the
   cards are siblings in normal flow, the one underneath stays pinned while the
   next scrolls up and covers it — the previous slide never leaves, the new one
   arrives over the top of it. Nothing in JS drives this. */
.tour { position: relative; background: var(--ink); color: var(--alabaster); }
.tour-card {
  position: sticky; top: 0; height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  /* Opaque, so a card whose photo has not decoded yet does not show the card
     beneath it through the gap. */
  background: var(--ink);
}
.tour-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tour-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(12,16,11,0.93) 0%, rgba(12,16,11,0.46) 46%, rgba(12,16,11,0.14) 100%),
    linear-gradient(to right, rgba(12,16,11,0.58), rgba(12,16,11,0) 64%);
}
/* The hairline plus the shadow above it are what make the overlap read as one
   card lifting over another instead of a hard cut. Not on the first card,
   which has nothing beneath it. */
.tour-card + .tour-card::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: 3; height: 1px;
  background: rgba(246,244,238,0.18); box-shadow: 0 -30px 64px rgba(12,16,11,0.6);
}
.tour-card-inner {
  position: relative; z-index: 2; padding-block: clamp(3rem, 9vh, 6.5rem);
  padding-bottom: calc(clamp(3rem, 9vh, 6.5rem) + 76px);
}
.tour-card .kicker { color: var(--brass-lit); }
.tour-card h3 { font-size: clamp(2rem, 4.4vw, 3.8rem); margin: 0 0 1.5rem; font-weight: 300; max-width: 20ch; }
.tour-card p { color: rgba(246,244,238,0.8); max-width: 54ch; }
.hole-meta {
  margin-top: 2.4rem; display: flex; gap: 2rem; flex-wrap: wrap;
  font-family: var(--sans); font-size: 0.6rem; font-weight: 300;
  letter-spacing: 0.26em; text-transform: uppercase; color: rgba(246,244,238,0.6);
}
.hole-meta b { color: var(--alabaster); font-weight: 400; }
@media (max-width: 700px) {
  .tour-card { min-height: 0; }
  .tour-card-inner { padding-bottom: calc(clamp(3rem, 9vh, 6.5rem) + 70px); }
  .hole-meta { gap: 1.1rem; margin-top: 1.8rem; }
}

/* ---------- 19. TABLES ---------- */
.rate-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.rate-table caption { text-align: left; font-family: var(--sans); font-size: 0.6rem; font-weight: 300; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); padding-bottom: 1.5rem; }
.rate-table th, .rate-table td { padding: 1.15rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line-soft); font-weight: 300; }
.rate-table thead th { font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-mute); border-bottom: 1px solid var(--line); }
.rate-table tbody th { font-weight: 400; }
.rate-table td.num { font-family: var(--display); font-size: 1.2rem; color: var(--text); white-space: nowrap; }
.tone-dark .rate-table td.num, .tone-forest .rate-table td.num, .plate-hot .rate-table td.num { color: var(--brass-lit); }
.rate-table .note { display: block; font-family: var(--sans); font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); margin-top: 0.4rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 20. PRICE ---------- */
.price-card { position: relative; background: transparent; border: 0; border-top: 1px solid var(--line); padding: clamp(1.8rem,3vw,2.4rem) 0 0; display: flex; flex-direction: column; gap: 0.3rem; }
.price-card.is-feature { background: var(--forest); color: var(--alabaster); border: 0; padding: clamp(1.9rem,3vw,2.6rem); }
.price-card.is-feature .pc-name, .price-card.is-feature .pc-price { color: var(--alabaster); }
.price-card.is-feature .pc-sub, .price-card.is-feature li { color: rgba(246,244,238,0.74); }
.price-card.is-feature li::before { background: var(--brass-lit); }
.pc-tag { position: absolute; top: 1.2rem; right: 1.2rem; font-family: var(--sans); font-size: 0.52rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-lit); }
.pc-name { font-family: var(--display); font-size: 1.5rem; font-weight: 400; letter-spacing: 0.01em; }
.pc-price { font-family: var(--display); font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 300; line-height: 1; letter-spacing: -0.01em; color: var(--text); margin: 0.8rem 0 0.3rem; }
.pc-price sup { font-size: 0.5em; vertical-align: super; }
.pc-price small { font-family: var(--sans); font-size: 0.58rem; font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-mute); }
.pc-sub { font-size: 0.86rem; color: var(--text-mute); }
.pc-list { margin-top: 1.3rem; display: grid; gap: 0.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line-soft); }
.pc-list li { position: relative; padding-left: 1.1rem; font-size: 0.87rem; color: var(--text-mute); }
.pc-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }

.callout { border-left: 1px solid var(--accent); background: transparent; padding: 0.4rem 0 0.4rem clamp(1.4rem, 2.4vw, 2rem); }
.callout h4 { font-family: var(--display); font-size: 1.3rem; font-weight: 400; margin-bottom: 0.7rem; }
.callout p { color: var(--text-mute); font-size: 0.95rem; max-width: 62ch; }
.callout a, .ilink { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.callout a:hover, .ilink:hover { color: var(--brass-lit); }

/* ---------- 21. ACCORDION ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(1.5rem, 2.6vw, 2.2rem) 0; text-align: left;
  font-family: var(--display); font-size: clamp(1.2rem, 1.8vw, 1.55rem); font-weight: 300;
  color: var(--text); transition: color 0.4s ease;
}
.acc-btn:hover { color: var(--accent); }
.acc-ico { position: relative; width: 16px; height: 16px; flex: none; }
.acc-ico::before, .acc-ico::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1px; background: currentColor; transition: transform 0.6s var(--e-out); }
.acc-ico::after { transform: rotate(90deg); }
.acc-item.is-open .acc-ico::after { transform: rotate(0); }
.acc-item.is-open .acc-btn { color: var(--accent); }
.acc-panel { overflow: hidden; height: 0; transition: height 0.7s var(--e-io); }
.acc-panel > div { padding-bottom: 2rem; color: var(--text-mute); max-width: 64ch; }
.acc-panel a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 22. FEATURE / STEPS / PEOPLE ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6.5rem); align-items: center; }
.feature.is-flip .feature-media { order: 2; }
@media (max-width: 940px) { .feature, .feature.is-flip .feature-media { grid-template-columns: 1fr; order: 0; } }
.feature-media { position: relative; }
.feature-badge { position: absolute; z-index: 2; bottom: 0; left: 0; background: var(--forest); color: var(--alabaster); padding: 1.1rem 1.5rem; font-family: var(--sans); font-size: 0.58rem; font-weight: 300; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.7; max-width: 220px; }

.steps { display: grid; counter-reset: s; }
.step { position: relative; padding: 1.9rem 0 1.9rem 4rem; border-bottom: 1px solid var(--line-soft); counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 2rem; font-family: var(--sans); font-size: 0.62rem; font-weight: 300; letter-spacing: 0.24em; color: var(--accent); }
.step:last-child { border-bottom: 0; }
.step h4 { margin-bottom: 0.5rem; }
.step p { color: var(--text-mute); font-size: 0.94rem; max-width: 58ch; }

.person { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line-soft); transition: padding-left 0.6s var(--e-out); }
.person:hover { padding-left: 0.6rem; }
.person-role { font-family: var(--sans); font-size: 0.56rem; font-weight: 300; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.person-name { font-family: var(--display); font-size: 1.45rem; font-weight: 400; letter-spacing: 0.01em; line-height: 1.2; }
.person a { color: var(--text-mute); font-size: 0.85rem; word-break: break-word; }
.person a:hover { color: var(--accent); }

/* ---------- 23. SUB-NAV / TAGS / TILES ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3vw, 2.6rem); padding-block: 1.5rem; border-bottom: 1px solid var(--line); justify-content: center; }
.subnav a { font-family: var(--sans); font-size: 0.6rem; font-weight: 300; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-mute); padding-bottom: 4px; position: relative; transition: color 0.4s ease; }
.subnav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--e-out); }
.subnav a:hover { color: var(--accent); }
.subnav a:hover::after, .subnav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.subnav a[aria-current="page"] { color: var(--accent); }

.tag { display: inline-flex; align-items: center; font-family: var(--sans); font-size: 0.58rem; font-weight: 300; letter-spacing: 0.24em; text-transform: uppercase; padding: 0.5rem 0; color: var(--text-mute); }
.tag-clay { color: var(--accent); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0 1.8rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 104px; padding: 1rem 1.1rem; background: var(--bg); transition: background 0.5s var(--e-out), color 0.4s ease; }
.tile::before { display: none; }
.tile:hover { background: var(--forest); color: var(--alabaster); }
.tile:hover .tile-n { color: var(--brass-lit); }
.tile:hover .tile-l { color: rgba(246,244,238,0.65); }
.tile-n { font-family: var(--display); font-size: 1.9rem; font-weight: 300; line-height: 1; color: var(--text); transition: color 0.4s ease; }
.tile-l { font-family: var(--sans); font-size: 0.54rem; font-weight: 300; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-mute); transition: color 0.4s ease; }

/* ---------- 24. FORM ---------- */
.fld { display: block; }
.fld > span { display: block; font-family: var(--sans); font-size: 0.58rem; font-weight: 300; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 0.7rem; }
.fld input, .fld select, .fld textarea {
  width: 100%; font: inherit; font-size: 0.97rem; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.1rem; border-radius: 0; appearance: none;
  transition: border-color 0.45s ease;
}
.fld textarea { resize: vertical; min-height: 96px; }
.fld select { cursor: pointer; }
.fld select option { color: #12140F; background: #FBFAF6; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-bottom-color: var(--accent); }
.fld input::placeholder, .fld textarea::placeholder { color: var(--text-mute); opacity: 0.55; }
.form-note { margin-top: 1.2rem; color: var(--accent); }

/* ---------- 25. CLOSING CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--forest); color: var(--alabaster); isolation: isolate; }
.cta-band .wrap { position: relative; z-index: 1; text-align: center; padding-block: clamp(5.5rem, 11vw, 10rem); }
.cta-band .kicker { color: var(--brass-lit); }
.cta-band h2 { font-size: var(--t-h1); max-width: 18ch; margin-inline: auto; font-weight: 200; }
.cta-band .lead { margin: 2rem auto 0; color: rgba(246,244,238,0.76); }
.cta-band .btn-row { justify-content: center; }

/* ---------- 26. FOOTER ---------- */
.site-foot { background: var(--ink); color: var(--alabaster); padding-top: clamp(4.5rem, 9vw, 7.5rem); }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; gap: clamp(2rem, 3.5vw, 3.5rem); padding-bottom: clamp(3.5rem, 6vw, 5rem); }
@media (max-width: 1100px) { .foot-top { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-top { grid-template-columns: 1fr; } }
.foot-brand img { width: 130px; margin-bottom: 1.6rem; }
.foot-brand p { color: rgba(246,244,238,0.52); font-size: 0.88rem; max-width: 32ch; }
.foot-h { font-family: var(--sans); font-size: 0.56rem; font-weight: 300; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass-lit); margin-bottom: 1.4rem; }
.foot-list { display: grid; gap: 0.7rem; }
.foot-list a, .foot-list p { color: rgba(246,244,238,0.62); font-size: 0.87rem; font-weight: 300; transition: color 0.4s ease; display: inline-block; }
.foot-list a:hover { color: var(--brass-lit); }
.foot-bottom {
  border-top: 1px solid rgba(246,244,238,0.11); padding-block: 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-family: var(--sans); font-size: 0.6rem; font-weight: 300; letter-spacing: 0.16em;
  color: rgba(246,244,238,0.36); text-transform: uppercase;
}
.foot-bottom a:hover { color: var(--brass-lit); }
.foot-social { display: flex; gap: 1.1rem; }
.foot-social a { color: rgba(246,244,238,0.5); width: auto; height: auto; border: 0; transition: color 0.4s ease; }
.foot-social a:hover { color: var(--brass-lit); background: none; transform: none; }
.foot-social svg { width: 17px; height: 17px; }

/* ---------- 27. UTILITIES ---------- */
.mt-s { margin-top: 1.4rem; } .mt-m { margin-top: 2.4rem; } .mt-l { margin-top: 3.8rem; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; }
.marquee, .strip { display: none; }

/* ---------- 28. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .rl > span { transform: none !important; }
  .figure::after { display: none; }
  .hero-media, .phero-media, .band-media, .pll { transform: none !important; }
  .bookbar { transform: none; }
  /* relative, not static — the card still has to be the containing block for
     its own absolutely-positioned photo and step counter. */
  .tour-card { position: relative; height: auto; min-height: 78svh; }
  .tour-card + .tour-card::before { box-shadow: none; }
}


/* --- header: real wordmark, centred nav, CTAs hard right --- */
.brand-logo { display: block; width: 132px; height: 34px; background: currentColor;
  -webkit-mask: url('https://vipzrfqbbprbsletrupp.supabase.co/storage/v1/object/public/creative-assets/websites/bartram-trail/bartram-wordmark.png') left center / contain no-repeat;
          mask: url('https://vipzrfqbbprbsletrupp.supabase.co/storage/v1/object/public/creative-assets/websites/bartram-trail/bartram-wordmark.png') left center / contain no-repeat; }

/* the home page carries the big lockup in the hero, so the header brand steps
   aside there. :has() re-evaluates on every route swap, so no JS hook needed. */
body:has(#main [data-hero]) .brand { opacity: 0; pointer-events: none; }

/* nav pinned to the true centre of the page, independent of the CTA width */
.head-inner { position: relative; }
.nav-main { position: absolute; left: 50%; transform: translateX(-50%);
  padding: 0.5rem 1.6rem; border-radius: 999px;
  background: rgba(12,16,11,0.05); transition: background 0.4s var(--e-out); }
.site-head:not(.is-stuck).on-dark .nav-main { background: rgba(12,16,11,0.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-head.is-stuck .nav-main { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* the header alone leaves the 1500px content rail and spans the viewport, so the
   brand sits on the left gutter and the CTAs on the right — otherwise they stay
   ~120px inboard on wide screens and never reach the corner. Body content is
   untouched and still capped at --maxw. */
.head-inner { max-width: none; }
.head-cta { margin-left: auto; }

/* The Range / Book a Tee Time: same size as their neighbours, real 700 weight */
.nav-link.is-key { font-weight: 700; color: var(--ink); }
.site-head:not(.is-stuck).on-dark .nav-link.is-key { color: var(--alabaster); }

/* Book a Tee Time: same typography as the centre nav, but its own pill in the
   corner with the colours inverted — light fill, dark lettering. The .nav-link
   hover underline and accent colour are both cancelled; the fill is the state. */
.head-book { padding: 0.55rem 1.5rem; border-radius: 999px; background: var(--alabaster); }
.site-head .head-book,
.site-head:not(.is-stuck) .head-book,
.site-head:not(.is-stuck).on-dark .nav-link.head-book,
.site-head .head-book:hover { color: var(--ink); text-shadow: none; }
.head-book::after { display: none !important; }
.site-head .head-book:hover { background: #fff; }

/* multi-word items must not wrap now that they sit in the nav row */
.nav-link { white-space: nowrap; }
/* six items instead of four — tighten the gap and hand over to the burger sooner */
.nav-main { gap: clamp(1.1rem, 2.2vw, 2.4rem); }
@media (max-width: 1180px) { .nav-main { display: none; } .burger { display: block; } }

/* --- lighter scrim, but ONLY over the new summer backdrops ---
   The stock 0.68/0.56/0.84 was tuned for bright winter frames (pale sky, straw
   bermuda). The replacements are ~22% darker to start with, so that scrim was
   knocking the green straight back out. Measured white-text contrast at these
   values is 11-14:1, well clear of the 4.5:1 AA floor.
   Scoped via [src^="bartram-"] — lowercase, so it matches only the four new
   files and never the capital-B Bartram-N.jpg photos or the winter stock. */
.phero:has(.phero-media img[src^="bartram-"])::after {
  background: linear-gradient(to bottom, rgba(12,16,11,0.46), rgba(12,16,11,0.34) 50%, rgba(12,16,11,0.62));
}
.band-over:has(.band-media img[src^="bartram-"])::after {
  background: linear-gradient(to top, rgba(12,16,11,0.82) 0%, rgba(12,16,11,0.26) 52%, rgba(12,16,11,0.06) 100%);
}

@media (max-width: 700px) { .brand-logo { width: 112px; height: 29px; } }

/* --- hero lockup: replaces the type-set headline + sub-line --- */
.hero h1.hero-logo { margin: 0 auto; max-width: none; white-space: normal; line-height: 0; font-size: 0; }
.hero-logo img { display: block; width: min(44vw, 440px); height: auto; margin-inline: auto;
  filter: drop-shadow(0 2px 34px rgba(12,16,11,0.6)); }
@media (max-width: 700px) { .hero-logo img { width: min(74vw, 330px); } }

/* --- scroll arrow: a tight 6px float, nothing more --- */
.scroll-arrow { position: absolute; left: 50%; bottom: clamp(1.8rem, 4.5vh, 3.2rem);
  transform: translateX(-50%); z-index: 3; color: var(--alabaster); opacity: 0.68;
  pointer-events: none; filter: drop-shadow(0 2px 14px rgba(12,16,11,0.7)); }
.scroll-arrow i { display: block; animation: bt-cue 2.6s ease-in-out infinite; }
.scroll-arrow svg { display: block; width: 22px; height: 32px; }
@keyframes bt-cue { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .scroll-arrow i { animation: none; } }
body.has-bar .scroll-arrow { bottom: calc(clamp(1.8rem, 4.5vh, 3.2rem) + 76px); }
