/* Dylan "The Machete" Zanetti — Titanium + Blade Red
   Order: tokens → reset → type → layout → components → shell → pages helpers
   Brand rule: blade red (--c-edge / --c-edge-text) for active nav, links/advances,
   filters, win results, keywords, selective borders. Stat tile values stay titanium.
   Primary CTAs stay ice-white with a red inset edge. */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --c-void: #07090C;
  --c-base: #0B0E12;
  --c-surface: #0F1217;
  --c-raised: #181C23;
  --c-glass: rgba(24, 28, 35, 0.62);

  /* Text */
  --c-text: #EEF2F6;
  --c-text-muted: #9AA4B2;
  --c-text-faint: #5F6876;

  /* Red edge */
  --c-edge: #E3212B;
  --c-edge-text: #FF4D55;
  --c-edge-deep: #A8121B;

  /* Ion / lines */
  --c-ion: #BFD9FF;
  --c-line: rgba(191, 217, 255, 0.1);
  --c-line-strong: rgba(191, 217, 255, 0.22);

  /* IF sub-brand */
  --c-if-edge: #4CC9FF;

  /* Typography */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-hud: "Martian Mono", ui-monospace, monospace;

  --fs-hero: clamp(2.6rem, 9vw, 7.5rem);
  --fs-h1: clamp(2.1rem, 5.2vw, 4.25rem);
  --fs-h2: clamp(1.6rem, 3.4vw, 2.75rem);
  --fs-h3: clamp(1.15rem, 1.8vw, 1.45rem);
  --fs-body: clamp(1rem, 1.1vw, 1.0625rem);
  --fs-hud: 0.72rem;

  --lh-tight: 0.95;
  --lh-display: 1.1;
  --lh-body: 1.6;
  --ls-tight: -0.02em;
  --ls-hud: 0.14em;

  /* Spacing — 8pt scale (0.5rem steps) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 2.5rem;
  --sp-6: 3rem;
  --sp-7: 3.5rem;
  --sp-8: 4rem;
  --sp-9: 4.5rem;
  --sp-10: 5rem;
  --sp-11: 5.5rem;
  --sp-12: 6rem;
  --sp-13: 6.5rem;
  --sp-14: 7rem;
  --sp-15: 7.5rem;
  --sp-16: 8rem;
  --sp-17: 8.5rem;
  --sp-18: 9rem;
  --sp-19: 9.5rem;
  --sp-20: 10rem;
  --sp-21: 10.5rem;
  --sp-22: 11rem;
  --sp-23: 11.5rem;
  --sp-24: 12rem;

  /* Layout */
  --max-w: 1240px;
  --max-w-narrow: 720px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --topbar-h: 56px;
  --nav-h: 68px;
  --tabbar-h: 64px;

  /* Shape */
  --r-xs: 2px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-pill: 999px;
  --chamfer: 10px;

  /* Glow */
  --glow-ion: 0 0 0 1px var(--c-line-strong), 0 10px 40px -10px rgba(191, 217, 255, 0.18);
  --glow-edge: 0 0 24px rgba(227, 33, 43, 0.35);

  /* Motion */
  --t-instant: 90ms;
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 520ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-blade: cubic-bezier(0.83, 0, 0.17, 1);
  --ease-spring: linear(0, 0.008 1.1%, 0.031 2.2%, 0.129 4.6%, 0.257 6.9%, 0.671 13.2%, 0.831 15.8%, 0.946 18.5%, 1.029 21.2%, 1.078 23.9%, 1.099 26.6%, 1.098 29.3%, 1.055 35.6%, 0.988 42.9%, 0.957 47.1%, 0.942 51.4%, 0.939 55.7%, 0.947 60%, 0.976 68.6%, 0.995 77.1%, 1);

  --blade-angle: 46deg;

  /* Z-index */
  --z-raised: 10;
  --z-topbar: 100;
  --z-tabbar: 200;
  --z-sheet: 300;
  --z-dialog: 400;
  --z-toast: 450;
  --z-transition: 500;
  --z-intro: 600;

  /* Breakpoints (match media queries): 480 / 768 / 1024 / 1280 */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  --chamfer-poly: polygon(
    0 var(--chamfer),
    var(--chamfer) 0,
    calc(100% - var(--chamfer)) 0,
    100% var(--chamfer),
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    var(--chamfer) 100%,
    0 calc(100% - var(--chamfer))
  );

  /* Flat top and left, 46° shear on the top-right, small chamfer along the bottom */
  --blade-cut: 2.35rem;
  --blade-drop: 2.45rem;
  --blade-poly: polygon(
    0 0,
    calc(100% - var(--blade-cut)) 0,
    100% var(--blade-drop),
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    var(--chamfer) 100%,
    0 calc(100% - var(--chamfer))
  );
}

@media (max-width: 479px) {
  :root {
    --blade-cut: 1.35rem;
    --blade-drop: 1.4rem;
  }
}

html[data-brand="if"] {
  --c-edge: var(--c-if-edge);
  --glow-edge: 0 0 24px rgba(76, 201, 255, 0.35);
}

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

/* Author display utilities must not override the HTML hidden attribute */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + var(--sp-3));
  hanging-punctuation: first last;
  max-width: 100%;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100svh;
  max-width: 100%;
  background: var(--c-void);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--c-text);
}

.word-red {
  color: var(--c-edge-text);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

dialog {
  border: none;
  padding: 0;
  color: inherit;
  background: transparent;
}

.fight-video-dialog {
  width: min(1120px, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100vh - 1.5rem);
  margin: auto;
  padding: var(--sp-3);
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-line);
  box-sizing: border-box;
}

.fight-video-dialog__stage {
  width: 100%;
}

.fight-video-dialog__bar {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.fight-video-dialog__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--c-void);
}

.fight-video-dialog__stage:fullscreen,
.fight-video-dialog__stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: var(--sp-3);
  background: var(--c-void);
}

.fight-video-dialog__stage:fullscreen .fight-video-dialog__player,
.fight-video-dialog__stage:-webkit-full-screen .fight-video-dialog__player {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
}

dialog::backdrop {
  background: rgba(7, 9, 12, 0.72);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid rgba(191, 217, 255, 0.55);
  outline-offset: 3px;
}

/* ── Type ───────────────────────────────────────────────────────────────── */
h1,
.h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  font-stretch: 125%;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
}

h2,
.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  font-stretch: 125%;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
}

h3,
.h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  font-stretch: 112%;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-tight);
}

.lede {
  color: var(--c-text-muted);
  max-width: 42ch;
}

.text-muted {
  color: var(--c-text-muted);
}

.text-faint {
  color: var(--c-text-faint);
}

.text-edge {
  color: var(--c-edge-text);
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wrap,
.container {
  width: min(var(--max-w), 100% - var(--gutter) * 2);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
}

.container--narrow {
  width: min(var(--max-w-narrow), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-width: 0;
  max-width: 100%;
}

.stack--tight {
  gap: var(--sp-2);
}

.grid-2 {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4);
  }
}

.section {
  padding-block: var(--sp-8);
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--sp-12);
  }
}

#main {
  position: relative;
  z-index: 0;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + var(--sp-4));
}

@media (min-width: 1024px) {
  #main {
    padding-bottom: var(--sp-8);
  }
}

/* ── Components ─────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: var(--sp-2);
  z-index: calc(var(--z-intro) + 1);
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-text);
  color: var(--c-void);
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  text-decoration: none;
  clip-path: var(--chamfer-poly);
  transform: translateY(-200%);
  transition: transform var(--t-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  min-width: 48px;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: var(--chamfer-poly);
  transition:
    transform var(--t-instant) var(--ease-out),
    background var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--c-text);
  color: var(--c-void);
  box-shadow: inset 0 0 0 1px var(--c-edge);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(191, 217, 255, 0.45) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover::after {
    opacity: 1;
    transform: translateX(120%);
    transition: transform 0.55s var(--ease-out), opacity var(--t-fast) var(--ease-out);
  }

  a.btn.btn--primary:hover,
  a.btn.btn--primary:focus-visible,
  button.btn.btn--primary:hover,
  button.btn.btn--primary:focus-visible {
    color: var(--c-void);
    background: #f7f9fb;
  }
}

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  box-shadow: inset 0 0 0 1px var(--c-line-strong);
}

@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover {
    background: rgba(191, 217, 255, 0.06);
  }
}

.btn--text {
  min-height: 48px;
  padding-inline: var(--sp-2);
  background: transparent;
  color: var(--c-text-muted);
  clip-path: none;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  font-stretch: normal;
  letter-spacing: 0;
  text-transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn--text:hover {
    color: var(--c-edge-text);
  }
}

/* HUD */
.hud {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: rgba(191, 217, 255, 0.82);
}

.hud-label {
  display: block;
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  color: var(--c-text-faint);
}

.page-index {
  color: var(--c-edge-text);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.35em 0.75em;
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  font-weight: 600;
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  color: var(--c-text);
  background: rgba(191, 217, 255, 0.08);
  border: 1px solid var(--c-line);
  clip-path: var(--chamfer-poly);
}

.status-chip::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--c-edge);
  box-shadow: 0 0 8px rgba(227, 33, 43, 0.5);
}

/* Chamfer utility + focus ring on ::after */
.chamfer {
  position: relative;
  clip-path: var(--chamfer-poly);
}

.chamfer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: var(--chamfer-poly);
  box-shadow: inset 0 0 0 1px var(--c-line);
  transition: box-shadow var(--t-fast) var(--ease-out);
}

.chamfer:focus-within::after,
.chamfer:focus-visible::after {
  box-shadow:
    inset 0 0 0 1px var(--c-line-strong),
    0 0 0 2px rgba(191, 217, 255, 0.35);
}

/* Media frame — corner brackets ONLY here */
.media-frame,
.media-pending {
  position: relative;
  overflow: hidden;
  background: var(--c-surface);
  clip-path: var(--chamfer-poly);
}

.media-frame::before,
.media-frame::after,
.media-pending::before,
.media-pending::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(191, 217, 255, 0.45);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}

.media-frame::before,
.media-pending::before {
  top: var(--sp-2);
  left: var(--sp-2);
  border-width: 1.5px 0 0 1.5px;
}

.media-frame::after,
.media-pending::after {
  bottom: var(--sp-2);
  right: var(--sp-2);
  border-width: 0 1.5px 1.5px 0;
}

.media-frame img,
.media-frame video,
.media-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-host {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.yt-player-slot {
  position: absolute;
  inset: 0;
}

.yt-host iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
  display: block;
}

/* Instagram embed host — portrait by default (posts), 9:16 for reels */
.ig-host {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-surface);
}

.ig-host iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
  display: block;
  background: var(--c-surface);
}

.media-frame--portrait,
.media-frame--portrait.yt-host,
.media-frame--portrait.ig-host {
  aspect-ratio: 9 / 16;
}

.media-portrait-wrap {
  max-width: 24rem;
}

/* Instagram reels and posts show the picture only. The embed page is a 54px header (avatar, name, View profile), a 4:5
   picture the width of the card, then a footer (View more on Instagram, like, comment, share, likes, comment box). The
   iframe is moved up past the header and the box ends at the bottom of the picture, so only the picture shows, with none
   of our chamfer, corner brackets or border either. Tapping it still opens the reel on Instagram: Instagram does not
   let an embed play inside another page. If Instagram ever changes its header height, change --ig-header. */
.media-frame.ig-embed {
  --ig-header: 54px;
  clip-path: none;
  border-radius: 14px;
  background: #000;
  aspect-ratio: 4 / 5;
  max-width: 540px;
  container-type: inline-size;
}

/* A 2px dark trim at the top and bottom hides the hairline that Instagram's header and footer separators leave at
   fractional pixel sizes. */
.media-frame.ig-embed::before,
.media-frame.ig-embed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  width: auto;
  height: 2px;
  border: 0;
  box-shadow: none;
  clip-path: none;
  background: #000;
  z-index: 2;
  pointer-events: none;
}

.media-frame.ig-embed::before {
  top: 0;
  bottom: auto;
}

.media-frame.ig-embed::after {
  top: auto;
  bottom: 0;
}

.media-frame.ig-embed iframe {
  position: absolute;
  left: 0;
  top: calc(var(--ig-header) * -1);
  width: 100%;
  height: calc(125cqw + 208px);
  background: #000;
}

/* A reel that plays in the page, laid out like Josh's reel card: a 9:16 poster,
   a round play button, the video letterboxed in the same frame, and the
   Instagram link under the card. Blade red stands in for his orange button. */
.media-frame.ig-embed.ig-native {
  aspect-ratio: 9 / 16;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}

.media-frame.ig-embed.ig-native::before,
.media-frame.ig-embed.ig-native::after {
  display: none;
}

.media-frame.ig-native .yt-play::before {
  background: linear-gradient(180deg, rgba(7, 9, 12, 0.1), rgba(7, 9, 12, 0.65));
}

.media-frame.ig-native .yt-play-icon {
  width: 44px;
  height: 44px;
  background: var(--c-edge);
  box-shadow: none;
}

.media-frame.ig-native .yt-play-icon::before {
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
}

.media-frame.ig-native .yt-play:hover .yt-play-icon,
.media-frame.ig-native .yt-play:focus-visible .yt-play-icon {
  background: var(--c-edge);
}

.media-frame.ig-native .ig-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.ig-reel-link {
  color: var(--c-edge-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.ig-reel-link:hover,
.ig-reel-link:focus-visible {
  text-decoration: underline;
}

@media (hover: hover) {
  .media-frame.ig-embed.ig-native:hover {
    transform: translateY(-2px);
    border-color: var(--c-edge);
  }

  .media-frame.ig-embed.ig-native.is-playing:hover {
    transform: none;
  }
}

.yt-host .yt-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.yt-host .yt-play::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(7, 9, 12, 0.28);
  pointer-events: none;
}

.yt-host .yt-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-host .yt-play-icon {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: clamp(3rem, 12vw, 4.25rem);
  height: clamp(3rem, 12vw, 4.25rem);
  display: block;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(7, 9, 12, 0.62);
  box-shadow: inset 0 0 0 1px rgba(238, 242, 246, 0.4);
  pointer-events: none;
  transition: background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}

.yt-host .yt-play-icon::before {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.2rem;
  border-color: transparent transparent transparent #eef2f6;
  transform: translate(-20%, -50%);
}

.yt-host .yt-play:hover .yt-play-icon,
.yt-host .yt-play:focus-visible .yt-play-icon {
  background-color: rgba(7, 9, 12, 0.82);
  transform: translate(-50%, -50%) scale(1.06);
}

.yt-host .yt-play-label {
  display: none;
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(50% + 2.7rem);
  transform: translate(-50%, 0);
  padding: 0.28rem 0.7rem;
  background: rgba(7, 9, 12, 0.78);
  color: var(--c-text);
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

.home-watch .yt-play-icon {
  width: 4.5rem;
  height: 4.5rem;
}

/* After a tap the poster stays above the loading player and the play icon gives way to a spinner, so the viewer never
   sees a second play button on top of YouTube's own. */
.yt-host.yt-loading .yt-play {
  z-index: 4;
  cursor: progress;
}

.yt-host.yt-loading .yt-play-icon,
.yt-host.yt-loading .yt-play-label {
  display: none;
}

.yt-host.yt-loading .yt-play::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin: -1.25rem 0 0 -1.25rem;
  border: 2px solid rgba(238, 242, 246, 0.3);
  border-top-color: #eef2f6;
  border-radius: 50%;
  animation: yt-spin 0.8s linear infinite;
}

@keyframes yt-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yt-host.yt-loading .yt-play::after {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yt-host .yt-play-icon,
  .yt-host .yt-play:hover .yt-play-icon,
  .yt-host .yt-play:focus-visible .yt-play-icon {
    transition: none;
    transform: translate(-50%, -50%);
  }
}

.clip-player {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--c-void);
}

.clip-player__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--c-void);
}

.clip-player__video::-webkit-media-controls,
.clip-player__video::-webkit-media-controls-enclosure,
.clip-player__video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.clip-player__bar {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.5rem 0.55rem 0.45rem;
  background: linear-gradient(to top, rgba(7, 9, 12, 0.94) 42%, rgba(7, 9, 12, 0));
}

.clip-player__transport {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.clip-player__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(191, 217, 255, 0.32);
  background: rgba(7, 9, 12, 0.72);
  color: var(--c-text);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}

.clip-player__btn svg {
  width: 16px;
  height: 16px;
  max-width: none;
}

.clip-player__btn--skip {
  width: auto;
  min-width: 34px;
  padding-inline: 0.35rem;
  gap: 0.05rem;
}

.clip-player__btn--skip span {
  font-family: var(--font-hud);
  font-size: 0.58rem;
  letter-spacing: 0;
  line-height: 1;
}

.clip-player__btn--play {
  width: 40px;
  height: 40px;
  background: var(--c-text);
  color: var(--c-void);
  border-color: var(--c-text);
}

.clip-player__btn:hover {
  border-color: rgba(191, 217, 255, 0.75);
}

.clip-player__btn--play:hover {
  background: #fff;
  color: var(--c-void);
}

.clip-player__btn:focus-visible,
.clip-player__scrub:focus-visible {
  outline: 2px solid rgba(191, 217, 255, 0.75);
  outline-offset: 2px;
}

.clip-player__time {
  margin-left: auto;
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--c-text);
  white-space: nowrap;
}

.clip-player__scrub {
  --scrub: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.clip-player__scrub::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(90deg, var(--c-text) var(--scrub), rgba(238, 242, 246, 0.28) var(--scrub));
}

.clip-player__scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  background: var(--c-text);
  border: 0;
}

.clip-player__scrub::-moz-range-track {
  height: 3px;
  background: linear-gradient(90deg, var(--c-text) var(--scrub), rgba(238, 242, 246, 0.28) var(--scrub));
  border: 0;
}

.clip-player__scrub::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--c-text);
  border: 0;
}

.media-pending {
  display: grid;
  place-items: center;
  min-height: 12rem;
  color: var(--c-text-faint);
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(191, 217, 255, 0.04) 3px,
    rgba(191, 217, 255, 0.04) 4px
  );
}

/* Forms */
.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}

fieldset.field {
  border: 0;
  margin: 0 0 var(--sp-4);
  padding: 0;
  min-inline-size: 0;
}

fieldset.field legend {
  padding: 0;
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.field label {
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  background: var(--c-raised);
  color: var(--c-text);
  border: 1px solid var(--c-line-strong);
  border-radius: 0;
  color-scheme: dark;
  clip-path: polygon(
    0 8px,
    8px 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
}

.field input[type="checkbox"],
.field input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  accent-color: var(--c-edge);
  background: transparent;
  border: 0;
  clip-path: none;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-text) 50%),
    linear-gradient(135deg, var(--c-text) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.field option,
.field optgroup {
  background: #181C23;
  color: #EEF2F6;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-2);
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 640px) {
  .checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: var(--c-raised);
  color: var(--c-text);
  border: 1px solid var(--c-line-strong);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  clip-path: polygon(
    0 8px,
    8px 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
}

.field::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  width: auto;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--c-edge);
  transition: transform var(--t-base) var(--ease-out);
  pointer-events: none;
}

.field:focus-within::after {
  transform: scaleX(1);
}

.form-status {
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  letter-spacing: var(--ls-hud);
  color: var(--c-text-muted);
}

.form-status[role="status"] {
  min-height: 1.25rem;
}

/* Accordion */
.acc-item {
  border-bottom: 1px solid var(--c-line);
}

.acc-item summary,
.acc-item .acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 48px;
  padding-block: var(--sp-3);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.acc-item summary::-webkit-details-marker {
  display: none;
}

.acc-item[open] summary,
.acc-item.is-open .acc-trigger {
  color: var(--c-text);
}

.acc-panel {
  padding-bottom: var(--sp-4);
  color: var(--c-text-muted);
}

.acc-item summary::after,
.acc-item .acc-trigger::after {
  content: "+";
  font-family: var(--font-hud);
  color: var(--c-text-faint);
  transition: transform var(--t-fast) var(--ease-out);
}

.acc-item[open] summary::after,
.acc-item.is-open .acc-trigger::after {
  transform: rotate(45deg);
}

/* Segmented control */
.seg-control {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  clip-path: var(--chamfer-poly);
}

.seg-control button,
.seg-control a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 var(--sp-3);
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  color: var(--c-text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.seg-control button[aria-selected="true"],
.seg-control button.is-active,
.seg-control a[aria-current="page"] {
  color: var(--c-text);
}

.seg-control {
  position: relative;
  align-items: center;
}

/* Media: full words stay visible; swipe when they do not fit; centre when they do */
.seg-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}

.seg-scroll::-webkit-scrollbar {
  display: none;
}

.seg-scroll .seg-control {
  display: flex;
  width: max-content;
  min-width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

/* Media photo gallery — justified rows: every photo keeps its own shape (--ar = width / height), each row
   fills the width, and a short last row stays at its natural size instead of stretching. */
.media-gallery {
  --row-h: clamp(6.5rem, 28vw, 15rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
}

.media-gallery::after {
  content: '';
  flex-grow: 1000000;
}

.media-gallery__cell {
  position: relative;
  display: block;
  flex: calc(var(--ar, 0.8) * 100) 1 calc(var(--ar, 0.8) * var(--row-h));
  min-width: 0;
  padding: 0;
  border: 0;
  aspect-ratio: var(--ar, 0.8);
  overflow: hidden;
  background: var(--c-surface);
  cursor: pointer;
  color: inherit;
}

.media-gallery__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-gallery__cell::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(191, 217, 255, 0.08);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .media-gallery__cell:hover::after,
  .media-gallery__cell:focus-visible::after {
    box-shadow: inset 0 0 0 1px rgba(191, 217, 255, 0.28);
  }
}

/* Photo viewer: the page stays visible behind it, blurred and dimmed. A tap anywhere (or the X) closes it. */
.media-lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: rgba(7, 9, 12, 0.94);
  color: var(--c-text);
  cursor: zoom-out;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .media-lightbox {
    background: rgba(7, 9, 12, 0.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    backdrop-filter: blur(18px) saturate(1.1);
  }
}

.media-lightbox::backdrop {
  background: transparent;
}

.media-lightbox:focus {
  outline: none;
}

.media-lightbox[open] {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  grid-template-rows: 3.5rem minmax(0, 1fr);
  align-items: center;
  animation: media-lb-fade var(--t-base) var(--ease-out);
}

.media-lightbox__close {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin: 0.6rem 0.7rem 0 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(11, 14, 18, 0.55);
  box-shadow: inset 0 0 0 1px rgba(191, 217, 255, 0.2);
  color: var(--c-text);
  cursor: pointer;
}

.media-lightbox__close:focus-visible,
.media-lightbox__nav:focus-visible {
  outline: 2px solid var(--c-edge-text);
  outline-offset: 2px;
}

@keyframes media-lb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* The photo grows out of the tile that was tapped (--lb-dx / --lb-dy = tile centre minus screen centre). */
@keyframes media-lb-grow {
  from {
    opacity: 0;
    transform: translate(var(--lb-dx, 0px), var(--lb-dy, 0px)) scale(0.3);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.media-lightbox[open] .media-lightbox__stage img {
  animation: media-lb-grow 0.34s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .media-lightbox[open],
  .media-lightbox[open] .media-lightbox__stage img {
    animation: none;
  }
}

html.is-lightbox-open {
  overflow: hidden;
}

.media-lightbox__stage {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 0.5rem 1.5rem;
}

.media-lightbox__stage img {
  max-width: 100%;
  max-height: calc(100dvh - 8rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.media-lightbox__cap {
  max-width: 40rem;
  text-align: center;
  color: var(--c-text-muted);
  font-size: 0.92rem;
}

.media-lightbox__nav {
  grid-row: 2;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 0;
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
}

.media-lightbox__nav--prev { grid-column: 1; }
.media-lightbox__nav--next { grid-column: 3; }

.seg-control .seg-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: var(--seg-x, 3px);
  width: var(--seg-w, 4rem);
  background: rgba(227, 33, 43, 0.22);
  box-shadow: inset 0 0 0 1px var(--c-edge);
  clip-path: var(--chamfer-poly);
  transition:
    left var(--t-base) var(--ease-spring),
    width var(--t-base) var(--ease-spring);
  pointer-events: none;
  z-index: 0;
}

/* Snap carousel */
.snap-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  scroll-padding-inline: var(--gutter);
}

.snap-carousel::-webkit-scrollbar {
  display: none;
}

.snap-carousel > * {
  flex: 0 0 min(85vw, 22rem);
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .snap-carousel > * {
    flex-basis: min(42vw, 20rem);
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.carousel-dots button,
.carousel-dots .dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: var(--r-pill);
  background: var(--c-line-strong);
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}

.carousel-dots button[aria-current="true"],
.carousel-dots .dot.active {
  background: var(--c-edge);
  transform: scale(1.15);
}

/* Cards — blade shear, ion surface, with a light red shear for brand presence. */
.tile,
.plan-card,
.comparison-card {
  background:
    linear-gradient(var(--blade-angle), rgba(227, 33, 43, 0.08), transparent 42%),
    linear-gradient(var(--blade-angle), rgba(191, 217, 255, 0.07), transparent 46%),
    linear-gradient(165deg, var(--c-raised), var(--c-void) 78%);
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
  min-height: 100%;
  padding: var(--sp-4);
  clip-path: var(--blade-poly);
  color: var(--c-text);
  text-decoration: none;
  overflow: hidden;
}

.tile::after,
.plan-card::after,
.comparison-card::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: var(--blade-poly);
  box-shadow: inset 0 0 0 1px var(--c-line-strong);
  pointer-events: none;
}

.tile > .h2,
.tile > .h3,
.tile > h2,
.tile > h3 {
  max-width: 100%;
  font-weight: 800;
  font-stretch: 125%;
  line-height: var(--lh-tight);
  overflow-wrap: anywhere;
}

.tile .text-muted {
  color: var(--c-text-muted);
}

.tile__advance {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding-top: 0.35rem;
  font-family: var(--font-hud);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-edge-text);
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}

.tile__advance::after {
  content: "";
  width: 0.85em;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-46deg);
  transform-origin: left center;
}

.tile--lead::after {
  box-shadow: inset 0 0 0 1px rgba(191, 217, 255, 0.42);
}

@media (hover: hover) and (pointer: fine) {
  a.tile:hover::after,
  a.tile:focus-visible::after,
  .plan-card:hover::after {
    box-shadow: inset 0 0 0 1px rgba(227, 33, 43, 0.55);
  }

  a.tile:hover .tile__advance,
  a.tile:focus-visible .tile__advance,
  .tile:hover > .tile__advance,
  .tile:focus-within > .tile__advance,
  .corner-card__actions > a.tile__advance:hover,
  .corner-card__actions > a.tile__advance:focus-visible {
    transform: translateX(6px);
  }

  .plan-card:hover,
  .goal-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-ion);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  a.tile:hover .tile__advance,
  a.tile:focus-visible .tile__advance,
  .tile:hover > .tile__advance,
  .tile:focus-within > .tile__advance,
  .corner-card__actions > a.tile__advance:hover,
  .corner-card__actions > a.tile__advance:focus-visible {
    transform: none;
    opacity: 0.72;
  }

  .plan-card:hover,
  .goal-row:hover {
    transform: none;
  }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  clip-path: var(--blade-poly);
  overflow: hidden;
}

.rank-standout {
  margin: 0;
  color: var(--c-text);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Command / snapshot tiles: small labels + advances in red; big values stay titanium. */
.command-grid .hud-label {
  color: var(--c-edge-text);
}

.command-grid .h2,
.command-grid .h3 {
  color: var(--c-text);
}

.plan-card--featured {
  box-shadow: var(--glow-ion);
}

.plan-card--featured::after {
  box-shadow: inset 0 0 0 1px rgba(191, 217, 255, 0.4);
}

.plan-badge {
  align-self: flex-start;
  padding: 0.25em 0.65em;
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  color: var(--c-void);
  background: var(--c-text);
  clip-path: var(--chamfer-poly);
}

.sponsor-tier-art {
  display: block;
  width: 100%;
  height: 7.25rem;
  margin: 0 auto;
  object-fit: contain;
  object-position: center bottom;
}

.plan-card .btn {
  margin-top: auto;
}

.comparison-cards {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 768px) {
  .comparison-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.comparison-card {
  position: relative;
  padding: var(--sp-4);
  clip-path: var(--blade-poly);
  overflow: hidden;
}

.comparison-card--dz {
  box-shadow: var(--glow-ion);
}

.comparison-card--dz::after {
  box-shadow: inset 0 0 0 1px rgba(191, 217, 255, 0.4);
}

/* ── Shell ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  view-transition-name: site-header;
  transition: transform var(--t-base) var(--ease-out), background var(--t-fast) var(--ease-out);
}

.site-header.is-nav-hidden {
  transform: translateY(calc(-100% - 2px));
}

.site-header.is-scrolled .site-header__inner {
  background: var(--c-base);
  box-shadow: 0 1px 0 var(--c-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--topbar-h);
  padding-inline: var(--gutter);
  background: var(--c-glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header__inner,
  .tabbar__glass,
  #more-sheet .sheet-panel {
    background: var(--c-base);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header__inner,
  .tabbar__glass,
  #more-sheet .sheet-panel {
    background: var(--c-base);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.site-header .site-header__hud,
.site-header__inner > .hud-label {
  display: none;
}

.site-header__brand {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--sp-2);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text);
  white-space: nowrap;
}

.site-header__brand-name {
  display: inline;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-header__cta {
  display: none;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--nav-h);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--c-line);
  background: rgba(11, 14, 18, 0.92);
}

.desktop-nav a {
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-text-muted);
}

.desktop-nav a[aria-current="page"] {
  color: var(--c-edge-text);
}

.desktop-nav a:hover {
  color: var(--c-edge-text);
}

.desktop-nav a.desktop-nav__home {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  margin-right: var(--sp-2);
  padding: 0.35rem 0.8rem;
  color: #EEF2F6;
  border: 1px solid rgba(238, 242, 246, 0.55);
  background: rgba(238, 242, 246, 0.06);
}

.desktop-nav a.desktop-nav__home img {
  width: 16px;
  height: 16px;
  display: block;
}

.desktop-nav a.desktop-nav__home[aria-current="page"] {
  border-color: #EEF2F6;
  background: rgba(238, 242, 246, 0.14);
}

.desktop-nav a.desktop-nav__home:hover {
  color: #EEF2F6;
  border-color: #EEF2F6;
}

.desktop-nav__fold {
  display: none;
  position: relative;
  flex: 0 0 auto;
}

.desktop-nav__fold.is-active {
  display: block;
}

.desktop-nav__fold summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  color: var(--c-text-muted);
  white-space: nowrap;
}

.desktop-nav__fold summary::-webkit-details-marker {
  display: none;
}

.desktop-nav__fold summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
}

.desktop-nav__fold[open] summary,
.desktop-nav__fold.is-current summary,
.desktop-nav__fold summary:hover {
  color: var(--c-text);
}

.desktop-nav__fold[open] summary::after {
  transform: rotate(180deg);
}

.desktop-nav__fold-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  display: grid;
  min-width: 196px;
  padding: 0.35rem;
  background: var(--c-raised);
  border: 1px solid var(--c-line-strong);
  clip-path: var(--chamfer-poly);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.desktop-nav__fold-menu a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding-inline: 0.75rem;
  white-space: nowrap;
}

.desktop-nav__fold-menu a:hover,
.desktop-nav__fold-menu a[aria-current="page"] {
  color: var(--c-text);
  background: rgba(238, 242, 246, 0.06);
}

.standalone-back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: var(--sp-1);
  padding: 0;
  border: 1px solid var(--c-line-strong);
  background: transparent;
  color: var(--c-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

html[data-standalone] .standalone-back {
  display: inline-flex;
}

.desktop-nav a.btn.btn--primary,
.desktop-nav a.btn.btn--primary:hover,
.desktop-nav a.btn.btn--primary:focus-visible {
  color: var(--c-void);
}

@media (min-width: 1024px) {
  .site-header {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    min-height: var(--topbar-h);
    padding-inline: var(--gutter);
    background: var(--c-glass);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .site-header__inner {
    display: contents;
  }

  .site-header__brand {
    order: 1;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
  }

  .site-header__brand .site-logo-text {
    display: none;
  }

  .site-header .site-header__cta {
    order: 4;
    display: inline-flex;
    margin-left: 0;
    min-height: 40px;
    padding: 0.4rem 0.95rem;
    white-space: nowrap;
  }

  .desktop-nav {
    display: flex;
    order: 2;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(1.25rem, 2vw, 3rem);
    min-width: 0;
    min-height: 0;
    padding: 0;
    border-top: 0;
    background: transparent;
  }

  .desktop-nav > a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .desktop-nav > a[href="media.html"],
  .desktop-nav > a[href="about.html"] {
    display: none;
  }

  .desktop-nav .btn {
    min-height: 40px;
    padding: 0.4rem 0.95rem;
  }
}

/* Tab bar — transparent fixed parent, glass child (iOS Liquid Glass workaround) */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-tabbar);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: none;
  view-transition-name: tabbar;
  transition: transform var(--t-base) var(--ease-out);
}

.tabbar.tabbar--hidden {
  transform: translateY(110%);
}

.tabbar__glass {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  min-height: var(--tabbar-h);
  margin: var(--sp-2);
  padding: var(--sp-1);
  background: var(--c-glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--c-line);
  clip-path: var(--chamfer-poly);
  position: relative;
}

@media (min-width: 1024px) {
  .tabbar {
    display: none;
  }
}

.tabbar a,
.tabbar button {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  min-height: 48px;
  padding: 0.35rem 0.1rem 0.7rem;
  font-family: var(--font-hud);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C5CED8;
  text-decoration: none;
}

.tabbar a img,
.tabbar button img {
  width: 24px;
  height: 24px;
  opacity: 0.72;
}

.tabbar__label {
  display: block;
  max-width: 100%;
  font-size: clamp(0.42rem, 2.05vw, 0.52rem);
  letter-spacing: 0;
  line-height: 1.05;
  text-align: center;
}

.tabbar a[aria-current="page"],
.tabbar button[aria-current="page"] {
  color: var(--c-edge-text);
}

.tabbar a[aria-current="page"] img,
.tabbar button[aria-current="page"] img {
  opacity: 1;
}

.tabbar a:active,
.tabbar button:active {
  transform: scale(0.94);
}

#tab-indicator {
  position: absolute;
  bottom: 6px;
  left: var(--tab-x, 10%);
  width: var(--tab-w, 18%);
  height: 2px;
  background: var(--c-edge);
  box-shadow: var(--glow-edge);
  view-transition-name: tab-indicator;
  pointer-events: none;
  z-index: 0;
}

#tab-indicator.is-ready {
  transition:
    left var(--t-base) var(--ease-spring),
    width var(--t-base) var(--ease-spring);
}

/* More sheet */
#more-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  margin: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
}

#more-sheet::backdrop {
  background: rgba(7, 9, 12, 0.72);
}

#more-sheet .sheet-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: auto;
  right: 0;
  width: min(86vw, 320px);
  max-height: none;
  height: 100%;
  padding: calc(var(--sp-6) + env(safe-area-inset-top, 0px)) var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
  background: #0F1217;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--c-line-strong);
  clip-path: polygon(
    16px 0,
    100% 0,
    100% 100%,
    16px 100%,
    0 calc(100% - 16px),
    0 16px
  );
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-behavior: allow-discrete;
  touch-action: pan-y;
}

#more-sheet .sheet-panel.is-dragging {
  transition: none;
}

#more-sheet .hud-label {
  display: none;
}

#more-sheet .sheet-panel::before {
  content: "More";
  display: block;
  margin-bottom: var(--sp-4);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text);
}

@starting-style {
  #more-sheet[open] .sheet-panel {
    transform: translateX(105%);
  }
}

#more-sheet:not([open]) .sheet-panel {
  transform: translateX(105%);
}

#more-sheet[open] .sheet-panel {
  transform: translateX(0);
}

.sheet-handle {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 4px;
  height: 56px;
  margin: 0;
  border-radius: var(--r-pill);
  background: #EEF2F6;
  transform: translateY(-50%);
  opacity: 0.7;
}

.sheet-nav {
  display: grid;
  gap: var(--sp-1);
}

.sheet-nav a,
.sheet-nav__install {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-inline: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-line);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.install-home {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin: 0 var(--gutter) var(--sp-8);
  padding: var(--sp-4);
  background: var(--c-raised);
  border: 1px solid var(--c-line-strong);
}

.install-home p + p {
  margin-top: var(--sp-1);
}

@media (min-width: 1024px) {
  .install-home {
    display: none !important;
  }
}

.install-help {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(92vw, 26.5rem);
  width: 100%;
  max-height: min(92dvh, 44rem);
  overflow: hidden;
}

.install-help::backdrop {
  background: rgba(7, 9, 12, 0.72);
}

.install-help__panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-height: min(92dvh, 44rem);
  padding: var(--sp-4);
  background: #0F1217;
  border: 1px solid var(--c-line-strong);
  overflow: hidden;
}

.install-help__scroll {
  overflow: auto;
  min-height: 0;
  display: grid;
  gap: var(--sp-3);
  -webkit-overflow-scrolling: touch;
}

.install-help__lead,
.install-help__note {
  margin: 0;
  line-height: 1.45;
}

.install-help__lead {
  color: var(--c-text-muted);
}

.install-help__note {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border: 1px solid var(--c-line-strong);
  background: rgba(191, 217, 255, 0.06);
  color: var(--c-text-muted);
}

.install-help__hint {
  margin: 0;
  color: var(--c-text-muted);
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  letter-spacing: var(--ls-hud);
  text-align: center;
  text-transform: uppercase;
}

.install-help__hint[hidden] {
  display: none;
}

.install-help__panel > .btn {
  width: 100%;
  flex: 0 0 auto;
}

.install-help__steps {
  display: grid;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install-step;
}

.install-help__steps li {
  counter-increment: install-step;
  padding: var(--sp-3);
  background: var(--c-raised);
  border: 1px solid var(--c-line-strong);
  color: var(--c-text);
}

.install-help__steps li::before {
  content: counter(install-step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.install-help__steps li strong {
  display: block;
  margin: 0.15rem 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--c-text);
}

.install-help__steps li span {
  display: block;
  color: var(--c-text-muted);
  line-height: 1.45;
}

.site-logo,
.site-logo--full {
  display: block;
  height: 36px;
  width: auto;
  max-width: 120px;
  aspect-ratio: auto;
  background: transparent;
  object-fit: contain;
}

@media (min-width: 768px) {
  .site-logo,
  .site-logo--full {
    height: 40px;
    max-width: 140px;
  }
}

html[data-intro] .intro-layer,
.intro-layer.intro--active {
  display: none !important;
  pointer-events: none !important;
}

.intro-layer.is-done {
  display: none !important;
  pointer-events: none;
}

/* Footer */
.site-footer {
  padding: var(--sp-8) var(--gutter) calc(var(--tabbar-h) + var(--sp-6) + env(safe-area-inset-bottom, 0px));
  background: var(--c-base);
  border-top: 1px solid var(--c-line);
  color: var(--c-text-muted);
  font-size: 0.875rem;
}

.site-footer__inner {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.site-footer__brand-block {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: max-content;
  max-width: 100%;
}

.site-footer__brand {
  display: block;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
}

.site-footer__identity-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.site-footer__mark {
  display: block;
  width: 128px;
  height: 128px;
  flex: 0 0 auto;
  object-fit: cover;
  background: #fff;
  clip-path: var(--chamfer-poly);
}

.site-footer__identity {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.site-footer__name {
  color: var(--c-text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.site-footer__role {
  color: var(--c-text-faint);
  font-family: var(--font-hud);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
}

.site-footer__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
}

.site-footer__pages a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-text-muted);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__pages a[aria-current="page"] {
  color: var(--c-edge-text);
}

.site-footer__follow {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
}

.site-footer__copy {
  margin: 0;
  color: var(--c-text-faint);
  font-size: 0.75rem;
}

.site-footer a:hover {
  color: var(--c-text);
}

@media (min-width: 1024px) {
  .site-footer {
    padding-bottom: var(--sp-8);
  }

  .site-footer__pages a {
    min-height: 2rem;
  }
}

/* ── Page helpers ───────────────────────────────────────────────────────── */
.page-hero {
  padding-block: var(--sp-6) var(--sp-4);
  border-bottom: 1px solid var(--c-line);
  background:
    linear-gradient(180deg, rgba(191, 217, 255, 0.06), transparent 55%),
    var(--c-void);
}

.page-hero .hud-label {
  margin-bottom: var(--sp-2);
}

@media (max-width: 1023px) {
  .page-index,
  .about-mobile-progress {
    display: none;
  }
}

.page-hero h1 {
  margin-bottom: var(--sp-2);
}

.home-hero {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  height: calc(100svh - var(--topbar-h));
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding:
    var(--sp-4)
    var(--gutter)
    calc(var(--tabbar-h) + var(--sp-2) * 2 + env(safe-area-inset-bottom, 0px) + var(--sp-3));
  overflow: hidden;
}

.home-hero__copy {
  position: relative;
  z-index: 1;
}

.home-hero__nick {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--c-text);
  letter-spacing: 0.02em;
}

.home-hero__nick-line {
  display: block;
  position: relative;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.home-hero__nick-ghost {
  visibility: hidden;
  user-select: none;
}

.home-hero__nick-live {
  position: absolute;
  inset: 0 auto auto 0;
  white-space: nowrap;
}

.home-hero__nick-live--red {
  color: var(--c-edge-text);
  -webkit-text-fill-color: var(--c-edge-text);
  -webkit-text-stroke: 0;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--c-void);
}

.home-hero__media img,
.home-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.home-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.home-hero__slide picture,
.home-hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.home-hero__slide img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}

.home-hero__slide.is-active img {
  animation: home-hero-ken 24s linear infinite;
}

@keyframes home-hero-ken {
  0% { transform: scale(1.08); }
  100% { transform: scale(1.16); }
}

@media (max-width: 1023px) {
  .home-hero__slide--wide,
  .home-hero__video--wide {
    display: none;
  }
}

@media (min-width: 1024px) {
  .home-hero__slide--tall,
  .home-hero__video--tall {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__video {
    display: none;
  }

  .home-hero__slide {
    transition: none;
  }

  .home-hero__slide.is-active img {
    animation: none;
    transform: none;
  }
}

.home-hero__media .home-hero__video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  object-fit: cover;
  transition: opacity 1s linear;
}

.home-hero__media .home-hero__video--tall {
  /* A short black bar sits on the portrait clip. A small lift clears it and keeps the top of the picture. */
  object-position: center bottom;
  transform: scale(1.11);
  transform-origin: center bottom;
}

@media (max-width: 1023px) {
  .home-hero {
    overflow: visible;
  }
}

.home-hero__video::-webkit-media-controls,
.home-hero__video::-webkit-media-controls-panel,
.home-hero__video::-webkit-media-controls-enclosure,
.home-hero__video::-webkit-media-controls-play-button,
.home-hero__video::-webkit-media-controls-start-playback-button,
.home-hero__video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
  -webkit-appearance: none;
  pointer-events: none;
  width: 0 !important;
  height: 0 !important;
}

.home-hero__video.is-ready {
  opacity: 0;
}

.home-hero__video.is-showing {
  opacity: 1;
}

.home-hero__video.is-incoming {
  z-index: 2;
}

.home-hero__video.is-hiding {
  transition: none;
  opacity: 0;
}

.home-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 9, 12, 0.35) 0%,
    rgba(7, 9, 12, 0.55) 45%,
    rgba(7, 9, 12, 0.92) 100%
  );
}

.home-hero__copy > .hud-label {
  color: #eef2f6;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(7, 9, 12, 0.9);
}

.home-hero__title {
  font-size: clamp(1.0625rem, 4.375vw, 1.40625rem);
  line-height: var(--lh-tight);
}

.home-hero__copy .lede {
  margin-top: 0.35rem;
  max-width: 36ch;
  font-size: 0.72rem;
  line-height: 1.3;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.home-hero__actions .btn {
  min-height: 28px;
  min-width: 0;
  padding: 0.2rem 0.65rem;
  font-size: 0.78125rem;
  letter-spacing: 0.04em;
}

.home-intro__portrait {
  aspect-ratio: 1066 / 1600;
  width: 100%;
  margin: 0;
}

.home-intro__portrait img {
  object-position: center center;
}

/* Phone: from just above the head through the full shorts. */
@media (max-width: 767px) {
  .home-intro {
    padding-block: var(--sp-4);
  }

  .home-intro__portrait {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1066 / 896;
    margin-inline: 0;
  }

  .home-intro__portrait picture {
    position: absolute;
    inset: 0;
  }

  .home-intro__portrait img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 86%;
  }
}

.home-watch [data-featured-fight-hook] {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  max-width: 18ch;
}

.home-watch [data-featured-fight] {
  max-width: 42rem;
}

@media (min-width: 768px) {
  .home-intro .grid-2 {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .home-watch .container {
    width: min(42rem, 100% - var(--gutter) * 2);
  }
}

.media-fight .hud-label {
  color: var(--c-edge-text);
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.command-grid .tile {
  gap: 0.5rem;
  padding: var(--sp-3);
}

.tile--fit {
  container-type: inline-size;
}

.tile--fit > .h2 {
  max-width: 100%;
  font-size: clamp(1.15rem, 13.2cqi, var(--fs-h2));
}

@media (min-width: 768px) {
  .command-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .command-grid .tile--lead,
  .command-grid .tile--wide {
    grid-column: span 2;
  }

  /* Fight Career: Wins · Losses · Draws · KOs · Bouts · Titles as an even 3 × 2. */
  .command-grid--record {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 480px) {
  .page-hero {
    padding-block: var(--sp-8) var(--sp-5);
  }
}

@media (min-width: 1024px) {
  .home-hero {
    box-sizing: border-box;
    height: calc(100svh - var(--topbar-h));
    min-height: 0;
    padding: var(--sp-3) var(--gutter) var(--sp-4);
    justify-content: flex-end;
  }

  .home-hero__nick {
    -webkit-text-stroke: 1.5px var(--c-text);
  }

  .home-hero__copy > .hud-label {
    font-size: var(--fs-hud);
    letter-spacing: 0.08em;
  }

  .home-hero__title {
    font-size: clamp(2rem, 6.2vh, 5.75rem);
  }

  .home-hero__copy .lede {
    margin-top: var(--sp-3);
    max-width: 42ch;
    font-size: inherit;
    line-height: inherit;
  }

  .home-hero__actions {
    margin-top: var(--sp-3);
  }

  .home-hero__actions .btn {
    min-height: 48px;
    min-width: 48px;
    padding: 0.65rem 1.35rem;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
  }
}

/* Places Dylan has trained and fought */
.place-list {
  display: grid;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.place-list li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--sp-3);
  background: var(--c-raised);
  border: 1px solid var(--c-line-strong);
}

.place-list strong {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.place-list .text-muted {
  margin: 0;
}

@media (min-width: 768px) {
  .place-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Current goals */
.goal-list {
  display: grid;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.goal-row {
  padding: var(--sp-4);
  background: var(--c-raised);
  border: 1px solid var(--c-line-strong);
}

.goal-row__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .goal-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Coaching location */
.location-block {
  display: grid;
  gap: var(--sp-3);
}

.location-block__photo {
  min-height: 16rem;
  aspect-ratio: 4 / 3;
}

.location-block__card {
  justify-content: center;
}

.location-block__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--sp-2);
  margin-top: auto;
}

.location-block__actions .btn {
  margin-top: 0;
}

/* About — Strikeforce card: gym thumbnail bleeds to the chamfered edges. */
.corner-card__thumb {
  margin: calc(var(--sp-4) * -1) calc(var(--sp-4) * -1) var(--sp-1);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-void);
}

.corner-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.corner-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem var(--sp-3);
  margin-top: auto;
}

@media (min-width: 1024px) {
  .corner-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: var(--sp-4);
  }

  .corner-card > :not(.corner-card__thumb) {
    grid-column: 2;
  }

  .corner-card__thumb {
    grid-row: 1 / -1;
    margin: calc(var(--sp-4) * -1) 0 calc(var(--sp-4) * -1) calc(var(--sp-4) * -1);
    aspect-ratio: auto;
    min-height: 220px;
  }

  .corner-card__actions {
    align-self: end;
  }
}

@media (min-width: 768px) {
  .location-block {
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
  }

  .location-block__photo {
    height: 100%;
    min-height: 22rem;
    aspect-ratio: auto;
  }
}

/* Social links and partner cards */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: var(--sp-3);
}

.social-links a,
.social-card__name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.social-links a {
  font-size: 0.82rem;
}

.site-footer .social-links {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
  margin-bottom: 0;
}

.site-footer .social-links a {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.site-footer .social-links--icons {
  gap: 0.35rem;
  margin: 0;
}

.site-footer .social-links--icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: inherit;
}

.site-footer .social-links--icons a:hover {
  color: inherit;
  opacity: 0.88;
}

.site-footer .social-links--icons img {
  width: 22px;
  height: 22px;
}

.social-card {
  container-type: inline-size;
}

/* Scale with the card so INSTAGRAM + icon fits two-up on small phones. */
.social-card__name {
  font-size: clamp(0.72rem, calc(15cqi - 0.3rem), 1.05rem);
}

.social-card__handle {
  font-size: min(1em, 11.5cqi);
  overflow-wrap: anywhere;
}

.social-links img,
.social-card__name img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.sponsor-partner__logo {
  display: grid;
  place-items: center;
  min-height: 88px;
  margin: calc(var(--sp-4) * -1) calc(var(--sp-4) * -1) 0;
  padding: 0.9rem 1.1rem;
  background: var(--c-void);
}

.sponsor-partner__logo--light {
  background: #eef2f6;
}

.sponsor-partner__logo img {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.sponsor-code {
  margin: 0;
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  letter-spacing: 0.06em;
  color: var(--c-text);
  overflow-wrap: anywhere;
}

.sponsor-quote {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--c-text-muted);
  font-size: 0.92rem;
}

.sponsor-quote p {
  margin: 0;
}

.sponsor-stat .h2,
.sponsor-stat .text-muted,
.sponsor-stat .hud-label {
  margin: 0;
}

.sponsor-stat {
  container-type: inline-size;
}

/* Fight record — card grid on all breakpoints (matches the mobile treatment). */
.fight-card-grid {
  display: grid;
  gap: var(--sp-3);
  min-width: 0;
}

@media (min-width: 768px) {
  .fight-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4);
  }
}

.fight-card {
  gap: var(--sp-2);
}

/* Still or YouTube poster, full-bleed at the top of the card. 3:2 on a phone
   (one column) keeps more of a tall photo; 16:9 from the two-column grid
   keeps a row of cards compact. Cover-crop is CSS only. */
.fight-card__media {
  position: relative;
  display: block;
  align-self: stretch;
  flex: 0 0 auto;
  width: calc(100% + var(--sp-4) * 2);
  margin: calc(var(--sp-4) * -1) calc(var(--sp-4) * -1) 0;
  padding: 0;
  border: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--c-void);
  line-height: 0;
}

@media (min-width: 768px) {
  .fight-card__media {
    aspect-ratio: 16 / 9;
  }
}

.fight-card__media picture,
.fight-card__media > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.fight-card__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--fight-pos, center center);
}

.fight-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-2);
}

.fight-card__top .hud-label {
  color: var(--c-edge-text);
  margin: 0;
}

.fight-result {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  font-weight: 600;
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.fight-result--win {
  color: var(--c-edge-text);
}

.fight-result--loss {
  color: var(--c-text-faint);
}

.fight-card__meta {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.fight-card__meta > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--sp-2);
  align-items: baseline;
}

.fight-card__meta dt {
  margin: 0;
  font-family: var(--font-hud);
  font-size: var(--fs-hud);
  letter-spacing: var(--ls-hud);
  text-transform: uppercase;
  color: var(--c-text-faint);
}

.fight-card__meta dd {
  margin: 0;
  color: var(--c-text-muted);
  overflow-wrap: anywhere;
}

.fight-card .btn.fight-video-btn {
  align-self: flex-start;
  margin-top: auto;
}

.sponsor-stat .h2 {
  max-width: 100%;
  font-size: clamp(1.15rem, 13.2cqi, 2.6rem);
}

/* Fight Career Titles tile: keep "CHAMPION" whole on narrow phones. */
.command-grid--record #stat-titles {
  font-size: clamp(0.7rem, 8cqi, var(--fs-h2));
}

/* Faded background figure. Each photo has its own frame so a wide
   walkout is not crushed into a tall head crop. The mask goes
   transparent inside the photo, so the curtain never draws a box. */
.has-section-bg {
  position: relative;
  isolation: isolate;
}
.has-section-bg > .container,
.has-section-bg > .wrap {
  position: relative;
  z-index: 1;
}
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.section-bg picture {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: min(46vw, 240px);
  max-height: 100%;
  opacity: 0.52;
}
.section-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Next fight: head in the gap beside the two short lines, arms just under them. */
[data-home-fight-status] {
  min-height: 0;
  padding-bottom: 7rem;
}
[data-home-fight-status] .section-bg picture {
  top: 7.4rem;
  bottom: auto;
  right: -46vw;
  left: auto;
  width: min(146vw, 580px);
  max-width: none;
  max-height: none;
  height: auto;
  aspect-ratio: 900 / 376;
  opacity: 0.74;
  -webkit-mask-image: radial-gradient(ellipse 80% 68% at 40% 48%, #000 0%, rgba(0, 0, 0, 0.78) 42%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 68% at 40% 48%, #000 0%, rgba(0, 0, 0, 0.78) 42%, transparent 70%);
}

/* Red walkout on the coaching hero. Home video only keeps the head. */
.has-section-bg--walkout .section-bg picture {
  top: 0.25rem;
  right: 0;
  width: min(42vw, 210px);
  aspect-ratio: 466 / 900;
  opacity: 0.58;
  -webkit-mask-image: radial-gradient(ellipse 66% 60% at 54% 26%, #000 4%, transparent 68%);
  mask-image: radial-gradient(ellipse 66% 60% at 54% 26%, #000 4%, transparent 68%);
}
.home-watch .section-bg picture {
  top: var(--sp-8);
  right: 0;
  width: min(32vw, 150px);
  aspect-ratio: 3 / 4;
  max-height: 58%;
  opacity: 0.52;
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 40%, #000 8%, transparent 74%);
  mask-image: radial-gradient(ellipse 72% 78% at 50% 40%, #000 8%, transparent 74%);
}
.home-watch .section-bg img {
  object-position: center 24%;
}

/* Victory: face and raised arm. The light rig fades off the lower left. */
.has-section-bg--victory .section-bg picture {
  top: 0;
  right: 0;
  width: min(54vw, 280px);
  aspect-ratio: 734 / 900;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 60% 56% at 72% 30%, #000 6%, transparent 66%);
  mask-image: radial-gradient(ellipse 60% 56% at 72% 30%, #000 6%, transparent 66%);
}

/* Corner robe. Sits in the open space beside the heading, not down in the copy. */
.section-bg--corner picture {
  top: 0.25rem;
  right: 0;
  width: min(44vw, 210px);
  aspect-ratio: 900 / 860;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at 60% 44%, #000 6%, transparent 68%);
  mask-image: radial-gradient(ellipse 68% 62% at 60% 44%, #000 6%, transparent 68%);
}

@media (max-width: 767px) {
  .page-hero.has-section-bg h1,
  .home-watch .h2,
  .has-section-bg--victory .h2,
  .has-section-bg--gutter .h2 {
    max-width: 68%;
  }
}

@media (min-width: 768px) {
  [data-home-fight-status] {
    padding-bottom: var(--sp-8);
  }
  [data-home-fight-status] .section-bg picture {
    top: 5.5rem;
    right: 0;
    width: min(calc(46vw * 1.44), calc(520px * 1.44));
    opacity: 0.66;
  }
  .has-section-bg--walkout .section-bg picture {
    top: 0.25rem;
    width: min(26vw, 340px);
    opacity: 0.55;
  }
  .home-watch .section-bg picture {
    top: var(--sp-8);
    width: min(18vw, 220px);
    max-height: 84%;
    opacity: 0.5;
  }
  .has-section-bg--victory .section-bg picture {
    width: min(28vw, 400px);
    opacity: 0.48;
  }
  .section-bg--corner picture {
    top: 0;
    width: min(26vw, 360px);
    opacity: 0.48;
  }
}

@media (min-width: 1024px) {
  .home-watch .section-bg picture {
    top: var(--sp-12);
  }
}

/* Sponsors enquiry stays in the left gutter on a wide screen. */
@media (min-width: 1100px) {
  .has-section-bg--gutter > .section-bg {
    right: auto;
    left: 0;
    width: calc((100% - min(720px, 100% - 5rem)) / 2);
  }
  .has-section-bg--gutter .section-bg picture {
    left: 0;
    right: auto;
    top: 0;
    width: min(100%, 420px);
    aspect-ratio: 900 / 860;
    max-height: 100%;
    opacity: 0.5;
    -webkit-mask-image: radial-gradient(ellipse 78% 68% at 28% 42%, #000 8%, transparent 70%);
    mask-image: radial-gradient(ellipse 78% 68% at 28% 42%, #000 8%, transparent 70%);
  }
}
@media (prefers-contrast: more), (forced-colors: active) {
  .section-bg { display: none; }
}
@media print {
  .section-bg { display: none; } /* sponsor-deck PDF stays clean */
}
