.athlete-opening {
  --opening-gold: #ffbe28;
  background: #faf5ed;
}

.athlete-opening-hero {
  display: grid;
  align-items: center;
  min-height: clamp(340px, 34vw, 525px);
  padding-block: clamp(28px, 3vw, 52px);
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse at 76% 48%, #016759 0%, transparent 58%),
    linear-gradient(120deg, #002e2c 0%, #003d37 49%, #005c50 100%);
}

.athlete-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(12px, 4vw, 64px);
  align-items: center;
}

.athlete-time-field {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1.15;
  justify-self: center;
  pointer-events: none;
}

.athlete-time-orbit {
  --direction: normal;
  --pace: linear;
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--track);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--tilt)) scaleY(var(--flatten));
}

.athlete-time-rotation {
  position: absolute;
  inset: 0;
  transform: rotate(var(--phase));
}

.athlete-time-object {
  position: absolute;
  top: 50%;
  left: 100%;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--point);
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--phase))) scaleY(calc(1 / var(--flatten)));
}

/* A counter-rotation keeps each object circular on the tilted elliptical tracks. */
@media (prefers-reduced-motion: no-preference) {
  .athlete-time-rotation { animation: athlete-time-turn var(--period) var(--pace) infinite var(--direction); }
  .athlete-time-object { animation: athlete-time-counter var(--period) var(--pace) infinite var(--direction); }
}

@keyframes athlete-time-turn {
  to { transform: rotate(calc(var(--phase) + 1turn)); }
}

@keyframes athlete-time-counter {
  to { transform: translate(-50%, -50%) rotate(calc(-1 * var(--phase) - 1turn)) scaleY(calc(1 / var(--flatten))); }
}

.athlete-time-linear {
  --x: 52%; --y: 50%; --track: 79%; --tilt: 0deg; --flatten: 1;
  --phase: -58deg; --period: 32s; --size: clamp(9px, 1vw, 14px);
  --line: #8df5d250; --point: var(--opening-gold);
}

.athlete-time-perception {
  --x: 48%; --y: 47%; --track: 41%; --tilt: -34deg; --flatten: .54;
  --phase: 141deg; --period: 13s; --size: clamp(6px, .7vw, 9px);
  --line: #8df5d253; --point: #98ffdf;
}

.athlete-time-social {
  --x: 48%; --y: 54%; --track: 82%; --tilt: -23deg; --flatten: .65;
  --phase: 172deg; --period: 25s; --direction: reverse; --size: clamp(11px, 1.3vw, 18px);
  --line: #2ec7ae65; --point: #2ec7ae;
}

.athlete-time-body {
  --x: 57%; --y: 51%; --track: 61%; --tilt: 33deg; --flatten: .54;
  --phase: 22deg; --period: 21s; --direction: reverse; --pace: cubic-bezier(.52,.25,.48,.75);
  --size: clamp(12px, 1.45vw, 20px); --line: #b0eac444; --point: #a0daba;
}

.athlete-time-biography {
  --x: 53%; --y: 46%; --track: 68%; --tilt: 67deg; --flatten: .61;
  --phase: 253deg; --period: 28s; --size: clamp(13px, 1.6vw, 23px);
  --line: #e9fff34d; --point: #daf4e8;
}

.athlete-time-existence {
  --x: 49%; --y: 51%; --track: 91%; --tilt: 19deg; --flatten: .74;
  --phase: 42deg; --period: 47s; --direction: reverse; --size: clamp(22px, 3.1vw, 43px);
  --line: #8df5d23a; --point: #8df5d26b;
}

.athlete-opening-hero h1 {
  max-width: 8.7em;
  font-size: clamp(32px, 3.7vw, 65px);
  line-height: 1;
  letter-spacing: -.035em;
  margin: 0 0 .27em;
}

.athlete-opening-hero strong { color: #8df5d2; display: block; }
.athlete-opening-hero p { max-width: 32ch; margin: 0 0 .8em; }
.athlete-opening-hero p, .athlete-opening-feature p { font-size: clamp(15px, 1.65vw, 24px); line-height: 1.22; }

.athlete-opening-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 44px;
  padding: .48em 1.18em;
  font-size: clamp(14px, 1.55vw, 22px);
  line-height: 1.1;
  font-weight: 750;
  border: 1px solid #edac20;
  border-radius: 999px;
  background: linear-gradient(#ffe8a2, #ffbc29);
  box-shadow: 0 2px 4px #38230029;
  color: #171a10;
}

.athlete-opening-button:hover { background: #ffe49a; }
.athlete-opening-button > [aria-hidden] { color: #925600; font-size: 1.4em; }
.athlete-opening-hero .athlete-opening-button {
  color: #002c29;
  border-color: transparent;
  background: linear-gradient(105deg, #8affd6, #04e0b7);
}
.athlete-opening-hero .athlete-opening-button:hover { background: #a1ffdf; }
.athlete-opening-hero .athlete-opening-button > [aria-hidden] { color: #003b35; }
.athlete-opening-hero :focus-visible { outline-color: #8df5d2; }

.athlete-opening-axes ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 0;
  padding: clamp(16px, 2.1vw, 30px) 0;
  list-style: none;
}

.athlete-opening-axes li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.8vw, 24px);
  min-width: 0;
  padding-inline: 8px;
  font-size: clamp(13px, 1.65vw, 23px);
  font-weight: 750;
  line-height: 1.04;
  overflow-wrap: anywhere;
}
.athlete-opening-axes li + li { border-inline-start: 1px solid #c7bca9; }
.athlete-opening-axes li span { max-width: 10ch; }
.athlete-opening-axes .athlete-icon,
.athlete-opening-feature > .athlete-icon { width: clamp(27px, 5vw, 63px); }

.athlete-opening .home-athlete,
.athlete-opening-knowledge,
.athlete-opening-perspectives {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(10px, 1.5vw, 19px);
}

.athlete-opening .home-athlete { background-position: center, right 13%; }
.athlete-opening .home-athlete-content { padding-block: clamp(19px, 1.8vw, 34px); }
.athlete-opening .home-athlete p { max-width: 39ch; margin-block: .25em .55em; font-size: clamp(15px, 1.65vw, 23px); line-height: 1.22; }
.athlete-opening .home-athlete-cta { min-height: 44px; }

.athlete-opening-knowledge {
  margin-top: clamp(8px, 1.2vw, 16px);
  background: #fcf2e5;
}

.athlete-opening-knowledge::before,
.athlete-opening-perspectives::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 58%;
  background: url("conhecimento-atleta.png") right center / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent 14%, #000 56%);
}

.athlete-opening-feature {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 28px);
  padding-block: clamp(14px, 1.8vw, 30px);
}

.athlete-opening-feature h2 {
  margin: 0;
  font-size: clamp(24px, 3.1vw, 50px);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.athlete-opening-feature p { margin: .25em 0 .55em; max-width: 45ch; }
.athlete-opening-actions { display: flex; flex-wrap: wrap; gap: .65em 1em; }
.athlete-opening-secondary { background: #faf5ed; font-size: clamp(12px, 1.1vw, 17px); }
.athlete-opening-secondary strong { display: block; }

.athlete-opening-perspectives {
  margin: clamp(12px, 1.7vw, 20px) auto 0;
  width: calc(100% - 32px);
  border: 1px solid #ffce76;
  background: #fbecd4;
}
.athlete-opening-perspectives::before { background-image: url("estadio.webp"); }
.athlete-opening-perspectives .athlete-icon { color: #a35900; }
.athlete-opening-perspectives h2 { font-size: clamp(21px, 2.7vw, 42px); }
.athlete-opening-perspectives p { margin-bottom: 0; }

.athlete-opening .sponsor-strip { padding: 12px 0 8px; background: #faf5ed; }
.athlete-opening .sponsor-card { min-height: clamp(63px, 7.4vw, 105px); box-shadow: none; border-color: #ded5c8; }
.athlete-opening .sponsor-card--featured {
  min-height: clamp(80px, 10vw, 130px);
  background: #00332e;
  border-color: var(--opening-gold);
}
.athlete-opening .sponsor-wordmark { letter-spacing: normal; }
.athlete-opening .sponsor-wordmark small { letter-spacing: inherit; font-size: inherit; margin: 0; }
.athlete-opening .sponsor-control { color: #925600; }
.athlete-opening .sponsor-playback { margin-top: 0; }
.athlete-opening .sponsor-toggle { width: 34px; }
.athlete-premium {
  position: absolute;
  top: -1px;
  inset-inline: 4px;
  margin-inline: auto;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffd044;
  color: #221800;
  font-size: clamp(10px, 1.1vw, 16px);
  font-weight: 800;
  text-transform: uppercase;
}

@media (min-width: 761px) {
  .athlete-opening .home-athlete::before {
    content: "";
    pointer-events: none;
    position: absolute;
    width: 38%;
    aspect-ratio: 1;
    border: 6px solid var(--opening-gold);
    border-radius: 50%;
    right: 5%;
    top: -20%;
    clip-path: inset(0 66% 0 0);
  }
}

@media (max-width: 760px) {
  .athlete-opening-hero { min-height: 0; }
  .athlete-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .athlete-time-field { grid-row: 1; width: min(100%, 315px); }
  .athlete-opening-hero h1 { max-width: 17ch; overflow-wrap: anywhere; }
  .athlete-opening-knowledge::before,
  .athlete-opening-perspectives::before {
    inset-inline-start: 35%;
    opacity: .23;
    mask-image: linear-gradient(90deg, transparent, #000);
  }
  .athlete-opening .sponsor-control:not(.sponsor-toggle) { width: 36px; }
}

@media (max-width: 520px) {
  .athlete-opening-axes ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .athlete-opening-axes li:nth-child(3) { border-inline-start: 0; }
  .athlete-opening-perspectives { width: calc(100% - 12px); }
}
