/* ==========================================================================
   BRIGADE: Kent's Personal Training Clubs. The website, to Tom's brief
   ("Brigade Website Rebuild", Oct 2026):

   - Simple, slick, easy to use, premium (Intent91, Barry's, Three State).
   - Alternating black and white blocks, always starting with black.
     #000 and #FFF only; light grey #D3D3D3 just for quieter text on black.
   - A split logo: the BRIGADE wordmark or the crosshair, never together.
   - Bebas Neue for headings. Barlow Condensed stands in for Bebas Neue Pro
     (Adobe Fonts) for sub-headings and text: swap --text for the Adobe kit
     once Brigade's is available.
   - Buttons the opposite colour of their block; on hover they invert, with
     a border (Foundry Fit's shape: 5px corners, uppercase, tracked).
   - Photos and video in colour.
   - The sticky banner after Barry's: clear over the first black block,
     white with black type once you scroll.
   ========================================================================== */

@font-face { font-family: "Bebas Neue"; src: url(/fonts/BebasNeue-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/BarlowCondensed-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/BarlowCondensed-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/BarlowCondensed-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --black: #000;
  --white: #fff;
  --grey: #d3d3d3;          /* quieter text on black (Tom's light grey) */
  --grey-ink: #5c5c5c;      /* quieter text on white */
  --line-dark: #262626;
  --line-light: #e3e3e3;
  --head: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --text: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1280px;
  --top: 76px;
  --r: 5px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); }
body { margin: 0; background: var(--black); color: var(--white); font: 400 1.18rem/1.5 var(--text); overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: .92; letter-spacing: .01em; margin: 0 0 .35em; text-transform: uppercase; }
h1 { font-size: clamp(3.4rem, 9vw, 7.4rem); }
h2 { font-size: clamp(2.7rem, 6vw, 4.9rem); }
h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1; }
.lede { font: 500 clamp(1.25rem, 2vw, 1.55rem)/1.35 var(--text); max-width: 34ch; }
.kicker { font: 600 .9rem/1 var(--text); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 1.1rem; display: inline-flex; gap: .6em; align-items: center; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--white); color: var(--black); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- blocks */
.blk { background: var(--black); color: var(--white); }
.wht { background: var(--white); color: var(--black); }
.sec { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.blk .muted { color: var(--grey); }
.wht .muted { color: var(--grey-ink); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.head-row > div { max-width: 760px; }
.head-row p { margin: 0; }

/* ---------------------------------------------------------------- buttons */
/* The opposite colour of the block; hover inverts it, with a border. */
.btn {
  --bg: var(--white); --fg: var(--black);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 .98rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  padding: 16px 26px 15px; border-radius: var(--r); border: 2px solid var(--bg); background: var(--bg); color: var(--fg);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover, .btn:focus-visible { background: var(--fg); color: var(--bg); border-color: var(--bg); }
.wht .btn { --bg: var(--black); --fg: var(--white); }
/* the quieter one: an outline in the block's text colour, filling on hover */
.btn--line { background: transparent; color: var(--bg); }
.btn--line:hover, .btn--line:focus-visible { background: var(--bg); color: var(--fg); }
.btn--big { padding: 20px 34px 19px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.arrow { width: 1.05em; height: 1.05em; flex: none; }

/* ---------------------------------------------------------------- the sticky banner */
.top { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--top); color: var(--white); background: transparent; transition: background .3s, color .3s, box-shadow .3s; }
.top.is-solid { background: var(--white); color: var(--black); box-shadow: 0 1px 0 var(--line-light); }
.top__row { height: 100%; display: flex; align-items: center; gap: 28px; }
.top__logo { display: block; flex: none; }
.top__logo img { height: 26px; width: auto; }
.top__logo .on-light { display: none; }
.top.is-solid .top__logo .on-dark { display: none; }
.top.is-solid .top__logo .on-light { display: block; }
.top__nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.top__nav > a, .top__drop > button { font: 600 1rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: inherit; background: none; border: 0; padding: 12px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.top__nav > a:hover, .top__drop > button:hover, .top__nav > a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.top__cta { margin-left: auto; display: flex; gap: 10px; }
.top .btn { padding: 12px 18px 11px; font-size: .9rem; --bg: var(--white); --fg: var(--black); }
.top.is-solid .btn { --bg: var(--black); --fg: var(--white); }
.top__drop { position: relative; }
.top__drop svg { width: 12px; height: 12px; transition: transform .2s; }
.top__drop[data-open] svg { transform: rotate(180deg); }
.top__menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; padding: 8px; background: var(--white); color: var(--black); border-radius: var(--r); box-shadow: 0 18px 40px rgba(0,0,0,.25), 0 0 0 1px var(--line-light); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.top__drop[data-open] .top__menu { opacity: 1; visibility: visible; transform: none; }
.top__menu a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; text-decoration: none; font: 600 1rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; border-radius: 3px; }
.top__menu a:hover { background: var(--black); color: var(--white); }
.new { font: 600 .68rem/1 var(--text); letter-spacing: .14em; padding: 5px 7px 4px; border-radius: 3px; background: var(--black); color: var(--white); text-transform: uppercase; }
.top__menu a:hover .new, .blk .new, .menu .new { background: var(--white); color: var(--black); }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger i:nth-child(1) { top: 15px; } .burger i:nth-child(2) { top: 21px; } .burger i:nth-child(3) { top: 27px; }

/* the phone menu: fills the screen */
.menu { position: fixed; inset: 0; z-index: 99; background: var(--black); color: var(--white); padding: calc(var(--top) + 24px) var(--gutter) 28px; display: flex; flex-direction: column; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu nav { display: grid; gap: 4px; }
.menu nav > a, .menu summary { font: 400 clamp(2.6rem, 11vw, 3.4rem)/1.05 var(--head); text-transform: uppercase; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line-dark); list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; transition: transform .2s; }
.menu details[open] summary svg { transform: rotate(180deg); }
.menu details div { display: grid; padding: 6px 0 12px; }
.menu details a { font: 600 1.25rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 12px 0; display: flex; gap: 10px; align-items: center; }
.menu .btn { margin-top: auto; width: 100%; padding: 22px; font-size: 1.15rem; }
body.menu-open .top { background: var(--black); color: var(--white); box-shadow: none; }
body.menu-open .top .top__logo .on-dark { display: block; } body.menu-open .top .top__logo .on-light { display: none; }
body.menu-open .top .btn { --bg: var(--white); --fg: var(--black); }
body.menu-open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger i:nth-child(2) { opacity: 0; }
body.menu-open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.menu-open, body.modal-open { overflow: hidden; }

/* ---------------------------------------------------------------- the opening block */
.hero { padding: calc(var(--top) + clamp(40px, 6vw, 80px)) 0 0; min-height: min(100svh, 980px); display: flex; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; width: 100%; padding-bottom: clamp(56px, 7vw, 96px); }
.hero h1 { margin-bottom: .3em; }
.hero .lede { color: var(--grey); max-width: 30ch; }
.hero__media { position: relative; align-self: stretch; min-height: 420px; border-radius: var(--r); overflow: hidden; }
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__tag { position: absolute; left: 16px; bottom: 16px; font: 600 .82rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; background: var(--black); color: var(--white); padding: 9px 12px 8px; border-radius: 3px; }
.hero__note { margin-top: 18px; font: 500 1rem/1.4 var(--text); color: var(--grey); display: flex; align-items: center; gap: 10px; }

/* Google reviews line, under a location's heading */
.rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.rating .stars { letter-spacing: .12em; font-size: 1.15rem; }
.rating b { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; }
.rating a { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; text-underline-offset: 4px; }
.rating q { flex-basis: 100%; color: var(--grey); font-style: italic; font-size: 1.05rem; max-width: 52ch; }
.rating q::before, .rating q::after { content: none; }

/* ---------------------------------------------------------------- three pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid currentColor; }
.pillar { padding: 30px clamp(18px, 2.4vw, 34px) 0 0; }
.pillar + .pillar { padding-left: clamp(18px, 2.4vw, 34px); border-left: 1px solid var(--line-light); }
.blk .pillar + .pillar { border-left-color: var(--line-dark); }
.pillar small { display: block; font: 600 .9rem/1 var(--text); letter-spacing: .2em; margin-bottom: 18px; }
.pillar h3 { margin-bottom: .45em; }
.pillar p { margin: 0; }
.wide-photo { margin-top: clamp(44px, 6vw, 80px); border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 7; }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- three steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); counter-reset: s; }
.steps li { counter-increment: s; border: 1px solid var(--line-dark); border-radius: var(--r); padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 22px; min-height: 230px; }
.wht .steps li { border-color: var(--line-light); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 4.4rem/.8 var(--head); }
.steps p { margin: auto 0 0; font: 500 1.4rem/1.25 var(--text); }
.take { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-dark); }
.wht .take { border-top-color: var(--line-light); }
.take h3 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; }

/* ---------------------------------------------------------------- split: text beside a photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split__photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.split__photo img { width: 100%; height: 100%; object-fit: cover; }
.split p { max-width: 52ch; }

/* ---------------------------------------------------------------- testimonials: portrait films */
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23vw, 290px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; }
.reel::-webkit-scrollbar { height: 6px; } .reel::-webkit-scrollbar-thumb { background: currentColor; border-radius: 3px; }
.film { scroll-snap-align: start; position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--black); color: var(--white); border-radius: var(--r); overflow: hidden; aspect-ratio: 9 / 16; cursor: pointer; text-align: left; }
.film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.film:hover img { transform: scale(1.04); }
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.85)); }
.film__play { position: absolute; z-index: 1; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--black); display: grid; place-items: center; }
.film__play svg { width: 16px; height: 16px; margin-left: 3px; }
.film__cap { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; }
.film__cap b { display: block; font: 400 1.9rem/.95 var(--head); text-transform: uppercase; }
.film__cap span { display: block; margin-top: 6px; font: 500 1rem/1.25 var(--text); color: var(--grey); }
.reel-nav { display: flex; gap: 8px; }
.reel-nav button { width: 52px; height: 52px; border-radius: var(--r); border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.reel-nav button:hover { background: currentColor; }
.wht .reel-nav button:hover svg { color: var(--white); } .blk .reel-nav button:hover svg { color: var(--black); }
.reel-nav svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- the three clubs */
.clubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.club { display: block; text-decoration: none; color: inherit; }
.club__photo { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: #111; }
.club__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.club:hover .club__photo img { transform: scale(1.05); }
.club__soon { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; background: #0d0d0d; border: 1px solid var(--line-dark); border-radius: var(--r); text-align: center; }
.club__soon img { width: 84px; height: 84px; }
.club__soon span { font: 600 .9rem/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.club__photo .new { position: absolute; top: 14px; left: 14px; }
.club__body { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 18px 2px 0; }
.club__body h3 { margin: 0; font-size: clamp(2rem, 3vw, 2.6rem); }
.club__body small { display: block; font: 600 .9rem/1 var(--text); letter-spacing: .16em; color: var(--grey); margin-top: 6px; }
.club__go { width: 46px; height: 46px; flex: none; border-radius: var(--r); border: 2px solid currentColor; display: grid; place-items: center; transition: background .2s, color .2s; }
.club:hover .club__go { background: var(--white); color: var(--black); border-color: var(--white); }
.club__go svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- a club's inside: address, map, photos */
.inside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.facts { margin: 26px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
.facts dt { font: 600 .88rem/1.5 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.facts dd { margin: 0; }
.facts a { text-underline-offset: 4px; }
.map { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: #111; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; }
.build-note { margin-top: clamp(40px, 5vw, 64px); border: 1px dashed var(--line-dark); border-radius: var(--r); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.build-note img { width: 72px; height: 72px; }
.build-note p { margin: 0; color: var(--grey); }

/* ---------------------------------------------------------------- the team */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 2vw, 22px); }
.team--4 { grid-template-columns: repeat(4, 1fr); }
.person { margin: 0; }
.person__photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: #f1f1f1; }
.blk .person__photo { background: #111; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.person__photo--none { display: grid; place-items: center; background: var(--black) !important; color: var(--white); }
.person__photo--none span { display: grid; place-items: center; gap: 14px; text-align: center; }
.person__photo--none img { width: 56px; height: 56px; object-fit: contain; }
.person__photo--none b { font: 400 2.2rem/1 var(--head); letter-spacing: .04em; }
.person figcaption { padding-top: 14px; }
.person small { display: block; font: 600 .85rem/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; }
.person b { display: block; font: 400 1.75rem/1 var(--head); margin-top: 6px; text-transform: uppercase; }
.team-group + .team-group { margin-top: clamp(48px, 6vw, 80px); }
.team-group h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
.wht .team-group h3 { border-bottom-color: var(--line-light); }

/* ---------------------------------------------------------------- story */
.story { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.story figure { margin: 0; }
.story img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.story figcaption { padding-top: 12px; font: 500 1.02rem/1.35 var(--text); }
.story figcaption b { display: block; font: 400 1.5rem/1 var(--head); margin-bottom: 4px; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font: 600 .82rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: 500 1.1rem/1.3 var(--text); color: inherit; background: transparent;
  border: 1.5px solid currentColor; border-radius: var(--r); padding: 14px 14px 13px; appearance: none; -webkit-appearance: none;
}
.blk .field input, .blk .field select, .blk .field textarea { border-color: #4a4a4a; }
.blk .field input:focus, .blk .field select:focus, .blk .field textarea:focus { border-color: var(--white); outline: none; }
.wht .field input:focus, .wht .field select:focus, .wht .field textarea:focus { outline: 2px solid var(--black); outline-offset: 1px; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field select option { color: #000; }
.field textarea { min-height: 120px; resize: vertical; }
.form .legal { grid-column: 1 / -1; margin: 2px 0 0; font-size: .95rem; line-height: 1.4; }
.form .err { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid currentColor; font-weight: 600; }
.form .hp { position: absolute; left: -9999px; }
.done { text-align: left; }
.done h3 { font-size: clamp(2.2rem, 5vw, 3rem); }
.panel { border: 1px solid var(--line-dark); border-radius: var(--r); padding: clamp(24px, 3.4vw, 40px); background: #0b0b0b; }
.wht .panel { border-color: var(--line-light); background: var(--white); }
.panel h3 { margin-bottom: .3em; }

/* ---------------------------------------------------------------- the enquiry form (a pop-up) and other dialogs */
.dlg { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.72); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.dlg.is-open { opacity: 1; visibility: visible; }
.dlg__box { position: relative; width: 100%; max-width: 620px; max-height: calc(100svh - 32px); overflow-y: auto; border-radius: var(--r); padding: clamp(28px, 4vw, 44px); transform: translateY(12px); transition: transform .25s var(--ease); }
.dlg.is-open .dlg__box { transform: none; }
.dlg__x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; }
.dlg__x svg { width: 22px; height: 22px; }
.dlg__box h2 { font-size: clamp(2.6rem, 6vw, 3.6rem); margin-right: 40px; }
.dlg__box > p { margin-bottom: 24px; }
.dlg--guide .dlg__box { max-width: 860px; display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; }
.dlg--guide .dlg__box > img { border-radius: var(--r); width: 100%; }
.dlg--film .dlg__box { max-width: none; width: auto; padding: 0; background: none; overflow: visible; }
.dlg--film video { max-height: calc(100svh - 80px); max-width: calc(100vw - 32px); border-radius: var(--r); background: #000; }
.dlg--film .dlg__x { top: -52px; right: 0; color: var(--white); }

/* ---------------------------------------------------------------- WhatsApp */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--black); color: var(--white); border: 2px solid var(--white); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s; }
.wa:hover { transform: scale(1.06); }
.wa svg { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- footer */
.foot { padding: clamp(64px, 8vw, 100px) 0 28px; }
.foot__grid { display: grid; grid-template-columns: 1.1fr .8fr .8fr 1.4fr; gap: 40px; }
.foot__brand img { width: 64px; height: 64px; }
.foot__brand p { margin-top: 18px; max-width: 26ch; color: var(--grey-ink); }
.foot h4 { font: 600 .9rem/1 var(--text); letter-spacing: .2em; margin-bottom: 18px; }
.foot nav { display: grid; gap: 10px; }
.foot nav a { text-decoration: none; font: 500 1.15rem/1.2 var(--text); display: inline-flex; align-items: center; gap: 8px; width: fit-content; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__dl h3 { font-size: 2.1rem; margin-bottom: .2em; }
.foot__dl p { color: var(--grey-ink); margin-bottom: 16px; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; font: 500 1.1rem/1.3 var(--text); border: 1.5px solid var(--black); border-radius: var(--r); padding: 14px; background: var(--white); color: var(--black); }
.inline .btn { padding-left: 20px; padding-right: 20px; }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--line-light); font-size: .98rem; color: var(--grey-ink); }
.foot__bar nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__bar nav a { font-size: .98rem; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; transition: background .2s, color .2s; }
.socials a:hover { background: var(--black); color: var(--white); }
.socials svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- simple pages (legal, thank you) */
.page-head { padding: calc(var(--top) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 7vw, 90px); }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 1.4em; }
.prose h3 { font-size: 1.7rem; margin: 1.6em 0 .4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

/* ---------------------------------------------------------------- careers */
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.perks li { padding: 14px 0; border-bottom: 1px solid var(--line-light); font: 500 1.25rem/1.3 var(--text); display: flex; gap: 14px; }
.perks li::before { content: ""; width: 10px; height: 10px; margin-top: .45em; flex: none; background: currentColor; border-radius: 50%; }
.blk .perks, .blk .perks li { border-color: var(--line-dark); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }

/* ---------------------------------------------------------------- reveal on scroll */
.js [data-rise] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-rise].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1100px) {
  .top__nav { display: none; }
  .burger { display: block; }
  .top__row { gap: 12px; }
  .top__cta { gap: 8px; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .team--4 { grid-template-columns: repeat(3, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero__grid, .split, .inside { grid-template-columns: 1fr; }
  .hero__media { min-height: 0; aspect-ratio: 4 / 5; }
  .split--flip > :first-child { order: 0; }
  .pillars { grid-template-columns: 1fr; border-top: 0; }
  .pillar, .pillar + .pillar { padding: 26px 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .blk .pillar, .blk .pillar + .pillar { border-top-color: var(--line-dark); }
  .pillar:first-child { border-top: 2px solid currentColor; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; flex-direction: row; align-items: center; gap: 22px; padding: 22px; }
  .steps li::before { font-size: 3.2rem; }
  .steps p { margin: 0; }
  .take { grid-template-columns: 1fr; }
  .clubs { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .wide-photo { aspect-ratio: 4 / 3; }
  .dlg--guide .dlg__box { grid-template-columns: 1fr; }
  .dlg--guide .dlg__box > img { max-width: 200px; }
  .cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --top: 64px; }
  body { font-size: 1.12rem; }
  .top__logo img { height: 20px; }
  .top .btn { padding: 10px 10px 9px; font-size: .78rem; letter-spacing: .08em; }
  .burger { width: 40px; margin-right: -8px; }
  .team, .team--4 { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .story { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .reel { grid-auto-columns: 72%; }
  .build-note { grid-template-columns: 1fr; }
  .wa { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
@media (max-width: 370px) {
  .top .btn--line { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}

/* intros under section headings read wider than the hero's */
.head-row .lede { max-width: 58ch; }
/* a headshot still to come: an edge so it reads on black too */
.blk .person__photo--none { background: #0d0d0d !important; box-shadow: inset 0 0 0 1px var(--line-dark); }

/* a club's own film, above its gallery */
.club-film { position: relative; display: block; width: 100%; margin-top: clamp(32px, 4vw, 56px); padding: 0; border: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: #111; cursor: pointer; }
.club-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.club-film:hover img { transform: scale(1.03); }
.club-film .film__play { top: 50%; right: auto; left: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; }
.club-film .film__play svg { width: 22px; height: 22px; }

/* the guide's email form stacks on a phone, so the button never runs off the edge */
.inline { flex-wrap: wrap; }
.inline input { flex: 1 1 180px; }
.inline .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .dlg .inline .btn { flex: 1 1 100%; } }

/* ---------------------------------------------------------------- Tom's snagging, November 2026 */
/* How we help: a coaching photo beside the heading, the big group photo below the pillars */
.help-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.help-head .lede { max-width: 58ch; margin: 0; }
.help-head__photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.help-head__photo img { width: 100%; height: 100%; object-fit: cover; }

/* About: Tom's founding story, at the top of Our story */
.founded { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line-dark); }
.founded__photo { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.founded__photo img { width: 100%; height: 100%; object-fit: cover; }
.founded h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 0 0 .4em; }
.founded p { color: var(--grey); font-size: 1.15rem; line-height: 1.5; max-width: 56ch; }
.blk .story figcaption { color: var(--grey); }
.blk .story figcaption b { color: var(--white); }

/* Tenterden: the main landscape beside a build photo */
.gallery--two { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); }
.gallery--two figure:first-child { grid-column: auto; grid-row: auto; aspect-ratio: auto; }
.gallery__note { margin: 16px 0 0; }

@media (max-width: 860px) {
  .help-head, .founded { grid-template-columns: 1fr; }
  .help-head__photo { aspect-ratio: 16 / 10; }
  .gallery--two { grid-template-columns: 1fr; }
  .gallery--two figure:first-child { aspect-ratio: 16 / 10; }

  /* the opening photo sits behind the words on a phone, Barry's style */
  .hero--photo { position: relative; min-height: 100svh; align-items: flex-end; padding-top: calc(var(--top) + 28svh); overflow: hidden; }
  .hero--photo .hero__grid > div:first-child { position: relative; z-index: 1; }
  .hero--photo .hero__media { position: absolute; inset: 0; z-index: 0; aspect-ratio: auto; border-radius: 0; }
  .hero--photo .hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .1) 26%, rgba(0, 0, 0, .55) 52%, rgba(0, 0, 0, .92) 78%, #000 100%); }
  .hero--photo .hero__tag { display: none; }
  .hero--photo .lede { color: #e8e8e8; }

  /* Tenterden: the waitlist form before the Google reviews */
  .hero--wl .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero--wl .hero__grid > div:first-child { display: contents; }
  .hero--wl #waitlist { order: 1; margin-top: 28px; }
  .hero--wl .rating { order: 2; margin-top: 36px; }
}
/* a white last section above the white footer gets a line between them */
main > .sec.wht:last-child { border-bottom: 1px solid var(--line-light); }
.wht .team-group h3 { border-bottom-color: var(--line-light); }

/* phones: the opening photo sits at the top of the screen, so the faces show above the words (Tom, 13 Nov) */
@media (max-width: 860px) {
  .hero--photo { padding-top: calc(var(--top) + 46svh); }
  .hero--photo .hero__media { bottom: auto; height: calc(var(--top) + 62svh); }
  .hero--photo .hero__media img { object-position: 50% 0; }
  .hero--photo .hero__media::after { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0, rgba(0, 0, 0, 0) 90px, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .75) 82%, #000 100%); }
}
.hero h1.h1--long { font-size: clamp(2.8rem, 5.2vw, 5rem); }
