/* ==========================================================================
   SideProject Motorsport — site styles
   ========================================================================== */

@font-face { font-family: "Saira Condensed"; font-weight: 500; font-display: swap; src: url(/assets/fonts/saira-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 600; font-display: swap; src: url(/assets/fonts/saira-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 700; font-display: swap; src: url(/assets/fonts/saira-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 800; font-display: swap; src: url(/assets/fonts/saira-condensed-latin-800-normal.woff2) format("woff2"); }

:root {
  /* Colour */
  --bg: #0a0a0b;
  --bg-1: #101012;
  --bg-2: #161619;
  --bg-3: #1d1d21;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --silver: #c9cacd;
  --accent: #f5f5f7;      /* monochrome, matching the SideProject logo */
  --accent-hi: #ffffff;
  --accent-ink: #0a0a0b;  /* text on accent */
  --amber: #f2b33d;
  --green: #3ecf8e;

  /* Type */
  --font-display: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  /* Layout */
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --nav-h: 64px;
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 56px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
::selection { background: rgba(245,245,247,.9); color: #0a0a0b; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 12px; }
.muted { color: var(--text-3); }
.dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; margin: 0 10px; vertical-align: middle; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: calc(760px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-pad { padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); }

/* ---------- Type ---------- */
.display, .hero-title, .display-md, .h2, .h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.005em; line-height: .92; }
.display { font-size: clamp(3rem, 8vw, 7.25rem); font-weight: 700; }
.display-md { font-size: clamp(2.5rem, 5.6vw, 5rem); font-weight: 700; }
.h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
.h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 700; }
.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0;
  font: 600 12px/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow--accent { color: var(--text); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--text-2); max-width: 40em; }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--sm { --h: 34px; padding: 0 16px; font-size: 13px; }
.btn--lg { --h: 52px; padding: 0 28px; font-size: 16px; }
.btn--light { background: var(--text); color: #0a0a0b; }
.btn--light:hover { background: #fff; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hi); }
.btn--ghost { background: rgba(255,255,255,.08); color: var(--text); border-color: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--outline { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--text-2); }
.btn.is-disabled { opacity: .5; cursor: default; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: 15px; color: var(--text); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
a:hover > .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line); cursor: pointer; transition: background .2s, opacity .2s;
}
.round-btn:hover { background: #2a2a30; }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn .icon { width: 20px; height: 20px; }

/* ---------- Pills & chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font: 600 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(10,10,11,.72); border: 1px solid var(--line-2); color: var(--text); backdrop-filter: blur(8px);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.pill--released::before { background: var(--green); }
.pill--wip::before { background: var(--amber); }
.pill--upcoming::before { background: var(--silver); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .2s var(--ease);
}
.chip span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip.is-active { background: var(--text); color: #0a0a0b; border-color: var(--text); }
.chip.is-active span { color: #6e6e73; }
.chip:disabled { opacity: .35; cursor: default; }

/* ---------- Announcement & nav ---------- */
.announce { background: var(--bg-3); color: var(--text); border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; text-align: center; padding: 9px 0; position: relative; z-index: 51; }
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(10,10,11,.86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); transition: background .35s var(--ease), border-color .35s var(--ease); }
.nav--over { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.announce + .nav--over { top: auto; }
.nav--over.is-scrolled, .nav.is-open { background: rgba(10,10,11,.86); border-color: var(--line); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav-logo { flex: none; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color .2s; position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:first-child { top: 16px; } .nav-toggle span:last-child { top: 23px; }
.nav.is-open .nav-toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--nav-h) 0 0; background: var(--bg); overflow-y: auto; padding: 24px 0 48px; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav > a {
  font: 700 clamp(2.2rem, 10vw, 3rem)/1.15 var(--font-display); text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(12px); animation: menuIn .5s var(--ease-out) forwards; animation-delay: calc(var(--i) * 40ms + 60ms);
}
.mobile-menu nav > a[aria-current] { color: var(--text-2); }
.mobile-menu-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
@keyframes menuIn { to { opacity: 1; transform: none; } }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-img { height: 26px; width: auto; }
.logo-sub { padding-left: 12px; border-left: 1px solid var(--line-2); font: 600 10.5px/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--text-2); }
@media (max-width: 420px) { .logo-sub { display: none; } }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; animation: heroZoom 2.8s var(--ease-out) both; }
@keyframes heroZoom { from { transform: scale(1.08); filter: brightness(.6); } to { transform: none; filter: none; } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,0) 22%),
  linear-gradient(0deg, var(--bg) 0%, rgba(10,10,11,.86) 18%, rgba(10,10,11,.25) 52%, rgba(10,10,11,0) 70%),
  linear-gradient(90deg, rgba(10,10,11,.6) 0%, rgba(10,10,11,0) 55%); }
.hero-inner { padding-bottom: clamp(110px, 14vh, 150px); }
.hero-eyebrow { margin-bottom: 18px; opacity: 0; animation: fadeUp .9s var(--ease-out) .25s forwards; }
.hero-title { font-size: clamp(3.6rem, 12.5vw, 11.5rem); font-weight: 800; line-height: .84; max-width: 9.5em; }
.hero-word { display: inline-block; opacity: 0; transform: translateY(.35em); animation: fadeUp 1s var(--ease-out) forwards; animation-delay: calc(.35s + var(--d) * .09s); }
.hero-text { margin-top: 26px; max-width: 34em; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: rgba(245,245,247,.82); opacity: 0; animation: fadeUp 1s var(--ease-out) .85s forwards; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fadeUp 1s var(--ease-out) 1s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-ticker {
  position: absolute; right: var(--gutter); bottom: clamp(110px, 14vh, 150px); display: flex; align-items: stretch;
  border: 1px solid var(--line-2); background: rgba(10,10,11,.6); backdrop-filter: blur(10px); border-radius: var(--radius);
  overflow: hidden; font-size: 14px; opacity: 0; animation: fadeUp 1s var(--ease-out) 1.2s forwards; transition: border-color .2s;
}
.hero-ticker:hover { border-color: var(--text-3); }
.hero-ticker > span { padding: 12px 16px; display: flex; align-items: center; }
.hero-ticker-tag { background: var(--accent); color: var(--accent-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.hero-ticker-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.hero-ticker-meta { color: var(--text-2); font-family: var(--font-mono); font-size: 12px; padding-left: 0 !important; }
.hero-scroll { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 48px; background: linear-gradient(var(--text-3), transparent); overflow: hidden; }
.hero-scroll::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--text); animation: scrollCue 2.2s var(--ease) infinite; }
@keyframes scrollCue { to { top: 110%; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-top: clamp(24px, 4vw, 48px); }
.section--flush { padding-bottom: clamp(48px, 6vw, 80px); }
.section--panel { background: var(--bg-1); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .eyebrow { margin-bottom: 14px; }

/* Feature (latest release) */
.feature { display: grid; grid-template-columns: 1.45fr 1fr; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature-media { position: relative; overflow: hidden; min-height: 360px; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.feature:hover .feature-media img { transform: scale(1.035); }
.feature-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.feature-body .eyebrow { margin-bottom: 16px; }
.feature-sub { margin-top: 10px; color: var(--silver); font-weight: 500; }
.feature-text { margin-top: 18px; color: var(--text-2); }
.facts { display: flex; gap: 32px; margin: 28px 0 30px; padding: 18px 0; border-block: 1px solid var(--line); }
.facts dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; }

/* Statement */
.statement { padding-block: clamp(64px, 9vw, 130px); }
.statement-text { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 4.1rem); line-height: 1; max-width: 18em; }
.statement-text span { color: var(--text-3); }

/* Rails (horizontal carousels) */
.rail { position: relative; }
.rail-track { display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.rail-track::-webkit-scrollbar { display: none; }
.rail-controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.rail-card { position: relative; flex: 0 0 clamp(280px, 38vw, 520px); aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; scroll-snap-align: start; background: var(--bg-2); isolation: isolate; }
.rail-card-media, .rail-card-media img, .rail-card-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rail-card-media img { transition: transform 1.2s var(--ease-out); }
.rail-card:hover .rail-card-media img { transform: scale(1.05); }
.rail-card-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.2) 45%, rgba(10,10,11,0) 70%); }
.rail-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 32px); }
.rail-card-body h3 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: .95; margin: 14px 0 6px; }
.rail-card-body p { color: var(--text-2); font-size: 15px; }

/* Placeholder art for releases without imagery */
.ph { position: relative; width: 100%; height: 100%; background: radial-gradient(120% 80% at 80% 0%, #1f1f24 0%, var(--bg-2) 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; overflow: hidden; }
.ph-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(160deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 70%); }
.ph::after { content: ""; position: absolute; right: -12%; top: 18%; width: 70%; aspect-ratio: 1; border: 1.5px solid rgba(255,255,255,.07); border-radius: 46% 54% 40% 60% / 55% 40% 60% 45%; }
.ph-title { position: relative; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: .9; color: rgba(255,255,255,.14); }
.ph-sub { position: relative; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }

/* Post cards */
.post-card { display: grid; gap: 22px; }
.post-card-media { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
.post-card-media img, .post-card-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body .eyebrow { margin-bottom: 12px; }
.post-card-body h3 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: .98; }
.post-card-body p { color: var(--text-2); margin: 12px 0 18px; }
.post-card--large { grid-template-columns: 1.5fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.post-card--large .post-card-body h3 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.tile { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; background: var(--bg-2); }
.tile-media, .tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-media img { transition: transform 1.2s var(--ease-out); }
.tile:hover .tile-media img { transform: scale(1.05); }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,11,.95) 0%, rgba(10,10,11,.5) 45%, rgba(10,10,11,.1) 75%); }
.tile-body { position: absolute; inset: auto 0 0 0; padding: clamp(22px, 2.6vw, 34px); }
.tile-body h3 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: .95; margin: 12px 0 10px; }
.tile-body p { color: var(--text-2); font-size: 15px; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Community band */
.community-band { position: relative; isolation: isolate; padding-block: clamp(110px, 16vw, 220px); overflow: hidden; }
.community-band-media, .community-band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.community-band-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.55) 60%, rgba(10,10,11,.3) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%); }
.community-band-inner .eyebrow { margin-bottom: 16px; }
.community-band-inner .lede { margin: 22px 0 32px; color: rgba(245,245,247,.78); max-width: 32em; }
.social-row { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.social-row a, .social-row span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.social-row .icon { width: 16px; height: 16px; }
.social-row small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-left: 4px; }

/* ---------- Page hero (category & content pages) ---------- */
.page-hero { position: relative; isolation: isolate; min-height: clamp(460px, 64vh, 680px); display: flex; align-items: flex-end; overflow: hidden; padding-top: var(--nav-h); }
.page-hero-media, .page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero-media img { animation: heroZoom 2.4s var(--ease-out) both; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(10,10,11,.75) 35%, rgba(10,10,11,.2) 75%, rgba(10,10,11,.5) 100%), linear-gradient(90deg, rgba(10,10,11,.55), transparent 65%); }
.page-hero--plain { min-height: 380px; }
.page-hero-inner { padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero-inner .eyebrow { margin-bottom: 16px; opacity: 0; animation: fadeUp .9s var(--ease-out) .15s forwards; }
.page-hero-inner .display, .page-hero-inner .display-md { opacity: 0; animation: fadeUp 1s var(--ease-out) .25s forwards; max-width: 12em; }
.page-hero-inner .lede { margin-top: 22px; opacity: 0; animation: fadeUp 1s var(--ease-out) .4s forwards; color: rgba(245,245,247,.78); }

/* ---------- Library ---------- */
.section--library { padding-top: clamp(28px, 4vw, 48px); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 18px; height: 18px; }
.search input, .select select {
  width: 100%; height: 38px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-1); color: var(--text);
  font: 15px var(--font-body); padding: 0 16px 0 40px; outline: none; transition: border-color .2s;
}
.search input:focus, .select select:focus { border-color: var(--text-2); }
.select select { padding: 0 36px 0 16px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 16px; background-position: right 14px center; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.result-count { color: var(--text-3); font-size: 14px; margin: 22px 0 26px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.grid--posts { row-gap: 56px; }
.empty { padding: 72px 0; text-align: center; color: var(--text-2); }
.empty .h3 { color: var(--text); margin-bottom: 10px; }

.card { display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card-media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
.card-media > img, .card-media > .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.card:hover .card-media > img { transform: scale(1.045); }
.card-pill { position: absolute; left: 14px; top: 14px; }
.card-body { padding-top: 18px; }
.card-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.card-title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.6rem, 2.1vw, 2rem); line-height: .98; margin: 8px 0 10px; transition: color .2s; }
.card:hover .card-title { color: #fff; }
.card-text { color: var(--text-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-facts { margin-top: 14px; font-size: 13px; color: var(--text-3); font-family: var(--font-mono); letter-spacing: -.01em; }

/* ---------- Product (release) page ---------- */
.product-hero { position: relative; isolation: isolate; min-height: max(600px, 92svh); display: flex; align-items: flex-end; overflow: hidden; }
.product-hero-media, .product-hero-media > img, .product-hero-media > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.product-hero-media > img { animation: heroZoom 2.6s var(--ease-out) both; }
.product-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(10,10,11,.82) 26%, rgba(10,10,11,.15) 62%, rgba(10,10,11,.55) 100%), linear-gradient(90deg, rgba(10,10,11,.5), transparent 60%); }
.product-hero-inner { padding-bottom: clamp(48px, 7vw, 88px); }
.product-hero-inner > * { opacity: 0; animation: fadeUp 1s var(--ease-out) forwards; }
.product-hero-inner > :nth-child(1) { animation-delay: .1s; } .product-hero-inner > :nth-child(2) { animation-delay: .2s; }
.product-hero-inner > :nth-child(3) { animation-delay: .32s; } .product-hero-inner > :nth-child(4) { animation-delay: .42s; }
.product-hero-inner > :nth-child(5) { animation-delay: .52s; }
.product-hero .display { max-width: 11em; }
.product-sub { margin-top: 16px; font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--silver); }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 24px 0 30px; font-size: 14px; color: var(--text-2); font-family: var(--font-mono); }
.crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 13px; color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs .icon { width: 14px; height: 14px; color: var(--text-3); }

.subnav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(10,10,11,.86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; gap: 28px; height: 56px; }
.subnav-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subnav-links { display: flex; gap: 22px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a { font-size: 13px; color: var(--text-2); white-space: nowrap; transition: color .2s; }
.subnav-links a:hover, .subnav-links a.is-active { color: var(--text); }
.subnav .btn { --h: 32px; padding: 0 14px; font-size: 13px; flex: none; }
.subnav .btn .icon { width: 15px; height: 15px; }

.overview { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.overview .lede { color: var(--text); font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.38; margin-bottom: 30px; font-weight: 500; letter-spacing: -.01em; }
.overview-side { position: sticky; top: calc(var(--nav-h) + 80px); }
.spec-list { margin: 0; border-top: 1px solid var(--line); }
.spec-list > div { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--text-3); font-size: 14px; }
.spec-list dd { margin: 0; text-align: right; font-weight: 500; font-size: 15px; }
.note { margin-top: 26px; padding: 20px 22px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: 15px; color: var(--text-2); }
.note-title { font: 600 12px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.note--req { margin-top: 30px; }

.shot { margin: 0; flex: 0 0 clamp(300px, 62vw, 960px); scroll-snap-align: start; }
.shot a { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.shot a:hover img { transform: scale(1.03); }
.shot-expand { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(10,10,11,.6); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.shot a:hover .shot-expand, .shot a:focus-visible .shot-expand { opacity: 1; }
.shot-expand .icon { width: 18px; height: 18px; }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--text-3); }

/* Compare slider */
.compare-list { display: grid; gap: 48px; }
.compare { margin: 0; }
.compare-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); user-select: none; --pos: 50%; }
.compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.compare-handle span::before, .compare-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; margin-top: -6px; }
.compare-handle span::before { left: 7px; border-right-color: #0a0a0b; }
.compare-handle span::after { right: 7px; border-left-color: #0a0a0b; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-label { position: absolute; bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(10,10,11,.7); padding: 6px 10px; border-radius: var(--radius); pointer-events: none; }
.compare-label--l { left: 14px; } .compare-label--r { right: 14px; }
.compare figcaption { margin-top: 12px; font-size: 14px; color: var(--text-3); }

/* Downloads */
.file-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.file { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.file--off { opacity: .6; }
.file-ext { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--line-2); font: 700 13px var(--font-mono); letter-spacing: .04em; color: var(--silver); background: var(--bg-2); }
.file-info { flex: 1; min-width: 0; }
.file-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; line-height: 1.05; }
.file-meta { margin-top: 6px; font-size: 13px; color: var(--text-3); font-family: var(--font-mono); overflow-wrap: anywhere; }
.avail { color: var(--amber); }
.avail--on { color: var(--green); }
.fine { margin-top: 18px; font-size: 13px; color: var(--text-3); }
.status-panel { display: flex; gap: 20px; align-items: flex-start; padding: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); max-width: 760px; }
.status-panel > .icon { width: 28px; height: 28px; color: var(--amber); margin-top: 2px; }
.status-panel h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.6rem; margin-bottom: 8px; }
.status-panel p { color: var(--text-2); }
.status-panel a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.two-col--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.two-col .eyebrow { margin-bottom: 16px; }

/* Prose (markdown content) */
.prose { color: var(--text-2); font-size: 17px; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--text); font-family: var(--font-display); text-transform: uppercase; line-height: 1; margin-top: 1.8em; }
.prose h2 { font-size: 2rem; } .prose h3 { font-size: 1.55rem; } .prose h4 { font-size: 1.25rem; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--text-3); }
.prose code { font: .88em var(--font-mono); background: var(--bg-3); border: 1px solid var(--line); padding: .12em .4em; border-radius: 4px; color: var(--text); overflow-wrap: anywhere; }
.prose pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 2px solid var(--line-2); color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose figure { margin: 2em 0; }
.prose figure img, .prose p img { border-radius: var(--radius-lg); width: 100%; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--text-3); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 600; background: var(--bg-2); }
.prose td:last-child, .prose th:last-child { text-align: right; font-family: var(--font-mono); }
.prose tr:last-child td { border-bottom: 0; }
.prose--sm { font-size: 15px; }
.steps ol { list-style: none; padding: 0; counter-reset: step; }
.steps ol li { counter-increment: step; position: relative; padding: 0 0 0 52px; min-height: 36px; }
.steps ol li + li { margin-top: 18px; }
.steps ol li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -2px; font: 700 15px var(--font-mono); color: var(--text); width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; }
.changelog h2, .changelog h3 { font-family: var(--font-mono); font-size: 1.05rem; text-transform: none; color: var(--text); }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5,5,6,.96); color: var(--text); }
.lightbox[open] { display: grid; place-items: center; animation: lbIn .3s var(--ease-out); }
.lightbox::backdrop { background: rgba(0,0,0,.8); }
@keyframes lbIn { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(92vw, 1800px); }
.lightbox img { max-height: 84vh; width: auto; margin: auto; border-radius: var(--radius); }
.lightbox figcaption { margin-top: 14px; text-align: center; color: var(--text-2); font-size: 14px; min-height: 1.4em; }
.lightbox-close { position: fixed; top: 20px; right: 20px; }
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.road-col { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.road-title { display: flex; align-items: center; gap: 10px; font: 600 13px var(--font-body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.road-title > span:last-child { margin-left: auto; color: var(--text-3); font-family: var(--font-mono); }
.road-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.road-dot--wip { background: var(--amber); } .road-dot--released { background: var(--green); } .road-dot--upcoming { background: var(--silver); }
.road-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-3); border: 1px solid transparent; transition: border-color .2s; }
.road-item + .road-item { margin-top: 8px; }
.road-item:hover { border-color: var(--line-2); }
.road-cat { grid-column: 1; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.road-name { grid-column: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; }
.road-date { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 12px var(--font-mono); color: var(--text-3); }

/* Article */
.article-head { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 110px)); }
.article-head .lede { margin-top: 22px; }
.article-meta { margin-top: 22px; color: var(--text-3); font-size: 14px; }
.article-cover { margin-block: clamp(36px, 5vw, 64px); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.prose--article { font-size: 18.5px; line-height: 1.65; padding-bottom: 48px; }
.prose--article figure { margin-inline: calc(var(--gutter) * -0.5); }
.article .card { margin-top: 16px; max-width: 480px; }
.article .eyebrow { margin-top: 24px; }

/* About */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
.principle-num { font: 600 13px var(--font-mono); color: var(--text-3); }
.principles h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.7rem; margin: 14px 0 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.principles p { color: var(--text-2); font-size: 15px; }
.cat-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.cat-link-media { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; }
.cat-link-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cat-link:hover img { transform: scale(1.05); }
.cat-link-body h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 2rem; margin: 18px 0 8px; }
.cat-link-body p { color: var(--text-2); font-size: 14px; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Community */
.discord-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-1); }
.discord-card-media { min-height: 360px; position: relative; }
.discord-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.discord-card-body { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.discord-card-body p:not(.eyebrow) { color: var(--text-2); max-width: 30em; }
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.social-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; min-height: 190px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-1); transition: border-color .25s, background .25s; }
a.social-card:hover { border-color: var(--line-2); background: var(--bg-2); }
.social-card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 2rem; }
.social-card p { color: var(--text-2); font-size: 14px; }
.social-card .pill { margin-top: auto; align-self: flex-start; }
.social-card-go { margin-top: auto; }
.social-card--soon { opacity: .7; }

/* 404 */
.notfound { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.notfound-media, .notfound-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.notfound-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,11,.92), rgba(10,10,11,.4)); }
.notfound-inner .lede { margin: 20px 0 32px; }
.notfound-inner .eyebrow { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 40px; background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-logo .logo-img { height: 30px; }
.footer-brand p { margin-top: 18px; color: var(--text-3); font-size: 14px; max-width: 26em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h2 { font: 600 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-cols a { display: block; color: var(--text-2); font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { padding-top: 24px; display: grid; gap: 10px; font-size: 12px; color: var(--text-3); }
.footer-legal { max-width: 80em; line-height: 1.6; }

/* ---------- Reveal on scroll ---------- */
[data-reveal].reveal-pending { opacity: 0; transform: translateY(28px); }
[data-reveal].is-visible { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-actions { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .principles, .cat-links, .social-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature-media { aspect-ratio: 16 / 9; min-height: 0; }
  .hero-ticker { display: none; }
}
@media (max-width: 860px) {
  .overview, .two-col, .two-col--wide, .post-card--large, .discord-card, .footer-top { grid-template-columns: 1fr; }
  .overview-side { position: static; }
  .tiles, .roadmap { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 3; }
  .subnav-title { display: none; }
  .subnav-links { margin-left: 0; }
  .subnav-inner { gap: 16px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .discord-card-media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .grid, .principles, .social-grid, .footer-cols { grid-template-columns: 1fr; }
  .cat-links { grid-template-columns: 1fr 1fr; }
  .facts { gap: 20px; flex-wrap: wrap; }
  .file { flex-wrap: wrap; }
  .file .btn { width: 100%; }
  .search { max-width: none; flex-basis: 100%; }
  .chips { overflow-x: auto; flex-wrap: nowrap; width: 100%; scrollbar-width: none; padding-bottom: 2px; }
  .chip { flex: none; }
  .select { flex: 1; }
  .hero-actions .btn, .community-band .btn { flex: 1 1 auto; }
  .rail-card { flex-basis: 84vw; }
  .shot { flex-basis: 86vw; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; }
  .prose--article { font-size: 17px; }
  .subnav .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal].reveal-pending { opacity: 1; transform: none; }
}

/* ---------- Video (click-to-play YouTube) ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; isolation: isolate; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.video:hover .video-poster { transform: scale(1.03); }
.video-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,11,.85) 0%, rgba(10,10,11,.15) 55%, rgba(10,10,11,.25) 100%); pointer-events: none; }
.video-play { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 18px; padding: clamp(20px, 3.5vw, 44px); }
.video-play-btn { flex: none; width: clamp(60px, 7vw, 84px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(245,245,247,.92); color: #0a0a0b; padding-left: 4px; transition: transform .35s var(--ease), background .25s; box-shadow: 0 10px 40px rgba(0,0,0,.45); backdrop-filter: blur(8px); }
.video-play:hover .video-play-btn, .video-play:focus-visible .video-play-btn { transform: scale(1.08); background: #fff; }
.video-play-text { display: grid; gap: 6px; padding-bottom: 6px; }
.video-play-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: .95; }
.video-play-sub { font-size: 13px; color: var(--text-2); letter-spacing: .04em; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-video { max-width: calc(1000px + var(--gutter) * 2); margin-bottom: clamp(36px, 5vw, 56px); }

/* Trailer tags */
.card-pill, .pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill--trailer::before { display: none; }
.pill--trailer .icon { width: 10px; height: 10px; }
.btn .icon[class*="icon"] { flex: none; }

/* ---------- Share ---------- */
.share { position: relative; display: inline-flex; }
.share-menu { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 210px; padding: 6px; display: grid;
  background: rgba(22,22,25,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: shareIn .18s var(--ease-out); }
@keyframes shareIn { from { opacity: 0; transform: translateY(-4px); } }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--text); font: 500 14px var(--font-body); text-align: left; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover, .share-menu :focus-visible { background: rgba(255,255,255,.08); outline: none; }
.share-menu .icon { width: 16px; height: 16px; color: var(--text-2); }
.share-toast { position: absolute; top: calc(100% + 8px); left: 0; white-space: nowrap; font-size: 13px; color: var(--text); background: var(--bg-3);
  border: 1px solid var(--line-2); padding: 6px 10px; border-radius: 8px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.share-toast.is-on { opacity: 1; transform: none; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-2); }
.share-row--end { margin-top: 0; margin-bottom: 56px; }
.share-row .share-menu { left: auto; right: 0; }
.article-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.article-meta-row .article-meta { margin-top: 0; }
.article-meta-row .share-menu, .article-meta-row .share-toast { left: auto; right: 0; }
@media (max-width: 640px) { .hero-actions .share, .product-hero .btn-row .share { flex: 1 1 auto; } .product-hero .btn-row .share .btn { width: 100%; } }
/* In the release header (which clips overflow) the share menu opens upwards */
.product-hero .share-menu, .product-hero .share-toast { top: auto; bottom: calc(100% + 8px); }
