/* ==========================================================================
   IBEX PRIZREN — ENGINEERING ATHLETES
   Custom Design System: Deep Obsidian, Forest Olive Green & Warm Vintage Sand
   ========================================================================== */

:root {
  /* Core Brand Palette inspired by @ibex.prizren & Gym Rules Poster */
  --bg-obsidian: #0c0e0c;
  --bg-pine-dark: #131812;
  --bg-card: #181f17;
  --bg-card-hover: #20291e;

  /* The Iconic IBEX Cream/Sand & Forest Olive */
  --ibex-cream: #efe6d5;
  --ibex-cream-soft: #e3d7c1;
  --ibex-olive-deep: #2f4027;
  --ibex-olive: #435b38;
  --ibex-olive-bright: #6b8f59;
  --ibex-lime-accent: #a3d977;
  --ibex-gold: #e6a832; /* From "SEE YOU tomorrow" yellow letters */
  --ibex-wood: #b87b4c; /* Warm timber arches at ITP Prizren */

  /* Typography Colors */
  --text-primary: #f6f2ea;
  --text-secondary: #b5bdb2;
  --text-muted: #788275;
  --text-on-cream: #2b3924;

  /* Borders & Shadows */
  --border-subtle: rgba(239, 230, 213, 0.1);
  --border-olive: rgba(107, 143, 89, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 40px rgba(107, 143, 89, 0.22);

  /* Fonts */
  --font-display: 'Syne', 'Impact', sans-serif;
  --font-condensed: 'Oswald', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: 'Caveat', cursive;

  /* Layout */
  --container-max: 1320px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Film Grain Texture across the site */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(12, 14, 12, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-emblem {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ibex-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ibex-olive-bright);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.brand-logo:hover .brand-emblem {
  transform: scale(1.06) rotate(-4deg);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--ibex-cream);
}

.brand-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ibex-lime-accent);
  margin-top: 2px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  white-space: nowrap;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--ibex-lime-accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--ibex-cream);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language Toggle Pill */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(239, 230, 213, 0.07);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--ibex-cream);
  color: var(--ibex-olive-deep);
}

/* Primary & Secondary Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ibex-cream);
  color: var(--ibex-olive-deep);
  box-shadow: 0 8px 25px rgba(239, 230, 213, 0.18);
}

.btn-primary:hover {
  background: var(--ibex-lime-accent);
  color: #0b1109;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(163, 217, 119, 0.35);
}

.btn-olive {
  background: var(--ibex-olive);
  color: var(--ibex-cream);
  border: 1px solid var(--ibex-olive-bright);
}

.btn-olive:hover {
  background: var(--ibex-olive-bright);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(239, 230, 213, 0.06);
  color: var(--ibex-cream);
  border: 1px solid rgba(239, 230, 213, 0.25);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(239, 230, 213, 0.15);
  border-color: var(--ibex-cream);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION — UNOBSTRUCTED WIDE-SCREEN CINEMA & EDITORIAL TYPOGRAPHY
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding: 112px 0 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

/* Multi-layer Video & Ken Burns Cinema Stage */
.hero-media-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #080a08;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease-in-out, transform 7s ease-out;
  filter: contrast(1.08) saturate(0.95) brightness(0.62);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.0);
}

.hero-custom-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  filter: contrast(1.08) brightness(0.62);
}

.hero-custom-video.active {
  opacity: 1;
}

/* Subtle Vignette that leaves center photography crystal clear */
.hangar-beams {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 42%, transparent 15%, rgba(8, 10, 8, 0.58) 85%),
    linear-gradient(to top, rgba(10, 12, 10, 0.94) 0%, rgba(10, 12, 10, 0.18) 38%, rgba(10, 12, 10, 0.52) 100%);
  z-index: 1;
}

#chalkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-editorial-stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 148px);
}

/* Top Architectural Telemetry Bar */
.hero-telemetry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(239, 230, 213, 0.14);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(239, 230, 213, 0.78);
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.telemetry-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(239, 230, 213, 0.2), transparent);
}

.telemetry-link {
  color: var(--ibex-cream);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(239, 230, 213, 0.2);
  background: rgba(12, 14, 12, 0.35);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.telemetry-link:hover {
  border-color: var(--ibex-lime-accent);
  color: var(--ibex-lime-accent);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ibex-lime-accent);
  box-shadow: 0 0 12px var(--ibex-lime-accent);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.55; }
}

/* Centerpiece Monumental Editorial Typography */
.hero-centerpiece {
  margin: auto 0;
  padding: 38px 0 28px;
  max-width: 960px;
}

.hero-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ibex-gold);
  margin-bottom: 18px;
  display: inline-block;
}

.hero-monumental {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.monumental-main {
  font-family: 'Unbounded', var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6.2vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ibex-cream);
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}

.monumental-sub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 18px;
  line-height: 1.05;
}

.serif-italic {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.8rem, 6.5vw, 5.9rem);
  color: var(--ibex-gold);
  letter-spacing: -0.01em;
}

.monumental-highlight {
  font-family: 'Unbounded', var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6.2vw, 5.6rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, var(--ibex-cream) 48%, var(--ibex-lime-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 14px 35px rgba(0, 0, 0, 0.5));
}

.hero-manifesto-line {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(246, 242, 234, 0.84);
  max-width: 590px;
  margin-bottom: 34px;
  border-left: 2px solid var(--ibex-gold);
  padding-left: 18px;
}

/* Sleek Editorial CTA Buttons */
.hero-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-editorial-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  border-radius: 4px;
  background: var(--ibex-cream);
  color: #11160f;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.btn-editorial-primary:hover {
  background: var(--ibex-gold);
  color: #0b0e0a;
  transform: translateY(-2px);
}

.btn-editorial-primary .btn-arrow {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.btn-editorial-primary:hover .btn-arrow {
  transform: translate(3px, -3px);
}

.btn-editorial-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 26px;
  border-radius: 4px;
  background: rgba(15, 20, 14, 0.5);
  border: 1px solid rgba(239, 230, 213, 0.28);
  backdrop-filter: blur(10px);
  color: var(--ibex-cream);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.btn-editorial-ghost:hover {
  background: rgba(239, 230, 213, 0.14);
  border-color: var(--ibex-cream);
}

.btn-editorial-minimal {
  padding: 14px 18px;
  color: rgba(239, 230, 213, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(239, 230, 213, 0.3);
  transition: all 0.25s ease;
}

.btn-editorial-minimal:hover {
  color: var(--ibex-gold);
  border-color: var(--ibex-gold);
}

/* Bottom Floating Cinema HUD Strip (Sleek, Low-Profile) */
.hero-bottom-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 8px;
}

.hud-scenes {
  flex: 1;
  max-width: 760px;
}

.hud-scenes-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.hud-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ibex-gold);
}

.hud-caption {
  font-size: 0.75rem;
  color: rgba(239, 230, 213, 0.68);
  font-weight: 500;
}

.reel-scene-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.reel-tab {
  position: relative;
  text-align: left;
  padding: 8px 0 12px;
  color: rgba(239, 230, 213, 0.48);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reel-tab .tab-idx {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.65rem;
  color: var(--ibex-gold);
  opacity: 0.7;
}

.reel-tab .tab-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(239, 230, 213, 0.15);
  overflow: hidden;
}

.reel-tab.active {
  color: var(--ibex-cream);
}

.reel-tab.active .tab-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ibex-gold);
}

.reel-tab:hover {
  color: var(--ibex-cream);
}

.hud-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hud-metric-pill {
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(12, 14, 12, 0.45);
  border: 1px solid rgba(239, 230, 213, 0.14);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}

.hud-metric-pill .metric-val {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ibex-cream);
}

.hud-metric-pill .metric-lbl {
  font-size: 0.7rem;
  color: rgba(239, 230, 213, 0.65);
}

.hud-video-trigger {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px dashed rgba(239, 230, 213, 0.28);
  background: rgba(12, 14, 12, 0.4);
  color: var(--ibex-cream);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hud-video-trigger:hover {
  border-color: var(--ibex-gold);
  color: var(--ibex-gold);
}

/* ==========================================================================
   INFINITE TICKER MARQUEE
   ========================================================================== */
.marquee-strip {
  background: var(--ibex-cream);
  color: var(--ibex-olive-deep);
  padding: 14px 0;
  overflow: hidden;
  border-bottom: 2px solid var(--ibex-olive-deep);
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 28s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.marquee-sep {
  color: var(--ibex-olive);
  font-size: 1.2rem;
}

@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTION HEADINGS & LAYOUT UTILITIES
   ========================================================================== */
.section {
  padding: 110px 0;
  position: relative;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 56px;
}

.section-header.center {
  align-items: center;
  text-align: center;
}

.eyebrow,
.editorial-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ibex-gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Unbounded', var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ibex-cream);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 620px;
  margin-top: 14px;
  line-height: 1.7;
}

/* Luxury Split Editorial Header */
.editorial-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 52px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(239, 230, 213, 0.12);
}

.editorial-display-title {
  font-family: 'Unbounded', var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.7rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ibex-cream);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
}

.serif-italic-inline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 4.8vw, 4.2rem);
  color: var(--ibex-gold);
  text-transform: lowercase;
  letter-spacing: 0;
}

.editorial-display-title .highlight-word {
  background: linear-gradient(135deg, #ffffff 0%, var(--ibex-cream) 50%, var(--ibex-lime-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.editorial-side-note {
  max-width: 390px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(239, 230, 213, 0.72);
  border-left: 2px solid var(--ibex-gold);
  padding-left: 16px;
}

/* ==========================================================================
   PROGRAMS & DISCIPLINES — 5-BLADE EXPANDING CINEMA ACCORDION
   ========================================================================== */
.programs-accordion {
  display: flex;
  gap: 12px;
  height: 560px;
  width: 100%;
}

.acc-blade {
  position: relative;
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
  background: #0d110c;
  border: 1px solid rgba(239, 230, 213, 0.14);
  cursor: pointer;
  transition: flex 0.65s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.acc-blade.active,
.acc-blade:hover {
  flex: 3.6;
  border-color: rgba(230, 168, 50, 0.55);
}

.acc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: brightness(0.42) saturate(0.75) contrast(1.1);
  z-index: 0;
}

.acc-blade.active .acc-bg,
.acc-blade:hover .acc-bg {
  transform: scale(1.04);
  filter: brightness(0.72) saturate(1.02) contrast(1.06);
}

.acc-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 10, 8, 0.95) 0%,
    rgba(8, 10, 8, 0.52) 36%,
    transparent 68%,
    rgba(8, 10, 8, 0.55) 100%
  );
  z-index: 1;
}

.acc-top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.acc-index {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ibex-gold);
  letter-spacing: 0.08em;
}

.acc-schedule-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ibex-cream);
  padding: 5px 10px;
  border-radius: 3px;
  background: rgba(10, 12, 10, 0.62);
  border: 1px solid rgba(239, 230, 213, 0.2);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.35s ease;
  white-space: nowrap;
}

.acc-blade.active .acc-schedule-tag,
.acc-blade:hover .acc-schedule-tag {
  opacity: 1;
  transform: translateY(0);
}

/* Vertical Rotated Label when Blade is Collapsed */
.acc-vertical-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239, 230, 213, 0.65);
  white-space: nowrap;
  z-index: 2;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.acc-blade.active .acc-vertical-label,
.acc-blade:hover .acc-vertical-label {
  opacity: 0;
}

/* Bottom Architectural Panel inside Expanded Blade */
.acc-bottom-panel {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.acc-blade.active .acc-bottom-panel,
.acc-blade:hover .acc-bottom-panel {
  opacity: 1;
  transform: translateY(0);
}

.acc-sub-kicker {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ibex-gold);
  margin-bottom: 4px;
}

.acc-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ibex-cream);
  line-height: 1.1;
  margin-bottom: 10px;
}

.acc-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.2em;
  color: var(--ibex-gold);
  text-transform: none;
  margin-left: 4px;
}

.acc-details p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(246, 242, 234, 0.82);
  max-width: 480px;
  margin-bottom: 14px;
}

.acc-specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(239, 230, 213, 0.16);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239, 230, 213, 0.75);
}

.acc-cta {
  margin-left: auto;
  color: var(--ibex-gold);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.acc-cta:hover {
  color: var(--ibex-lime-accent);
}

/* ==========================================================================
   ARCHITECTURAL WOD TELEMETRY & BARBELL ENGINEERING STAGE
   ========================================================================== */
.wod-lab-section {
  background: radial-gradient(circle at 50% 0%, rgba(25, 34, 23, 0.45) 0%, var(--bg-obsidian) 75%);
  border-top: 1px solid rgba(239, 230, 213, 0.12);
  border-bottom: 1px solid rgba(239, 230, 213, 0.12);
}

.wod-blueprint {
  border-top: 1px solid rgba(239, 230, 213, 0.16);
  border-bottom: 1px solid rgba(239, 230, 213, 0.16);
}

/* Top Control & Live Telemetry Bar */
.wod-blueprint-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(239, 230, 213, 0.12);
}

.wod-format-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ibex-gold);
  margin-bottom: 6px;
}

.wod-name-editorial {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ibex-cream);
  line-height: 1;
}

.wod-name-editorial em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.18em;
  color: var(--ibex-gold);
  text-transform: none;
  margin-left: 4px;
}

/* Minimal Underline Track Switcher */
.wod-track-switcher {
  display: flex;
  align-items: center;
  gap: 28px;
}

.level-btn {
  position: relative;
  padding: 10px 0 12px;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239, 230, 213, 0.45);
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.level-btn .track-num {
  font-size: 0.64rem;
  color: var(--ibex-gold);
  opacity: 0.75;
}

.level-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(239, 230, 213, 0.12);
  transition: background 0.25s ease;
}

.level-btn.active,
.level-btn:hover {
  color: var(--ibex-cream);
}

.level-btn.active::after {
  background: var(--ibex-gold);
}

/* Integrated Minimal Digital Clock */
.wod-telemetry-clock {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-left: 24px;
  border-left: 1px solid rgba(239, 230, 213, 0.14);
}

.clock-readout-wrap {
  display: flex;
  flex-direction: column;
}

.clock-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239, 230, 213, 0.55);
}

.timer-display {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ibex-lime-accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.timer-controls {
  display: flex;
  gap: 8px;
}

.timer-btn {
  padding: 9px 14px;
  border-radius: 3px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  background: var(--ibex-cream);
  color: #0e120d;
  transition: all 0.2s ease;
}

.timer-btn:hover {
  background: var(--ibex-gold);
}

.timer-btn-ghost {
  background: transparent;
  color: rgba(239, 230, 213, 0.72);
  border: 1px solid rgba(239, 230, 213, 0.22);
}

.timer-btn-ghost:hover {
  background: rgba(239, 230, 213, 0.1);
  color: var(--ibex-cream);
}

/* 4-Column Sculptural Movement Strip */
.wod-movements-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(239, 230, 213, 0.12);
}

.wod-move-cell {
  padding: 36px 28px;
  border-right: 1px solid rgba(239, 230, 213, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.wod-move-cell:last-child {
  border-right: none;
}

.wod-move-cell:hover {
  background: rgba(239, 230, 213, 0.025);
}

.move-step {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239, 230, 213, 0.45);
  margin-bottom: 18px;
}

.move-big-metric {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2.4rem, 3.6vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ibex-cream);
  margin-bottom: 14px;
}

.move-big-metric small {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.52em;
  color: var(--ibex-gold);
  letter-spacing: 0.02em;
  margin-left: 4px;
}

.move-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ibex-cream);
  line-height: 1.35;
  margin-bottom: 6px;
}

.move-cue {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(239, 230, 213, 0.62);
}

/* Coach Note Hairline Footer */
.wod-coach-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(239, 230, 213, 0.12);
  font-size: 0.88rem;
  color: rgba(239, 230, 213, 0.78);
}

.coach-tag {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ibex-gold);
}

/* Bottom Full-Width Olympic Barbell Engineering Dock */
.barbell-engineering-dock {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 36px 0 28px;
}

.barbell-dock-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ibex-cream);
  margin-bottom: 6px;
}

.barbell-dock-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.2em;
  color: var(--ibex-gold);
  text-transform: none;
  margin-left: 4px;
}

.barbell-dock-sub {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ibex-lime-accent);
  margin-bottom: 18px;
}

.weight-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.preset-chip {
  padding: 9px 14px;
  border-radius: 3px;
  background: transparent;
  border: 1px solid rgba(239, 230, 213, 0.18);
  color: rgba(239, 230, 213, 0.72);
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.preset-chip.active,
.preset-chip:hover {
  background: var(--ibex-cream);
  color: #0e120d;
  border-color: var(--ibex-cream);
}

.rule-warning-inline {
  font-size: 0.8rem;
  color: rgba(230, 168, 50, 0.9);
  letter-spacing: 0.02em;
}

.barbell-dock-right {
  border-left: 1px solid rgba(239, 230, 213, 0.12);
  padding-left: 28px;
}

.barbell-svg-stage {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   THE ICONIC "IBEX GYM & CLASS RULES" MANIFESTO (CREAM & OLIVE POSTER SECTION)
   ========================================================================== */
.rules-poster-section {
  background-color: var(--ibex-cream);
  color: var(--text-on-cream);
  padding: 110px 0;
  position: relative;
  border-top: 6px solid var(--ibex-olive-deep);
  border-bottom: 6px solid var(--ibex-olive-deep);
}

.rules-poster-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
  position: relative;
}

.see-you-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.see-you-ibex {
  font-family: var(--font-condensed);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--ibex-olive-deep);
  letter-spacing: 0.04em;
}

.see-you-yellow {
  font-family: var(--font-condensed);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--ibex-gold);
  -webkit-text-stroke: 1.5px var(--ibex-olive-deep);
  text-shadow: 2px 2px 0 var(--ibex-olive-deep);
  letter-spacing: 0.04em;
}

.tomorrow-hanging-sign {
  display: inline-block;
  background: #ffffff;
  color: var(--ibex-olive-deep);
  font-family: var(--font-hand);
  font-size: 1.55rem;
  font-weight: 700;
  padding: 2px 16px;
  border: 2px solid var(--ibex-olive-deep);
  transform: rotate(-4deg);
  box-shadow: 3px 4px 0 rgba(43, 57, 36, 0.25);
}

.rules-main-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ibex-olive-deep);
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rule-card {
  background: rgba(47, 64, 39, 0.06);
  border: 2px solid rgba(47, 64, 39, 0.18);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rule-card:hover {
  background: var(--ibex-olive-deep);
  color: var(--ibex-cream);
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(47, 64, 39, 0.28);
}

.rule-number {
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
}

.rule-card h4 {
  font-family: var(--font-condensed);
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 10px;
}

.rule-card p {
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.88;
  line-height: 1.45;
}

.rules-footer-ibex {
  margin-top: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   IBEX GAMES ("T'FORTË SI AJO") — WIDE DOCUMENTARY STAGE & IMPACT STRIP
   ========================================================================== */
.games-architectural-stage {
  border-top: 1px solid rgba(239, 230, 213, 0.16);
  border-bottom: 1px solid rgba(239, 230, 213, 0.16);
}

.games-panorama {
  position: relative;
  min-height: 490px;
  background-size: cover;
  background-position: center 35%;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  border-bottom: 1px solid rgba(239, 230, 213, 0.16);
  overflow: hidden;
}

.games-panorama-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 10, 8, 0.94) 0%, rgba(8, 10, 8, 0.42) 48%, rgba(8, 10, 8, 0.18) 100%),
    radial-gradient(circle at 75% 35%, transparent 20%, rgba(8, 10, 8, 0.55) 90%);
  z-index: 0;
}

.games-panorama-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.games-date-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ibex-gold);
  margin-bottom: 10px;
}

.games-panorama-headline {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.85rem, 3.6vw, 3.1rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ibex-cream);
  line-height: 1.08;
}

.games-panorama-headline em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.18em;
  color: var(--ibex-gold);
  text-transform: none;
  margin-left: 6px;
}

/* 3-Column Open Architectural Impact Strip */
.games-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.impact-cell {
  padding: 38px 32px;
  border-right: 1px solid rgba(239, 230, 213, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: background 0.3s ease;
}

.impact-cell:last-child {
  border-right: none;
}

.impact-cell:hover {
  background: rgba(239, 230, 213, 0.025);
}

.impact-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(239, 230, 213, 0.72);
  margin-top: 8px;
}

/* ==========================================================================
   ARCHITECTURAL WEEKLY HANGAR TIMETABLE & FILTER
   ========================================================================== */
.schedule-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.filter-pill {
  position: relative;
  padding: 10px 0 12px;
  background: transparent;
  color: rgba(239, 230, 213, 0.45);
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.filter-pill .track-num {
  font-size: 0.62rem;
  color: var(--ibex-gold);
  opacity: 0.75;
}

.filter-pill::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(239, 230, 213, 0.12);
  transition: background 0.25s ease;
}

.filter-pill.active,
.filter-pill:hover {
  color: var(--ibex-cream);
}

.filter-pill.active::after {
  background: var(--ibex-gold);
}

/* Open Architectural 6-Day Matrix (No rounded cards!) */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid rgba(239, 230, 213, 0.16);
  border-bottom: 1px solid rgba(239, 230, 213, 0.16);
}

.day-col {
  border-right: 1px solid rgba(239, 230, 213, 0.12);
  display: flex;
  flex-direction: column;
}

.day-col:last-child {
  border-right: none;
}

.day-header {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(239, 230, 213, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.day-idx {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ibex-gold);
}

.day-name {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ibex-cream);
}

.day-slots {
  display: flex;
  flex-direction: column;
}

.slot-card {
  padding: 18px;
  border-bottom: 1px solid rgba(239, 230, 213, 0.08);
  border-left: 2px solid transparent;
  transition: all 0.25s ease;
}

.slot-card:hover {
  background: rgba(239, 230, 213, 0.03);
  border-left-color: var(--ibex-lime-accent);
}

.slot-card[data-category="cardio"] { border-left-color: var(--ibex-gold); }
.slot-card[data-category="kids"] { border-left-color: #5bc0be; }
.slot-card[data-category="wl"] { border-left-color: #e06d53; }

.slot-card.dimmed {
  opacity: 0.14;
}

.slot-time {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.66rem;
  color: var(--ibex-gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.slot-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ibex-cream);
  margin-bottom: 2px;
}

.slot-sub {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(239, 230, 213, 0.58);
}

/* ==========================================================================
   COMMUNITY FOOTER & MODAL
   ========================================================================== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: #080a08;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 10, 8, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #111510;
  border: 1px solid rgba(239, 230, 213, 0.25);
  border-radius: 6px;
  max-width: 520px;
  width: 100%;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal-box {
  transform: translateY(0);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ibex-cream-soft);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  background: #090b09;
  border: 1px solid rgba(239, 230, 213, 0.18);
  color: var(--ibex-cream);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--ibex-gold);
}

/* Mobile Menu Button & Mobile CTA (Hidden on Desktop) */
.mobile-only-cta {
  display: none;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--ibex-cream);
  color: var(--ibex-olive-deep);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.mobile-menu-btn .hamburger-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.5px;
  width: 15px;
}

.mobile-menu-btn .hamburger-bars span {
  display: block;
  width: 15px;
  height: 2px;
  background: var(--ibex-olive-deep);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-btn .mobile-menu-label {
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ibex-olive-deep);
}

.mobile-menu-btn.active {
  background: var(--ibex-gold);
}

.mobile-menu-btn.active .hamburger-bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-bars span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE PHONE OPTIMIZATION)
   ========================================================================== */
@media (max-width: 1240px) {
  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 1080px) {
  .barbell-engineering-dock,
  .games-impact-grid {
    grid-template-columns: 1fr;
  }

  .impact-cell {
    border-right: none;
    border-bottom: 1px solid rgba(239, 230, 213, 0.12);
  }

  .barbell-dock-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(239, 230, 213, 0.12);
    padding-top: 24px;
  }

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

  .wod-move-cell {
    border-bottom: 1px solid rgba(239, 230, 213, 0.12);
  }

  .programs-accordion {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }

  .acc-blade {
    min-height: 76px;
    padding: 18px 20px;
    flex: none !important;
  }

  .acc-blade.active {
    min-height: 310px;
    padding: 22px 20px;
  }

  .acc-vertical-label {
    left: 58px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }

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

  .schedule-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .day-col {
    border-bottom: 1px solid rgba(239, 230, 213, 0.12);
  }
}

@media (max-width: 940px) {
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .desktop-nav-cta {
    display: none !important;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .mobile-only-cta {
    display: block;
    padding-top: 12px;
    padding-bottom: 6px;
    border-bottom: none !important;
  }

  .mobile-only-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    color: var(--ibex-olive-deep) !important;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(14, 18, 13, 0.98);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(239, 230, 213, 0.22);
    border-radius: 16px;
    padding: 10px 20px 16px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.85);
    z-index: 200;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(239, 230, 213, 0.1);
  }

  .nav-links a:not(.btn) {
    display: block;
    width: 100%;
    padding: 14px 4px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ibex-cream);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 68px 0;
  }

  /* Clean Single-Row Phone Header: [IBEX Logo] ---- [EN|SQ] [☰ MENU] */
  .navbar {
    padding: 12px 0;
    background: rgba(12, 14, 12, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(239, 230, 213, 0.12);
  }

  .brand-logo img {
    height: 26px !important;
  }

  .brand-text-wrap {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .lang-btn {
    padding: 5px 9px;
    font-size: 0.7rem;
  }

  /* Hero Section on Phone */
  .hero {
    padding: 88px 0 28px;
    min-height: auto;
  }

  .hero-editorial-stage {
    min-height: auto;
    gap: 20px;
  }

  .hero-telemetry {
    flex-wrap: wrap;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    gap: 8px;
    padding-bottom: 12px;
  }

  .telemetry-divider {
    display: none;
  }

  .hero-centerpiece {
    padding: 14px 0 18px;
  }

  .hero-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .monumental-main,
  .monumental-highlight {
    font-size: clamp(1.7rem, 7.6vw, 2.4rem);
    line-height: 1.08;
    word-break: break-word;
  }

  .serif-italic {
    font-size: clamp(2rem, 8.6vw, 2.7rem);
  }

  .monumental-sub-row {
    gap: 10px;
  }

  .hero-manifesto-line {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 24px;
    padding-left: 14px;
  }

  .hero-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .btn-editorial-primary,
  .btn-editorial-ghost {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: 0.74rem;
  }

  .btn-editorial-minimal {
    align-self: center;
    text-align: center;
    padding: 8px 12px;
  }

  .reel-scene-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .reel-tab {
    font-size: 0.68rem;
    padding: 6px 0 10px;
  }

  /* Marquee Strip */
  .marquee-item {
    font-size: 0.95rem;
    padding: 0 16px;
    gap: 16px;
  }

  /* Editorial Section Headers */
  .editorial-section-head {
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
  }

  .editorial-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .editorial-display-title {
    font-size: clamp(1.5rem, 6.8vw, 2.2rem);
    gap: 8px;
  }

  .serif-italic-inline {
    font-size: clamp(1.85rem, 7.8vw, 2.5rem);
  }

  .editorial-side-note {
    font-size: 0.88rem;
  }

  /* WOD Lab & Barbell Calculator on Phone */
  .wod-blueprint-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 0;
  }

  .wod-track-switcher {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .level-btn {
    font-size: 0.66rem;
    white-space: nowrap;
  }

  .wod-telemetry-clock {
    width: 100%;
    justify-content: space-between;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(239, 230, 213, 0.12);
    padding-top: 16px;
  }

  .wod-movements-grid,
  .rules-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .wod-move-cell {
    padding: 24px 16px;
    border-right: none;
  }

  .move-big-metric {
    font-size: 2.1rem;
  }

  .barbell-engineering-dock {
    padding: 24px 0 20px;
    gap: 24px;
  }

  .preset-chip {
    flex: 1 1 calc(25% - 8px);
    text-align: center;
    padding: 8px 6px;
    font-size: 0.64rem;
  }

  .barbell-svg-stage {
    height: auto;
    min-height: 95px;
  }

  .barbell-svg-stage svg {
    width: 100%;
    height: auto;
    max-height: 105px;
  }

  /* Gym & Class Rules Poster on Phone */
  .rules-poster-section {
    padding: 64px 0;
  }

  .rules-poster-header {
    margin-bottom: 32px;
  }

  .see-you-badge {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .see-you-badge img {
    height: 32px !important;
  }

  .see-you-yellow {
    font-size: 1.85rem;
  }

  .tomorrow-hanging-sign {
    font-size: 1.25rem;
    padding: 2px 12px;
  }

  .rules-main-title {
    font-size: clamp(1.85rem, 7.5vw, 2.6rem);
    line-height: 1.05;
  }

  .rule-card {
    padding: 20px 18px;
  }

  .rule-card h4 {
    font-size: 1.25rem;
  }

  /* IBEX Games on Phone */
  .games-panorama {
    padding: 24px 18px;
    min-height: 320px;
  }

  .games-panorama-headline {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .impact-cell {
    padding: 26px 16px;
  }

  /* Schedule & Filters on Phone */
  .schedule-filters {
    gap: 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.66rem;
  }

  .day-col {
    border-right: none;
  }

  /* Modal & Footer on Phone */
  .modal-box {
    padding: 24px 18px;
  }

  .footer {
    padding: 44px 0 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.78rem;
  }
}
