/* GymStation Rabat: bespoke premium dark theme. Hand-written, no framework. */

/* ============ TOKENS ============ */
:root {
  --void: #050505;
  --charcoal: #131313;
  --charcoal-2: #1a1a1a;
  --charcoal-3: #222222;
  --gold: #f5c400;
  --gold-deep: #e0b400;
  --white: #f5f5f2;
  --gray: #9b9b97;
  --gray-dim: #6c6c68;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Century-Gothic-style geometric stack (Passage-fitness register).
     Jost is the closest free Google geometric to Century Gothic; falls back
     to the native Century Gothic / Avenir when present on the device. */
  --font-display: "Century Gothic", "Jost", "Avenir Next", "Avenir", "Montserrat", sans-serif;
  --font-body: "Century Gothic", "Jost", "Avenir Next", "Avenir", "Montserrat", system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
h1, .hero h1, .page-hero h1, .cta-strip h2 { font-weight: 600; }

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

.gold { color: var(--gold); }

/* ============ HEADER / NAV ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(5, 5, 5, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  height: 66px;
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { width: 46px; height: 46px; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-name b { color: var(--gold); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--gold);
  color: var(--void);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav-cta:hover {
  background: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(245, 196, 0, 0.22);
}
.nav-cta:active { transform: translateY(0); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  margin: 0 auto;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.62) 42%, rgba(5,5,5,0.35) 100%),
    linear-gradient(0deg, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.1) 45%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 76px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--gold);
}
.hero h1 {
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  font-weight: 400;
  max-width: 15ch;
}
/* Hero tagline keeps the original Anton display face (more representative of the brand) */
.hero-title { font-family: "Anton", "Arial Narrow", sans-serif; }
.hero h1 .line2 { color: var(--gold); display: block; }
.hero-sub {
  margin-top: 24px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--white);
  max-width: 30ch;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- Opening animation (soft slide-open, Passage / Canva style) ---- */
/* The whole page eases in once on first load; the hero title reveals
   word by word. Only active when JS adds html.js (no JS = visible at once). */
.js body { opacity: 0; }
.js body.page-in {
  opacity: 1;
  transition: opacity 0.9s var(--ease);
}
/* hero title: each word wrapped in .w by JS, masked then rises in sequence */
.hero-title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* small vertical padding + matching negative margin so tall Anton glyphs
     are not clipped by the mask while the word slides up */
  padding-top: 0.12em;
  margin-top: -0.12em;
}
.hero-title .w > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.85s var(--ease);
  will-change: transform;
}
.js .page-in .hero-title .w > span,
body:not(.js) .hero-title .w > span { transform: translateY(0); }

/* eyebrow / subtext / actions: gentle fade-up, staggered after the title */
.js .reveal-up { opacity: 0; transform: translateY(16px); }
.js .page-in .reveal-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .page-in .hero-eyebrow.reveal-up { transition-delay: 0.15s; }
.js .page-in .hero-sub.reveal-up { transition-delay: 0.55s; }
.js .page-in .hero-actions.reveal-up { transition-delay: 0.7s; }
/* fade the explore cue in on the button (opacity only, so the centering
   translateX(-50%) is never overridden); the bob lives on the .ring (below). */
.js .hero-explore { opacity: 0; }
.js .page-in .hero-explore { animation: fade-soft 0.9s var(--ease) 1s both; }
@keyframes fade-soft { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .js body { opacity: 1; }
  .hero-title .w > span { transform: none; }
  .js .reveal-up { opacity: 1; transform: none; }
}

/* Hero video crossfade: poster shows instantly, video fades in only when playable */
.hero-media video {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.hero-media video.is-playing { opacity: 1; }
.hero-fallback { transition: opacity 0.9s var(--ease); }

/* ---- Explorer scroll cue (Passage-style) ---- */
.hero-explore {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 8px 14px;
}
.hero-explore .lbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.hero-explore .ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero-explore .ring svg { width: 18px; height: 18px; color: var(--white); }
.hero-explore:hover .lbl { color: var(--gold); opacity: 1; }
.hero-explore:hover .ring { border-color: var(--gold); background: rgba(245,196,0,0.08); }
.hero-explore:hover .ring svg { color: var(--gold); }
.hero-explore .ring { animation: explore-bob 2.4s ease-in-out infinite; }
@keyframes explore-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ---- Thunderbolt motif (per-section, very subtle electric gold lines) ---- */
.has-bolt { position: relative; overflow: hidden; }
.bolt-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bolt-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bolt-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  opacity: 0.08;
  filter: drop-shadow(0 0 6px rgba(245,196,0,0.5));
  stroke-linejoin: round;
  stroke-linecap: round;
}
.bolt-1 { animation: bolt-flicker 7s ease-in-out infinite; }
.bolt-2 { animation: bolt-flicker 9s ease-in-out infinite 1.5s; }
.bolt-3 { animation: bolt-flicker 8s ease-in-out infinite 3s; }
@keyframes bolt-flicker {
  0%, 100% { opacity: 0.05; }
  45%      { opacity: 0.12; }
  48%      { opacity: 0.04; }
  52%      { opacity: 0.14; }
  60%      { opacity: 0.07; }
}
/* content sits above the bolt layer */
.has-bolt > .wrap,
.has-bolt > .act-rows,
.has-bolt > .darkband-row { position: relative; z-index: 1; }

/* ---- Electric gold lines (background motif) ---- */
.elx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.elx span {
  position: absolute;
  display: block;
  width: 1px;
  height: 38%;
  background: linear-gradient(180deg, transparent, var(--gold) 45%, var(--gold) 55%, transparent);
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(245,196,0,0.55));
  animation: elx-travel 6.5s linear infinite;
}
.elx span:nth-child(1) { left: 12%; animation-delay: 0s;   animation-duration: 7s; }
.elx span:nth-child(2) { left: 34%; animation-delay: 1.6s; animation-duration: 8.5s; }
.elx span:nth-child(3) { left: 58%; animation-delay: 3.1s; animation-duration: 6.2s; }
.elx span:nth-child(4) { left: 78%; animation-delay: 0.8s; animation-duration: 9s; }
.elx span:nth-child(5) { left: 90%; animation-delay: 4.2s; animation-duration: 7.8s; }
.elx.diag span { transform: rotate(18deg); transform-origin: top; }
@keyframes elx-travel {
  0%   { top: -40%; opacity: 0; }
  8%   { opacity: 0.7; }
  92%  { opacity: 0.7; }
  100% { top: 120%; opacity: 0; }
}
/* keep section content above the motif */
.has-elx > .wrap { position: relative; z-index: 1; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary {
  background: var(--gold);
  color: var(--void);
}
.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(245, 196, 0, 0.26);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============ SECTIONS ============ */
section { position: relative; }
.section-pad { padding: 110px 0; }
.section-pad-sm { padding: 78px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: 0.045em;
  max-width: 20ch;
}
.section-lead {
  margin-top: 22px;
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 56ch;
}

/* ============ INTRO (split) ============ */
.intro { background: var(--void); }
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.intro-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}
.intro-figure img { width: 100%; height: 100%; object-fit: cover; }
.intro-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,5,5,0.55) 100%);
}
.intro-badge {
  position: absolute;
  left: 22px; bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(5,5,5,0.72);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.intro-badge .num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold);
  line-height: 1;
}
.intro-badge .lbl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.intro-body p + p { margin-top: 18px; }
.intro-body p { color: var(--gray); font-size: 1.05rem; }
.intro-body .lead-line {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
}

/* ============ ACTIVITES (Passage-style stacked rectangles) ============ */
.activites-stack { background: var(--void); padding-bottom: 96px; }
.stack-head { margin-bottom: 48px; }
.act-rows {
  border-top: 1px solid var(--line);
}
.act-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px max(28px, calc((100vw - var(--maxw)) / 2 + 28px));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  min-height: 104px;
}
/* hover-reveal background photo (hidden until hover) */
.act-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--img);
  background-size: cover;
  background-position: center 38%;
  opacity: 0;
  transform: scale(1.08);
  filter: grayscale(0.3) brightness(0.5);
  transition: opacity 0.6s var(--ease), transform 1.1s var(--ease);
}
.act-row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5,5,5,0.85) 0%, rgba(5,5,5,0.55) 55%, rgba(5,5,5,0.2) 100%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.act-row:hover::before,
.act-row:focus-visible::before { opacity: 1; transform: scale(1); }
.act-row:hover::after,
.act-row:focus-visible::after { opacity: 1; }
.act-row .ar-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  flex-shrink: 0;
  width: 34px;
}
.act-row .ar-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  transition: transform 0.5s var(--ease), color 0.4s var(--ease);
  flex: 1;
}
.act-row .ar-meta {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--gray);
  text-align: right;
  flex-shrink: 0;
  max-width: 38%;
  opacity: 0.85;
  transition: color 0.4s var(--ease), transform 0.5s var(--ease);
}
.act-row:hover .ar-title,
.act-row:focus-visible .ar-title { transform: translateX(10px); }
.act-row:hover .ar-meta,
.act-row:focus-visible .ar-meta { color: var(--white); }

/* minimalist text link button (no yellow pill) */
.link-min {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-min:hover { color: var(--gold); border-color: var(--gold); }
.link-min .lm-arrow { transition: transform 0.3s var(--ease); }
.link-min:hover .lm-arrow { transform: translateX(5px); }

/* ============ ACTIVITY EXPLORER (cards + image-slide detail, brick texture) ============ */
.act-explorer {
  position: relative;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.92), rgba(5,5,5,0.86)),
    url("/assets/photos/brick-texture.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.explorer {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 40px;
  align-items: stretch;
}
.explorer-cards { display: flex; flex-direction: column; gap: 10px; }
.ex-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 22px 22px;
  background: rgba(10,10,10,0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--gray);
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.ex-card .ex-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--gray-dim);
  transition: color 0.35s var(--ease);
}
.ex-card .ex-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  flex: 1;
}
.ex-card .ex-go {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.ex-card:hover { border-color: var(--line-strong); background: rgba(20,20,20,0.7); }
.ex-card:hover .ex-go { opacity: 0.7; transform: none; }
.ex-card.is-active {
  background: rgba(245,196,0,0.08);
  border-color: var(--gold);
  color: var(--white);
}
.ex-card.is-active .ex-num { color: var(--gold); }
.ex-card.is-active .ex-go { opacity: 1; transform: none; }
.ex-card.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}

.explorer-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(8,8,8,0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ex-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  min-height: 420px;
}
.ex-text {
  padding: 46px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ex-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.ex-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.ex-body { color: var(--gray); font-size: 1rem; line-height: 1.65; margin-bottom: 30px; }
.ex-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ex-figure { position: relative; overflow: hidden; }
.ex-figure .ex-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) brightness(0.92) contrast(1.05);
}
/* image-slide + text-fade on activity switch (JS toggles .is-switching) */
.ex-text, .ex-figure .ex-img {
  transition: opacity 0.32s var(--ease), transform 0.42s var(--ease);
}
.explorer-panel.is-switching .ex-text { opacity: 0; transform: translateY(8px); }
.explorer-panel.is-switching .ex-figure .ex-img { opacity: 0; transform: translateX(40px); }

/* ============ ACTIVITES (legacy tile grid, kept for any remaining use) ============ */
.activites { background: var(--charcoal); }
.act-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
/* Image tile: photo dimmed by default, brightens + zooms on hover, copy slides up */
.act-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--charcoal-2);
  isolation: isolate;
}
.act-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) brightness(0.42) contrast(1.05);
  transform: scale(1.02);
  transition: transform 0.9s var(--ease), filter 0.7s var(--ease);
  z-index: 0;
}
.act-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,5,5,0.15) 0%, rgba(5,5,5,0.35) 45%, rgba(5,5,5,0.9) 100%);
  transition: background 0.6s var(--ease);
}
.act-tile:hover img,
.act-tile:focus-visible img {
  filter: grayscale(0) brightness(0.72) contrast(1.08);
  transform: scale(1.08);
}
.act-tile .act-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px 26px 28px;
}
.act-tile .num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}
.act-tile h3 {
  font-size: 1.9rem;
  line-height: 0.95;
}
.act-tile h3::after {
  content: "";
  display: block;
  width: 28px; height: 3px;
  background: var(--gold);
  margin-top: 14px;
  transform: scaleX(1);
  transform-origin: left;
  transition: width 0.45s var(--ease);
}
.act-tile:hover h3::after,
.act-tile:focus-visible h3::after { width: 70px; }
.act-tile .act-desc {
  color: var(--gray);
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 34ch;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: max-height 0.5s var(--ease), opacity 0.45s var(--ease), transform 0.5s var(--ease);
}
.act-tile:hover .act-desc,
.act-tile:focus-visible .act-desc {
  max-height: 120px;
  opacity: 1;
  transform: none;
}
.act-tile .act-arrow {
  position: absolute;
  top: 22px; right: 22px;
  z-index: 2;
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.act-tile:hover .act-arrow,
.act-tile:focus-visible .act-arrow {
  opacity: 1;
  transform: none;
  background: var(--gold);
  border-color: var(--gold);
  color: var(--void);
}
.act-tile .act-arrow svg { width: 16px; height: 16px; }
/* cursor-proximity glow (set via JS custom props) */
.act-tile .act-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(245,196,0,0.18), transparent 70%);
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.act-tile:hover .act-glow { opacity: 1; }

/* Center logo cell anchoring the 3x2 grid */
.act-logo-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(245,196,0,0.08), transparent 65%),
    var(--void);
  text-align: center;
  padding: 24px;
  overflow: hidden;
}
.act-logo-cell img {
  width: 58%;
  max-width: 150px;
  height: auto;
  filter: drop-shadow(0 0 26px rgba(245,196,0,0.25));
}
.act-logo-cell .tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
}
.act-logo-cell .tagline b { color: var(--gold); font-weight: 400; }

/* ============ PILIERS ============ */
.piliers { background: var(--void); }
.pil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.pil {
  padding: 44px 32px 44px 0;
  border-right: 1px solid var(--line);
}
.pil:last-child { border-right: none; padding-right: 0; }
.pil:not(:first-child) { padding-left: 40px; }
.pil .pnum {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.14em;
  margin-bottom: 22px;
}
.pil .icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 22px; }
.pil h3 { font-size: 2.1rem; margin-bottom: 14px; }
.pil p { color: var(--gray); font-size: 0.98rem; }

/* ============ DARK BANNER (Lamborghini-style: pure black merged with the hero) ============ */
.darkband {
  position: relative;
  /* pure black that reads as a continuation of the dark hero video above */
  background: #000;
  background-image: linear-gradient(180deg, #000 0%, #000 60%, #050505 100%);
  padding: 0;
  /* deep shadow at the very top so the seam with the hero disappears */
  box-shadow: inset 0 90px 70px -70px rgba(0,0,0,1);
}
.darkband-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
}
.db-cell {
  position: relative;
  padding: 54px 30px 54px;
  text-align: center;
  cursor: default;
}
/* thin vertical dividers between cells (Lamborghini bottom-row look) */
.db-cell + .db-cell::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 46px;
  background: var(--line-strong);
  transition: height 0.5s var(--ease), background 0.4s var(--ease);
}
.db-cell:hover + .db-cell::before,
.db-cell:hover::before { background: rgba(245,196,0,0.4); }
.db-title {
  display: block;
  font-family: var(--font-display); /* Century Gothic / Jost, slim */
  font-weight: 300;
  font-size: 1.04rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.4s var(--ease), letter-spacing 0.5s var(--ease), transform 0.5s var(--ease);
}
/* small gold underline that grows on hover */
.db-title::after {
  content: "";
  display: block;
  width: 0; height: 2px;
  margin: 14px auto 0;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}
.db-cell:hover .db-title { color: var(--gold); letter-spacing: 0.16em; transform: translateY(-2px); }
.db-cell:hover .db-title::after { width: 36px; }
/* hover dropdown: the descriptive line expands smoothly below the title */
.db-drop {
  display: block;
  max-width: 30ch;
  margin: 0 auto;
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  max-height: 0;
  opacity: 0;
  transform: translateY(6px);
  overflow: hidden;
  transition: max-height 0.55s var(--ease), opacity 0.45s var(--ease), transform 0.55s var(--ease), margin-top 0.55s var(--ease);
}
.db-cell:hover .db-drop,
.db-cell:focus-within .db-drop {
  max-height: 160px;
  opacity: 1;
  transform: none;
  margin-top: 18px;
}

/* ============ PROGRAMME / PLANNING ============ */
.programme { background: var(--charcoal); }
/* highlight banner shown when arriving from an activity */
.prog-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px 22px;
  background: rgba(245,196,0,0.07);
  border: 1px solid rgba(245,196,0,0.3);
  border-radius: var(--radius-lg);
}
.prog-highlight svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.prog-highlight p { color: var(--white); font-size: 0.95rem; line-height: 1.6; }
.prog-highlight b { color: var(--gold); font-weight: 600; }
.prog-highlight .ph-free-note { display: none; color: var(--gray); }
.prog-highlight.ph-free .ph-free-note { display: inline; }
/* highlighted cells: clear but premium, gold ring + lift */
table.planning td.cell-highlight {
  box-shadow: inset 0 0 0 2px var(--gold), inset 3px 0 0 var(--gold);
  background: rgba(245,196,0,0.22) !important;
  color: var(--white) !important;
  position: relative;
}
table.planning td.cell-highlight::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 50%, rgba(245,196,0,0.18), transparent 75%);
  pointer-events: none;
}
.planning-wrap {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--charcoal-2);
}
.planning-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--charcoal-3);
}
.planning-scroll::-webkit-scrollbar { height: 10px; }
.planning-scroll::-webkit-scrollbar-track { background: var(--charcoal-3); border-radius: 10px; }
.planning-scroll::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
  border: 2px solid var(--charcoal-3);
}
.planning-scroll::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }
table.planning {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
table.planning th,
table.planning td {
  padding: 16px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 0.86rem;
}
table.planning th {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--charcoal-3);
  text-transform: uppercase;
}
table.planning td:first-child,
table.planning th:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--gold);
  background: rgba(245,196,0,0.04);
  position: sticky;
  left: 0;
}
table.planning td:last-child,
table.planning th:last-child { border-right: none; }
table.planning tr:last-child td { border-bottom: none; }
table.planning td { color: var(--gray); }
table.planning td.has { color: var(--white); font-weight: 600; }
/* Color-coded cells by discipline type */
table.planning td.t-cross  { background: rgba(245,196,0,0.14);  color: var(--white); box-shadow: inset 3px 0 0 var(--gold); }
table.planning td.t-kick   { background: rgba(255,107,53,0.16); color: var(--white); box-shadow: inset 3px 0 0 #ff6b35; }
table.planning td.t-cardio { background: rgba(77,208,225,0.14); color: var(--white); box-shadow: inset 3px 0 0 #4dd0e1; }
table.planning td.t-yoga   { background: rgba(168,134,255,0.16); color: var(--white); box-shadow: inset 3px 0 0 #a886ff; }
table.planning td.t-renfo  { background: rgba(255,255,255,0.07); color: var(--white); box-shadow: inset 3px 0 0 var(--gray); }
table.planning td.t-open   { background: rgba(255,255,255,0.03); color: var(--gray); box-shadow: inset 3px 0 0 rgba(255,255,255,0.3); }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--gray);
}
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* ============ ABONNEMENTS ============ */
.abos { background: var(--void); }
.abo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.abo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--charcoal);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.abo-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.abo-card.featured {
  background: var(--charcoal-2);
  border-color: var(--gold);
  box-shadow: 0 24px 70px rgba(245,196,0,0.12);
}
.abo-tag {
  position: absolute;
  top: -13px; left: 32px;
  padding: 6px 14px;
  background: var(--gold);
  color: var(--void);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
}
.abo-card h3 { font-size: 1.7rem; }
.abo-price {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.abo-price .amount {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
}
.abo-price .unit {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}
.abo-card .price-note {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--gray);
  min-height: 42px;
}
.abo-features {
  list-style: none;
  margin: 26px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.abo-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--white);
}
.abo-features li svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--gold);
  margin-top: 2px;
}
.abo-card .btn { margin-top: auto; width: 100%; justify-content: center; }

/* ============ GALLERY / AMBIANCE ============ */
.ambiance { background: var(--charcoal); }
.amb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
  margin-top: 50px;
}
.amb-cell {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.amb-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  filter: grayscale(0.15) contrast(1.05);
}
.amb-cell:hover img { transform: scale(1.06); }
.amb-cell.span-2 { grid-column: span 2; }
.amb-cell.row-2 { grid-row: span 2; }
.amb-cell .cap {
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  z-index: 2;
  text-shadow: 0 2px 18px rgba(0,0,0,0.7);
}
.amb-cell::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,5,5,0.6) 100%);
}

/* ============ INSTAGRAM (animated horizontal marquee) ============ */
.insta { background: var(--void); overflow: hidden; }
.insta-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.insta-head .ig-handle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: lowercase;
}
.insta-head .ig-handle svg { width: 20px; height: 20px; }
.insta-marquee {
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.insta-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: ig-scroll 38s linear infinite;
  will-change: transform;
}
.insta-marquee:hover .insta-track { animation-play-state: paused; }
@keyframes ig-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.insta-tile {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
/* Black & white by default, full color on hover */
.insta-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transform: scale(1.01);
  transition: transform 0.7s var(--ease), filter 0.6s var(--ease);
}
.insta-tile:hover img {
  transform: scale(1.07);
  filter: grayscale(0) contrast(1) brightness(1);
}
/* Centered Instagram logo overlay on hover */
.insta-tile .ig-ic {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,5,5,0.46);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.insta-tile .ig-ic img {
  width: 46px; height: 46px;
  filter: none;
  transform: scale(0.82);
  transition: transform 0.35s var(--ease);
  pointer-events: none;
}
.insta-tile:hover .ig-ic { opacity: 1; }
.insta-tile:hover .ig-ic img { transform: scale(1); }

/* ============ CONTACT ============ */
.contact { background: var(--charcoal); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: start;
}
.contact-info .row {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .row:first-of-type { border-top: 1px solid var(--line); }
.contact-info .ic {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--gold);
  margin-top: 3px;
}
.contact-info .row .k {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: 4px;
}
.contact-info .row .val { font-size: 1rem; font-weight: 600; color: var(--white); }
.contact-info .row .val.small { font-size: 0.9rem; font-weight: 500; color: var(--gray); }
.hours-list { list-style: none; font-size: 0.92rem; color: var(--gray); }
.hours-list li { display: flex; justify-content: space-between; padding: 4px 0; max-width: 280px; }
.hours-list li b { color: var(--white); font-weight: 600; }

/* Contact hours: roomy two-column rows, clearly separated days and times */
.contact-info .hours-list { font-size: 0.98rem; max-width: 420px; }
.contact-info .hours-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 28px;
  max-width: none;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .hours-list li:last-child { border-bottom: none; }
.contact-info .hours-list li span { color: var(--gray); letter-spacing: 0.02em; }
.contact-info .hours-list li b {
  color: var(--white);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.contact-socials { display: flex; gap: 12px; margin-top: 26px; }
.contact-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  transition: all 0.25s var(--ease);
}
.contact-socials a:hover { background: var(--gold); color: var(--void); border-color: var(--gold); transform: translateY(-2px); }
.map-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-frame iframe {
  display: block;
  /* Dark-mode the Google embed to match the site art direction.
     invert+hue-rotate flips the white map to dark while keeping
     the gold pin/label readable. */
  filter: invert(0.92) hue-rotate(180deg) contrast(0.88) brightness(0.92) saturate(0.85);
}
/* subtle gold edge tint over the map */
.map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -60px 80px -60px rgba(245,196,0,0.18);
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 16px 30px;
  background: var(--gold);
  color: var(--void);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-cta:hover { background: var(--white); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245,196,0,0.25); }
.whatsapp-cta svg { width: 22px; height: 22px; }

/* ============ INSCRIPTION FORM ============ */
.inscription { background: var(--void); }
.form-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.form-side .step {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.form-side .step:first-child { border-top: 1px solid var(--line); }
.form-side .step .n {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 42px;
}
.form-side .step h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.form-side .step p { font-size: 0.92rem; color: var(--gray); }

form.signup {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--void);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--gray-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,196,0,0.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.signup .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { margin-top: 16px; font-size: 0.82rem; color: var(--gray-dim); text-align: center; }

/* Send-via choice (WhatsApp / e-mail) */
.send-choice {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.send-choice .send-label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2px;
}
.btn-wa {
  background: #25d366;
  color: #052b14;
}
.btn-wa:hover { background: #2be673; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37,211,102,0.28); }
.btn-mail {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}
.btn-mail:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.send-choice .btn svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .send-choice { grid-template-columns: 1fr; }
}

/* ============ CTA STRIP ============ */
.cta-strip {
  position: relative;
  text-align: center;
  background: var(--charcoal);
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 50% 0%, rgba(245,196,0,0.12), transparent 60%);
}
.cta-strip .inner { position: relative; z-index: 1; }
.cta-strip h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.cta-strip p { margin: 20px auto 34px; color: var(--gray); max-width: 48ch; font-size: 1.05rem; }

/* ============ PAGE HERO (interior) ============ */
.page-hero {
  position: relative;
  padding: 150px 0 70px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 60%; height: 180%;
  background: radial-gradient(circle, rgba(245,196,0,0.08), transparent 65%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.1rem, 7.5vw, 6rem); overflow-wrap: break-word; word-break: break-word; }
.page-hero .crumb {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.page-hero p { margin-top: 18px; color: var(--gray); max-width: 56ch; font-size: 1.05rem; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--void);
  border-top: 1px solid var(--line);
  padding: 70px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--gray); max-width: 36ch; font-size: 0.95rem; }

/* Footer wordmark (real GymStation wordmark logo) */
.footer-wordmark {
  display: block;
  width: clamp(190px, 26vw, 280px);
  height: auto;
  margin-bottom: 20px;
}

/* T / E contact lines (bottom-left): plain, no box, no bold */
.footer-te { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-te li { display: flex; align-items: baseline; gap: 12px; }
.footer-te .te-k {
  flex-shrink: 0;
  width: 18px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gold);
}
.footer-te a, .footer-te span.te-v { color: var(--gray); font-size: 0.95rem; font-weight: 400; transition: color 0.2s var(--ease); }
.footer-te a:hover { color: var(--gold); }

/* Footer social icons (bottom-right) */
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  transition: all 0.25s var(--ease);
}
.footer-socials a svg { width: 20px; height: 20px; }
.footer-socials a:hover { background: var(--gold); color: var(--void); border-color: var(--gold); transform: translateY(-2px); }
.footer-contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--gray); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 26px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--gray-dim); }
.footer-credit { font-size: 0.82rem; color: var(--gray-dim); }
.footer-credit a { color: var(--gray); transition: color 0.2s var(--ease); }
.footer-credit a:hover { color: var(--gold); }

/* ============ SCROLL REVEAL ============ */
/* Progressive enhancement: hidden only when JS is active (html.js).
   Without JS, content is fully visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-figure { aspect-ratio: 16 / 11; max-height: 460px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .abo-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .abo-card.featured { order: -1; }
  .insta-tile { width: 240px; }

  /* Hero on tablet: keep the desktop look, but give the centered content
     enough bottom clearance so the title + CTAs never reach the explore cue. */
  .hero-content { padding-bottom: 120px; }
  .hero h1 { font-size: clamp(3.2rem, 9vw, 6rem); max-width: 18ch; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open {
    height: auto;
    background: var(--void);
    backdrop-filter: none;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 60px rgba(0,0,0,0.7);
    transition: none;
  }
  .site-header.nav-open .nav-inner {
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 18px;
  }
  .site-header.nav-open nav {
    order: 3;
    width: 100%;
    margin-top: 10px;
    border-top: 1px solid var(--line);
  }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }
  .site-header.nav-open .nav-links a { padding: 16px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .site-header.nav-open .nav-links a::after { display: none; }
  .site-header.nav-open .nav-cta {
    display: inline-flex;
    order: 4;
    width: 100%;
    justify-content: center;
    margin-top: 14px;
  }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* hero CTAs stack on all mobile widths so nothing clips */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* On mobile the CTAs stack and grow downward. Anchor the hero content to
     the upper area and reserve a bottom band for the explore cue so the two
     never overlap, instead of vertically centring everything. */
  .hero { align-items: flex-start; }
  .hero-content { padding-top: 124px; padding-bottom: 116px; }
  .act-grid { grid-template-columns: repeat(2, 1fr); }
  .act-logo-cell { grid-column: span 2; aspect-ratio: 16 / 7; }
  .act-logo-cell img { width: auto; max-height: 86px; }
  .act-row { gap: 16px; padding: 24px 18px; min-height: 88px; }
  .act-row .ar-meta { display: none; }
  .explorer { grid-template-columns: 1fr; gap: 22px; }
  .ex-card { padding: 18px 18px; }
  .ex-card .ex-go { display: none; }
  .ex-detail { grid-template-columns: 1fr; min-height: 0; }
  .ex-figure { order: -1; aspect-ratio: 16 / 10; }
  .ex-text { padding: 32px 26px; }
  .act-explorer { background-attachment: scroll; }
  .explorer-panel.is-switching .ex-figure .ex-img { transform: translateY(24px); }
  /* on touch screens the photo is always faintly visible (no hover) */
  .act-row::before { opacity: 0.32; transform: scale(1); }
  .act-row::after { opacity: 0.55; }
  .pil-grid { grid-template-columns: 1fr; }
  .pil { border-right: none; border-bottom: 1px solid var(--line); padding: 34px 0 !important; }
  .pil:last-child { border-bottom: none; }
  /* banner: stack the 5 cells; descriptions always shown (no hover on touch) */
  .darkband-row { grid-template-columns: 1fr; max-width: 520px; padding: 18px 0; }
  .db-cell { padding: 26px 24px; text-align: left; }
  .db-cell + .db-cell::before {
    left: 24px; right: 24px; top: 0; bottom: auto;
    transform: none;
    width: auto; height: 1px;
  }
  .db-title::after { margin-left: 0; }
  .db-cell:hover .db-title { transform: none; letter-spacing: 0.12em; }
  .db-drop { max-width: none; margin: 14px 0 0; max-height: 200px; opacity: 1; transform: none; }
  .db-title { color: var(--white); }
  .amb-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .amb-cell.span-2 { grid-column: span 2; }
  .insta-tiles { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .section-pad { padding: 78px 0; }
}

@media (max-width: 860px) {
  .map-frame iframe { height: 360px; }
  /* programme info cards: force single column on mobile (overrides inline grid) */
  .planning-cards { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .wrap, .nav-inner { padding: 0 18px; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn { padding: 15px 22px; font-size: 13px; }
  .act-grid { grid-template-columns: 1fr; }
  .act-logo-cell { grid-column: span 1; aspect-ratio: 16 / 9; }
  .insta-tile { width: 200px; }
  .amb-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .amb-cell.span-2 { grid-column: span 1; }
  .db-cell { padding: 24px 18px; }

  /* activity stacked rows */
  .act-row { padding: 22px 18px; min-height: 80px; gap: 14px; }
  .act-row .ar-title { font-size: 1.4rem; }
  .act-row .ar-num { width: 26px; }

  /* activity explorer cards: drop the inline "Explorer +" so nothing overflows */
  .ex-card { padding: 18px 16px; gap: 12px; }
  .ex-card .ex-name { font-size: 1.1rem; }
  .ex-card .ex-go { display: none; }
  .ex-text { padding: 28px 20px; }
  .ex-actions { gap: 16px; }

  /* programme highlight banner + table */
  .prog-highlight { padding: 14px 16px; gap: 10px; }
  .prog-highlight p { font-size: 0.9rem; }
  table.planning th, table.planning td { padding: 13px 10px; font-size: 0.8rem; }

  /* contact hours: keep day + time on one tidy row */
  .contact-info .hours-list li { gap: 14px; }
  .contact-info .hours-list { font-size: 0.92rem; }

  /* section titles a touch smaller so long words never clip */
  .section-title { font-size: clamp(1.7rem, 7vw, 3.4rem); }
  .cta-strip h2 { font-size: clamp(2rem, 9vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .abo-card:hover, .btn:hover, .nav-cta:hover, .act-tile:hover { transform: none; }
  .elx span { animation: none; opacity: 0; }
  .bolt-1, .bolt-2, .bolt-3 { animation: none; }
  .hero-explore .ring { animation: none; }
  .insta-track { animation: none; }
  .hero-media video { transition: none; }
}
