/* Raggioli eSports — Archive edition, gaming/esports visual system.
   Angular cut-corner panels, neon falcon-green glow, diagonal accents,
   condensed technical type. Dark ground stays from the previous pass. */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Orbitron:wght@600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --color-base: #08090a;
  --color-surface: #101315;
  --color-surface-2: #171b1e;
  --color-ink: #f2f6f3;
  --color-muted: #9aa5a1;
  --color-faint: #5c6663;
  --color-line: #ffffff14;
  --color-line-strong: #d7ff0033;

  --color-accent: #d7ff00;
  --color-accent-2: #8fe000;
  --color-chrome: #c7ccce;
  --color-flare: #eaff66;
  --color-danger: #ff3d5a;

  --grad-heat: linear-gradient(100deg, var(--color-chrome) 0%, var(--color-accent) 45%, var(--color-flare) 100%);
  --grad-glow:
    radial-gradient(52rem 34rem at 14% 10%, #d7ff0022, transparent 62%), radial-gradient(46rem 30rem at 92% -6%, #8fe00018, transparent 60%),
    radial-gradient(60rem 40rem at 50% 120%, #ffffff08, transparent 60%);

  --glow-sm: 0 0 12px 0 #d7ff0055;
  --glow-md: 0 0 28px 2px #d7ff0040;
  --glow-lg: 0 0 60px 6px #d7ff0033;
  --glow-text: 0 0 18px #d7ff0080, 0 0 40px #d7ff0030;

  --cut: 16px;
  --cut-sm: 10px;

  --font-display: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
  --font-accent: 'Orbitron', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1280px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-base);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: repeating-linear-gradient(115deg, #ffffff05 0 1px, transparent 1px 68px);
}

img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ---------- Angular panel utility ---------- */
.angled {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.angled-sm {
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline;
  max-width: 100%;
}

.eyebrow .dot {
  display: inline-block;
  vertical-align: middle;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  margin-bottom: 2px;
  background: var(--color-accent);
  box-shadow: var(--glow-sm);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.eyebrow-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-faint);
  letter-spacing: 0.1em;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(32px, 5vw, 56px);
  position: relative;
  padding-left: 18px;
  border-left: 3px solid var(--color-accent);
  box-shadow: -12px 0 24px -12px #d7ff0055;
}

.section-head h2 {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.02;
  font-style: italic;
}

.section-head .accent-line {
  background: var(--grad-heat);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 22px #d7ff0055);
}

.section-head p {
  max-width: 640px;
  color: var(--color-muted);
  font-size: 15px;
  margin: 0;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--color-base) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.site-nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.5;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 17px;
  text-transform: uppercase;
  font-style: italic;
}

.brand img {
  height: 30px;
  width: auto;
  filter: drop-shadow(0 0 10px #d7ff0060);
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-base);
  background: var(--color-accent);
  padding: 4px 10px 4px 8px;
  box-shadow: var(--glow-sm);
  margin-left: 6px;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}

.nav-links {
  display: flex;
  gap: 30px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s var(--ease-smooth);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  box-shadow: var(--glow-sm);
  transition: width 0.3s var(--ease-out-expo);
}
.nav-links a:hover {
  color: var(--color-ink);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-muted);
}
.nav-social a {
  transition:
    color 0.3s var(--ease-smooth),
    filter 0.3s var(--ease-smooth);
}
.nav-social a:hover {
  color: var(--color-accent);
  filter: drop-shadow(0 0 8px #d7ff0080);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 96px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--grad-glow);
}

.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 130%;
  background: linear-gradient(100deg, transparent 40%, #d7ff0008 48%, #d7ff0016 50%, #d7ff0008 52%, transparent 60%);
  transform: skewX(-12deg);
  pointer-events: none;
}

.hero-title-row {
  width: 100%;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-inner {
  max-width: 560px;
}

.hero .eyebrow {
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 0.98;
  font-style: italic;
}

.hero h1 span.hl {
  background: var(--grad-heat);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 30px #d7ff0060);
}

.hero-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--color-line-strong);
  background: color-mix(in srgb, var(--color-surface) 45%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  box-shadow: var(--glow-md);
}

.hero-video-glass {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
    aspect-ratio: 16 / 9;
  }
}

.hero-lede {
  margin-top: 28px;
  max-width: 620px;
  color: var(--color-muted);
  font-size: clamp(15px, 1.6vw, 17px);
}

.hero-lede b {
  color: var(--color-ink);
  font-weight: 600;
}
.hero-lede a {
  border-bottom: 1px solid var(--color-line-strong);
  color: var(--color-ink);
}
.hero-lede a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.btn {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition:
    transform 0.3s var(--ease-out-expo),
    background 0.3s var(--ease-smooth),
    color 0.3s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth);
}

.btn-solid {
  background: var(--color-accent);
  color: var(--color-base);
  box-shadow: var(--glow-md);
}
.btn-solid:hover {
  transform: translateY(-2px);
  background: var(--color-flare);
  box-shadow: var(--glow-lg);
}

.btn-ghost {
  border: 1px solid var(--color-line-strong);
  color: var(--color-ink);
  background: #ffffff06;
}
.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--glow-md);
}

/* ---------- Marquee ---------- */
.marquee-band {
  position: relative;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, #d7ff0008, transparent 20%, transparent 80%, #d7ff0008);
}

.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 32s linear infinite;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-faint);
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee-track b {
  color: var(--color-muted);
  font-weight: 600;
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .eyebrow .dot {
    animation: none;
  }
}

/* ---------- Sections ---------- */
section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}
section.alt {
  background: var(--color-surface);
}
section.alt::before,
section.alt::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-line-strong) 20%, var(--color-line-strong) 80%, transparent);
}
section.alt::before {
  top: 0;
}
section.alt::after {
  bottom: 0;
}

/* ---------- Stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-cell {
  background: var(--color-base);
  border: 1px solid var(--color-line);
  padding: 30px 26px;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  transition:
    border-color 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth),
    transform 0.3s var(--ease-out-expo);
}
section.alt .stat-cell {
  background: var(--color-surface);
}
.stat-cell:hover {
  border-color: var(--color-accent);
  box-shadow: var(--glow-md);
  transform: translateY(-3px);
}

.stat-num {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--color-ink);
}
.stat-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
}

@media (max-width: 760px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Nations row ---------- */
.nations-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.nation-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 12px;
  border: 1px solid var(--color-line);
  background: var(--color-base);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}
section.alt .nation-chip {
  background: var(--color-surface);
}
.flag-icon {
  width: 20px;
  height: 14px;
  object-fit: cover;
  flex: none;
  display: block;
  border-radius: 2px;
  outline: 1px solid #ffffff1a;
}

/* ---------- Titles spotlight (recent highlights) ---------- */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.spotlight-card {
  position: relative;
  background: var(--color-base);
  border: 1px solid var(--color-line-strong);
  overflow: hidden;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  transition:
    box-shadow 0.4s var(--ease-smooth),
    transform 0.4s var(--ease-out-expo);
}
.spotlight-card:hover {
  box-shadow: var(--glow-lg);
  transform: translateY(-4px);
}

.spotlight-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease-out-expo);
}
.spotlight-card:hover .spotlight-media img {
  transform: scale(1.05);
}

/* Slideshow variant: 2+ images cross-fading, ~5s per slide */
.spotlight-media.slideshow img {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: spotlight-crossfade 10s infinite;
}
.spotlight-media.slideshow img:nth-child(1) {
  animation-delay: 0s;
}
.spotlight-media.slideshow img:nth-child(2) {
  animation-delay: 5s;
}

@keyframes spotlight-crossfade {
  0%,
  4% {
    opacity: 0;
  }
  8%,
  42% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-media.slideshow img {
    animation: none;
    opacity: 0;
  }
  .spotlight-media.slideshow img:nth-child(1) {
    opacity: 1;
  }
}

.spotlight-tag {
  position: absolute;
  top: 16px;
  left: -1px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-base);
  background: var(--color-accent);
  padding: 6px 14px 6px 10px;
  box-shadow: var(--glow-sm);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.spotlight-body {
  padding: 20px 22px 24px;
}
.spotlight-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent);
  letter-spacing: 0.08em;
}
.spotlight-title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  text-transform: none;
  font-style: normal;
  color: var(--color-ink);
}
.spotlight-winner {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 13.5px;
}

@media (max-width: 900px) {
  .spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}

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

/* ---------- Titles ledger (compact list of every title) ---------- */
.driver-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.driver-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  cursor: pointer;
  transition:
    background 0.2s var(--ease-smooth),
    color 0.2s var(--ease-smooth),
    border-color 0.2s var(--ease-smooth);
}
.driver-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-ink);
}
.driver-chip.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #0a0a0a;
}

/* ---------- Titles timeline (compact per-year accordion) ---------- */
.timeline-years {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.year-group {
  border: 1px solid var(--color-line);
  background: color-mix(in srgb, var(--color-surface) 35%, transparent);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: border-color 0.25s var(--ease-smooth);
}
.year-group.is-open {
  border-color: var(--color-accent);
}

.year-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.year-toggle-num {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
  background: var(--grad-heat);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.year-toggle-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.year-toggle-chevron {
  color: var(--color-muted);
  transition: transform 0.3s var(--ease-out-expo), color 0.25s var(--ease-smooth);
}
.year-toggle:hover .year-toggle-chevron {
  color: var(--color-accent);
}
.year-group.is-open .year-toggle-chevron {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.acc-enter-active,
.acc-leave-active {
  transition: opacity 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
}
.acc-enter,
.acc-leave-to {
  opacity: 0;
  transform: translateY(-8px);
}

.timeline {
  position: relative;
  padding: 4px 22px 22px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 22px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
      transparent,
      var(--color-line-strong) 4%,
      var(--color-line-strong) 96%,
      transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: start;
  margin-bottom: 20px;
}

.timeline-node {
  position: relative;
  z-index: 1;
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-line-strong);
  box-shadow: 0 0 0 4px var(--color-base);
  transition:
    border-color 0.25s var(--ease-smooth),
    box-shadow 0.25s var(--ease-smooth),
    transform 0.25s var(--ease-smooth);
}
.timeline-num {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 10.5px;
  color: var(--color-faint);
  transition: color 0.25s var(--ease-smooth);
}
.timeline-item:hover .timeline-node {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-base), var(--glow-sm);
  transform: scale(1.12);
}
.timeline-item:hover .timeline-num {
  color: var(--color-accent);
}

.timeline-card {
  grid-column: 1;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  text-align: right;
  padding: 12px 20px;
  background: color-mix(in srgb, var(--color-surface) 50%, transparent);
  border: 1px solid var(--color-line);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition:
    border-color 0.25s var(--ease-smooth),
    background 0.25s var(--ease-smooth);
}
.timeline-item.tl-right .timeline-card {
  grid-column: 3;
  justify-self: start;
  text-align: left;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.timeline-item:hover .timeline-card {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
}

.timeline-title {
  font-size: 16.5px;
  font-weight: 500;
  color: var(--color-ink);
}
.timeline-title b {
  font-weight: 700;
}
.ledger-trophy {
  display: inline-block;
  margin-right: 7px;
  font-size: 13px;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px #d7ff0060);
}
.timeline-winner {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  transition: color 0.25s var(--ease-smooth);
}
.timeline-item:hover .timeline-winner {
  color: var(--color-ink);
}

@media (max-width: 760px) {
  .timeline {
    padding: 4px 14px 22px;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item,
  .timeline-item.tl-right {
    grid-template-columns: 40px 1fr;
  }
  .timeline-node {
    grid-column: 1;
    justify-self: start;
    margin-left: 3px;
  }
  .timeline-card,
  .timeline-item.tl-right .timeline-card {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    max-width: none;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  }
}

.footnote {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--color-faint);
  max-width: 720px;
  line-height: 1.7;
}
.footnote b {
  color: var(--color-muted);
}

/* ---------- Closing chapter callout ---------- */
.callout {
  margin-top: 56px;
  border: 1px solid var(--color-line-strong);
  background: linear-gradient(160deg, var(--color-surface), var(--color-base));
  padding: clamp(26px, 4vw, 42px);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(34rem 22rem at 90% -10%, #d7ff0022, transparent 60%);
  pointer-events: none;
}
.callout-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.callout-media {
  max-width: 640px;
  margin: 4px auto 24px;
  border: 1px solid var(--color-line-strong);
  overflow: hidden;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.callout-media img {
  width: 100%;
  height: auto;
  display: block;
}
.callout h3 {
  font-size: 20px;
  text-transform: none;
  letter-spacing: 0;
  font-style: normal;
  text-align: center;
}
.callout p {
  color: var(--color-muted);
  font-size: 14.5px;
  margin: 12px auto 0;
  max-width: 760px;
  line-height: 1.7;
  text-align: center;
}

.callout-results {
  margin: 20px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  max-width: 640px;
}
.callout-results li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--color-faint);
}
.callout-results li span {
  flex: 1;
}
.callout-results li b {
  color: var(--color-accent);
  font-weight: 600;
}

.callout-drivers {
  margin: 10px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  max-width: 640px;
}
.callout-drivers li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--color-ink);
}

@media (max-width: 640px) {
  .callout-results,
  .callout-drivers {
    grid-template-columns: 1fr;
  }
}

/* ---------- Notable results grid ---------- */
.hof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.hof-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  overflow: hidden;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  transition:
    border-color 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth),
    transform 0.35s var(--ease-out-expo);
}
.hof-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--glow-md);
  transform: translateY(-4px);
}

.hof-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-surface-2);
  position: relative;
}
.hof-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}
.hof-card:hover .hof-media img {
  transform: scale(1.06);
}

.hof-body {
  padding: 16px 18px 18px;
}
.hof-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--color-ink);
}
.hof-winner {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--color-muted);
}

/* ---------- Jerseys ---------- */
.jersey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.jersey-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
  transition:
    border-color 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth);
}
.jersey-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--glow-md);
}

.jersey-media {
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, var(--color-surface-2), var(--color-surface));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.jersey-media img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
}

.about-media {
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jersey-body {
  padding: 16px 18px 20px;
}
.jersey-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  font-style: italic;
}
.jersey-role {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

@media (max-width: 760px) {
  .jersey-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }
}

.jersey-note {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--color-faint);
  max-width: 720px;
  line-height: 1.7;
}
.jersey-note a {
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-line-strong);
}
.jersey-note a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ---------- Livery design ---------- */
.livery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.livery-panel {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
}

.livery-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('../img/logo/2024/falco.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 62%;
  opacity: 0.16;
  filter: grayscale(1) brightness(1.6);
}

.livery-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 48%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 48%, #000 52%, transparent 100%);
  transition: transform 0.6s var(--ease-out-expo);
}
.livery-panel:hover img {
  transform: scale(1.04);
}

.livery-caption {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}
.livery-caption b {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  font-size: 14px;
}

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

/* ---------- Roster ---------- */
.roster-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 6px;
  perspective: 1200px;
}

.roster-card {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 24px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--color-surface) 0%, var(--color-base) 100%);
  border: 1px solid var(--color-line-strong);
  clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
  box-shadow: 0 18px 40px -20px #000a, inset 0 0 0 1px #ffffff08;
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-smooth),
    border-color 0.35s var(--ease-smooth);
}
.roster-card:hover {
  transform: translateY(-6px) rotateX(4deg) rotateY(-4deg) scale(1.015);
  border-color: var(--color-accent);
  box-shadow: 0 22px 46px -18px #000c, var(--glow-md);
}
.roster-card::before {
  content: attr(data-year);
  position: absolute;
  top: -0.28em;
  right: -0.06em;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 130px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #ffffff10;
  pointer-events: none;
  z-index: 0;
}
.roster-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-heat);
  box-shadow: var(--glow-sm);
}

/* Hover FX — adapted from uiverse.io/00Kubi/cowardly-eagle-56 (glow blobs,
   scan-line, glare sweep, corner brackets). Mouse-tracked tilt trick was
   dropped — it needs a full-card overlay grid that would block scrolling
   the driver list — kept a fixed tilt on :hover instead. */
.roster-fx-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(32px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}
.roster-fx-glow.g1 {
  top: -30px;
  left: -30px;
  background: radial-gradient(circle at center, #d7ff0055 0%, transparent 70%);
}
.roster-fx-glow.g2 {
  top: 45%;
  right: -50px;
  background: radial-gradient(circle at center, #8fe00045 0%, transparent 70%);
}
.roster-fx-glow.g3 {
  bottom: -30px;
  left: 35%;
  background: radial-gradient(circle at center, #eaff6640 0%, transparent 70%);
}
.roster-card:hover .roster-fx-glow {
  opacity: 1;
}

.roster-fx-scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, #d7ff0022, transparent);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.roster-card:hover .roster-fx-scan {
  opacity: 1;
  animation: rosterScan 2.2s linear infinite;
}
@keyframes rosterScan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.roster-fx-glare {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(125deg,
      transparent 0%,
      #ffffff09 45%,
      #ffffff16 50%,
      #ffffff09 55%,
      transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.roster-card:hover .roster-fx-glare {
  opacity: 1;
}

.roster-fx-corners span {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-accent);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}
.roster-fx-corners span:nth-child(1) {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}
.roster-fx-corners span:nth-child(2) {
  top: 10px;
  right: 10px;
  border-left: 0;
  border-bottom: 0;
}
.roster-fx-corners span:nth-child(3) {
  bottom: 10px;
  left: 10px;
  border-right: 0;
  border-top: 0;
}
.roster-fx-corners span:nth-child(4) {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}
.roster-card:hover .roster-fx-corners span {
  opacity: 1;
  box-shadow: 0 0 10px #d7ff0080;
}

.roster-year {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 0.01em;
  background: var(--grad-heat);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 4px;
  display: block;
}
.roster-count {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-faint);
  margin-bottom: 18px;
  display: block;
}

.roster-list {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0 10px 0 0;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--color-line-strong) transparent;
}
.roster-list::-webkit-scrollbar {
  width: 4px;
}
.roster-list::-webkit-scrollbar-track {
  background: transparent;
}
.roster-list::-webkit-scrollbar-thumb {
  background: var(--color-line-strong);
}
.roster-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 14.5px;
  color: var(--color-ink);
}
.roster-list li:last-child {
  border-bottom: none;
}
.roster-list img {
  width: 16px;
  height: auto;
  flex: none;
  opacity: 0.85;
}
.roster-list li.is-manager {
  color: var(--color-accent);
  font-weight: 600;
}
.roster-badge {
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-base);
  background: var(--grad-heat);
  padding: 3px 7px;
  border-radius: 3px;
  box-shadow: var(--glow-sm);
}

/* ---------- About ---------- */
#about {
  position: relative;
  isolation: isolate;
  background-image:
    linear-gradient(180deg, #08090ab8 0%, #08090ac2 60%, var(--color-base) 100%),
    url('../img/slider/805550_20250328021913_1.png');
  background-size: cover;
  background-position: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.about-copy p {
  color: var(--color-muted);
  font-size: 15px;
  margin: 0 0 16px;
}
.about-copy b {
  color: var(--color-ink);
  font-weight: 600;
}

.fact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}
.fact-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 13.5px;
}
.fact-list span:first-child {
  color: var(--color-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11.5px;
}
.fact-list span:last-child {
  color: var(--color-ink);
  font-weight: 500;
  text-align: right;
}

.partners {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
}
.partners img {
  height: 34px;
  width: 96px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.55;
  transition:
    opacity 0.35s var(--ease-smooth),
    filter 0.35s var(--ease-smooth);
}
.partners a:hover img,
.partners img:hover {
  opacity: 1;
  filter: none;
}

/* ---------- Contact / Footer ---------- */
.contact-section {
  position: relative;
  isolation: isolate;
  text-align: center;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(48rem 30rem at 50% 20%, #d7ff0018, transparent 65%);
}
.contact-section h2 {
  font-size: clamp(32px, 5vw, 54px);
  font-style: italic;
}
.contact-section p {
  color: var(--color-muted);
  max-width: 520px;
  margin: 18px auto 0;
  font-size: 15px;
}

/* ---------- Privacy policy page ---------- */
.policy-header {
  padding: clamp(64px, 10vw, 110px) 0 clamp(36px, 5vw, 56px);
}
.policy-header .eyebrow {
  margin-bottom: 18px;
}
.policy-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-faint);
  margin-top: 14px;
  letter-spacing: 0.04em;
}
.policy-intro {
  margin-top: 22px;
  max-width: 680px;
  color: var(--color-muted);
  font-size: clamp(14.5px, 1.4vw, 16px);
  line-height: 1.7;
}

.policy-body {
  padding-bottom: clamp(48px, 7vw, 80px);
}
.policy-section {
  padding: clamp(26px, 4vw, 36px) 0;
  border-top: 1px solid var(--color-line);
}
.policy-section:first-child {
  border-top: none;
  padding-top: 0;
}
.policy-section h2 {
  font-size: clamp(19px, 2.4vw, 24px);
  margin-bottom: 14px;
  color: var(--color-ink);
}
.policy-section p {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 14px;
  max-width: 760px;
}
.policy-section ul {
  margin: 0 0 14px;
  padding-left: 20px;
  max-width: 760px;
}
.policy-section li {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.policy-section b {
  color: var(--color-ink);
  font-weight: 600;
}
.policy-section a {
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-line-strong);
}
.policy-section a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.policy-note {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface);
  font-size: 13px;
  color: var(--color-faint);
  line-height: 1.7;
  max-width: 760px;
}

.social-row {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 36px;
}
.social-row a {
  width: 50px;
  height: 50px;
  border: 1px solid var(--color-line-strong);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-muted);
  transition: all 0.35s var(--ease-smooth);
}
.social-row a:hover {
  color: var(--color-base);
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: var(--glow-md);
  transform: translateY(-3px);
}

footer {
  border-top: 1px solid var(--color-line);
  padding: 48px 0 32px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--color-faint);
  letter-spacing: 0.03em;
}
.footer-bottom a {
  color: var(--color-faint);
}
.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .jersey-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .roster-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
  }
  .jersey-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
  .roster-groups {
    grid-template-columns: 1fr;
  }
  .partners {
    flex-wrap: wrap;
  }
}
