/* ===== Tokens ===== */
:root {
  --ink: #0b0d10;
  --ink-2: #14171c;
  --steel: #2a2f38;
  --paper: #f7f5f1;
  --paper-dim: #eae7e0;
  --papaya: #ff7a1a;
  --papaya-dim: #cc6115;
  --teal: #1fb6c4;
  --magenta: #e31c79;

  --fg: var(--ink);
  --bg: var(--paper);
  --bg-alt: var(--paper-dim);
  --card-bg: #ffffff;
  --border: rgba(11, 13, 16, 0.12);
  --muted: rgba(11, 13, 16, 0.62);

  --dark-fg: var(--paper);
  --dark-bg: var(--ink);
  --dark-card-bg: var(--ink-2);
  --dark-border: rgba(247, 245, 241, 0.14);
  --dark-muted: rgba(247, 245, 241, 0.64);

  --blush: #fbe9ec;
  --blush-card: #fffbfc;
  --blush-border: rgba(227, 28, 121, 0.16);
  --blush-hover: #f6dbe1;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

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

.section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2.25rem;
}
.section-title-center { text-align: center; }

/* ===== Reveal-on-scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(10px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.wordmark-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.wordmark-logo {
  display: block;
  height: 34px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
}
.site-nav a {
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--papaya);
  transition: right 0.25s ease;
}
.site-nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: #fff;
  display: block;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11,13,16,0.05) 0%, rgba(11,13,16,0.02) 35%, rgba(11,13,16,0.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(4.5rem, 11vw, 8rem);
  color: #fff;
  text-align: center;
}
.morph-title {
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 500;
  text-align: center;
}
.js-morph-hidden {
  visibility: hidden;
}
.tagline-ghost {
  position: fixed;
  top: 0;
  left: 0;
  width: fit-content;
  margin: 0;
  font-family: var(--font-body);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
  display: none;
}
.tagline-ghost em {
  font-style: normal;
  color: var(--papaya);
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 500;
  margin: 1rem 0 0;
}
.hero-tagline em,
.section-title em {
  font-style: normal;
  color: var(--papaya);
}

.scroll-cue {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  z-index: 2;
  width: 28px; height: 44px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--papaya);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* ===== Sections ===== */
.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--bg);
  color: var(--fg);
}
.section-dark {
  background: var(--dark-bg);
  color: var(--dark-fg);
}
.section-soft {
  background: var(--blush);
  color: var(--fg);
}
#calendar { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
#about { padding-bottom: 0; }

/* ===== About — magazine spread ===== */
#about {
  background: #000;
  color: var(--paper);
  --fg: var(--paper);
  --muted: var(--dark-muted);
  padding-bottom: 0;
}
.about-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
}
.about-text { text-align: left; }
.kicker {
  margin: 0 0 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--papaya);
}
.about-text .section-title { text-align: left; font-size: clamp(2.2rem, 4vw, 3.6rem); margin-bottom: 1.5rem; white-space: nowrap; }
.lede {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--paper);
  max-width: 36rem;
  margin: 0 0 1.25rem;
}
.about-text .lede { color: var(--paper); margin-left: 0; margin-right: 0; }

.about-strips {
  position: relative;
  z-index: 1;
  display: flex;
  height: clamp(430px, 70vh, 780px);
}
.strips-pad { display: none; }
.strip {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #111;
  transform: translate3d(calc((1 - var(--arr, 1)) * var(--fly, 0vw)), 0, 0);
  transition: flex-grow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.strip::before {
  content: ''; position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 6px; background: #000;
}
.about-strips:has(.strip.is-open) .strip { flex-grow: 0.5; }
.about-strips:has(.strip.is-open) .strip:has(~ .strip.is-open) { flex-grow: 0; }
.about-strips .strip.is-open,
.about-strips:has(.strip.is-open) .strip.is-open { flex-grow: 14; }
.strip img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.85);
  transition: filter 0.5s ease;
}
.strip.is-open img { filter: none; }
.strip::after {
  content: ''; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0; transition: opacity 0.4s ease 0.15s; pointer-events: none;
}
.strip.is-open::after { opacity: 1; }
.strip figcaption {
  position: absolute; z-index: 3; bottom: 1.75rem; right: 1.75rem;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem;
  max-width: 30rem; text-align: right; color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s;
}
.strip.is-open figcaption { opacity: 1; transform: none; }
.cap-title { font-family: var(--font-display, 'Oswald', sans-serif); font-size: 1.35rem; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.15; }
.cap-sub { font-size: 0.9rem; opacity: 0.88; }
.cap-year { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; letter-spacing: 0.18em; color: var(--papaya); }

/* Text steps aside while a photo is open */
.about-text { position: relative; z-index: 2; transition: opacity 0.35s ease; }
.about-spread:has(.strip.is-open) .about-text { opacity: 0; }
@media (max-width: 900px) {
  .about-text .section-title { white-space: normal; }
  .about-spread { grid-template-columns: 1fr; }
  .about-strips { height: clamp(380px, 110vw, 620px); }
}

/* ===== Progression — scroll-driven 3D carousel ===== */
.prog {
  position: relative;
  background: #07080a;
  color: var(--dark-fg);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.prog-title { margin: 0; text-align: center; font-family: 'Oswald', sans-serif; text-transform: uppercase; line-height: 0.9; }
.prog-title-small { display: block; color: var(--papaya); letter-spacing: 0.35em; font-size: clamp(0.9rem, 2vw, 1.2rem); font-weight: 500; margin-bottom: 0.6rem; }
.prog-title-big { display: block; font-size: clamp(3rem, 14vw, 11rem); font-weight: 700; color: rgba(255, 122, 26, 0.9); }
.prog-cards { list-style: none; margin: 2.5rem auto 0; padding: 0 var(--gutter, 1.25rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; max-width: 1200px; }
.prog-nav, .prog-floor { display: none; }

.prog-card {
  --card-bg: var(--paper); --card-fg: var(--ink);
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: 1.4rem; border-radius: 6px;
  background: var(--card-bg); color: var(--card-fg);
  overflow: hidden;
}
.prog-card--teal { --card-bg: #7fd6dd; }
.prog-card--magenta { --card-bg: var(--magenta); --card-fg: #fff; }
.prog-card--papaya { --card-bg: var(--papaya); }
.prog-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.prog-card-year { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 2.6rem; line-height: 1; }
.prog-card-cat { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; }
.prog-card-text { margin: 0; font-size: 0.9rem; line-height: 1.45; opacity: 0.85; max-width: none; }
.prog-highlights { display: flex; flex-direction: column; gap: 0.5rem; }
.prog-highlight { display: flex; flex-direction: column; gap: 0.1rem; }
.prog-highlight-result { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.prog-highlight-detail { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; line-height: 1.35; }
.prog-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: auto; }
.prog-photos img { width: 100%; height: 130px; object-fit: cover; border-radius: 3px; display: block; }
.prog-photos img.crop-2024-podium { object-position: 50% 33%; }
.prog-photos img.crop-2025-a { object-position: 28% 58%; }
.prog-photos img.crop-2025-b { object-position: 50% 78%; }
.prog-photos img.crop-2026-a { object-position: 50% 28%; }
.prog-photos img.crop-2026-b { object-position: 50% 60%; }

/* 3D mode — enabled by JS on large screens when motion is allowed */
.prog.prog-3d { padding: 0; height: calc(100vh + (var(--n) - 1) * 85vh); }
.prog-3d .prog-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.prog-3d .prog-stage { position: relative; height: 100%; perspective: 1400px; perspective-origin: 50% 45%; --p: 0; }
.prog-3d .prog-title { position: absolute; left: 0; right: 0; top: 16vh; z-index: 1; transform: translateX(calc(var(--p) * -3vw)); pointer-events: none; }
.prog-3d .prog-title-big { color: rgba(255, 122, 26, 0.22); font-size: clamp(5rem, 16vw, 15rem); }
.prog-3d .prog-floor {
  display: block; position: absolute; left: -50%; right: -50%; bottom: -8vh; height: 60vh; z-index: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 122, 26, 0.5) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(255, 122, 26, 0.5) 0 1px, transparent 1px 90px);
  background-position: calc(var(--p) * -180px) 0, 0 0;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 85%);
  mask-image: linear-gradient(to top, #000 15%, transparent 85%);
}
.prog-3d .prog-stage::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 70%, rgba(255, 90, 20, 0.28), transparent 70%);
}
.prog-3d .prog-cards {
  position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; max-width: none; display: block;
  transform-style: preserve-3d;
}
.prog-3d .prog-card {
  position: absolute; left: 50%; top: 50%;
  width: min(380px, 78vw); height: min(540px, 70vh);
  margin: calc(min(540px, 70vh) / -2 + 3vh) 0 0 calc(min(380px, 78vw) / -2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  will-change: transform, opacity; backface-visibility: hidden;
}
.prog-3d .prog-nav {
  display: flex; justify-content: space-between; align-items: center;
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 1.1rem clamp(1rem, 4vw, 3rem) 1.4rem;
}
.prog-nav button {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: none; border: 0; cursor: pointer; padding: 0.4rem;
  color: rgba(247, 245, 241, 0.55);
  font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; letter-spacing: 0.12em;
  transition: color 0.2s ease;
}
.prog-nav button::before { content: '+'; color: var(--papaya); font-size: 1.1rem; }
.prog-nav button:hover, .prog-nav button:focus-visible, .prog-nav button.is-active { color: var(--paper); }
.prog-nav button.is-active { text-shadow: 0 0 14px rgba(255, 122, 26, 0.8); }
.prog-nav button:focus-visible { outline: 2px solid var(--papaya); outline-offset: 2px; }

/* ===== Standings (restored) ===== */
.highlights-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.standings { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.standings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.standings-tile {
  background: var(--card-bg);
  padding: 1.5rem;
}
.standings-lead {
  background: linear-gradient(160deg, rgba(31,182,196,0.12), var(--card-bg) 60%);
}
.standings-pos {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.standings-lead .standings-pos { color: var(--papaya); }
.standings-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin: 0.4rem 0 0.2rem;
}
.standings-pts {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
.calendar-standings {
  margin-top: 2.5rem;
  margin-bottom: 0;
}
.calendar-standings .highlights-title {
  color: var(--dark-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.calendar-standings .standings-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
}
.calendar-standings .standings-tile {
  background: var(--dark-card-bg);
  padding: 1rem 1.1rem;
}
.calendar-standings .standings-lead {
  background: linear-gradient(160deg, rgba(31,182,196,0.16), var(--dark-card-bg) 60%);
}
.calendar-standings .standings-pos { font-size: 1.6rem; }
.calendar-standings .standings-name { font-size: 0.76rem; }
.calendar-standings .standings-pts { color: var(--dark-muted); }

/* ===== Team ===== */
.partner-strip { background: var(--bg); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.team-logos-viewport {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.team-logos-track {
  display: flex;
  width: max-content;
  animation: teamLogosScroll 22s linear infinite;
}
.team-logos-viewport:hover .team-logos-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .team-logos-track { animation: none; }
}
@keyframes teamLogosScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.team-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  padding-right: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 0;
}
.team-logo { height: clamp(34px, 4vw, 48px); width: auto; flex-shrink: 0; }
.team-logo-mclaren { height: clamp(34px, 4vw, 48px); }
.team-logo-partner { height: clamp(32px, 3.6vw, 42px); opacity: 0.92; }
.team-logo-bell { height: clamp(44px, 4.8vw, 56px); }
.team-partners-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #000;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}
.team-partners-intro {
  max-width: none;
  margin: 0 auto clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.9vw, 1.2rem);
  white-space: nowrap;
}
@media (max-width: 600px) { .team-partners-intro { white-space: normal; } }
.team-partners {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.team-partner {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--blush-border);
  background: var(--blush-card);
  border-radius: 12px;
}
.team-partner:nth-child(4) { grid-column: 2 / span 2; }
.team-partner:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 900px) {
  .team-partners { grid-template-columns: 1fr 1fr; }
  .team-partner, .team-partner:nth-child(4), .team-partner:nth-child(5) { grid-column: auto; }
  .team-partner:nth-child(5) { grid-column: 1 / -1; max-width: calc(50% - 0.625rem); justify-self: center; width: 100%; }
}
@media (max-width: 600px) {
  .team-partners { grid-template-columns: 1fr; }
  .team-partner:nth-child(5) { max-width: none; }
}
#team { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: 0; }
#team .section-title { margin-bottom: 1.75rem; }
.team-partner-logo {
  display: flex;
  align-items: center;
  height: 72px;
  margin-bottom: 0.25rem;
}
.team-partner-logo img { height: 44px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.team-partner-logo--jenzer img { height: 40px; }
.team-partner-logo--mclaren img { height: 40px; }
.team-partner-logo--wihuri img { height: 30px; }
.team-partner-logo--ecolab img { height: 34px; }
.team-partner-logo--bell img { height: 56px; }
.team-partner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.team-partner .team-partner-link-line {
  color: var(--ink);
}
.team-partner-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--papaya);
  text-decoration: none;
}
.team-partner-link:hover,
.team-partner-link:focus-visible {
  text-decoration: underline;
}

/* ===== Calendar / timing sheet ===== */
.calendar-header {
  margin-bottom: 2.25rem;
}
.calendar-header .section-title { margin-bottom: 0; }
.timing-sheet-wrap { overflow-x: auto; margin-bottom: 1rem; }
.timing-sheet {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  min-width: 760px;
}
.timing-sheet th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-muted);
  font-weight: 500;
  padding: 0 0.75rem 0.75rem;
  border-bottom: 1px solid var(--dark-border);
}
.timing-sheet td {
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid var(--dark-border);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.status {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-done { background: rgba(31,182,196,0.16); color: var(--teal); }
.status-next { background: rgba(255,122,26,0.16); color: var(--papaya); }
.status-upcoming { background: rgba(247,245,241,0.08); color: var(--dark-muted); }

.report-link {
  color: var(--papaya);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,122,26,0.4);
}
.report-link:hover { border-bottom-color: var(--papaya); }
.report-link-none { color: var(--dark-muted); }

.calendar-photos { margin-top: clamp(2.5rem, 5vw, 4rem); }
.calendar-subhead {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  margin-bottom: 1.5rem;
}
.calendar-photo-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}
.calendar-photo-link {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--dark-fg);
  text-decoration: none;
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.calendar-photo-link:hover { color: var(--papaya); border-color: var(--papaya); }

/* ===== Press ===== */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--blush-border);
  border-top: 1px solid var(--blush-border);
  border-bottom: 1px solid var(--blush-border);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.press-card {
  background: var(--blush-card);
  text-decoration: none;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
}
.press-card:hover { background: var(--blush-hover); }
.press-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.press-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.press-outlet {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}
.press-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--magenta);
  letter-spacing: 0.04em;
}
.press-card p { margin: 0.25rem 0 0; color: var(--muted); }

.media-group { margin-bottom: clamp(2rem, 4vw, 3rem); }
.media-group:last-child { margin-bottom: 0; }
.media-group-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.media-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}
.media-link {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--blush-border);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.media-link:hover { color: var(--magenta); border-color: var(--magenta); }

.social-embeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.social-embeds iframe { width: 100% !important; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem 2rem;
  padding-bottom: 2.75rem;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0 0 1.1rem;
}
.footer-heading em { font-style: normal; color: var(--papaya); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-links a {
  color: rgba(247, 245, 241, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--papaya); }
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  border-top: 1px solid var(--dark-border);
}
.footer-logo { height: 34px; width: auto; display: block; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(247, 245, 241, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-social-btn:hover { color: var(--papaya); border-color: var(--papaya); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--dark-muted);
}
.footer-copy p { margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
}

@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--ink);
    flex-direction: column;
    padding: 5.5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .site-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
}

/* ===== Pre-launch fixes ===== */
main { overflow-x: clip; }
.embed-gate {
  grid-column: 1 / -1;
  border: 1px solid var(--blush-border);
  background: var(--blush-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}
.embed-gate p { max-width: 52ch; margin: 0 auto 1.25rem; color: var(--muted); }
.embed-gate-btn {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  padding: 0.7rem 1.6rem;
  background: var(--fg);
  color: var(--paper);
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}
.embed-gate-btn:hover { background: var(--magenta); }


/* ===== Horizontal flow (large screens): the page pans sideways, then down within a section ===== */
.h-mode main { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; overflow: hidden; z-index: 1; }
.h-rail { display: flex; height: 100%; width: max-content; will-change: transform; }
.h-rail > section,
.h-rail > footer { flex: 0 0 var(--pw); width: var(--pw); height: 100vh; overflow: hidden; position: relative; }
.h-rail > .hero { min-height: 0; }
.h-slide { will-change: transform; min-height: 100vh; box-sizing: border-box; }
.h-rail > .partner-strip .h-slide,
.h-rail > .site-footer .h-slide { display: flex; flex-direction: column; justify-content: center; }
.h-rail > .partner-strip .h-slide > *,
.h-rail > .site-footer .h-slide > * { width: 100%; box-sizing: border-box; }
.h-mode .prog.prog-3d { height: 100vh; }
.h-spacer { width: 1px; pointer-events: none; }

/* ===== Black panels in sideways mode ===== */
.h-rail > .section {
  background: #000;
  color: var(--paper);
  --fg: var(--paper);
  --muted: var(--dark-muted);
  --border: var(--dark-border);
}
.h-rail > #about .h-slide { display: flex; flex-direction: column; justify-content: center; }
.h-rail > #about .about-spread { width: 100%; box-sizing: border-box; }
.h-rail > #about .about-strips { position: absolute; top: 0; left: 0; bottom: 0; width: 100%; height: auto; }
.h-rail > #about .strips-pad { display: block; flex: 0 0 calc(var(--pw) * 0.46); transition: flex-basis 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.h-rail > #about .about-strips:has(.strip.is-open) .strips-pad { flex-basis: 0; }
.h-rail > #about .about-spread { grid-template-columns: 1fr; }
.h-rail > #about .about-text { max-width: calc(var(--pw) * 0.46 - 3.5rem); }

/* Scroll cue — sideways mode only */
.scroll-hint { display: none; }
.h-rail > #about .scroll-hint {
  display: flex; align-items: center; gap: 0.7rem; margin: 2rem 0 0;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--papaya);
}
.scroll-hint span { display: inline-block; animation: hintBob 1.6s ease-in-out infinite; }
@keyframes hintBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint span { animation: none; } }
.cap-year i { font-style: normal; opacity: 0.6; }

.ul {
  text-decoration: underline;
  text-decoration-color: #fff;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

/* ===== Calendar — month cards + agenda ===== */
.calendar-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.calendar-header .section-title { text-align: left; margin: 0; }
.cal-toggle { display: inline-flex; border: 1px solid var(--dark-border); border-radius: 999px; padding: 3px; }
.cal-toggle button {
  background: none; border: 0; cursor: pointer; padding: 0.45rem 1.1rem; border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dark-muted); transition: color 0.2s ease, background 0.2s ease;
}
.cal-toggle button:hover { color: var(--paper); }
.cal-toggle button.is-active { background: var(--paper); color: #000; }
.cal-toggle button:focus-visible { outline: 2px solid var(--papaya); outline-offset: 2px; }

.cal-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.cal-card {
  --accent: var(--teal);
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: 1.1rem 1.1rem 1rem;
  background: #0c0d0f; border: 1px solid var(--dark-border); border-radius: 10px;
}
.cal-card.is-next { --accent: var(--papaya); border-color: rgba(255, 122, 26, 0.6); }
.cal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.7rem; }
.cal-month { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.45rem; letter-spacing: 0.04em; text-transform: uppercase; }
.cal-round { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow span { text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; color: var(--dark-muted); padding-bottom: 0.3rem; }
.cal-days { row-gap: 2px; }
.cal-days span { height: 22px; line-height: 22px; text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: rgba(247, 245, 241, 0.55); }
.cal-days .race { background: var(--accent); color: #000; font-weight: 600; }
.cal-days .race.first { border-radius: 11px 0 0 11px; }
.cal-days .race.last { border-radius: 0 11px 11px 0; }
.cal-days .race.first.last { border-radius: 11px; }
.cal-dates { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; letter-spacing: 0.08em; color: var(--accent); }
.cal-circuit { margin: 0.25rem 0 0.1rem; font-size: 1.15rem; text-transform: uppercase; }
.cal-loc { margin: 0; font-size: 0.88rem; color: var(--paper); }
.cal-series { margin: 0.25rem 0 0; font-size: 0.78rem; color: var(--dark-muted); }
.cal-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding-top: 0.5rem; border-top: 1px solid var(--dark-border); }
.cal-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.cal-card .report-link { font-size: 0.82rem; }

.cal-legend { display: flex; flex-direction: column; justify-content: center; gap: 0.7rem; padding: 1.1rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dark-muted); }
.cal-legend p { margin: 0; display: flex; align-items: center; gap: 0.6rem; }
.cal-legend .dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.dot-done { background: var(--teal); }
.dot-next { background: var(--papaya); }
.cal-legend .cal-legend-note { text-transform: none; letter-spacing: 0.02em; font-family: var(--font-body, 'Manrope', sans-serif); font-size: 0.82rem; margin-top: 0.4rem; }

/* Agenda view */
.cal-cards.is-list { grid-template-columns: 1fr; gap: 0; }
.is-list .cal-card { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 17.5rem; align-items: center; gap: 1.5rem; padding: 0.95rem 0.25rem; background: none; border: 0; border-bottom: 1px solid var(--dark-border); border-radius: 0; }
.is-list .cal-card.is-next { border-color: var(--dark-border); background: rgba(255, 122, 26, 0.06); }
.is-list .cal-mini, .is-list .cal-legend { display: none; }
.is-list .cal-head { flex-direction: column; align-items: flex-start; margin: 0; gap: 0.2rem; }
.is-list .cal-body { display: grid; grid-template-columns: 9.5rem 1fr 1fr; align-items: baseline; gap: 0.2rem 1.25rem; }
.is-list .cal-dates { grid-row: 1 / span 2; font-size: 0.8rem; }
.is-list .cal-circuit { margin: 0; font-size: 1.05rem; }
.is-list .cal-loc { grid-column: 3; }
.is-list .cal-series { grid-column: 2 / span 2; margin: 0; }
.is-list .cal-foot { margin: 0; padding: 0; border: 0; flex-direction: row; align-items: center; gap: 1.25rem; }
.cal-cards.is-list .cal-legend { display: none; }

@media (max-width: 1100px) { .cal-cards:not(.is-list) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .cal-cards:not(.is-list) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .is-list .cal-card { grid-template-columns: 1fr; gap: 0.6rem; }
  .is-list .cal-body { grid-template-columns: 1fr; }
  .is-list .cal-dates, .is-list .cal-loc, .is-list .cal-series { grid-column: auto; grid-row: auto; }
  .is-list .cal-foot { flex-wrap: wrap; }
}
@media (max-width: 560px) { .cal-cards:not(.is-list) { grid-template-columns: 1fr; } }

/* ===== Full-year calendar (own colour palette) ===== */
[hidden] { display: none !important; }
#calendar {
  --cal-pink: #f6c3d2;
  --cal-pink-dim: rgba(246, 195, 210, 0.6);
  --cal-blue: #4aa3ff;
}
#calendar .section-title em { color: var(--cal-pink); }
.calendar-header .section-title { text-align: left; margin: 0; }
.cal-toggle { border-color: rgba(246, 195, 210, 0.35); }
.cal-toggle button { color: var(--cal-pink-dim); }
.cal-toggle button:hover { color: #fff; }
.cal-toggle button.is-active { background: var(--cal-pink); color: #1a0d12; }

.cal-year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.cal-m {
  --accent: var(--cal-blue);
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(246, 195, 210, 0.2);
  background: linear-gradient(155deg, rgba(246, 195, 210, 0.09), rgba(74, 163, 255, 0.05) 70%);
}
.cal-m-name {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cal-pink);
}
.cal-m .cal-dow span { font-size: 0.58rem; padding-bottom: 0.25rem; color: var(--cal-pink-dim); }
.cal-m .cal-days span { height: 21px; line-height: 21px; font-size: 0.76rem; color: rgba(255, 232, 238, 0.82); }
.cal-m .cal-days .race { background: var(--accent); color: #04121f; font-weight: 600; }
.cal-m .cal-days .race.first { border-radius: 11px 0 0 11px; }
.cal-m .cal-days .race.last { border-radius: 0 11px 11px 0; }
.cal-m .cal-days .race.first.last { border-radius: 11px; }
.cal-m.is-next .cal-days .race { background: rgba(74, 163, 255, 0.16); color: #a9d2ff; box-shadow: inset 0 1.5px 0 var(--accent), inset 0 -1.5px 0 var(--accent); }
.cal-m.is-next .cal-days .race.first { box-shadow: inset 0 1.5px 0 var(--accent), inset 0 -1.5px 0 var(--accent), inset 1.5px 0 0 var(--accent); }
.cal-m.is-next .cal-days .race.last { box-shadow: inset 0 1.5px 0 var(--accent), inset 0 -1.5px 0 var(--accent), inset -1.5px 0 0 var(--accent); }
.cal-m.is-next .cal-days .race.first.last { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-m.is-next { border-color: rgba(74, 163, 255, 0.55); }
.cal-m-tag { margin: 0.6rem 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7fbcff; }
.cal-m:not([data-start]) .cal-m-tag { display: none; }
@media (max-width: 1100px) { .cal-year { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cal-year { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .cal-year { grid-template-columns: 1fr; } }

/* Agenda + standings colours */
#calendar .cal-month { color: var(--cal-pink); }
#calendar .cal-round { color: var(--cal-pink-dim); }
#calendar .cal-dates { color: #7fbcff; }
#calendar .cal-card.is-next { --accent: var(--cal-blue); border-color: transparent; background: rgba(246, 195, 210, 0.06); }
#calendar .status-done { background: rgba(74, 163, 255, 0.16); color: #8ec6ff; }
#calendar .status-next { background: rgba(246, 195, 210, 0.16); color: var(--cal-pink); }
#calendar .report-link { color: var(--cal-pink); border-bottom-color: rgba(246, 195, 210, 0.4); }
#calendar .report-link:hover { border-bottom-color: var(--cal-pink); }
#calendar .is-list .cal-card { border-bottom-color: rgba(246, 195, 210, 0.16); }

/* ===== Progression cards — year, details, four photos ===== */
.prog-card-head { justify-content: center; }
.prog-card-year { font-size: 3.4rem; letter-spacing: 0.02em; }
.prog-meta { margin: 0; display: flex; flex-direction: column; gap: 0.75rem; text-align: left; }
.prog-meta dt { font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; margin-bottom: 0.15rem; }
.prog-meta dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; letter-spacing: 0.01em; text-transform: uppercase; }
.prog-meta dd.prog-series { display: flex; flex-wrap: wrap; gap: 0.4rem; text-transform: none; }
.series-logo { display: inline-flex; align-items: center; height: 34px; padding: 0 0.6rem; background: #fff; border-radius: 6px; }
.series-logo img { height: 22px; width: auto; max-width: 110px; object-fit: contain; display: block; }
.series-logo[data-name="Central European F4 Series"] img { height: 28px; }
.series-logo.is-text::after { content: attr(data-name); font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; color: #14161a; white-space: nowrap; }
.prog-photos { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 0.45rem; margin-top: auto; }
.prog-photos img { height: 118px; }
.prog-3d .prog-card { width: min(430px, 82vw); height: min(650px, 76vh); margin: calc(min(650px, 76vh) / -2 + 5vh) 0 0 calc(min(430px, 82vw) / -2); }

.series-logo { height: 40px; padding: 0 0.65rem; }
.series-logo img { height: 28px; max-width: 120px; }
.series-logo.is-dark { background: #0d0f12; }
.series-logo[data-name="Champions of the Future Academy Program"] img { height: 24px; max-width: 150px; }
.series-logo[data-name="Champions of the Future"] img { height: 24px; }
.series-logo[data-name="WSK Super Master Series"] img { height: 32px; }
.series-logo[data-name="ROK Cup Italy"] img { height: 32px; }
.series-logo[data-name="FIA European Series"] img { height: 20px; }
.series-logo[data-name="Central European F4 Series"] img { height: 32px; }
.series-logo.is-text { height: 34px; }

/* Cards with fewer than four distinct photos */
.prog-photos[data-n="2"] { grid-template-columns: 1fr; }
.prog-photos[data-n="2"] img { height: 120px; }
.prog-photos[data-n="3"] img:first-child { grid-column: 1 / -1; }
.prog-photos[data-n="3"] img:first-child { height: 130px; }
.prog-photos[data-n="3"] img:not(:first-child) { height: 100px; }

/* Photos keep their own proportions — one justified row, nothing cropped */
.prog-photos, .prog-photos[data-n] { display: flex; gap: 6px; margin-top: auto; grid-template-columns: none; }
.prog-photos img, .prog-photos[data-n] img, .prog-photos[data-n="3"] img:first-child, .prog-photos[data-n="3"] img:not(:first-child) {
  flex: var(--ar, 1) 1 0; min-width: 0; width: 100%; height: auto; aspect-ratio: var(--ar, 1); object-fit: cover; grid-column: auto; border-radius: 3px;
}
.prog-3d .prog-card { width: min(480px, 84vw); height: min(540px, 72vh); margin: calc(min(540px, 72vh) / -2 + 4vh) 0 0 calc(min(480px, 84vw) / -2); }

/* ===== Progression card — 2x2 portrait photo grid ===== */
.prog-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 0.9rem; }
.prog-meta > div:last-child { grid-column: 1 / -1; }
.prog-meta dd { font-size: 1.2rem; }
.prog-card .prog-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; margin-top: auto; flex: 1 1 0; min-height: 180px; }
.prog-card .prog-photos img { flex: none; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; border-radius: 3px; grid-column: auto; }
.prog-3d .prog-card { width: min(420px, 84vw); height: min(770px, 80vh); margin: calc(min(770px, 80vh) / -2 + 5vh) 0 0 calc(min(420px, 84vw) / -2); }

.prog-3d .prog-title { top: 11vh; }
.series-logo[data-name="Italian ACI Championship"] img { height: 32px; }

/* Four partners — one row on wide screens, two-by-two below */
.team-partners { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-partner, .team-partner:nth-child(4), .team-partner:nth-child(5) { grid-column: auto; max-width: none; justify-self: stretch; width: auto; }
@media (max-width: 1000px) { .team-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team-partners { grid-template-columns: 1fr; } }
.team-partner p { color: rgba(11, 13, 16, 0.66); }
.team-partner .team-partner-link-line { color: var(--ink); }

/* Line the cards' text up row by row (logo / description / connection / link) */
.team-partner { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0.75rem; align-content: start; }
.team-partner .team-partner-link { align-self: end; margin-top: 0; }
.team-partner-logo { margin-bottom: 0; }
@supports not (grid-template-rows: subgrid) {
  .team-partner { display: flex; flex-direction: column; grid-row: auto; }
}

/* ===== Partners — transition panel ===== */
.partner-strip { background: #000; color: var(--paper); padding: clamp(3rem, 6vw, 5rem) 0; overflow: hidden; }
.pt-inner { position: relative; }
.pt-kicker {
  position: relative; z-index: 2; margin: 0 0 1.5rem; text-align: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--papaya);
}
.pt-word {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; z-index: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 1;
  font-size: clamp(5rem, 19vw, 17rem);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 122, 26, 0.35);
}
.pt-row { position: relative; z-index: 1; overflow: hidden; width: 200%; margin: 1.1rem 0 1.1rem -50%; }
.pt-row .team-logos-track { animation-duration: 34s; }
.pt-row .team-logos { gap: 2.5rem; padding-right: 2.5rem; }
.pt-row-b .team-logos-track { animation-direction: reverse; animation-duration: 40s; }
.pt-plate { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 230px; height: 88px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.pt-plate img { height: 46px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.pt-flag {
  position: relative; z-index: 1; height: 28px; margin-top: 2rem;
  background: conic-gradient(#f7f5f1 25%, #000 0 50%, #f7f5f1 0 75%, #000 0) 0 0 / 28px 28px;
  opacity: 0.85;
  background-position: calc((var(--arr, 1) + var(--leave, 0)) * -420px) 0;
}
/* In sideways mode the rows slide in from opposite sides and fly out the other way */
.h-mode .pt-row-a { transform: translate3d(calc((1 - var(--arr, 1)) * 38vw - var(--leave, 0) * 38vw), 0, 0); }
.h-mode .pt-row-b { transform: translate3d(calc((var(--arr, 1) - 1) * 38vw + var(--leave, 0) * 38vw), 0, 0); }
.h-mode .pt-word { transform: translateY(-50%) translateX(calc((1 - var(--arr, 1)) * 12vw - var(--leave, 0) * 12vw)); }
@media (prefers-reduced-motion: reduce) { .pt-flag { background-position: 0 0; } }

/* ===== Media — same look as the Calendar ===== */
#press { --cal-pink: #f6c3d2; --cal-pink-dim: rgba(246, 195, 210, 0.6); --cal-blue: #4aa3ff; background: #000; }
#press .section-title em { color: var(--cal-pink); }
#press .calendar-header { margin-bottom: 1.5rem; }
#press .media-group-label { margin: 1.75rem 0 0.9rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cal-pink-dim); }
.media-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; align-items: stretch; }
.media-top.is-loaded { grid-template-columns: 1fr; }

/* Social carousel — cards stack behind each other */
.soc-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem;
  border: 1px solid rgba(246, 195, 210, 0.2); border-radius: 18px; padding: 1.1rem 1rem 0.9rem;
  background: linear-gradient(155deg, rgba(246, 195, 210, 0.09), rgba(74, 163, 255, 0.05) 70%); }
.soc-stack { position: relative; width: 100%; height: 215px; perspective: 1000px; }
.soc-card {
  --x: 0px; --z: 0px; --ry: 0deg; --s: 1; --o: 1; --zi: 3;
  position: absolute; left: 50%; top: 50%; width: min(330px, 78%); height: 190px; margin: -95px 0 0 calc(min(330px, 78%) / -2);
  display: flex; flex-direction: column; justify-content: space-between; padding: 1.1rem 1.25rem;
  border-radius: 16px; border: 1px solid rgba(246, 195, 210, 0.35); text-decoration: none; color: #fff;
  background: linear-gradient(150deg, rgba(246, 195, 210, 0.22), rgba(10, 12, 18, 0.92) 62%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transform: translate3d(var(--x), 0, var(--z)) rotateY(var(--ry)) scale(var(--s)); opacity: var(--o); z-index: var(--zi);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
}
.soc-card--tt { background: linear-gradient(150deg, rgba(74, 163, 255, 0.28), rgba(10, 12, 18, 0.92) 62%); border-color: rgba(74, 163, 255, 0.45); }
.soc-card--th { background: linear-gradient(150deg, rgba(247, 245, 241, 0.2), rgba(10, 12, 18, 0.92) 62%); border-color: rgba(247, 245, 241, 0.35); }
.soc-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(247, 245, 241, 0.4); }
.soc-name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cal-pink); line-height: 1; margin-top: 0.4rem; }
.soc-handle { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; color: #8ec6ff; }
.soc-cta { font-size: 0.85rem; font-weight: 700; color: #fff; border-bottom: 1px solid var(--cal-pink); align-self: flex-start; }
.soc-controls { display: flex; align-items: center; gap: 0.9rem; }
.soc-arrow { background: none; border: 1px solid rgba(246, 195, 210, 0.4); color: var(--cal-pink); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: background 0.2s ease, color 0.2s ease; }
.soc-arrow:hover, .soc-arrow:focus-visible { background: var(--cal-pink); color: #1a0d12; outline: none; }
.soc-dots { display: inline-flex; gap: 0.45rem; }
.soc-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--cal-pink); background: transparent; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.soc-dot.is-active { background: var(--cal-pink); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .soc-card { transition: none; } }

/* Instagram gate + posts */
#press .social-embeds { display: flex; }
#press .social-embeds .embed-gate {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.7rem; text-align: left;
  padding: 1.5rem; margin: 0; border-radius: 18px; border: 1px solid rgba(246, 195, 210, 0.2); background: linear-gradient(155deg, rgba(246, 195, 210, 0.09), rgba(74, 163, 255, 0.05) 70%); color: var(--paper);
}
#press .embed-gate p { margin: 0; max-width: 38ch; color: rgba(247, 245, 241, 0.75); font-size: 0.92rem; }
#press .embed-gate .embed-gate-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cal-pink); }
#press .embed-gate-btn { background: var(--cal-pink); color: #1a0d12; border: 0; border-radius: 999px; padding: 0.65rem 1.4rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease; }
#press .embed-gate-btn:hover { background: #fff; }
.media-top.is-loaded .social-embeds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.media-top.is-loaded .social-embeds iframe, .media-top.is-loaded .instagram-media { min-width: 0 !important; max-width: 100% !important; }

/* Featured in */
#press .press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; width: auto; margin: 0; border: 0; background: none; }
#press .press-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--paper);
  border: 1px solid rgba(246, 195, 210, 0.2); border-radius: 18px;
  background: linear-gradient(155deg, rgba(246, 195, 210, 0.09), rgba(74, 163, 255, 0.05) 70%);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
#press .press-card:hover { transform: translateY(-4px); border-color: rgba(246, 195, 210, 0.5); background: linear-gradient(155deg, rgba(246, 195, 210, 0.13), rgba(74, 163, 255, 0.07) 70%); }
#press .press-card-img { width: 100%; height: 170px; object-fit: cover; display: block; }
#press .press-card-body { padding: 0.95rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.2rem; }
#press .press-outlet { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cal-pink); }
#press .press-date { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8ec6ff; }
#press .press-card p { margin: 0.35rem 0 0; color: rgba(247, 245, 241, 0.88); font-size: 0.92rem; line-height: 1.45; }
@media (max-width: 900px) {
  .media-top { grid-template-columns: 1fr; }
  #press .press-grid { grid-template-columns: 1fr; }
  .media-top.is-loaded .social-embeds { grid-template-columns: 1fr; }
}

/* One post, kept in the right-hand column */
#press .social-embeds { flex-direction: column; align-items: stretch; justify-content: center; }
#press .social-embeds .instagram-media { margin: 0 auto !important; min-width: 0 !important; max-width: 100% !important; width: 100% !important; border-radius: 18px !important; }
#press .social-embeds iframe { max-width: 100% !important; border-radius: 18px; }

/* Smaller Instagram post */
.media-top { grid-template-columns: 2.1fr 1fr; }
#press .social-embeds { align-items: center; }
#press .social-embeds .instagram-media,
#press .social-embeds iframe { zoom: 0.42; }
#press #press .soc-stage { min-height: 0; }
#press .press-card-img { height: 125px; }
#press .media-top { margin-bottom: 0; }
#press .media-group-label { margin-top: 1.25rem; }

/* Media — simplified: carousel, press, gallery */
#press .media-top { display: block; }
#press .soc-stage { width: 100%; box-sizing: border-box; }
#press .soc-stack { height: 225px; }
#press .press-card-img { height: 165px; }
.gallery-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.4rem 1.6rem; border-radius: 18px; border: 1px solid rgba(246, 195, 210, 0.2);
  background: linear-gradient(155deg, rgba(246, 195, 210, 0.09), rgba(74, 163, 255, 0.05) 70%);
}
.gallery-title { margin: 0 0 0.3rem; font-size: 1.7rem; font-weight: 600; letter-spacing: 0.02em; color: #fff; text-transform: uppercase; }
.gallery-title em { font-style: normal; color: var(--cal-pink); }
.gallery-text p { margin: 0; color: rgba(247, 245, 241, 0.78); font-size: 0.95rem; }
.gallery-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.6rem; border-radius: 999px;
  background: var(--cal-pink); color: #1a0d12; font-weight: 700; text-decoration: none; transition: background 0.2s ease, transform 0.2s ease;
}
.gallery-btn:hover, .gallery-btn:focus-visible { background: #fff; transform: translateY(-2px); outline: none; }

/* Media — fit on one screen */
#press .soc-stack { height: clamp(150px, 18vh, 210px); }
#press .soc-stage { padding: 0.8rem 1rem 0.7rem; gap: 0.6rem; }
#press .press-card-img { height: clamp(80px, 11vh, 150px); }
#press .press-card-body { padding: 0.8rem 1rem 0.9rem; }
#press .media-group-label { margin: 1rem 0 0.7rem; }
#press .gallery-panel { padding: 1.1rem 1.5rem; }
#press .calendar-header { margin-bottom: 1rem; }

/* The partners transition is a shorter panel, so the pan through it is quicker */
.h-rail > #partners { flex: 0 0 calc(var(--pw) * 0.68); width: calc(var(--pw) * 0.68); }
.h-mode .pt-word { font-size: calc(var(--pw) * 0.68 * 0.215); letter-spacing: 0; }

/* ===== Get in Contact ===== */
.site-footer { padding-top: 0; }
.contact-hero { position: relative; height: clamp(320px, 62vh, 700px); overflow: hidden; }
.contact-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; display: block; }
.contact-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11, 13, 16, 0.35) 0%, transparent 30%, rgba(11, 13, 16, 0.85) 100%); pointer-events: none; }
.contact-title {
  position: absolute; z-index: 2; left: clamp(1.5rem, 4vw, 3.25rem); bottom: clamp(1rem, 3vw, 2rem); margin: 0;
  font-size: clamp(3rem, 8vw, 7rem); font-weight: 700; line-height: 1; color: #fff;
}
.contact-title em { color: var(--papaya); }
.contact-sheet {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  max-width: none; margin: 1.25rem clamp(1.25rem, 4vw, 3rem) 0; padding: 1.25rem 1.6rem;
  border-radius: 18px; border: 1px solid rgba(246, 195, 210, 0.2);
  background: linear-gradient(155deg, rgba(246, 195, 210, 0.09), rgba(74, 163, 255, 0.05) 70%);
}
.contact-sheet .kicker { margin-bottom: 0.35rem; color: #f6c3d2; }
.contact-sheet p { margin: 0; }
.contact-sheet-text p:last-child { color: rgba(247, 245, 241, 0.82); max-width: 46ch; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.7rem; border-radius: 999px;
  background: #f6c3d2; color: #1a0d12; font-weight: 700; text-decoration: none; transition: background 0.2s ease, transform 0.2s ease;
}
.contact-btn:hover, .contact-btn:focus-visible { background: #fff; transform: translateY(-2px); outline: none; }
.h-rail > .site-footer .h-slide { justify-content: flex-start; }
.h-rail > .site-footer .contact-hero { width: 100%; height: clamp(320px, 67vh, 760px); }
.h-rail > .site-footer .h-slide > .contact-sheet { width: auto; }
.h-rail > .site-footer .h-slide > .footer-bar { margin-top: auto; }

/* ===== Short landscape screens (phones turned sideways) ===== */
/* Stacked cards (phones): photos keep the desktop proportions, nothing cropped oddly */
.prog:not(.prog-3d) .prog-card .prog-photos { flex: none; height: auto; min-height: 0; grid-template-rows: none; grid-auto-rows: auto; }
.prog:not(.prog-3d) .prog-card .prog-photos img { height: auto; aspect-ratio: 5 / 6; }
@media (max-height: 599px) {
  .site-header { padding-top: 0.45rem; padding-bottom: 0.45rem; }
  .site-header .logo, .site-header img { max-height: 34px; width: auto; }
  .site-nav a { font-size: 0.8rem; }
  .h-rail > .hero { min-height: 0; }
  .contact-title { font-size: clamp(2.2rem, 7vw, 4rem); }
  .cal-m { padding: 0.7rem 0.8rem 0.75rem; }
  .cal-m .cal-days span { height: 19px; line-height: 19px; }
}

/* ===== Phone fixes ===== */
html { overflow-x: clip; }
.soc-stage { overflow: hidden; }
@media (max-width: 560px) {
  #press .soc-stack { height: 190px; }
  .soc-card { height: 170px; width: min(300px, 76%); margin: -85px 0 0 calc(min(300px, 76%) / -2); padding: 0.9rem 1rem; }
  .soc-name { font-size: 1.45rem; }
}

/* ===== Sideways flow on phones held upright ===== */
.h-mode, .h-mode body { background: #000; }
.h-mode main { height: 100vh; height: 100svh; }
.h-rail > section, .h-rail > footer { height: 100vh; height: 100svh; }
.h-slide { min-height: 100vh; min-height: 100svh; }
@media (max-width: 700px) {
  .h-rail > #about .about-spread { grid-template-columns: 1fr; }
  .h-rail > #about .about-text { max-width: none; }
  .h-rail > #about .about-strips { position: relative; top: auto; left: auto; bottom: auto; width: auto; height: clamp(360px, 100vw, 520px); margin-top: 1.5rem; }
  .h-rail > #about .strips-pad { display: none; }
  .h-rail > #about .scroll-hint { display: none; }
  .h-rail > #partners { flex: 0 0 var(--pw); width: var(--pw); }
  .h-mode .pt-word { font-size: calc(var(--pw) * 0.2); }
  .pt-plate { width: 180px; height: 74px; }
  .pt-plate img { height: 36px; max-width: 130px; }
  .h-rail > .site-footer .contact-hero { height: clamp(300px, 55vh, 560px); }
}
