/* =========================================================
   Davide Coatti Racing — stylesheet
   © 2026 Enrica Berti. All rights reserved.
   ========================================================= */

/* ---------- Fonts (self-hosted: no requests to Google, GDPR-friendly) ----------
   Variable fonts, Latin subset, woff2: one file covers all weights used.
   Licence: SIL Open Font License 1.1. */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-var.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  /* colours */
  --ink: #050a22;                       /* page background (deepest navy) */
  --navy: #0a1640;
  --royal: #1d36d1;
  --royal-2: #3b5bff;
  --glass: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .12);     /* thin borders */
  --line-2: rgba(255, 255, 255, .24);   /* borders on hover */
  --txt: #eef2ff;                       /* main text */
  --mute: rgba(226, 232, 255, .8);      /* secondary text (≥ 4.5:1 contrast on every background) */
  --teal: #5ce1e6;                      /* labels, highlights */
  --orange: #ffa070;                    /* number #204, upcoming races */

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* fonts */
  --disp: "Inter Tight", "Inter", system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--txt);
  font-family: var(--mono);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; }

::selection { background: rgba(59, 91, 255, .55); color: #fff; }

/* ---------- Page background ---------- */
.site {
  position: relative;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(1100px 700px at 88% -8%, rgba(59, 91, 255, .55), transparent 62%),
    radial-gradient(900px 640px at -12% 28%, rgba(29, 54, 209, .38), transparent 60%),
    radial-gradient(900px 700px at 110% 62%, rgba(29, 54, 209, .30), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, rgba(59, 91, 255, .25), transparent 60%),
    linear-gradient(180deg, #0b1a5c 0%, #081245 22%, #060d33 55%, #050a22 100%);
}

/* soft moving light blobs */
.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
.glow.g1 { width: 520px; height: 520px; background: #2f4dff; top: -120px; right: 8%; }
.glow.g2 { width: 420px; height: 420px; background: #1aa6c9; top: 38%; left: -160px; opacity: .22; animation-duration: 28s; }
.glow.g3 { width: 560px; height: 560px; background: #2a3fe0; bottom: 6%; right: -200px; opacity: .3; animation-duration: 32s; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 80px) scale(.95); }
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.sec {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 0;
}
.sec--tight { padding-top: 0; }

/* let grid/flex children shrink on small screens */
.hero-grid > *, .split > *, .contact > *, .tiers > *, .head > * { min-width: 0; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1180px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(10, 22, 72, .42);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .6s var(--ease), box-shadow .6s var(--ease), border-color .6s;
  animation: navIn 1.1s var(--ease) both;
}
.nav.scrolled {
  background: rgba(5, 11, 38, .78);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7);
}
@keyframes navIn {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.brand {
  flex: 1;
  font: 600 15px var(--disp);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.brand b { color: var(--orange); font-weight: 600; margin-left: 4px; }

.nl {
  position: relative;
  font: 500 11px var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
  text-decoration: none;
  transition: color .35s;
}
.nl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nl:hover { color: #fff; }
.nl:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Typography ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  font: 500 11px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}
.chip i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.7); }
}

.kicker {
  display: block;
  font: 500 11px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
}

.display {
  margin-top: 26px;
  font-family: var(--disp);
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 100px);
  line-height: .94;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.h2 {
  margin-top: 18px;
  font-family: var(--disp);
  font-weight: 500;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

/* light second half of every title */
.thin { font-weight: 200; color: #c5d1ff; }

.lead {
  max-width: 54ch;
  margin-top: 24px;
  font: 400 14.5px/1.8 var(--mono);
  color: var(--mute);
}

/* ---------- Buttons ---------- */
.b {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  font: 600 11.5px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .6s var(--ease), background .4s, box-shadow .6s var(--ease), border-color .4s;
}
.b:hover { transform: translateY(-2px); }
.b .ar { display: inline-block; transition: transform .6s var(--ease); }
.b:hover .ar { transform: translate(3px, -3px); }

.b-light { background: #fff; color: #0a1640; }
.b-light:hover { box-shadow: 0 14px 34px -10px rgba(120, 150, 255, .75); }

.b-line { background: rgba(255, 255, 255, .03); color: #fff; border: 1px solid var(--line-2); }
.b-line:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }

.b.sm { height: 38px; padding: 0 18px; font-size: 10.5px; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- Glass cards & photos ---------- */
.glass {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 20, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* light that follows the mouse (position set in main.js) */
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(130, 160, 255, .2), transparent 45%);
  opacity: 0;
  transition: opacity .6s;
}
.spot:hover::before { opacity: 1; }

.ph {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: #0b1550;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.zoom:hover .ph img { transform: scale(1.06); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(130px, 15vw, 180px) 0 clamp(56px, 7vw, 90px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

/* title lines slide up one after another */
.line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.line > span { display: block; animation: rise 1.3s var(--ease) both; }
.line:nth-child(2) > span { animation-delay: .1s; }
.line:nth-child(3) > span { animation-delay: .2s; }
.line:nth-child(4) > span { animation-delay: .3s; }
@keyframes rise {
  from { transform: translateY(108%); }
  to   { transform: none; }
}

/* fade-up on page load */
.up { animation: up 1.2s var(--ease) both; }
.d1 { animation-delay: .35s; }
.d2 { animation-delay: .5s; }
@keyframes up {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* animated race track behind the hero (SVG added by main.js) */
.track {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .9;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 45%, #000 40%, transparent 85%);
  mask-image: radial-gradient(80% 70% at 60% 45%, #000 40%, transparent 85%);
}
.track svg { display: block; width: 100%; height: 100%; }
.track path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.t-base { stroke: rgba(150, 175, 255, .10); stroke-width: 18; }
.t-edge { stroke: rgba(190, 205, 255, .22); stroke-width: 1; stroke-dasharray: 2 10; }
.t-run  { stroke: #dfe7ff; stroke-width: 3; stroke-dasharray: 60 940; animation: lap 11s linear infinite; }
.t-run.b2 { stroke: var(--teal); stroke-width: 2.5; stroke-dasharray: 40 960; animation-duration: 14s; animation-delay: -5s; opacity: .85; }
@keyframes lap {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -1000; }
}

/* driver card */
.hcard { padding: 12px; animation: cardIn 1.4s var(--ease) .3s both; }
.hcard .ph { aspect-ratio: 5 / 6; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(40px) rotate(1.5deg) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.hmeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 6px 4px;
}
.hmeta span {
  font: 500 10px var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}
.hmeta .live { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); }
.live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: pulse 2s infinite;
}

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.tile {
  padding: 13px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  text-align: center;
  transition: background .4s, border-color .4s;
}
.tile:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-2); }
.tile .n {
  font: 300 clamp(20px, 2.2vw, 28px)/1 var(--disp);
  letter-spacing: -.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.tile .n.hot { color: var(--orange); }
.tile .l {
  margin-top: 7px;
  font: 500 10px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- Scrolling circuit names ---------- */
.marq {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marq-in { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marq:hover .marq-in { animation-play-state: paused; }
.marq-in span {
  padding-right: 40px;
  white-space: nowrap;
  font: 200 clamp(26px, 3.4vw, 44px)/1 var(--disp);
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: rgba(230, 236, 255, .55);
}
.marq-in b  { font-weight: 500; color: #fff; }
.marq-in em { font-style: normal; color: var(--teal); padding: 0 22px; }

/* year labels inside the band */
.marq-in .yr {
  display: inline-block;
  margin-right: 22px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  vertical-align: middle;
  font: 600 .32em/1 var(--mono);
  font-style: normal;
  letter-spacing: .14em;
  color: var(--mute);
}
.marq-in .yr.next { color: var(--orange); border-color: rgba(255, 122, 61, .5); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Story ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.frame { padding: 10px; }
.frame .ph { aspect-ratio: 3 / 2; }

.badge {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 2;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 34, .6);
  backdrop-filter: blur(10px);
  font: 500 10px var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.quote {
  max-width: 40ch;
  margin-top: 30px;
  padding-left: 20px;
  border-left: 2px solid var(--teal);
  font: 300 clamp(19px, 1.9vw, 24px)/1.45 var(--disp);
  color: #fff;
}

/* ---------- Telemetry app ---------- */
/* feature pills */
.feats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.feats li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  font: 500 10px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt);
}

/* "try the app" call to action */
.app-cta {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(92, 225, 230, .35);
  background: linear-gradient(120deg, rgba(92, 225, 230, .12), rgba(255, 255, 255, .02) 70%);
}
.app-cta-text {
  font: 300 clamp(17px, 1.6vw, 20px)/1.45 var(--disp);
  color: var(--mute);
}
.app-cta-text strong { display: block; font-weight: 500; color: #fff; }
.app-cta .btns { margin-top: 18px; }

/* desktop screenshot + phone video, overlapping */
.tele-shots {
  position: relative;
  padding-bottom: 60px;   /* room for the phone hanging below */
}
.tele-desk {
  margin: 0;
  padding: 12px;
  width: 88%;
}
.tele-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 12px;
  font: 500 10px var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}
.tele-head .live { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); }
.tele-desk img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.tele-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 34%;
  max-width: 220px;
  margin: 0;
  padding: 7px;
  border-radius: 30px;
  background: #0b0f1f;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .6);
  transition: transform .8s var(--ease);
}
.tele-shots:hover .tele-phone { transform: translateY(-8px) rotate(-1.5deg); }
.tele-phone video {
  display: block;
  width: 100%;
  aspect-ratio: 480 / 854;
  object-fit: cover;
  border-radius: 23px;
  background: #000;
}

@media (max-width: 920px) {
  .tele-desk { width: 100%; }
  .tele-phone { position: relative; width: 60%; margin: -40px auto 0; }
  .tele-shots { padding-bottom: 0; }
}

/* ---------- Section header (title + side element) ---------- */
.head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}

/* ---------- Calendar ---------- */
.cal-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }

.cal { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0 8px; }
.cal th {
  padding: 0 20px 4px;
  text-align: left;
  font: 500 10px var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}
.cal td {
  padding: 20px;
  background: rgba(255, 255, 255, .04);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font: 400 13px var(--mono);
  color: var(--mute);
  transition: background .5s var(--ease);
}
.cal td:first-child { border-left: 1px solid var(--line); border-radius: 16px 0 0 16px; color: #fff; }
.cal td:last-child  { border-right: 1px solid var(--line); border-radius: 0 16px 16px 0; }
.cal td:nth-child(2) {
  font: 500 19px var(--disp);
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: #fff;
}
.cal tr:hover td { background: rgba(120, 150, 255, .12); }

/* result pills */
.res {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 10.5px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.res.win  { background: rgba(92, 225, 230, .14); color: var(--teal); border-color: rgba(92, 225, 230, .4); }
.res.pod  { background: rgba(59, 91, 255, .22); color: #c3d0ff; border-color: rgba(130, 160, 255, .4); }
.res.out  { color: var(--mute); }
.res.next { color: var(--orange); border-color: rgba(255, 122, 61, .45); }
.res.next::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s infinite;
}

/* ---------- Instagram grid ---------- */
.ig {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
/* the first photo of each series is shown large (2 x 2 cells) */
.ig > .cell:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 780px) {
  .ig { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0b1550;
}
.cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.cell:hover img { transform: scale(1.07); }

/* caption slides up on hover */
.cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 16px 14px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 34, .92));
  font: 500 10.5px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  transform: translateY(101%);
  transition: transform .7s var(--ease);
}
.cell:hover .cap { transform: none; }

/* ---------- Gallery tabs (one per series) ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--mute);
  font: 500 12px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.tab:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.tab[aria-selected="true"] {
  background: #fff;
  border-color: #fff;
  color: #0a1446;
}
.tab-n {
  display: inline-grid;
  place-items: center;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 11px;
  letter-spacing: 0;
}
.tab[aria-selected="true"] .tab-n { background: #0a1446; color: #fff; }
.tab-panel[hidden] { display: none; }
.tab-panel:focus-visible { outline-offset: 6px; border-radius: 18px; }
.tab-panel.is-shown .cell { animation: cellIn .7s var(--ease) both; }
.tab-panel.is-shown .cell:nth-child(2) { animation-delay: .07s; }
.tab-panel.is-shown .cell:nth-child(3) { animation-delay: .14s; }
.tab-panel.is-shown .cell:nth-child(4) { animation-delay: .21s; }
.tab-panel.is-shown .cell:nth-child(n+5) { animation-delay: .28s; }
@keyframes cellIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tab-panel.is-shown .cell { animation: none; }
}
.motion-paused .tab-panel.is-shown .cell { animation: none; }

/* ---------- Sponsorship appeal ---------- */
.appeal {
  margin-top: 40px;
  padding: clamp(24px, 3vw, 36px);
  border-color: rgba(255, 122, 61, .35);
  background: linear-gradient(120deg, rgba(255, 122, 61, .14), rgba(255, 255, 255, .02) 60%);
}
.appeal .kicker.hot { color: var(--orange); }
.appeal-text {
  position: relative;
  z-index: 2;
  max-width: 62ch;
  margin-top: 16px;
  font: 300 clamp(18px, 1.9vw, 24px)/1.5 var(--disp);
  color: var(--mute);
}
.appeal-text strong { font-weight: 500; color: #fff; }

/* ---------- Partnership tiers ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.tier {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 30px 28px 32px;
  transition: transform .7s var(--ease), border-color .4s;
}
.tier:hover { transform: translateY(-6px); border-color: var(--line-2); }
.tier.feat {
  background: linear-gradient(160deg, rgba(59, 91, 255, .55), rgba(29, 54, 209, .18) 70%);
  border-color: rgba(150, 175, 255, .45);
}
.tier.feat .kicker { color: #fff; }
.tier.feat p { color: rgba(240, 244, 255, .9); }
.tier .kicker.hot  { color: var(--orange); }
.tier .idx {
  margin-bottom: auto;
  font: 200 52px/1 var(--disp);
  letter-spacing: -.04em;
  color: rgba(255, 255, 255, .22);
}
.tier .tn {
  margin: 28px 0 12px;
  font: 500 26px/1.05 var(--disp);
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: #fff;
}
.tier p {
  position: relative;
  z-index: 2;
  font: 400 13px/1.75 var(--mono);
  color: var(--mute);
}

.note {
  margin-top: 20px;
  font: 500 11px/1.6 var(--mono);
  letter-spacing: .08em;
  color: var(--mute);
}
.note::before { content: "✦ "; content: "✦ " / ""; color: var(--teal); } /* decorative: empty alt text for screen readers */

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(28px, 4vw, 56px);
}
.contact-text { position: relative; z-index: 2; }
.contact .h3 {
  margin-top: 16px;
  font: 500 clamp(26px, 3vw, 38px)/1.02 var(--disp);
  letter-spacing: -.03em;
  text-transform: uppercase;
}
/* contact buttons (email + WhatsApp) */
.cta {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  align-content: center;
}
.cta-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px 18px 18px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .6s var(--ease), background .4s, border-color .4s, box-shadow .6s var(--ease);
}
.cta-btn:hover { transform: translateY(-3px); }
.cta-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.cta-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  transition: transform .6s var(--ease);
}
.cta-ico svg { width: 26px; height: 26px; }
.cta-btn:hover .cta-ico { transform: rotate(-6deg) scale(1.06); }

.cta-txt { flex: 1; display: grid; gap: 6px; }
.cta-txt b {
  font: 500 clamp(18px, 1.8vw, 22px)/1 var(--disp);
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.cta-txt small {
  font: 500 10px var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}
.cta-btn .ar { font-size: 18px; transition: transform .6s var(--ease); }
.cta-btn:hover .ar { transform: translate(3px, -3px); }

/* email: white */
.cta-mail { background: #fff; color: #0a1640; border-color: #fff; }
.cta-mail .cta-txt small { color: rgba(10, 22, 64, .6); }
.cta-mail .cta-ico { background: #0a1640; color: #fff; }
.cta-mail:hover { box-shadow: 0 18px 40px -14px rgba(120, 150, 255, .8); }

/* WhatsApp: green accent */
.cta-wa .cta-ico { background: #25d366; color: #fff; box-shadow: 0 0 24px -4px rgba(37, 211, 102, .6); }
.cta-wa:hover {
  background: rgba(37, 211, 102, .12);
  border-color: rgba(37, 211, 102, .55);
  box-shadow: 0 18px 40px -16px rgba(37, 211, 102, .45);
}

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
  font: 500 10.5px var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}

/* link inside a section label (e.g. Instagram handle) */
.kicker-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(92, 225, 230, .4);
  text-underline-offset: 4px;
  transition: color .3s, text-decoration-color .3s;
}
.kicker-link:hover { color: #fff; text-decoration-color: #fff; }

/* inline links in texts and tables */
.lnk {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(92, 225, 230, .5);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .3s, text-decoration-color .3s;
}
.lnk:hover { color: var(--teal); text-decoration-color: var(--teal); }

.foot-link { color: inherit; text-decoration: none; transition: color .3s; }
.foot .credit {
  flex-basis: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 10.5px;
  color: var(--mute);
}
.foot-link:hover { color: var(--teal); }

/* ---------- Scroll reveal (active only when main.js runs) ---------- */
.js-anim .rv {
  opacity: 0;
  translate: 0 30px;
  filter: blur(6px);
  transition:
    opacity 1s var(--ease),
    translate 1.2s var(--ease),
    filter 1s var(--ease),
    transform .7s var(--ease),
    border-color .4s,
    background .5s;
}
.js-anim .rv.is-visible { opacity: 1; translate: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .split, .tiers, .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .nav { gap: 10px; padding-left: 18px; }
}
/* (mobile menu rules are at the end of the file, after the base nav rules) */
@media (max-width: 480px) {
  .hide-sm { display: none; }
  .brand { font-size: 13px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .display { font-size: clamp(38px, 11vw, 56px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-anim .rv { opacity: 1; translate: none; filter: none; }
}

/* =========================================================
   Accessibility (WCAG 2.1 AA)
   ========================================================= */

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

/* "Skip to main content" — visible only when focused with the keyboard */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #0a1640;
  font: 600 12px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* clearly visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.b:focus-visible, .chip:focus-visible { border-radius: 999px; }
main:focus { outline: none; }
.cal-wrap:focus-visible { border-radius: 16px; }

/* contact buttons are real <button>s: reset browser defaults */
.cta-btn { width: 100%; text-align: left; font: inherit; appearance: none; }
.cta-btn:focus-visible { border-radius: 20px; }

/* lists that look like grids */
.nav-links, .tiles, .ig, .tiers { list-style: none; margin: 0; padding: 0; }
.tile .n, .tile .l { display: block; }

.brand { text-decoration: none; padding: 8px 0; }

/* minimum 24px click/tap area (WCAG 2.5.8) */
.foot-link, .kicker-link { display: inline-block; padding: 7px 0; margin: -7px 0; }
.quote { margin-left: 0; margin-right: 0; }

/* navigation links: bigger click/tap area */
.nav-links { display: flex; align-items: center; gap: 22px; }
.nl { display: inline-block; padding: 10px 2px; }
.nl::after { bottom: 4px; }

/* mobile menu button */
.menu-btn {
  flex: none;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
}
.menu-ico { display: grid; gap: 4px; }
.menu-ico i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.nav.open .menu-ico i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-ico i:nth-child(2) { opacity: 0; }
.nav.open .menu-ico i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* play / pause button on the phone video */
.vid-btn {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(5, 10, 34, .75);
  color: #fff;
  cursor: pointer;
}

/* pause / play icons (pure CSS) used by the video and motion buttons */
.vid-ico, .motion-ico {
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) left / 4px 100% no-repeat,
    linear-gradient(currentColor, currentColor) right / 4px 100% no-repeat;
}
.vid-btn[aria-pressed="true"] .vid-ico,
.motion-btn[aria-pressed="true"] .motion-ico {
  background: currentColor;
  clip-path: polygon(10% 0, 100% 50%, 10% 100%);
}

/* "Pause animations" button in the navigation bar, always available */
.motion-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background .3s;
}
.motion-btn:hover { background: rgba(255, 255, 255, .14); }

/* when paused: stop every continuous animation (entry animations still finish) */
.motion-paused .glow,
.motion-paused .marq-in,
.motion-paused .t-run,
.motion-paused .chip i,
.motion-paused .live::before,
.motion-paused .res.next::before {
  animation-play-state: paused !important;
}

/* mobile menu: links become a drop-down panel opened by the menu button */
@media (max-width: 780px) {
  .menu-btn { display: grid; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid var(--line-2);
    background: rgba(5, 11, 38, .97);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links .nl { display: block; padding: 14px 16px; font-size: 12px; border-radius: 14px; }
  .nav-links .nl:hover { background: rgba(255, 255, 255, .06); }
  .nav-links .nl::after { display: none; }
}

/* Windows high-contrast mode: keep borders on cards and buttons */
@media (forced-colors: active) {
  .glass, .b, .cta-btn, .chip, .res, .tile, .cell, .motion-btn, .menu-btn, .vid-btn, .tab { border: 1px solid CanvasText; }
  .tab[aria-selected="true"] { border: 3px solid Highlight; }
}

/* ---------- German version: long compound words ----------
   On narrow screens, titles may hyphenate (uses lang="de") instead of overflowing. */
@media (max-width: 600px) {
  .display, .h2, .h3, .tn, .appeal-text, .lead {
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
  }
}

/* ---------- Language switch (DE | EN) in the navigation bar ---------- */
.lang {
  flex: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 3px;
  list-style: none;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .06);
}
.lang-a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;                 /* 24px+ tap area (WCAG 2.5.8) */
  padding: 0 8px;
  border-radius: 999px;
  font: 500 10.5px var(--mono);
  letter-spacing: .14em;
  color: var(--mute);
  text-decoration: none;
  transition: background .3s, color .3s;
}
.lang-a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lang-a[aria-current="true"] { color: #0a1640; background: #fff; }
.lang-a:focus-visible { border-radius: 999px; }
/* very small screens: show only the other language, to save space */
@media (max-width: 480px) {
  .lang li:has([aria-current="true"]) { display: none; }
  .lang-a { min-width: 30px; padding: 0 6px; }
}
@media (forced-colors: active) {
  .lang { border: 1px solid CanvasText; }
  .lang-a[aria-current="true"] { border: 2px solid Highlight; }
}

/* ---------- Legal pages (Impressum / Datenschutz, Legal notice / Privacy) ---------- */
.legal { padding: clamp(120px, 16vw, 170px) 0 90px; }
.legal .wrap { max-width: 860px; }
.legal .h2 { margin-bottom: 10px; }
.legal h2 {
  margin: 46px 0 0;
  font: 500 clamp(17px, 1.8vw, 21px)/1.25 var(--disp);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
}
.legal p, .legal li, .legal address {
  max-width: 70ch;
  font: 400 14px/1.85 var(--mono);
  font-style: normal;
  color: var(--mute);
}
.legal p, .legal address { margin: 14px 0 0; }
.legal ul { margin: 14px 0 0; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal strong { font-weight: 500; color: #fff; }
.legal .legal-links { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal .todo { padding: 0 .35em; border-radius: 4px; background: rgba(255, 160, 112, .16); color: var(--orange); }
.foot-link[aria-current="page"] { color: #fff; }
