/* ============================================================================
   BDS GOLF UNLIMITED — base.css (build v3, 2026-10-19)
   ----------------------------------------------------------------------------
   COMPOSITION CONTRACT (deliberate, grep-audited — do not regress):
   - Hub display:      clamp(4rem, 11vw, 10.5rem)  → reaches 168px desktop
   - Division display: clamp(3.4rem, 9vw, 8.5rem)
   - Content splits:   7fr 5fr · 2fr 1fr · 1fr 1.618fr  (NO 1fr 1fr, NO auto-fit)
   - Measures:         full-bleed · 1400 · 1120 · 62ch   (≥3 per page)
   - Rhythm:           section padding ≥ 12vh desktop · hub hero 100svh
   ----------------------------------------------------------------------------
   Brand values: Lynette Balie / Ginger Lion (final, 2026-10-13).
   Zuume Rough Bold is licensed print display — Anton is the approved web stand-in.
   ⚠️ Leatherworx navy may become yellow: change ONLY the --lw* tokens below.
   ============================================================================ */

/* ---------- fonts ---------- */
/* Anton (display) · Poppins (body/UI) · IBM Plex Mono (instrument data only)
   loaded via fonts.googleapis.com link in <head> */

/* ---------- primitive + semantic tokens ---------- */
:root {
  /* parent worlds */
  --paper:    #f6f4f0;  /* Lynette's ground */
  --paper-2:  #efece6;
  --paper-3:  #e6e1d6;
  --ink:      #141512;  /* warm charcoal — never pure black */
  --ink-2:    #1a1c18;
  --ink-3:    #222420;
  --ink-fg:   #171812;  /* text on paper */
  --bone:     #f2efe8;  /* text on ink */
  --grey:     #545454;  /* parent brand grey */

  /* division accent families (Lynette, locked) */
  --cf:        #f27227;  --cf-bright: #ff8d4a;  --cf-soft: rgba(242,114,39,.13);
  --gd:        #d43790;  --gd-deep:   #a82470;  --gd-soft: rgba(212,55,144,.12);
  --oc:        #2e6417;  --oc-bright: #7dba63;  /* same-hue tint of #2e6417 — ONLY for small text on dark grounds (contrast); swatches/buttons use --oc */  --oc-soft: rgba(92,168,46,.13);
  --lw:        #172c48;  --lw-bright: #7f9abd;  /* same-hue tint of #172c48 — text on dark only; swatches use --lw */  --lw-light: #9db7d9;  --lw-soft: rgba(63,109,168,.16);
  --whatsapp:  #25d366;

  /* defaults: paper world (hub) */
  --bg:       var(--paper);
  --bg-2:     var(--paper-2);
  --bg-3:     var(--paper-3);
  --fg:       var(--ink-fg);
  --muted:    rgba(23,24,18,.62);
  --faint:    rgba(23,24,18,.38);
  --line:     rgba(23,24,18,.14);
  --line-2:   rgba(23,24,18,.26);
  --accent:        var(--grey);
  --accent-bright: #6b6b6b;
  --accent-soft:   rgba(84,84,84,.10);

  --radius:   16px;
  --ease:     cubic-bezier(0.23, 1, 0.32, 1);
  --w-wide:   1400px;
  --w-std:    1120px;
  --w-prose:  62ch;

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body:    'Poppins', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
}

/* ink sections inside the paper world */
.on-ink, [data-ground="ink"] { color: var(--fg); }
.on-ink, [data-ground="ink"] {
  --bg: var(--ink); --bg-2: var(--ink-2); --bg-3: var(--ink-3);
  --fg: var(--bone);
  --muted: rgba(242,239,232,.60);
  --faint: rgba(242,239,232,.34);
  --line:  rgba(242,239,232,.12);
  --line-2:rgba(242,239,232,.24);
}

/* ---------- division worlds ---------- */
body[data-world="cf"] {
  --bg: #151210; --bg-2: #1c1815; --bg-3: #252019;
  --fg: #f1ebe1;
  --muted: rgba(241,235,225,.60); --faint: rgba(241,235,225,.34);
  --line: rgba(242,114,39,.18); --line-2: rgba(242,114,39,.34);
  --accent: var(--cf); --accent-bright: var(--cf-bright); --accent-soft: var(--cf-soft);
}
body[data-world="gd"] {
  --bg: var(--paper); --bg-2: var(--paper-2); --bg-3: var(--paper-3);
  --fg: var(--ink-fg);
  --muted: rgba(23,24,18,.62); --faint: rgba(23,24,18,.38);
  --line: rgba(23,24,18,.14); --line-2: rgba(212,55,144,.38);
  --accent: var(--gd); --accent-bright: var(--gd-deep); --accent-soft: var(--gd-soft);
}
body[data-world="oc"] {
  --bg: #0f140e; --bg-2: #151c12; --bg-3: #1b2418;
  --fg: #eef2e8;
  --muted: rgba(238,242,232,.60); --faint: rgba(238,242,232,.34);
  --line: rgba(92,168,46,.16); --line-2: rgba(92,168,46,.32);
  --accent: var(--oc-bright); --accent-bright: #74c244; --accent-soft: var(--oc-soft);
}
body[data-world="lw"] {
  --bg: #10141b; --bg-2: #161c28; --bg-3: #1e2634;
  --fg: #efe9dd;
  --muted: rgba(239,233,221,.60); --faint: rgba(239,233,221,.34);
  --line: rgba(157,183,217,.14); --line-2: rgba(157,183,217,.30);
  --accent: var(--lw-bright); --accent-bright: var(--lw-light); --accent-soft: var(--lw-soft);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
a, button, summary, [role="button"] { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--bg); }

/* ---------- type ---------- */
.display, h1, h2.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: .92;
  margin: 0;
}
.display-xl { font-size: clamp(4rem, 11vw, 10.5rem); }   /* hub statement */
.display-lg { font-size: clamp(3.4rem, 9vw, 8.5rem); }   /* division heroes */
.display-md { font-size: clamp(2.4rem, 5.6vw, 4.6rem); } /* section heads */
.display-sm { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }

.micro {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.micro--accent { color: var(--accent); }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; max-width: var(--w-prose); }
.prose { max-width: var(--w-prose); }
.prose p + p { margin-top: 1em; }
.muted { color: var(--muted); }

.data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* two-tone headline device — from the logo system (BDS black · GOLF coloured) */
.tone { color: var(--accent); }
.tone--cf { color: var(--cf); } .tone--gd { color: var(--gd); }
.tone--oc { color: var(--oc-bright); } .tone--lw { color: var(--lw-bright); }

/* ---------- layout ---------- */
.wrap      { max-width: var(--w-std);  margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.wrap-wide { max-width: var(--w-wide); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.section   { padding-block: clamp(96px, 14vh, 190px); }
.section--tight { padding-block: clamp(64px, 9vh, 120px); }

.split-75 { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.split-21 { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.split-golden { display: grid; grid-template-columns: 1fr 1.618fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
@media (max-width: 860px) {
  .split-75, .split-21, .split-golden { grid-template-columns: 1fr; }
}

.hairline-top { border-top: 1px solid var(--line); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 3vw, 40px);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.nav--solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav--hidden { transform: translateY(-110%); }
.nav__logo img { height: 52px; width: auto; }
.nav__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__links { display: flex; gap: clamp(14px, 2.2vw, 34px); align-items: center; list-style: none; padding: 0; }
.nav__links a {
  font-weight: 500; font-size: .92rem; text-decoration: none;
  opacity: .82; transition: opacity .2s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__cta {
  font-weight: 600; font-size: .9rem; text-decoration: none;
  padding: 10px 22px; border-radius: 99px;
  background: var(--fg); color: var(--bg);
  transition: transform .16s var(--ease), background .3s var(--ease);
}
.nav__cta:active { transform: scale(.97); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* nav over a dark hero: light chrome + white logo until solid */
.nav .logo-light { display: none; }
.nav--onhero:not(.nav--solid) { color: #f2efe8; }
.nav--onhero:not(.nav--solid) .nav__cta { background: #f6f4f0; color: #171812; }
.nav--solid .logo-dark { display: none; }
.nav--solid .logo-light { display: block; }

/* group bar: each division is its own site; this slim strip keeps the group one site */
.nav:has(.groupbar) { flex-wrap: wrap; padding-top: 0; }
.groupbar {
  flex: 0 0 calc(100% + 2 * clamp(20px, 3vw, 40px));
  margin: 0 calc(-1 * clamp(20px, 3vw, 40px)) 12px;
  padding: 7px clamp(20px, 3vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: rgba(10,10,9,.72); backdrop-filter: blur(10px);
  color: #f2efe8; font-size: .74rem; letter-spacing: .04em;
}
.groupbar a { text-decoration: none; opacity: .78; transition: opacity .2s var(--ease); }
.groupbar a:hover { opacity: 1; }
.groupbar__home { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; opacity: .9 !important; }
.groupbar__home svg { transition: transform .25s var(--ease); }
.groupbar__home:hover svg { transform: translateX(-3px); }
.groupbar__worlds { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 24px); list-style: none; padding: 0; }
.groupbar__worlds span.lbl { opacity: .5; }
.groupbar__worlds a { display: inline-flex; align-items: center; gap: 7px; }
.groupbar__worlds .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(242,239,232,.55); }
@media (max-width: 700px) {
  .groupbar__worlds .lbl, .groupbar__worlds .nm { display: none; }
  .groupbar__worlds a { padding: 4px; }
  .groupbar__worlds .dot { width: 9px; height: 9px; }
}

/* mobile menu */
.nav__burger { display: none; background: none; border: 0; padding: 8px; }
.nav__burger svg { display: block; }
@media (max-width: 860px) { .nav__burger { display: block; } }
.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--ink);
  color: var(--bone); display: grid; place-content: center; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .45s var(--ease);
}
.menu.open { opacity: 1; pointer-events: auto; }
.menu a { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2rem, 8vw, 3.4rem); text-decoration: none; line-height: 1.3; }
.menu a span { transition: color .25s var(--ease); }
.menu__close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: inherit; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  padding: 15px 30px; border-radius: 99px; border: 0;
  background: var(--accent); color: #fff;
  transition: transform .16s var(--ease), filter .25s var(--ease);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn--ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { border-color: var(--fg); filter: none; }
.btn--wa { background: var(--whatsapp); color: #06210f; }
.btn--ink { background: var(--fg); color: var(--bg); }
.btn svg { flex: none; }

/* ---------- compass dock (signature) ---------- */
.dock {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 55; display: flex; align-items: center; gap: 4px;
  padding: 8px 10px; border-radius: 99px;
  background: rgba(20,21,18,.82); backdrop-filter: blur(16px);
  border: 1px solid rgba(242,239,232,.14);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.dock--hidden { transform: translateX(-50%) translateY(140%); opacity: 0; }
.dock__label {
  color: rgba(242,239,232,.66); font-size: .66rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 0 10px 0 8px; white-space: nowrap;
}
.dock a {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  text-decoration: none; position: relative;
  transition: background .25s var(--ease), transform .2s var(--ease);
}
.dock a:hover { transform: translateY(-3px); }
.dock a .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); transition: box-shadow .3s var(--ease); }
.dock a:hover .dot, .dock a.is-here .dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 30%, transparent); }
.dock a .tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: #0d0e0c; color: #f2efe8; font-size: .68rem; font-weight: 600;
  letter-spacing: .08em; padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.dock a:hover .tip, .dock a:focus-visible .tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.dock__wa { background: rgba(37,211,102,.14); margin-left: 2px; }
@media (max-width: 640px) { .dock__label { display: none; } }

/* ---------- transit: the strike plays between pages (mini loader) ---------- */
.veil { display: none; }   /* until site.js arms it: no paper flash on page load */
.transit {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: var(--paper);
  display: grid; place-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease-out, visibility .18s;
}
.transit.run { opacity: 1; visibility: visible; pointer-events: auto; }
.transit svg { width: 220px; height: auto; }
.transit .t-arc { stroke-dasharray: 260; stroke-dashoffset: 260; }
.transit .t-trace { stroke-dasharray: 90; stroke-dashoffset: 90; }
.transit.run .t-arc { animation: l-draw .4s cubic-bezier(0.23,1,0.32,1) .05s forwards; }
.transit.run .t-trace { animation: l-draw .3s cubic-bezier(0.23,1,0.32,1) forwards; }
.transit.run .t-1 { animation-delay: .32s; } .transit.run .t-2 { animation-delay: .38s; }
.transit.run .t-3 { animation-delay: .44s; } .transit.run .t-4 { animation-delay: .5s; }
@media (prefers-reduced-motion: reduce) { .transit { display: none; } }

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: grid; place-content: center; justify-items: center; gap: 26px;
  transition: opacity .8s var(--ease), visibility .8s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#loader .loader-word { height: 92px; width: auto; }
#loader .loader-status {
  font-size: .68rem; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(23,24,18,.5);
}
/* the strike: arc draws first, then the four traces fan out */
#loader .l-arc { stroke-dasharray: 260; stroke-dashoffset: 260; animation: l-draw .7s cubic-bezier(0.23,1,0.32,1) .15s forwards; }
#loader .l-trace { stroke-dasharray: 90; stroke-dashoffset: 90; animation: l-draw .5s cubic-bezier(0.23,1,0.32,1) forwards; }
#loader .l-t1 { animation-delay: .75s; } #loader .l-t2 { animation-delay: .85s; }
#loader .l-t3 { animation-delay: .95s; } #loader .l-t4 { animation-delay: 1.05s; }
#loader .l-ball { transform-origin: 18px 92px; animation: l-pop .4s cubic-bezier(0.23,1,0.32,1) both; }
#loader .loader-word, #loader .loader-status { opacity: 0; animation: l-in .7s cubic-bezier(0.23,1,0.32,1) .55s forwards; }
@keyframes l-draw { to { stroke-dashoffset: 0; } }
@keyframes l-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes l-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #loader .l-arc, #loader .l-trace, #loader .l-ball, #loader .loader-word, #loader .loader-status { animation: none; opacity: 1; stroke-dashoffset: 0; }
}
#loader .loader-bar { width: 180px; height: 2px; background: rgba(23,24,18,.12); border-radius: 2px; overflow: hidden; }
#loader .loader-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cf), var(--gd), var(--oc-bright), var(--lw-bright));
}

/* ---------- media blocks ---------- */
.frame { border-radius: var(--radius); overflow: hidden; position: relative; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.scrim::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,9,.14) 0%, rgba(10,11,9,.02) 38%, rgba(10,11,9,.66) 100%);
}

/* ---------- cards ---------- */
.card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 2.6vw, 36px);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: var(--line-2); }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.table th { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); }

/* the course footer: every page ends on the same evening course; the loader's
   flight line lands on its green (assets/img/course-footer.svg) */
.footer--course { background: var(--ink); border-top: 0; padding-top: 0 !important; }
.footer--course .footer__scene { overflow: hidden; }
.footer--course .footer__scene img {
  /* height tracks the art's 1600:260 ratio so the flight arc is never sliced off
     on wide screens; narrow screens keep 150px and crop the sides instead */
  width: 100%; height: max(150px, calc(100vw * 260 / 1600));
  object-fit: cover; object-position: 78% bottom; display: block;
}
.footer--course .footer__content { padding-top: clamp(28px, 4vh, 48px); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; opacity: .78; font-size: .95rem; }
.footer a:hover { opacity: 1; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; padding-block: 26px; font-size: .8rem; color: var(--faint); }

/* ---------- reveal (scroll entrance, used sparingly) ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- screen-reader-only ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

/* ---------- skip link ---------- */
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 120;
  background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
  transform: translateY(-200%); transition: transform .2s;
}
.skip:focus-visible { transform: none; }

/* exact brand swatches on dark chrome: a hairline light ring keeps navy + dark green visible */
.dock .dot, .hero__chips .dot, .menu .dot { box-shadow: 0 0 0 1.5px rgba(242,239,232,.55); }
