/* ═══════════════════════════════════════════════════════════
   RAGEBAITX — "THE FEED"
   ═══════════════════════════════════════════════════════════ */

:root {
  --black: #080808;
  --char: #121212;
  --char-2: #1a1a1d;
  --pink: #ff3d81;
  --orange: #ff7138;
  --purple: #8a42ff;
  --white: #f5f5f5;
  --muted: #a7a3ad;
  --line: rgba(245, 245, 245, 0.1);
  --grad: linear-gradient(100deg, var(--pink) 0%, var(--orange) 100%);
  --f-display: 'Anton', 'Oswald', 'Bebas Neue', 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --f-body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;
  --pad: clamp(20px, 5vw, 80px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cut: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--black); color: var(--white); font-family: var(--f-body);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
::selection { background: var(--pink); color: var(--black); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.mono { font-family: var(--f-mono); letter-spacing: 0.08em; font-size: 12px; text-transform: uppercase; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--white); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--pink); color: var(--black); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ─────────── custom crosshair cursor ─────────── */
.cursor { display: none; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-open] { cursor: none; }
html.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none; mix-blend-mode: difference; }
.cursor__ring, .cursor__dot { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__ring {
  width: 36px; height: 36px; border: 1.5px solid var(--white);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.3s, border-color 0.3s;
}
.cursor__ring::before, .cursor__ring::after { content: ''; position: absolute; background: var(--white); }
.cursor__ring::before { left: 50%; top: -7px; bottom: -7px; width: 1.5px; margin-left: -0.75px; clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%, 0 80%, 100% 80%, 100% 100%, 0 100%); }
.cursor__ring::after { top: 50%; left: -7px; right: -7px; height: 1.5px; margin-top: -0.75px; clip-path: polygon(0 0, 20% 0, 20% 100%, 0 100%, 0 0, 80% 0, 100% 0, 100% 100%, 80% 100%); }
.cursor__dot { width: 4px; height: 4px; background: var(--white); }
.cursor__label { position: absolute; left: 30px; top: -6px; white-space: nowrap; color: var(--white); opacity: 0; transition: opacity 0.25s; font-size: 10px; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(255, 255, 255, 0.12); }
.cursor.is-hover .cursor__ring::before, .cursor.is-hover .cursor__ring::after { opacity: 0; }
.cursor.is-hover .cursor__label { opacity: 1; left: 40px; }
.cursor.is-down .cursor__ring { width: 26px; height: 26px; }

/* ─────────── mission toasts ─────────── */
.toasts { position: fixed; top: 84px; right: var(--pad); z-index: 85; display: grid; gap: 10px; pointer-events: none; }
.toast {
  width: min(330px, calc(100vw - 40px)); padding: 14px 18px 14px 20px; background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(245, 245, 245, 0.12);
  border-left: 3px solid var(--pink); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateX(120%); transition: transform 0.6s var(--ease), opacity 0.6s;
}
.toast.in { transform: none; }
.toast.out { transform: translateX(120%); opacity: 0; }
.toast p { color: var(--pink); font-size: 10px; }
.toast h4 { font-family: var(--f-display); font-size: 24px; line-height: 1.05; margin-top: 4px; letter-spacing: 0.01em; }
.toast small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ─────────── loader ─────────── */
.loader { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: var(--black); transition: opacity 0.8s var(--ease), visibility 0.8s; }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 20px; }
.loader__logo {
  width: 180px; height: 180px; object-fit: cover; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 61, 129, 0.35), 0 0 80px rgba(255, 61, 129, 0.35);
  animation: loaderIn 1.1s var(--ease) both, glitch 2.4s steps(1) 0.9s infinite;
}
@keyframes loaderIn { from { opacity: 0; transform: scale(0.85); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes glitch {
  0%, 92%, 100% { transform: none; filter: none; }
  93% { transform: translate(-3px, 1px); filter: drop-shadow(3px 0 0 var(--pink)) drop-shadow(-3px 0 0 var(--purple)); }
  95% { transform: translate(2px, -1px); }
  97% { transform: translate(-1px, 0); filter: drop-shadow(-2px 0 0 var(--orange)); }
}
.loader__bar { width: 180px; height: 2px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.3s; }
.loader__label { color: var(--muted); }

/* ─────────── buttons ─────────── */
.btn {
  --h: 54px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: var(--h); padding: 0 28px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: transform 0.4s var(--ease), background 0.3s; overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--grad); color: var(--black); }
.btn--primary::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.8s var(--ease); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { color: var(--white); background: rgba(245, 245, 245, 0.06); box-shadow: inset 0 0 0 1px rgba(245, 245, 245, 0.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255, 61, 129, 0.14); box-shadow: inset 0 0 0 1px var(--pink); }
.icon-btn { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon-btn:hover { border-color: var(--pink); background: rgba(255, 61, 129, 0.1); }

/* ─────────── nav ─────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; align-items: center; gap: 36px; padding: 18px var(--pad); transition: background 0.4s, padding 0.4s var(--ease), border-color 0.4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(8, 8, 8, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); padding-top: 12px; padding-bottom: 12px; border-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 22px rgba(255, 61, 129, 0.45); }
.nav__word { font-family: var(--f-display); font-size: 22px; letter-spacing: 0.04em; }
.nav__word em { font-style: normal; color: var(--pink); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { position: relative; display: flex; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(245, 245, 245, 0.78); transition: color 0.3s; }
.nav__links a .mono { font-size: 9px; color: var(--pink); }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.chaos { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); background: rgba(8, 8, 8, 0.4); }
.chaos__label { font-size: 9px; color: var(--muted); }
.chaos__stars { display: flex; gap: 4px; }
.chaos__stars i {
  width: 13px; height: 13px; background: rgba(245, 245, 245, 0.18);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transition: background 0.3s;
}
.chaos__stars i.on { background: var(--white); animation: starPop 0.6s var(--ease); }
.chaos__stars i.on:last-child { background: var(--pink); }
.chaos.is-flash { animation: chaosFlash 0.9s steps(2) 2; }
@keyframes starPop { 0% { transform: scale(0.2); } 60% { transform: scale(1.5); background: var(--pink); } 100% { transform: scale(1); } }
@keyframes chaosFlash { 50% { border-color: var(--pink); box-shadow: 0 0 22px rgba(255, 61, 129, 0.45); } }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white); transition: transform 0.4s var(--ease); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 79; background: rgba(8, 8, 8, 0.96); backdrop-filter: blur(20px); display: grid; align-content: center; justify-items: center; gap: 18px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--f-display); font-size: 48px; }
.mobile-menu a:hover { color: var(--pink); }

/* ─────────── HERO: THE FEED ─────────── */
.feed { position: relative; height: 560vh; }
.feed__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.feed__bg { position: absolute; inset: 0; background: var(--black); }
.feed__poster, .feed__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feed__canvas { opacity: 0; transition: opacity 1.2s; }
.feed.has-webgl .feed__canvas { opacity: 1; }
.feed__dim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 50% 50%, rgba(8, 8, 8, 0.35), rgba(8, 8, 8, 0.82)), linear-gradient(0deg, var(--black) 0%, transparent 25%); }
.feed__viewport { position: absolute; inset: 0; perspective: 900px; perspective-origin: 50% 50%; overflow: hidden; }
.feed__world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.feed__screens { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.feed__floor {
  position: absolute; left: -2600px; top: -5000px; width: 5200px; height: 10000px; pointer-events: none;
  background-image:
    linear-gradient(rgba(138, 66, 255, 0.55) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 61, 129, 0.45) 2px, transparent 2px);
  background-size: 200px 200px;
  transform: translate3d(0, 620px, -4600px) rotateX(90deg);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 92%, transparent 100%);
}
.gate {
  position: absolute; left: 0; top: 0; width: var(--gw); height: var(--gh); margin: calc(var(--gh) / -2) 0 0 calc(var(--gw) / -2);
  border: 2px solid var(--gc); pointer-events: none;
  box-shadow: 0 0 24px var(--gc), inset 0 0 24px var(--gc);
  clip-path: polygon(0 0, 18% 0, 18% 3px, 82% 3px, 82% 0, 100% 0, 100% 100%, 82% 100%, 82% calc(100% - 3px), 18% calc(100% - 3px), 18% 100%, 0 100%);
}
.gate span { position: absolute; top: -26px; left: 0; color: var(--gc); font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.2em; }
.screen {
  position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  transform-style: preserve-3d;
}
.screen__in {
  position: absolute; inset: 0; overflow: hidden; background: var(--char); border: 1px solid rgba(255, 61, 129, 0.35);
  box-shadow: 0 0 40px rgba(255, 61, 129, 0.18), 0 30px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.screen__in img { width: 100%; height: 100%; object-fit: cover; animation: kb 14s ease-in-out infinite alternate; }
.screen:nth-child(3n) .screen__in img { animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-2%, 1%); } }
.screen__in::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 8, 0.85), transparent 55%), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px); }
.screen__bar { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 2; display: flex; justify-content: space-between; font-size: 10px; color: rgba(245, 245, 245, 0.85); }
.screen__bar b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.screen__bar b::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.screen__hook { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; font-family: var(--f-display); font-size: 26px; line-height: 1; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); }
.screen:hover .screen__in { transform: scale(1.06); border-color: var(--pink); box-shadow: 0 0 60px rgba(255, 61, 129, 0.45); }
.plane { position: absolute; left: 0; top: 0; text-align: center; transform-style: preserve-3d; pointer-events: none; }
.plane > * { pointer-events: auto; }
.plane--title { width: min(1200px, 92vw); margin-top: calc(-1 * var(--title-lift, 4vh)); }
.plane--title .eyebrow { justify-content: center; }
.feed__title { font-family: var(--f-display); font-size: clamp(40px, min(11.5vw, 16vh), 190px); line-height: 0.88; text-shadow: 0 10px 50px rgba(0, 0, 0, 0.6); }
.feed__title .line { display: block; overflow: hidden; padding-bottom: 0.03em; }
.feed__title .word { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
body.is-ready .feed__title .word { transform: none; }
.feed__title .line:nth-child(2) .word { transition-delay: 0.12s; }
.feed__title .line:nth-child(3) .word { transition-delay: 0.24s; }
.word--grad { background: linear-gradient(100deg, var(--pink), var(--orange), var(--pink)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; filter: drop-shadow(0 0 34px rgba(255, 61, 129, 0.45)); }
@keyframes sheen { to { background-position: -200% 0; } }
.plane--chapter { width: min(1100px, 90vw); }
.plane--chapter p { color: var(--pink); margin-bottom: 18px; }
.plane--chapter h2 { font-family: var(--f-display); font-size: clamp(48px, 8vw, 140px); line-height: 0.92; text-shadow: 0 10px 40px rgba(0, 0, 0, 0.7); }
.plane--exit { width: min(900px, 90vw); display: grid; justify-items: center; gap: 28px; }
.plane--exit img { width: 220px; height: 220px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 61, 129, 0.5), 0 0 120px rgba(255, 61, 129, 0.5); }
.plane--exit h2 { font-family: var(--f-display); font-size: clamp(44px, 7vw, 120px); line-height: 0.92; }

.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 22px; }
.eyebrow__line { width: 36px; height: 1px; background: var(--pink); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255, 61, 129, 0.7); animation: live 1.6s infinite; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(255, 61, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 129, 0); } }

.hud { position: absolute; z-index: 3; color: rgba(245, 245, 245, 0.75); pointer-events: none; }
.hud--tl { top: 96px; left: var(--pad); display: flex; align-items: center; gap: 10px; }
.hud__clock { color: var(--orange); }
.hud--depth { right: var(--pad); top: 50%; transform: translateY(-50%); display: grid; justify-items: end; gap: 10px; }
.hud--depth .mono { font-size: 10px; color: var(--muted); }
.depth__val { font-family: var(--f-display); font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }
.depth__bar { position: relative; width: 2px; height: 160px; background: rgba(245, 245, 245, 0.15); }
.depth__bar span { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--grad); box-shadow: 0 0 10px var(--pink); }
.feed__intro { position: absolute; left: 50%; bottom: clamp(70px, 10vh, 110px); z-index: 3; width: min(640px, 90vw); transform: translateX(-50%); text-align: center; will-change: opacity, transform; }
.feed__sub { font-size: clamp(16px, 1.3vw, 19px); color: rgba(245, 245, 245, 0.85); opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) 0.6s, transform 1s var(--ease) 0.6s; }
.feed__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) 0.75s, transform 1s var(--ease) 0.75s; }
body.is-ready .feed__sub, body.is-ready .feed__ctas { opacity: 1; transform: none; }
.scroll-cue { position: absolute; left: var(--pad); bottom: 34px; z-index: 3; display: flex; align-items: center; gap: 12px; color: rgba(245, 245, 245, 0.7); }
.scroll-cue .mono { font-size: 10px; letter-spacing: 0.3em; }
.scroll-cue__mouse { width: 22px; height: 34px; border: 1.5px solid rgba(245, 245, 245, 0.6); border-radius: 11px; position: relative; }
.scroll-cue__mouse span { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--pink); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ─────────── marquee ─────────── */
.marquee { position: relative; z-index: 3; margin-top: -1px; overflow: hidden; transform: rotate(-2deg) scale(1.04); background: var(--grad); color: var(--black); padding: 16px 0; box-shadow: 0 20px 60px rgba(255, 61, 129, 0.25); }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 30s linear infinite; font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 38px); letter-spacing: 0.02em; white-space: nowrap; }
.marquee__track b { font-family: var(--f-body); font-size: 0.6em; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─────────── sections ─────────── */
.section { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(100px, 14vw, 180px) var(--pad); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.section__title { font-family: var(--f-display); font-size: clamp(44px, 6.4vw, 104px); line-height: 0.92; }
.section__aside { max-width: 360px; color: var(--muted); }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ─────────── CLIPS: pinned coverflow ─────────── */
.clips { position: relative; height: 340vh; }
.clips__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); padding-top: 70px; }
.clips__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 0 var(--pad); }
.clips__head .section__title { font-size: clamp(40px, min(5.6vw, 9vh), 96px); }
.clips__side { display: grid; justify-items: end; gap: 16px; }
.clips__count { color: var(--muted); }
.clips__idx { color: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filter { padding: 9px 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); color: rgba(245, 245, 245, 0.75); transition: all 0.3s var(--ease); }
.filter:hover { border-color: rgba(255, 61, 129, 0.6); color: var(--white); }
.filter[aria-selected='true'] { background: var(--white); color: var(--black); border-color: var(--white); }
.clips__track { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); padding: 0 var(--pad); width: max-content; will-change: transform; perspective: 1600px; }
.card { flex: none; width: clamp(290px, 30vw, 470px); transform-style: preserve-3d; transition: opacity 0.5s var(--ease); }
.card.is-hidden { display: none; }
.card--featured { width: clamp(320px, 46vw, 760px); }
.card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--char); text-align: left;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 0.6s; }
.card__media video { opacity: 0; transition: opacity 0.4s; }
.card:hover .card__media img { transform: scale(1.08); filter: saturate(1.25); }
.card.is-previewing .card__media video { opacity: 1; }
.card__media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(8, 8, 8, 0.7) 0%, rgba(8, 8, 8, 0) 50%); }
.card__hook {
  position: absolute; left: 18px; bottom: 18px; z-index: 2; max-width: 80%;
  font-family: var(--f-display); font-size: clamp(30px, 3vw, 52px); line-height: 0.95; letter-spacing: 0.01em; color: var(--white);
  text-shadow: 3px 3px 0 var(--pink), 0 0 30px rgba(0, 0, 0, 0.5); transform: rotate(-3deg); transform-origin: left bottom;
}
.card--featured .card__hook { font-size: clamp(38px, 4.6vw, 80px); }
.card__tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 9px; background: rgba(8, 8, 8, 0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(245, 245, 245, 0.16); }
.card__dur { position: absolute; top: 14px; right: 40px; z-index: 2; color: rgba(245, 245, 245, 0.85); }
.card__play {
  position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8, 8, 8, 0.4); border: 1.5px solid rgba(245, 245, 245, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s;
}
.card__play svg { width: 18px; height: 18px; margin-left: 3px; fill: var(--white); }
.card:hover .card__play { transform: scale(1.12); background: var(--pink); border-color: var(--pink); }
.card__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: rgba(245, 245, 245, 0.12); }
.card__bar span { display: block; height: 100%; width: 0; background: var(--grad); }
.card:hover .card__bar span { animation: preview 5s linear forwards; }
@keyframes preview { to { width: 100%; } }
.card__meta { padding-top: 16px; }
.card__meta h3 { font-family: var(--f-display); font-size: clamp(22px, 1.7vw, 28px); line-height: 1.05; }
.card__meta p { margin-top: 6px; color: var(--muted); font-size: 15px; max-width: 460px; }
.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; color: rgba(245, 245, 245, 0.7); }
.stats span { display: inline-flex; align-items: center; gap: 6px; }
.stats svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.badge-sample { color: var(--orange); border: 1px solid rgba(255, 113, 56, 0.45); padding: 2px 7px; font-size: 10px; }
.clips__progress { position: relative; margin: 0 var(--pad); height: 2px; background: var(--line); }
.clips__progress span { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 10px var(--pink); }

/* ─────────── TRENDING: leaderboard ─────────── */
.trending .eyebrow { color: var(--white); }
.feed-clock { color: var(--orange); }
.board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.board__row { position: relative; border-bottom: 1px solid var(--line); }
.board__btn {
  position: relative; width: 100%; display: grid; grid-template-columns: 110px minmax(0, 1fr) 170px 120px 90px 40px; align-items: center; gap: 20px;
  padding: 22px 12px; text-align: left; overflow: hidden; isolation: isolate;
}
.board__btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 61, 129, 0.16), rgba(255, 113, 56, 0.06) 60%, transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.board__btn:hover::before, .board__btn:focus-visible::before { transform: scaleX(1); }
.board__rank { font-family: var(--f-display); font-size: 58px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(245, 245, 245, 0.6); transition: color 0.4s, -webkit-text-stroke-color 0.4s; }
.board__btn:hover .board__rank { color: var(--pink); -webkit-text-stroke-color: var(--pink); }
.board__title { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 40px); line-height: 1.05; transition: transform 0.5s var(--ease); }
.board__btn:hover .board__title { transform: translateX(12px); }
.board__title small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); margin-top: 6px; text-transform: uppercase; }
.board__cell { color: rgba(245, 245, 245, 0.75); }
.board__trend { display: inline-flex; align-items: center; gap: 6px; color: var(--pink); }
.board__arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.5s var(--ease); }
.board__btn:hover .board__arrow svg { transform: translate(4px, -4px); color: var(--pink); }
.board__thumb { display: none; }
.board__preview {
  position: fixed; left: 0; top: 0; z-index: 60; width: 340px; aspect-ratio: 16 / 10; pointer-events: none; overflow: hidden;
  border: 1px solid rgba(255, 61, 129, 0.6); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 61, 129, 0.3);
  opacity: 0; transform: translate(-50%, -50%) scale(0.7) rotate(-4deg); transition: opacity 0.3s, transform 0.5s var(--ease);
}
.board__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.board__preview img { width: 100%; height: 100%; object-fit: cover; }
.board__preview span { position: absolute; left: 14px; bottom: 12px; font-family: var(--f-display); font-size: 30px; letter-spacing: 0.01em; text-transform: none; text-shadow: 2px 2px 0 var(--pink); }
.row-head { display: flex; align-items: center; justify-content: space-between; margin: clamp(70px, 8vw, 110px) 0 26px; }
.row-head h3 { font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 38px); }
.carousel-nav { display: flex; gap: 8px; }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 22px; margin: 0 calc(var(--pad) * -1); scroll-padding-left: var(--pad); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { scroll-snap-type: none; }
.rail.is-dragging * { pointer-events: none; }
.tcard { position: relative; flex: none; width: clamp(260px, 26vw, 380px); aspect-ratio: 9 / 13; scroll-snap-align: start; overflow: hidden; background: var(--char); text-align: left; border: 1px solid transparent; transition: border-color 0.4s, transform 0.5s var(--ease); }
.tcard:hover { border-color: rgba(255, 61, 129, 0.5); transform: translateY(-6px); }
.tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tcard:hover img { transform: scale(1.07); }
.tcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.1) 55%, rgba(8, 8, 8, 0.3) 100%); }
.tcard__hook { position: absolute; left: 18px; right: 18px; top: 46%; z-index: 2; font-family: var(--f-display); font-size: 38px; line-height: 0.95; text-shadow: 3px 3px 0 var(--pink); transform: rotate(-3deg); }
.tcard__body { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; }
.tcard__body h4 { font-family: var(--f-display); font-size: 22px; line-height: 1.05; margin-top: 6px; }
.tcard__meta { color: rgba(245, 245, 245, 0.65); }
.tcard__label { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 5px 9px; background: var(--white); color: var(--black); font-weight: 600; }

/* ─────────── about ─────────── */
.about { position: relative; overflow: hidden; background: var(--char); }
.about__bg { position: absolute; inset: -10%; background: radial-gradient(60% 50% at 80% 30%, rgba(138, 66, 255, 0.28), transparent 70%), radial-gradient(50% 50% at 10% 90%, rgba(255, 61, 129, 0.18), transparent 70%), url('../assets/thumbs/t3.webp') center / cover no-repeat; opacity: 0.2; -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.about::before { content: 'X'; position: absolute; right: -4vw; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-size: 70vw; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(255, 61, 129, 0.08); pointer-events: none; }
.about__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.about__title { font-family: var(--f-display); font-size: clamp(42px, 5.6vw, 92px); line-height: 0.95; }
.about__title .w { opacity: 0.14; transition: opacity 0.35s, color 0.35s; }
.about__title .w.on { opacity: 1; }
.about__title .w.hot { color: var(--pink); }
.about__lede { margin-top: 34px; max-width: 600px; font-size: clamp(17px, 1.3vw, 20px); color: rgba(245, 245, 245, 0.82); }
.steps { list-style: none; padding: 0; margin: 46px 0 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__n { color: var(--pink); padding-top: 6px; }
.steps h3 { font-family: var(--f-display); font-size: 30px; letter-spacing: 0.02em; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 4px; max-width: 460px; }
.about__visual { display: grid; justify-items: center; gap: 18px; perspective: 1000px; }
.logo-card { position: relative; width: min(100%, 460px); aspect-ratio: 1; transform-style: preserve-3d; transition: transform 0.2s ease-out; box-shadow: 0 0 0 1px rgba(255, 61, 129, 0.4), 0 40px 120px rgba(255, 61, 129, 0.25), 0 0 80px rgba(138, 66, 255, 0.25); }
.logo-card img { width: 100%; height: 100%; object-fit: cover; }
.logo-card__glare { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.28), transparent 45%); mix-blend-mode: overlay; pointer-events: none; }
.logo-card::before { content: ''; position: absolute; inset: -14px; border: 1px solid rgba(245, 245, 245, 0.14); transform: translateZ(-40px); }
.logo-card__cap { color: var(--muted); }

/* ─────────── socials ─────────── */
.social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.social { --c1: var(--pink); --c2: var(--orange); position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 28px; background: var(--char); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: transform 0.6s var(--ease), border-color 0.4s; }
.social::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.6s var(--ease); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 60%), radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--c2) 40%, transparent), transparent 60%); }
.social:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--c1) 70%, transparent); }
.social:hover::before { opacity: 1; }
.social--youtube { --c1: #ff2a2a; --c2: var(--orange); }
.social--tiktok { --c1: var(--pink); --c2: #25f4ee; }
.social--instagram { --c1: var(--purple); --c2: var(--orange); }
.social--facebook { --c1: #3b6cff; --c2: var(--purple); }
.social__icon { width: 54px; height: 54px; }
.social__icon svg { width: 100%; height: 100%; fill: var(--white); }
.social__name { font-family: var(--f-display); font-size: clamp(32px, 3vw, 46px); line-height: 1; margin-top: auto; padding-top: 40px; }
.social__handle { color: var(--muted); margin-top: 8px; }
.social__go { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.social__go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.5s var(--ease); }
.social:hover .social__go svg { transform: translate(4px, -4px); }
.social.is-soon .social__go { color: rgba(245, 245, 245, 0.45); }
.social.is-soon:hover { transform: none; }

/* ─────────── footer ─────────── */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--black); }
.footer__floor { position: absolute; left: -50%; right: -50%; bottom: 0; height: 60%; opacity: 0.55; background-image: linear-gradient(rgba(138, 66, 255, 0.55) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 66, 255, 0.55) 1px, transparent 1px); background-size: 60px 60px; transform: perspective(500px) rotateX(62deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 90%); mask-image: linear-gradient(0deg, #000 10%, transparent 90%); animation: floor 3s linear infinite; }
@keyframes floor { to { background-position: 0 60px; } }
.footer::before { content: ''; position: absolute; left: 50%; top: 18%; width: 60vw; height: 30vw; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 61, 129, 0.25), transparent); filter: blur(20px); }
.footer__inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--pad) 36px; }
.footer__done { text-align: center; color: var(--pink); margin-bottom: 24px; }
.footer__big { font-family: var(--f-display); font-size: clamp(60px, 15.5vw, 250px); line-height: 0.85; text-align: center; letter-spacing: 0.01em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(245, 245, 245, 0.25); background: linear-gradient(100deg, transparent 35%, var(--pink) 50%, var(--orange) 55%, transparent 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: sweep 7s ease-in-out infinite; user-select: none; }
@keyframes sweep { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.footer__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-top: clamp(50px, 6vw, 90px); }
.footer__cols h4 { color: var(--muted); margin-bottom: 16px; }
.footer__cols a { display: block; padding: 4px 0; color: rgba(245, 245, 245, 0.82); transition: color 0.3s, transform 0.3s var(--ease); }
.footer__cols a:hover { color: var(--pink); transform: translateX(4px); }
.footer__brand img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.footer__brand p { margin-top: 18px; color: var(--muted); max-width: 260px; }
.footer__base { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line); }
.footer__base .mono { color: var(--muted); font-size: 11px; }
.footer__disclaimer { color: rgba(245, 245, 245, 0.4); font-size: 12px; line-height: 1.5; max-width: 620px; }
.to-top { position: relative; width: 56px; height: 56px; display: grid; place-items: center; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--pink); stroke-width: 2; stroke-dasharray: 138.2; stroke-dashoffset: var(--off, 138.2); transition: stroke-dashoffset 0.15s linear; }
.to-top::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid var(--line); transition: background 0.3s; }
.to-top:hover::before { background: rgba(255, 61, 129, 0.15); }
.to-top__arrow { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 2; transition: transform 0.4s var(--ease); }
.to-top:hover .to-top__arrow { transform: translateY(-4px); }

/* ─────────── modal ─────────── */
.modal { width: min(1100px, 92vw); max-height: 90vh; padding: 0; border: 1px solid rgba(255, 61, 129, 0.4); background: var(--black); color: var(--white); overflow: visible; }
.modal::backdrop { background: rgba(8, 8, 8, 0.85); backdrop-filter: blur(10px); }
.modal[open] { animation: modalIn 0.5s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
.modal__close { position: absolute; right: -14px; top: -14px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; background: var(--pink); color: var(--black); }
.modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.modal__body video { width: 100%; max-height: 80vh; background: #000; }
.modal__soon { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; overflow: hidden; }
.modal__soon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(0.45); }
.modal__soon div { position: relative; padding: 24px; }
.modal__soon h3 { font-family: var(--f-display); font-size: clamp(30px, 4vw, 56px); line-height: 1; }
.modal__soon p { color: rgba(245, 245, 245, 0.8); margin: 14px auto 24px; max-width: 460px; }

/* ─────────── responsive ─────────── */
@media (max-width: 1100px) {
  .nav__links { gap: 20px; }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .board__btn { grid-template-columns: 80px minmax(0, 1fr) 120px 40px; }
  .board__btn .board__cell--views, .board__btn .board__cell--dur { display: none; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .chaos { padding: 6px 8px; }
  .chaos__label { display: none; }
  .feed { height: 420vh; }
  .hud--depth { display: none; }
  .hud--tl { top: 84px; font-size: 10px; }
  .scroll-cue { display: none; }
  .screen__hook { font-size: 18px; }
  .plane--title { --title-lift: 16vh; }
  .feed__intro { bottom: 48px; }
  .clips { height: auto; }
  .clips__sticky { position: relative; height: auto; overflow: visible; padding: 100px 0 60px; }
  .clips__side { justify-items: start; }
  .filters { justify-content: flex-start; }
  .clips__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 10px; transform: none !important; }
  .clips__track::-webkit-scrollbar { display: none; }
  .card { width: 82vw; scroll-snap-align: center; transform: none !important; }
  .card--featured { width: 88vw; }
  .clips__progress { display: none; }
  .board__btn { grid-template-columns: 56px 64px minmax(0, 1fr) 30px; gap: 14px; padding: 16px 4px; }
  .board__btn .board__cell { display: none; }
  .board__rank { font-size: 40px; }
  .board__thumb { display: block; width: 64px; aspect-ratio: 1; object-fit: cover; }
  .board__preview { display: none; }
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { order: -1; }
  .logo-card { width: min(78vw, 360px); }
  .footer__base { grid-template-columns: 1fr; }
  .to-top { justify-self: start; }
  .toasts { top: 74px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .social-grid { grid-template-columns: 1fr; }
  .social { min-height: 230px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__brand { grid-column: 1 / -1; }
  .feed__ctas .btn { flex: 1 1 100%; }
}

/* ─────────── reduced motion ─────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .grain { display: none; }
  .feed { height: 100vh; }
  .clips { height: auto; }
  .clips__sticky { position: relative; height: auto; overflow: visible; padding: 100px 0 60px; }
  .clips__track { width: auto; overflow-x: auto; transform: none !important; }
  .card { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
  .about__title .w { opacity: 1; }
}
