/* WSRC shared styles — tokens, type, buttons, nav, footer.
 * Loaded by every page. Page-specific CSS stays in each page's <style> block.
 */

/* ============ TOKENS ============ */
:root {
  --color-primary: #1e2758;
  --color-primary-hover: #161d44;
  --color-accent: #A38560;
  --color-accent-hover: #8b7050;
  --color-accent-light: #d9c3a5;
  --color-text: #1c2b3a;
  --color-text-muted: #6b7e93;
  --color-text-on-dark: #f5f5f7;
  --color-background: #ffffff;
  --color-background-alt: #f5f5f7;
  --color-border: #dce3ed;
  --color-footer: #12173a;
  --color-overlay: rgba(28, 43, 58, 0.6);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1280px;
  --reading-width: 660px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 82px;
}

/* ============ BASE ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }

/* ============ TYPE ============ */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--color-text);
  text-wrap: balance;
}
.display { font-size: clamp(2.75rem, 5.5vw + 1rem, 5.25rem); font-weight: 400; }
h1 { font-size: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); }
h2 { font-size: clamp(1.875rem, 2.5vw + 0.75rem, 2.75rem); }
h3 { font-size: 1.75rem; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.005em; margin: 0; }

.lead { font-size: 1.25rem; line-height: 1.55; color: var(--color-text); font-weight: 400; max-width: 56ch; }
.muted { color: var(--color-text-muted); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--color-accent); flex-shrink: 0; }
.eyebrow.no-rule::before { display: none; }
/* Centred eyebrows carry a rule on both sides. */
.eyebrow.flanked::after { content: ""; width: 28px; height: 1px; background: var(--color-accent); flex-shrink: 0; }

/* ============ LAYOUT ============ */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
section { padding: clamp(72px, 10vw, 128px) 0; }
section.tight { padding: clamp(48px, 6vw, 80px) 0; }

.alt-bg { background: var(--color-background-alt); }
.dark-bg { background: var(--color-primary); color: var(--color-text-on-dark); }
.dark-bg h1, .dark-bg h2, .dark-bg h3 { color: var(--color-text-on-dark); }
.dark-bg .muted { color: rgba(245,245,247,0.65); }

/* `.on-dark` marks any surface whose background is dark but isn't `.dark-bg`
 * (photo sections, gradient overlays). It flips the same contextual styles. */
.dark-bg .eyebrow, .on-dark .eyebrow { color: var(--color-accent-light); }
.dark-bg .eyebrow::before, .on-dark .eyebrow::before { background: var(--color-accent); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }

/* ============ BUTTONS ============ */
/* Base + size modifiers. Every button on the site is `.btn` plus one variant,
 * optionally plus one size. Never restate padding or type in a variant. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 250ms, color 250ms, border-color 250ms;
}
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* Variants — light context */
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); color: #fff; }

.btn-secondary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary); color: #fff; }

.btn-ghost { background: transparent; color: var(--color-text); border-color: rgba(28,43,58,0.25); }
.btn-ghost:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.btn-on-dark { background: #fff; color: var(--color-primary); }
.btn-on-dark:hover { background: var(--color-accent); color: #fff; }

/* Text button — a link that behaves like a button (arrow, hover, spacing) */
.btn-text { padding: 0; border: 0; background: none; color: var(--color-primary); gap: 8px; }
.btn-text:hover { color: var(--color-accent); background: none; }

/* Variants — dark context. Any `.dark-bg` / `.on-dark` ancestor, or the nav
 * while it sits transparent over a photo. */
.dark-bg .btn-secondary,
.on-dark .btn-secondary,
.dark-bg .btn-ghost,
.on-dark .btn-ghost,
.nav:not(.scrolled) .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.dark-bg .btn-secondary:hover,
.on-dark .btn-secondary:hover,
.dark-bg .btn-ghost:hover,
.on-dark .btn-ghost:hover,
.nav:not(.scrolled) .btn-ghost:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.dark-bg .btn-text, .on-dark .btn-text { color: #fff; }
.dark-bg .btn-text:hover, .on-dark .btn-text:hover { color: var(--color-accent-light); }

.btn .arrow { transition: transform 200ms; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ NAV ============ */
/* Default: solid white bar (every inner page). Pages that put the nav over a
 * photo add `class="nav-overlay"` to <body>; components.js then starts the nav
 * transparent and adds `.scrolled` once you leave the top. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out), backdrop-filter 300ms;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--color-border);
}

.brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  transition: color 250ms var(--ease-out);
}
.nav.scrolled .brand { color: var(--color-text); }

/* Two crests stacked: grey over the photo, blue on the solid bar. */
.brand-mark { position: relative; width: 46px; height: 46px; flex-shrink: 0; }
.brand-mark img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 250ms var(--ease-out);
}
.brand-mark .crest-light { opacity: 1; }
.brand-mark .crest-dark { opacity: 0; }
.nav.scrolled .brand-mark .crest-light { opacity: 0; }
.nav.scrolled .brand-mark .crest-dark { opacity: 1; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name { font-family: var(--font-display); font-size: 1rem; font-weight: 500; letter-spacing: -0.005em; }
.brand-text .est { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; margin-top: 3px; }
.brand-full { display: flex; }
.brand-short { display: none; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a {
  color: rgba(255,255,255,0.92);
  font-size: 0.9375rem;
  font-weight: 500;
  /* A nav item never breaks across two lines — the bar tightens instead. */
  white-space: nowrap;
  transition: color 200ms;
}
.nav-links > li > a:hover { color: var(--color-accent-light); }
/* The current page reads as light gold while the bar is transparent. */
.nav:not(.scrolled) .nav-links > li > a.current { color: var(--color-accent-light); }
.nav.scrolled .nav-links > li > a { color: var(--color-text); }
.nav.scrolled .nav-links > li > a:hover,
.nav.scrolled .nav-links > li > a.current { color: var(--color-accent); }
.nav.scrolled .nav-links > li > a.current { font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ============ DROPDOWN ============ */
.has-dd { position: relative; }
.dd-trigger { display: inline-flex; align-items: center; gap: 7px; }
.dd-caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px,-1px); opacity: 0.6; transition: transform 250ms var(--ease-out); }
.has-dd:hover .dd-caret, .has-dd:focus-within .dd-caret { transform: rotate(225deg) translate(-1px,-1px); opacity: 1; }
.has-dd::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; }
.dd-menu {
  position: absolute; top: calc(100% + 16px); left: -14px; min-width: 252px; padding: 8px;
  background: #fff; border: 1px solid var(--color-border); border-radius: 3px;
  box-shadow: 0 18px 44px rgba(28,43,58,0.16);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 200ms;
  z-index: 60;
}
.has-dd:hover .dd-menu, .has-dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-menu a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 2px; color: var(--color-text); font-size: 0.9375rem; font-weight: 500; white-space: nowrap; transition: background 160ms, color 160ms; }
.dd-menu a .dd-sub { font-size: 0.8125rem; font-weight: 400; color: var(--color-text-muted); white-space: normal; }
.dd-menu a:hover { background: var(--color-background-alt); color: var(--color-accent); }
.dd-menu a.current { color: var(--color-accent); }

/* ============ MOBILE MENU ============ */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 6px;
  color: #fff;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; flex-shrink: 0;
  transition: color 250ms var(--ease-out);
}
.nav.scrolled .menu-toggle { color: var(--color-text); }
.menu-toggle .bar { width: 22px; height: 1.5px; background: currentColor; display: block; transition: transform 300ms var(--ease-out), opacity 200ms; transform-origin: center; }
.menu-toggle.open .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; background: var(--color-background); z-index: 48; padding: 92px 32px 48px; overflow-y: auto; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 250ms var(--ease-out), visibility 250ms; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mob-link { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.625rem, 5vw, 2.25rem); letter-spacing: -0.015em; line-height: 1.1; color: var(--color-text); text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--color-border); transition: color 200ms; }
.mob-link:hover, .mob-link.current { color: var(--color-accent); }
.mob-section { border-bottom: 1px solid var(--color-border); padding-bottom: 8px; }
.mob-section-label { display: block; font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; color: var(--color-accent); padding: 16px 0 8px; }
.mob-sub { display: block; font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500; color: var(--color-text-muted); text-decoration: none; padding: 9px 0 9px 16px; border-top: 1px solid var(--color-border); transition: color 200ms; }
.mob-sub:hover, .mob-sub.current { color: var(--color-accent); }
.mob-cta { margin-top: auto; padding-top: 40px; }

/* While the menu is open the bar sits on white — force the solid treatment. */
body.menu-open .nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
body.menu-open .nav .brand, body.menu-open .nav .menu-toggle { color: var(--color-text); }
body.menu-open .nav .brand-mark .crest-light { opacity: 0; }
body.menu-open .nav .brand-mark .crest-dark { opacity: 1; }

/* ============ FOOTER ============ */
footer {
  background: var(--color-footer);
  color: rgba(245,245,247,0.75);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
footer h5 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin: 0 0 18px;
  font-weight: 500;
}
footer .footer-logo { width: 112px; height: auto; display: block; margin-bottom: 22px; opacity: 0.9; }
footer .footer-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: #fff; line-height: 1.25; letter-spacing: -0.015em; }
footer .brand-block .rhythm-mini {
  display: block;
  margin-top: 18px;
  font-size: 0.8125rem;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--color-accent);
  letter-spacing: 0.08em;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer ul a { color: rgba(245,245,247,0.78); font-size: 0.9375rem; transition: color 200ms; }
footer ul a:hover { color: var(--color-accent); }
footer address { font-style: normal; font-size: 0.9375rem; line-height: 1.7; }
footer .footer-tel { display: block; margin-top: 12px; color: rgba(245,245,247,0.78); transition: color 200ms; }
footer .footer-tel:hover { color: var(--color-accent); }
.foot-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(245,245,247,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ MOTION ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.fade-up { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.fade-up.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .fade-up { transition: none; opacity: 1; transform: none; }
  .parallax { transform: none !important; }
}

/* ============ PAGE PRIMITIVES ============ */
/* Composition patterns shared by the homepage and the Squash page. Each page
 * supplies its own photography, section backgrounds and vertical rhythm; the
 * structure lives here so the two pages cannot drift apart. */

/* --- Photo hero with a rhythm bar pinned to its bottom edge --- */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--color-primary);
}
/* Pages set the image and filter; the overscan lets the layer take parallax. */
.hero-bg { position: absolute; inset: -12% 0; }
.hero-veil { position: absolute; inset: 0; }
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 140px 32px 88px;
}
.hero-headline { margin-top: 24px; color: #fff; }
.hero-headline em { font-style: italic; font-weight: 400; }
.hero-sub {
  margin: 28px 0 0;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  max-width: 52ch;
}
.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.rhythm-row {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.22);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.rhythm-row-inner {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.rhythm {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.6vw + 0.375rem, 1.5rem);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.rhythm .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color-accent); }
.rhythm-meta {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.85);
}

/* --- Two-column copy/photo split --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}
.split.media-first { grid-template-columns: 1.05fr 1fr; }
.split h2 { margin: 18px 0 24px; max-width: 16ch; }
.split .copy p { margin: 0; font-size: 1.0625rem; line-height: 1.65; max-width: 52ch; }
.cta-row { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  max-width: 620px;
}
.feature-list li {
  padding: 16px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); flex-shrink: 0; }

/* Primary photo with a smaller one overlapping its corner. `margin: 0` so the
 * primitive measures the same whether a page hangs it on a <div> or a <figure>
 * (which carries a 40px UA side margin). */
.media-stack { position: relative; margin: 0; }
.media-stack > img { width: 100%; object-fit: cover; border-radius: 2px; filter: saturate(0.92); }
.media-stack .inset {
  position: absolute;
  bottom: -10%;
  width: 44%;
  border: 8px solid #fff;
  box-shadow: 0 14px 40px rgba(28,43,58,0.18);
}
.media-stack .inset.left { left: -8%; }
.media-stack .inset.right { right: -8%; }
.media-stack .inset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.alt-bg .media-stack .inset { border-color: var(--color-background-alt); }

.ratio-4-5 > img { aspect-ratio: 4 / 5; }
.ratio-4-3 > img { aspect-ratio: 4 / 3; }
.ratio-16-10 > img { aspect-ratio: 16 / 10; }

/* --- Meta bar: hairline strip of facts pinned under a hero --- */
.meta-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.22);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.meta-bar-inner {
  padding: 26px 32px;
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
}
.meta-bar b { color: #fff; font-weight: 600; }

/* --- Italic caption hung off a short gold rule --- */
.caption {
  margin: 28px 0 0;
  padding-left: 28px;
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.caption::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 18px; height: 1px; background: var(--color-accent); }

/* --- Two photos side by side, full bleed, hover zoom --- */
.diptych { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #fff; }
.diptych figure { margin: 0; overflow: hidden; }
.diptych img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 1200ms var(--ease-out);
}
.diptych figure:hover img { transform: scale(1.04); }

/* --- Closing CTA band over a parallax photo. Pages set the image, gradient
   and padding; add `.centered` for the centred variant. --- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: clamp(88px, 10vw, 144px) 0;
}
.cta-bg { position: absolute; inset: -12% 0; }
.cta-veil { position: absolute; inset: 0; }
.cta-inner { position: relative; z-index: 2; }
.cta-band h2 { font-weight: 400; }
.cta-band h2 em { font-style: italic; color: var(--color-accent); }
.cta-lead { margin: 0 0 32px; font-size: 1.125rem; line-height: 1.6; color: rgba(245,245,247,0.82); max-width: 52ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.cta-band.centered { text-align: center; }
.cta-band.centered h2 { margin-left: auto; margin-right: auto; }
.cta-band.centered .cta-lead { margin-left: auto; margin-right: auto; }
.cta-band.centered .cta-actions { justify-content: center; }

/* --- Numbered 01/02/03 row on a dark surface --- */
.numbered {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 32px;
}
.numbered .num { font-family: var(--font-display); font-style: italic; font-size: 0.9375rem; color: var(--color-accent-light); }
.numbered h3 { margin: 8px 0 6px; font-size: 1.375rem; letter-spacing: -0.01em; color: #fff; }
.numbered p { margin: 0; font-size: 0.875rem; line-height: 1.6; color: rgba(245,245,247,0.7); }

/* Seven items plus the button need more room than 1024-1200px gives at the
 * full 28px rhythm, so the bar closes up before anything is forced to wrap. */
@media (max-width: 1200px) {
  .nav-inner { gap: 20px; padding-left: 24px; padding-right: 24px; }
  .nav-links { gap: 20px; }
  .nav-cta .btn { white-space: nowrap; }
  .brand { font-size: 0.9375rem; }
}

/* ============ RESPONSIVE (shared chrome) ============ */
/* Tablet: crest + club name + "Book a Tour" stay in the bar; only the links
 * move into the full-screen menu. Footer drops to 3 columns, Navigate wraps. */
@media (max-width: 1024px) {
  .eyebrow { font-size: 0.75rem; }
  .eyebrow::before, .eyebrow.flanked::after { width: 26px; }
  .nav-links { display: none; }
  .nav-inner { padding: 16px 28px; gap: 18px; }
  .menu-toggle { display: flex; }
  /* With the links gone, space-between would strand the button mid-bar.
   * The auto margin absorbs the free space so it groups with the hamburger. */
  .nav-cta { margin-left: auto; }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
}
/* Mobile: crest and hamburger only. */
@media (max-width: 640px) {
  .eyebrow { font-size: 0.6875rem; gap: 10px; }
  .eyebrow::before, .eyebrow.flanked::after { width: 22px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  section { padding: 64px 0; }
  .nav-inner { padding: 14px 20px; }
  .brand-text, .nav-cta { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .mobile-menu { padding: 92px 20px 48px; }
  /* Brand and Navigate span the full width; Visit and Hours sit side by side. */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
}

/* ============ PAGE PRIMITIVES — RESPONSIVE ============ */
/* Tablet — reference frames drawn at 834px */
@media (max-width: 1024px) {
  .hero-inner { padding: 0 40px 40px; }
  .hero-headline { margin-top: 20px; }
  .hero-sub { margin-top: 22px; font-size: 1.0625rem; max-width: 48ch; }
  .hero-actions { margin-top: 32px; gap: 12px; }
  .rhythm-row { margin: 0 40px; width: auto; }
  .rhythm-row-inner { padding: 20px 0 28px; gap: 16px; }
  .rhythm { font-size: 1.125rem; gap: 16px; }
  .rhythm .dot { width: 3px; height: 3px; }
  .rhythm-meta { font-size: 0.6875rem; }

  .split, .split.media-first { grid-template-columns: 1fr 1fr; gap: 44px; }
  .split h2 { font-size: 2rem; margin: 14px 0 16px; }
  .split .copy p { font-size: 0.9375rem; margin: 0 0 22px; }
  .feature-list { grid-template-columns: 1fr; column-gap: 0; max-width: none; margin: 0 0 24px; }
  .feature-list li { padding: 12px 0; font-size: 0.875rem; gap: 12px; }
  .cta-row { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 0; }
  .cta-row .btn { padding: 13px 22px; font-size: 0.875rem; }

  /* Insets are kept at every size — offsets widen so nothing clips */
  .media-stack .inset { width: 46%; bottom: -12%; border-width: 7px; box-shadow: 0 12px 36px rgba(28,43,58,0.18); }
  .media-stack .inset.left { left: -10%; }
  .media-stack .inset.right { right: -10%; }

  .meta-bar { margin: 0 40px; width: auto; }
  .meta-bar-inner { padding: 20px 0 26px; gap: 40px; font-size: 0.6875rem; }
  .caption { font-size: 0.875rem; padding-left: 24px; }
  .caption::before { width: 16px; }
  .cta-actions { gap: 12px; }
  .numbered { gap: 24px; padding-top: 24px; }
  .numbered .num { font-size: 0.8125rem; }
  .numbered h3 { font-size: 1.1875rem; margin: 5px 0 4px; }
  .numbered p { font-size: 0.8125rem; }
}

/* Mobile — reference frames drawn at 390px */
@media (max-width: 640px) {
  .hero-inner { padding: 0 20px 24px; }
  .hero-headline { margin-top: 16px; max-width: none; }
  .hero-sub { margin-top: 16px; font-size: 1rem; max-width: none; }
  .hero-actions { margin-top: 24px; flex-direction: column; gap: 10px; }
  .rhythm-row { margin: 20px 20px 0; }
  .rhythm-row-inner { padding: 16px 0 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .rhythm { font-size: 0.9375rem; gap: 12px; }
  .rhythm-meta { font-size: 0.625rem; }

  /* Stacked CTAs are full-width */
  .hero-actions .btn, .split .cta-row .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 26px;
    font-size: 0.9375rem;
  }
  /* A text link stays a text link, not a full-width button */
  .split .cta-row .btn-text { width: auto; padding: 0; justify-content: flex-start; }

  /* Splits stack to copy -> media -> list -> CTA.
   * `display: contents` lifts the copy's children into the flex column so the
   * media block can sit between the body copy and the list/CTA. Order values
   * are spaced so a page can slot the media earlier (see squash.html #pro).
   * `align-items: center` on the desktop grid centres vertically; in a flex
   * column it would centre horizontally, so reset it to stretch. */
  .split, .split.media-first {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .split .copy { display: contents; }
  .split .eyebrow, .split h2 { order: 1; }
  /* The eyebrow is itself a <p>, so exclude it or it takes the body's slot. */
  .split .copy > p:not(.eyebrow) { order: 2; }
  .split .media-stack { order: 3; }
  .split .feature-list { order: 4; }
  .split .cta-row { order: 5; }

  .split h2 { font-size: 1.875rem; margin: 14px 0 16px; max-width: none; }
  .split .copy p { font-size: 0.9375rem; margin: 0 0 24px; max-width: none; }
  .media-stack { margin-bottom: 40px; }
  .feature-list { margin: 0 0 28px; }
  .feature-list li { padding: 13px 0; font-size: 0.9375rem; }

  .media-stack .inset { width: 46%; bottom: -24px; border-width: 6px; box-shadow: 0 12px 32px rgba(28,43,58,0.18); }
  .media-stack .inset.left { left: -6px; }
  .media-stack .inset.right { right: -6px; }

  .meta-bar { margin: 16px 20px 0; }
  .meta-bar-inner { padding: 14px 0 18px; gap: 8px 24px; font-size: 0.625rem; }
  .diptych { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; gap: 10px; }
  .cta-actions .btn { width: 100%; justify-content: center; padding: 15px 26px; font-size: 0.9375rem; }
  .numbered { grid-template-columns: 1fr; gap: 20px; }
}
