/* ============================================================================
   BDS hub — hero statement, four door chapters, numbers, contact
   ============================================================================ */

/* ---------- the flight of the ball (world mode) ---------- */
#world { display: none; }
body.world-on #world {
  display: block; position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%; pointer-events: none;
}
body.world-on { background: #141512; }
body.world-on main { position: relative; z-index: 1; }
/* the sky is the hero: no photo, just a readability scrim at the base */
body.world-on .hero__media, body.world-on .hero::after { display: none; }
body.world-on .hero {
  background: linear-gradient(180deg, transparent 52%, rgba(10,11,9,.5) 100%);
}
body.world-on .hero__title, body.world-on .hero__eyebrow { text-shadow: 0 2px 26px rgba(10,11,9,.55); }
/* filmed world: the hero still is the poster (and the LCP) until the canvas has frame 0 */
body.film-on:not(.film-ready) .hero__media { display: block; }
body.film-on .hero {
  background: linear-gradient(90deg, rgba(10,11,9,.62) 0%, rgba(10,11,9,.2) 48%, transparent 70%),
              linear-gradient(180deg, rgba(10,11,9,.35) 0%, transparent 22%, transparent 60%, rgba(10,11,9,.55) 100%);
}
/* chrome over footage: dark glass, white mark — never a paper bar over the course */
body.film-on .nav--solid { background: rgba(12,13,11,.46); box-shadow: 0 1px 0 rgba(242,239,232,.1); color: #f2efe8; }
body.film-on .nav--solid .logo-dark { display: block; }
body.film-on .nav--solid .logo-light { display: none; }
body.film-on .nav--solid .nav__cta { background: #f6f4f0; color: #171812; }
body.film-on .nav__links a { text-shadow: 0 1px 14px rgba(0,0,0,.45); }
/* film beats: scroll room for the tee and the drive, only while the film runs */
.film-beat { display: none; }
body.film-on .film-beat {
  display: flex; align-items: flex-end; min-height: 115vh;
  padding-bottom: clamp(90px, 16vh, 170px); color: #f6f4f0;
}
body.film-on .film-beat--right { align-items: flex-start; padding-top: 22vh; text-align: right; }
.film-beat__kicker { color: rgba(242,239,232,.8); margin-bottom: 14px; }
.film-beat__line { max-width: 12ch; text-shadow: 0 2px 26px rgba(10,11,9,.55); }
.film-beat--right .film-beat__line { margin-left: auto; }
.film-beat__line em { font-style: normal; color: var(--cf); }
/* film overlays (built by film.js): shot HUD during the drive, hole card at each green */
.film-hud, .film-hole {
  position: fixed; z-index: 5; pointer-events: none;
  background: rgba(10,11,9,.5); backdrop-filter: blur(12px);
  border: 1px solid rgba(242,239,232,.16); border-radius: 14px; color: #f2efe8;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.film-hud.is-on, .film-hole.is-on { opacity: 1; transform: none; }
.film-hud { left: clamp(20px, 3vw, 40px); bottom: 96px; padding: 14px 18px 12px; }
.film-hud__label { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cf); margin-bottom: 8px; }
.film-hud dl { display: flex; gap: clamp(16px, 2vw, 28px); margin: 0; }
.film-hud dt { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.film-hud dd { margin: 2px 0 0; font-family: var(--font-mono); font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-variant-numeric: tabular-nums; }
.film-hud dd small { font-size: .55em; opacity: .65; margin-left: 3px; }
.film-hole { right: clamp(20px, 3vw, 40px); top: 110px; padding: 14px 20px; display: grid; gap: 2px; min-width: 190px; border-left: 3px solid var(--hc, #f2efe8); }
.film-hole__n { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(242,239,232,.72); }
.film-hole { border-left-width: 4px; }
.film-hole strong { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; }
.film-hole__line { font-size: .78rem; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .film-hud, .film-hole { display: none; } }
body.film-on .door .btn--ghost { color: #f2efe8; border-color: rgba(242,239,232,.42); }
body.film-on .door::before {
  background: linear-gradient(90deg, rgba(8,9,7,.72) 0%, rgba(8,9,7,.34) 42%, transparent 66%);
}
/* the group story floats as a glass panel over the course */
body.world-on .group { background: transparent; }
body.world-on .group .split-75 {
  background: rgba(14,15,13,.62); backdrop-filter: blur(16px);
  border: 1px solid rgba(242,239,232,.14); border-radius: 22px;
  padding: clamp(26px, 4vw, 60px);
  color: #f2efe8;
  --fg: #f2efe8; --muted: rgba(242,239,232,.62); --faint: rgba(242,239,232,.38);
  --line: rgba(242,239,232,.12); --line-2: rgba(242,239,232,.26);
}
body.world-on .group__marks { display: none; }
/* doors: the world is the backdrop; keep a left scrim for the copy */
body.world-on .door__media, body.world-on .door__flood { display: none; }
body.world-on .door::before {
  background: linear-gradient(90deg, rgba(10,11,9,.6) 0%, rgba(10,11,9,.22) 46%, transparent 72%);
}
body.world-on .door__content { text-shadow: 0 1px 18px rgba(10,11,9,.5); }
body.world-on .btn--ghost { background: rgba(10,11,9,.4); backdrop-filter: blur(6px); }
/* solid ink from the numbers on: the journey has landed */
body.world-on .numbers, body.world-on .contact-strip, body.world-on .footer--course { background: var(--ink); }
/* phones (portrait cut of the film): the copy spans the full width, so the scrims run
   bottom-up instead of left-right; overlays tuck in so nothing overflows at 360px.
   (after the world-on door rules: same specificity, so order decides) */
@media (max-width: 859px) {
  body.film-on .hero {
    background: linear-gradient(180deg, rgba(10,11,9,.42) 0%, transparent 20%, transparent 42%, rgba(10,11,9,.7) 100%);
  }
  body.world-on .door::before, body.film-on .door::before {
    /* clear at both edges, so stacked doors meet without a seam; densest behind the copy */
    background: linear-gradient(180deg, rgba(8,9,7,0) 0%, rgba(8,9,7,.5) 20%, rgba(8,9,7,.64) 50%, rgba(8,9,7,.6) 78%, rgba(8,9,7,0) 100%);
  }
  /* hub.js does not animate the goal lines on phones: unclip them, or the clip boxes the text-shadow */
  body.world-on .door__goal-line { overflow: visible; }
  /* the tee: copy up in the hills, clear of the ball and the dock */
  body.film-on .film-beat { align-items: flex-start; padding-top: 22vh; padding-bottom: 0; }
  body.film-on .film-beat--right { padding-top: 16vh; }
  body.film-on .film-beat__line { text-shadow: 0 2px 24px rgba(10,11,9,.72), 0 1px 3px rgba(10,11,9,.5); }
  body.film-on .film-beat__kicker { text-shadow: 0 1px 12px rgba(10,11,9,.7); }
  .film-hud { left: 16px; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); padding: 12px 14px 10px; }
  .film-hud dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .film-hud dt { font-size: .54rem; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .film-hud dd { font-size: 1.05rem; white-space: nowrap; }
  /* the hole card lands exactly while the door copy fills a phone screen (and repeats its
     headline): it would sit on the logo/headline, so phones go without it */
  .film-hole { display: none; }
}
@media (max-width: 479px) {
  .film-hud dl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #f2efe8;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: clip; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,13,11,.42) 0%, rgba(12,13,11,.06) 34%, rgba(12,13,11,.18) 62%, rgba(12,13,11,.78) 100%);
}
.hero__content { width: 100%; padding-bottom: clamp(84px, 13vh, 150px); }
.hero__eyebrow { color: rgba(242,239,232,.78); margin-bottom: 22px; }
.hero__title { color: #f6f4f0; }
.hero__title .hero__line { display: block; overflow: clip; }
.hero__title .hero__line > * , .hero__title .hero__line { will-change: transform; }
.hero__title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 3px #f6f4f0;
}
.hero__chips {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(28px, 4vh, 44px);
}
.hero__chips a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 99px;
  border: 1px solid rgba(242,239,232,.28);
  background: rgba(16,17,15,.38); backdrop-filter: blur(10px);
  color: #f2efe8; text-decoration: none; font-weight: 500; font-size: .92rem;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}
.hero__chips a:hover { border-color: var(--c); background: rgba(16,17,15,.6); transform: translateY(-2px); }
.hero__chips .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.hero__cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 1px; height: 52px; overflow: hidden;
}
.hero__cue span {
  display: block; width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, #f2efe8);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%);} 60% { transform: translateY(0);} 100% { transform: translateY(100%);} }
@media (prefers-reduced-motion: reduce) { .hero__cue span { animation: none; } }

/* (nav logo-swap rules live in base.css — shared by hub and Gear Direct) */

/* ---------- group ---------- */
.group { background: var(--paper); }
.group__marks {
  list-style: none; padding: 0; margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, max-content); gap: clamp(18px, 3vw, 44px);
  align-items: center;
}
.group__marks img { height: 40px; width: auto; opacity: .92; }
@media (max-width: 700px) { .group__marks { grid-template-columns: repeat(2, max-content); } }
/* container break: the still pushes past the right edge of the grid */
.group__still { position: relative; }
@media (min-width: 1100px) {
  .group__still { margin-right: calc(-1 * clamp(24px, 6vw, 110px)); }
}
.group__still .frame { aspect-ratio: 4 / 3; }
.group__still figcaption { margin-top: 14px; letter-spacing: .2em; font-size: .66rem; }

/* ---------- doors ---------- */
.door {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #f2efe8; overflow: clip;
}
.door__media { position: absolute; inset: 0; }
.door__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.door::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,11,9,.3) 0%, rgba(10,11,9,.08) 40%, rgba(10,11,9,.82) 100%);
}
.door__flood {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 30%, var(--dc-soft) 74%, color-mix(in srgb, var(--dc) 62%, rgba(10,11,9,.75)) 100%);
  opacity: 0;
}
.door__content { position: relative; z-index: 3; width: 100%; padding-bottom: clamp(64px, 10vh, 120px); }
.door__logo { height: clamp(44px, 6vh, 64px); width: auto; margin-bottom: clamp(18px, 3vh, 32px); }
.door__goal-line { display: inline-block; overflow: clip; }
.door__what { max-width: 54ch; margin-top: 18px; font-size: clamp(1rem, 1.3vw, 1.18rem); color: rgba(242,239,232,.88); }
.door__proof {
  list-style: none; padding: 0; margin-top: 26px;
  display: flex; flex-wrap: wrap; gap: 0;
}
.door__proof li {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(242,239,232,.72);
  padding: 6px 22px; border-left: 1px solid rgba(242,239,232,.3);
}
.door__proof li:first-child { padding-left: 0; border-left: 0; }
.door__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.door__enter { background: var(--dc); color: #fff; }
#door-gd .door__enter { color: #fff; }

/* ---------- numbers ---------- */
.numbers { background: var(--ink); }
.numbers__grid {
  margin-top: clamp(36px, 6vh, 72px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 56px);
}
@media (max-width: 960px) { .numbers__grid { grid-template-columns: repeat(2, 1fr); row-gap: 56px; } }
@media (max-width: 480px) { .numbers__grid { grid-template-columns: 1fr; } }
.numbers__item { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; }
.numbers__big { font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1; color: var(--bone); font-weight: 500; }
.numbers__label { color: var(--muted); font-size: .9rem; }

/* ---------- contact strip (evening: ink ground, flows into the course footer) ---------- */
.contact-strip { background: var(--ink); }
.contact-strip__addr { font-style: normal; font-size: clamp(1.05rem, 1.5vw, 1.25rem); margin: 22px 0 34px; color: var(--muted); }
.contact-strip__routes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 44px); }
@media (max-width: 560px) { .contact-strip__routes { grid-template-columns: 1fr; } }
.contact-strip__routes h3 { margin-bottom: 10px; }
.contact-strip__routes p { margin-bottom: 14px; }
.contact-strip__routes p a { text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.contact-strip__promise { margin-top: 30px; font-size: .88rem; color: var(--faint); max-width: 48ch; }
.contact-strip__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 420px; }
.contact-strip__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- static fallback (mobile & reduced motion): doors stack, flood on ---------- */
@media (max-width: 859px) {
  .door { min-height: 88svh; }
  .door__flood { opacity: 1; }
  .door__content { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .door__flood { opacity: 1; }
}

/* Lenis owns smooth scrolling on the hub (desktop pointer); native smooth-scroll must step aside */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- the walkthrough (Danie's tour of 35 Linksfield Road) ----------
   The one section that escapes the text column: a wide cinema frame on ink. */
.tour { background: var(--ink); padding-bottom: clamp(70px, 12vh, 140px); }
.tour__head { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 5vh, 56px); }
.tour__head .muted { max-width: 44ch; }
.tour__stage { width: min(1480px, calc(100% - 2 * clamp(16px, 3vw, 48px))); margin-inline: auto; }
.tour__frame { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(14px, 1.6vw, 24px); overflow: hidden; background: #0b0c0a;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(242, 239, 232, .08); }
.tour__frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour__play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; gap: 16px;
  padding: clamp(18px, 3vw, 40px); border: 0; cursor: pointer; color: #f6f4f0; text-align: left;
  background: linear-gradient(180deg, rgba(10, 11, 9, 0) 45%, rgba(10, 11, 9, .7) 100%); }
.tour__play[hidden] { display: none; }
.tour__playicon { width: clamp(58px, 6vw, 78px); height: clamp(58px, 6vw, 78px); border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #f6f4f0; color: #141512; padding-left: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: transform .4s cubic-bezier(.2, .9, .25, 1.12); }
.tour__play:hover .tour__playicon, .tour__play:focus-visible .tour__playicon { transform: scale(1.08); }
.tour__play:focus-visible { outline: 2px solid #f6f4f0; outline-offset: -6px; }
.tour__playlabel { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 2.4rem); line-height: 1; padding-bottom: 6px; }
.tour__playlabel .data { font-family: var(--font-mono); font-size: .45em; opacity: .8; margin-left: 10px; letter-spacing: .06em; vertical-align: middle; }
@media (max-width: 860px) {
  .tour__head { grid-template-columns: 1fr; }
  .tour__stage { width: 100%; }
  .tour__frame { border-radius: 0; }
}

/* PHONES, film running (2026-11-28): no frosted glass over the film. backdrop-filter
   re-blurs everything behind it on every frame the canvas repaints, which on iPhones
   is a large share of each scroll frame. Same look, solid tint instead of blur. */
@media (max-width: 859px) {
  body.film-on .nav--solid { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12,13,11,.88); }
  body.film-on .film-hud, body.film-on .film-hole { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10,11,9,.8); }
  body.world-on .group .split-75 { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(14,15,13,.86); }
  body.world-on .btn--ghost { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10,11,9,.58); }
  body.film-on .hero__chips a { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(16,17,15,.62); }
}
