/* ============================================================
   SLYXI — Premium Agency-Grade Stylesheet
   Based on high-end-visual-design principles
   ============================================================ */

/* ── TOKENS ── */
:root {
  /* OLED black foundation */
  --bg: #050505;
  --surface: #0c0c0f;
  --surface-2: #111115;
  --surface-3: #18181d;

  /* Text */
  --text: #f5f4f7;
  --muted: #8a8690;

  /* Premium accents */
  --violet: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.35);
  --pink: #ec4899;
  --pink-glow: rgba(236, 72, 153, 0.25);
  --gold: #f5c451;
  --green: #72d59b;
  --red: #ff5d7a;

  /* Hairlines — not 1px gray */
  --line: rgba(255, 255, 255, 0.07);
  --line-hover: rgba(255, 255, 255, 0.14);

  /* Radii — squircle territory */
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --radius-pill: 999px;

  /* Shell */
  --shell: 1480px;
  --header: 72px;

  /* Motion — spring physics, not linear */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-fluid: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;
  --duration-reveal: 800ms;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Radial mesh gradient — Ethereal Glass vibe */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle 900px at 82% -10%, rgba(139, 92, 246, 0.15), transparent),
    radial-gradient(circle 600px at 10% 20%, rgba(236, 72, 153, 0.08), transparent),
    radial-gradient(circle 500px at 50% 60%, rgba(91, 33, 182, 0.04), transparent);
  pointer-events: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── TYPOGRAPHY — Premium fonts only ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Clash Display', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ── KICKER — Eyebrow tags ── */
.kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--violet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── BUTTONS — Magnetic hover + Button-in-Button ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font: 700 14px/1 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-spring),
    background var(--duration-normal) var(--ease-fluid),
    box-shadow var(--duration-normal) var(--ease-fluid);
  position: relative;
  overflow: hidden;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: #fff;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.3);
}

.button.primary:hover {
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.45);
  transform: translateY(-1px);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-hover);
}

.button.full { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--violet);
  transition: gap var(--duration-fast) var(--ease-spring);
}
.text-link:hover { gap: 10px; }

/* ── PANEL — Double-Bezel card ── */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── DOUBLE-BEZEL CARD COMPONENT ── */
.double-bezel {
  padding: 3px;
  border-radius: calc(var(--radius) + 3px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.double-bezel > .inner-core {
  background: var(--surface);
  border-radius: calc(var(--radius) + 3px - 3px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

/* ============================================================
   HEADER — Fluid Island Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition:
    background var(--duration-normal) var(--ease-fluid),
    box-shadow var(--duration-normal) var(--ease-fluid);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.92);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.site-header.is-home-header {
  border-bottom-color: transparent;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.75), rgba(5, 5, 5, 0.15));
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr minmax(240px, 360px) auto;
  gap: 24px;
  align-items: center;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 22px/1 'Clash Display', sans-serif;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 0 0 32px var(--violet-glow);
  transition: transform var(--duration-fast) var(--ease-spring);
}
.logo:hover .logo-mark {
  transform: scale(1.08) rotate(-3deg);
}

.logo small {
  display: none;
  color: var(--muted);
  font: 600 10px/1 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Desktop nav */
.desktop-nav .menu {
  display: flex;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
  transition:
    color var(--duration-fast) var(--ease-fluid),
    background var(--duration-fast) var(--ease-fluid);
}

.desktop-nav a:hover,
.desktop-nav .current-menu-item > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.desktop-nav .current-menu-item > a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
}

/* Search */
.header-search {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--duration-fast) var(--ease-fluid);
}
.header-search:focus-within {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.header-search input::placeholder { color: var(--muted); }

.search-icon, .search-toggle { color: var(--muted); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 18px;
  transition:
    background var(--duration-fast) var(--ease-fluid),
    border-color var(--duration-fast) var(--ease-fluid);
}
.icon-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-hover);
}

.header-login {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--line);
  transition: all var(--duration-fast) var(--ease-fluid);
}
.header-login:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-hover);
}

/* Menu hamburger morph */
.menu-button { display: none; }

.menu-bars {
  display: grid;
  gap: 5px;
  width: 18px;
}
.menu-bars i {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-spring),
              opacity var(--duration-fast) var(--ease-fluid);
  transform-origin: center;
}

body.menu-open .menu-bars i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.menu-open .menu-bars i:nth-child(2) {
  opacity: 0;
}
body.menu-open .menu-bars i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── HOME CHIP NAV ── */
.home-chip-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.home-chip-nav::-webkit-scrollbar { display: none; }

.home-chip-nav .chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-fluid);
}

.home-chip-nav .chip.is-active,
.home-chip-nav .chip:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.12));
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.2);
}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 70;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-fluid);
}
.mobile-overlay.open { opacity: 1; }
.mobile-overlay[hidden] { display: none !important; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  z-index: 80;
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 24px;
  transform: translateX(104%);
  transition: transform var(--duration-slow) var(--ease-spring);
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 20px;
  visibility: hidden;
  pointer-events: none;
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.open {
  display: flex;
  transform: none;
  visibility: visible;
  pointer-events: auto;
}
.mobile-drawer[hidden] { display: none !important; visibility: hidden !important; }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.drawer-head strong {
  display: block;
  font: 800 22px 'Clash Display', sans-serif;
}
.drawer-head span {
  color: var(--muted);
  font-size: 13px;
}

.drawer-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.drawer-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}

.drawer-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease-fluid);
}
.drawer-nav .current-menu-item > a,
.drawer-nav a:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.1);
}

.drawer-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.drawer-quick a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-weight: 700;
  font-size: 13px;
  transition: all var(--duration-fast) var(--ease-fluid);
}
.drawer-quick a:hover {
  border-color: var(--line-hover);
  background: var(--surface-3);
}
.drawer-quick i { font-style: normal; font-size: 18px; }

.drawer-cta { margin-top: auto; }

/* ============================================================
   HOME HERO — Cinematic full-bleed
   ============================================================ */
.home-stage { display: block; }

.home-hero {
  position: relative;
  min-height: min(88svh, 820px);
  display: flex;
  align-items: flex-end;
  padding: 120px 0 56px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.7) 38%, rgba(5, 5, 5, 0.15) 70%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.12) 46%, rgba(5, 5, 5, 0.3) 100%),
    var(--cover) center/cover no-repeat;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(139, 92, 246, 0.15), transparent 28%);
  pointer-events: none;
}

.home-hero-grid {
  position: relative;
  z-index: 2;
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: flex-end;
}

/* Live row */
.live-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 700;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.7);
  animation: slyxi-pulse 1.6s infinite;
}
@keyframes slyxi-pulse {
  70% { box-shadow: 0 0 0 14px rgba(255, 77, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); }
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge.exclusive {
  background: rgba(255, 77, 109, 0.15);
  color: #ff4d6d;
  border: 1px solid rgba(255, 77, 109, 0.3);
}

/* Hero copy */
.home-hero-copy h1 {
  font: 800 clamp(42px, 6.4vw, 84px)/0.96 'Clash Display', sans-serif;
  letter-spacing: -0.05em;
  margin: 16px 0 14px;
  max-width: 14ch;
}

.home-hero-lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 0 0 16px;
}

.home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Pulse card — Double-Bezel */
.home-hero-pulse .pulse-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 15, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 80px rgba(0, 0, 0, 0.4);
}

.pulse-card strong {
  display: block;
  font: 700 22px/1.25 'Clash Display', sans-serif;
  margin: 10px 0 16px;
}

.pulse-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pulse-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.pulse-list b { color: #c8b7ff; font-size: 20px; }
.pulse-list span { color: var(--muted); font-size: 13px; text-align: right; }

.pulse-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.pulse-modes button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  font-size: 12px;
  transition: all var(--duration-fast) var(--ease-fluid);
}
.pulse-modes button.is-active,
.pulse-modes button:hover {
  background: linear-gradient(135deg, var(--violet), var(--pink));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  z-index: 3;
  animation: scrollBounce 2s var(--ease-fluid) infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   BENTO GRID — Asymmetrical Bento layout
   ============================================================ */
.home-bento { padding-top: 56px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2 {
  font: 700 clamp(28px, 3.5vw, 42px)/1.1 'Clash Display', sans-serif;
  margin: 10px 0 0;
}
.section-link {
  font-weight: 700;
  color: var(--violet);
  transition: gap var(--duration-fast) var(--ease-spring);
}
.section-link:hover { letter-spacing: 0.02em; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 14px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 160px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
  transition: border-color var(--duration-fast) var(--ease-fluid);
}
.bento-card:hover {
  border-color: var(--line-hover);
}

.bento-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}
.bento-card:hover img {
  transform: scale(1.06);
}

.bento-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent 55%);
}

.bento-tag,
.bento-card strong { position: relative; z-index: 1; }

.bento-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bento-card strong {
  display: block;
  font: 700 18px/1.25 'Clash Display', sans-serif;
  max-width: 28ch;
}

/* Asymmetrical Bento sizes */
.bento-1 { grid-column: span 5; grid-row: span 2; min-height: 340px; }
.bento-2 { grid-column: span 3; min-height: 164px; }
.bento-3 { grid-column: span 4; min-height: 164px; }
.bento-4 { grid-column: span 3; }
.bento-5 { grid-column: span 4; }
.bento-6 { grid-column: span 5; }
.bento-1 strong { font-size: 28px; }

/* ============================================================
   HOME SECTIONS
   ============================================================ */
.home-rail-section,
.home-split,
.home-stories,
.home-audience,
.home-poll,
.home-features { padding-top: 64px; }

.section {
  padding-top: 64px;
}

/* Person rail */
.home-rail .person-poster {
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color var(--duration-fast) var(--ease-fluid);
}
.home-rail .person-poster:hover {
  border-color: var(--line-hover);
}

/* Split layout */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.home-rank {
  padding: 20px;
  position: sticky;
  top: 92px;
  border-radius: var(--radius);
}
.home-rank .button { margin-top: 16px; }

/* Magazine grid */
.magazine-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.magazine-grid .story-card.large { grid-row: 1 / 3; }
.magazine-grid .story-card.large .story-image { height: 100%; min-height: 460px; }
.magazine-grid .story-card.large h3 { font-size: 28px; }

/* Audience cards */
.home-audience {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.audience-card {
  padding: 32px;
  border-radius: var(--radius);
}
.audience-card.love {
  background: radial-gradient(circle at 100% 0, rgba(236, 72, 153, 0.12), transparent 42%), var(--surface);
  border-color: rgba(236, 72, 153, 0.2);
}
.audience-card.behind {
  background: radial-gradient(circle at 0 0, rgba(139, 92, 246, 0.14), transparent 42%), var(--surface);
  border-color: rgba(139, 92, 246, 0.22);
}

.audience-card h2 {
  font: 700 clamp(26px, 3vw, 34px)/1.12 'Clash Display', sans-serif;
  margin: 12px 0;
}
.audience-card > p { color: var(--muted); }

.behind-links {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.behind-links a {
  display: block;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--duration-fast) var(--ease-fluid);
}
.behind-links a:hover {
  border-color: var(--line-hover);
  background: rgba(255, 255, 255, 0.04);
}
.behind-links b { display: block; margin-bottom: 4px; }
.behind-links span { color: var(--muted); font-size: 13px; }

/* Photo rail */
.home-photos .photo-tile { height: 300px; }
.home-poll { margin-top: 8px; }
.home-widgets-fallback { display: none; }

/* ============================================================
   STORY CARDS
   ============================================================ */
.story-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--duration-fast) var(--ease-fluid),
              transform var(--duration-fast) var(--ease-spring);
}
.story-card:hover {
  border-color: var(--line-hover);
  transform: translateY(-2px);
}

.story-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}
.story-card:hover .story-image img {
  transform: scale(1.05);
}

.story-image .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
}

.story-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.story-body h3 {
  font: 700 18px/1.25 'Clash Display', sans-serif;
  margin: 0;
}
.story-body p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  flex: 1;
}
.story-body .meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

/* ============================================================
   PERSON CARDS
   ============================================================ */
.person-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.person-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}
.person-poster:hover img {
  transform: scale(1.06);
}
.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent 55%);
}
.poster-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 1;
}
.poster-meta h3 {
  font: 700 18px/1.25 'Clash Display', sans-serif;
  margin: 0;
}
.poster-meta p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

/* Person talk card */
.person-talk {
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 180px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--duration-fast) var(--ease-fluid);
}
.person-talk:hover { border-color: var(--line-hover); }

.person-talk .media {
  overflow: hidden;
}
.person-talk .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-talk .body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.person-talk h3 {
  font: 700 20px/1.2 'Clash Display', sans-serif;
  margin: 0;
}
.person-talk .trend {
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
}

/* Rank row */
.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--duration-fast) var(--ease-fluid);
}
.rank-row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.rank-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.15);
  color: var(--violet);
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.rank-row img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.rank-row div { flex: 1; min-width: 0; }
.rank-row b { display: block; font-size: 14px; }
.rank-row small { color: var(--muted); font-size: 12px; }

/* ============================================================
   POLL
   ============================================================ */
.poll {
  padding: 32px;
  border-radius: var(--radius);
}
.poll-visual {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.poll-visual em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}
.poll-visual button {
  flex: 1;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  transition: all var(--duration-fast) var(--ease-fluid);
}
.poll-visual button:hover {
  border-color: var(--violet);
  background: rgba(139, 92, 246, 0.1);
}
.poll-visual button.selected {
  border-color: var(--violet);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.15));
}

/* ============================================================
   WIDGETS
   ============================================================ */
.widget {
  padding: 20px;
}
.widget-head {
  margin-bottom: 16px;
}
.widget-title {
  font: 700 16px/1.3 'Clash Display', sans-serif;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 80px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* ============================================================
   BOTTOM NAV (mobile)
   ============================================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 68px;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--line);
  padding: 0 12px;
  align-items: center;
  justify-content: space-around;
}
.bottom-nav a,
.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  background: none;
  border: none;
  padding: 8px;
}
.bottom-nav a.active,
.bottom-nav button.active {
  color: var(--violet);
}

/* ============================================================
   SCROLL ENTRY ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.animate-in {
  opacity: 0;
  animation: fadeUp var(--duration-reveal) var(--ease-out-expo) forwards;
}

.animate-in[data-delay="1"] { animation-delay: 100ms; }
.animate-in[data-delay="2"] { animation-delay: 200ms; }
.animate-in[data-delay="3"] { animation-delay: 300ms; }
.animate-in[data-delay="4"] { animation-delay: 400ms; }

/* Stagger children */
.stagger > * {
  opacity: 0;
  animation: fadeUp var(--duration-reveal) var(--ease-out-expo) forwards;
}
.stagger > *:nth-child(1) { animation-delay: 80ms; }
.stagger > *:nth-child(2) { animation-delay: 160ms; }
.stagger > *:nth-child(3) { animation-delay: 240ms; }
.stagger > *:nth-child(4) { animation-delay: 320ms; }
.stagger > *:nth-child(5) { animation-delay: 400ms; }
.stagger > *:nth-child(6) { animation-delay: 480ms; }

/* ============================================================
   EDITORIAL CELEBRITY PAGE
   ============================================================ */
body.single-celebrity { background: #050508; }
.single-celebrity .site-main { overflow: visible; }

.star-story {
  padding-top: 16px;
  --star-gold: #f0b92f;
  --star-panel: #0c0f12;
  --star-panel-2: #111519;
}

.star-story-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--star-cover) 68% 24%/cover no-repeat;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.star-story-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 7, 0.96) 0%, rgba(3, 5, 7, 0.8) 31%, rgba(3, 5, 7, 0.1) 66%),
    linear-gradient(0deg, rgba(3, 5, 7, 0.88) 0%, transparent 43%),
    linear-gradient(180deg, rgba(3, 5, 7, 0.6), transparent 22%);
}

.star-breadcrumbs {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}
.star-breadcrumbs a:hover { color: var(--star-gold); }

.star-story-copy {
  position: absolute;
  z-index: 2;
  left: 34px;
  bottom: 28px;
  width: min(760px, 70%);
}

.star-story-copy h1 {
  margin: 12px 0 10px;
  font: 800 clamp(38px, 4.2vw, 66px)/1.08 'Clash Display', sans-serif;
  letter-spacing: -0.045em;
}

.star-story-copy > p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
  line-height: 1.5;
}

.star-metrics {
  display: flex;
  align-items: stretch;
  max-width: 710px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  background: rgba(8, 10, 12, 0.75);
  backdrop-filter: blur(16px);
}

.star-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 24px 0;
}

.star-editorial {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}

.star-summary-card,
.star-section-card,
.star-gallery-card,
.star-comments {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.star-floating-actions {
  position: sticky;
  bottom: 24px;
  display: flex;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(24px);
  border: 1px solid var(--line);
  z-index: 40;
}

.star-floating-actions > a,
.star-floating-actions > button {
  flex: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
}

/* ============================================================
   BLOGGERS ARCHIVE & PROFILE
   ============================================================ */
body.post-type-archive-blogger,
body.single-blogger { background: #06080b; }

.bloggers-archive { padding-top: 44px; }

.bloggers-heading h1 {
  margin: 10px 0 6px;
  font: 800 clamp(52px, 7vw, 92px)/0.9 'Clash Display', sans-serif;
  letter-spacing: -0.06em;
}
.bloggers-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.bloggers-search {
  display: flex;
  min-width: 340px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.bloggers-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 12px;
  outline: 0;
}
.bloggers-search button {
  border: 0;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
}

/* Blogger feature card */
.bloggers-feature {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blogger-cover) 72% 24%/cover no-repeat;
}

.bloggers-feature-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 9, 0.97), rgba(5, 7, 9, 0.7) 40%, rgba(5, 7, 9, 0.06) 72%),
    linear-gradient(0deg, rgba(5, 7, 9, 0.8), transparent 45%);
}

.bloggers-feature-copy {
  position: relative;
  z-index: 1;
  width: min(650px, 62%);
  padding: 44px;
}

.blogger-day {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: var(--radius-xs);
  background: rgba(4, 6, 8, 0.72);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
}

.bloggers-feature h2 {
  margin: 12px 0 8px;
  font: 800 clamp(42px, 5vw, 70px)/1 'Clash Display', sans-serif;
}

.bloggers-feature-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.bloggers-feature-stats span {
  min-width: 130px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(8, 11, 14, 0.72);
}
.bloggers-feature-stats small,
.bloggers-feature-stats b { display: block; }
.bloggers-feature-stats small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Blogger card */
.blogger-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all var(--duration-fast) var(--ease-fluid);
}
.blogger-card:hover {
  border-color: var(--line-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.blogger-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}
.blogger-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}
.blogger-card:hover .blogger-card-media img {
  transform: scale(1.06);
}

.blogger-card-body {
  padding: 16px;
}
.blogger-card-body h3 {
  font: 700 16px/1.25 'Clash Display', sans-serif;
  margin: 0;
}
.blogger-card-body p {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 0;
}

/* Blogger profile */
.blogger-profile { padding-top: 16px; }

.blogger-hero {
  display: grid;
  grid-template-columns: 32% minmax(0, 1fr) 28%;
  min-height: 430px;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.blogger-portrait {
  position: relative;
  min-height: 430px;
}
.blogger-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blogger-portrait span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 58%, var(--surface)), linear-gradient(0deg, rgba(5, 7, 9, 0.35), transparent 45%);
}

.blogger-identity {
  align-self: center;
  padding: 32px;
}
.blogger-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.blogger-title-line h1 {
  margin: 8px 0 2px;
  font: 800 clamp(42px, 5vw, 68px)/1 'Clash Display', sans-serif;
  letter-spacing: -0.05em;
}

.blogger-quick-facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-block: 1px solid var(--line);
}
.blogger-quick-facts span { padding: 12px 8px; }
.blogger-quick-facts small,
.blogger-quick-facts b { display: block; }
.blogger-quick-facts small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   RESPONSIVE — TABLETS
   ============================================================ */
@media (max-width: 1180px) {
  .desktop-nav { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-search { display: none; }
  .header-search.is-open {
    display: flex;
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 8px);
    z-index: 5;
    background: var(--surface);
    border-radius: var(--radius-sm);
  }
  .search-toggle { display: inline-grid; place-items: center; }
  .menu-button { display: inline-grid; place-items: center; }

  .home-hero-grid,
  .home-split,
  .home-audience { grid-template-columns: 1fr; }
  .home-hero { min-height: auto; padding: 110px 0 40px; }
  .home-hero-pulse { max-width: 520px; }
  .home-rank { position: static; }
  .magazine-grid { grid-template-columns: 1fr 1fr; }
  .magazine-grid .story-card.large { grid-row: auto; grid-column: 1 / -1; }
  .magazine-grid .story-card.large .story-image { min-height: 320px; height: 320px; }
  .bento-1 { grid-column: span 12; min-height: 280px; }
  .bento-2, .bento-3, .bento-4, .bento-5, .bento-6 { grid-column: span 6; }

  .home-chip-nav { width: min(var(--shell), calc(100% - 28px)); }
}

/* ============================================================
   RESPONSIVE — PHONES
   ============================================================ */
@media (max-width: 760px) {
  .shell { width: min(100% - 24px, var(--shell)); max-width: 100%; }
  .site-header { height: auto; }
  .header-inner { height: 64px; display: flex; justify-content: space-between; gap: 10px; }
  .header-login, .icon-button.notify-button { display: none; }
  .logo small { display: none; }
  .home-chip-nav { padding-bottom: 10px; }

  .home-hero {
    padding: 88px 0 72px;
    min-height: calc(100svh - 64px);
    background:
      linear-gradient(0deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.22) 48%, rgba(5, 5, 5, 0.4) 100%),
      var(--cover) center top/cover no-repeat;
  }
  .home-hero-grid { width: min(100% - 24px, var(--shell)); gap: 16px; }
  .home-hero-copy h1 { font-size: clamp(34px, 10vw, 44px); max-width: none; }
  .home-hero-lead { font-size: 16px; }
  .home-hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .home-hero-actions .button { width: 100%; }
  .scroll-hint { display: none; }

  .bento-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(150px, auto); }
  .bento-1 { grid-column: 1 / -1; min-height: 250px; }
  .bento-2, .bento-3, .bento-4, .bento-5, .bento-6 { grid-column: span 1; min-height: 150px; }
  .bento-1 strong { font-size: 22px; }
  .bento-card strong { font-size: 14px; }

  .home-rail .person-poster { height: 420px; }
  .rail, .photo-rail, .home-rail, .home-photos {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .rail > .person-poster,
  .photo-rail > .photo-tile,
  .home-rail > .person-poster,
  .home-photos > .photo-tile {
    flex: 0 0 74vw;
    max-width: 300px;
    scroll-snap-align: start;
  }

  .people-grid, .home-people, .magazine-grid, .home-audience,
  .dual-cards, .home-features { grid-template-columns: 1fr; }

  .person-talk { grid-template-columns: 38% 1fr; min-height: 170px; }
  .person-talk h3 { font-size: 18px; }

  .magazine-grid .story-card.large .story-image { min-height: 280px; height: 280px; }
  .audience-card { padding: 20px; }
  .home-poll { grid-template-columns: 1fr; padding: 20px; }
  .poll-visual { grid-template-columns: 1fr 1fr; }
  .poll-visual em { display: none; }
  .site-footer { display: none; }
  .bottom-nav { display: grid; }
  body { padding-bottom: 74px; }
  .mobile-drawer { width: min(100vw, 100%); }

  .star-story-hero { min-height: calc(100svh - 64px); border-radius: 0; border-inline: 0; }
  .star-story-copy { left: 16px; right: 16px; bottom: 18px; width: auto; }
  .star-story-layout { grid-template-columns: 1fr; padding: 12px; }
  .star-floating-actions { position: fixed; left: 0; right: 0; bottom: 68px; width: 100%; border-radius: 0; border-inline: 0; }
  body.single-celebrity { padding-bottom: 124px; }

  .blogger-hero { display: block; border-radius: 0; border-inline: 0; }
  .blogger-portrait { min-height: 52svh; }
  .blogger-identity { position: relative; margin-top: -58px; padding: 18px; }
  .blogger-title-line h1 { font-size: 42px; }
}

/* ============================================================
   RESPONSIVE — SMALL PHONES
   ============================================================ */
@media (max-width: 390px) {
  .home-hero-copy h1 { font-size: 32px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-1, .bento-2, .bento-3, .bento-4, .bento-5, .bento-6 { grid-column: 1; }
  .person-talk { grid-template-columns: 1fr; }
  .person-talk .media { min-height: 180px; }
  .pulse-modes { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — LARGE DESKTOPS
   ============================================================ */
@media (min-width: 1600px) {
  :root { --shell: 1600px; }
  .home-hero { min-height: 860px; }
  .home-rail .person-poster { height: 420px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .live-dot { animation: none; }
}
