/* ============================================================
   TITAN FITNESS GYM — DESIGN SYSTEM & STYLES
   ============================================================ */

/* ---- IMPORTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,800;1,900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  /* Colors — Titan Identity: Black / Green / White */
  --black:           #060606;
  --surface-1:       #0F0F0F;   /* base dark — nav, hero supports, footer */
  --surface-2:       #161616;   /* structural cards */
  --surface-3:       #202020;   /* elevated elements */
  /* Selectively brighter surfaces for content-heavy sections */
  --surface-light:   #1C1C1C;   /* class cards, testimonials */
  --surface-lighter: #252525;   /* schedule rows, inner callouts */
  --border:          rgba(255,255,255,0.07);
  --border-md:       rgba(255,255,255,0.13);
  --border-bright:   rgba(255,255,255,0.18);

  --text-primary:    #F4F4F4;
  --text-secondary:  #A0A0A0;   /* bumped up for readability */
  --text-muted:      #909090;

  /* Green accent — original Titan brand color */
  --accent:         #1FA83C;
  --accent-light:   #28CC4A;
  --accent-dark:    #178030;
  --accent-glow:    rgba(31, 168, 60, 0.22);
  --accent-subtle:  rgba(31, 168, 60, 0.10);

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-y: clamp(90px, 11vw, 160px);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.7);
  --glow-accent: 0 0 40px var(--accent-glow);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --t-fast: 0.15s var(--ease);
  --t-med:  0.3s var(--ease);
  --t-slow: 0.5s var(--ease);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background-color: var(--black);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, textarea, select { font-family: var(--font-body); }

/* ---- UTILITY ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-pad { padding: var(--section-y) 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.section-title span { color: var(--accent); }

.section-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin-top: 18px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--r-sm);
  transition: all var(--t-med);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-dark);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(31,168,60,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-md);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 14px 0;
  position: relative;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.btn-ghost:hover::after { transform: scaleX(1); }

.btn-lg { font-size: 16px; padding: 18px 40px; }
.btn-sm { font-size: 12px; padding: 10px 22px; }

/* ---- SCROLL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background var(--t-slow), padding var(--t-med), border-color var(--t-slow);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,6,6,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.nav-logo span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  margin-top: 2px;
}
.nav-logo strong { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-socials a {
  color: var(--text-muted);
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
}
.nav-socials a:hover { color: var(--text-primary); }
.nav-socials svg { width: 16px; height: 16px; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--t-med);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--black);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  transition: color var(--t-fast);
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav-socials {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}
.mobile-nav-socials a { color: var(--text-secondary); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.mobile-nav-socials a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(6,6,6,0.55) 0%,
      rgba(6,6,6,0.65) 40%,
      rgba(6,6,6,0.92) 75%,
      rgba(6,6,6,1) 100%);
  z-index: 0;
}

/* Subtle green sweep at bottom-left — Titan brand color leak */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 500px; height: 400px;
  background: radial-gradient(ellipse at 0% 100%, rgba(31,168,60,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Replace with a real Titan Fitness gym photo for best results */
  background-image: url('https://images.squarespace-cdn.com/content/v1/5fd3aeb4725ac84587d52cdd/ac4a4be2-da5c-4c90-aeef-70a7de01b9bf/B86A6700-Enhanced-NR.jpg');
  background-size: cover;
  background-position: center 25%;
  filter: grayscale(40%) brightness(0.35) contrast(1.15);
}

/* Grain texture overlay — adds grit to the hero */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.07'/%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 170px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.hero-headline .accent { color: var(--accent); }

.hero-rotating-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1;
}
.hero-rotating-text {
  display: inline-block;
}
.hero-rotating-text.rotate-exit {
  animation: heroRotateOut 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero-rotating-text.rotate-enter {
  animation: heroRotateIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes heroRotateOut {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(-110%); opacity: 0; }
}
@keyframes heroRotateIn {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.hero-headline .outline {
  -webkit-text-stroke: 2px rgba(255,255,255,0.2);
  color: transparent;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
}
.hero-stat-val span { color: var(--accent); }

.hero-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.trust-bar-inner {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.trust-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border-right: 1px solid var(--border);
  transition: background var(--t-fast);
}
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: var(--surface-2); }

.trust-icon {
  color: var(--accent);
  flex-shrink: 0;
}
.trust-icon svg { width: 20px; height: 20px; }

.trust-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.trust-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
  line-height: 1.3;
}

/* ============================================================
   WHY TITAN
   ============================================================ */
.why-titan { background: var(--black); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 64px;
}

.why-card {
  background: var(--surface-1);
  padding: clamp(32px, 4vw, 52px);
  transition: background var(--t-med), border-color var(--t-med);
  position: relative;
  border-left: 3px solid transparent;
}
.why-card:hover {
  background: var(--surface-2);
  border-left-color: var(--accent);
}

.why-number {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 900;
  color: var(--surface-3);
  line-height: 1;
  margin-bottom: 20px;
  transition: color var(--t-med);
}
.why-card:hover .why-number { color: var(--accent-glow); }

.why-card-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.why-card-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.why-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-subtle);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
  transition: background var(--t-med);
}
.why-card:hover .why-icon { background: var(--accent); color: #fff; }
.why-icon svg { width: 22px; height: 22px; }

/* ============================================================
   CLASSES SECTION (HOME)
   ============================================================ */
.classes-home { background: var(--black); }

.classes-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.class-card {
  background: var(--surface-light);
  padding: clamp(32px, 3.5vw, 52px);
  position: relative;
  overflow: hidden;
  transition: background var(--t-med);
  cursor: default;
  border-top: 1px solid var(--border-md);
}
.class-card:hover { background: var(--surface-lighter) !important; }
.class-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.class-card:hover { background: var(--surface-2); }
.class-card:hover::before { transform: scaleX(1); }

.class-card-icon {
  font-size: 28px;
  margin-bottom: 20px;
  display: block;
}

.class-card-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.class-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.class-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  color: var(--text-secondary);
}
/* All intensity tags stay within black/green/white palette */
.class-tag.intensity-high { background: rgba(31,168,60,0.14); color: var(--accent-light); }
.class-tag.intensity-med  { background: rgba(255,255,255,0.08); color: #C8C8C8; }
.class-tag.intensity-low  { background: rgba(255,255,255,0.05); color: #909090; }

.class-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ============================================================
   PERSONAL TRAINING
   ============================================================ */
.personal-training {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pt-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.pt-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.pt-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.pt-image:hover img { transform: scale(1.04); filter: grayscale(0%); }

.pt-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pt-benefits {
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pt-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pt-benefit-icon {
  width: 20px;
  height: 20px;
  background: var(--accent-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.pt-benefit-icon svg { width: 11px; height: 11px; color: var(--accent); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--black); }

/* ---- Marquee wrapper ---- */
.testimonials-marquee-outer {
  position: relative;
  margin-top: 56px;
  overflow: hidden;
}

.testimonials-marquee-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 64px;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.testimonials-marquee-track::-webkit-scrollbar { display: none; }
.testimonials-marquee-track.is-dragging { cursor: grabbing; }

/* ---- Arrow buttons ---- */
.marquee-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--surface-light);
  border: 1px solid var(--border-md);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: background var(--t-med), border-color var(--t-med), opacity var(--t-med);
  flex-shrink: 0;
}
.marquee-btn:hover {
  background: var(--surface-lighter);
  border-color: var(--border-bright);
}
.marquee-btn-left  { left: 14px; }
.marquee-btn-right { right: 14px; }

/* ---- Edge fades ---- */
.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 5;
}
.marquee-fade-left  { left: 0;  background: linear-gradient(to right, var(--black) 20%, transparent); }
.marquee-fade-right { right: 0; background: linear-gradient(to left,  var(--black) 20%, transparent); }

/* ---- Cards ---- */
.testimonial-card {
  background: var(--surface-light);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 40px);
  transition: border-color var(--t-med), transform var(--t-med), background var(--t-med);
  position: relative;
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
}
.testimonial-card:hover {
  border-color: var(--border-bright);
  background: var(--surface-lighter);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.testimonial-stars svg {
  width: 14px;
  height: 14px;
  color: #FFA500;
  fill: #FFA500;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-3);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}

.testimonial-name {
  font-weight: 600;
  font-size: 14px;
}
.testimonial-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.06em;
}


.testimonial-source {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.testimonial-source svg { width: 10px; height: 10px; flex-shrink: 0; }

.reviews-cta-wrap {
  text-align: center;
  margin-top: 48px;
}
.reviews-cta-wrap a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border-md);
  padding: 10px 22px;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.reviews-cta-wrap a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   FACILITY / AMENITIES
   ============================================================ */
.facility { background: var(--surface-1); border-top: 1px solid var(--border); }

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.facility-item {
  background: var(--surface-1);
  padding: 32px 24px;
  text-align: center;
  transition: background var(--t-med);
}
.facility-item:hover { background: var(--surface-2); }

.facility-item-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.facility-item-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

/* ============================================================
   HOURS & MAP
   ============================================================ */
.hours-map {
  background: var(--black);
}

.hours-map-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}
.hours-table tr {
  border-bottom: 1px solid var(--border);
}
.hours-table tr:last-child { border-bottom: none; }
.hours-table td {
  padding: 16px 0;
  font-size: 14px;
}
.hours-table td:first-child {
  color: var(--text-secondary);
  font-weight: 500;
}
.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--text-primary);
}
.hours-today {
  background: var(--accent-subtle);
  border-radius: var(--r-sm);
}
.hours-today td:first-child { color: var(--accent); padding-left: 12px; }
.hours-today td:last-child  { padding-right: 12px; }

.hours-cta {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.map-container {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-md);
  height: 400px;
  margin-top: 32px;
  position: relative;  /* prevents iframe clipping */
  background: var(--surface-2);
}
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* Desaturate only — no invert, keeps clicks working in all browsers */
  filter: grayscale(35%) brightness(0.88);
}

.map-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  transition: color var(--t-fast);
}
.map-fallback:hover { color: var(--accent-light); }
.map-fallback svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 768px) {
  .map-container { height: 300px; }
}

/* ============================================================
   FREE TRIAL CTA BANNER
   ============================================================ */
.trial-cta {
  background: var(--accent);
  padding: clamp(60px, 7vw, 100px) 0;
  position: relative;
  overflow: hidden;
}

/* Grain texture on CTA for grit */
.trial-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.8;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}

.trial-cta::before {
  content: 'TITAN';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 200px;
  font-weight: 900;
  color: rgba(0,0,0,0.12);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.trial-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.trial-cta-text {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  color: #fff;
}
.trial-cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin-top: 12px;
  font-weight: 400;
}

.btn-white {
  background: #fff;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
}
.btn-white:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

/* ============================================================
   SOCIAL FOLLOW SECTION
   ============================================================ */
.social-section { background: var(--surface-1); border-top: 1px solid var(--border); }

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.social-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: border-color var(--t-med), background var(--t-med), transform var(--t-med);
}
.social-card:hover {
  border-color: var(--border-md);
  background: var(--surface-3);
  transform: translateY(-4px);
}

.social-card-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.social-icon-wrap.insta { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon-wrap.fb    { background: #1877F2; }
.social-icon-wrap svg { width: 26px; height: 26px; fill: #fff; }

.social-handle {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.social-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.social-card-arrow svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: color var(--t-fast), transform var(--t-fast);
}
.social-card:hover .social-card-arrow svg {
  color: var(--text-primary);
  transform: translateX(4px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: clamp(60px, 7vw, 100px) 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 260px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}
.footer-social-link:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
.footer-social-link svg { width: 16px; height: 16px; }

.footer-col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.footer-bottom-links a:hover { color: var(--text-secondary); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.page-hero-title .accent { color: var(--accent); }

.page-hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  max-width: 520px;
  margin-top: 20px;
  line-height: 1.65;
}

/* ============================================================
   CLASSES PAGE
   ============================================================ */
.classes-list { background: var(--black); }

.class-row {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1px;
  transition: border-color var(--t-med);
}
.class-row:hover { border-color: var(--border-md); }

.class-row-header {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: var(--surface-1);
  cursor: pointer;
  transition: background var(--t-fast);
  user-select: none;
}
.class-row-header:hover { background: var(--surface-2); }

.class-row-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--surface-3);
  line-height: 1;
}

.class-row-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.class-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.class-row-chevron {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-med), background var(--t-med);
}
.class-row-chevron svg { width: 14px; height: 14px; transition: transform var(--t-med); }
.class-row.open .class-row-chevron { background: var(--accent); border-color: var(--accent); }
.class-row.open .class-row-chevron svg { transform: rotate(180deg); }

.class-row-body {
  display: none;
  padding: 0 32px 32px;
  background: var(--surface-1);
  border-top: 1px solid var(--border);
}
.class-row.open .class-row-body { display: block; }

.class-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding-top: 28px;
}

.class-body-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-2);
  font-size: 13px;
}
.schedule-item:first-child { border-radius: var(--r-sm) var(--r-sm) 0 0; }
.schedule-item:last-child  { border-radius: 0 0 var(--r-sm) var(--r-sm); }
.schedule-day  { font-weight: 600; }
.schedule-time { color: var(--text-secondary); }
.schedule-instructor { color: var(--accent); font-size: 12px; font-weight: 500; }

/* Schedule grid table */
.schedule-section { background: var(--surface-1); border-top: 1px solid var(--border); }

.schedule-table-wrap {
  overflow-x: auto;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.schedule-table th {
  background: var(--surface-2);
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.schedule-table td {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--surface-2); }
.schedule-table td:first-child { font-weight: 600; color: var(--text-primary); }
.schedule-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-subtle);
  color: var(--accent);
  margin: 2px 2px 2px 0;
}

/* ============================================================
   SIGN UP PAGE
   ============================================================ */
.signup-page { background: var(--black); }

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.signup-form-wrap {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 52px);
  position: sticky;
  top: 100px;
}

.form-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.form-title span { color: var(--accent); }
.form-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.65;
}

.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-textarea:-webkit-autofill,
.form-select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px var(--surface-2) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  border-color: var(--border-md) !important;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-submit { width: 100%; margin-top: 8px; justify-content: center; }

.form-privacy {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* ---- SMS Opt-in Checkbox ---- */
.form-checkbox-group { margin-top: 4px; }
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.form-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.form-checkbox-custom {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), background var(--t-fast);
  margin-top: 2px;
}
.form-checkbox-label:hover .form-checkbox-custom {
  border-color: var(--accent);
}
.form-checkbox-label input:checked + .form-checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}
.form-checkbox-label input:checked + .form-checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.form-checkbox-label input:focus-visible + .form-checkbox-custom {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form-checkbox-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---- Form validation states ---- */
.form-input--error,
.form-textarea--error,
.form-select--error {
  border-color: #C0392B !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.15) !important;
}
.form-field-error {
  display: block;
  font-size: 11px;
  color: #E05A4A;
  margin-top: 5px;
  font-weight: 500;
}

/* ---- Error banner (network failure) ---- */
.form-error-banner {
  display: none;
  background: rgba(192,57,43,0.10);
  border: 1px solid rgba(192,57,43,0.28);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 13px;
  color: #E05A4A;
  margin-bottom: 20px;
  line-height: 1.5;
}
.form-error-banner.visible { display: block; }

/* ---- Success state ---- */
.form-success-state {
  text-align: center;
  padding: 52px 24px;
}
.form-success-icon {
  width: 58px;
  height: 58px;
  background: var(--accent-subtle);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.form-success-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.form-success-msg {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto;
}


.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0 40px;
}

.benefit-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.benefit-icon svg { width: 20px; height: 20px; }

.benefit-text {}
.benefit-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.benefit-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ */
.faq-section { background: var(--surface-1); border-top: 1px solid var(--border); }

.faq-list { margin-top: 48px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: color var(--t-fast);
  user-select: none;
  gap: 20px;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-med);
}
.faq-icon::before { width: 12px; height: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-icon::after  { width: 2px; height: 12px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-item.open .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

.faq-answer {
  display: none;
  padding: 0 0 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   CAREERS PAGE
   ============================================================ */
.careers-values {
  background: var(--black);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.value-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  transition: border-color var(--t-med), transform var(--t-med);
}
.value-card:hover {
  border-color: var(--border-md);
  transform: translateY(-4px);
}
.value-emoji { font-size: 32px; margin-bottom: 16px; }
.value-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.value-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* Perks */
.perks-section { background: var(--surface-1); border-top: 1px solid var(--border); }

.perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.perk-item {
  background: var(--surface-1);
  padding: 28px 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background var(--t-fast);
}
.perk-item:hover { background: var(--surface-2); }
.perk-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.perk-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.perk-desc  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Open roles */
.open-roles { background: var(--black); }

.roles-list { margin-top: 48px; }

.role-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: border-color var(--t-med), background var(--t-med);
}
.role-card:hover { border-color: var(--border-md); background: var(--surface-2); }

.role-title { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.role-type  { font-size: 12px; color: var(--text-secondary); }
.role-tags  { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.role-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  color: var(--text-secondary);
}
.role-tag.featured { background: var(--accent-subtle); color: var(--accent); }

.role-apply {
  flex-shrink: 0;
}

/* Careers form */
.careers-form-section { background: var(--surface-1); border-top: 1px solid var(--border); }
.careers-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

/* ============================================================
   MISC HELPERS
   ============================================================ */
.text-center { text-align: center; }
.text-accent  { color: var(--accent); }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-sm);
}
.tag-red, .tag-accent { background: rgba(31,168,60,0.13); color: var(--accent-light); border: 1px solid rgba(31,168,60,0.2); }
.tag-dark { background: var(--surface-3); color: var(--text-secondary); }

.number-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 64px;
}
.number-item {
  background: var(--surface-1);
  padding: clamp(28px, 3vw, 44px);
  text-align: center;
}
.number-val {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}
.number-val span { color: var(--accent); }
.number-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 8px;
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .why-grid    { grid-template-columns: 1fr; }
  .classes-grid { grid-template-columns: 1fr 1fr; }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hours-map-grid { grid-template-columns: 1fr; }
  .pt-inner     { grid-template-columns: 1fr; }
  .pt-image     { max-width: 500px; aspect-ratio: 16/9; }
  .signup-grid  { grid-template-columns: 1fr; }
  .signup-form-wrap { position: static; }
  .careers-form-grid { grid-template-columns: 1fr; }
  .number-grid  { grid-template-columns: repeat(2, 1fr); }
  .values-grid  { grid-template-columns: 1fr 1fr; }
  .class-body-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-y: 72px; }

  .nav-links, .nav-socials, .nav-cta .btn-outline { display: none; }
  .hamburger { display: flex; }

  .hero { align-items: flex-start; padding-top: 100px; padding-bottom: 60px; }
  .hero-headline { font-size: clamp(52px, 13vw, 80px); }
  .hero-stats { gap: 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; }
  .hero-scroll { display: none; }

  .trust-bar-inner { flex-direction: column; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: none; }

  .classes-header { flex-direction: column; align-items: flex-start; }
  .classes-grid { grid-template-columns: 1fr; }

  .facility-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; }

  .social-grid { grid-template-columns: 1fr; }

  .trial-cta-inner { flex-direction: column; }
  .trial-cta-inner .btn { width: 100%; justify-content: center; }

  .class-row-header { grid-template-columns: 1fr auto; }
  .class-row-num { display: none; }
  .class-row-meta .class-tag { display: none; }

  .number-grid  { grid-template-columns: repeat(2, 1fr); }
  .values-grid  { grid-template-columns: 1fr; }
  .perks-grid   { grid-template-columns: 1fr; }
  .why-grid     { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }

  .page-hero { padding-top: 110px; }
  .page-hero-title { font-size: clamp(48px, 12vw, 72px); }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 16px 28px; font-size: 14px; }
}

/* ============================================================
   MOBILE POLISH — iPhone presentation pass
   ============================================================ */

/* ---- 768px: core mobile layout fixes ---- */
@media (max-width: 768px) {

  /* Gallery: override 12-column masonry → clean 2-column stack */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-auto-rows: 190px;
  }
  .gallery-item {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .gallery-item:last-child { grid-column: 1 / -1; }

  /* Hero stats: convert to clean 2×2 grid instead of flex-wrap orphan */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    margin-top: 36px;
    padding-top: 24px;
  }

  /* Social cards: reduce excess padding, reflow inner content */
  .social-card { padding: 24px 20px; gap: 16px; }
  .social-card-left { gap: 14px; }

  /* Trust bar: tighter horizontal padding */
  .trust-item { padding: 16px 20px; }
  .trust-val { font-size: 13px; }

  /* Testimonial cards: tighter padding on mobile */
  .testimonial-card { padding: 24px 20px; }

  /* Number items: tighter padding */
  .number-item { padding: 24px 16px; }
  .number-val { font-size: clamp(32px, 8vw, 48px); }

  /* Inaction section: drop fixed min-height, let content breathe naturally */
  .inaction-section { min-height: auto; }
  .inaction-play { width: 64px; height: 64px; }
  .inaction-title { font-size: clamp(32px, 9vw, 56px); }

  /* Page hero: tighter bottom on mobile */
  .page-hero { padding-bottom: 56px; }

  /* Hours CTA: full-width buttons on mobile */
  .hours-cta { flex-direction: column; gap: 12px; }
  .hours-cta .btn { width: 100%; justify-content: center; }

  /* Mobile nav: tighter gap so 6 links fit on iPhone SE */
  .mobile-nav { gap: 18px; }
  .mobile-nav a { font-size: clamp(28px, 7.5vw, 40px); }
  .mobile-nav-logo { width: 56px; }

  /* Section title: cap to prevent very wide single words */
  .section-title { font-size: clamp(36px, 9vw, 56px); }

  /* Section subtitle: max-width full on mobile */
  .section-subtitle { max-width: 100%; font-size: 15px; }

  /* Map container: ensure it doesn't overflow */
  .map-container { margin-top: 24px; }

  /* Personal training image: clean aspect ratio when stacked */
  .pt-image { max-width: 100%; aspect-ratio: 16/9; }

  /* Contact grid: tighter */
  .contact-grid { gap: 40px; }
}

/* ---- 480px: iPhone SE + smallest screens ---- */
@media (max-width: 480px) {

  /* Gallery: single column on smallest phones */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .gallery-item:last-child { grid-column: auto; }

  /* Hero sub text: slightly tighter */
  .hero-sub { font-size: 14px; line-height: 1.55; }

  /* Hero stats: keep 2×2 but tighter gap */
  .hero-stats { gap: 16px 20px; }
  .hero-stat-val { font-size: clamp(24px, 6vw, 36px); }

  /* Section title: floor at 32px on smallest screens */
  .section-title { font-size: clamp(32px, 9vw, 48px); }

  /* Trial CTA: tighter text size */
  .trial-cta-text { font-size: clamp(28px, 8vw, 44px); }

  /* Social cards: stack inner content vertically */
  .social-card { flex-direction: column; align-items: flex-start; }
  .social-card-arrow { display: none; }

  /* Inaction: smaller play button, title */
  .inaction-play { width: 56px; height: 56px; }

  /* Forms: tighter label spacing */
  .form-label { font-size: 10px; margin-bottom: 6px; }
  .form-input, .form-textarea, .form-select { padding: 12px 14px; font-size: 16px; }
  /* 16px font prevents iOS auto-zoom on input focus */

  /* Contact cards: 1-column, tighter padding */
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { padding: 20px 16px; }

  /* Join page includes: single column */
  .join-includes-grid { grid-template-columns: 1fr; }
  .join-cta-title { font-size: clamp(40px, 10vw, 60px); }

  /* Page hero: tighter on small screens */
  .page-hero { padding-top: 100px; padding-bottom: 40px; }
  .page-hero-title { font-size: clamp(40px, 11vw, 60px); }
  .page-hero-sub { font-size: 14px; }
}

/* ============================================================
   JOIN PAGE
   ============================================================ */
.join-includes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.join-include-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: border-color var(--t-fast);
}
.join-include-card:hover { border-color: var(--border-bright); }
.join-include-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-subtle);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.join-include-icon svg { width: 20px; height: 20px; }
.join-include-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.join-include-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.join-cta-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.join-cta-logo {
  width: 60px;
  height: auto;
  opacity: 0.85;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.join-cta-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.join-cta-title span { color: var(--accent); }
.join-cta-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 420px;
}
.join-cta-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.join-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.75);
}

@media (max-width: 900px) {
  .join-includes-grid { grid-template-columns: repeat(2, 1fr); }
  .join-cta-wrap { grid-template-columns: 1fr; }
  .join-cta-right { display: none; }
}
@media (max-width: 600px) {
  .join-includes-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   IN ACTION / VIDEO FEEL SECTION
   ============================================================ */
.inaction-section {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.inaction-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.inaction-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(30%) brightness(0.28) contrast(1.1);
  transform: scale(1.04);
}
.inaction-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(6,6,6,0.15) 0%,
    rgba(6,6,6,0.6) 40%,
    rgba(6,6,6,0.92) 100%
  );
}
.inaction-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.inaction-play {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: playPulse 2.5s ease-in-out infinite;
}
.inaction-play:hover {
  transform: scale(1.1);
  background: var(--accent-light);
}
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31,168,60,0.5); }
  50% { box-shadow: 0 0 0 18px rgba(31,168,60,0); }
}
.inaction-play svg { margin-left: 4px; }
.inaction-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.inaction-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.inaction-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .inaction-content { flex-direction: column; align-items: flex-start; }
  .inaction-play { width: 64px; height: 64px; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.contact-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast);
  display: block;
}
.contact-card:hover {
  border-color: var(--border-bright);
  background: var(--surface-3);
}
.contact-card-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}
.contact-card-icon svg { width: 18px; height: 18px; }
.contact-card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.contact-card-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .contact-cards { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   GYM GALLERY / COMMUNITY SECTION
   ============================================================ */
.gym-gallery {
  background: var(--black);
  border-top: 1px solid var(--border);
}

.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Masonry-style grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 6px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}

/* Layout: big | small | small / small | big | small */
.gallery-item:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 2; }
.gallery-item:nth-child(2) { grid-column: 6 / 9; grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 3; }
.gallery-item:nth-child(4) { grid-column: 1 / 4; grid-row: 2 / 3; }
.gallery-item:nth-child(5) { grid-column: 4 / 9; grid-row: 2 / 3; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%) brightness(0.75) contrast(1.1);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(0.85) contrast(1.1);
}

/* Overlay on each gallery item */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,6,0.6) 0%, rgba(6,6,6,0.1) 60%);
  pointer-events: none;
  transition: opacity var(--t-med);
}
.gallery-item:hover::after { opacity: 0.6; }


/* Caption label on gallery item */
.gallery-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Instagram embed strip */
.insta-strip {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 5vw, 72px) 0;
}

.insta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.insta-follow-box {
  display: flex;
  align-items: center;
  gap: 18px;
}

.insta-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.insta-avatar svg { width: 28px; height: 28px; fill: #fff; }

.insta-handle {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.insta-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}


@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
    height: 220px;
  }
  .gallery-item:nth-child(1) { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(3) { height: 260px; }
}

/* ============================================================
   TITAN LOGO — USAGE SYSTEM
   ============================================================ */

/* Navbar logo image (replaces text in nav) */
.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(1) saturate(1);
  transition: opacity var(--t-fast);
}
.nav-logo-img:hover { opacity: 0.85; }

/* Footer logo image */
.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
  filter: brightness(1);
}

/* Hero watermark — large faded T emblem */
.hero-logo-watermark {
  position: absolute;
  bottom: clamp(60px, 9vw, 120px);
  right: clamp(20px, 5vw, 80px);
  z-index: 1;
  pointer-events: none;
  width: clamp(140px, 18vw, 260px);
  opacity: 0.06;
  filter: grayscale(1) brightness(3);
  user-select: none;
}

/* CTA section badge — small logo above headline */
.cta-logo-badge {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}


/* Mobile nav logo */
.mobile-nav-logo {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  height: 32px;
  width: auto;
  filter: grayscale(1) brightness(2);
  opacity: 0.5;
}

/* ============================================================
   KEN BURNS — MOTION ON STILL IMAGES
   ============================================================ */
@keyframes kenBurns {
  0%   { transform: scale(1.0) translate(0, 0); }
  50%  { transform: scale(1.08) translate(-2%, -1%); }
  100% { transform: scale(1.0) translate(0, 0); }
}

@keyframes kenBurnsAlt {
  0%   { transform: scale(1.0) translate(0, 0); }
  50%  { transform: scale(1.07) translate(2%, 1%); }
  100% { transform: scale(1.0) translate(0, 0); }
}

.ken-burns {
  animation: kenBurns 14s ease-in-out infinite;
  will-change: transform;
}
.ken-burns-alt {
  animation: kenBurnsAlt 18s ease-in-out infinite;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .ken-burns, .ken-burns-alt { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-delay-1, .reveal-delay-2, .reveal-delay-3, .reveal-delay-4 { transition-delay: 0s; }
}

/* ============================================================
   CLASS VIDEO PREVIEW (classes page)
   ============================================================ */
.class-media-wrap {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  margin-bottom: 28px;
}

.class-media-wrap img,
.class-media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.class-media-wrap img {
  filter: brightness(0.7) contrast(1.1);
}

.class-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,6,0.5) 0%, transparent 60%);
  pointer-events: none;
}

.class-media-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.class-media-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

/* ============================================================
   SECTION BRIGHTNESS HELPERS
   ============================================================ */

/* Slightly open sections — classes, testimonials, schedule */
.section-open-bg {
  background: var(--surface-light);
  border-top: 1px solid var(--border-md);
  border-bottom: 1px solid var(--border-md);
}

/* Better schedule table */
.schedule-table th {
  background: var(--surface-3);
}
.schedule-table tr:hover td {
  background: var(--surface-lighter);
}

/* Gallery images brighter on hover */
.gallery-item img {
  filter: grayscale(20%) brightness(0.72) contrast(1.12);
}
.gallery-item:hover img {
  filter: grayscale(0%) brightness(0.9) contrast(1.08);
}

/* More breathing room in why-grid */
.why-grid {
  margin-top: 72px;
}
.why-card {
  padding: clamp(36px, 4.5vw, 60px);
}

/* Slightly brighter personal training image */
.pt-image img {
  filter: grayscale(10%) brightness(0.8);
}

/* class row body brighter */
.class-row-body {
  background: var(--surface-light);
}
.class-row-header {
  background: var(--surface-2);
}
.class-row-header:hover {
  background: var(--surface-3);
}

/* Schedule list (inside class accordion) */
.schedule-item {
  background: var(--surface-3);
}
.schedule-item:hover {
  background: var(--surface-lighter);
}

/* ============================================================
   MOBILE — Rotating hero text + testimonials marquee
   ============================================================ */

/* Rotating text: add padding so overflow:hidden doesn't clip
   tall descenders/ascenders at the headline's tight line-height */
.hero-rotating-wrap {
  padding-top: 0.06em;
  padding-bottom: 0.06em;
}

@media (max-width: 768px) {
  /* Marquee: narrower cards, tighter padding */
  .testimonials-marquee-track {
    padding: 8px 48px;
  }
  .testimonial-card {
    min-width: 280px;
    max-width: 280px;
  }
  /* Narrower edge fades so cards aren't hidden too early */
  .marquee-fade {
    width: 70px;
  }
  /* Arrows: slightly smaller, keep them reachable */
  .marquee-btn {
    width: 34px;
    height: 34px;
  }
  .marquee-btn-left  { left: 8px; }
  .marquee-btn-right { right: 8px; }
}

@media (max-width: 480px) {
  /* Cards: fit comfortably on small phones */
  .testimonial-card {
    min-width: 260px;
    max-width: 260px;
  }
  /* Fade even narrower so first card is fully visible */
  .marquee-fade {
    width: 48px;
  }
  /* Track padding matches arrow width */
  .testimonials-marquee-track {
    padding: 8px 40px;
  }
  /* Hero rotating text: slightly looser on small screens */
  .hero-rotating-wrap {
    padding-top: 0.08em;
    padding-bottom: 0.08em;
  }
}

/* Reduced motion: stop auto-scroll animation */
@media (prefers-reduced-motion: reduce) {
  .hero-rotating-text.rotate-exit,
  .hero-rotating-text.rotate-enter { animation: none; opacity: 1; transform: none; }
}

/* ============================================================
   AMENITIES PAGE
   ============================================================ */

/* ---- Stats Bar ---- */
.amenities-stats-bar {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.amenities-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.amenities-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 40px;
  gap: 4px;
}
.amenities-stat-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.01em;
}
.amenities-stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.amenities-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-md);
}

/* ---- Gallery Carousel ---- */
.amenities-gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(32px, 5vw, 56px);
  gap: 24px;
}
.amenities-gallery-arrows {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.amenity-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  background: var(--surface-2);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  cursor: pointer;
}
.amenity-arrow:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.amenity-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Track wrapper — allows cards to overflow right edge */
.amenity-track-wrap {
  width: 100%;
  overflow: hidden;
}
.amenity-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-left: max(20px, calc((100vw - 1200px) / 2 + 40px));
  padding-right: 40px;
  padding-bottom: 4px; /* prevent clipping shadow */
}
.amenity-track::-webkit-scrollbar { display: none; }

.amenity-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}
@media (min-width: 1024px) {
  .amenity-card { flex: 0 0 360px; }
}

.amenity-card-img-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 5 / 6;
}
@media (min-width: 768px) {
  .amenity-card-img-wrap { aspect-ratio: 5 / 4; }
}

.amenity-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s var(--ease);
  display: block;
}
.amenity-card:hover .amenity-card-img {
  transform: scale(1.04);
}

.amenity-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 30%,
    rgba(6, 6, 6, 0.55) 65%,
    rgba(6, 6, 6, 0.88) 100%
  );
}

.amenity-card-content {
  position: absolute;
  inset: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.amenity-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
}
.amenity-card-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.amenity-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dots */
.amenity-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.amenity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-bright);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  padding: 0;
}
.amenity-dot.active {
  background: var(--accent);
  transform: scale(1.35);
}

/* ---- Detail Grid ---- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}
.amenity-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  transition: border-color var(--t-med), background var(--t-med);
}
.amenity-item:hover {
  background: var(--surface-3);
  border-color: var(--border-md);
}
.amenity-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 18px;
}
.amenity-item-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.amenity-item-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .amenities-gallery-arrows { display: none; }
  .amenities-gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .amenity-track {
    padding-left: 16px;
    padding-right: 16px;
    gap: 14px;
  }
  .amenity-card { flex: 0 0 calc(100vw - 48px); }
  .amenity-card-img-wrap { aspect-ratio: 4 / 3; }
  .amenity-card-title { font-size: 20px; }
  .amenity-card-desc { font-size: 13px; -webkit-line-clamp: 2; }
  .amenities-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .amenity-item { padding: 20px 16px; }
  .amenity-item-icon { width: 40px; height: 40px; margin-bottom: 12px; }
  .amenity-item-title { font-size: 14px; }
  .amenity-item-desc { font-size: 13px; }
  .amenity-dots { margin-top: 20px; }
}
