/* =========================
   BASE
========================= */
:root {
  --bg: #050505;
  --bg-2: #0d0d0d;
  --bg-3: #141414;
  --line: #1f1f1f;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --accent: #e10600;        /* blood red */
  --accent-2: #ff2a1f;
  --accent-dark: #8a0300;
  --danger: #ff3b30;
  --radius: 14px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; } /* native fallback if Lenis fails to load */

/* Lenis smooth-scroll integration */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Visually hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1.5px;
  line-height: 1.05;
  font-weight: 400;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }

p { color: var(--muted); }

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

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}
.eyebrow.center, .center { text-align: center; }

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
}
.btn--primary {
  background: var(--accent);
  color: #111;
}
.btn--primary {
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 6px 20px rgba(225,6,0,0.25);
}
.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(225,6,0,0.45);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =========================
   NAV
========================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(5,5,5,0.4);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
.nav--scrolled {
  background: rgba(5,5,5,0.85);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  height: 84px;
}
.nav__logo img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

/* Hamburger button — hidden on desktop */
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.nav__toggle span {
  display: block;
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { top: 19px; }
.nav__toggle span:nth-child(3) { top: 25px; }
.nav__toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5,5,5,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 10px 0 20px;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 49;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a {
    padding: 16px 24px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
}

/* =========================
   HERO / BANNER
========================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  opacity: 0.55;
  filter: grayscale(20%) contrast(1.05);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 40%, rgba(225,6,0,0.18), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(138,3,0,0.15), transparent 50%),
    linear-gradient(180deg, rgba(5,5,5,0.65) 0%, rgba(5,5,5,0.88) 60%, var(--bg) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 6px;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 600;
}
.hero__title {
  margin-bottom: 24px;
}
.hero__title span {
  color: var(--accent);
  display: inline-block;
}
.hero__sub {
  max-width: 560px;
  font-size: 1.1rem;
  margin-bottom: 36px;
  color: #cfcfcf;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 2px;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: scroll 2s infinite;
}
@keyframes scroll {
  0% { opacity: 0; transform: scaleY(0.3); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1) translateY(20px); }
}

/* =========================
   STATS
========================= */
.stats {
  background: var(--bg-2);
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stats__grid > div { display: flex; flex-direction: column; gap: 6px; }
.stats__grid strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem;
  color: var(--accent);
  letter-spacing: 2px;
}
.stats__grid span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================
   ABOUT
========================= */
.about { padding: 120px 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about__media {
  position: relative;
  width: 100%;
  padding-bottom: 125%; /* 4:5 aspect ratio guaranteed (no aspect-ratio collapse) */
}
.about__img {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55);
  transition: transform 0.5s ease;
}
.about__img--main {
  top: 0;
  left: 0;
  width: 78%;
  height: 88%;
  background-image: url('eduPosando.png');
  z-index: 1;
}
.about__img--secondary {
  bottom: 0;
  right: 0;
  width: 55%;
  height: 55%;
  background-image: url('sobre_mi/edu2.png');
  border: 4px solid var(--bg);
  z-index: 2;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.7),
    0 0 0 1px rgba(225,6,0,0.35);
}
.about__media:hover .about__img--main { transform: translate(-6px, -6px); }
.about__media:hover .about__img--secondary { transform: translate(6px, 6px); }

.about__img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(225,6,0,0.18), transparent 60%);
  pointer-events: none;
}
.about__img-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(225,6,0,0.45);
  border-radius: var(--radius);
  pointer-events: none;
}
.about__img--secondary .about__img-frame { inset: 8px; }
.about__text p { margin-bottom: 16px; }
.about__text .btn { margin-top: 16px; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 420px; margin: 0 auto; }
}

/* =========================
   SERVICES
========================= */
.services {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services__grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.card--featured {
  background: linear-gradient(180deg, #1a0606, var(--bg-3));
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(225,6,0,0.18);
}
.card__tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}
.card p { margin-bottom: 20px; }
.card ul {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.card ul li {
  padding: 8px 0;
  color: #c9c9c9;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  padding-left: 22px;
}
.card ul li::before {
  content: "→";
  color: var(--accent);
  position: absolute;
  left: 0;
}

@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* =========================
   METHOD (video + pilares)
========================= */
.method {
  position: relative;
  padding: 140px 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, #0a0303 50%, var(--bg) 100%);
  overflow: hidden;
}
.method__glow {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(225,6,0,0.18), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.method__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.method__video-wrap { position: relative; }
.method__video-frame {
  position: relative;
  aspect-ratio: 9 / 14;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(225,6,0,0.4);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(225,6,0,0.15),
    0 0 60px rgba(225,6,0,0.25);
  transform: perspective(1200px) rotateY(-4deg);
  transition: transform 0.6s ease;
}
.method__video-frame:hover { transform: perspective(1200px) rotateY(0deg); }

.method__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(0.9);
}
.method__video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6) 100%),
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(225,6,0,0.15) 100%);
  pointer-events: none;
}
.method__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 8px 14px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
  animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225,6,0,0.6); }
  50%      { box-shadow: 0 0 0 16px rgba(225,6,0,0); }
}

.method__intro {
  font-size: 1.1rem;
  margin: 20px 0 40px;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.pillar {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  background: rgba(20,20,20,0.6);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.pillar:hover {
  border-color: var(--accent);
  background: rgba(30,5,5,0.6);
  transform: translateX(6px);
}
.pillar__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  color: var(--accent);
  letter-spacing: 2px;
  line-height: 1;
  min-width: 60px;
}
.pillar h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.pillar p {
  font-size: 0.95rem;
  color: #b8b8b8;
}

@media (max-width: 900px) {
  .method__grid { grid-template-columns: 1fr; gap: 60px; }
  .method__video-frame {
    transform: none;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 9 / 12;
  }
}

/* =========================
   TIMELINE / TRAYECTORIA
========================= */
.timeline-section {
  padding: 140px 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(225,6,0,0.12), transparent 50%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.timeline__lead {
  color: var(--muted);
  text-align: center;
  margin: 8px auto 80px;
  max-width: 540px;
  font-size: 1.05rem;
}

.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 980px;
}

/* Vertical line — gray base + red animated fill */
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}
.timeline::before {
  background: var(--line);
}
.timeline::after {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  transform-origin: top;
  transform: translateX(-50%) scaleY(var(--timeline-progress, 0));
  transition: transform 0.15s linear;
  box-shadow: 0 0 12px rgba(225,6,0,0.5);
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 30px 50px;
  box-sizing: border-box;
}
.timeline__item:nth-child(odd)  { left: 0;   text-align: right; }
.timeline__item:nth-child(even) { left: 50%; text-align: left; }

/* Dot on the line */
.timeline__marker {
  position: absolute;
  top: 42px;
  width: 18px;
  height: 18px;
  background: var(--bg);
  border: 3px solid var(--line);
  border-radius: 50%;
  z-index: 2;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.timeline__item:nth-child(odd)  .timeline__marker { right: -9px; }
.timeline__item:nth-child(even) .timeline__marker { left:  -9px; }

.timeline__item.is-visible .timeline__marker {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(225,6,0,0.15), 0 0 20px rgba(225,6,0,0.6);
  transform: scale(1.1);
}

/* Card */
.timeline__card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.timeline__card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

/* Pointer triangle facing the line */
.timeline__card::before {
  content: "";
  position: absolute;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: border-color 0.3s ease;
}
.timeline__item:nth-child(odd) .timeline__card::before {
  right: -8px;
  transform: rotate(45deg);
}
.timeline__item:nth-child(even) .timeline__card::before {
  left: -8px;
  transform: rotate(-135deg);
}
.timeline__card:hover::before {
  border-color: var(--accent);
}

.timeline__year {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--accent);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 8px;
}
.timeline__title {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--text);
}
.timeline__place {
  color: #c9c9c9;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.timeline__card > p:last-child {
  font-size: 0.96rem;
  color: var(--muted);
  margin: 0;
}

.timeline__list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline__list li {
  font-size: 0.92rem;
  color: #d4d4d4;
  padding: 8px 12px;
  background: rgba(225,6,0,0.06);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  line-height: 1.45;
}
/* When timeline item is on the right side, list items should align text-left */
.timeline__item:nth-child(odd) .timeline__list li { text-align: right; border-left: none; border-right: 2px solid var(--accent); }
.timeline__item:nth-child(even) .timeline__list li { text-align: left; }

@media (max-width: 760px) {
  .timeline__item:nth-child(odd) .timeline__list li {
    text-align: left;
    border-right: none;
    border-left: 2px solid var(--accent);
  }
}

/* Reveal animation per item — slide from its side */
.timeline__item {
  opacity: 0;
  transform: translateX(0);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline__item:nth-child(odd)  { transform: translateX(-50px); }
.timeline__item:nth-child(even) { transform: translateX(50px); }
.timeline__item.is-visible { opacity: 1; transform: translateX(0); }

/* Mobile: stack on left side with a clearly visible vertical line */
@media (max-width: 760px) {
  .timeline-section { padding: 90px 0; }
  .timeline__lead { margin-bottom: 50px; }
  .timeline { max-width: 100%; padding-left: 4px; }

  /* Base gray line — wider and brighter so it actually reads as a timeline on mobile */
  .timeline::before,
  .timeline::after {
    left: 22px;
    width: 3px;
    transform: none;
  }
  .timeline::before {
    background: linear-gradient(180deg, #2e2e2e 0%, #3a3a3a 50%, #2e2e2e 100%);
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
  }
  .timeline::after {
    transform-origin: top;
    transform: scaleY(var(--timeline-progress, 0));
    box-shadow: 0 0 14px rgba(225,6,0,0.7);
  }

  .timeline__item {
    width: 100%;
    left: 0 !important;
    padding: 14px 0 14px 58px;
    text-align: left !important;
    transform: translateX(40px);
  }
  .timeline__item.is-visible { transform: translateX(0); }

  /* Bigger, always-red markers so the line is clearly punctuated */
  .timeline__item .timeline__marker {
    left: 14px !important;
    right: auto !important;
    top: 26px;
    width: 18px;
    height: 18px;
    border-width: 3px;
    border-color: var(--accent-dark);
    background: var(--bg);
  }
  .timeline__item.is-visible .timeline__marker {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow:
      0 0 0 5px rgba(225,6,0,0.18),
      0 0 22px rgba(225,6,0,0.85);
    transform: scale(1.15);
  }

  .timeline__card {
    padding: 20px 20px;
    border-left: 3px solid var(--accent);
  }
  .timeline__card::before {
    left: -8px !important;
    right: auto !important;
    top: 22px;
    transform: rotate(-135deg) !important;
  }

  /* Year badge: more prominent on mobile so each item visually anchors itself */
  .timeline__year {
    font-size: 1.7rem;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(225,6,0,0.15), transparent 80%);
    border-left: 2px solid var(--accent);
    margin-left: -22px;
    padding-left: 18px;
    margin-bottom: 10px;
  }
  .timeline__title { font-size: 1.15rem; }
  .timeline__place { font-size: 0.78rem; letter-spacing: 1px; }
  .timeline__list li { font-size: 0.88rem; padding: 7px 10px; }
}

/* =========================
   MEDALS / MEDALLERO
========================= */
.medals {
  position: relative;
  padding: 130px 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(225,6,0,0.10), transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(138,3,0,0.12), transparent 50%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.medals__lead {
  color: var(--muted);
  text-align: center;
  margin: 8px auto 60px;
  max-width: 520px;
  font-size: 1.05rem;
}

/* =========================
   MEDALS CAROUSEL
========================= */
.medals-carousel {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 60px;
}

.medals-carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 0 30px;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;      /* IE/Edge legacy */
}
.medals-carousel__track::-webkit-scrollbar { display: none; }

.medals-carousel__track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: var(--radius);
}

.medals-carousel__track .medal-card {
  flex: 0 0 calc((100% - 48px) / 3);  /* 3 cards visible on desktop */
  scroll-snap-align: center;
}

/* Nav buttons */
.medals-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.medals-carousel__nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.08);
  color: #fff;
}
.medals-carousel__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: translateY(-50%);
}
.medals-carousel__nav:disabled:hover {
  background: rgba(20,20,20,0.85);
  border-color: var(--line);
  color: var(--text);
}
.medals-carousel__nav--prev { left: 0; }
.medals-carousel__nav--next { right: 0; }

/* Edge fade overlays so cards don't look chopped */
.medals-carousel::before,
.medals-carousel::after {
  content: "";
  position: absolute;
  top: 0; bottom: 30px;
  width: 60px;
  pointer-events: none;
  z-index: 3;
}
.medals-carousel::before {
  left: 60px;
  background: linear-gradient(90deg, var(--bg-2) 0%, transparent 100%);
}
.medals-carousel::after {
  right: 60px;
  background: linear-gradient(270deg, var(--bg-2) 0%, transparent 100%);
}

/* Dots */
.medals-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.medals-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}
.medals-carousel__dot:hover { background: var(--accent-dark); }
.medals-carousel__dot.is-active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 0 12px rgba(225,6,0,0.6);
}

.medal-card {
  position: relative;
  margin: 0;
  background: linear-gradient(180deg, var(--bg-3) 0%, #0a0a0a 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.4s ease;
}
.medal-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow:
    0 30px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(225,6,0,0.15),
    0 0 50px rgba(225,6,0,0.3);
}

.medal-card__img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
}
.medal-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
  filter: saturate(0.85) contrast(1.05);
}
.medal-card:hover .medal-card__img img {
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.1);
}

/* Sweep shine effect on hover */
.medal-card__shine {
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,0.18) 50%,
    transparent 70%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.medal-card:hover .medal-card__shine { left: 130%; }

/* Subtle frame glow always on */
.medal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.45);
  pointer-events: none;
}

@media (max-width: 900px) {
  .medals { padding: 90px 0; }
  .medals-carousel { padding: 0 50px; }
  .medals-carousel__track .medal-card { flex-basis: calc((100% - 24px) / 2); } /* 2 visible */
  .medals-carousel__nav { width: 44px; height: 44px; }
  .medals-carousel::before { left: 50px; width: 40px; }
  .medals-carousel::after  { right: 50px; width: 40px; }
}

@media (max-width: 600px) {
  .medals-carousel { padding: 0 16px; }
  .medals-carousel__track { gap: 16px; }
  .medals-carousel__track .medal-card { flex-basis: 78%; }  /* 1 visible + peek */
  .medals-carousel__nav { width: 40px; height: 40px; }
  .medals-carousel__nav--prev { left: -4px; }
  .medals-carousel__nav--next { right: -4px; }
  .medals-carousel::before { left: 16px; width: 30px; }
  .medals-carousel::after  { right: 16px; width: 30px; }
}

/* =========================
   RESULTS
========================= */
.results { padding: 120px 0; }
.results__grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.results blockquote {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  padding: 30px;
  border-radius: 6px;
}
.results blockquote p {
  font-style: italic;
  color: #e6e6e6;
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.results blockquote footer {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .results__grid { grid-template-columns: 1fr; }
}

/* =========================
   CTA
========================= */
.cta {
  padding: 100px 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(225,6,0,0.18), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(138,3,0,0.15), transparent 45%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cta__text { margin-top: 12px; font-size: 1.05rem; }
.cta__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-3);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.cta__form input,
.cta__form select {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.cta__form input:focus,
.cta__form select:focus { border-color: var(--accent); }

@media (max-width: 900px) {
  .cta__inner { grid-template-columns: 1fr; }
}

/* =========================
   FOOTER
========================= */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 50px 0 20px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.footer p { font-size: 0.9rem; margin-top: 6px; }
.footer__social { display: flex; gap: 22px; }
.footer__social a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer__social a:hover { color: var(--accent); }
.footer__bottom {
  text-align: center;
  color: #555;
  font-size: 0.8rem;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* =========================
   SCROLL ANIMATIONS
========================= */

/* Base reveal — invisible until .is-visible */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Directional variants */
.reveal--left  { transform: translateX(-60px); }
.reveal--right { transform: translateX(60px); }
.reveal--left.is-visible,
.reveal--right.is-visible { transform: translateX(0); }

.reveal--zoom  { transform: scale(0.9); }
.reveal--zoom.is-visible { transform: scale(1); }

/* Staggered children — set delay via inline style or nth-child */
.reveal--stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal--stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal--stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal--stagger.is-visible > *:nth-child(2) { transition-delay: 0.20s; }
.reveal--stagger.is-visible > *:nth-child(3) { transition-delay: 0.35s; }
.reveal--stagger.is-visible > *:nth-child(4) { transition-delay: 0.50s; }

/* Hero text — animate immediately on load */
.hero__eyebrow,
.hero__title,
.hero__sub,
.hero__cta {
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__eyebrow { animation-delay: 0.2s; }
.hero__title   { animation-delay: 0.45s; }
.hero__sub     { animation-delay: 0.7s; }
.hero__cta     { animation-delay: 0.95s; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Stats counter pop */
.stats__grid.is-visible strong {
  animation: pop 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.stats__grid.is-visible > div:nth-child(1) strong { animation-delay: 0.1s; }
.stats__grid.is-visible > div:nth-child(2) strong { animation-delay: 0.25s; }
.stats__grid.is-visible > div:nth-child(3) strong { animation-delay: 0.4s; }
.stats__grid.is-visible > div:nth-child(4) strong { animation-delay: 0.55s; }

@keyframes pop {
  0%   { transform: scale(0.4); opacity: 0; color: var(--text); }
  60%  { transform: scale(1.15); color: var(--accent-2); }
  100% { transform: scale(1); opacity: 1; color: var(--accent); }
}

/* Pulse glow accent on hover-ready cards once revealed */
.card.is-visible { animation: cardIn 0.8s ease both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Parallax-ish video scale on scroll (driven by JS variable) */
.hero__video {
  transform: scale(calc(1.2 + var(--scroll-progress, 0) * 0.15));
  transition: transform 0.1s linear;
}

/* Section underline that draws in */
section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
section h2.center {
  display: block;
  text-align: center;
  width: 100%;
}
section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
section h2.is-visible::after,
.is-visible h2::after { width: 60px; }
.center h2::after,
h2.center::after { left: 50%; transform: translateX(-50%); }

/* =========================
   RESPONSIVE TIGHTENING
========================= */

/* Tablet */
@media (max-width: 900px) {
  .about,
  .services,
  .results,
  .cta { padding: 90px 0; }
  .method { padding: 100px 0; }

  .cta__inner > div { text-align: left; }
  .pillar { padding: 20px; }
  .pillar__num { font-size: 2.2rem; min-width: 48px; }
}

/* Mobile */
@media (max-width: 600px) {
  .container { padding: 0 18px; }

  .about,
  .services,
  .results { padding: 70px 0; }
  .method { padding: 80px 0; }
  .cta { padding: 70px 0; }
  .stats { padding: 40px 0; }

  /* Hero */
  .hero { padding: 110px 20px 70px; min-height: auto; }
  .hero__video { object-position: 17% center; }
  .hero__eyebrow { letter-spacing: 4px; font-size: 0.7rem; margin-bottom: 18px; }
  .hero__sub { font-size: 1rem; margin-bottom: 28px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; text-align: center; }
  .hero__scroll { display: none; }

  /* Stats — keep 2 columns but shrink numbers so they don't overflow */
  .stats__grid { gap: 20px 16px; }
  .stats__grid strong { font-size: 2.4rem; }
  .stats__grid span { font-size: 0.7rem; letter-spacing: 1.5px; }

  /* About collage — tighten so it doesn't take half the screen */
  .about__media { max-width: 320px; padding-bottom: 112%; }
  .about__img--main { width: 75%; height: 85%; }
  .about__img--secondary { width: 58%; height: 50%; border-width: 3px; }
  .about__text .btn { width: 100%; text-align: center; }

  /* Services */
  .services__grid { margin-top: 40px; gap: 18px; }
  .card { padding: 28px 22px; }
  .card h3 { font-size: 1.4rem; }

  /* Method */
  .method__video-frame { aspect-ratio: 9 / 11; max-width: 320px; }
  .method__badge { font-size: 0.6rem; letter-spacing: 2px; padding: 6px 10px; top: 14px; left: 14px; }
  .method__intro { font-size: 1rem; margin: 16px 0 28px; }
  .pillars { gap: 18px; }
  .pillar { padding: 18px; gap: 16px; }
  .pillar__num { font-size: 1.9rem; min-width: 38px; }
  .pillar h3 { font-size: 1.2rem; }
  .pillar p { font-size: 0.9rem; }

  /* Results */
  .results__grid { margin-top: 40px; }
  .results blockquote { padding: 24px; }
  .results blockquote p { font-size: 0.98rem; }

  /* CTA / Form */
  .cta__form { padding: 24px; }
  .cta__form input,
  .cta__form select { padding: 12px 14px; font-size: 1rem; }
  .cta__form .btn { width: 100%; text-align: center; }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
  }
  .footer__social { flex-wrap: wrap; gap: 16px; }

  /* Section underline center variant — recalc transform */
  .center h2::after { transform: translateX(-50%); }
}

/* Very small */
@media (max-width: 380px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .stats__grid strong { font-size: 2rem; }
  .nav__inner { padding: 14px 18px; }
  .nav__logo { height: 60px; }
}

/* Footer logo larger for visual weight */
.footer .nav__logo { height: 56px; margin-bottom: 6px; }

/* Landscape phones — keep hero usable */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 100px 24px 50px; }
  .hero__scroll { display: none; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--stagger > *,
  .hero__eyebrow, .hero__title, .hero__sub, .hero__cta,
  .stats__grid.is-visible strong, .card.is-visible {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero__video { transform: none !important; }
}
