/* Winbox News — public site styles */
:root {
  --bg: #000518;
  --bg-head: #000516;
  --bg-2: #00152d;
  --panel: #12141f;
  --drawer: #151a27;
  --cyan: #28eaff;
  --cyan-2: #00d3ff;
  --line: rgba(40, 234, 255, .27);
  --line-strong: rgba(40, 234, 255, .67);
  --muted: #929292;
  --muted-2: #c3c3c3;
  --grey: #8e8d8d;
  --gold: #ffd103;
  --radius: 18px;
  --wrap: 1320px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: #fff; font-family: var(--font);
  font-size: 16px; line-height: 1.35; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.only-mobile { display: none !important; }

/* ---------- top loader + reading progress ---------- */
.loadbar {
  position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--cyan), #fff, var(--cyan), transparent);
  background-size: 200% 100%; animation: loadbar 1s linear infinite; transition: opacity .4s;
}
.loadbar.done { opacity: 0; }
@keyframes loadbar { to { background-position: -200% 0; } }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 150; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); box-shadow: 0 0 12px var(--cyan); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100; background: var(--bg-head);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s, margin .35s var(--ease);
}
/* margin makes up the 19px the bar loses, so the page below never moves (no scroll jitter) */
.site-head.scrolled { margin-bottom: 19px; background: rgba(0, 5, 22, .82); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 8px 30px rgba(0, 0, 0, .45), 0 1px 0 var(--line); }
#main { display: flow-root; } /* keeps the header's margin from collapsing into the first section */
.head-bar { display: flex; align-items: center; justify-content: space-between; height: 89px; transition: height .35s var(--ease); }
.scrolled .head-bar { height: 70px; }
.logo { display: block; width: 196px; }
.logo img { width: 100%; height: auto; transition: transform .4s var(--ease), filter .4s; }
.logo:hover img { transform: skewX(-6deg) scale(1.03); filter: drop-shadow(0 0 12px rgba(40, 234, 255, .6)); }

.nav { display: flex; gap: 38px; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 20px; letter-spacing: .01em;
  padding: 10px 0; position: relative; transition: color .25s;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--cyan);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); box-shadow: 0 0 8px var(--cyan);
}
.nav-item:hover .nav-link, .nav-link.active { color: var(--cyan); }
.nav-item:hover .nav-link::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.chev { width: 10px; height: 6px; transition: transform .3s var(--ease); }
.nav-item:hover .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: -16px; min-width: 210px; padding: 10px; border-radius: 14px;
  background: rgba(10, 16, 32, .96); border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 8px; font-weight: 500; font-size: 16px; color: var(--muted-2);
  transition: background .2s, color .2s, padding .25s var(--ease);
}
.dropdown a:hover { background: rgba(40, 234, 255, .1); color: var(--cyan); padding-left: 18px; }
/* language menu in the desktop header */
.nav-lang .nav-link, .nav-lang .dropdown a { display: flex; align-items: center; gap: 8px; }
.nav-lang .dropdown { left: auto; right: 0; min-width: 190px; }
.nav-lang .dropdown a.on { color: var(--cyan); }
.nav-flag { display: inline-flex; flex: none; }
.nav-flag svg { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .25); }

.burger { display: none; width: 34px; height: 26px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 3px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 11px; }
.burger span:nth-child(3) { top: 20px; }

.strip { display: none; }

/* ---------- mobile drawer ---------- */
.drawer-back {
  position: fixed; inset: 0; z-index: 300; background: rgba(0, 3, 12, .6); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.drawer {
  position: fixed; top: 0; left: 0; z-index: 310; width: min(375px, 86vw); max-height: 100dvh; overflow-y: auto;
  background: var(--drawer); border-radius: 0 0 28px 0; padding: 20px 20px 32px;
  transform: translateX(-105%); transition: transform .32s var(--ease); box-shadow: 20px 0 60px rgba(0, 0, 0, .5);
}
body.menu-open { overflow: hidden; }
body.menu-open .drawer-back { opacity: 1; visibility: visible; }
body.menu-open .drawer { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer-top .logo { width: 126px; }
.drawer-close { width: 32px; height: 32px; display: grid; place-items: center; transition: transform .4s var(--ease); }
.drawer-close:hover { transform: rotate(90deg); }
.drawer-nav > * { opacity: 0; transform: translateX(-16px); transition: opacity .22s, transform .28s var(--ease); }
body.menu-open .drawer-nav > * { opacity: 1; transform: none; transition-delay: calc(var(--i) * 18ms + 40ms); }
.dn-row { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dn-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 6px;
  font-weight: 600; font-size: 17px; text-transform: uppercase; text-align: left;
}
.dn-row.open .dn-head { color: var(--cyan); }
.dn-row.open .dn-head .chev { transform: rotate(180deg); }
.dn-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s var(--ease); background: rgba(0, 0, 0, .12); }
.dn-row.open .dn-sub { grid-template-rows: 1fr; }
.dn-sub > div { overflow: hidden; }
.dn-sub a { display: block; padding: 5px 18px; font-size: 14px; color: #d7d7d7; transition: color .2s, transform .25s; }
.dn-sub a:last-child { padding-bottom: 12px; }
.dn-sub a:first-child { padding-top: 8px; }
.dn-sub a:hover { color: var(--cyan); transform: translateX(4px); }
.dn-label { margin: 24px 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.langs { display: flex; gap: 10px; }
.lang {
  width: 66px; height: 40px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .15);
  display: grid; place-items: center; align-content: center; gap: 4px; font-size: 9px; font-weight: 600; transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.lang svg { width: 21px; height: 14px; border-radius: 1.5px; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .25); }
.lang.active { border-color: var(--cyan); background: rgba(40, 234, 255, .08); color: var(--cyan); box-shadow: 0 0 14px rgba(40, 234, 255, .25); }
.socials { display: flex; gap: 16px; }
.socials a { width: 22px; height: 22px; display: grid; place-items: center; color: #fff; transition: color .2s, transform .3s var(--ease); }
.socials a:hover { color: var(--cyan); transform: translateY(-3px); }

/* ---------- sponsor banner ---------- */
.sponsor { display: block; width: min(1146px, 100%); margin: 35px auto 0; border-radius: 18px; overflow: hidden; position: relative; }
.sponsor img { width: 100%; aspect-ratio: 1146 / 202; object-fit: cover; }
.shine { position: relative; overflow: hidden; isolation: isolate; }
.shine::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 5.5s var(--ease) infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* ---------- section heads ---------- */
.section { margin-top: 50px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--cyan); text-transform: uppercase; }
.eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--cyan); transform-origin: left; animation: grow 1s var(--ease) both .2s; }
@keyframes grow { from { transform: scaleX(0); } }
.sec-title { margin: 2px 0 18px; font-weight: 700; font-size: 24px; line-height: 1.2; }

/* ---------- tag + time chip ---------- */
.tags { display: flex; align-items: center; gap: 4px; font-weight: 600; font-style: italic; font-size: 13.5px; line-height: 1; color: var(--muted); }
.tags b { color: var(--cyan); font-weight: 600; letter-spacing: .06em; }
.tags i { width: 3px; height: 7px; display: inline-block; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); opacity: .9; margin: 0 2px; }
.tags i::after { content: none; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; background: var(--cyan); color: var(--bg); border-radius: 999px;
  font-weight: 600; font-style: italic; font-size: 10px; line-height: 1; padding: 4px 9px 4px 6px; white-space: nowrap;
}
.chip.lg { font-size: 16px; padding: 5px 12px 5px 8px; gap: 6px; }
.clock { width: 8px; height: 8px; flex: none; }
.chip.lg .clock { width: 13px; height: 13px; }
.clock .hand { transform-origin: 12px 12px; animation: tick 4s steps(8) infinite; }
@keyframes tick { to { transform: rotate(360deg); } }

/* ---------- cards ---------- */
.card { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); isolation: isolate;
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease); }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 40px -12px rgba(40, 234, 255, .28), 0 0 0 1px rgba(40, 234, 255, .15); }
.card .media { overflow: hidden; position: relative; background: #0a1024; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; }
.card:hover .media img { transform: scale(1.07); }
.card::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(40, 234, 255, .18) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform 0s;
}
.card:hover::before { transform: translateX(100%); transition: transform .9s var(--ease); }
.title { font-weight: 700; line-height: 1.1; margin: 0; }

/* overlay card (hero) */
.ov { height: 100%; }
.ov .media { position: absolute; inset: 0; }
.ov .media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 5, 24, 0) 35%, rgba(0, 5, 24, .72) 68%, rgba(0, 5, 24, .96) 100%); }
.ov .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 26px 22px; z-index: 2; }
.ov .title { font-size: 26px; margin-top: 8px; transition: color .3s; }
.ov:hover .title { color: #e9fdff; text-shadow: 0 0 22px rgba(40, 234, 255, .35); }
.ov .excerpt { margin: 6px 0 0; font-size: 14.5px; font-weight: 300; font-style: italic; color: var(--muted-2); line-height: 1.3; }
.ov .chip { position: absolute; top: 18px; right: 18px; z-index: 2; }
.ov.hero .title { font-size: 33px; }
.ov.hero .tags { font-size: 17px; }
.ov.hero .media img { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }
.ov.side .excerpt { display: none; }
.ov.side .title { font-size: 19px; }
.ov.side .body { padding: 0 18px 16px; }
.ov.side .chip { top: 12px; right: 12px; }

/* stacked card (image top) */
.stack .media { aspect-ratio: 431 / 242; border-radius: 0 0 16px 16px; }
.stack .body { padding: 14px 26px 20px; }
.stack .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stack .title { font-size: 20px; margin-top: 8px; }
.stack .excerpt { margin: 8px 0 0; font-size: 13px; font-style: italic; font-weight: 300; color: var(--muted-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* list card (thumb left) */
.li { display: flex; gap: 12px; padding: 12px; height: 123px; border-radius: 18px; }
.li .media { width: 98px; height: 98px; flex: none; border-radius: 11.6px; }
.li .body { display: flex; flex-direction: column; min-width: 0; padding-top: 1px; }
.li .title { font-size: 18px; line-height: 1.02; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 286px; }
.li .chip { margin-top: auto; align-self: flex-start; }

/* ad slot */
.ad { display: block; border-radius: 16px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.ad img { width: 100%; height: 100%; object-fit: cover; }
.ad:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 20px 44px -14px rgba(40, 234, 255, .4); }

/* ---------- home layout ---------- */
.hero-grid { display: grid; grid-template-columns: 876fr 426fr; gap: 13px; height: 437px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.mosaic {
  display: grid; grid-template-columns: 431fr 424fr 424fr; gap: 20px 21px; margin-top: 24px;
  grid-template-areas: "big1 list1 ad1" "big2 list2 col3";
}
.mosaic > .a-big1 { grid-area: big1; } .mosaic > .a-big2 { grid-area: big2; }
.mosaic > .a-list1 { grid-area: list1; } .mosaic > .a-list2 { grid-area: list2; }
.mosaic > .a-ad1 { grid-area: ad1; } .mosaic > .a-col3 { grid-area: col3; }
.list { display: grid; gap: 17px; align-content: start; }
.a-col3 { display: grid; gap: 17px; grid-template-rows: 123px 1fr; }
.a-ad1 .ad { height: 100%; max-height: 403px; }
/* big cards match the height of the list column beside them; the image takes up the slack */
@media (min-width: 901px) {
  .mosaic > .a-big1, .mosaic > .a-big2 { display: flex; }
  .mosaic .stack { display: flex; flex-direction: column; flex: 1; }
  .mosaic .stack .media { aspect-ratio: auto; flex: 1 1 0; min-height: 180px; }
}

.f1-grid { display: grid; grid-template-columns: 876fr 424fr; gap: 20px; margin-top: 30px; }
.f1-grid .ov.hero { height: 437px; }
.f1-list { display: grid; gap: 17px; margin-top: 17px; }

/* ---------- race control ---------- */
/* Card sizes are Figma px (424 x 131 card) times --r, so the card scales as one piece. */
.races { display: grid; gap: 21px; container-type: inline-size; }
.race {
  --r: calc(100cqw / 424);
  position: relative; aspect-ratio: 424 / 131; border-radius: calc(10 * var(--r)); overflow: hidden; display: block; isolation: isolate;
  background: linear-gradient(100deg, #00152d 0%, #031a38 45%, #00152d 100%);
  border: 1px solid var(--line-strong); animation: glow 3.2s ease-in-out infinite;
  transition: transform .45s var(--ease);
}
.race:nth-child(2) { animation-delay: -1s; } .race:nth-child(3) { animation-delay: -2s; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 8px rgba(40, 234, 255, .35), inset 0 0 12px rgba(40, 234, 255, .08); } 50% { box-shadow: 0 0 22px rgba(40, 234, 255, .65), inset 0 0 18px rgba(40, 234, 255, .15); } }
.race:hover { transform: translateY(-3px) scale(1.01); }
.race .pic { position: absolute; top: 0; right: 0; bottom: 0; width: 54.2%; clip-path: polygon(27% 0, 100% 0, 100% 100%, 0 100%); overflow: hidden; }
.race .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.race:hover .pic img { transform: scale(1.1); }
.race .slash { position: absolute; top: 0; bottom: 0; right: 40.3%; width: 16%; pointer-events: none;
  background: linear-gradient(180deg, var(--cyan), rgba(40, 234, 255, .15)); clip-path: polygon(88% 0, 100% 0, 12% 100%, 0 100%); opacity: .85; }
.race .flag { position: absolute; top: calc(6 * var(--r)); right: calc(7 * var(--r)); width: calc(24 * var(--r)); height: calc(24 * var(--r)); border-radius: 50%; border: 1.5px solid #fff; overflow: hidden; background: #d9d9d9; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.race .flag img { width: 100%; height: 100%; object-fit: cover; }
.race .info { position: relative; z-index: 2; padding: calc(15 * var(--r)) 0 0 calc(15 * var(--r)); width: 60%; }
.race p { margin: 0; }
.race .series { font-size: calc(8.5 * var(--r)); font-style: italic; font-weight: 300; color: var(--muted-2); letter-spacing: .08em; }
.race h3 { margin: calc(3 * var(--r)) 0 0; font-weight: 700; font-style: italic; font-size: calc(23 * var(--r)); line-height: .88; text-transform: uppercase; white-space: nowrap; }
.race h3 span { display: block; color: var(--cyan); }
.race .date { display: flex; align-items: center; gap: calc(5 * var(--r)); margin-top: calc(7 * var(--r)); font-size: calc(9 * var(--r)); font-style: italic; color: var(--muted-2); padding-bottom: calc(5 * var(--r)); border-bottom: 1px solid rgba(255, 255, 255, .35); width: calc(138 * var(--r)); white-space: nowrap; }
.race .date svg { width: calc(12 * var(--r)); height: calc(12 * var(--r)); color: var(--cyan); flex: none; }
.race .more { display: inline-flex; align-items: center; gap: calc(5 * var(--r)); margin-top: calc(8 * var(--r)); background: var(--cyan); color: var(--bg); border-radius: 999px; font-weight: 700; font-size: calc(7.5 * var(--r)); padding: calc(4 * var(--r)) calc(10 * var(--r)); letter-spacing: .02em; white-space: nowrap; }
.race .more svg { width: calc(5 * var(--r)); transition: transform .3s var(--ease); }
.race:hover .more svg { transform: translateX(3px); }

/* ---------- newsletter ---------- */
.newsletter { position: relative; margin-top: 30px; border-radius: 31px; overflow: hidden; height: 317px; border: 1px solid rgba(40, 234, 255, .15); }
.newsletter > picture img, .newsletter > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
/* Form sizes are Figma px times --u, so the card scales as one piece on mobile. */
.nl-form {
  --u: 1px;
  position: absolute; right: 46px; top: 25px; width: calc(547 * var(--u));
  padding: calc(14 * var(--u)) calc(24 * var(--u)) calc(24 * var(--u)) calc(32 * var(--u));
  border-radius: calc(24 * var(--u)); background: rgba(0, 21, 45, .72);
  border: .75px solid var(--cyan); box-shadow: 0 0 calc(15 * var(--u)) calc(-1.5 * var(--u)) rgba(40, 234, 255, .67);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nl-head { display: flex; align-items: center; gap: calc(24 * var(--u)); }
.nl-icon {
  width: calc(53 * var(--u)); height: calc(53 * var(--u)); border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(180deg, #26e3fe, #00a8fb); color: #000518; animation: bob 3s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-3px); } }
.nl-icon svg { width: calc(25 * var(--u)); }
.nl-head h3, .nl-head p {
  background: linear-gradient(180deg, #fff 25.5%, #bfe0f9 65.9%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nl-head h3 { margin: 0; font-weight: 700; font-style: italic; font-size: calc(26.9 * var(--u)); line-height: 1.06; letter-spacing: calc(.54 * var(--u)); white-space: nowrap; }
.nl-head p { margin: calc(4 * var(--u)) 0 0; font-weight: 300; font-style: italic; font-size: calc(10.6 * var(--u)); line-height: 1.02; letter-spacing: calc(5.6 * var(--u)); white-space: nowrap; }
.nl-field { position: relative; display: block; margin-top: calc(12 * var(--u)); }
.nl-field svg { position: absolute; left: calc(18.5 * var(--u)); top: 50%; width: calc(26 * var(--u)); transform: translateY(-50%); color: #c4c4c4; }
.nl-field svg * { stroke-width: 1.4; }
.nl-field input {
  width: 100%; height: calc(52 * var(--u)); border-radius: 999px; border: 2px solid transparent; background: #fff; color: #0a0f1e;
  padding: 0 calc(20 * var(--u)) 0 calc(68 * var(--u)); font: 400 calc(17 * var(--u)) var(--font); outline: none; transition: border-color .25s, box-shadow .25s;
}
.nl-field input::placeholder { color: #b3b3b3; }
.nl-field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(40, 234, 255, .25); }
.nl-btn {
  position: relative; overflow: hidden; width: 100%; height: calc(52 * var(--u)); margin-top: calc(12 * var(--u)); border-radius: 999px;
  background: linear-gradient(180deg, #26e2fe, #02acfb); box-shadow: 0 0 1px 1.5px var(--cyan); color: #000518;
  font-weight: 600; font-size: calc(24 * var(--u)); display: flex; align-items: center; justify-content: center; gap: calc(22 * var(--u));
  transition: transform .25s var(--ease), box-shadow .3s;
}
.nl-btn:hover { transform: translateY(-2px); box-shadow: 0 0 1px 1.5px var(--cyan), 0 10px 26px -6px rgba(40, 234, 255, .7); }
.nl-btn:active { transform: scale(.98); }
.nl-btn svg { width: calc(8 * var(--u)); overflow: visible; transition: transform .3s var(--ease); }
.nl-btn svg path { stroke-width: 3; }
.nl-btn:hover svg { transform: translateX(4px); }
.nl-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4s var(--ease) infinite; }
.nl-btn[disabled] { opacity: .7; pointer-events: none; }
.nl-consent {
  display: flex; align-items: flex-start; gap: calc(21 * var(--u)); margin-top: calc(12 * var(--u)); padding-left: calc(4.5 * var(--u)); cursor: pointer;
  font-weight: 300; font-style: italic; font-size: calc(15.2 * var(--u)); line-height: 1.2; letter-spacing: calc(1.37 * var(--u)); color: #fff;
}
.nl-consent input {
  appearance: none; -webkit-appearance: none; width: calc(27.4 * var(--u)); height: calc(26 * var(--u)); border-radius: calc(5 * var(--u));
  border: .76px solid #fff; background: transparent; flex: none; display: grid; place-items: center; cursor: pointer; transition: all .2s; margin: 0;
}
.nl-consent input:checked { background: var(--cyan); border-color: var(--cyan); }
.nl-consent input:checked::after { content: ''; width: calc(7 * var(--u)); height: calc(13 * var(--u)); border: solid var(--bg); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.nl-consent a { text-decoration: underline; text-underline-offset: 2px; font-weight: 500; color: #fff; }
.nl-msg { margin: calc(8 * var(--u)) 0 0; font-size: calc(15 * var(--u)); color: var(--cyan); }
.nl-msg:empty { display: none; }
.nl-msg.err { color: #ff7a8a; }
.nl-form.ok .nl-field, .nl-form.ok .nl-btn, .nl-form.ok .nl-consent { display: none; }
.nl-form.ok .nl-msg { font-size: calc(20 * var(--u)); font-weight: 600; padding: calc(40 * var(--u)) 0 calc(30 * var(--u)); text-align: center; animation: pop .6s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- footer ---------- */
.site-foot { margin-top: 58px; border-top: 1px solid rgba(40, 234, 255, .45); padding: 23px 0 40px; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; font-weight: 600; font-size: 16px; color: var(--muted-2); }
.foot-links a { position: relative; transition: color .2s; }
.foot-links a:hover { color: var(--cyan); }
.copy { margin: 27px 0 0; font-weight: 300; font-size: 20px; color: var(--muted-2); line-height: 1.96; }
.copy strong { font-weight: 500; }

/* ---------- article ---------- */
.art-grid { display: grid; grid-template-columns: minmax(0, 816px) 424px; justify-content: space-between; gap: 44px; margin-top: 50px; }
.crumbs { display: flex; gap: 10px; font-weight: 600; font-size: 17.5px; color: var(--grey); }
.crumbs a:hover { color: var(--cyan); }
.art-title { margin: 14px 0 0; font-weight: 700; font-size: 50px; line-height: 1.147; text-transform: uppercase; }
.art-title .w { display: inline-block; opacity: 0; transform: translateY(40%); animation: rise .7s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.art-sub { margin: 16px 0 0; font-weight: 300; font-size: 32px; line-height: 1.147; color: var(--grey); }
.byline { display: flex; align-items: center; gap: 13px; margin-top: 24px; }
.byline .avatar { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; background: #1a2238; border: 2px solid rgba(255, 255, 255, .1); }
.byline .avatar.ph { display: grid; place-items: center; font-weight: 700; color: var(--cyan); font-size: 24px; }
.byline b { display: block; color: var(--gold); font-weight: 600; font-size: 28px; line-height: 1.1; }
.byline span { display: block; color: var(--grey); font-weight: 300; font-size: 22px; }
.cover { margin: 22px 0 0; }
.cover .img { border-top: 5px solid var(--cyan-2); border-radius: 0 0 20px 20px; overflow: hidden; box-shadow: 0 -6px 20px -6px rgba(0, 211, 255, .5); }
.cover img { width: 100%; aspect-ratio: 810 / 539; object-fit: cover; animation: coverIn 1.2s var(--ease) both; }
@keyframes coverIn { from { transform: scale(1.12); filter: brightness(.4) blur(6px); } }
figcaption { margin-top: 10px; }
figcaption strong { display: block; font-weight: 600; font-size: 26px; line-height: 1.2; }
figcaption span { display: block; font-weight: 300; font-size: 22px; color: var(--grey); }
.prose { margin-top: 32px; font-size: 24px; line-height: 1.3; }
.prose p { margin: 0 0 1.15em; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose h2, .prose h3 { font-weight: 700; line-height: 1.15; margin: 1.3em 0 .5em; }
.prose blockquote { margin: 0 0 1.15em; padding: 6px 0 6px 20px; border-left: 4px solid var(--cyan); font-style: italic; color: #d9f8ff; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.15em; }
.prose figure { margin: 36px 0; background: var(--panel); border-radius: 21px; overflow: hidden; }
.prose figure img { width: 100%; object-fit: cover; }
.prose figure figcaption { padding: 14px 26px 22px; margin: 0; }
.prose > img, .prose p > img { border-radius: 18px; margin: 20px 0; }
.prose iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; margin: 20px 0; background: #000; }
.preview-note { margin: 0 0 18px; padding: 10px 16px; border: 1px dashed #ffc83d; border-radius: 12px; color: #ffc83d; font-size: 15px; background: rgba(255, 200, 61, .08); }
.videos { margin: 20px 0 44px; background: var(--panel); border-radius: 21px; padding: 18px 20px 22px; }
.videos h2 { margin: 0 0 14px 18px; font-weight: 700; font-size: 51px; line-height: .96; text-transform: uppercase; }
.video { position: relative; aspect-ratio: 784 / 417; border-radius: 22px; overflow: hidden; background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.video:hover img { transform: scale(1.05); filter: brightness(.8); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; width: 142px; height: 142px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); display: grid; place-items: center; transition: transform .35s var(--ease), background .3s; }
.play::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); animation: ring 2s ease-out infinite; }
@keyframes ring { to { transform: scale(1.35); opacity: 0; } }
.play svg { width: 54px; margin-left: 10px; }
.video:hover .play { transform: translate(-50%, -50%) scale(1.08); background: rgba(40, 234, 255, .35); }
.inline-ad { display: none; }
.share { text-align: center; margin-top: 40px; }
.share p { margin: 0; font-weight: 600; font-size: 25px; color: var(--grey); }
.share-row { display: flex; justify-content: center; gap: 46px; margin-top: 22px; }
.share-row a, .share-row button { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; transition: color .2s, transform .35s var(--ease); }
.share-row a:hover, .share-row button:hover { color: var(--cyan); transform: translateY(-4px) rotate(-6deg); }
.share-row svg { width: 34px; height: 34px; }
.aside { display: grid; gap: 17px; align-content: start; }
.aside .ad img { height: auto; }
.also { margin-top: 44px; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 400; transform: translate(-50%, 30px); opacity: 0; background: var(--cyan); color: var(--bg); font-weight: 600; padding: 12px 22px; border-radius: 999px; transition: all .4s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* category/listing */
.cat-head { margin-top: 44px; }
.cat-title { margin: 4px 0 0; font-size: 44px; font-weight: 700; text-transform: uppercase; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 21px; margin-top: 24px; }
.cat-grid .stack { height: 100%; }
.more-btn { display: block; margin: 36px auto 0; padding: 13px 34px; border-radius: 999px; border: 1px solid var(--cyan); color: var(--cyan); font-weight: 600; font-size: 17px; transition: all .3s var(--ease); }
.more-btn[hidden] { display: none; }
.more-btn:hover { background: var(--cyan); color: var(--bg); box-shadow: 0 0 24px rgba(40, 234, 255, .5); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); font-size: 20px; }
.wrap.empty { min-height: 70vh; }

/* skeletons */
.sk { background: linear-gradient(100deg, #0a1128 30%, #13203f 50%, #0a1128 70%); background-size: 300% 100%; animation: sk 1.3s linear infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -150% 0; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .nav { gap: 22px; } .nav-link { font-size: 17px; }
  .logo { width: 165px; }
  .art-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1080px) {
  .nav { gap: 14px; } .nav-link { font-size: 14.5px; gap: 5px; } .logo { width: 132px; }
  .nav-flag svg { width: 18px; height: 12px; }
}
@media (max-width: 1024px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-areas: "big1 list1" "ad1 list2" "big2 col3"; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .only-mobile { display: revert !important; }
  .only-desktop { display: none !important; }
  .wrap { width: calc(100% - 48px); }
  .head-bar, .scrolled .head-bar { height: 64px; justify-content: flex-start; gap: 16px; }
  .site-head.scrolled { margin-bottom: 0; }
  .nav { display: none; }
  .burger { display: block; }
  .logo { width: 126px; }
  .strip { display: block; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .strip-in { display: flex; gap: 31px; overflow-x: auto; scrollbar-width: none; padding: 10px 24px 12px; }
  .strip-in::-webkit-scrollbar { display: none; }
  .strip a { flex: none; font-weight: 600; font-size: 14px; text-transform: uppercase; position: relative; transition: color .2s; }
  .strip a.active { color: var(--cyan); }
  .strip a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

  .sponsor { margin-top: 18px; border-radius: 6px; width: calc(100% - 64px); }
  .section { margin-top: 24px; }
  .sec-title { font-size: 25px; margin-bottom: 18px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); height: auto; gap: 12px; }
  .hero-side { grid-template-rows: none; gap: 12px; }
  .ov, .f1-grid .ov.hero { height: auto; aspect-ratio: 392 / 195; }
  .ov .body, .ov.side .body { padding: 0 16px 12px; }
  .ov .title, .ov.hero .title, .ov.side .title { font-size: 17px; margin-top: 4px; }
  .ov.side .excerpt { display: block; }
  .ov .excerpt { font-size: 10.5px; margin-top: 5px; }
  .ov .tags, .ov.hero .tags { font-size: 13px; }
  .ov .chip, .ov.side .chip { top: 8px; right: 12px; font-size: 11px; padding: 3px 8px 3px 5px; }
  .ov .chip .clock { width: 9px; height: 9px; }
  .mosaic { grid-template-columns: minmax(0, 1fr); gap: 17px; margin-top: 30px; grid-template-areas: "ad1" "list1" "big1" "list2" "big2" "col3"; }
  .a-ad1 { width: min(294px, 100%); margin: 0 auto 22px; }
  .a-ad1 .ad { max-height: none; border-radius: 20px; }
  .li { height: 132px; padding: 13px; gap: 22px; border-radius: 16px; }
  .li .media { width: 107px; height: 107px; }
  .li .title { font-size: 16px; }
  .a-col3 { grid-template-rows: auto; }
  .f1-grid { grid-template-columns: minmax(0, 1fr); margin-top: 0; gap: 0; }
  .f1-grid > div:last-child { margin-top: 30px; }
  .f1-list > * + * { margin-top: 17px; }
  .races { gap: 17px; }
  .newsletter { height: auto; aspect-ratio: 1024 / 1536; border-radius: 24px; margin-top: 24px; }
  .newsletter > picture img { object-position: center top; }
  .newsletter { container-type: inline-size; }
  .nl-form { --u: calc(100cqw * .92 / 547); left: 4%; right: auto; top: 6.5%; }
  .site-foot { margin-top: 60px; }
  .foot-links { gap: 12px 18px; font-size: 13px; max-width: 280px; margin: 0 auto; }
  .copy { font-size: 14px; line-height: 1.8; margin-top: 18px; }
  .copy .br { display: block; }

  .art-grid { grid-template-columns: minmax(0, 1fr); margin-top: 16px; gap: 0; }
  .aside { display: none; }
  .crumbs { font-size: 10px; }
  .art-title { font-size: clamp(26px, 7.3vw, 34px); margin-top: 10px; }
  .art-sub { font-size: clamp(16px, 4.6vw, 20px); margin-top: 10px; }
  .byline { gap: 7px; margin-top: 12px; }
  .byline .avatar { width: 32px; height: 32px; } .byline .avatar.ph { font-size: 13px; }
  .byline b { font-size: 12.5px; } .byline span { font-size: 10px; }
  .cover { margin-top: 12px; margin-inline: -4px; }
  .cover .img { border-top-width: 3px; border-radius: 0 0 12px 12px; }
  figcaption strong { font-size: 12px; } figcaption span { font-size: 10px; }
  figcaption { margin-top: 6px; }
  .prose { font-size: 15.5px; margin-top: 22px; }
  .prose figure { border-radius: 12px; margin: 24px 0; }
  .prose figure figcaption { padding: 8px 12px 12px; }
  .inline-ad { display: block; width: min(294px, 100%); margin: 26px auto 28px; }
  .videos { border-radius: 12px; padding: 12px; margin-bottom: 26px; }
  .videos h2 { font-size: 26px; margin: 2px 0 10px 6px; }
  .video { border-radius: 12px; }
  .play { width: 70px; height: 70px; } .play svg { width: 26px; margin-left: 5px; }
  .share { margin-top: 26px; } .share p { font-size: 17px; }
  .share-row { gap: 34px; margin-top: 14px; }
  .share-row svg { width: 26px; height: 26px; }
  .also { margin-top: 30px; }
  .also .eyebrow { letter-spacing: .12em; font-size: 8px; text-transform: none; }
  .also .list { margin-top: 18px; }
  .also .ad { margin-top: 12px; }
  .cat-title { font-size: 30px; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
}
@media (max-width: 380px) {
  .ov .excerpt { display: none !important; }
  .ov .title, .ov.hero .title, .ov.side .title { font-size: 15.5px; }
  .li { gap: 14px; } .li .media { width: 92px; height: 92px; } .li { height: 118px; }
}
/* ---------- phones: sizes follow the 440px-wide Figma frame ----------
   --m is one Figma pixel at the current screen width, so every phone keeps the same proportions. */
@media (max-width: 600px) {
  :root { --m: clamp(.8px, calc(100vw / 440), 1.1px); }
  .wrap { width: calc(100% - 50 * var(--m)); }

  /* header + category strip (Figma: 95 tall in total) */
  .head-bar, .scrolled .head-bar { height: calc(58 * var(--m)); gap: calc(7 * var(--m)); }
  .burger { width: calc(27 * var(--m)); height: calc(22 * var(--m)); }
  .burger span { height: max(2px, calc(2.4 * var(--m))); }
  .burger span:nth-child(1) { top: 0; }
  .burger span:nth-child(2) { top: calc(9.7 * var(--m)); }
  .burger span:nth-child(3) { top: calc(19.5 * var(--m)); }
  .logo { width: calc(104 * var(--m)); }
  .strip-in { gap: calc(30 * var(--m)); padding: calc(8 * var(--m)) calc(22 * var(--m)) calc(11 * var(--m)); }
  .strip a { font-size: calc(13 * var(--m)); line-height: 1.25; }
  .strip a.active::after { bottom: calc(-11 * var(--m)); }

  .sponsor { margin-top: calc(19 * var(--m)); width: calc(100% - 18 * var(--m)); border-radius: calc(7 * var(--m)); }
  .section { margin-top: calc(18 * var(--m)); }
  .eyebrow { font-size: calc(8 * var(--m)); gap: calc(5 * var(--m)); letter-spacing: .2em; margin: 0; line-height: 1.25; }
  .eyebrow::before { width: calc(19 * var(--m)); }
  .sec-title { font-size: calc(25 * var(--m)); margin: 0 0 calc(17 * var(--m)); }

  /* photo cards (391 x 195, 11 apart) */
  .hero-grid, .hero-side { gap: calc(11 * var(--m)); }
  .card { border-radius: calc(16 * var(--m)); }
  .ov .body, .ov.side .body { padding: 0 calc(17 * var(--m)) calc(11 * var(--m)); }
  .ov .title, .ov.hero .title, .ov.side .title { font-size: calc(16 * var(--m)); margin-top: calc(3 * var(--m)); }
  .ov .excerpt { font-size: calc(10.5 * var(--m)); margin-top: calc(3 * var(--m)); }
  .ov .tags, .ov.hero .tags { font-size: calc(14 * var(--m)); }
  .ov .chip, .ov.side .chip, .chip.lg { top: calc(8 * var(--m)); right: calc(11 * var(--m)); font-size: calc(11 * var(--m)); padding: calc(4 * var(--m)) calc(8 * var(--m)) calc(4 * var(--m)) calc(6 * var(--m)); gap: calc(4 * var(--m)); }
  .ov .chip .clock, .chip.lg .clock { width: calc(8.5 * var(--m)); height: calc(8.5 * var(--m)); }

  /* ad, then five list cards (the two big cards become list cards; the lower lists are desktop-only) */
  .mosaic { gap: calc(17 * var(--m)); margin-top: calc(18 * var(--m)); grid-template-areas: "ad1" "big1" "list1" "big2"; }
  .mosaic > .a-list2, .mosaic > .a-col3 { display: none; }
  .a-ad1 { width: calc(294 * var(--m)); margin: 0 auto calc(12 * var(--m)); }
  .a-ad1 .ad { border-radius: calc(20 * var(--m)); }
  .list, .f1-list { gap: calc(17 * var(--m)); }
  .f1-list { margin-top: calc(17 * var(--m)); }
  .f1-list > * + * { margin-top: 0; }
  .li, .mosaic .stack { display: flex; height: calc(132 * var(--m)); padding: calc(12 * var(--m)) calc(14 * var(--m)) calc(13 * var(--m)); gap: calc(22 * var(--m)); border-radius: calc(16 * var(--m)); }
  .li .media, .mosaic .stack .media { width: calc(107 * var(--m)); height: calc(107 * var(--m)); flex: none; aspect-ratio: auto; border-radius: calc(11 * var(--m)); }
  .mosaic .stack .body { display: flex; flex-direction: column; min-width: 0; padding: calc(4 * var(--m)) 0 0; }
  .li .body { padding-top: calc(4 * var(--m)); }
  .mosaic .stack .row { display: contents; }
  .mosaic .stack .tags { order: 1; }
  .mosaic .stack .title { order: 2; }
  .mosaic .stack .chip { order: 3; margin-top: auto; align-self: flex-start; }
  .mosaic .stack .excerpt { display: none; }
  .li .tags, .mosaic .stack .tags { font-size: calc(13 * var(--m)); }
  .li .title, .mosaic .stack .title { font-size: calc(16 * var(--m)); line-height: 1.06; margin: calc(5 * var(--m)) 0 0; max-width: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .li .chip, .mosaic .stack .chip { font-size: calc(10 * var(--m)); padding: calc(3.5 * var(--m)) calc(9 * var(--m)) calc(3.5 * var(--m)) calc(6 * var(--m)); gap: calc(5 * var(--m)); }
  .li .chip .clock, .mosaic .stack .chip .clock { width: calc(7 * var(--m)); height: calc(7 * var(--m)); }

  .f1-grid > div:last-child { margin-top: calc(23 * var(--m)); }
  .races { gap: calc(17 * var(--m)); }
  .newsletter { margin-top: calc(21 * var(--m)); border-radius: calc(24 * var(--m)); }
  .site-foot { margin-top: calc(59 * var(--m)); }
  .cat-grid { gap: calc(17 * var(--m)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- touch devices: instant tap feedback, no sticky hover ---------- */
html { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .card:hover, .ad:hover, .race:hover { transform: none; box-shadow: none; }
  .card:hover .media img { transform: none; }
  .card:active, .ad:active { transform: scale(.98); transition-duration: .1s; }
  .lang:active, .dn-head:active, .dn-sub a:active, .burger:active, .more-btn:active, .race:active { opacity: .65; transition: opacity 0s; }
}
