:root {
  --bg: #081a33;
  --bg-deep: #061223;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.74);
  --line: rgba(255, 255, 255, 0.14);
  --red: #ce0909;
  --blue: #0d529d;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  --radius: 4px;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Archivo", sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(206, 9, 9, 0.18), transparent 22%),
    linear-gradient(245deg, rgba(13, 82, 157, 0.22), transparent 28%),
    linear-gradient(180deg, #081a33 0%, #0a2547 42%, #071426 100%);
}

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

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

button {
  font: inherit;
}

.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;
}

.page-glow {
  position: fixed;
  inset: auto auto -12rem -12rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(206, 9, 9, 0.16), transparent 65%);
  pointer-events: none;
  filter: blur(20px);
}

.court-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 180px 180px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 85%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: var(--container);
  margin: 18px auto 0;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr auto;
  align-items: center;
  gap: 18px;
  background: rgba(6, 18, 35, 0.92);
  border: 1px solid var(--line);
  border-radius: 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.brand-text {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
}

.site-nav a,
.lang-btn {
  color: var(--muted);
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--white);
}

.lang-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
}

.lang-select-wrap {
  display: none;
}

.lang-select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
}

.lang-btn {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 8px 12px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 800;
}

.lang-btn.is-active {
  background: var(--red);
  color: var(--white);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 0;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

main,
.site-footer {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.panel h2 {
  margin: 0;
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.4rem, 7.2vw, 5.9rem);
  max-width: 100%;
  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;
}

.section-heading h2,
.panel h2 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.hero-lead,
.section-intro,
.bio-panel p,
.site-footer p,
.weapon-card p,
.timeline-copy,
.trophy-card li,
.wins-list li,
.team-card p,
.trivia-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.button-ghost {
  background: rgba(13, 82, 157, 0.16);
  color: var(--white);
}

.hero-stats,
.facts-grid,
.weapon-grid,
.timeline-list,
.trophy-layout,
.team-grid,
.quotes-grid,
.trivia-grid {
  display: grid;
  gap: 14px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.fact-card,
.weapon-card,
.timeline-item,
.trophy-card,
.panel,
.quote-card,
.trivia-card,
.team-card,
.bio-panel,
.facts-panel,
.ranking-chart {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.stat-card,
.fact-card,
.weapon-card,
.team-card,
.trivia-card {
  padding: 20px;
}

.stat-label,
.fact-label,
.team-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value,
.fact-value {
  display: block;
  font-size: 1.08rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-height: 660px;
  min-width: 0;
}

.hero-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.hero-card img {
  height: 100%;
  object-fit: cover;
}

.hero-card-main {
  inset: 0;
}

.hero-card-main::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(6, 18, 35, 0.5) 50%, rgba(6, 18, 35, 0.92));
}

.hero-card-main img {
  object-position: center top;
}

.tennis-ball {
  position: absolute;
  right: -18px;
  bottom: 24px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff, #f6ff8b 45%, #dbe033 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  animation: drift 5.8s ease-in-out infinite;
}

.tennis-ball::before,
.tennis-ball::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.74);
}

.tennis-ball::before {
  clip-path: inset(0 40% 0 0);
}

.tennis-ball::after {
  clip-path: inset(0 0 0 40%);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.bio-layout,
.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.photo-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.photo-card img {
  height: 100%;
  object-fit: cover;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(8, 26, 51, 0.08), rgba(8, 26, 51, 0.78));
}

.bio-panel,
.facts-panel,
.panel,
.trophy-card,
.quote-card {
  padding: 24px;
}

.facts-grid,
.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weapon-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.weapon-card {
  position: relative;
  overflow: hidden;
  padding-left: 24px;
}

.weapon-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--red), var(--blue));
}

.weapon-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: rgba(13, 82, 157, 0.18);
  color: var(--white);
  font-weight: 800;
}

.weapon-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.weapon-card h3,
.trophy-card h3,
.footer-title {
  margin: 0 0 14px;
  text-transform: uppercase;
}

.ranking-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ranking-legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ranking-legend i {
  width: 28px;
  height: 3px;
  display: inline-block;
}

.legend-singles {
  background: var(--red);
}

.legend-doubles {
  background: var(--blue);
}

.ranking-chart {
  margin-bottom: 14px;
  overflow: hidden;
}

.ranking-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.chart-axis-label,
.chart-year-label {
  fill: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-family: "Archivo", sans-serif;
}

.chart-line-singles,
.chart-line-doubles {
  fill: none;
  stroke-width: 4;
}

.chart-line-singles {
  stroke: var(--red);
}

.chart-line-doubles {
  stroke: var(--blue);
}

.chart-point-singles,
.chart-point-doubles {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
}

.chart-point-singles {
  fill: var(--red);
}

.chart-point-doubles {
  fill: var(--blue);
}

.chart-label {
  fill: #ffffff;
  font-size: 12px;
  font-weight: 700;
  font-family: "Archivo", sans-serif;
}

.timeline-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-item {
  padding: 18px 18px 16px;
  border-left: 4px solid var(--blue);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  align-items: center;
}

.timeline-year {
  color: var(--red);
  font-size: 1.15rem;
  font-weight: 900;
}

.timeline-ranks {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trophy-layout,
.quotes-grid,
.trivia-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clean-list,
.wins-list {
  padding-left: 18px;
  margin: 0;
}

.compact {
  margin-bottom: 20px;
}

.quote-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-card p {
  margin: 0 0 14px;
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-mark {
  color: var(--blue);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trivia-card {
  min-height: 160px;
}

.site-footer {
  padding: 30px 0 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 900;
}

.footer-link {
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-meta {
  width: var(--container);
  margin-inline: auto;
  margin-top: 22px;
  padding: 18px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-recommendations {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  line-height: 1.7;
}

.footer-recommendations a {
  color: rgba(255, 255, 255, 0.68);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -20px, 0) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tennis-ball {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .hero,
  .bio-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .weapon-grid,
  .trophy-layout,
  .quotes-grid,
  .trivia-grid,
  .timeline-list,
  .photo-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 0;
    padding: 12px;
    row-gap: 8px;
    column-gap: 10px;
  }

  .nav-toggle {
    display: inline-block;
    grid-column: 2;
    grid-row: 1;
  }

  .lang-switcher {
    display: none;
  }

  .lang-select-wrap {
    display: block;
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 14px 0 4px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-stats,
  .facts-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .brand-text {
    font-size: 0.82rem;
    max-width: none;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 28px, 100%);
  }

  .section {
    padding: 68px 0;
  }

  .site-header {
    margin-top: 12px;
  }

  .brand {
    max-width: calc(100vw - 88px);
  }

  .brand-text {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 4.6rem);
    line-height: 0.95;
  }

  .lang-btn {
    padding: 7px 9px;
    font-size: 0.74rem;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .weapon-grid,
  .trophy-layout,
  .quotes-grid,
  .trivia-grid,
  .timeline-list,
  .photo-band {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }

  .tennis-ball {
    width: 52px;
    height: 52px;
    right: -12px;
    bottom: 18px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 72px;
  }

  .footer-meta {
    margin-top: 18px;
    padding: 16px 0 42px;
  }

  .photo-card {
    min-height: 240px;
  }
}
