/* ==========================================================================
   edvlabs Arena — Design System, Typography, 3D Cylindrical Carousel & Layout
   ========================================================================== */

/* --- 1. Custom Fonts (system font stack) --- */
/* --- 2. Design Tokens --- */
:root {
  --color-bg-dark: #1E1E1E;
  --color-bg-dark-transparent: rgba(30, 30, 30, 0);
  --color-bg-light: #E1E1E1;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-border-subtle: rgba(255, 255, 255, 0.15);
  --color-border-dark: rgba(30, 30, 30, 0.2);

  /* Heatmap & Thermal Gradient Palette */
  --heat-1: #213ded;
  --heat-2: #00acd7;
  --heat-3: #00b181;
  --heat-4: #e6c82a;
  --heat-5: #ff3700;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max: 1800px;
  --page-gutter: 5%;
  --radius-sm: 4px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

/* --- 3. Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.25;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  display: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Accessibility: Skip Link & Focus States */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000000;
  background: var(--color-white);
  color: var(--color-black);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--heat-2);
  outline-offset: 3px;
}

/* --- 4. Custom Cursor --- */

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: none;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.custom-cursor.is-active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.custom-cursor img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* --- 5. Page Loader --- */
.page-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 999990;
  background-color: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.4s ease;
}

.page-loader-overlay.is-loaded {
  transform: translateY(100vh);
  opacity: 0;
}

.page-loader-mask {
  width: 220px;
  height: 112px;
  -webkit-mask-image: url('./assets/svg/logo.svg');
  mask-image: url('./assets/svg/logo.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: auto 90%;
  mask-size: auto 90%;
  -webkit-mask-position: center;
  mask-position: center;
  overflow: hidden;
  position: relative;
}

.page-loader-background {
  width: 300%;
  height: 100%;
  background: linear-gradient(to right, #ffffff 8%, #babec6 18%, #ffffff 33%);
  animation: loaderShimmer 1.6s linear infinite;
}

@keyframes loaderShimmer {
  from { transform: translateX(-66%); }
  to { transform: translateX(0%); }
}

/* --- 6. Fixed Header (with mix-blend-mode: difference) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 2rem var(--page-gutter);
  pointer-events: none;
  mix-blend-mode: difference;
}

.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.site-logo {
  pointer-events: auto;
  display: inline-flex;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.03);
}

.site-logo svg {
  width: 126px;
  height: 64px;
}

.menu-dropdown {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
}

.menu-open {
  background: none;
  border: none;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0.25rem 0;
  z-index: 6000;
}

.menu-dropdown__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 0.25rem;
}

.menu-button {
  display: block;
  margin-top: -32px;
  opacity: 0;
  pointer-events: none;
  padding: 0.3rem 0;
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-white);
  transition: margin-top 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.menu-dropdown:hover .menu-button,
.menu-dropdown:focus-within .menu-button,
.menu-dropdown.is-open .menu-button {
  margin-top: 0;
  opacity: 1;
  pointer-events: auto;
}

.menu-button span {
  display: inline-block;
  transition: transform 0.3s ease-out;
}

.menu-button:hover span {
  transform: scale(1.1);
}

/* --- 7. Buttons (.edv-button) --- */
.edv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 18px 32px;
  background-color: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-white);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 0.8em;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.edv-button:hover,
.edv-button:focus-visible {
  background-color: transparent;
  color: var(--color-white);
}

.edv-button--outline {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.edv-button--outline:hover,
.edv-button--outline:focus-visible {
  background-color: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.edv-button--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  border-color: var(--color-bg-dark);
}

.edv-button--dark:hover,
.edv-button--dark:focus-visible {
  background-color: transparent;
  color: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
}

/* --- 8. Section 1: Hero --- */
.hero-home {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 8rem var(--page-gutter) 5rem;
  background: url('./assets/images/wide-1.svg') 50% 50% / cover no-repeat;
  overflow: hidden;
  z-index: 10;
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.25) 0%, rgba(30, 30, 30, 0.85) 100%);
  z-index: 1;
}

.hero-home-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-home__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}

.hero-home__title {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9em;
  max-width: 14ch;
}

.hero-home__aside {
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-home__aside p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  text-align: justify;
}

.hero-home__aside .edv-button {
  width: 100%;
}

/* --- 9. Section 2: Clients Logo Marquee --- */
.clients-home {
  position: relative;
  z-index: 200;
  background-color: var(--color-bg-dark);
  padding: 2rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.clients-marquee:hover {
  animation-play-state: paused;
}

.clients-marquee__group {
  display: flex;
  align-items: center;
  gap: 6vw;
  padding-right: 6vw;
}

.clients-marquee__item {
  width: 6vw;
  height: 6vw;
  max-width: 100px;
  max-height: 100px;
  min-width: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.clients-marquee__item:hover {
  opacity: 1;
}

.clients-marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

/* --- 10. Section 3: About Statement --- */
.about-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: url('./assets/images/wide-2.svg') bottom center / cover no-repeat;
  overflow: hidden;
  z-index: 200;
}

.about-section__overlay {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 6rem var(--page-gutter);
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.92) 0%, rgba(30, 30, 30, 0.35) 50%, rgba(30, 30, 30, 0.95) 100%);
}

.about-section__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-text-scroll {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95em;
  max-width: 1000px;
}

/* ==========================================================================
   11. Section 4 & 5: "Work That Speaks Louder Than Words" + 3D CAROUSEL
   ========================================================================== */
.projects-section-wrapper {
  position: relative;
  background-color: var(--color-bg-dark);
  overflow: hidden;
  z-index: 200;
}

/* Europe Dark-Grey Map Parallax Background (#target in original site) */
.projects-bg-target {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('./assets/svg/map_europe_darkgrey.svg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  will-change: transform;
}

/* Top & Bottom Soft Vignette Gradients */
.projects-bg-reference {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 5rem;
}

.projects-bg-reference::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, rgba(30, 30, 30, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.projects-bg-reference::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(0deg, var(--color-bg-dark) 0%, rgba(30, 30, 30, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.projects-header {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: -4vw;
  pointer-events: none;
}

.work-that-speaks {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 8.5vw, 8rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9em;
  color: var(--color-white);
  text-align: center;
  letter-spacing: -0.01em;
}

/* --- 3D Cylindrical Image Carousel (Exact edvlabs Arena Architecture) --- */
.img-carousel__wrap {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 54vw;
  pointer-events: auto;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.img-carousel__wrap.is-dragging,
.img-carousel__wrap.is-dragging .img-carousel__item,
.img-carousel__wrap.is-dragging .project-listing-overlay {
  cursor: grabbing;
}

.img-carousel__list {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80vw;
  height: 50vw;
  margin-left: auto;
  margin-right: auto;
  font-size: 1vw;
  perspective: 120vw;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  pointer-events: none;
}

.img-carousel__panel {
  position: absolute;
  z-index: 0;
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  width: 13em;
  height: 39em;
  transform-style: preserve-3d;
  pointer-events: none;
}

.img-carousel__panel:nth-of-type(even) {
  justify-content: center;
}

.img-carousel__item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  transform-style: preserve-3d;
  transform: translateZ(0.1px) scale(1.5);
  transform-origin: center center;
}

/* Project Card Inside Each 3D Carousel Item */
.project-listing {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(16px * 2 / 3);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  user-select: none;
}

.project-listing::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(30, 30, 30, 0) 70%, rgba(30, 30, 30, 0.9) 100%);
  pointer-events: none;
  z-index: 1;
}

.project-listing__title-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100%;
}

.project-listing__title {
  font-family: var(--font-sans);
  font-size: calc(16px * 2 / 3);
  font-weight: 300;
  line-height: 1.25em;
  white-space: nowrap;
  background: linear-gradient(to right, #FFFFFF 90%, rgba(255, 255, 255, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-listing-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(16px * 2 / 3);
  background-color: rgba(30, 30, 30, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.project-listing:hover .project-listing-overlay,
.project-listing-overlay:focus-visible {
  opacity: 1;
}

.project-listing-overlay__top {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.project-listing-overlay__top svg {
  width: calc(16px * 2 / 3);
  height: calc(16px * 2 / 3);
  fill: var(--color-white);
}

.project-listing-overlay__center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project-listing-overlay__label {
  font-family: var(--font-sans);
  font-size: calc(20px * 2 / 3);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9em;
  color: var(--color-white);
}

.project-listing-overlay__bottom {
  height: 10px;
}

/* Interactive Carousel Controls Bar (Bonus usability & accessibility) */
.carousel-controls {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.carousel-control-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.carousel-control-btn:hover,
.carousel-control-btn:focus-visible {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

/* Projects Footer CTA Row */
.projects-footer {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--container-max);
  margin: 2rem auto 0;
  padding: 0 var(--page-gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.projects-footer__text {
  max-width: 360px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.35;
  text-align: justify;
  color: rgba(255, 255, 255, 0.9);
}

.projects-footer__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --- 12. Section 8: Services ("Creative precision. Cultural depth.") --- */
.services-section {
  position: relative;
  z-index: 200;
  background-color: var(--color-bg-light);
  color: var(--color-bg-dark);
  padding: 7rem var(--page-gutter);
}

.services-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.creative-precision {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 7.5vw, 8rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9em;
  text-align: center;
  color: var(--color-bg-dark);
}

.services-section__subtitle {
  max-width: 420px;
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 400;
  color: rgba(30, 30, 30, 0.85);
}

.services-cards {
  width: 100%;
  display: flex;
  gap: 1.25rem;
  min-height: 600px;
}

.services-card {
  position: relative;
  width: 100%;
  min-height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-white);
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: width;
}

.services-card:hover,
.services-card:focus-visible {
  width: 200%;
}

.services-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: rgba(30, 30, 30, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: backdrop-filter 0.5s ease-out, -webkit-backdrop-filter 0.5s ease-out, background-color 0.5s ease-out;
  pointer-events: none;
}

.services-card:hover .services-card-overlay,
.services-card:focus-visible .services-card-overlay {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: rgba(30, 30, 30, 0.12);
}

.services-card-overlay-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95em;
  color: var(--color-white);
}

.services-card-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0) 0%, rgba(30, 30, 30, 0.92) 100%);
}

.services-card-content-text {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  max-width: 480px;
}

.services-card:hover .services-card-content-text,
.services-card:focus-visible .services-card-content-text {
  opacity: 1;
  transform: translateY(0);
}

.services-card-content-text p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.services-card-content-text ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 300;
}

/* --- 13. Section 9: Athletes + Image Trail + Team --- */
.culture-platform-wrapper {
  position: relative;
  z-index: 200;
  background-color: var(--color-bg-dark);
  overflow: hidden;
  padding: 7rem 0;
}

/* Football Pitch Rotating Geometric Lines Background */
.track-field-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  z-index: 0;
}

.track-field-col {
  flex: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.track-bg-circle {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
  transform: rotate(-180deg);
}

.athletes-section,
.team-section {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
}

.section-heading-sm {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9em;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Tabs */
.athletes-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 0 var(--page-gutter);
}

.athletes-tab-btn {
  width: 300px;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.athletes-tab-btn[aria-selected="true"],
.athletes-tab-btn:hover {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

/* Horizontal Card Strip / Carousel for Athletes & Team */
.cards-rail-wrap {
  position: relative;
  width: 100%;
  padding: 0 var(--page-gutter);
}

.cards-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
}

.cards-rail--centered {
  justify-content: center;
}

.portrait-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.portrait-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.portrait-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: rgba(30, 30, 30, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portrait-card:hover .portrait-card__overlay,
.portrait-card__overlay:focus-visible {
  opacity: 1;
}

.portrait-card__overlay-top {
  display: flex;
  justify-content: flex-end;
}

.portrait-card__overlay-top svg {
  width: 16px;
  height: 16px;
}

.portrait-card__overlay-center {
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.portrait-card__name {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
}

.portrait-card__role {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

.team-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.team-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.team-contact-link:hover {
  color: var(--color-white);
}

.team-contact-icon {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex-shrink: 0;
  display: inline-block;
}

/* --- Interactive Cursor Image Trail Area (#main-container) --- */
#main-container {
  position: relative;
  overflow: visible;
  padding: 9rem var(--page-gutter);
  z-index: 5;
  will-change: transform;
}

.image-trail {
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 180px;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  border-radius: var(--radius-sm);
  z-index: 1;
  will-change: transform, opacity;
  transform-origin: center center;
  backface-visibility: hidden;
}

.image-trail-content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  pointer-events: none;
}

.image-trail-text {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 300;
  line-height: 1.25em;
  text-align: justify;
  color: var(--color-white);
}

.image-trail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  pointer-events: auto;
}

/* --- 14. Section 10: Ready To Play CTA --- */
.ready-section {
  position: relative;
  z-index: 200;
  min-height: 85vh;
  background-color: var(--color-bg-light);
  color: var(--color-bg-dark);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
}

.ready-section__image {
  background: url('./assets/images/wide-3.svg') center center / cover no-repeat;
  filter: saturate(0);
  min-height: 420px;
}

.ready-section__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem var(--page-gutter);
  gap: 2.5rem;
}

.ready-to-play {
  position: relative;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6.5vw, 6.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9em;
  color: var(--color-bg-dark);
  max-width: 900px;
}

.ready-section__cta {
  position: relative;
  z-index: 2;
}

/* Blurred Heatmap Orbs */
.heatmap-orbs {
  position: absolute;
  right: 5%;
  bottom: 5%;
  width: 420px;
  height: 420px;
  pointer-events: none;
  z-index: 1;
  filter: brightness(0.85) blur(85px);
}

.heatmap-orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.heatmap-orb--1 { background: var(--heat-2); transform: scale(1.4); }
.heatmap-orb--2 { background: var(--heat-3); transform: scale(1.1); }
.heatmap-orb--3 { background: var(--heat-4); transform: scale(0.8); }
.heatmap-orb--4 { background: var(--heat-5); transform: scale(0.5); }

/* --- 15. Section 11: Contact Form --- */
.contact-section {
  position: relative;
  z-index: 200;
  background-color: var(--color-bg-dark);
  padding: 7rem var(--page-gutter);
  overflow: hidden;
}

.contact-section__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}

.lets-talk-about {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 7.5vw, 8rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9em;
  text-align: center;
  max-width: 1100px;
}

.contact-card {
  width: 100%;
  max-width: 800px;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.form-submit-btn {
  width: 100%;
}

.form-status {
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  color: var(--heat-3);
  text-align: center;
  min-height: 1.25rem;
}

/* --- 16. Section 12: FAQ Accordion --- */
.faq-section {
  position: relative;
  z-index: 200;
  background-color: var(--color-bg-light);
  color: var(--color-bg-dark);
  padding: 7rem var(--page-gutter);
}

.faq-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.faq-heading {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 7.5vw, 8rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9em;
  color: var(--color-bg-dark);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-dark);
}

.faq-trigger {
  width: 100%;
  padding: 2rem 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 600;
  color: var(--color-bg-dark);
  cursor: pointer;
}

.faq-trigger__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-trigger[aria-expanded="true"] .faq-trigger__icon {
  transform: rotate(45deg);
}

.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding-bottom 0.35s ease;
}

.faq-panel.is-open {
  max-height: 420px;
  padding-bottom: 2rem;
}

.faq-panel p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(30, 30, 30, 0.85);
  margin-bottom: 0.75rem;
}

.faq-panel a {
  text-decoration: underline;
  font-weight: 500;
}

/* --- 17. Footer --- */
.site-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  padding: 3rem var(--page-gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 200;
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
}

.site-footer__links a:hover {
  color: var(--color-white);
}

/* --- 18. Mobile Project Slider, Dots & Floating Admin Button --- */
.floating-admin-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-pill);
  background: rgba(30, 30, 30, 0.88);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.floating-admin-btn:hover {
  transform: translateY(-2px);
  background: var(--color-bg-dark);
  border-color: var(--heat-2);
}

.floating-admin-btn svg {
  color: var(--heat-2);
}

body.is-preview-iframe .floating-admin-btn {
  display: none !important;
}

.mobile-carousel-mode-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 1.25rem;
  padding: 0.3rem;
  background: rgba(30, 30, 30, 0.08);
  border-radius: var(--radius-pill);
  width: fit-content;
  position: relative;
  z-index: 25;
}

.mobile-mode-btn {
  border: none;
  background: transparent;
  color: var(--color-bg-dark);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-mode-btn.is-active {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.projects-mobile-slider {
  display: none;
  width: 100%;
  padding: 0.5rem 0 1.5rem;
  position: relative;
  z-index: 20;
}

.projects-mobile-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem var(--page-gutter) 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.projects-mobile-track::-webkit-scrollbar {
  display: none;
}

.projects-mobile-card {
  flex: 0 0 400px;
  width: 400px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: center;
  background: #1e1e1e;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.projects-mobile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.projects-mobile-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.05) 45%, rgba(30, 30, 30, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--color-white);
}

.projects-mobile-card__title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--color-white);
}

.slider-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(30, 30, 30, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.slider-dot.is-active {
  background: var(--color-bg-dark);
  transform: scale(1.35);
}

.slider-dots--light .slider-dot {
  background: rgba(255, 255, 255, 0.28);
}

.slider-dots--light .slider-dot.is-active {
  background: var(--color-white);
}

/* --- 19. Responsive Breakpoints (Matching edvlabs.example post-5.css & post-15.css) --- */
@media (max-width: 1200px) {
  .img-carousel__list {
    width: 110vw;
    height: 68vw;
    perspective: 135vw;
  }
}

/* Tablet & Mobile (<= 1024px) */
@media (max-width: 1024px) {
  .work-that-speaks {
    font-size: 96px;
    line-height: 0.9em;
  }

  .hero-section__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 64px;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: 48px;
    line-height: 0.9em;
  }

  .clients-marquee__item {
    width: 10vw;
    height: 10vw;
    min-width: 72px;
    min-height: 72px;
  }

  .about-statement__text {
    font-size: 28px;
    line-height: 1.2em;
  }

  /* Show mobile/tablet mode bar & touch slider by default, or 3D when toggled */
  .mobile-carousel-mode-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.3rem;
    border-radius: var(--radius-pill);
  }

  .carousel-control-btn.is-active-mode {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
    font-weight: 600;
  }

  .projects-section-wrapper:not(.force-3d-mobile) .img-carousel__wrap,
  .projects-section-wrapper:not(.force-3d-mobile) .carousel-controls {
    display: none;
  }

  .projects-section-wrapper:not(.force-3d-mobile) .projects-mobile-slider {
    display: block;
  }

  .projects-section-wrapper.force-3d-mobile .projects-mobile-slider {
    display: none;
  }

  .projects-section-wrapper.force-3d-mobile .img-carousel__wrap {
    display: flex;
  }

  .slider-dots {
    display: flex;
  }

  /* Services cards on tablet/mobile (matching post-15.css lines 699-752) */
  .services-cards {
    flex-direction: column;
    min-height: auto;
    gap: 16px;
  }

  .services-card,
  .services-card:hover {
    width: 100% !important;
    min-height: 400px;
    border-radius: 16px;
    justify-content: flex-end;
  }

  .services-card-overlay {
    position: relative;
    inset: auto;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 32px 32px 0;
  }

  .services-card-overlay-title {
    font-size: 24px;
    text-align: left;
  }

  .services-card-content {
    justify-content: flex-end;
    padding: 16px 32px 32px;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.25) 0%, rgba(30, 30, 30, 0.92) 100%);
  }

  .services-card-content-text {
    opacity: 1 !important;
    transform: none !important;
    max-height: none !important;
    pointer-events: auto !important;
  }

  .services-card-content-text ul {
    padding-left: 1.25rem;
  }

  .creative-precision,
  .lets-talk-about,
  .ready-to-play,
  .faq-heading {
    font-size: 48px;
    line-height: 0.9em;
  }

  .ready-section {
    grid-template-columns: 1fr;
  }

  .ready-section__image {
    min-height: 360px;
  }

  .faq-section__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .custom-cursor {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .image-trail {
    width: 150px;
    height: 112px;
  }
}

/* Mobile (<= 767px - Matching post-5.css & post-15.css exact mobile specs) */
@media (max-width: 767px) {
  :root {
    --page-gutter: 16px;
  }

  body {
    font-size: 14px;
    line-height: 1.3em;
  }

  .site-header {
    padding: 16px var(--page-gutter);
  }

  .site-logo svg {
    width: 88px;
    height: 44px;
  }

  .header-cta {
    width: 74px;
    height: 74px;
  }

  .hero-section__content {
    gap: 36px;
    padding-top: 7.5rem;
    padding-bottom: 2.25rem;
  }

  .hero-title {
    font-size: 32px;
    line-height: 0.9em;
  }

  .hero-meta__text {
    font-size: 14px;
    line-height: 1.3em;
  }

  .btn-pill {
    font-size: 16px;
    line-height: 1.2em;
    padding: 14px 24px;
  }

  /* Clients Marquee: 3 visible, 20vw x 20vw */
  .clients-marquee__item {
    width: 20vw;
    height: 20vw;
    min-width: 64px;
    min-height: 64px;
  }

  /* About Statement Section */
  .about-section__overlay {
    padding: 64px var(--page-gutter);
  }

  .about-statement__text {
    font-size: 20px;
    line-height: 1.2em;
  }

  /* Projects Section */
  .projects-section-wrapper {
    padding: 64px 0;
  }

  .work-that-speaks {
    font-size: 48px;
    line-height: 0.9em;
  }

  .projects-header {
    margin-bottom: 1rem;
    padding: 0 var(--page-gutter);
  }

  .projects-mobile-slider {
    padding: 1rem 0;
  }

  .projects-mobile-card {
    flex: 0 0 300px;
    width: 300px;
    height: 300px;
  }

  .projects-mobile-card__title {
    font-size: 18px;
  }

  .img-carousel__list {
    width: 100vw;
    height: 78vw;
    font-size: 1.45vw;
    perspective: 135vw;
  }

  /* Services Section */
  .services-section {
    padding: 64px var(--page-gutter);
  }

  .creative-precision {
    font-size: 32px;
    line-height: 0.9em;
  }

  .services-card,
  .services-card:hover {
    min-height: 380px;
  }

  .services-card-overlay {
    padding: 16px 16px 0;
  }

  .services-card-content {
    padding: 12px 16px 16px;
  }

  .services-card-overlay-title {
    font-size: 20px;
    line-height: 1.1em;
  }

  .services-card-content-text p,
  .services-card-content-text li {
    font-size: 14px;
    line-height: 1.3em;
  }

  /* Athletes Section */
  .culture-platform-wrapper {
    padding: 64px 0;
  }

  .athletes-section {
    padding: 32px 0;
  }

  .section-heading-sm {
    font-size: 24px;
    line-height: 0.9em;
  }

  .athletes-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .athletes-tab-btn {
    width: fit-content;
    padding: 12px 18px;
    font-size: 14px;
  }

  .cards-rail {
    grid-auto-columns: 280px;
  }

  .portrait-card__name {
    font-size: 20px;
  }

  /* Cursor Trail / Pitch Section */
  #main-container {
    padding: 64px var(--page-gutter);
  }

  .image-trail-text {
    font-size: 20px;
    line-height: 1.25em;
  }

  /* Team Section */
  .team-section {
    padding: 32px 0;
  }

  .cards-rail--centered {
    justify-content: flex-start;
  }

  /* Ready-To-Play CTA Section */
  .ready-section__image {
    min-height: 300px;
  }

  .ready-section__content {
    padding: 64px var(--page-gutter);
  }

  .ready-to-play {
    font-size: 32px;
    line-height: 0.9em;
  }

  /* Contact Section */
  .contact-section {
    padding: 64px var(--page-gutter);
  }

  .lets-talk-about {
    font-size: 32px;
    line-height: 0.9em;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 20px 16px;
  }

  /* FAQ Section */
  .faq-section {
    padding: 64px var(--page-gutter);
  }

  .faq-heading {
    font-size: 32px;
    line-height: 0.9em;
  }

  .faq-trigger {
    font-size: 18px;
    padding: 1.25rem 0;
  }

  .faq-panel p {
    font-size: 14px;
    line-height: 1.3em;
  }

  .floating-admin-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
