/* 3MR LANDING — Stylesheet v3 */

body { cursor: auto; }

.hero__title-text { font-family: var(--font-hero); }

html[dir="rtl"] body { font-family: var(--font-ar); }

.mono { font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.mono.small { font-size: 10px; }
.ar { font-family: var(--font-ar); }
.muted { color: var(--ink-1); opacity: .9; }
.red { color: var(--red-0); }
.tag {
  color: color-mix(in oklab, var(--red-0) 70%, var(--ink-0) 30%);
  letter-spacing: .26em;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 0 10px color-mix(in oklab, var(--red-0) 35%, transparent);
}
.tag.red { color: var(--red-0); }
.dot { opacity: .3; }

/* ========== REVEAL + 3D ========== */
html.js-ready .reveal:not(.in) {
  opacity: 0;
  transform: translateY(60px);
  filter: blur(6px);
}
html.js-ready .reveal--3d:not(.in) {
  transform: translateY(80px) perspective(1400px) rotateX(18deg) scale(.95);
  transform-origin: center top;
}
.reveal {
  transition:
    opacity 1s cubic-bezier(.2,.7,.2,1),
    transform 1.05s cubic-bezier(.2,.7,.2,1),
    filter .8s ease-out;
}
/* Only hint the compositor while the element is still animating in —
   after .in lands, drop the layer so we don't keep 50+ permanent GPU layers. */
html.js-ready .reveal:not(.in) { will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all .3s ease;
  padding: 18px 0;
}
.nav--scrolled {
  padding: 10px 0;
  background: color-mix(in oklab, var(--bg-0) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--ink-0) 8%, transparent);
}
.nav__inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__logo-wrap { position: relative; display: inline-flex; }
/* Nav logo is now a big, obvious tap-target that visually reads
   as a button — so users understand hover/click opens the tribute. */
.nav__logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; letter-spacing: .18em;
  color: inherit;
  cursor: pointer; font: inherit; position: relative;
  padding: 7px 16px 7px 7px;
  /* backdrop-filter dropped: behind this near-opaque dark gradient the blur
     was invisible; the slightly higher mix keeps the exact same depth. */
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--bg-1) 93%, transparent),
    color-mix(in oklab, var(--bg-2) 82%, transparent)
  );
  border: 1px solid color-mix(in oklab, var(--red-0) 32%, transparent);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.28), inset 0 0 16px rgba(0,0,0,.2);
  transition:
    transform .28s cubic-bezier(.2,.7,.2,1),
    border-color .28s,
    box-shadow .28s,
    background .28s;
  min-height: 54px;
}
.nav__logo:hover,
.nav__logo-wrap.is-open .nav__logo {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--red-0) 70%, transparent);
  box-shadow:
    0 10px 28px rgba(0,0,0,.42),
    0 0 24px var(--red-dim),
    inset 0 0 18px rgba(255, 220, 180, .05);
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--bg-1) 92%, transparent),
    color-mix(in oklab, var(--red-0) 10%, var(--bg-2))
  );
}
.nav__logo img {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
  object-position: 68% 22%; /* lean on Amr's face in the shared photo */
  border: 1.5px solid var(--red-0);
  box-shadow: 0 0 16px var(--red-dim);
  transition: all .3s;
  flex-shrink: 0;
}
.nav__logo:hover img,
.nav__logo-wrap.is-open .nav__logo img {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 0 28px color-mix(in oklab, var(--red-0) 55%, transparent);
}
.nav__logo span {
  font-family: var(--font-hero); /* Rubik Mono One — same chunky font as the hero 3MR */
  font-size: 15px;
  line-height: 1;
  letter-spacing: .06em;
  background: linear-gradient(180deg, #fff 0%, color-mix(in oklab, var(--red-0) 28%, #fff) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px color-mix(in oklab, var(--red-0) 30%, transparent);
}
/* Tiny chevron hint so people know it opens something */
.nav__logo::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 1.5px solid color-mix(in oklab, var(--red-0) 80%, var(--ink-0));
  border-bottom: 1.5px solid color-mix(in oklab, var(--red-0) 80%, var(--ink-0));
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: .7;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .25s;
  margin-inline-start: 2px;
}
.nav__logo:hover::after,
.nav__logo-wrap.is-open .nav__logo::after {
  opacity: 1;
  transform: rotate(225deg) translate(-2px, -2px);
}

/* Soft pulse ring on the avatar — hints the logo opens a tribute */
.nav__logo-pulse {
  position: absolute;
  top: 50%; left: 27px;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 12px;
  pointer-events: none;
}
/* Breathing ring on a pseudo, animating transform/opacity (compositor-only)
   instead of an animated box-shadow that repainted the fixed nav every frame.
   The parent keeps its direction-aware centering transform untouched. */
.nav__logo-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 5px rgba(255, 220, 180, .45);
  opacity: 0;
  animation: navLogoPulse 3.6s ease-in-out infinite;
}
@keyframes navLogoPulse {
  0%, 100% { transform: scale(.92); opacity: .85; }
  50%      { transform: scale(1.2); opacity: 0; }
}
html[dir="rtl"] .nav__logo-pulse { left: auto; right: 27px; transform: translate(50%, -50%); }

/* Mobile-friendly sizing */
@media (max-width: 600px) {
  .nav__logo {
    padding: 6px 12px 6px 6px;
    gap: 10px;
    min-height: 48px;
    border-radius: 12px;
  }
  .nav__logo img { width: 36px; height: 36px; }
  .nav__logo span { font-size: 13.5px; letter-spacing: .05em; }
  .nav__logo-pulse { width: 44px; height: 44px; left: 24px; }
  html[dir="rtl"] .nav__logo-pulse { right: 24px; left: auto; }
}

/* ========== IN LOVING MEMORY — HEBA DIAB (رحمها الله) ========== */
.mem-card {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  width: min(340px, calc(100vw - 24px));
  padding: 20px 20px 18px;
  /* Fill is 98.5% opaque - the backdrop blur behind it was invisible but
     still cost a full readback+blur region, re-run during the open/close
     opacity transition. Removed with no visual delta. */
  background: linear-gradient(180deg, rgba(18, 12, 18, .985), rgba(10, 7, 12, .985));
  border: 1px solid rgba(255, 220, 180, .22);
  box-shadow:
    0 30px 90px rgba(0,0,0,.75),
    0 0 60px rgba(255, 210, 160, .10),
    inset 0 1px 0 rgba(255, 230, 200, .08);
  clip-path: polygon(
    14px 0, 100% 0, 100% calc(100% - 14px),
    calc(100% - 14px) 100%, 0 100%, 0 14px
  );
  opacity: 0;
  transform: translateY(-10px) scale(.97);
  pointer-events: none;
  transition:
    opacity .42s cubic-bezier(.2,.7,.2,1),
    transform .45s cubic-bezier(.2,.7,.2,1);
  z-index: 120;
}
html[dir="rtl"] .mem-card { left: auto; right: 0; }
.mem-card.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
/* Warm top scan */
.mem-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 180, .7), transparent);
  animation: memTopScan 5s ease-in-out infinite;
}
@keyframes memTopScan {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}

/* Ambient aura behind the photo */
.mem-card__aura {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 220px; height: 220px;
  background: radial-gradient(
    circle at center,
    rgba(255, 220, 180, .15),
    rgba(255, 220, 180, .06) 40%,
    transparent 76%
  );
  pointer-events: none;
  opacity: .9;
}

/* Photo frame — L corners + soft veil */
.mem-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid rgba(255, 220, 180, .3);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 30px rgba(255,210,160,.12);
}
.mem-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(.95) contrast(1.04) brightness(.95);
  transition: transform 2s cubic-bezier(.2,.7,.2,1);
}
.mem-card.is-open .mem-card__photo img { transform: scale(1.03); }
.mem-card__photo-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(10,7,12,.55) 100%),
    radial-gradient(ellipse at top, rgba(255, 220, 180, .12), transparent 60%);
  pointer-events: none;
}
.mem-card__photo-corner {
  position: absolute; width: 14px; height: 14px;
  border: 1.5px solid rgba(255, 220, 180, .65);
}
.mem-card__photo-corner.tl { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.mem-card__photo-corner.tr { top: -3px; right: -3px; border-left: none; border-bottom: none; }
.mem-card__photo-corner.bl { bottom: -3px; left: -3px; border-right: none; border-top: none; }
.mem-card__photo-corner.br { bottom: -3px; right: -3px; border-left: none; border-top: none; }

/* Body */
.mem-card__body {
  display: flex; flex-direction: column;
  gap: 8px;
  text-align: center;
  padding-top: 16px;
}
.mem-card__kicker {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .32em;
  color: #ffe8cc;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 4px;
  text-shadow: 0 0 14px rgba(255, 220, 180, .4);
}
.mem-card__ember {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255, 220, 180, .95);
  box-shadow: 0 0 10px rgba(255, 220, 180, .8);
  animation: memEmber 2.4s ease-in-out infinite;
}
.mem-card__ember:last-child { animation-delay: 1.2s; }
@keyframes memEmber {
  0%, 100% { transform: scale(1);    opacity: .85; }
  50%      { transform: scale(1.4);  opacity: 1; }
}

.mem-card__name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .08em;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(255, 220, 180, .3);
}
.mem-card__name-ar {
  font-family: var(--font-display);
  font-size: 18px;
  color: #ffe8cc;
  letter-spacing: .06em;
  direction: rtl;
  margin-top: 4px;
  font-weight: 700;
}
.mem-card__rel {
  font-size: 11.5px;
  letter-spacing: .24em;
  color: rgba(255, 255, 255, .8);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 700;
}

.mem-card__divider {
  display: flex; justify-content: center;
  padding: 14px 0 10px;
}
.mem-card__divider span {
  display: block;
  width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 180, .95), transparent);
  box-shadow: 0 0 8px rgba(255, 220, 180, .5);
}

.mem-card__dua {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.8;
  color: #ffecd0;
  margin: 0;
  letter-spacing: .02em;
  font-weight: 700;
  text-shadow: 0 0 16px rgba(255, 220, 180, .25);
}
.mem-card__dua-en {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  font-style: italic;
  margin: 6px 0 0;
  letter-spacing: .01em;
  font-weight: 500;
}

.mem-card__footer {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding-top: 16px;
  font-size: 11px;
  letter-spacing: .26em;
  color: rgba(255, 255, 255, .78);
  text-transform: uppercase;
  font-weight: 700;
}
.mem-card__heart {
  display: inline-flex;
  color: #ff9eb5;
  animation: memHeart 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 158, 181, .6));
}
@keyframes memHeart {
  0%, 100% { transform: scale(1);    opacity: .85; }
  25%      { transform: scale(1.25); opacity: 1;   }
  50%      { transform: scale(1);    opacity: .85; }
}

/* Mobile: center the card, wider margin */
@media (max-width: 600px) {
  .mem-card {
    left: 0;
    right: 0;
    width: calc(100vw - 24px);
    margin: 0 auto;
    transform-origin: top center;
  }
  html[dir="rtl"] .mem-card { left: 0; right: 0; }
}
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--ink-1); transition: color .2s; position: relative; opacity: .88; font-weight: 600; }
.nav__links a:hover { color: var(--red-0); }
.nav__links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px; background: var(--red-0); transition: width .3s; }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 12px; }

/* ========== LANG TOGGLE (reworked — nicer) ========== */
.lang-toggle {
  position: relative;
  display: inline-flex;
  padding: 4px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--bg-1) 95%, transparent), color-mix(in oklab, var(--bg-2) 85%, transparent));
  border: 1px solid color-mix(in oklab, var(--red-0) 35%, transparent);
  border-radius: 999px;
  box-shadow: inset 0 0 12px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  overflow: hidden;
}
.lang-toggle::before {
  content: '';
  position: absolute;
  top: 4px; bottom: 4px;
  width: calc(50% - 4px);
  background: var(--red-0);
  border-radius: 999px;
  box-shadow: 0 0 18px color-mix(in oklab, var(--red-0) 70%, transparent), 0 2px 8px rgba(0,0,0,.4);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}
.lang-toggle[data-lang="en"]::before { transform: translateX(0); }
.lang-toggle[data-lang="ar"]::before { transform: translateX(100%); }
html[dir="rtl"] .lang-toggle[data-lang="en"]::before { transform: translateX(0); }
html[dir="rtl"] .lang-toggle[data-lang="ar"]::before { transform: translateX(-100%); }
.lang-btn {
  position: relative; z-index: 1;
  padding: 7px 16px;
  min-width: 44px;
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s;
}
.lang-btn:hover { color: var(--ink-0); }
.lang-btn.is-active { color: #fff; }

/* tweaks toggle btn */
.tweaks-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in oklab, var(--ink-0) 14%, transparent);
  background: color-mix(in oklab, var(--bg-1) 78%, transparent);
  color: var(--ink-1);
  border-radius: 50%;
  cursor: pointer;
  transition: all .3s;
}
.tweaks-toggle svg { width: 18px; height: 18px; transition: transform .5s; }
.tweaks-toggle:hover { border-color: var(--red-0); color: var(--red-0); box-shadow: 0 0 20px var(--red-dim); }
.tweaks-toggle:hover svg { transform: rotate(90deg); }

@media (max-width: 900px) { .nav__links { display: none; } }
@media (max-width: 520px) { .nav__live { display: none; } }

/* ========== LIVE PILL (nav) ========== */
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: color-mix(in oklab, var(--red-0) 15%, transparent);
  border: 1px solid var(--red-0);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  color: var(--red-0);
}
.live-pill[data-live="false"] { color: var(--ink-2); border-color: var(--ink-3); background: transparent; }
.live-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px var(--red-dim);
  border-color: var(--red-0);
  color: var(--red-0);
}
.live-pill[data-live="false"]:hover .live-dot { background: var(--red-0); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-0); animation: pulse-red 1.5s ease-in-out infinite; transition: background .2s; }
.live-pill[data-live="false"] .live-dot { background: var(--ink-3); animation: none; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-weight: 600; letter-spacing: .14em; font-size: 12px;
  text-transform: uppercase;
  border: 1px solid var(--ink-0);
  background: transparent;
  color: var(--ink-0);
  cursor: pointer;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
  position: relative; overflow: hidden;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--red-0); color: #fff; border-color: var(--red-0); box-shadow: var(--glow); }
.btn--primary:hover { background: var(--red-1); transform: translateY(-2px); box-shadow: 0 0 36px color-mix(in oklab, var(--red-0) 70%, transparent), 0 0 72px color-mix(in oklab, var(--red-0) 35%, transparent); }
.btn--ghost { background: transparent; border-color: var(--ink-3); color: var(--ink-1); }
.btn--ghost:hover { border-color: var(--red-0); color: var(--red-0); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 32px 32px;
  max-width: 1400px; margin: 0 auto;
  display: flex; flex-direction: column;
  /* .hero__glow sits at right: -150px. Unclipped it made the document 150px
     wider than the viewport, and the fixed nav - width:100% of that document,
     not of the screen - grew with it: on a 375px phone .nav__right ended at
     511px, so the store link and socials were simply off the screen and
     unreachable. body's overflow-x:hidden hid the scrollbar and disguised it.
     `clip` rather than `hidden`: it clips without creating a scroll container,
     so nothing inside can become independently scrollable. */
  overflow: clip;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in oklab, var(--ink-0) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--ink-0) 4%, transparent) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 70%);
  pointer-events: none;
}
/* The glow's softness is baked into the gradient stops instead of a runtime
   filter: blur(). Animating transform on a blurred 700px layer forced the
   browser to re-run a huge Gaussian pass continuously; a smooth radial fade
   at 15% alpha is visually the same glow and the float animation is now
   compositor-only. Same box, same position - geometry untouched. */
.hero__glow { position: absolute; width: 700px; height: 700px; top: 5%; right: -150px; background: radial-gradient(circle, var(--red-dim) 0%, color-mix(in oklab, var(--red-dim) 45%, transparent) 38%, transparent 72%); pointer-events: none; animation: floatGlow 12s ease-in-out infinite; }
.hero__glow--2 { left: -200px; right: auto; top: auto; bottom: 0; width: 500px; height: 500px; animation-delay: -4s; }
@keyframes floatGlow { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-30px)} }

.hero__inner {
  display: flex; flex-direction: column;
  gap: 24px;
  flex: 1;
  position: relative; z-index: 2;
}

/* Hero title — CENTERED regardless of content block layout */
.hero__titleblock {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  text-align: center;
  width: 100%;
  padding-top: 8px;
}
.hero__tag { font-size: 11px; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(84px, 14vw, 200px);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -0.02em;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.hero__title-text {
  position: relative;
  display: inline-block;
  color: var(--ink-0);
  background: linear-gradient(180deg, var(--ink-0) 0%, var(--ink-0) 45%, color-mix(in oklab, var(--red-0) 85%, var(--ink-0)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    titleFloat   6s ease-in-out infinite,
    titleShimmer 3s ease-in-out infinite,
    titleJitter  .22s steps(2) infinite;
  will-change: transform, filter;
}
/* Inner scan sweep — a bright highlight moves across the text continuously */
.hero__title-text::before {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 40%,
    rgba(255,255,255,.95) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  pointer-events: none;
  animation: titleScan 3.4s ease-in-out infinite;
  mix-blend-mode: screen;
  z-index: 3;
}
/* Red ghost layer — always glitching */
.hero__title .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: var(--red-0);
  opacity: .6;
  mix-blend-mode: screen;
  -webkit-text-fill-color: var(--red-0);
  animation: titleGlitchRed 2.4s steps(1) infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  z-index: 2;
}
/* Cyan ghost layer — constantly chromatic-aberration-ing */
.hero__title .glitch {
  position: relative;
}
.hero__title-text {
  /* NOT text-shadow. This glyph is filled by a clipped background
     (background-clip: text + text-fill-color: transparent), so the letterform
     itself is transparent - a text-shadow paints UNDER it and bleeds straight
     through, washing the white fill out to flat red. Measured side by side
     against production: the white top half disappeared entirely.
     drop-shadow() filters the rendered result instead, so the ghosts stay
     outside the glyph where they belong. The chain costs a filter surface;
     that is the price of this effect. */
  filter:
    drop-shadow(2px 0 0 rgba(255, 31, 61, .55))
    drop-shadow(-2px 0 0 rgba(0, 220, 255, .35))
    drop-shadow(0 0 40px color-mix(in oklab, var(--red-0) 25%, transparent));
}
.hero__title:hover .glitch { animation: glitch .3s ease infinite; }

@keyframes titleFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}
@keyframes titleShimmer {
  0%,100% { opacity: 1; }
  50%     { opacity: .96; }
}
/* Tiny always-on horizontal jitter — very subtle but makes the title feel "alive" */
@keyframes titleJitter {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(.5px, -.3px); }
  50%  { transform: translate(-.4px, .3px); }
  75%  { transform: translate(.3px, .4px); }
  100% { transform: translate(0, 0); }
}
/* Scan sweep */
@keyframes titleScan {
  0%   { background-position: 200% 0; }
  60%  { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}
/* Red ghost glitch — fires every 2.4s with bigger jumps */
@keyframes titleGlitchRed {
  0%, 88%, 100% { transform: translate(-3px, 2px); opacity: .55; clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); }
  89%           { transform: translate(5px, -3px); opacity: .95; clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%); }
  91%           { transform: translate(-6px, 4px); opacity: .8;  clip-path: polygon(0 70%, 100% 70%, 100% 85%, 0 85%); }
  93%           { transform: translate(3px, -1px); opacity: .9;  clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%); }
  95%           { transform: translate(-2px, 2px); opacity: .6;  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); }
}
.hero__subtitle {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.4vw, 18px);
  color: var(--ink-2);
  letter-spacing: .5em;
  margin-top: 14px;
  font-weight: 400;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 14px;
}
.hero__subtitle::before, .hero__subtitle::after {
  content: ''; display: inline-block; width: 30px; height: 1px; background: var(--red-0);
}
html[dir="rtl"] .hero__subtitle { letter-spacing: .1em; }

/* Hero content: desc + photo side-by-side */
.hero__content {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero { padding: 100px 20px 32px; }
}

.hero__left { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
@media (max-width: 900px) { .hero__left { align-items: center; } }

.hero__desc { font-size: 18px; line-height: 1.6; color: var(--ink-1); max-width: 540px; text-align: start; }
@media (max-width: 900px) { .hero__desc { text-align: center; } }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========== FACT REEL (rotating appears/disappears) ========== */
.fact-reel {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-top: 18px;
  padding: 14px 18px;
  background:
    radial-gradient(circle at 12% 50%, color-mix(in oklab, var(--red-0) 14%, transparent), transparent 55%),
    linear-gradient(135deg, color-mix(in oklab, var(--bg-1) 92%, transparent), color-mix(in oklab, var(--bg-2) 84%, transparent));
  border: 1px solid color-mix(in oklab, var(--red-0) 30%, transparent);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: inset 0 0 20px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.35), 0 0 22px var(--red-dim);
  transition: border-color .3s, box-shadow .3s, transform .3s;
  overflow: hidden;
}
.fact-reel:hover {
  border-color: var(--red-0);
  box-shadow: inset 0 0 20px rgba(0,0,0,.35), 0 14px 40px rgba(0,0,0,.4), 0 0 30px color-mix(in oklab, var(--red-0) 45%, transparent);
}

/* Animated background layers — same vibe as the #1 WORLD banner */
.fact-reel__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in oklab, var(--red-0) 9%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--red-0) 9%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, transparent, black 40%, black 60%, transparent);
  -webkit-mask-image: linear-gradient(120deg, transparent, black 40%, black 60%, transparent);
  opacity: .45;
  pointer-events: none;
  animation: frGridDrift 14s linear infinite;
}
@keyframes frGridDrift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 44px 0, 0 44px; }
}
.fact-reel__bg-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle 180px at var(--mx, 25%) var(--my, 50%), color-mix(in oklab, var(--red-0) 24%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.fact-reel:hover .fact-reel__bg-glow { opacity: 1; }
.fact-reel__bg-scan {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 0%, transparent 42%, color-mix(in oklab, var(--red-0) 20%, transparent) 50%, transparent 58%, transparent 100%);
  background-size: 250% 100%;
  animation: rpScan 4s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Corner frame accents — match the rank banner */
.fact-reel__corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--red-0);
  pointer-events: none;
  opacity: .7;
  transition: opacity .3s, box-shadow .3s;
}
.fact-reel__corner.tl { top: 6px; left: 6px;    border-right: none; border-bottom: none; }
.fact-reel__corner.tr { top: 6px; right: 6px;   border-left: none;  border-bottom: none; }
.fact-reel__corner.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.fact-reel__corner.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }
.fact-reel:hover .fact-reel__corner {
  opacity: 1;
  box-shadow: 0 0 8px var(--red-0);
}

/* Keep foreground content above bg layers */
.fact-reel__head,
.fact-reel__stage { position: relative; z-index: 2; }
.fact-reel__head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed color-mix(in oklab, var(--red-0) 22%, transparent);
}
.fact-reel__ping {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-0);
  box-shadow: 0 0 10px var(--red-0);
  animation: pulse-red 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
.fact-reel__headlabel {
  color: var(--red-0);
  letter-spacing: .32em;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 12px;
  flex: 1;
  text-shadow: 0 0 12px color-mix(in oklab, var(--red-0) 65%, transparent);
}
.fact-reel__dots { display: inline-flex; gap: 5px; }
.fact-reel__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in oklab, var(--ink-0) 18%, transparent);
  border: none; cursor: pointer; padding: 0;
  transition: all .3s;
}
.fact-reel__dot:hover { background: color-mix(in oklab, var(--red-0) 60%, transparent); transform: scale(1.3); }
.fact-reel__dot.is-active {
  width: 18px; border-radius: 3px;
  background: var(--red-0);
  box-shadow: 0 0 8px var(--red-0);
}
.fact-reel__stage {
  position: relative;
  min-height: 52px;
  overflow: hidden;
}
.fact-reel__item {
  display: flex; align-items: center; gap: 14px;
  animation: factIn .7s cubic-bezier(.2,.8,.2,1) both;
}
.fact-reel__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: var(--red-0);
  background: color-mix(in oklab, var(--red-0) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--red-0) 40%, transparent);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--red-dim);
  animation: factIconPulse 2.8s ease-in-out infinite;
}
.fact-reel__ic svg { width: 22px; height: 22px; }
.fact-reel__body { display: flex; flex-direction: column; gap: 4px; line-height: 1; min-width: 0; }
.fact-reel__label {
  color: color-mix(in oklab, var(--ink-0) 70%, transparent);
  letter-spacing: .28em;
  font-weight: 700;
  font-size: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.fact-reel__value {
  font-family: var(--font-num);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-0);
  background: linear-gradient(90deg, var(--ink-0) 0%, color-mix(in oklab, var(--red-0) 95%, var(--ink-0)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(255, 31, 61, .2);
}
@keyframes factIn {
  0%   { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(8px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: none; }
}
@keyframes factIconPulse {
  0%,100% { box-shadow: 0 0 14px var(--red-dim); }
  50%     { box-shadow: 0 0 24px color-mix(in oklab, var(--red-0) 60%, transparent); }
}
html[dir="rtl"] .fact-reel { margin-right: 0; }

/* hero photo */
.hero__right { display: flex; justify-content: center; align-items: center; }
.hero-photo { position: relative; width: min(420px, 100%); animation: float 6s ease-in-out infinite; }
/* Pre-blurred gradient (no filter): this layer rides inside the float-animated
   photo, so a runtime blur() was re-rasterized on every frame of the float. */
.hero-photo__glow { position: absolute; inset: -30px; background: radial-gradient(circle, var(--red-dim) 0%, color-mix(in oklab, var(--red-dim) 45%, transparent) 42%, transparent 78%); pointer-events: none; }
.hero-photo__frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--red-0);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 50px var(--red-dim);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.hero-photo__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: contrast(1.05) saturate(1.08); transition: transform 12s ease-out; }
.hero-photo:hover .hero-photo__frame img { transform: scale(1.05); }
.hero-photo__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 3px, rgba(255,255,255,.02) 3px, rgba(255,255,255,.02) 4px);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-photo__corner { position: absolute; width: 28px; height: 28px; border: 2px solid var(--red-0); z-index: 3; }
.hero-photo__corner.tl { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.hero-photo__corner.tr { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.hero-photo__corner.bl { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.hero-photo__corner.br { bottom: -4px; right: -4px; border-left: none; border-top: none; }

/* hero-live-badge — acts as a link to Kick even when offline */
.hero-live-badge {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  /* No backdrop-filter: this badge rides the float-animated hero photo, so
     the blur region was re-filtered on every frame of the float. */
  background: rgba(0,0,0,.85);
  border: 1px solid var(--red-0);
  color: var(--red-0);
  z-index: 4;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
  box-shadow: var(--glow);
  transition: all .3s;
}
.hero-live-badge.is-live { animation: livePulse 2s ease-in-out infinite; }
.hero-live-badge.is-off {
  border-color: color-mix(in oklab, var(--ink-0) 22%, transparent);
  color: var(--ink-1);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.hero-live-badge.is-off .live-dot { background: var(--ink-3); animation: none; }
/* When Amr is live on TikTok instead of Kick, tint the badge pink to match. */
.hero-live-badge.is-tiktok { border-color: #ff3e6a; color: #ff3e6a; }
.hero-live-badge.is-tiktok .live-dot { background: #ff3e6a; }
.hero-live-badge.is-tiktok:hover { background: #ff3e6a; border-color: #ff3e6a; box-shadow: 0 0 24px rgba(255, 62, 106, .7); }
.hero-live-badge:hover {
  background: var(--red-0);
  color: #fff;
  border-color: var(--red-0);
  transform: scale(1.05);
  box-shadow: 0 0 24px var(--red-0);
}
.hero-live-badge.is-off:hover .live-dot { background: #fff; }
@keyframes livePulse { 0%,100%{box-shadow: 0 0 24px var(--red-dim), 0 0 48px color-mix(in oklab, var(--red-0) 25%, transparent)} 50%{box-shadow: 0 0 36px color-mix(in oklab, var(--red-0) 55%, transparent), 0 0 72px color-mix(in oklab, var(--red-0) 30%, transparent)} }

/* hero ticker */
.hero__ticker {
  margin-top: 28px;
  padding: 12px 0;
  border-top: 1px solid color-mix(in oklab, var(--ink-0) 8%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--ink-0) 8%, transparent);
  overflow: hidden; white-space: nowrap;
  position: relative; z-index: 2;
}
.ticker-track { display: flex; animation: ticker 40s linear infinite; gap: 60px; }
.ticker-group { display: flex; align-items: center; gap: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-1); letter-spacing: .18em; opacity: .88; }
.ticker-sep { color: var(--red-0); }
@keyframes ticker { to { transform: translateX(-25%); } }

/* ========== SECTION HEADER (redesigned — badge + num/label + accent line) ========== */
.sec-head {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 28px;
  position: relative;
}
.sec-head__inner {
  display: inline-flex; align-items: stretch; gap: 14px;
  padding: 4px;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid color-mix(in oklab, var(--red-0) 55%, transparent);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 0 22px var(--red-dim), inset 0 0 10px rgba(0,0,0,.3);
  transition: all .3s;
}
.sec-head:hover .sec-head__inner {
  border-color: var(--red-0);
  box-shadow: 0 0 32px color-mix(in oklab, var(--red-0) 40%, transparent), inset 0 0 10px rgba(0,0,0,.3);
}
.sec-head__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px;
  background: var(--red-0);
  color: #fff;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  box-shadow: 0 0 18px var(--red-dim);
}
.sec-head__ic { display: inline-flex; }
.sec-head__ic svg { width: 20px; height: 20px; }
.sec-head__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6px 14px 6px 4px;
  min-width: 0;
  gap: 2px;
}
.sec-head__num {
  font-weight: 800; font-size: 9px; letter-spacing: .24em;
  color: var(--red-0);
  opacity: .85;
  line-height: 1;
}
.sec-head__label {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-0);
  line-height: 1.15;
  white-space: nowrap;
}
.sec-head__kicker {
  color: var(--ink-3);
  letter-spacing: .14em;
}
.sec-head__line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--red-0), transparent);
  position: relative;
}
.sec-head__line::after {
  content: ''; position: absolute; right: auto; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-0);
  transform: translate(0, -50%);
  box-shadow: 0 0 12px var(--red-0);
}
html[dir="rtl"] .sec-head__line { background: linear-gradient(270deg, var(--red-0), transparent); }
html[dir="rtl"] .sec-head__line::after { left: auto; right: 0; }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: .01em;
  margin-bottom: 18px;
}
.section-lead { font-size: 17px; color: var(--ink-1); margin-bottom: 28px; max-width: 720px; opacity: .92; line-height: 1.55; }

/* ========== CHAR / WORD REVEAL (About me — chars appear one by one) ========== */
/* Hide states are gated on html.js-ready so — without the reveal JS —
   these render visible by default instead of staying permanently invisible. */
.h2--chars { display: inline-block; }
.h2-char { display: inline-block; }
html.js-ready .h2--chars:not(.in) .h2-char {
  opacity: 0;
  transform: translateY(24px) rotateX(-60deg) scale(.9);
  filter: blur(6px);
  transition: opacity .55s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1), filter .45s ease;
}
.h2--chars.in .h2-char { opacity: 1; transform: none; filter: none; }
.h2-char--space { width: .35em; }

/* word-by-word stagger (bio lead) */
.word-reveal .wr { display: inline-block; }
html.js-ready .word-reveal:not(.in) .wr {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(5px);
  transition: all .55s cubic-bezier(.2,.8,.2,1);
}
.word-reveal.in .wr { opacity: 1; transform: none; filter: none; }
.word-reveal .wr--space { width: .28em; }

/* ========== MORE REVEAL VARIANTS ========== */
html.js-ready .reveal--left:not(.in)  { opacity: 0; transform: translateX(-70px) skewY(3deg); filter: blur(6px); }
html.js-ready .reveal--right:not(.in) { opacity: 0; transform: translateX(70px) skewY(-3deg); filter: blur(6px); }
html.js-ready .reveal--zoom:not(.in)  { opacity: 0; transform: scale(.72) perspective(1200px) rotateX(18deg); filter: blur(8px); }
html.js-ready .reveal--flip:not(.in)  { opacity: 0; transform: perspective(1000px) rotateY(-75deg) translateX(-40px); filter: blur(8px); transform-origin: left center; }
html[dir="rtl"].js-ready .reveal--flip:not(.in) { transform: perspective(1000px) rotateY(75deg) translateX(40px); transform-origin: right center; }
html.js-ready .reveal--fade:not(.in)  { opacity: 0; filter: blur(10px); }

/* ========== STATS ========== */
.stats { max-width: 1400px; margin: 0 auto; padding: 48px 32px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) { .stats__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  position: relative;
  display: block;
  padding: 24px;
  background: linear-gradient(160deg, var(--bg-1), var(--bg-2));
  border: 1px solid color-mix(in oklab, var(--ink-0) 8%, transparent);
  overflow: hidden;
  transition: all .4s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  cursor: pointer;
}
.stat__glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in oklab, var(--platcol) 28%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.stat:hover {
  border-color: var(--platcol);
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,.4), 0 0 30px color-mix(in oklab, var(--platcol) 35%, transparent);
}
.stat:hover .stat__glow { opacity: 1; }
.stat:hover .stat__value { color: var(--platcol); text-shadow: 0 0 20px color-mix(in oklab, var(--platcol) 60%, transparent); }
.stat:hover .stat__icon { color: var(--platcol); transform: scale(1.08) rotate(-5deg); }
.stat__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  position: relative; z-index: 2;
}
.stat__icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-1);
  transition: all .3s;
  background: color-mix(in oklab, var(--platcol) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--platcol) 40%, transparent);
}
.stat__icon svg { width: 22px; height: 22px; }
.stat__platform {
  color: color-mix(in oklab, var(--platcol) 85%, var(--ink-0) 15%);
  font-size: 11px;
  letter-spacing: .24em;
  font-weight: 800;
  font-family: var(--font-display);
  text-shadow: 0 0 10px color-mix(in oklab, var(--platcol) 45%, transparent);
  opacity: .95;
}
.stat__value {
  font-family: var(--font-num);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  transition: all .3s;
  position: relative; z-index: 2;
  color: var(--ink-0);
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.stat__label {
  color: var(--ink-1);
  margin-top: 10px;
  font-size: 11px;
  position: relative; z-index: 2;
  letter-spacing: .22em;
  font-family: var(--font-display);
  font-weight: 600;
  opacity: .85;
}

/* ========== BIO ========== */
.bio { max-width: 1400px; margin: 0 auto; padding: 48px 32px; }
.bio__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .bio__inner { grid-template-columns: 1fr; gap: 28px; } }
.bio__lead { font-size: 18px; line-height: 1.6; color: var(--ink-1); margin-bottom: 24px; }
.bio__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border: 1px solid color-mix(in oklab, var(--ink-0) 22%, transparent); color: var(--ink-1); background: color-mix(in oklab, var(--ink-0) 5%, transparent); transition: all .2s; font-weight: 600; opacity: .9; }
.chip:hover { border-color: var(--red-0); color: var(--red-0); }
.bio__card {
  background: var(--bg-1);
  border: 1px solid color-mix(in oklab, var(--ink-0) 10%, transparent);
  overflow: hidden;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  transition: all .4s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
}
.bio__card:hover {
  border-color: var(--red-0);
  box-shadow: 0 24px 70px rgba(0,0,0,.5), 0 0 44px var(--red-dim);
  transform: translateY(-4px);
}
.bio__card-img {
  aspect-ratio: 4/4.6;
  background-size: cover;
  background-position: center 30%;
  position: relative;
  border-bottom: 1px solid var(--red-0);
}
.bio__card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.75) 100%);
  pointer-events: none;
}
.bio__card-overlay {
  position: absolute; inset: 0;
  display: flex; justify-content: flex-end; align-items: flex-start;
  padding: 14px;
  pointer-events: none;
  z-index: 2;
}
.bio__card-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: rgba(0,0,0,.85);
  border: 1px solid var(--red-0);
  color: var(--red-0);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  box-shadow: 0 4px 16px rgba(0,0,0,.5), 0 0 18px var(--red-dim);
  pointer-events: auto;
}
.bio__card-meta { padding: 22px 24px 26px; position: relative; }
.bio__card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px dashed color-mix(in oklab, var(--red-0) 25%, transparent);
}
.bio__card-head > span:first-child { color: var(--red-0); letter-spacing: .24em; font-weight: 800; font-size: 13px; }
.bio__card-serial {
  color: var(--ink-1);
  letter-spacing: .2em;
  font-weight: 700;
  font-size: 10px;
  opacity: .75;
  font-family: var(--font-mono);
}
.bio__id {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
@media (max-width: 520px) { .bio__id { grid-template-columns: 1fr; } }
.bio__id-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px;
  background: color-mix(in oklab, var(--bg-0) 50%, transparent);
  border: 1px solid color-mix(in oklab, var(--ink-0) 6%, transparent);
  border-radius: 4px;
  transition: all .25s;
}
.bio__id-row:hover {
  border-color: color-mix(in oklab, var(--red-0) 50%, transparent);
  background: color-mix(in oklab, var(--red-0) 5%, transparent);
  transform: translateX(2px);
}
html[dir="rtl"] .bio__id-row:hover { transform: translateX(-2px); }
.bio__id-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  color: var(--red-0);
  background: color-mix(in oklab, var(--red-0) 10%, transparent);
  border-radius: 4px;
  flex-shrink: 0;
}
.bio__id-ic svg { width: 17px; height: 17px; }
.bio__id-text {
  display: flex; flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.bio__id-label {
  color: color-mix(in oklab, var(--red-0) 70%, var(--ink-1) 30%);
  font-size: 11px;
  letter-spacing: .22em;
  font-weight: 800;
  font-family: var(--font-display);
  text-transform: uppercase;
  opacity: .95;
}
.bio__id-val {
  font-family: var(--font-num);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-0);
  letter-spacing: .04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== RANK PROOF — FULL BANNER ========== */
.rank-proof {
  max-width: 1400px;
  margin: 40px auto 0;
  padding: 0 32px;
}
.rank-proof__card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 26px 34px;
  background:
    radial-gradient(circle at 15% 50%, color-mix(in oklab, var(--red-0) 20%, transparent), transparent 55%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1.5px solid color-mix(in oklab, var(--red-0) 55%, transparent);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  box-shadow:
    0 20px 60px rgba(0,0,0,.5),
    0 0 40px var(--red-dim),
    inset 0 0 30px rgba(0,0,0,.35);
  transition: all .4s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
  overflow: hidden;
  min-height: 140px;
  text-decoration: none;
  cursor: pointer;
}
.rank-proof__card:hover {
  border-color: var(--red-0);
  box-shadow:
    0 30px 80px rgba(0,0,0,.6),
    0 0 60px color-mix(in oklab, var(--red-0) 55%, transparent),
    inset 0 0 30px rgba(0,0,0,.35);
  transform: translateY(-4px);
}

/* Animated background layers */
.rank-proof__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in oklab, var(--red-0) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--red-0) 8%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(120deg, transparent, black 40%, black 60%, transparent);
  -webkit-mask-image: linear-gradient(120deg, transparent, black 40%, black 60%, transparent);
  opacity: .4;
  pointer-events: none;
}
.rank-proof__bg-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle 220px at var(--mx, 30%) var(--my, 50%), color-mix(in oklab, var(--red-0) 25%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.rank-proof__card:hover .rank-proof__bg-glow { opacity: 1; }
.rank-proof__bg-scan {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 0%, transparent 42%, color-mix(in oklab, var(--red-0) 18%, transparent) 50%, transparent 58%, transparent 100%);
  background-size: 250% 100%;
  animation: rpScan 4s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes rpScan {
  0%   { background-position: 200% 0; }
  70%  { background-position: -80% 0; }
  100% { background-position: -80% 0; }
}

/* Left: trophy badge */
.rank-proof__badge {
  position: relative;
  width: 100px; height: 100px;
  flex-shrink: 0;
  z-index: 2;
}
.rank-proof__badge-ring {
  position: absolute; inset: 0;
  border: 2px solid var(--red-0);
  border-radius: 50%;
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: rpRingSpin 4s linear infinite;
  box-shadow: 0 0 20px var(--red-dim), inset 0 0 12px var(--red-dim);
}
@keyframes rpRingSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.rank-proof__badge-inner {
  position: absolute; inset: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  background: radial-gradient(circle, color-mix(in oklab, var(--red-0) 28%, var(--bg-1)), var(--bg-1));
  border-radius: 50%;
  box-shadow: inset 0 0 16px color-mix(in oklab, var(--red-0) 30%, transparent);
}
.rank-proof__trophy {
  color: var(--red-0);
  filter: drop-shadow(0 0 10px var(--red-0));
  line-height: 0;
}
.rank-proof__trophy svg { width: 28px; height: 28px; }
.rank-proof__badge-num {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-0);
  letter-spacing: .02em;
  line-height: 1;
  margin-top: 2px;
}
.rank-proof__body {
  display: flex; flex-direction: column; gap: 8px;
  line-height: 1.1;
  z-index: 2;
  min-width: 0;
}
.rank-proof__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red-0);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .32em;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0 12px color-mix(in oklab, var(--red-0) 55%, transparent);
}
.rank-proof__kicker-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-0);
  box-shadow: 0 0 10px var(--red-0);
  animation: pulse-red 1.4s ease-in-out infinite;
}
.rank-proof__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  color: var(--ink-0);
  letter-spacing: .04em;
  line-height: 1;
  margin: 0;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.rank-proof__title-1 {
  background: linear-gradient(180deg, var(--ink-0), color-mix(in oklab, var(--ink-0) 85%, var(--red-0)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rank-proof__title-2 {
  color: var(--red-0);
  text-shadow: 0 0 24px color-mix(in oklab, var(--red-0) 65%, transparent);
  font-weight: 900;
  letter-spacing: .08em;
}
.rank-proof__sub {
  color: var(--ink-1);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .85;
}

/* Right CTA pill */
.rank-proof__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--red-0), var(--red-2));
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 10px 28px color-mix(in oklab, var(--red-0) 55%, transparent);
  transition: all .3s;
  z-index: 2;
  flex-shrink: 0;
}
.rank-proof__card:hover .rank-proof__cta {
  transform: translateX(3px);
  box-shadow: 0 14px 40px color-mix(in oklab, var(--red-0) 70%, transparent);
}
.rank-proof__cta-arrow { display: inline-flex; }
.rank-proof__cta-arrow svg { width: 16px; height: 16px; }
html[dir="rtl"] .rank-proof__cta-arrow svg { transform: rotate(180deg); }
html[dir="rtl"] .rank-proof__card:hover .rank-proof__cta { transform: translateX(-3px); }

/* Corner frame accents */
.rank-proof__corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--red-0);
  opacity: .7;
  transition: all .3s;
  z-index: 2;
}
.rank-proof__corner.tl { top: 8px; left: 8px;    border-right: none; border-bottom: none; }
.rank-proof__corner.tr { top: 8px; right: 8px;   border-left: none;  border-bottom: none; }
.rank-proof__corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.rank-proof__corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.rank-proof__card:hover .rank-proof__corner {
  opacity: 1;
  box-shadow: 0 0 12px var(--red-0);
  width: 22px; height: 22px;
}

/* Responsive */
@media (max-width: 900px) {
  .rank-proof__card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 18px 20px;
    padding: 22px 24px;
  }
  .rank-proof__cta {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .rank-proof__title { font-size: clamp(22px, 5vw, 30px); }
  .rank-proof__badge { width: 80px; height: 80px; }
  .rank-proof__trophy svg { width: 22px; height: 22px; }
  .rank-proof__badge-num { font-size: 16px; }
}
@media (max-width: 520px) {
  .rank-proof { padding: 0 16px; }
  .rank-proof__card { padding: 20px 16px; gap: 14px 16px; min-height: 0; }
  .rank-proof__badge { width: 68px; height: 68px; }
  .rank-proof__trophy svg { width: 20px; height: 20px; }
  .rank-proof__badge-num { font-size: 14px; }
  .rank-proof__title { font-size: 20px; }
  .rank-proof__kicker { font-size: 9px; letter-spacing: .22em; }
  .rank-proof__sub { font-size: 10px; }
  .rank-proof__cta { padding: 12px 18px; font-size: 11px; }
  .rank-proof__corner { width: 14px; height: 14px; }
}

/* ========== PLATFORMS ========== */
.platforms { max-width: 1400px; margin: 0 auto; padding: 48px 32px; }
.plat-title-wrap { margin-bottom: 28px; }
.plat-title { margin-bottom: 8px; }
.plat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) { .plat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .plat-grid { grid-template-columns: 1fr; } }
[data-layout="dense"] .plat-grid { gap: 8px; }

/* ========== LAYOUT PICKER (stacked vs dense) ==========
   "dense"   — tight, compact, info-dense (the default).
   "stacked" — spacious breathing room, more padding, wider gaps,
               and hero content stacks vertically instead of side-by-side. */
[data-layout="stacked"] .stats,
[data-layout="stacked"] .bio,
[data-layout="stacked"] .platforms,
[data-layout="stacked"] .contact,
[data-layout="stacked"] .rank-proof { padding-top: 72px; padding-bottom: 72px; }
[data-layout="stacked"] .plat-grid { gap: 22px; }
[data-layout="stacked"] .stats__grid { gap: 20px; }
[data-layout="stacked"] .hero__content { grid-template-columns: 1fr; gap: 32px; text-align: center; }
[data-layout="stacked"] .hero__left { align-items: center; }
[data-layout="stacked"] .bio__grid { gap: 28px; }
[data-layout="stacked"] .fact-reel { padding: 24px 28px; }

[data-layout="dense"] .stats,
[data-layout="dense"] .bio,
[data-layout="dense"] .platforms,
[data-layout="dense"] .contact { padding-top: 36px; padding-bottom: 36px; }
[data-layout="dense"] .stats__grid { gap: 10px; }
[data-layout="dense"] .bio__grid { gap: 14px; }
[data-layout="dense"] .fact-reel { padding: 14px 18px; }

.plat-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-1), var(--bg-2));
  border: 1px solid color-mix(in oklab, var(--ink-0) 8%, transparent);
  transition: all .4s cubic-bezier(.2,.7,.2,1);
  cursor: pointer;
  transform-style: preserve-3d;
}
.plat-card__bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, color-mix(in oklab, var(--platcol) 30%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity .4s;
}
.plat-card:hover {
  border-color: var(--platcol);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 32px color-mix(in oklab, var(--platcol) 35%, transparent);
}
.plat-card:hover .plat-card__bg { opacity: 1; }
.plat-card:hover .plat-card__icon { color: var(--platcol); transform: scale(1.1) rotate(-6deg); }
.plat-card:hover .plat-card__arrow { transform: translateX(4px); color: var(--platcol); }
html[dir="rtl"] .plat-card:hover .plat-card__arrow { transform: rotate(180deg) translateX(4px); }
.plat-card__inner { position: relative; display: flex; align-items: center; gap: 16px; z-index: 2; }
.plat-card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--ink-0) 6%, transparent);
  border: 1px solid color-mix(in oklab, var(--ink-0) 10%, transparent);
  color: var(--ink-0);
  flex-shrink: 0;
  transition: all .35s;
}
.plat-card__icon svg { width: 26px; height: 26px; }
/* Cards that ship real artwork instead of a drawn glyph (Vision RP). Fills the
   tile rather than sitting inside it like a 26px icon, so the logo reads at
   card size; the tile's own border still frames it. */
.plat-card__logo { width: 100%; height: 100%; object-fit: cover; display: block; }
.plat-card__meta { flex: 1; min-width: 0; }
.plat-card__name { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: .06em; line-height: 1; margin: 6px 0; }
.plat-card__handle { color: var(--ink-1); font-size: 11px; opacity: .75; font-family: var(--font-mono); letter-spacing: .08em; }
.plat-card__arrow { color: var(--ink-1); opacity: .6; transition: all .3s; }
.plat-card__arrow svg { width: 18px; height: 18px; }
html[dir="rtl"] .plat-card__arrow svg { transform: rotate(180deg); }
.plat-card__corner { position: absolute; width: 10px; height: 10px; border: 1px solid var(--platcol); opacity: 0; transition: opacity .3s; }
.plat-card__corner.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.plat-card__corner.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }
.plat-card:hover .plat-card__corner { opacity: 1; }

.plat-card--live { border-color: var(--platcol); box-shadow: 0 0 30px color-mix(in oklab, var(--platcol) 30%, transparent); }
.plat-card__live {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--platcol);
  color: #000;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  z-index: 3;
  animation: livePulse 2s ease-in-out infinite;
}
.plat-card__live .live-dot { background: #000; }
html[dir="rtl"] .plat-card__live { right: auto; left: 10px; }

/* ========== PLATFORM MARQUEE (branded as "MY SOCIALS") ========== */
.plat-marquee-wrap {
  max-width: 1400px; margin: 32px auto;
  padding: 0 32px;
}
.plat-marquee-label {
  display: flex; align-items: center; gap: 16px;
  color: var(--red-0);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 800; letter-spacing: .28em;
  margin-bottom: 14px;
  padding: 0 4px;
}
.plat-marquee-label__line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--red-0), transparent); }
.plat-marquee-label__line:last-child { background: linear-gradient(270deg, var(--red-0), transparent); }

.plat-marquee {
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid color-mix(in oklab, var(--red-0) 25%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--red-0) 25%, transparent);
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--red-0) 6%, transparent), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.plat-marquee__track {
  display: flex;
  gap: 40px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  align-items: center;
}
.marq-item {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
  flex-shrink: 0;
  transition: color .2s;
}
.marq-item:hover { color: var(--red-0); }
.marq-item__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--ink-1);
  transition: all .3s;
}
.marq-item__ic svg { width: 28px; height: 28px; }
.marq-item:hover .marq-item__ic { color: var(--red-0); transform: scale(1.15); }
.marq-sep { color: var(--red-0); opacity: .5; font-size: 16px; margin: 0 12px; }

/* ========== CONTACT ========== */
.contact { max-width: 1400px; margin: 0 auto; padding: 48px 32px; }
.contact__inner {
  --mx: 50%;
  --my: 50%;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: center;
  padding: 40px;
  background: linear-gradient(160deg, var(--bg-1), var(--bg-2));
  border: 1px solid color-mix(in oklab, var(--ink-0) 10%, transparent);
  clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .4s, box-shadow .4s;
}
.contact__inner:hover {
  border-color: color-mix(in oklab, var(--red-0) 55%, transparent);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 50px var(--red-dim);
}
.contact__inner::before {
  content: ''; position: absolute;
  width: 500px; height: 500px; right: -150px; top: -150px;
  background: radial-gradient(circle, var(--red-dim) 0%, color-mix(in oklab, var(--red-dim) 45%, transparent) 40%, transparent 80%);
  pointer-events: none;
}
/* cursor-follow spotlight */
.contact__inner::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle 280px at var(--mx) var(--my), color-mix(in oklab, var(--red-0) 22%, transparent), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
  z-index: 1;
}
.contact__inner:hover::after { opacity: 1; }
.contact__left, .contact__right { position: relative; z-index: 2; }
.contact__photo {
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
.contact__inner:hover .contact__photo {
  transform: scale(1.02);
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 60px color-mix(in oklab, var(--red-0) 45%, transparent);
}
@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; padding: 28px; } }

.contact__left { position: relative; z-index: 2; }
.contact__photo {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center 30%;
  border: 1px solid var(--red-0);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 40px var(--red-dim);
  filter: contrast(1.05) saturate(1.08);
  position: relative;
}
.contact__photo-corner { position: absolute; width: 24px; height: 24px; border: 2px solid var(--red-0); z-index: 3; }
.contact__photo-corner.tl { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.contact__photo-corner.tr { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.contact__photo-corner.bl { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.contact__photo-corner.br { bottom: -4px; right: -4px; border-left: none; border-top: none; }

.contact__right { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* email card — reworked */
.email-card {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-0);
  border: 1px solid color-mix(in oklab, var(--ink-0) 14%, transparent);
  position: relative;
  transition: all .3s;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  display: flex; flex-direction: column; gap: 10px;
}
.email-card:hover { border-color: var(--red-0); box-shadow: 0 0 30px var(--red-dim); }
.email-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.email-card__label {
  color: var(--ink-3);
  letter-spacing: .18em;
  font-weight: 700;
  font-size: 10px;
}
.email-card__addr {
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--ink-0);
  transition: color .2s;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.email-card__addr:hover { color: var(--red-0); }

/* copy button — inline pill, not a big block */
.email-card__copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: transparent;
  color: var(--ink-1);
  border: 1px solid color-mix(in oklab, var(--ink-0) 20%, transparent);
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  flex-shrink: 0;
}
.email-card__copy:hover {
  border-color: var(--red-0);
  color: var(--red-0);
  background: color-mix(in oklab, var(--red-0) 10%, transparent);
  box-shadow: 0 0 16px var(--red-dim);
}
.email-card__copy.is-copied {
  border-color: #00ff88;
  color: #00ff88;
  background: color-mix(in oklab, #00ff88 15%, transparent);
  box-shadow: 0 0 16px color-mix(in oklab, #00ff88 45%, transparent);
}
.email-card__copy-ic { display: inline-flex; }
.email-card__copy-ic svg { width: 12px; height: 12px; }
.email-card__copy-txt { letter-spacing: .16em; }

/* ========== FOOTER — single slim row, MaviS prominent ========== */
.footer {
  position: relative;
  max-width: 1400px;
  margin: 40px auto 0;
  padding: 22px 32px 22px;
  border-top: 1px solid color-mix(in oklab, var(--red-0) 22%, transparent);
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--red-0) 3%, transparent));
  overflow: hidden;
}
.footer::after {
  content: '';
  position: absolute;
  bottom: -80%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 160px;
  background: radial-gradient(ellipse at center, color-mix(in oklab, var(--red-0) 10%, transparent) 0%, color-mix(in oklab, var(--red-0) 5%, transparent) 40%, transparent 76%);
  pointer-events: none;
}
.footer__top-accent {
  position: absolute;
  top: -1.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-0), transparent);
  box-shadow: 0 0 18px var(--red-0);
  pointer-events: none;
}

/* Three-column grid: empty spacer | centered credit group | TOP
   — this keeps © + MaviS visually dead-center while TOP stays in the
   corner. The empty column on the opposite side balances the weight. */
.footer__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.footer__left {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__back {
  grid-column: 3;
  justify-self: end;
}
html[dir="rtl"] .footer__back { justify-self: start; }
.footer__sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: color-mix(in oklab, var(--ink-0) 22%, transparent);
}
.footer__copy {
  color: var(--ink-1);
  opacity: .75;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* MaviS dev-credit — slimmer inline pill that sits elegantly next to the © */
.dev-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: color-mix(in oklab, var(--red-0) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--red-0) 55%, transparent);
  border-radius: 999px;
  box-shadow: 0 0 14px var(--red-dim);
  transition: transform .28s cubic-bezier(.2,.7,.2,1),
              border-color .25s, box-shadow .25s, background .25s;
  cursor: pointer;
  white-space: nowrap;
}
.dev-credit:hover {
  transform: translateY(-2px);
  border-color: var(--red-0);
  background: color-mix(in oklab, var(--red-0) 14%, transparent);
  box-shadow: 0 6px 18px color-mix(in oklab, var(--red-0) 38%, transparent);
}
.dev-credit__label {
  color: var(--ink-1);
  letter-spacing: .22em;
  font-size: 9.5px;
  font-family: var(--font-display);
  font-weight: 600;
  opacity: .85;
  text-transform: uppercase;
}
.dev-credit__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: var(--red-0);
  letter-spacing: .12em;
  text-shadow: 0 0 10px var(--red-dim);
}
.dev-credit__arrow { display: inline-flex; color: var(--red-0); transition: transform .25s; }
.dev-credit__arrow svg { width: 12px; height: 12px; }
.dev-credit:hover .dev-credit__arrow { transform: translateX(3px); }
html[dir="rtl"] .dev-credit__arrow svg { transform: rotate(180deg); }
html[dir="rtl"] .dev-credit:hover .dev-credit__arrow { transform: translateX(-3px); }

.footer__back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid color-mix(in oklab, var(--ink-0) 18%, transparent);
  border-radius: 999px;
  color: var(--ink-1);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: transform .28s cubic-bezier(.2,.7,.2,1),
              border-color .25s, color .25s, box-shadow .25s;
  cursor: pointer;
  white-space: nowrap;
}
.footer__back:hover {
  border-color: var(--red-0);
  color: var(--red-0);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--red-dim);
}
.footer__back-ic {
  display: inline-flex;
  transform: rotate(-90deg);
  transition: transform .3s;
}
.footer__back-ic svg { width: 12px; height: 12px; }
.footer__back:hover .footer__back-ic { transform: rotate(-90deg) translateX(3px); }

@media (max-width: 720px) {
  .footer { padding: 22px 18px; }
  .footer__bar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }
  .footer__left { grid-column: 1; justify-content: center; gap: 12px; }
  .footer__back { grid-column: 1; justify-self: center; }
  html[dir="rtl"] .footer__back { justify-self: center; }
  .footer__copy { text-align: center; }
  .dev-credit { padding: 7px 12px; }
  .dev-credit__name { font-size: 13px; }
}
@media (max-width: 420px) {
  .footer__sep { display: none; }
  .footer__left { flex-direction: column; gap: 10px; }
}

/* Kick live hover preview */
.kick-preview {
  position: fixed;
  width: 460px;
  z-index: 150;
  background: linear-gradient(180deg, #0b0b0e, #07070a);
  border: 1px solid color-mix(in oklab, #53fc18 55%, transparent);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6),
              0 0 30px color-mix(in oklab, #53fc18 25%, transparent);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: opacity .2s ease, transform .22s cubic-bezier(.2,.7,.2,1);
}
.kick-preview.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.kick-preview__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.kick-preview__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.kick-preview__footer {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  color: #53fc18;
  letter-spacing: .2em;
  font-size: 10px;
  border-top: 1px solid color-mix(in oklab, #53fc18 22%, transparent);
  background: color-mix(in oklab, #53fc18 6%, transparent);
}
.kick-preview__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #53fc18;
  box-shadow: 0 0 8px #53fc18;
  animation: pulse-red 1.3s ease-in-out infinite;
  flex-shrink: 0;
}
.kick-preview__label {
  flex-shrink: 0;
}
/* Audio controls — mute toggle + volume slider. Changing either re-keys
   the iframe via React so Kick's embed picks up the new ?muted / ?volume
   query params. Slider is short (~70px) so it fits next to the label. */
.kick-preview__audio {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kick-preview__mute {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: transparent;
  border: 1px solid color-mix(in oklab, #53fc18 40%, transparent);
  border-radius: 6px;
  color: #53fc18;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  padding: 0;
}
.kick-preview__mute:hover {
  background: color-mix(in oklab, #53fc18 18%, transparent);
  border-color: #53fc18;
  transform: translateY(-1px);
}
.kick-preview__mute:active { transform: translateY(0); }
.kick-preview__volume {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: color-mix(in oklab, #53fc18 25%, transparent);
  border-radius: 999px;
  cursor: pointer;
  outline: none;
}
.kick-preview__volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #53fc18;
  box-shadow: 0 0 6px #53fc18;
  cursor: pointer;
  border: none;
}
.kick-preview__volume::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #53fc18;
  box-shadow: 0 0 6px #53fc18;
  cursor: pointer;
  border: none;
}
@media (max-width: 900px) {
  .kick-preview { display: none; }
}

/* ========== TWEAKS PANEL ========== */
.tweaks {
  position: fixed;
  top: 80px; right: 24px;
  width: 300px;
  background: color-mix(in oklab, var(--bg-0) 97%, transparent);
  border: 1px solid var(--red-0);
  z-index: 200;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), var(--glow);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  animation: tweakSlide .25s cubic-bezier(.2,.7,.2,1);
}
@keyframes tweakSlide { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
html[dir="rtl"] .tweaks { right: auto; left: 24px; }
.tweaks__header {
  padding: 14px 18px;
  border-bottom: 1px solid color-mix(in oklab, var(--ink-0) 10%, transparent);
  color: var(--red-0);
  font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks__close { background: transparent; border: none; color: var(--ink-2); cursor: pointer; font-size: 18px; transition: color .2s; }
.tweaks__close:hover { color: var(--red-0); }
.tweaks__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 160px); overflow-y: auto; }
.tweak-row { display: flex; flex-direction: column; gap: 8px; }
.tweak-row__label { letter-spacing: .1em; }
.seg { display: flex; border: 1px solid color-mix(in oklab, var(--ink-0) 10%, transparent); }
.seg__btn {
  flex: 1; padding: 8px 10px;
  background: transparent; border: none;
  color: var(--ink-2); cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  transition: all .2s;
}
.seg__btn:hover { color: var(--ink-0); }
.seg__btn.is-active { background: var(--red-0); color: #fff; }
.seg__btn + .seg__btn { border-left: 1px solid color-mix(in oklab, var(--ink-0) 10%, transparent); }
.tweak-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.tw-swatch { width: 28px; height: 28px; border: 2px solid transparent; cursor: pointer; padding: 0; transition: transform .2s; }
.tw-swatch:hover { transform: scale(1.1); }
.tw-swatch.is-active { border-color: var(--ink-0); transform: scale(1.1); box-shadow: 0 0 0 1px var(--bg-0); }

.tw-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tw-theme {
  position: relative;
  padding: 10px 8px;
  border: 1px solid color-mix(in oklab, var(--ink-0) 14%, transparent);
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-2);
  text-align: center;
}
.tw-theme__swatch {
  display: block;
  width: 100%;
  height: 18px;
  margin-bottom: 6px;
  border-radius: 3px;
}
.tw-theme:hover { color: var(--ink-0); border-color: var(--ink-2); transform: translateY(-2px); }
.tw-theme.is-active { border-color: var(--red-0); color: var(--red-0); box-shadow: 0 0 16px var(--red-dim); }

/* ========== LIGHT MODE ========== */
[data-theme="light"] .nav--scrolled { background: color-mix(in oklab, var(--bg-0) 90%, transparent); }
[data-theme="light"] .hero__title .glitch { color: var(--ink-0); }
[data-theme="light"] .btn--ghost { color: var(--ink-1); }
[data-theme="light"] .noise::after { opacity: .2; }
[data-theme="light"] .hero__grid { mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 70%); }

/* Light mode: the hero 3MR wordmark was rendering as a near-white washed-out
   blob because --ink-0 flips dark but the blurry red chromatic-split drop-shadows
   + white scan sweep dominate on a cream background. Re-ground it to a readable
   dark→red gradient with tighter shadows and a subtler highlight. */
[data-theme="light"] .hero__title-text {
  background: linear-gradient(
    180deg,
    #1a0a10 0%,
    #1a0a10 40%,
    var(--red-0) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Same clipped-background glyph as dark mode - drop-shadow, never
     text-shadow (see the dark-theme rule for why). */
  filter:
    drop-shadow(1px 0 0 color-mix(in oklab, var(--red-0) 55%, transparent))
    drop-shadow(-1px 0 0 rgba(0, 100, 140, .25))
    drop-shadow(0 0 22px color-mix(in oklab, var(--red-0) 35%, transparent));
}
[data-theme="light"] .hero__title-text::before {
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, .55) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  mix-blend-mode: overlay;
}
[data-theme="light"] .hero__title .glitch::after {
  opacity: .35;
  mix-blend-mode: multiply;
}
[data-theme="light"] .hero__subtitle { color: var(--ink-2); }

/* ========== CYBER THEME ========== */
[data-theme="cyber"] {
  --bg-0: #04060e;
  --bg-1: #061027;
  --bg-2: #0a1a3a;
  --ink-0: #eafaff;
  --ink-1: #b7d4ff;
  --ink-2: #7e95c2;
  --ink-3: #3d4f78;
}

/* ========== MIDNIGHT THEME ========== */
[data-theme="midnight"] {
  --bg-0: #090618;
  --bg-1: #120a2a;
  --bg-2: #1a0f3d;
  --ink-0: #f6eefe;
  --ink-1: #d5c6f0;
  --ink-2: #8e82a6;
  --ink-3: #4b4260;
}

/* ========== GLOBAL 3D HOVER POLISH (universal feel) ========== */
/* preserve-3d lets inline perspective() transforms render children in 3D.
   will-change is applied by JS only during hover to avoid permanent GPU layers. */
.stat, .plat-card, .fact-reel, .bio__card, .email-card, .rank-proof__card,
.meta-chip, .marq-item, .dev-credit, .footer__back, .tw-theme, .btn,
.bio__id-row, .chip, .nav__logo {
  transform-style: preserve-3d;
}

/* ========== MOBILE RESPONSIVE POLISH ========== */
@media (max-width: 900px) {
  .hero { padding: 90px 18px 24px; }
  .hero__inner { gap: 18px; }
  .hero__title { font-size: clamp(68px, 20vw, 120px); }
  .hero__subtitle { font-size: 11px; letter-spacing: .3em; }
  .hero__subtitle::before, .hero__subtitle::after { width: 18px; }
  .hero__desc { font-size: 16px; }
  .hero__cta { justify-content: center; }
  .fact-reel { margin-left: auto; margin-right: auto; }
  .hero__right { margin-top: 12px; }
  .hero-photo { width: min(340px, 90%); }
  .sec-head { margin-bottom: 22px; }
  .sec-head__inner { gap: 10px; padding: 3px; }
  .sec-head__badge { width: 38px; }
  .sec-head__badge svg { width: 18px; height: 18px; }
  .sec-head__label { font-size: 13px; letter-spacing: .14em; }
  .stats, .bio, .platforms, .contact { padding: 36px 18px; }
  .plat-marquee-wrap { padding: 0 18px; }
  .footer { padding: 24px 18px 20px; }
  .rank-proof { padding: 0 18px; }
  .bio__card-meta { padding: 18px; }
  .bio__id { gap: 8px 10px; }
  .bio__id-row { padding: 7px 8px; }
  .bio__id-ic { width: 22px; height: 22px; }
  .bio__id-ic svg { width: 12px; height: 12px; }
  .bio__id-val { font-size: 10.5px; }
  .contact__inner { padding: 24px; gap: 28px; }
  .email-card__addr { font-size: 14px; }
  .h2 { font-size: clamp(30px, 7vw, 46px); }
}
@media (max-width: 520px) {
  .tweaks {
    top: 70px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
  html[dir="rtl"] .tweaks { left: 12px; right: 12px; }
  .tw-themes { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 80px 14px 20px; }
  .hero__title { font-size: clamp(58px, 22vw, 100px); }
  .hero__cta .btn { padding: 12px 16px; font-size: 11px; }
  .hero__cta .btn span { display: inline; }
  .hero__tag { font-size: 9px; letter-spacing: .18em; }
  .fact-reel { padding: 12px 14px; }
  .fact-reel__ic { width: 38px; height: 38px; }
  .fact-reel__ic svg { width: 18px; height: 18px; }
  .fact-reel__value { font-size: 16px; }
  .stats, .bio, .platforms, .contact { padding: 28px 14px; }
  .rank-proof { padding: 0 14px; }
  .plat-marquee-wrap { padding: 0 14px; }
  .nav__inner { padding: 0 14px; gap: 8px; }
  .nav__logo span { display: none; }
  .tweaks-toggle { width: 34px; height: 34px; }
  .lang-btn { padding: 6px 10px; min-width: 36px; font-size: 10px; }
  .footer__top { gap: 12px; }
  .footer__logo { font-size: 32px; }
  .email-card { padding: 14px; }
  .hero-live-badge { padding: 8px 12px; font-size: 10px; }
  .bio__card-badge { font-size: 9px; padding: 6px 10px; }
  .contact__inner { padding: 20px 16px; }
  .sec-head__num { font-size: 8px; }
  .sec-head__label { font-size: 12px; }
  .stat { padding: 18px; }
  .stat__value { font-size: 22px; }
  .plat-card { padding: 18px; }
  .plat-card__icon { width: 42px; height: 42px; }
  .plat-card__icon svg { width: 22px; height: 22px; }
  .plat-card__name { font-size: 15px; }
  .marq-item { font-size: 18px; gap: 10px; }
  .marq-item__ic { width: 30px; height: 30px; }
  .marq-item__ic svg { width: 22px; height: 22px; }
  .ticker-group { font-size: 10px; gap: 18px; }
}

/* ========== BIO LEFT — QUOTE, COUNTERS, SPECS, TIMELINE ========== */

/* Signature pull-quote */
.bio__quote {
  position: relative;
  margin: 28px 0 4px;
  padding: 20px 24px 18px 30px;
  border-left: 3px solid var(--red-0);
  background: linear-gradient(100deg, color-mix(in oklab, var(--red-0) 10%, transparent), color-mix(in oklab, var(--bg-1) 60%, transparent) 55%, transparent);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  box-shadow: inset 0 0 22px rgba(0,0,0,.25), 0 6px 22px rgba(0,0,0,.3);
  transform-style: preserve-3d;
  transition: all .35s cubic-bezier(.2,.7,.2,1);
}
html[dir="rtl"] .bio__quote {
  border-left: none;
  border-right: 3px solid var(--red-0);
  padding: 20px 30px 18px 24px;
  background: linear-gradient(260deg, color-mix(in oklab, var(--red-0) 10%, transparent), color-mix(in oklab, var(--bg-1) 60%, transparent) 55%, transparent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.bio__quote:hover {
  box-shadow: inset 0 0 22px rgba(0,0,0,.25), 0 12px 34px rgba(0,0,0,.45), 0 0 28px color-mix(in oklab, var(--red-0) 35%, transparent);
}
.bio__quote-mark {
  position: absolute;
  top: -8px; left: 14px;
  font-family: var(--font-hero);
  font-size: 84px;
  line-height: 1;
  color: color-mix(in oklab, var(--red-0) 50%, transparent);
  text-shadow: 0 0 24px color-mix(in oklab, var(--red-0) 40%, transparent);
  pointer-events: none;
  user-select: none;
}
html[dir="rtl"] .bio__quote-mark { left: auto; right: 14px; }
.bio__quote-text {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  color: var(--ink-0);
  letter-spacing: .02em;
  line-height: 1.35;
  margin: 0;
  position: relative; z-index: 1;
}
.bio__quote-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 4px 12px 4px 0;
  color: var(--red-0);
  letter-spacing: .26em;
  font-weight: 800;
  font-size: 15px;
  font-family: var(--font-display);
  text-shadow: 0 0 14px color-mix(in oklab, var(--red-0) 55%, transparent);
  position: relative;
}
.bio__quote-by::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--red-0), transparent);
  box-shadow: 0 0 8px var(--red-0);
  margin-right: 2px;
}
html[dir="rtl"] .bio__quote-by::before {
  background: linear-gradient(270deg, var(--red-0), transparent);
  margin-right: 0;
  margin-left: 2px;
}
.bio__quote-corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--red-0);
  opacity: .8;
  transition: all .3s;
}
.bio__quote-corner.tl { top: 4px; left: 4px; border-right: none; border-bottom: none; }
.bio__quote-corner.br { bottom: 4px; right: 4px; border-left: none; border-top: none; }
.bio__quote:hover .bio__quote-corner { opacity: 1; box-shadow: 0 0 10px var(--red-0); }

/* Counters strip */
.bio__counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 26px 0 4px;
}
@media (max-width: 680px) { .bio__counters { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.bio__counter {
  position: relative;
  padding: 14px 12px 12px;
  background: linear-gradient(160deg, var(--bg-1), var(--bg-2));
  border: 1px solid color-mix(in oklab, var(--red-0) 28%, transparent);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: all .35s;
  transform-style: preserve-3d;
  overflow: hidden;
  cursor: pointer;
}
.bio__counter::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in oklab, var(--red-0) 24%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.bio__counter:hover {
  border-color: var(--red-0);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.4), 0 0 22px color-mix(in oklab, var(--red-0) 45%, transparent);
}
.bio__counter:hover::before { opacity: 1; }
.bio__counter-num {
  position: relative; z-index: 2;
  font-family: var(--font-num);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--ink-0);
  line-height: 1;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.bio__counter-digit {
  background: linear-gradient(90deg, var(--ink-0), color-mix(in oklab, var(--red-0) 85%, var(--ink-0)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(255, 31, 61, .2);
}
.bio__counter-prefix, .bio__counter-suffix {
  color: var(--red-0);
  font-size: .72em;
  font-weight: 800;
  text-shadow: 0 0 10px color-mix(in oklab, var(--red-0) 55%, transparent);
}
.bio__counter-lbl {
  position: relative; z-index: 2;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .22em;
  font-weight: 700;
  color: var(--ink-1);
  opacity: .85;
  text-transform: uppercase;
}

/* Section sub-heading (Specialties / Timeline) */
.bio__specs-head {
  display: flex; align-items: center; gap: 10px;
  margin: 24px 0 14px;
}
.bio__specs-bar {
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--red-0), transparent);
  box-shadow: 0 0 10px var(--red-0);
}
html[dir="rtl"] .bio__specs-bar { background: linear-gradient(270deg, var(--red-0), transparent); }
.bio__specs-title { margin: 0; }

/* Specialties grid */
.bio__specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 680px) { .bio__specs-grid { grid-template-columns: repeat(2, 1fr); } }
.bio__spec {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 10px;
  background: color-mix(in oklab, var(--bg-1) 80%, transparent);
  border: 1px solid color-mix(in oklab, var(--ink-0) 8%, transparent);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all .3s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
  cursor: pointer;
}
.bio__spec:hover {
  border-color: var(--red-0);
  background: color-mix(in oklab, var(--red-0) 8%, var(--bg-1));
  box-shadow: 0 10px 26px rgba(0,0,0,.4), 0 0 18px var(--red-dim);
}
.bio__spec-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  color: var(--red-0);
  background: color-mix(in oklab, var(--red-0) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--red-0) 45%, transparent);
  border-radius: 4px;
  transition: all .3s;
}
.bio__spec-ic svg { width: 18px; height: 18px; }
.bio__spec:hover .bio__spec-ic {
  background: color-mix(in oklab, var(--red-0) 30%, transparent);
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 16px var(--red-0);
}
.bio__spec-lbl {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--ink-1);
  text-align: center;
  text-transform: uppercase;
  opacity: .9;
}
.bio__spec:hover .bio__spec-lbl { color: var(--ink-0); opacity: 1; }

/* Timeline */
.bio__timeline-wrap { margin-top: 8px; }
.bio__timeline-lead { font-size: 13px; margin: -6px 0 12px; }
.bio__timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  --tl-step: .55s;      /* per-item gap */
  --tl-start: .2s;      /* initial delay */
  --tl-items: 7;        /* total items */
  --tl-total: calc(var(--tl-start) + (var(--tl-items) - 1) * var(--tl-step) + .5s);
}
/* The vertical line — draws linearly so its tip coincides with each dot as it appears */
.bio__timeline::before {
  content: '';
  position: absolute;
  top: 10px; bottom: 10px; left: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--red-0) 0%, var(--red-0) 70%, color-mix(in oklab, var(--red-0) 30%, transparent) 90%, transparent 100%);
  box-shadow: 0 0 10px var(--red-0), 0 0 22px var(--red-dim);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform var(--tl-total) linear var(--tl-start);
}
html[dir="rtl"] .bio__timeline::before { left: auto; right: 6px; }
/* Trailing "write head" glow that travels with the line tip */
.bio__timeline::after {
  content: '';
  position: absolute;
  top: 10px; left: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red-0);
  box-shadow: 0 0 18px var(--red-0), 0 0 30px color-mix(in oklab, var(--red-0) 70%, transparent);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}
html[dir="rtl"] .bio__timeline::after { left: auto; right: 7px; transform: translate(50%, -50%) scale(0); }
/* Trigger drawing when the wrapper reveals into view */
.bio__timeline-wrap.in .bio__timeline::before { transform: scaleY(1); }
.bio__timeline-wrap.in .bio__timeline::after {
  animation: tlHead var(--tl-total) linear var(--tl-start) forwards;
}
@keyframes tlHead {
  0%   { opacity: 0; top: 10px; transform: translate(-50%, -50%) scale(0); }
  8%   { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  92%  { opacity: 1; top: calc(100% - 10px); transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; top: calc(100% - 10px); transform: translate(-50%, -50%) scale(.5); }
}
/* Items start hidden and reveal one-by-one as the line reaches them */
.bio__timeline-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0 10px 28px;
  position: relative;
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity .55s ease,
    transform .55s cubic-bezier(.2, .8, .3, 1),
    color .3s;
}
.bio__timeline-wrap.in .bio__timeline-item {
  opacity: 1;
  transform: translateX(0);
}
.bio__timeline-item .bio__timeline-dot {
  opacity: 0;
  transform: translateY(-50%) scale(.2);
  transition:
    opacity .45s ease,
    transform .5s cubic-bezier(.2, 1.6, .3, 1),
    box-shadow .35s,
    background .3s;
}
.bio__timeline-wrap.in .bio__timeline-item .bio__timeline-dot {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
/* Per-item staggered delays — line tip crosses each position in sync */
.bio__timeline-wrap.in .bio__timeline-item:nth-child(1) { transition-delay: calc(var(--tl-start) + 0 * var(--tl-step)); }
.bio__timeline-wrap.in .bio__timeline-item:nth-child(2) { transition-delay: calc(var(--tl-start) + 1 * var(--tl-step)); }
.bio__timeline-wrap.in .bio__timeline-item:nth-child(3) { transition-delay: calc(var(--tl-start) + 2 * var(--tl-step)); }
.bio__timeline-wrap.in .bio__timeline-item:nth-child(4) { transition-delay: calc(var(--tl-start) + 3 * var(--tl-step)); }
.bio__timeline-wrap.in .bio__timeline-item:nth-child(5) { transition-delay: calc(var(--tl-start) + 4 * var(--tl-step)); }
.bio__timeline-wrap.in .bio__timeline-item:nth-child(6) { transition-delay: calc(var(--tl-start) + 5 * var(--tl-step)); }
.bio__timeline-wrap.in .bio__timeline-item:nth-child(7) { transition-delay: calc(var(--tl-start) + 6 * var(--tl-step)); }
.bio__timeline-wrap.in .bio__timeline-item:nth-child(1) .bio__timeline-dot { transition-delay: calc(var(--tl-start) + 0 * var(--tl-step)); }
.bio__timeline-wrap.in .bio__timeline-item:nth-child(2) .bio__timeline-dot { transition-delay: calc(var(--tl-start) + 1 * var(--tl-step)); }
.bio__timeline-wrap.in .bio__timeline-item:nth-child(3) .bio__timeline-dot { transition-delay: calc(var(--tl-start) + 2 * var(--tl-step)); }
.bio__timeline-wrap.in .bio__timeline-item:nth-child(4) .bio__timeline-dot { transition-delay: calc(var(--tl-start) + 3 * var(--tl-step)); }
.bio__timeline-wrap.in .bio__timeline-item:nth-child(5) .bio__timeline-dot { transition-delay: calc(var(--tl-start) + 4 * var(--tl-step)); }
.bio__timeline-wrap.in .bio__timeline-item:nth-child(6) .bio__timeline-dot { transition-delay: calc(var(--tl-start) + 5 * var(--tl-step)); }
.bio__timeline-wrap.in .bio__timeline-item:nth-child(7) .bio__timeline-dot { transition-delay: calc(var(--tl-start) + 6 * var(--tl-step)); }
html[dir="rtl"] .bio__timeline-item { padding: 10px 28px 10px 0; }
.bio__timeline-item:hover { transform: translateX(3px); }
html[dir="rtl"] .bio__timeline-item:hover { transform: translateX(-3px); }
.bio__timeline-dot {
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--red-0);
  box-shadow: 0 0 10px var(--red-0), inset 0 0 6px color-mix(in oklab, var(--red-0) 30%, transparent);
  transition: all .3s;
}
html[dir="rtl"] .bio__timeline-dot { left: auto; right: 0; }
.bio__timeline-item:last-child .bio__timeline-dot {
  background: var(--red-0);
  animation: pulse-red 1.8s ease-in-out infinite;
}
.bio__timeline-item:hover .bio__timeline-dot {
  background: var(--red-0);
  box-shadow: 0 0 16px var(--red-0);
}
.bio__timeline-year {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--red-0);
  letter-spacing: .04em;
  min-width: 54px;
  text-shadow: 0 0 10px color-mix(in oklab, var(--red-0) 40%, transparent);
}
.bio__timeline-txt {
  color: var(--ink-1);
  font-size: 14px;
  line-height: 1.4;
  font-family: var(--font-body);
}
.bio__timeline-item:last-child .bio__timeline-txt { color: var(--ink-0); font-weight: 600; }

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal:not(.in),
  html.js-ready .reveal--3d:not(.in) { opacity: 1; transform: none; filter: none; }
  .ticker-track, .plat-marquee__track, .hero-photo, .hero__glow, .live-dot,
  .hero__title-text, .hero__title-text::before, .hero__title .glitch::after,
  .nav__logo-pulse::after,
  .fact-reel__bg-grid, .fact-reel__bg-scan, .fact-reel__ping, .fact-reel__ic,
  .rank-proof__bg-scan, .rank-proof__badge-ring, .rank-proof__kicker-dot,
  .hero-live-badge.is-live, .plat-card__live,
  .bio__timeline-item:last-child .bio__timeline-dot,
  .kick-preview__dot,
  .mem-card::before, .mem-card__ember, .mem-card__heart { animation: none !important; }
}

/* ============================================================
   MUSIC PLAYER — collapsed FAB → expandable panel
   ------------------------------------------------------------
   Idle state is a single circular button at bottom-left (right
   in RTL). Click it to expand a full panel with playlist,
   play/pause, prev/next, and volume controls. Panel anchors to
   the FAB and scales in from the corner.
   ============================================================ */
.music-player {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  left:   calc(18px + env(safe-area-inset-left,   0px));
  z-index: 90;
  font-family: var(--font-mono);
  color: #fff;
  animation: musicPlayerIn 1.1s .4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes musicPlayerIn {
  from { opacity: 0; transform: translateY(40px) scale(.9); }
  to   { opacity: 1; transform: translateY(0)    scale(1);  }
}
html[dir="rtl"] .music-player {
  left: auto;
  right: calc(18px + env(safe-area-inset-right, 0px));
}

/* ---------- Collapsed FAB (always visible) ---------- */
.music-player__fab {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--red-0) 55%, transparent);
  background: radial-gradient(circle at 30% 30%,
              color-mix(in oklab, var(--red-0) 55%, #0a030c) 0%,
              #0a030c 70%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font: inherit;
  box-shadow: 0 12px 36px rgba(0,0,0,.55), 0 0 22px var(--red-dim);
  /* backdrop-filter removed: the radial fill above is fully opaque, so the
     blur behind it was pure cost with zero visible output. */
  transition: transform .3s cubic-bezier(.2,.7,.2,1),
              box-shadow .3s, border-color .3s, background .3s;
}
.music-player__fab:hover {
  transform: scale(1.06);
  border-color: var(--red-0);
  box-shadow: 0 14px 42px rgba(0,0,0,.65), 0 0 32px var(--red-0);
}
.music-player__fab:active { transform: scale(.96); }

.music-player__fab-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--red-0) 70%, transparent);
  opacity: 0;
  pointer-events: none;
  animation: musicRingPulse 2.2s ease-in-out infinite;
}
.music-player.is-paused .music-player__fab-ring,
.music-player.is-open   .music-player__fab-ring { animation-play-state: paused; opacity: 0; }
@keyframes musicRingPulse {
  0%   { opacity: .7; transform: scale(1);    }
  70%  { opacity: 0;  transform: scale(1.25); }
  100% { opacity: 0;  transform: scale(1.25); }
}

.music-player__fab-core {
  position: relative;
  width: 100%; height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-0), var(--red-2));
  box-shadow: 0 0 18px var(--red-dim),
              inset 0 0 0 1px color-mix(in oklab, #fff 18%, transparent);
}
.music-player__fab-core svg {
  width: 22px; height: 22px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,.5));
}

/* When autoplay is blocked, pulse the FAB to invite a click.
   The boosted glow is a STATIC box-shadow on a pseudo whose opacity animates
   (compositor-only) - the old version animated box-shadow itself, repainting
   this always-on-screen corner every frame until first play. */
.music-player.is-locked .music-player__fab-core::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 36px var(--red-0), 0 0 60px var(--red-dim);
  opacity: 0;
  pointer-events: none;
  animation: musicCall 1.4s ease-in-out infinite;
}
@keyframes musicCall {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* Rotate FAB slightly when open so it reads as active */
.music-player.is-open .music-player__fab { transform: scale(.92); }
.music-player.is-open .music-player__fab-core { box-shadow: 0 0 24px var(--red-0), inset 0 0 0 1px color-mix(in oklab, #fff 25%, transparent); }

/* ---------- Equalizer (FAB while playing + list item active) ---------- */
.music-player__eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}
.music-player__eq span {
  display: inline-block;
  width: 3px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(255,255,255,.5);
  transform-origin: bottom;
  animation: musicEq .9s ease-in-out infinite;
}
.music-player__eq span:nth-child(1) { height: 45%;  animation-delay: -.1s; }
.music-player__eq span:nth-child(2) { height: 85%;  animation-delay: -.4s; }
.music-player__eq span:nth-child(3) { height: 100%; animation-delay: -.2s; }
.music-player__eq span:nth-child(4) { height: 60%;  animation-delay: -.6s; }
.music-player__eq--sm { height: 12px; gap: 2px; }
.music-player__eq--sm span { width: 2px; }
@keyframes musicEq {
  0%, 100% { transform: scaleY(.35); }
  50%      { transform: scaleY(1);   }
}
.music-player.is-paused .music-player__eq span,
.music-player.is-locked .music-player__eq span {
  animation-play-state: paused;
  opacity: .35;
  transform: scaleY(.4);
}

/* ---------- Expanded panel ---------- */
.music-player__panel {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 16px;
  background: rgba(8, 4, 12, .96);
  border: 1px solid color-mix(in oklab, var(--red-0) 45%, transparent);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.75), 0 0 36px var(--red-dim);
  transform-origin: bottom left;
  transform: scale(.8) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .28s;
}
html[dir="rtl"] .music-player__panel {
  left: auto;
  right: 0;
  transform-origin: bottom right;
}
.music-player.is-open .music-player__panel {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.music-player__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.music-player__panel-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .3em;
  color: var(--red-0);
  text-shadow: 0 0 10px var(--red-dim);
}
.music-player__close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, #fff 14%, transparent);
  background: transparent;
  color: var(--ink-1);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all .22s;
}
.music-player__close:hover {
  border-color: var(--red-0);
  color: var(--red-0);
  background: color-mix(in oklab, var(--red-0) 15%, transparent);
  transform: rotate(90deg);
}
.music-player__close svg { width: 12px; height: 12px; }

/* Current track title block */
.music-player__now {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: linear-gradient(135deg,
              color-mix(in oklab, var(--red-0) 20%, transparent) 0%,
              transparent 100%);
  border: 1px solid color-mix(in oklab, var(--red-0) 30%, transparent);
  border-radius: 10px;
}
.music-player__now-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  text-shadow: 0 0 14px var(--red-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl; /* Arabic track names */
  text-align: right;
}
html[dir="ltr"] .music-player__now-title { text-align: left; }
.music-player__now-meta {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--ink-2);
}

/* Progress bar + elapsed / remaining time readout */
.music-player__progress {
  margin-bottom: 12px;
}
.music-player__progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  cursor: pointer;
  outline: none;
  transition: height .18s;
}
.music-player__progress-bar:hover { height: 6px; }
.music-player__progress-bar:focus-visible { box-shadow: 0 0 0 2px var(--red-0); }
.music-player__progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--red-0), var(--red-1));
  box-shadow: 0 0 8px var(--red-0);
  border-radius: 2px;
  transition: width .15s linear;
}
.music-player__progress-thumb {
  position: absolute;
  top: 50%;
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red-0), 0 2px 4px rgba(0,0,0,.5);
  transform: translate(-50%, -50%) scale(.6);
  opacity: 0;
  transition: opacity .18s, transform .18s cubic-bezier(.2,.7,.2,1), left .15s linear;
  pointer-events: none;
}
.music-player__progress-bar:hover  .music-player__progress-thumb,
.music-player__progress-bar:focus-visible .music-player__progress-thumb,
.music-player.is-playing .music-player__progress-thumb {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.music-player__times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.music-player__time--rem { color: var(--red-0); text-shadow: 0 0 8px var(--red-dim); }

/* prev / play / next row */
.music-player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}
.music-player__ctrl {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, #fff 14%, transparent);
  background: transparent;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all .22s cubic-bezier(.2,.7,.2,1);
}
.music-player__ctrl:hover {
  border-color: var(--red-0);
  color: var(--red-0);
  background: color-mix(in oklab, var(--red-0) 15%, transparent);
  transform: scale(1.08);
}
.music-player__ctrl:active { transform: scale(.94); }
.music-player__ctrl svg { width: 16px; height: 16px; }
/* Mirror prev / next glyphs in RTL so arrows point the expected way */
html[dir="rtl"] .music-player__ctrl svg { transform: scaleX(-1); }

.music-player__play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--red-0), var(--red-2));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 22px var(--red-dim),
              inset 0 0 0 1px color-mix(in oklab, #fff 18%, transparent);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
  flex-shrink: 0;
}
.music-player__play:hover { transform: scale(1.08); box-shadow: 0 0 32px var(--red-0); }
.music-player__play:active { transform: scale(.94); }
.music-player__play svg { width: 20px; height: 20px; }

/* Speed chip — cycles 1x → 1.5x → 2x. Glows red when boosted
   so it's obvious at a glance the track is being accelerated. */
.music-player__speed {
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, #fff 14%, transparent);
  background: transparent;
  color: var(--ink-1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .22s cubic-bezier(.2,.7,.2,1);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.music-player__speed:hover {
  border-color: var(--red-0);
  color: var(--red-0);
  background: color-mix(in oklab, var(--red-0) 12%, transparent);
  transform: scale(1.06);
}
.music-player__speed:active { transform: scale(.94); }
.music-player__speed.is-boosted {
  border-color: var(--red-0);
  color: #fff;
  background: linear-gradient(135deg, var(--red-0), var(--red-2));
  box-shadow: 0 0 14px var(--red-dim),
              inset 0 0 0 1px color-mix(in oklab, #fff 20%, transparent);
}
.music-player__speed.is-boosted:hover {
  box-shadow: 0 0 22px var(--red-0);
}

/* Volume row */
.music-player__vol {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  margin-bottom: 12px;
  border-top: 1px solid color-mix(in oklab, #fff 8%, transparent);
  border-bottom: 1px solid color-mix(in oklab, #fff 8%, transparent);
}
.music-player__vol-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, #fff 14%, transparent);
  background: transparent;
  color: var(--ink-1);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all .22s;
  flex-shrink: 0;
}
.music-player__vol-btn:hover {
  border-color: var(--red-0);
  color: var(--red-0);
  background: color-mix(in oklab, var(--red-0) 15%, transparent);
  transform: scale(1.08);
}
.music-player__vol-btn svg { width: 12px; height: 12px; }

.music-player__vol-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  outline: none;
}
.music-player__vol-bar:focus-visible {
  box-shadow: 0 0 0 2px var(--red-0);
}
.music-player__vol-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--red-0), var(--red-1));
  box-shadow: 0 0 10px var(--red-0);
  border-radius: 3px;
  transition: width .22s cubic-bezier(.2,.7,.2,1);
}
/* Volume bar fills left-to-right in both LTR and RTL — it's a
   universal convention for amplitude meters and keeps thumb math
   simple (no mirroring required). */
.music-player__vol-thumb {
  position: absolute;
  top: 50%;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red-0), 0 2px 6px rgba(0,0,0,.5);
  transform: translate(-50%, -50%);
  transition: left .22s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.music-player.is-muted .music-player__vol-fill { background: rgba(255,255,255,.25); box-shadow: none; }

.music-player__vol-pct {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--ink-2);
  min-width: 32px;
  text-align: right;
}
html[dir="rtl"] .music-player__vol-pct { text-align: left; }

/* Playlist */
.music-player__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red-0) transparent;
}
.music-player__list::-webkit-scrollbar { width: 4px; }
.music-player__list::-webkit-scrollbar-thumb { background: var(--red-0); border-radius: 2px; }

.music-player__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-1);
  text-align: right;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  transition: all .22s;
}
html[dir="ltr"] .music-player__item { text-align: left; }
.music-player__item:hover {
  background: color-mix(in oklab, var(--red-0) 10%, transparent);
  border-color: color-mix(in oklab, var(--red-0) 30%, transparent);
  color: #fff;
}
.music-player__item.is-active {
  background: color-mix(in oklab, var(--red-0) 18%, transparent);
  border-color: color-mix(in oklab, var(--red-0) 50%, transparent);
  color: #fff;
  box-shadow: 0 0 18px var(--red-dim);
}
.music-player__item-num {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--red-0);
  min-width: 22px;
  flex-shrink: 0;
}
.music-player__item-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
}
.music-player__item-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--red-0);
}
.music-player__item-state svg { width: 12px; height: 12px; }

.music-player__hint {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: rgba(8, 4, 12, .92);
  border: 1px solid var(--red-0);
  border-radius: 6px;
  color: var(--red-0);
  font-size: 9px;
  letter-spacing: .24em;
  font-weight: 800;
  text-shadow: 0 0 10px var(--red-dim);
  box-shadow: 0 0 14px var(--red-dim);
  white-space: nowrap;
  pointer-events: none;
  animation: musicHintBob 1.6s ease-in-out infinite;
}
.music-player__hint::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 8px; height: 8px;
  background: rgba(8, 4, 12, .92);
  border-right: 1px solid var(--red-0);
  border-bottom: 1px solid var(--red-0);
  transform: translate(-50%, -4px) rotate(45deg);
}
@keyframes musicHintBob {
  0%, 100% { transform: translate(-50%, 0);   opacity: .9; }
  50%      { transform: translate(-50%, -3px); opacity: 1; }
}

/* Tablet tweaks */
@media (max-width: 760px) {
  .music-player__panel { width: 300px; }
}
/* Phone: shrink FAB slightly, panel becomes near full width */
@media (max-width: 520px) {
  .music-player {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left:   calc(12px + env(safe-area-inset-left,   0px));
  }
  html[dir="rtl"] .music-player {
    left: auto;
    right: calc(12px + env(safe-area-inset-right, 0px));
  }
  .music-player__fab { width: 52px; height: 52px; }
  .music-player__fab-core svg { width: 20px; height: 20px; }
  .music-player__eq { height: 18px; gap: 2.5px; }
  .music-player__panel {
    width: calc(100vw - 24px);
    padding: 14px;
    border-radius: 16px;
  }
  .music-player__now-title { font-size: 14px; }
  .music-player__item-name { font-size: 12px; }
  .music-player__play { width: 46px; height: 46px; }
  .music-player__play svg { width: 18px; height: 18px; }
  .music-player__ctrl { width: 32px; height: 32px; }
  .music-player__hint { font-size: 8px; padding: 5px 8px; letter-spacing: .2em; }
}
/* Galaxy Fold cover / 320px */
@media (max-width: 360px) {
  .music-player__fab { width: 48px; height: 48px; }
  .music-player__panel { padding: 12px; }
  .music-player__list { max-height: 180px; }
}
/* Honour reduced-motion for idle animations */
@media (prefers-reduced-motion: reduce) {
  .music-player,
  .music-player__eq span,
  .music-player__fab-ring,
  .music-player.is-locked .music-player__fab-core,
  .music-player.is-locked .music-player__fab-core::after,
  .music-player__hint { animation: none !important; }
  .music-player__panel { transition: opacity .2s; }
}

/* ============================================================
   CHROME PERFORMANCE POLISH
   ------------------------------------------------------------
   Chrome's compositor is strict about offscreen layout/paint
   cost and large blur filters. These tweaks let the browser
   skip work it can't see, and shrink the two biggest blurs
   without losing the visual glow.
   ============================================================ */

.plat-marquee {
  content-visibility: auto;
  contain-intrinsic-size: 0 140px;
}

/* Off-screen animation gate.
   effects.js marks sections that have left the viewport with .anim-off;
   every infinite/decorative CSS animation inside a gated section freezes
   until the section scrolls back near view. Entrance reveals are TRANSITIONS,
   not animations, so they are untouched by animation-play-state. */
.anim-off,
.anim-off::before,
.anim-off::after,
.anim-off *,
.anim-off *::before,
.anim-off *::after {
  animation-play-state: paused !important;
}

/* The memorial card is invisible until opened - don't run its scan/ember/
   heart loops while it's closed. */
.mem-card:not(.is-open),
.mem-card:not(.is-open)::before,
.mem-card:not(.is-open) *,
.mem-card:not(.is-open) *::before,
.mem-card:not(.is-open) *::after {
  animation-play-state: paused !important;
}

/* Same for the Kick hover preview's live dot while the preview is hidden. */
.kick-preview:not(.is-visible) .kick-preview__dot {
  animation-play-state: paused;
}

.ticker-track,
.plat-marquee__track,
.hero-photo,
.hero__glow,
.live-dot {
  will-change: transform;
}

/* Paint containment on cards — constrains the region Chrome needs to
   redraw when a hover filter / box-shadow animates. */
.stat, .plat-card, .fact-reel__item, .bio__card, .rank-proof__card,
.email-card, .meta-chip, .chip, .marq-item {
  contain: layout paint;
}
