﻿/* ==========================================================================
   PACE CREATORS HOMEPAGE STYLES
   Design Authority: PACE Creators Mockup
   Enforces: Zero inline styles, fully responsive, plain photo placeholders
   ========================================================================== */

.pace-home,
.pace-homepage-wrapper {
  --pace-yellow: var(--color-primary, #FFDE00);
  --pace-yellow-hover: color-mix(in srgb, var(--pace-yellow) 85%, #000);
  --pace-dark: #0B0D12;
  --pace-dark-secondary: #12141A;
  --pace-dark-card: #161821;
  --pace-dark-border: #222530;
  --pace-gray-light: #F7F8FA;
  --pace-gray-border: #E2E4E8;
  --pace-text-muted: #8E93A0;
  --pace-text-dark: #121418;
  --pace-white: #FFFFFF;
  --pace-max: 1320px;
  background-color: var(--pace-dark);
  color: var(--pace-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

.pace-home *,
.pace-homepage-wrapper * {
  box-sizing: border-box;
}

.pace-home a,
.pace-homepage-wrapper a {
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.pace-container {
  width: min(calc(100% - 48px), var(--pace-max));
  margin-left: auto;
  margin-right: auto;
}

/* Typography Accents & Utility */
.pace-text-yellow {
  color: var(--pace-yellow);
}

.pace-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--pace-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.pace-kicker::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background-color: var(--pace-yellow);
}

/* Plain Photo Placeholder System */
.pace-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #181B22;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  padding: 16px;
  color: #A0A5B2;
}

.pace-photo-placeholder::after {
  content: attr(data-placeholder);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pace-yellow);
  z-index: 2;
}

.pace-photo-placeholder[data-dimension]::before {
  content: attr(data-dimension);
  font-size: 10px;
  color: #6C7280;
  margin-top: 4px;
  order: 2;
  z-index: 2;
}

/* Buttons */
.pace-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pace-button:hover {
  transform: translateY(-2px);
}

.pace-button--yellow {
  background-color: var(--pace-yellow);
  color: var(--pace-dark);
}

.pace-button--yellow:hover {
  background-color: var(--pace-yellow-hover);
}

.pace-button--black {
  background-color: var(--pace-dark);
  color: var(--pace-white);
}

.pace-button--black:hover {
  background-color: #1A1D24;
}

.pace-button--outline-black {
  background: transparent;
  border: 2px solid var(--pace-dark);
  color: var(--pace-dark);
}

.pace-button--outline-black:hover {
  background-color: var(--pace-dark);
  color: var(--pace-yellow);
}

.pace-button--outline-dark {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.35);
  color: var(--pace-dark);
}

.pace-button--outline-dark:hover {
  border-color: var(--pace-dark);
}

.pace-story-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--pace-white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 8px 12px;
}

.pace-story-link:hover {
  color: var(--pace-yellow);
}

.pace-story-link i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-style: normal;
  font-size: 11px;
  color: var(--pace-yellow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pace-story-link:hover i {
  border-color: var(--pace-yellow);
  transform: scale(1.08);
}

/* ==========================================================================
   1. HEADER / NAVIGATION (PACE Mockup Header)
   ========================================================================== */
.pace-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  padding: 24px 0;
}

.pace-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pace-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--pace-white);
}

.pace-logo-mark {
  color: var(--pace-yellow);
  font-size: 22px;
  line-height: 1;
}

.pace-brand-titles {
  display: flex;
  flex-direction: column;
}

.pace-brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  text-transform: uppercase;
}

.pace-brand-sub {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--pace-text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.pace-nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pace-nav-menu a {
  color: #D1D5DB;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.pace-nav-menu a:hover,
.pace-nav-menu a.is-active {
  color: var(--pace-yellow);
}

.pace-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pace-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.pace-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--pace-white);
  margin: 5px 0;
  transition: all 0.2s ease;
}

/* ==========================================================================
   2. HERO SECTION (PACE Full-Bleed Atmospheric Studio)
   ========================================================================== */
.pace-hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  background-color: #07090d;
  overflow: hidden;
}

.pace-hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pace-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 85px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.pace-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.pace-hero-slide .pace-hero-copy {
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  transition-delay: 0.1s;
}

.pace-hero-slide.is-active .pace-hero-copy {
  transform: translateY(0);
  opacity: 1;
}

/* Full-bleed photography background layer spanning full 100vh */
.pace-hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.pace-hero-bg-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

/* Atmospheric vignette & text contrast gradients (right side 100% clear with NO overlay) */
.pace-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #07090d 0%, rgba(7, 9, 13, 0.92) 26%, rgba(7, 9, 13, 0.4) 40%, transparent 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.pace-hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 30px;
  flex: 1;
  position: relative;
  z-index: 2;
  width: 100%;
}

.pace-hero-copy {
  max-width: 680px;
  z-index: 3;
  padding-left:80px;
}

.pace-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #A0A5B5;
  margin-bottom: 22px;
}

.pace-hero .pace-hero-title {
  font-size: clamp(52px, 6.8vw, 92px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.pace-text-solid {
  color: #ffffff;
  font-weight: 900;
}

/* Distinct hollow outline text for "THAN" */
.pace-text-outline {
  color: transparent !important;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
  text-stroke: 1.5px rgba(255, 255, 255, 0.9);
  font-weight: 800;
  display: inline-block;
}

.pace-text-yellow {
  color: #FEE500 !important;
  font-weight: 900;
}

.pace-hero-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #C5C9D3;
  max-width: 480px;
  margin: 0 0 34px;
}

.pace-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pace-hero-actions .pace-button--yellow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FEE500;
  color: #050608 !important;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(254, 229, 0, 0.25);
}

.pace-hero-actions .pace-button--yellow:hover {
  background: #ffffff;
  color: #050608 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.25);
}

.pace-story-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pace-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.25s ease;
  background: rgba(10, 12, 16, 0.35);
  backdrop-filter: blur(4px);
}

.pace-play-icon svg {
  margin-left: 2px;
}

.pace-story-link:hover .pace-play-icon {
  border-color: #FEE500;
  color: #FEE500;
  transform: scale(1.08);
}

.pace-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

/* Removed background wall watermark */
.pace-hero-watermark {
  display: none !important;
}

/* Right-edge vertical scroll indicator */
.pace-hero-scroll {
  position: absolute;
  right: 28px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  z-index: 4;
}

.pace-hero-scroll .pace-scroll-line {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.3);
}

/* Hero Footer Navigation Strip - Floating absolute at the bottom of 100vh photo */
.pace-hero-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 9, 13, 0.65) 100%);
  pointer-events: auto;
}

.pace-hero-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Translucent Capsule for 01 / 03 and Progress Segments matching mockup */
.pace-slider-status {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: rgba(10, 12, 16, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 8px 20px;
}

.pace-slider-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.pace-slider-sep,
.pace-slider-total {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  font-size: 12px;
}

.pace-slider-segments {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pace-slider-seg {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.pace-slider-seg::before {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.pace-slider-seg:hover:not(.is-active) {
  background: transparent;
}

.pace-slider-seg:hover:not(.is-active)::before {
  background: rgba(255, 255, 255, 0.55);
}

.pace-slider-seg.is-active::before {
  background: #FEE500;
  box-shadow: 0 0 10px rgba(254, 229, 0, 0.6);
  transform: scaleY(1.2);
}

.pace-slider-seg:focus-visible,
.pace-slider-btn:focus-visible {
  outline: 2px solid #FEE500;
  outline-offset: 3px;
}

.pace-slider-progress {
  width: clamp(48px, 8vw, 96px);
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.pace-slider-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #FEE500;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s ease;
}

.pace-slider-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pace-slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 17, 23, 0.45);
  backdrop-filter: blur(4px);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.pace-slider-btn:hover {
  border-color: #FEE500;
  color: #FEE500;
  background: rgba(254, 229, 0, 0.12);
  transform: scale(1.06);
}

.pace-slider-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pace-slider-btn:disabled:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(15, 17, 23, 0.45);
  transform: none;
}

@media (max-width: 480px) {
  .pace-hero-footer-inner {
    flex-direction: column;
    gap: 4px;
  }

  .pace-slider-status {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 4px 12px;
  }

  .pace-slider-segments {
    gap: 4px;
  }

  .pace-slider-progress {
    flex-basis: 100%;
    width: 100%;
    max-width: 140px;
  }
}

/* Header Action Button & Navigation matching mockup */
.xb-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.xb-header-btn .pace-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FEE500;
  color: #050608 !important;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 3px 12px rgba(254, 229, 0, 0.2);
}

.xb-header-btn .pace-header-btn:hover {
  background: #ffffff;
  color: #050608 !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   3. DISCIPLINE STRIP (White Background)
   ========================================================================== */
.pace-discipline-strip {
  background: #FFFFFF;
  color: var(--pace-dark-text);
  padding: 28px 0;
  border-bottom: 1px solid var(--pace-gray-border);
}

.pace-discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pace-discipline-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 24px;
  border-right: 1px solid var(--pace-gray-border);
}

.pace-discipline-card:last-child {
  border-right: none;
}

.pace-discipline-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--pace-dark);
  flex-shrink: 0;
}

.pace-discipline-icon-box svg {
  width: 32px;
  height: 32px;
}

.pace-discipline-meta h2 {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.2;
  text-transform: uppercase;
  color: #101217;
}

.pace-discipline-meta small {
  font-size: 12px;
  color: #727785;
  margin-top: 2px;
  display: block;
}

/* ==========================================================================
   4. ABOUT SECTION (Light Background)
   ========================================================================== */
.pace-about {
  background: var(--pace-gray-light);
  color: var(--pace-dark);
  padding: 96px 0;
}

.pace-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 64px;
  position: relative;
}

.pace-about-copy {
  position: relative;
  padding-left: 28px;
}

.pace-vertical-note {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9CA1AE;
  white-space: nowrap;
}

.pace-about h2 {
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 24px;
  color: #101217;
}

.pace-about-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #4B505D;
  margin: 0 0 36px;
  max-width: 480px;
}

.pace-about-media-wrap {
  width: 100%;
  aspect-ratio: 16 / 11;
  position: relative;
}

.pace-about-media-wrap .pace-photo-placeholder {
  height: 100%;
  background: #EAECEF;
  border-color: #CCD0D8;
  color: #6C7280;
}

/* ==========================================================================
   5. SPLIT PATHWAYS (Dance vs Gymnastics)
   ========================================================================== */
.pace-split-section {
  position: relative;
  background: var(--pace-dark);
}

.pace-split-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: none;
  min-height: 420px;
  position: relative;
}

.pace-split-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  overflow: hidden;
}

.pace-split-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.pace-split-bg .pace-photo-placeholder {
  height: 100%;
  border-radius: 0;
  border: none;
}

.pace-split-bg > .pace-photo-img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pace-split-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.pace-split-panel:first-child::after {
  background: linear-gradient(90deg, rgba(11, 13, 18, 0.62) 0%, rgba(11, 13, 18, 0.34) 40%, rgba(11, 13, 18, 0.04) 100%);
}

.pace-split-panel:last-child::after {
  background: linear-gradient(270deg, rgba(11, 13, 18, 0.62) 0%, rgba(11, 13, 18, 0.34) 40%, rgba(11, 13, 18, 0.04) 100%);
}

.pace-split-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 440px;
  text-align: left;
}

.pace-split-panel:first-child {
	justify-content: flex-start;
}

.pace-split-panel:last-child {
	justify-content: flex-start;
}

.pace-split-panel:first-child .pace-split-inner,
.pace-split-panel:last-child .pace-split-inner {
	text-align: left;
}

.pace-split-panel h2 {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.pace-split-tagline {
  font-size: 12px;
  letter-spacing: 2.5px;
  color: #D1D5DB;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.pace-split-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--pace-yellow);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pace-split-panel:last-child .pace-split-link {
	flex-direction: row;
}

.pace-split-link i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--pace-yellow);
  border-radius: 50%;
  font-style: normal;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.pace-split-link:hover i {
  transform: scale(1.12);
}

.pace-split-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: rgba(11, 13, 18, 0.72);
  border: 0;
  padding: 7px 11px;
  border-radius: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(11, 13, 18, 0.2);
}

.pace-split-badge::before {
  content: "";
  position: absolute;
  top: -34px;
  bottom: -34px;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.42);
  transform: translateX(-50%);
  z-index: -1;
}

/* ==========================================================================
   6. GALLERY: LIFE AT PACE (White Background)
   ========================================================================== */
.pace-gallery {
  background: #FFFFFF;
  color: var(--pace-dark);
  padding: 88px 0;
}

.pace-gallery-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 36px !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}

.pace-gallery-header h2 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  color: #101217;
  flex-shrink: 0;
}

.pace-gallery-tabs,
.pace-gallery-header .pace-gallery-tabs {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pace-filter-pill,
.pace-gallery-tabs .pace-filter-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  white-space: nowrap !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 999px !important;
  padding: 9px 22px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  margin: 0 !important;
}

.pace-filter-pill:hover,
.pace-gallery-tabs .pace-filter-pill:hover {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

.pace-filter-pill.is-active,
.pace-filter-pill.active,
.pace-gallery-tabs .pace-filter-pill.is-active,
.pace-gallery-tabs .pace-filter-pill.active {
  background: #FFE500 !important;
  border-color: #FFE500 !important;
  color: #101217 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(255, 229, 0, 0.35) !important;
}

.pace-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pace-gallery-item {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 450;
  overflow: hidden;
  border-radius: 8px;
  background: #141518;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pace-gallery-item > .pace-photo-img,
.pace-gallery-item > .pace-photo-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.pace-gallery-item > .pace-photo-img {
  object-fit: cover;
  object-position: center;
}

.pace-gallery-item[hidden] {
  display: none !important;
}

.pace-gallery-item .pace-photo-placeholder {
  background: #ECEEF2;
  border-color: #D3D7E0;
  color: #585E6D;
  transition: transform 0.2s ease;
}

.pace-gallery-item:hover .pace-photo-placeholder {
  border-color: var(--pace-yellow);
  transform: translateY(-2px);
}

/* ==========================================================================
   7. COACHES / INSTRUCTORS: TRAIN WITH THE MASTERS
   ========================================================================== */
.pace-coaches {
  background: var(--pace-dark);
  padding: 96px 0;
}

.pace-coaches-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 56px;
}

.pace-coaches-intro h2 {
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.pace-coaches-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--pace-text-muted);
  margin: 0 0 32px;
  max-width: 320px;
}

.pace-coaches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.pace-coach-card {
  background: var(--pace-dark-card);
  border: 1px solid var(--pace-dark-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pace-coach-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.pace-coach-photo-wrap .pace-photo-placeholder {
  height: 100%;
  border-radius: 0;
  border: none;
}

.pace-coach-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-right: 40px;
}

.pace-coach-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(12, 14, 20, 0.68);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  backdrop-filter: blur(5px);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

a.pace-coach-social-link:hover,
a.pace-coach-social-link:focus-visible {
  border-color: var(--pace-yellow);
  background: var(--pace-yellow);
  color: var(--pace-dark);
  transform: translateY(-2px);
}

.pace-coach-social-link:not(a) {
  cursor: default;
}

.pace-coach-details {
  padding: 20px 24px;
}

.pace-coach-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pace-coach-profile {
  flex: 1 1 auto;
  min-width: 0;
}

.pace-coach-name {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.pace-coach-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--pace-yellow);
  margin: 0 0 6px;
}

.pace-coach-skills {
  font-size: 12px;
  line-height: 1.45;
  color: var(--pace-text-muted);
  margin: 12px 0 0;
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .pace-coaches-container {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.6fr);
    gap: 40px;
  }

  .pace-coaches-grid {
    width: 100%;
    max-width: 720px;
    justify-self: end;
    gap: 20px;
  }

  .pace-coach-photo-wrap {
    aspect-ratio: 4 / 5;
  }

  .pace-coach-details {
    padding: 16px 18px;
  }
}

/* ==========================================================================
   8. STATISTICS BAR (Black Background)
   ========================================================================== */
.pace-stats {
  background: #050608;
  color: var(--pace-white);
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pace-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.pace-stat-card {
  padding: 10px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.pace-stat-card:last-child {
  border-right: none;
}

.pace-stat-val {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  color: var(--pace-yellow);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
}

.pace-stat-val .xbo {
  display: inline-block;
  font-size: 44px;
  font-weight: 900;
  color: var(--pace-yellow);
  line-height: 1;
}

.pace-stat-val .suffix {
  font-size: 34px;
  font-weight: 900;
  color: var(--pace-yellow);
  line-height: 1;
  margin-left: 2px;
}

.pace-stat-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #D1D5DB;
  line-height: 1.35;
}

/* ==========================================================================
   9. TESTIMONIALS SECTION
   ========================================================================== */
.pace-testimonials {
  background: #0C0E14;
  padding: 96px 0;
}

.pace-testimonial-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
  gap: clamp(24px, 2.5vw, 36px);
}

.pace-testimonial-visual {
  position: relative;
  min-width: 0;
}

.pace-testimonial-media-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.pace-testimonial-media-wrap > .pace-photo-img,
.pace-testimonial-media-wrap > .pace-photo-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pace-testimonial-media-wrap > .pace-photo-img {
  display: block;
  object-fit: contain;
  object-position: center;
}

.pace-testimonial-watermark {
  position: absolute;
  top: 12%;
  left: -8%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.pace-testimonial-watermark,
.pace-cta-script-badge,
.pace-cta-media-wrap .pace-photo-placeholder {
  display: none !important;
}

.pace-testimonial-script {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 24px;
  font-weight: 800;
  color: var(--pace-yellow);
  line-height: 1.1;
  z-index: 3;
  text-align: center;
  transform: translate(-50%, -50%);
}

.pace-testimonial-copy {
  position: relative;
}

.pace-testimonial-copy h2 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.pace-quote-mark {
  display: block;
  font-size: 60px;
  height: 34px;
  line-height: 0.65;
  color: var(--pace-yellow);
  font-family: Georgia, serif;
}

.pace-quote-text {
  font-size: 17px;
  line-height: 1.65;
  color: #D6D9E0;
  margin: 0 0 28px;
  padding-left: 20px;
  border-left: 3px solid var(--pace-yellow);
}

.pace-author-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.pace-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.pace-avatar-wrap .pace-photo-placeholder {
  height: 100%;
  border-radius: 50%;
  padding: 0;
}

.pace-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pace-author-name {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--pace-white);
}

.pace-author-role {
  font-size: 12px;
  color: var(--pace-text-muted);
  margin-top: 2px;
  display: block;
}

.pace-family-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 13px;
  color: var(--pace-yellow);
  font-weight: 600;
}

/* Testimonial Slider Styles */
.pace-testimonials-slider {
  position: relative;
  overflow: hidden;
}

.pace-testimonial-slider-track {
  position: relative;
  width: 100%;
}

.pace-testimonial-slide {
  display: none;
  opacity: 0;
  width: 100%;
}

.pace-testimonial-slide.is-active {
  display: block;
  opacity: 1;
  animation: paceTestimonialFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes paceTestimonialFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pace-testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pace-testimonial-avatar-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pace-testimonial-avatar-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--pace-white);
  opacity: 0.62;
  cursor: pointer;
  transition: border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.pace-testimonial-avatar-btn:hover,
.pace-testimonial-avatar-btn:focus-visible {
  opacity: 1;
  border-color: rgba(254, 208, 0, 0.55);
  outline: none;
}

.pace-testimonial-avatar-btn.is-active {
  border-color: var(--pace-yellow);
  opacity: 1;
  transform: scale(1.05);
}

.pace-testimonial-avatar-media {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 50%;
  background: #272B33;
}

.pace-testimonial-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pace-testimonial-avatar-fallback {
  color: var(--pace-white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.pace-testimonial-more {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--pace-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.pace-testimonial-more strong {
  color: var(--pace-white);
  font-size: 12px;
  font-weight: 600;
}

.pace-testimonial-more strong span {
  display: inline-block;
  margin-left: 4px;
  color: var(--pace-yellow);
}

/* ==========================================================================
   10. FINAL CALL TO ACTION (Yellow Banner)
   ========================================================================== */
.pace-cta-banner {
  background: var(--pace-yellow);
  color: var(--pace-dark);
}

.pace-cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  min-height: 380px;
}

.pace-cta-copy {
  padding: 48px 0;
  padding-right: 36px;
}

.pace-cta-copy h2 {
  font-size: clamp(48px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--pace-dark);
}

.pace-cta-copy p {
  font-size: 16px;
  font-weight: 600;
  color: #2D3038;
  margin: 0 0 32px;
}

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

.pace-cta-media-wrap {
  position: relative;
  height: 100%;
  min-height: 380px;
}

.pace-cta-media-wrap .pace-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* ==========================================================================
   11. FOOTER (Dark Theme)
   ========================================================================== */
.pace-footer {
  background: #08090C;
  color: var(--pace-white);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pace-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.pace-footer-brand-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--pace-text-muted);
  margin-top: 16px;
  max-width: 320px;
}

.pace-footer h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--pace-white);
}

.pace-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pace-footer-links li {
  margin-bottom: 10px;
}

.pace-footer-links a {
  color: #A0A5B2;
  font-size: 13px;
}

.pace-footer-links a:hover {
  color: var(--pace-yellow);
}

.pace-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #A0A5B2;
}

.pace-footer-contact-item a {
  color: #A0A5B2;
}

.pace-footer-contact-item a:hover {
  color: var(--pace-yellow);
}

.pace-social-list {
  display: flex;
  gap: 12px;
}

.pace-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #141720;
  color: var(--pace-white);
  transition: background 0.2s ease, color 0.2s ease;
}

.pace-social-link:hover {
  background: var(--pace-yellow);
  color: var(--pace-dark);
}

.pace-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.pace-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--pace-text-muted);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Desktop, Tablet, Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .pace-nav-menu {
    display: none;
  }
  .pace-menu-toggle {
    display: block;
  }
  .pace-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pace-hero-copy {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 0;
  }
  .pace-hero-actions {
    justify-content: center;
  }
  .pace-hero-photo-wrap {
    margin: 0 auto;
    max-width: 400px;
  }
  .pace-hero-scroll {
    display: none;
  }
  .pace-discipline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pace-discipline-card:nth-child(2) {
    border-right: none;
  }
  .pace-discipline-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--pace-gray-border);
  }
  .pace-about-grid {
    grid-template-columns: 1fr;
  }
  .pace-about-copy {
    padding-left: 0;
  }
  .pace-vertical-note {
    display: none;
  }
  .pace-coaches-container {
    grid-template-columns: 1fr;
  }
  .pace-testimonial-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pace-testimonial-media-wrap {
    height: auto;
    aspect-ratio: 4 / 5;
  }
  .pace-testimonial-nav {
    width: 100%;
    margin-left: 0;
  }
  .pace-cta-grid {
    grid-template-columns: 1fr;
  }
  .pace-cta-copy {
    padding-right: 0;
  }
  .pace-cta-media-wrap {
    min-height: 260px;
  }
  .pace-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-height: 620px) {
  .pace-hero-slide {
    padding-top: 72px;
    padding-bottom: 24px;
  }

  .pace-home .pace-hero .pace-hero-title,
  .pace-homepage-wrapper .pace-hero .pace-hero-title {
    font-size: clamp(34px, 7vh, 58px);
    margin-bottom: 14px;
  }

  .pace-kicker {
    margin-bottom: 12px;
  }

  .pace-home .pace-hero .pace-hero-desc,
  .pace-homepage-wrapper .pace-hero .pace-hero-desc {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .pace-hero-actions {
    gap: 14px;
  }

  .pace-hero-actions .pace-button--yellow {
    padding: 11px 22px;
  }
}

@media (max-width: 768px) {
  .pace-hero-bg-layer img {
    object-position: center center;
  }

  .pace-container {
    width: min(calc(100% - 32px), var(--pace-max));
  }
  .pace-split-container {
    grid-template-columns: 1fr;
  }
  .pace-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pace-coaches-grid {
    grid-template-columns: 1fr;
  }
  .pace-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }
  .pace-stat-card:nth-child(2) {
    border-right: none;
  }
  .pace-footer-grid {
    grid-template-columns: 1fr;
  }
  .pace-footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .pace-testimonial-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .pace-discipline-grid {
    grid-template-columns: 1fr;
  }
  .pace-discipline-card {
    border-right: none;
    border-bottom: 1px solid var(--pace-gray-border);
  }
  .pace-discipline-card:last-child {
    border-bottom: none;
  }
  .pace-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pace-stats-grid {
    grid-template-columns: 1fr;
  }
  .pace-stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .pace-hero-slides,
  .pace-button,
  .pace-story-link i,
  .pace-gallery-item .pace-photo-placeholder,
  .pace-split-link i {
    transition: none !important;
    transform: none !important;
  }

  .pace-slider-progress-fill {
    transition: none !important;
  }
}




/* PACE gallery lightbox and hover styling */
.pace-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.pace-gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 15, 17, 0.65);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pace-gallery-item:hover .pace-gallery-overlay {
  opacity: 1;
}

.pace-gallery-overlay i {
  color: var(--pace-yellow);
  font-size: 26px;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pace-gallery-item:hover .pace-gallery-overlay i {
  transform: scale(1.1);
}

body.pace-gallery-lightbox-open {
  overflow: hidden !important;
}

.pace-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pace-gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.pace-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.pace-gallery-lightbox__inner {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pace-gallery-lightbox__close {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.pace-gallery-lightbox__close:hover {
  background: var(--pace-yellow);
  color: #000000;
  transform: rotate(90deg);
}

.pace-gallery-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pace-gallery-lightbox__nav--prev {
  left: 28px;
}

.pace-gallery-lightbox__nav--next {
  right: 28px;
}

.pace-gallery-lightbox__nav:hover {
  background: var(--pace-yellow);
  color: #000000;
}

.pace-gallery-lightbox__figure {
  margin: 0;
  text-align: center;
  max-width: 1000px;
}

.pace-gallery-lightbox__image {
  max-width: 85vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.pace-gallery-lightbox__placeholder {
  width: 800px;
  max-width: 80vw;
  height: 500px;
  max-height: 60vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.pace-gallery-lightbox__caption {
  margin-top: 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.pace-lightbox-cat {
  display: inline-block;
  background: var(--pace-yellow);
  color: #000000;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 10px;
  vertical-align: middle;
}

/* Laptop sizing: keep the PACE homepage balanced on 13–14 inch screens. */
@media (min-width: 1025px) and (max-width: 1366px) {
  .pace-home .pace-container,
  .pace-homepage-wrapper .pace-container {
    width: min(calc(100% - 64px), 1240px);
  }

  .pace-home .pace-hero,
  .pace-home .pace-hero-slide,
  .pace-homepage-wrapper .pace-hero,
  .pace-homepage-wrapper .pace-hero-slide {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }

  .pace-home .pace-hero-copy,
  .pace-homepage-wrapper .pace-hero-copy {
    padding-left: 48px;
  }

  .pace-home .pace-hero-title,
  .pace-homepage-wrapper .pace-hero-title {
    font-size: clamp(48px, 6vw, 78px);
    margin-bottom: 20px;
  }

  .pace-home .pace-hero-desc,
  .pace-homepage-wrapper .pace-hero-desc {
    font-size: 14px;
    margin-bottom: 26px;
  }

  .pace-home .pace-about,
  .pace-home .pace-coaches,
  .pace-home .pace-testimonials,
  .pace-home .pace-gallery,
  .pace-homepage-wrapper .pace-about,
  .pace-homepage-wrapper .pace-coaches,
  .pace-homepage-wrapper .pace-testimonials,
  .pace-homepage-wrapper .pace-gallery {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .pace-home .pace-about-grid,
  .pace-home .pace-coaches-container,
  .pace-home .pace-testimonial-container,
  .pace-homepage-wrapper .pace-about-grid,
  .pace-homepage-wrapper .pace-coaches-container,
  .pace-homepage-wrapper .pace-testimonial-container {
    gap: 40px;
  }

  .pace-home .pace-testimonial-container,
  .pace-homepage-wrapper .pace-testimonial-container {
    gap: 28px;
  }

  .pace-home .pace-about h2,
  .pace-home .pace-coaches-intro h2,
  .pace-home .pace-testimonial-copy h2,
  .pace-homepage-wrapper .pace-about h2,
  .pace-homepage-wrapper .pace-coaches-intro h2,
  .pace-homepage-wrapper .pace-testimonial-copy h2 {
    font-size: clamp(34px, 3.7vw, 48px);
  }

  .pace-home .pace-about-desc,
  .pace-home .pace-coaches-desc,
  .pace-home .pace-quote-text,
  .pace-homepage-wrapper .pace-about-desc,
  .pace-homepage-wrapper .pace-coaches-desc,
  .pace-homepage-wrapper .pace-quote-text {
    font-size: 14px;
  }

  .pace-home .pace-gallery-header h2,
  .pace-homepage-wrapper .pace-gallery-header h2 {
    font-size: 32px;
  }

  .pace-home .pace-gallery-grid,
  .pace-homepage-wrapper .pace-gallery-grid {
    gap: 12px;
  }

  .pace-home .pace-coaches-grid,
  .pace-homepage-wrapper .pace-coaches-grid {
    gap: 20px;
  }

  .pace-home .pace-coach-details,
  .pace-homepage-wrapper .pace-coach-details {
    padding: 16px 18px;
  }

  .pace-home .pace-coach-details-header,
  .pace-homepage-wrapper .pace-coach-details-header {
    gap: 12px;
  }

  .pace-home .pace-cta-grid,
  .pace-homepage-wrapper .pace-cta-grid {
    min-height: 320px;
  }

  .pace-home .pace-cta-copy,
  .pace-homepage-wrapper .pace-cta-copy {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .pace-home .pace-cta-copy h2,
  .pace-homepage-wrapper .pace-cta-copy h2 {
    font-size: clamp(44px, 5vw, 66px);
  }

  .pace-home .pace-cta-media-wrap,
  .pace-homepage-wrapper .pace-cta-media-wrap {
    min-height: 320px;
  }

  .pace-home .pace-footer,
  .pace-homepage-wrapper .pace-footer {
    padding-top: 60px;
    padding-bottom: 28px;
  }

  .pace-home .pace-footer-grid,
  .pace-homepage-wrapper .pace-footer-grid {
    gap: 28px;
    margin-bottom: 44px;
  }
}

.pace-testimonial-slider,
.pace-testimonial-slider * {
	box-sizing: border-box;
}

.pace-testimonial-slider {
	--pace-testimonial-yellow: var(--color-primary, #ffde00);
	--pace-testimonial-ink: #11120e;
	background: var(--pace-testimonial-yellow);
	color: var(--pace-testimonial-ink);
	padding: clamp(36px, 6vw, 88px) clamp(20px, 4vw, 64px);
}

.pace-testimonial-slider__inner {
	width: min(100%, 1320px);
	margin: 0 auto;
}

.pace-testimonial-slider__slides {
	position: relative;
}

.pace-testimonial-slider__slide {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	align-items: start;
	gap: clamp(24px, 4vw, 56px);
}

.pace-testimonial-slider__slide[hidden] {
	display: none;
}

.pace-testimonial-slider__copy {
	min-width: 0;
}

.pace-testimonial-slider__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	color: rgba(17, 18, 14, 0.68);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-transform: uppercase;
}

.pace-testimonial-slider__reveal {
	opacity: 1;
	transform: none;
}

.pace-testimonial-slider__reveal.is-pending {
	opacity: 0;
	transform: translate3d(-24px, 0, 0);
}

.pace-testimonial-slider__reveal.is-revealed {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pace-testimonial-slider__collage.is-pending {
	transition-delay: 150ms;
}

.pace-testimonial-slider__eyebrow::before {
	width: 20px;
	height: 1px;
	background: currentColor;
	content: "";
}

.pace-testimonial-slider__headline {
	max-width: 20ch;
	margin: 0 0 clamp(16px, 2vw, 24px);
	color: inherit;
	font-family: inherit;
	font-size: clamp(27px, 2.6vw, 40px);
	font-weight: 900;
	line-height: 1.04;
	letter-spacing: -0.045em;
	text-transform: uppercase;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.pace-testimonial-slider__headline > span {
	display: block;
}

.pace-testimonial-slider__headline-highlight {
	color: var(--pace-testimonial-ink);
}

.pace-testimonial-slider .pace-testimonial-slider__quote {
	position: relative;
	margin: 0 0 24px;
	padding: 28px 0 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-family: inherit;
}

.pace-testimonial-slider .pace-testimonial-slider__quote::before {
	position: absolute;
	top: -4px;
	left: 0;
	content: "\201C";
	font-family: Georgia, serif;
	font-size: 54px;
	font-weight: 700;
	line-height: 1;
}

.pace-testimonial-slider .pace-testimonial-slider__quote p {
	max-width: 52ch;
	margin: 0 !important;
	color: inherit;
	font-family: inherit;
	font-size: clamp(14px, 1.15vw, 17px);
	font-weight: 400;
	line-height: 1.55;
}

.pace-testimonial-slider__attribution {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}

.pace-testimonial-slider__name,
.pace-testimonial-slider__role {
	margin: 0;
	color: inherit;
}

.pace-testimonial-slider__name {
	font-size: 16px;
	font-weight: 800;
}

.pace-testimonial-slider__role {
	font-size: 13px;
	font-weight: 500;
}

.pace-testimonial-slider__signature {
	display: block;
	width: auto;
	max-width: min(220px, 70%);
	max-height: 64px;
	margin-top: 12px;
	object-fit: contain;
	object-position: left center;
}

.pace-testimonial-slider__collage {
	display: grid;
	min-width: 0;
	aspect-ratio: 1.38;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.pace-testimonial-slider__image {
	position: relative;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	border-radius: 9px;
	background: rgba(17, 18, 14, 0.08);
}

.pace-testimonial-slider__image--featured {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.pace-testimonial-slider__image--secondary {
	grid-column: 2;
	grid-row: 1;
}

.pace-testimonial-slider__image--video {
	grid-column: 2;
	grid-row: 2;
}

.pace-testimonial-slider__collage.is-single {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
}

.pace-testimonial-slider__collage.is-single .pace-testimonial-slider__image--featured {
	grid-column: 1;
	grid-row: 1;
}

.pace-testimonial-slider__collage.is-no-secondary .pace-testimonial-slider__image--video,
.pace-testimonial-slider__collage.is-no-video .pace-testimonial-slider__image--secondary {
	grid-row: 1 / span 2;
}

.pace-testimonial-slider .pace-testimonial-slider__photo {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.pace-testimonial-slider__video-link {
	position: absolute;
	inset: 0;
	display: block;
	color: inherit;
}

.pace-testimonial-slider__video-link:focus-visible,
.pace-testimonial-slider__arrow:focus-visible,
.pace-testimonial-slider__dot:focus-visible {
	outline: 3px solid #11120e;
	outline-offset: 4px;
}

.pace-testimonial-slider__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	width: clamp(48px, 5vw, 68px);
	aspect-ratio: 1;
	place-items: center;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(17, 18, 14, 0.72);
	transform: translate(-50%, -50%);
	transition: transform 180ms ease-out, background-color 180ms ease-out;
}

.pace-testimonial-slider__play span {
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-left: 13px solid #fff;
}

.pace-testimonial-slider__video-link:hover .pace-testimonial-slider__play {
	background: #11120e;
	transform: translate(-50%, -50%) scale(1.08);
}

.pace-testimonial-slider__controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 22px;
}

.pace-testimonial-slider__arrow {
	display: grid;
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	place-items: center;
	padding: 0;
	border: 1px solid var(--pace-testimonial-ink);
	border-radius: 50%;
	background: transparent;
	color: var(--pace-testimonial-ink);
	font: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: color 160ms ease-out, background-color 160ms ease-out;
}

.pace-testimonial-slider__arrow:hover {
	background: var(--pace-testimonial-ink);
	color: var(--pace-testimonial-yellow);
}

.pace-testimonial-slider__pagination {
	display: flex;
	align-items: center;
	gap: 7px;
}

.pace-testimonial-slider__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 1px solid var(--pace-testimonial-ink);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: transform 160ms ease-out, background-color 160ms ease-out;
}

.pace-testimonial-slider__dot.is-active {
	background: var(--pace-testimonial-ink);
	transform: scale(1.2);
}

.pace-testimonial-slider__empty {
	padding: 20px;
	border: 1px dashed currentColor;
	color: #11120e;
	font-size: 14px;
}

@media (max-width: 767px) {
	.pace-testimonial-slider {
		padding: 36px 20px;
	}

	.pace-testimonial-slider__slide {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.pace-testimonial-slider__headline {
		max-width: 22ch;
		font-size: clamp(26px, 7vw, 36px);
	}

	.pace-testimonial-slider__collage {
		aspect-ratio: 1.2;
		gap: 8px;
	}

	.pace-testimonial-slider__controls {
		margin-top: 16px;
	}
}

@media (max-width: 420px) {
	.pace-testimonial-slider__collage {
		aspect-ratio: 1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: minmax(0, 1.25fr) minmax(0, 0.75fr);
	}

	.pace-testimonial-slider__image--featured {
		grid-column: 1 / span 2;
		grid-row: 1;
	}

	.pace-testimonial-slider__image--secondary {
		grid-column: 1;
		grid-row: 2;
	}

	.pace-testimonial-slider__image--video {
		grid-column: 2;
		grid-row: 2;
	}

	.pace-testimonial-slider__collage.is-single {
		aspect-ratio: 1.25;
		grid-template-rows: minmax(0, 1fr);
	}

	.pace-testimonial-slider__collage.is-no-secondary .pace-testimonial-slider__image--video,
	.pace-testimonial-slider__collage.is-no-video .pace-testimonial-slider__image--secondary {
		grid-row: 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pace-testimonial-slider__reveal,
	.pace-testimonial-slider__reveal.is-pending,
	.pace-testimonial-slider__reveal.is-revealed {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
