/* Ripped Gym Basildon
   VOICE: hard, confident, no fluff. Body Factory's simplicity, pushed further: bigger type, darker, more editorial.
   COLOUR: black and white, greys for hierarchy. Red #ed1c24 (from the logo) only for the small kicker dash and the closed status dot.
   TYPE: Bebas Neue display at very large sizes, Lato for reading. Small uppercase kickers for structure.
   LAYOUT: full-height hero with a live "open now" bar, bento grid of facility tiles, split headings, black footer. */

:root {
  --black: #0a0a0a;
  --pure: #000;
  --ink: #111;
  --char: #161616;
  --char-2: #1f1f1f;
  --line: #2a2a2a;
  --grey: #8a8a8a;
  --grey-light: #c9c9c9;
  --paper: #f5f4f2;
  --white: #fff;
  --red: #ed1c24;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Lato", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --max: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--body); color: var(--white); background: var(--black); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .92; margin: 0 0 .35em; text-wrap: balance; }
h1 { font-size: clamp(64px, 11vw, 168px); }
h2 { font-size: clamp(44px, 6.2vw, 96px); }
h3 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1; }
.accent { color: var(--grey); }
.light .accent, .white .accent, .cta .accent { color: #6f6f6f; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--white); color: var(--black); padding: 8px 12px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; }
.band { padding: clamp(72px, 10vw, 144px) var(--gutter); }
.band.tight { padding-block: clamp(48px, 6vw, 80px); }
.band.light { background: var(--paper); color: var(--ink); }
.band.white { background: var(--white); color: var(--ink); }
.band.char { background: var(--char); }
.band.page-top { padding-top: clamp(140px, 16vw, 200px); }

.kicker { display: flex; align-items: center; gap: 12px; font: 700 13px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin: 0 0 22px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.lede { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; max-width: 60ch; }
.muted { color: var(--grey); }
.light .muted, .white .muted { color: #5c5c5c; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
/* Heading column stays in view while a long right column scrolls past (desktop only) */
@media (min-width: 901px) { .split-sticky > :first-child { position: sticky; top: 120px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; justify-content: center; min-height: 52px; padding: 14px 28px; font: 400 22px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn::after { content: "\2192"; font-family: var(--body); font-size: 18px; transition: transform .2s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn-primary { background: var(--white); color: var(--pure); border-color: var(--white); }
.btn-primary:hover { background: var(--grey-light); border-color: var(--grey-light); }
.light .btn-primary, .white .btn-primary, .cta .btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.light .btn-primary:hover, .white .btn-primary:hover, .cta .btn-primary:hover { background: #3a3a3a; border-color: #3a3a3a; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.light .btn-ghost, .white .btn-ghost { border-color: rgba(0,0,0,.3); color: var(--ink); }
.light .btn-ghost:hover, .white .btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn.plain::after { content: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link-arrow { font: 400 22px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--white); text-decoration: none; }
.light .link-arrow, .white .link-arrow { color: var(--ink); }

/* Header: transparent over the hero, solid once you scroll */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--white); transition: background .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.site-header.scrolled, .site-header.open { background: rgba(10,10,10,.94); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 28px; max-width: 1440px; margin: 0 auto; padding: 16px var(--gutter); }
.logo { flex: none; }
.logo img { height: 50px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a { position: relative; display: block; padding: 10px 14px; font: 400 22px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; white-space: nowrap; opacity: .85; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .btn { min-height: 44px; padding: 10px 20px; font-size: 20px; }
.header-cta .btn::after { content: none; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); width: 48px; height: 48px; padding: 0; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 26px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ""; transition: transform .2s var(--ease); }
.menu-toggle span::before { position: absolute; top: -8px; }
.menu-toggle span::after { position: absolute; top: 8px; }
.site-header.open .menu-toggle span { background: transparent; }
.site-header.open .menu-toggle span::before { transform: translateY(8px) rotate(45deg); }
.site-header.open .menu-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-toggle { display: block; order: 3; }
  .site-header, .site-header.scrolled, .site-header.open { backdrop-filter: none; }
  .site-header.scrolled, .site-header.open { background: var(--black); }
  .nav { position: fixed; inset: 82px 0 0 0; height: calc(100dvh - 82px); background: var(--black); padding: 8px var(--gutter) calc(40px + env(safe-area-inset-bottom)); display: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .site-header.open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { font-size: 44px; padding: 16px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav a::after { display: none; }
  .nav a { opacity: .6; }
  .nav a[aria-current="page"] { color: var(--white); opacity: 1; }
  .header-cta { margin-left: auto; }
  .header-cta .btn-ghost { display: none; }
}

/* Hero */
.hero { position: relative; min-height: min(100svh, 940px); display: grid; grid-template-rows: 1fr auto; color: var(--white); background: var(--pure); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; } /* below the ::before overlay */
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.08); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.25) 100%), linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,0) 45%); }
.hero-inner { align-self: end; max-width: var(--max); width: 100%; margin: 0 auto; padding: 160px var(--gutter) 48px; }
.hero h1 { margin: 0 0 .1em; }
.hero h1 .accent { display: block; }
.hero .sub { max-width: 52ch; font-size: clamp(18px, 1.5vw, 21px); color: #e2e2e2; }
.hero-bar { border-top: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.55); backdrop-filter: blur(8px); }
.hero-bar ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-bar li { padding: 20px 20px 20px 0; font-size: 15px; color: var(--grey-light); border-right: 1px solid rgba(255,255,255,.1); padding-left: 20px; }
.hero-bar li:first-child { padding-left: 0; }
.hero-bar li:last-child { border-right: 0; }
.hero-bar b { display: block; font: 400 26px/1.05 var(--display); letter-spacing: .04em; color: var(--white); text-transform: uppercase; }
.hero-bar a { display: block; color: inherit; text-decoration: none; }
.hero-bar .hb-sub { text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 4px; transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
.hero-bar a:hover .hb-sub, .hero-bar a:focus-visible .hb-sub { color: var(--white); text-decoration-color: currentColor; }
.intro-copy { margin-top: 32px; }
.intro-copy .lede { margin: 0 0 18px; }
.intro-copy .lede:last-child { margin-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grey); flex: none; }
.status.is-open::before { background: #2bd46b; box-shadow: 0 0 0 4px rgba(43,212,107,.18); }
.status.is-closed::before { background: var(--red); }
/* Hero bar: dot after the words, so "Open until 8pm" lines up with the other items */
.hero-bar .status { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 12px; }
.hero-bar .status::before { margin-top: -.12em; }
@media (max-width: 860px) {
  .hero-bar ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-bar li { padding: 16px 12px 16px 0; }
  .hero-bar li:nth-child(2) { border-right: 0; }
  .hero-bar li:nth-child(odd) { padding-left: 0; }
  .hero-bar li:nth-child(even) { padding-left: 16px; }
  .hero-bar li:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero-bar b { font-size: 21px; }
}
/* Home hero video: poster image underneath, video fades in once it is actually playing */
.hero-video .hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.hero-video.video-ready .hero-media video { opacity: 1; }
.hero-video.video-ready.video-dip .hero-media video { opacity: 0; transition-duration: .5s; }
.hero-video::before { background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 60%, rgba(0,0,0,.1) 100%), linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.15) 100%); }
.hero .kicker { color: var(--white); }
.hero-video .hero-bar { background: rgba(0,0,0,.72); backdrop-filter: none; }
.hero-video .btns { margin-top: 24px; }
.hero-video .hero-inner, .video-toggle { grid-area: 1 / 1; }
.hero-video .hero-bar { grid-row: 2; }
.video-toggle { align-self: end; justify-self: end; margin: 0 var(--gutter) 48px 0; position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(0,0,0,.4); color: var(--white); cursor: pointer; opacity: .75; transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.video-toggle:hover, .video-toggle:focus-visible { opacity: 1; border-color: var(--white); }
.video-toggle[hidden] { display: none; }
.video-toggle svg { width: 18px; height: 18px; }
.video-toggle .i-play, .video-paused .video-toggle .i-pause { display: none; }
.video-paused .video-toggle .i-play { display: block; }

/* Page banners: a flat 50% black layer over the whole photo, plus extra shade where the text sits,
   so white text stays readable even over sky or bright lights. Checked with tools/check_hero_contrast.py */
.page-hero::before { background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 70%), linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%), rgba(0,0,0,.5); }
.hero-inner .kicker, .hero h1, .hero .sub { text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 2px 18px rgba(0,0,0,.55); }
.page-hero { min-height: min(72svh, 680px); }
.page-hero h1 { font-size: clamp(56px, 9vw, 136px); }

/* Statement */
.statement { font: 400 clamp(36px, 4.6vw, 68px)/1 var(--display); text-transform: uppercase; margin: 0; }
.statement .dim { color: #555; }
.light .statement .dim, .white .statement .dim { color: #a9a9a9; }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px); }
.numbers div { padding: 28px 24px 0 0; }
.numbers b { display: block; font: 400 clamp(52px, 6vw, 92px)/.9 var(--display); }
.numbers span { color: var(--grey); font-size: 15px; }
@media (max-width: 760px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } }

/* Bento tiles */
/* Equipment brand logos: white marks in a thin-ruled grid */
.brands { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.brand-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-grid li { display: flex; align-items: center; justify-content: center; min-height: 136px; padding: 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand-grid img { max-width: 84%; height: auto; opacity: .72; transition: opacity .3s var(--ease); }
.brand-grid li:hover img { opacity: 1; }
@media (max-width: 600px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brand-grid li { min-height: 96px; padding: 18px 14px; } .brand-grid img { max-height: 40px; width: auto; } }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 24vw, 330px); gap: 12px; }
.tile { position: relative; overflow: hidden; display: flex; align-items: flex-end; color: var(--white); text-decoration: none; background: var(--char); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); filter: grayscale(.25); }
.tile img.focus-bottom { object-position: 50% 100%; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.15) 60%); }
.tile:hover img { transform: scale(1.05); }
.tile-body { padding: clamp(20px, 2.4vw, 32px); width: 100%; }
.tile h3 { margin: 0 0 6px; font-size: clamp(30px, 3vw, 46px); }
.tile p { margin: 0; color: #dcdcdc; font-size: 16px; max-width: 42ch; }
.tile .arrow { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); font-size: 0; color: var(--white); transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
/* Drawn arrow rather than the text character, which sits off-centre in some phone fonts */
.tile .arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
a.tile:hover .arrow { background: var(--white); border-color: var(--white); color: var(--pure); }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-8 { grid-column: span 8; } .span-6 { grid-column: span 6; } .span-12 { grid-column: span 12; }
.tall { grid-row: span 2; }
@media (max-width: 860px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 280px; }
  .bento > * { grid-column: auto; grid-row: auto; }
}

/* Feature rows (facilities page) */
.rows { display: grid; gap: clamp(56px, 8vw, 120px); }
.row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.row:nth-child(even) .row-img { order: 2; }
.row-img { aspect-ratio: 4 / 3; overflow: hidden; }
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row-body ul { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.row-body li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--grey-light); }
.row-body ul + p { margin-top: 24px; }
.light .row-body ul, .light .row-body li { border-color: #ddd; color: #444; }
@media (max-width: 860px) { .row, .row:nth-child(even) { grid-template-columns: minmax(0, 1fr); } .row:nth-child(even) .row-img { order: 0; } }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px 28px; background: var(--char); border: 1px solid var(--line); }
.price-card.highlight { background: var(--white); color: var(--ink); border-color: var(--white); }
.price-card .tag { position: absolute; top: 24px; right: 24px; background: var(--white); color: var(--pure); font: 700 11px/1 var(--body); letter-spacing: .14em; padding: 7px 10px; text-transform: uppercase; }
.price-card h3 { font-size: 30px; margin: 0 0 28px; max-width: 10ch; }
.price { font: 400 80px/.85 var(--display); white-space: nowrap; }
.price-card.highlight .tag, .light .price-card .tag { background: var(--ink); color: var(--white); }
.light .price-card.highlight .tag { background: var(--white); color: var(--ink); }
.price small { font: 400 15px/1 var(--body); color: var(--grey); margin-left: 6px; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 0; }
.price-card li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--grey-light); }
.price-card.highlight li { border-color: #e4e4e4; color: #444; }
.price-card .fee { margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--grey); }
.light .price-card { background: var(--white); border-color: #e2e2e2; color: var(--ink); }
.light .price-card li { border-color: #ececec; color: #444; }
.light .price-card.highlight { background: var(--ink); color: var(--white); border-color: var(--ink); }
.light .price-card.highlight li { border-color: #2c2c2c; color: var(--grey-light); }

.price-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.price-table th, .price-table td { padding: 18px 0; border-bottom: 1px solid var(--line); text-align: left; }
.price-table td.num { text-align: right; font: 400 34px/1 var(--display); white-space: nowrap; }
.price-table td.num small { display: block; margin-top: 6px; font: 400 14px/1 var(--body); color: var(--grey); }
.price-table th { font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.light .price-table th, .light .price-table td { border-color: #dedede; }

/* Reviews */
.rating { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rating b { font: 400 96px/.8 var(--display); }
.stars { color: var(--white); font-size: 22px; letter-spacing: 4px; display: block; }
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.review { margin: 0; padding: 32px; background: var(--char); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.review p { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; margin: 0; }
.review cite { font: 700 13px/1 var(--body); letter-spacing: .16em; font-style: normal; text-transform: uppercase; color: var(--grey); }
@media (max-width: 760px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ig-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--char); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.ig-tile::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .3s var(--ease); }
.ig-tile:hover img { transform: scale(1.06); }
.ig-tile:hover::after { background: rgba(0,0,0,.3); }
.ig-feed { min-height: 0; }
.ig-live .ig-grid { display: none; }
@media (max-width: 860px) { .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Brand banner */
.brand-banner { padding: clamp(72px, 11vw, 160px) var(--gutter); text-align: center; overflow: hidden; background: var(--pure); }
.brand-banner p { margin: 0; font: 400 clamp(56px, 12vw, 200px)/.85 var(--display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); }
.brand-banner .bw { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .03em .02em; margin: -.08em -.03em -.02em; }
.brand-banner .bw-in { display: inline-block; }
.brand-banner .last { position: relative; }
.brand-banner .last::after { content: attr(data-text); position: absolute; inset: 0; color: var(--grey); -webkit-text-stroke: 0; clip-path: inset(0 0 0 0); }
/* Animation (site.js adds .js-anim, then .in when the banner scrolls into view).
   Words rise out of their masks one by one; the outline words land solid white and
   settle back to outline, then the last word fills grey from left to right. */
.brand-banner.js-anim .bw-in { transform: translateY(112%); }
.brand-banner.js-anim .last::after { clip-path: inset(0 100% 0 0); }
.brand-banner.in .bw-in { transform: none; transition: transform 1.1s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * .16s); }
.brand-banner.in .bw-in:not(.last) { animation: bw-punch 1.6s cubic-bezier(.3, 0, .2, 1) calc(var(--i) * .16s + .15s) both; }
.brand-banner.in .last::after { clip-path: inset(0 0 0 0); transition: clip-path 1.2s cubic-bezier(.65, 0, .35, 1) calc(var(--i) * .16s + .55s); }
@keyframes bw-punch { 0%, 30% { color: #fff; } 100% { color: rgba(255,255,255,0); } }

/* Club rules page */
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.5; }
.rule-n { font: 400 30px/1 var(--display); color: var(--grey); letter-spacing: .02em; }
.rules-note { margin: 28px 0 0; font-size: 15px; color: var(--grey); }
.rules-signoff { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 600px) { .rules li { grid-template-columns: 2.4em minmax(0, 1fr); gap: 12px; font-size: 17px; } .rule-n { font-size: 26px; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 56px 24px 0; position: relative; font: 700 19px/1.4 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font: 400 22px/1 var(--body); color: currentColor; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 26px; max-width: 64ch; color: var(--grey-light); }
.faq .answer a { color: var(--white); text-decoration-color: var(--grey); text-underline-offset: 4px; }
.light .faq details { border-color: #dcdcdc; }
.light .faq .answer { color: #444; }
.light .faq .answer a { color: var(--ink); }

/* Visit us */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.hours { width: 100%; border-collapse: collapse; font-size: 18px; }
.hours th, .hours td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; white-space: nowrap; font: 400 26px/1 var(--display); letter-spacing: .03em; }
.hours tr.today th, .hours tr.today td { font-weight: 700; }
.hours tr.today th::after { content: " (today)"; color: var(--grey); font-size: 14px; }
.kicker .status { flex-basis: 100%; margin-top: 12px; color: var(--grey-light); }
.kicker:has(.status) { flex-wrap: wrap; }
.visit address { font: 400 clamp(30px, 3vw, 44px)/1.02 var(--display); text-transform: uppercase; font-style: normal; margin: 0 0 24px; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 8px; }
.contact-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-lines li span { color: var(--grey); }
.contact-lines a { text-decoration: none; font-weight: 700; }
.contact-lines a:hover { color: var(--grey-light); }
.note { font-size: 14px; color: var(--grey); margin-top: 16px; }
@media (max-width: 900px) { .visit { grid-template-columns: minmax(0, 1fr); } }

/* CTA */
.cta { background: var(--white); color: var(--ink); }
.cta .wrap { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin: 0; font-size: clamp(52px, 7vw, 112px); max-width: 12ch; }
.cta p { margin: 12px 0 0; font-size: 19px; max-width: 46ch; }
.cta .btn { background: var(--ink); color: var(--white); }
.cta .btn:hover { background: #3a3a3a; }
.cta .btn.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(0,0,0,.35); }
.cta .btn.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cta .btns { margin-top: 0; }

/* Cards (fight club classes) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
@media (min-width: 1100px) { .cards:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); } } /* five cards in one row, no orphan */
.card { background: var(--char); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: grayscale(.2); transition: transform .6s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 32px; }
.card-body p { color: var(--grey-light); font-size: 16px; }
.card-body .link-arrow { margin-top: auto; font-size: 20px; }
.light .card { background: var(--white); border-color: #e2e2e2; }
.light .card-body p { color: #444; }

/* Prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.1em; font-size: clamp(36px, 4vw, 56px); }
.prose h3 { margin-top: 1.2em; }
.prose img { margin: 1.6em 0; width: 100%; }
.prose a { color: inherit; text-decoration-color: var(--grey); text-underline-offset: 3px; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .5em; }
.post-meta { color: var(--grey); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-grid img:only-child { aspect-ratio: 16 / 9; }
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid img:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
}

/* Awards */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .awards { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* six awards as two even rows */
.award { border: 1px solid var(--line); padding: 28px; background: var(--char); }
.award b { display: block; font: 400 64px/.9 var(--display); color: var(--white); margin-bottom: 12px; }
.award p { margin: 0; color: var(--grey-light); }

/* Footer */
.site-footer { background: var(--pure); color: var(--grey-light); padding: clamp(64px, 8vw, 112px) var(--gutter) 32px; font-size: 16px; border-top: 1px solid var(--line); }
body:has(.cta) .footer-top { display: none; }
body:has(.cta) .footer-grid { border-top: 0; padding-top: 0; }
.footer-top { max-width: var(--max); margin: 0 auto clamp(48px, 6vw, 80px); display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.footer-top p { font: 400 clamp(44px, 6vw, 88px)/.9 var(--display); text-transform: uppercase; color: var(--white); margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; max-width: var(--max); margin: 0 auto; padding-top: 40px; border-top: 1px solid var(--line); }
.site-footer h2 { font: 700 12px/1 var(--body); letter-spacing: .18em; color: var(--grey); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: var(--grey-light); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer a.btn-primary, .site-footer a.btn-primary:hover { color: var(--pure); }
.site-footer address { font-style: normal; color: var(--white); }
.footer-hours { border-collapse: collapse; }
.footer-hours td { padding: 4px 0; }
.footer-hours td:last-child { text-align: right; padding-left: 16px; white-space: nowrap; color: var(--white); }
.footer-logo img { height: 56px; width: auto; margin-bottom: 20px; }
.footer-bottom { max-width: var(--max); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: #6f6f6f; }
.footer-bottom a { color: #8a8a8a; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 60px; }
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 90; }
  .call-bar a { display: flex; align-items: center; justify-content: center; height: 60px; font: 400 22px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: var(--white); background: var(--pure); border-top: 1px solid var(--line); }
  .call-bar a:last-child { background: var(--white); border-color: var(--white); color: var(--pure); }
}

/* Motion. Only active with html.motion, which head.html adds when the device allows motion.
   Uses the individual translate/scale properties and animations (not transitions), so it never
   clashes with hover effects. One easing throughout: a long, soft settle. */
html.motion { scroll-behavior: smooth; }
html.motion .site-header { animation: rv-down .9s cubic-bezier(.16, 1, .3, 1) .1s both; }
html.motion .hero-media img { animation: rv-settle 2.8s cubic-bezier(.16, 1, .3, 1) both; }
html.motion .hero-inner > * { animation: rv-up 1.2s cubic-bezier(.16, 1, .3, 1) both; }
html.motion .hero-inner > :nth-child(1) { animation-delay: .15s; }
html.motion .hero-inner > :nth-child(2) { animation-delay: .27s; }
html.motion .hero-inner > :nth-child(3) { animation-delay: .39s; }
html.motion .hero-inner > :nth-child(4) { animation-delay: .51s; }
html.motion .hero-bar li { animation: rv-fade 1s cubic-bezier(.16, 1, .3, 1) both; }
html.motion .hero-bar li:nth-child(1) { animation-delay: .6s; }
html.motion .hero-bar li:nth-child(2) { animation-delay: .68s; }
html.motion .hero-bar li:nth-child(3) { animation-delay: .76s; }
html.motion .hero-bar li:nth-child(4) { animation-delay: .84s; }
html.motion [data-reveal]:not(.is-in) { opacity: 0; }
html.motion [data-reveal].is-in { animation: rv-up 1.1s cubic-bezier(.16, 1, .3, 1) var(--d, 0s) both; }
html.motion [data-reveal].rv-soft.is-in { animation-name: rv-soft; animation-duration: 1.3s; }
html.motion .tile[data-reveal].is-in > img,
html.motion .row-img[data-reveal].is-in > img { animation: rv-settle 1.8s cubic-bezier(.16, 1, .3, 1) var(--d, 0s) both; }
html.motion .numbers b { font-variant-numeric: tabular-nums; }
html.motion .faq details[open] .answer { animation: rv-up-small .6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rv-up { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes rv-up-small { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes rv-soft { from { opacity: 0; translate: 0 22px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rv-down { from { opacity: 0; translate: 0 -12px; } to { opacity: 1; translate: 0 0; } }
@keyframes rv-settle { from { scale: 1.08; } to { scale: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .brand-banner .bw-in { transform: none !important; animation: none !important; }
  .brand-banner .last::after { clip-path: none !important; }
}
.h3 { font-size: clamp(36px, 4vw, 60px); }
