/* ============================================
   NOT SO SOCIAL — design system
   Direction: "Toxic" (near-black + lime)
   ============================================ */

:root {
  /* surfaces */
  --bg:        #0a0a0b;
  --bg-2:      #111113;
  --bg-3:      #17171a;
  --line:      #1f1f23;
  --line-2:    #2a2a30;

  /* text — bright, readable (warm near-white) */
  --ink:       #f5f5f0;  /* primary text — warm off-white */
  --ink-dim:   #a1a1a6;  /* secondary text — mid grey */
  --ink-mute:  #5c5c66;  /* tertiary — dim grey */

  /* accents — MONOCHROME palette (muted mid-to-dark greys, no whites).
     Original IG colors saved in assets/PALETTE-ig.css for easy restore. */
  --ig-purple: #2a2a2d;  /* darkest accent */
  --ig-pink:   #4a4a4d;  /* primary accent */
  --ig-red:    #5c5c60;  /* hot/live accent */
  --ig-orange: #6e6e72;  /* warm accent */
  --ig-yellow: #888890;  /* bright accent (still muted — no white) */

  /* semantic tokens (names kept for minimal diff) */
  --lime:      #7a7a7f;  /* primary → muted grey */
  --lime-soft: #66666b;
  --cyan:      #4a4a4d;  /* secondary → dark grey */
  --hot:       #8a8a8f;  /* live → medium grey */
  --warn:      #5c5c60;  /* warn → dark-mid grey */

  /* signature gradient — muted charcoal fade, no whites */
  --ig-grad:      linear-gradient(135deg, #6e6e72 0%, #5c5c60 35%, #4a4a4d 65%, #2a2a2d 100%);
  --ig-grad-soft: linear-gradient(135deg, #888890 0%, #6e6e72 25%, #5c5c60 50%, #4a4a4d 75%, #2a2a2d 100%);

  /* type */
  --f-display: 'Anton', 'Oswald', 'Helvetica Neue', system-ui, sans-serif;
  --f-sans:    'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* motion */
  --e-out:  cubic-bezier(.22,.9,.3,1);
  --e-spring: cubic-bezier(.34,1.56,.64,1);

  /* radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* layout */
  --pad: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  padding-bottom: 84px; /* mobile tabbar */
  position: relative;
  font-size: 15px;
  line-height: 1.45;
}

img, video { display: block; max-width: 100%; }
button { font-family: inherit; color: inherit; border: none; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================
   TOP APP BAR
   ============================================ */
.appbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(10,10,11,.72);
  border-bottom: 1px solid var(--line);
}
.appbar .handle {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
}
.appbar .handle .lock {
  color: var(--ink-dim); font-size: 12px;
}
.appbar .handle .caret {
  color: var(--ink-dim); font-size: 10px; margin-left: 2px;
}
.appbar .actions {
  display: flex; align-items: center; gap: 18px;
  color: var(--ink-dim);
}
.appbar .actions button {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  color: var(--ink);
  position: relative;
}
.appbar .actions .dot {
  position: absolute; top: 2px; right: 2px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

/* ============================================
   PROFILE HEADER
   ============================================ */
.profile {
  padding: 28px var(--pad) 8px;
  max-width: var(--max);
  margin: 0 auto;
}
.profile-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

/* avatar with animated story ring */
.avatar-wrap {
  position: relative;
  width: 128px; height: 128px;
  flex-shrink: 0;
}
.avatar-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #6e6e72, #5c5c60, #4a4a4d, #3a3a3d, #2a2a2d, #3a3a3d, #5c5c60, #6e6e72);
  animation: ring-spin 8s linear infinite;
  padding: 3px;
}
.avatar-ring::after {
  content: '';
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--bg);
}
.avatar {
  position: absolute; inset: 6px;
  border-radius: 50%;
  background: #000000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.avatar-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;
  border-radius: 50%;
}
.avatar:has(.avatar-img:not([style*="display: none"])) .mono { display: none; }
.avatar .mono {
  font-family: var(--f-display);
  font-size: 62px;
  letter-spacing: -.02em;
  line-height: 1;
  transform: translateY(1px);
  color: #ffffff;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.live-pill {
  position: absolute; bottom: -4px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--ig-grad);
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(74,74,77,.45);
}

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

/* profile meta */
.profile-meta .top {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.profile-meta .handle-big {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -.02em;
}
.profile-meta .handle-big strong { font-weight: 600; }
.verified {
  display: inline-flex;
  width: 18px; height: 18px;
  align-items: center; justify-content: center;
  background: var(--ig-grad);
  border-radius: 50%;
  color: #ffffff;
  font-size: 11px; font-weight: 900;
  transform: translateY(1px);
}
.btn {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 10px;
  transition: transform .2s var(--e-spring), background .2s, color .2s;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: var(--ig-grad);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: var(--ig-grad-soft);
  filter: brightness(1.1);
}
.btn-ghost {
  background: var(--bg-3);
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--line); }
.btn-icon {
  width: 36px; height: 36px; padding: 0;
  justify-content: center;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 10px;
}

/* stats */
.stats {
  display: flex;
  gap: 36px;
  margin-bottom: 14px;
  font-size: 15px;
}
.stats .stat strong {
  font-weight: 600;
  color: var(--ink);
}
.stats .stat {
  color: var(--ink-dim);
}

/* bio */
.bio-name {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: -.01em;
  line-height: 1;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.bio-text {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 540px;
}
.bio-text .tag {
  background: var(--ig-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.bio-text .dim { color: var(--ink-dim); }
.bio-text .link { color: var(--ig-pink); border-bottom: 1px dashed rgba(74,74,77,.35); }
.bio-text .emoji { filter: grayscale(0); }

/* mobile profile layout — IG-style: avatar left, handle beside, bio + buttons full-width below */
@media (max-width: 720px) {
  .profile { padding: 14px var(--pad) 4px; }

  /* top row: avatar + handle side by side */
  .profile-row {
    display: grid;
    grid-template-columns: 86px 1fr;
    column-gap: 18px;
    row-gap: 10px;
    align-items: center;
  }
  .avatar-wrap { width: 86px; height: 86px; grid-row: 1; grid-column: 1; }
  .avatar .mono { font-size: 42px; }

  /* meta block spans column 2 on first row, then spans full-width below */
  .profile-meta {
    grid-column: 2;
    grid-row: 1;
    display: contents; /* let children place themselves onto the grid */
  }
  .profile-meta .top {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    gap: 6px;
    align-items: center;
    align-self: center;
  }
  .profile-meta .handle-big {
    font-size: 20px;
    width: auto;
    font-weight: 500;
  }
  .profile-meta .handle-big strong { font-weight: 600; }

  /* bio and buttons span the full width below the avatar */
  .profile-meta .bio-block {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
  }
  .profile-meta .buttons-row {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    margin-top: 8px;
  }
  .profile-meta .buttons-row .btn { justify-content: center; padding: 10px 12px; font-size: 14px; }

  .bio-name { font-size: 22px; margin-bottom: 4px; }
  .bio-text { font-size: 14px; line-height: 1.45; }
}

/* ============================================
   HIGHLIGHTS / STORIES STRIP
   ============================================ */
.highlights {
  padding: 20px var(--pad) 8px;
  max-width: var(--max);
  margin: 0 auto;
}
.hl-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
  scrollbar-width: none;
}
.hl-track::-webkit-scrollbar { display: none; }
.hl {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 92px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}
.hl-bubble {
  width: 92px; height: 92px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--line-2), var(--line));
  position: relative;
  transition: transform .25s var(--e-spring);
}
.hl:hover .hl-bubble { transform: translateY(-3px) scale(1.03); }
.hl.hot .hl-bubble {
  background: conic-gradient(from 140deg, #6e6e72, #5c5c60, #4a4a4d, #3a3a3d, #2a2a2d, #3a3a3d, #5c5c60, #6e6e72);
  animation: ring-spin 6s linear infinite;
}
.hl-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(160deg, #1a1a1f, #0a0a0b);
  border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.hl-inner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 2;
}
.hl-fallback {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ink);
  z-index: 1;
  letter-spacing: -.01em;
}
.hl-inner:has(img:not([style*="display: none"])) .hl-fallback { display: none; }

.hl-label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
}
.hl-count { display: none; }

@media (max-width: 720px) {
  .highlights { padding: 14px var(--pad) 4px; }
  .hl-track { gap: 14px; }
  .hl { width: 74px; }
  .hl-bubble { width: 74px; height: 74px; }
  .hl-inner { font-size: 18px; }
  .hl-inner .icon { font-size: 22px; }
  .hl-label { font-size: 12.5px; margin-top: 8px; }
  .hl-count { font-size: 8.5px; }
}

/* ============================================
   PINNED POST / HERO
   ============================================ */
.pinned-wrap {
  padding: 8px var(--pad) 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.pinned {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  min-height: 340px;
}
@media (max-width: 720px) {
  .pinned { aspect-ratio: 4/5; min-height: 0; border-radius: var(--r-lg); }
  .pinned-wrap { padding: 4px var(--pad) 24px; }
}
.pinned .pin-badge {
  position: absolute; top: 16px; left: 16px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(10,10,11,.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pinned .pin-badge svg {
  color: var(--ig-pink);
  filter: drop-shadow(0 0 6px rgba(74,74,77,.5));
}
.pinned .timer {
  position: absolute; top: 16px; right: 16px;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  background: rgba(10,10,11,.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  padding: 6px 10px;
  border-radius: 100px;
  letter-spacing: .08em;
}
.pinned .timer .pulse {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ig-pink);
  box-shadow: 0 0 8px var(--ig-pink);
  margin-right: 6px;
  animation: pulse 1.8s infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.pinned-media {
  position: absolute; inset: 0;
  z-index: 1;
}
/* CSS "video" placeholder — animated gradient scene */
.pinned-scene {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 400px at 20% 110%, rgba(74,74,77,.22), transparent 60%),
    radial-gradient(900px 400px at 85% 0%, rgba(42,42,45,.2), transparent 55%),
    radial-gradient(600px 300px at 70% 90%, rgba(110,110,114,.18), transparent 60%),
    linear-gradient(160deg, #0f0f13 0%, #050506 70%);
  overflow: hidden;
}
.pinned-scene::before {
  content: '';
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: grid-drift 30s linear infinite;
}
@keyframes grid-drift {
  to { transform: translate(-60px, -60px); }
}
.pinned-scene .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  mix-blend-mode: screen;
  opacity: .7;
}
.pinned-scene .orb.a { width: 300px; height: 300px; background: var(--ig-pink); top: -40px; left: 15%; animation: orb-a 14s ease-in-out infinite; opacity: .75; }
.pinned-scene .orb.b { width: 360px; height: 360px; background: var(--ig-purple); bottom: -80px; right: 8%; animation: orb-b 18s ease-in-out infinite; opacity: .7; }
.pinned-scene .orb.c { width: 240px; height: 240px; background: var(--ig-orange); top: 30%; left: 45%; opacity: .5; animation: orb-c 22s ease-in-out infinite; }

@keyframes orb-a {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(60px,40px) scale(1.1); }
}
@keyframes orb-b {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-50px,-30px) scale(1.15); }
}
@keyframes orb-c {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-80px,60px); }
}

.pinned-content {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  gap: 18px;
}
@media (max-width: 720px) {
  .pinned-content { padding: 20px; gap: 14px; }
}
.pinned h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 96px);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  max-width: 15ch;
  text-wrap: balance;
}
.pinned h1 .lime {
  background: var(--ig-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pinned h1 .italic { font-style: italic; font-family: 'Playfair Display', serif; font-weight: 400; letter-spacing: -.01em; }
.pinned .sub {
  font-size: 15px;
  color: var(--ink-dim);
  max-width: 40ch;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .pinned .sub { font-size: 13.5px; }
}
.pinned .cta-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cta-dm {
  background: var(--ig-grad);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 100px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .2s var(--e-spring), box-shadow .3s, filter .3s;
  box-shadow: 0 0 0 0 rgba(74,74,77,.4);
  position: relative;
  overflow: hidden;
}
.cta-dm:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(74,74,77,.35), 0 0 0 1px rgba(74,74,77,.3);
  filter: brightness(1.1);
}
.cta-dm:active { transform: scale(.97); }
.cta-dm .arrow { transition: transform .3s var(--e-out); }
.cta-dm:hover .arrow { transform: translateX(4px); }

.cta-ghost {
  font-size: 13px;
  color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: rgba(10,10,11,.4);
  backdrop-filter: blur(10px);
  transition: color .2s, border-color .2s;
}
.cta-ghost:hover { color: var(--ink); border-color: var(--line-2); }

/* pinned engagement bar */
.pin-engage {
  display: flex; align-items: center; gap: 22px;
  padding: 14px 2px 0;
  font-size: 14px;
  color: var(--ink-dim);
}
.pin-engage .ico {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  transition: color .2s, transform .2s var(--e-spring);
}
.pin-engage .ico:hover { color: var(--ink); }
.pin-engage .ico.liked { color: var(--hot); }
.pin-engage .ico.liked svg { fill: var(--hot); stroke: var(--hot); }
.pin-engage .spacer { flex: 1; }
.pin-engage .ts {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ============================================
   SECTION TABS (feed / reels / tagged)
   ============================================ */
.tabs-wrap {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  position: sticky;
  top: 57px;
  z-index: 40;
  background: rgba(10,10,11,.85);
  backdrop-filter: blur(18px);
}

/* ============================================
   SECTION DIVIDER — used between Reels and Tagged
   ============================================ */
.section-divider {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px var(--pad);
  display: flex;
  justify-content: center;
  background: rgba(10,10,11,.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.section-divider-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-divider-inner svg { opacity: .8; }

/* Extra space above Tagged section to separate it from the reels grid */
.section-divider-tagged { margin-top: 24px; }

@media (max-width: 720px) {
  .section-divider { padding: 14px var(--pad); }
  .section-divider-inner { font-size: 10.5px; letter-spacing: .18em; }
  .section-divider-tagged { margin-top: 16px; }
}
.tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 14px var(--pad);
}
/* Both tabs are matching outlined pills — equally clickable */
.tab {
  position: relative;
  padding: 11px 20px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--ink);
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100px;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .25s, color .25s, transform .18s var(--e-spring), background .25s;
  /* idle shimmer — subtle moving highlight along the border, runs on all tabs */
  animation: tab-idle-shimmer 3.2s ease-in-out infinite;
}
.tab:nth-child(2) { animation-delay: 1.6s; } /* stagger so both tabs shimmer out of phase */

/* the shimmer is drawn as a pseudo-element to keep the text crisp */
.tab::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 100px;
  padding: 1px;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  background-size: 220% 100%;
  background-position: 100% 0;
  animation: tab-border-sweep 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
  opacity: .9;
}
.tab:nth-child(2)::before { animation-delay: 1.6s; }

.tab svg {
  opacity: .7;
  transition: opacity .2s;
  width: 12px; height: 12px;
}
.tab:hover {
  color: var(--ink);
  border-color: rgba(255,255,255,.45);
  transform: translateY(-1px);
  background: rgba(255,255,255,.04);
}
.tab:hover svg { opacity: 1; }
.tab:active { transform: scale(.97); }

/* ACTIVE state — soft filled pill, obviously "you are here" */
.tab.active {
  color: #0a0a0b;
  background: var(--ink);
  border-color: var(--ink);
  animation: none;
}
.tab.active::before { display: none; } /* no shimmer when active */
.tab.active svg { opacity: 1; color: #0a0a0b; stroke: #0a0a0b; }
.tab.active .lbl { color: #0a0a0b; }

/* tab-pip (the pulsing dot on Tagged) */
.tab-pip {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-left: 2px;
  animation: pulse-pip 1.6s ease-in-out infinite;
}
@keyframes pulse-pip {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.5); opacity: .45; }
}

/* idle shimmer keyframes */
@keyframes tab-border-sweep {
  0%   { background-position: 140% 0; }
  55%  { background-position: -40% 0; }
  100% { background-position: -40% 0; }
}
@keyframes tab-idle-shimmer {
  0%, 100% { border-color: rgba(255,255,255,.22); }
  50%      { border-color: rgba(255,255,255,.4);  }
}

@media (max-width: 720px) {
  .tabs { gap: 10px; padding: 12px var(--pad); }
  .tab { padding: 9px 16px; font-size: 10.5px; letter-spacing: .14em; }
  .tab svg { width: 11px; height: 11px; }
}

/* ============================================
   FEED GRID (reels portfolio)
   ============================================ */
.feed-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px 0 40px;
}
/* desktop — tighter, more tiles visible */
@media (min-width: 900px) {
  .feed-wrap { max-width: 860px; }
  .feed { grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px 0 60px; }
}
@media (min-width: 1280px) {
  .feed-wrap { max-width: 980px; }
  .feed { grid-template-columns: repeat(5, 1fr); }
}

.post {
  position: relative;
  aspect-ratio: 9/16;
  background: var(--bg-2);
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  z-index: 1;
  transition:
    transform .5s cubic-bezier(.2,.9,.25,1.15),
    box-shadow .4s,
    z-index 0s linear .3s;
}
.post:hover {
  transform: scale(1.06);
  z-index: 5;
  box-shadow: 0 18px 48px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
  transition:
    transform .5s cubic-bezier(.2,.9,.25,1.15),
    box-shadow .4s,
    z-index 0s linear 0s;
}
.post.wide { aspect-ratio: 9/16; }

/* Feature tile — sized so it never feels overly vertical.
   Mobile (3-col grid): full-width banner, 16:9. Row 2+3 = 3 small tiles each.
     → 1 banner + 6 small = clean 3-row layout.
   Desktop (4-col): feature spans 2×2 (square), + 2 small tiles next to it.
     Row 1: [F F s1 s2] · Row 2: [F F s3 s4] · Row 3: [s5 s6 s7 __]
     We only have 6 small tiles so we need 2x2 feature to reach 10 cells.
     To keep things clean, we widen feature to 2 cols × 1 row instead,
     giving [F F s1 s2] + [s3 s4 s5 s6] = 8 cells = 2 clean rows.
   Wide (5-col): feature 2×2 + 6 small = 10 cells = 2 clean rows. */
.post.feature {
  grid-column: 1 / -1;     /* full-width on mobile */
  grid-row: auto;
  aspect-ratio: 16 / 9;    /* landscape banner */
}
@media (min-width: 900px) {
  .post.feature {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 9 / 8;   /* nearly square, slightly taller */
  }
}
@media (min-width: 1280px) {
  .post.feature {
    grid-row: span 2;
    aspect-ratio: auto;    /* fills 2×2 space */
  }
}

.post-bg {
  position: absolute; inset: 0;
  transition: transform .7s var(--e-out), filter .5s;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.post:hover .post-bg { transform: scale(1.04); filter: brightness(1.08); }

/* Video fills the tile; sits behind deco text */
.post-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
/* When a real video is present, dim the text deco so the footage reads as hero */
.post:has(.post-vid[src]:not([src=""])) .post-deco { opacity: 0; }

/* stylized post backgrounds — stand-ins for client video thumbnails (IG palette) */
.bg-1 { background: radial-gradient(circle at 30% 30%, rgba(92,92,96,.35), transparent 60%), linear-gradient(160deg, #14141a, #0a0a0b 70%); }
.bg-2 { background: radial-gradient(circle at 70% 40%, rgba(92,92,96,.35), transparent 60%), linear-gradient(180deg, #1a1a1d, #0a0a0b 70%); }
.bg-3 { background: radial-gradient(circle at 50% 80%, rgba(74,74,77,.4), transparent 60%), linear-gradient(180deg, #16161a, #0a0a0b 70%); }
.bg-4 { background: radial-gradient(circle at 20% 30%, rgba(92,92,96,.3), transparent 60%), radial-gradient(circle at 80% 70%, rgba(74,74,77,.3), transparent 60%), #0a0a0b; }
.bg-5 { background: radial-gradient(circle at 50% 50%, rgba(110,110,114,.35), transparent 60%), linear-gradient(160deg, #1a1a1a, #0a0a0b 70%); }
.bg-6 { background: radial-gradient(ellipse at bottom, rgba(74,74,77,.4), transparent 60%), radial-gradient(circle at 30% 20%, rgba(136,136,144,.2), transparent 60%), #0a0a0b; }
.bg-7 { background: radial-gradient(circle at 50% 100%, rgba(136,136,144,.3), transparent 55%), radial-gradient(circle at 30% 30%, rgba(110,110,114,.25), transparent 60%), #0a0a0b; }
.bg-8 { background: radial-gradient(circle at 70% 40%, rgba(92,92,96,.4), transparent 60%), linear-gradient(200deg, #14141a, #0a0a0b 70%); }
.bg-9 { background: radial-gradient(circle at 20% 70%, rgba(74,74,77,.3), transparent 60%), radial-gradient(circle at 80% 30%, rgba(92,92,96,.25), transparent 60%), #0a0a0b; }

.post-type {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 26px; height: 26px;
  z-index: 2;
  color: #ffffff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
}
.post .views {
  position: absolute;
  bottom: 10px; left: 10px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.8));
}
.post .views svg { width: 12px; height: 12px; fill: #ffffff; }

.post .title {
  position: absolute;
  inset: auto 12px 40px;
  z-index: 2;
  font-family: var(--f-display);
  font-size: 18px;
  line-height: .95;
  letter-spacing: -.01em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
  max-width: 14ch;
  pointer-events: none;
  transform: translateY(6px);
  opacity: 0;
  transition: transform .5s var(--e-out), opacity .3s;
}
.post:hover .title { transform: translateY(0); opacity: 1; }
.post.feature .title {
  font-size: 40px;
  inset: auto 20px 56px;
  opacity: 1;
  transform: none;
}
@media (max-width: 720px) {
  .post.feature .title { font-size: 24px; inset: auto 14px 40px; }
}

/* stylized decorative content inside post tiles */
.post-deco {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  font-family: var(--f-display);
  font-size: 42px;
  letter-spacing: -.02em;
  text-transform: uppercase;
  transition: transform .7s var(--e-out);
}
.post:hover .post-deco { transform: scale(1.08); }
.post.feature .post-deco { font-size: 96px; }
@media (max-width: 720px) {
  .post-deco { font-size: 24px; }
  .post.feature .post-deco { font-size: 48px; }
}

.post-scan {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 0%, transparent 70%, rgba(0,0,0,.7) 100%);
  z-index: 1;
}
.post-tag {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* double-tap heart */
.post .heart {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0);
  z-index: 3;
  pointer-events: none;
  color: #ffffff;
  filter: drop-shadow(0 0 20px rgba(200,200,204,.6));
}
.post .heart.pop {
  animation: heart-pop .9s var(--e-spring) forwards;
}
@keyframes heart-pop {
  0% { transform: translate(-50%,-50%) scale(0) rotate(-20deg); opacity: 0; }
  30% { transform: translate(-50%,-50%) scale(1.2) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1) rotate(0deg); opacity: 0; }
}

/* ============================================
   TAGGED / COLLAB WALL
   ============================================ */
.tagged {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 3px 0 40px;
}
/* Mobile — 4 columns too so 16 tiles = exactly 4 clean rows */
@media (max-width: 720px) {
  .tagged { grid-template-columns: repeat(4, 1fr); gap: 2px; }
}

.tag-cell {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition:
    background .35s,
    border-color .35s,
    transform .45s cubic-bezier(.2,.9,.25,1.15),
    box-shadow .35s,
    z-index 0s linear .2s;
}
.tag-cell:hover {
  transform: scale(1.12);
  z-index: 5;
  border-color: rgba(255,255,255,.35);
  box-shadow:
    0 12px 40px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.08);
  background: #141418;
  transition:
    background .35s,
    border-color .35s,
    transform .45s cubic-bezier(.2,.9,.25,1.15),
    box-shadow .35s,
    z-index 0s linear 0s;
}
.tag-cell .brand-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 18%;
  transition: transform .45s cubic-bezier(.2,.9,.25,1.15);
  z-index: 2;
}
.tag-cell:hover .brand-img { transform: scale(1.06); }

/* unused placeholders left as no-ops for backwards compatibility */
.tag-cell .logo,
.tag-cell .hover-meta,
.tag-cell .pin-v { display: none;
  position: absolute; inset: 0;
  color: transparent;
  font-size: 0;
  box-shadow: 0 0 8px rgba(74,74,77,.4);
}

/* ============================================
   DM CTA SECTION
   ============================================ */
.dm-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px var(--pad) 80px;
}
.dm-card {
  background: linear-gradient(160deg, #111114, #050506);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 860px) {
  .dm-card { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}
.dm-card::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74,74,77,.15), rgba(42,42,45,.08) 40%, transparent 70%);
  pointer-events: none;
}

.dm-left h2 {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.dm-left h2 .lime {
  background: var(--ig-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dm-left .sub {
  color: var(--ink-dim);
  max-width: 44ch;
  margin-bottom: 24px;
  font-size: 15px;
}
.dm-left .perks {
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.dm-left .perks li {
  list-style: none;
  display: flex; align-items: center; gap: 10px;
}
.dm-left .perks li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--ig-grad);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74,74,77,.5);
}

/* fake phone / DM thread */
.dm-phone {
  background: #000;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex; flex-direction: column;
}
.dm-phone .hdr {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.dm-phone .hdr .mini-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #6e6e72, #5c5c60, #888890, #4a4a4d, #2a2a2d, #4a4a4d, #5c5c60, #6e6e72);
  padding: 2px;
  position: relative;
}
.dm-phone .hdr .mini-av::after {
  content: 'NS';
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 12px;
  color: var(--ink);
  letter-spacing: -.02em;
}
.dm-phone .hdr .name {
  font-weight: 600; font-size: 14px;
}
.dm-phone .hdr .name .v {
  display: inline-flex;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ig-grad); color: #ffffff;
  font-size: 8px; font-weight: 900;
  align-items: center; justify-content: center;
  margin-left: 4px; vertical-align: 1px;
}
.dm-phone .hdr .status {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--ig-pink);
  text-transform: uppercase;
}
.dm-phone .hdr .status::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ig-pink);
  box-shadow: 0 0 8px var(--ig-pink);
  margin-right: 4px; vertical-align: 1px;
  animation: pulse 1.8s infinite;
}

.dm-thread {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding-bottom: 12px;
}
.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.4;
  animation: msg-in .5s var(--e-out) forwards;
  opacity: 0;
  transform: translateY(10px);
}
.msg.them {
  background: #1c1c1f;
  color: var(--ink);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.msg.you {
  background: var(--ig-grad);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
}
.msg .ts {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  margin-top: 4px;
  opacity: .6;
  letter-spacing: .05em;
}
@keyframes msg-in {
  to { opacity: 1; transform: translateY(0); }
}
.typing {
  display: inline-flex; gap: 3px;
  padding: 10px 14px;
  background: #1c1c1f;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-dim);
  animation: typing 1.4s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.dm-input {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 4px 4px;
  border-top: 1px solid var(--line);
}
.dm-input .field {
  flex: 1;
  background: var(--bg-3);
  border-radius: 100px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
}
.dm-input .send {
  background: var(--ig-grad);
  color: #ffffff;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
  transition: transform .2s var(--e-spring);
}
.dm-input .send:hover { transform: rotate(-20deg) scale(1.05); }

/* ============================================
   FOOTER / OUTRO
   ============================================ */
.outro {
  padding: 40px var(--pad) 120px;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  text-align: center;
}
.outro-mark {
  font-family: var(--f-display);
  /* sized so "NOT SO SOCIAL" always fits on one line at any viewport width */
  font-size: clamp(40px, 11.5vw, 180px);
  line-height: .88;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 40px 0 24px;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.outro-logo {
  margin: 40px 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.outro-logo-img {
  max-width: min(900px, 90%);
  width: 100%;
  height: auto;
  /* Force any logo to render as pure white */
  filter: brightness(0) invert(1);
  opacity: .95;
  user-select: none;
}
.outro .locations {
  display: flex; justify-content: center; gap: 28px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.outro .meta {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: .08em;
}

/* ============================================
   MOBILE BOTTOM TAB BAR
   ============================================ */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  display: none;
  background: rgba(10,10,11,.85);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-top: 1px solid var(--line);
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}
@media (max-width: 860px) { .tabbar { display: flex; } }

.tabbar .t {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  color: var(--ink);
  opacity: .7;
  transition: opacity .2s, transform .2s var(--e-spring);
}
.tabbar .t:active { transform: scale(.9); }
.tabbar .t.active { opacity: 1; }
.tabbar .t .label {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  height: 0;
}
.tabbar .t.dm {
  background: var(--ig-grad);
  color: #ffffff;
  border-radius: 100px;
  padding: 10px 16px;
  flex: 0 0 auto;
  flex-direction: row;
  gap: 6px;
  opacity: 1;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
  box-shadow: 0 4px 20px rgba(74,74,77,.35);
}
.tabbar .t.dm .label {
  font-size: 12px;
  letter-spacing: .02em;
  opacity: 1;
  height: auto;
  font-family: inherit;
  text-transform: none;
  font-weight: 700;
}

/* sticky DM pill (desktop) */
.dm-pill {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: var(--ig-grad);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 40px rgba(74,74,77,.35), 0 0 0 1px rgba(74,74,77,.4);
  transition: transform .3s var(--e-spring), box-shadow .3s, filter .3s;
  animation: pill-in .6s var(--e-spring) .8s both;
}
.dm-pill:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 50px rgba(74,74,77,.5);
  filter: brightness(1.1);
}
.dm-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ffffff;
  position: relative;
}
.dm-pill .dot::after {
  content: '';
  position: absolute; inset: -3px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  opacity: .5;
  animation: pill-ping 2s infinite;
}
@keyframes pill-ping {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes pill-in {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 860px) { .dm-pill { display: none; } }

/* ============================================
   STORY OVERLAY (service highlight modal)
   ============================================ */
.story-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.story-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.story-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 9/16;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  transform: scale(.95);
  transition: transform .4s var(--e-spring);
}
.story-overlay.open .story-card { transform: scale(1); }

.story-bars {
  position: absolute; top: 12px; left: 12px; right: 12px;
  z-index: 3;
  display: flex; gap: 4px;
}
.story-bar {
  flex: 1; height: 2px;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.story-bar.active::after {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  background: #ffffff;
  width: 0;
  animation: bar-fill 6s linear forwards;
}
.story-bar.done::after {
  content: '';
  position: absolute; inset: 0;
  background: #ffffff;
}
@keyframes bar-fill { to { width: 100%; } }

.story-header {
  position: absolute; top: 28px; left: 16px; right: 16px;
  z-index: 3;
  display: flex; align-items: center; gap: 10px;
  color: #ffffff;
}
.story-header .mini {
  width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(from 0deg, #6e6e72, #5c5c60, #888890, #4a4a4d, #2a2a2d, #4a4a4d, #5c5c60, #6e6e72);
  padding: 2px;
  position: relative;
}
.story-header .mini::after {
  content: 'NS';
  position: absolute; inset: 2px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: -.02em;
}
.story-header .meta { font-size: 13px; font-weight: 600; }
.story-header .meta .dim {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,.6);
  letter-spacing: .06em;
  margin-left: 6px;
}
.story-close {
  margin-left: auto;
  color: #ffffff; font-size: 20px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}

.story-body {
  position: absolute; inset: 0;
  padding: 80px 28px 110px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 18px;
}
.story-scene {
  position: absolute; inset: 0;
  z-index: 0;
}
.story-content {
  position: relative; z-index: 2;
  color: #ffffff;
}
.story-kicker {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: var(--ig-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.story-title {
  font-family: var(--f-display);
  font-size: 48px;
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.story-desc {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
  max-width: 32ch;
  margin-bottom: 22px;
}
.story-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 24px;
}
.story-chip {
  padding: 6px 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.story-cta-row {
  position: absolute;
  bottom: 20px; left: 16px; right: 16px;
  z-index: 3;
  display: flex; align-items: center; gap: 8px;
}
.story-reply {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 12px;
  text-align: left;
  font-family: var(--f-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.story-dm {
  background: var(--ig-grad);
  color: #ffffff;
  border-radius: 100px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 20px rgba(74,74,77,.35);
}

.story-nav {
  position: absolute; top: 0; bottom: 0;
  width: 30%; z-index: 1;
  cursor: pointer;
}
.story-nav.prev { left: 0; }
.story-nav.next { right: 0; }

/* story scenes backgrounds — instagram palette */
.scene-mgmt     { background: radial-gradient(circle at 20% 30%, rgba(74,74,77,.4), transparent 60%), radial-gradient(circle at 80% 80%, rgba(92,92,96,.25), transparent 60%), #0a0a0b; }
.scene-content  { background: radial-gradient(circle at 70% 20%, rgba(92,92,96,.4), transparent 60%), radial-gradient(circle at 20% 80%, rgba(110,110,114,.25), transparent 60%), #0a0a0b; }
.scene-reels    { background: radial-gradient(circle at 50% 50%, rgba(92,92,96,.4), transparent 60%), radial-gradient(circle at 20% 100%, rgba(74,74,77,.3), transparent 60%), #0a0a0b; }
.scene-film     { background: radial-gradient(circle at 30% 70%, rgba(110,110,114,.35), transparent 60%), radial-gradient(circle at 80% 30%, rgba(92,92,96,.25), transparent 60%), #0a0a0b; }
.scene-edit     { background: radial-gradient(circle at 70% 30%, rgba(74,74,77,.4), transparent 60%), radial-gradient(circle at 20% 80%, rgba(92,92,96,.2), transparent 60%), #0a0a0b; }
.scene-strategy { background: radial-gradient(circle at 20% 20%, rgba(136,136,144,.3), transparent 60%), radial-gradient(circle at 80% 80%, rgba(92,92,96,.3), transparent 60%), #0a0a0b; }
.scene-ads      { background: radial-gradient(circle at 50% 100%, rgba(92,92,96,.35), transparent 60%), radial-gradient(circle at 30% 30%, rgba(110,110,114,.25), transparent 60%), #0a0a0b; }
.scene-takeover { background: radial-gradient(circle at 50% 50%, rgba(92,92,96,.5), transparent 55%), radial-gradient(circle at 20% 20%, rgba(110,110,114,.3), transparent 60%), radial-gradient(circle at 80% 80%, rgba(74,74,77,.35), transparent 60%), #0a0a0b; }

/* animated scene details */
.story-scene::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--e-out), transform .7s var(--e-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 16px 0;
  margin: 40px 0 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: var(--f-display);
  font-size: 34px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.marquee-track span.dim {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245,245,240,.55);
}
.marquee-track .star {
  background: var(--ig-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 26px;
  display: inline-flex; align-items: center;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* highlight ring rotation (used by .hl.hot .hl-bubble) */
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}
.hl.hot .hl-bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 140deg, #6e6e72, #5c5c60, #4a4a4d, #3a3a3d, #2a2a2d, #3a3a3d, #5c5c60, #6e6e72);
  animation: ring-spin 6s linear infinite;
  z-index: 0;
}
.hl.hot .hl-bubble { background: transparent; }
.hl-inner { position: relative; z-index: 1; }

/* section head */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--pad) 12px;
  max-width: var(--max);
  margin: 0 auto;
}
.sec-head h3 {
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.sec-head .note {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* spacing helpers */
.hide-mobile { }
@media (max-width: 720px) { .hide-mobile { display: none !important; } }
.only-mobile { display: none; }
@media (max-width: 720px) { .only-mobile { display: block; } }

/* ============================================
   POST TILE — clickable, video-only (no titles / tags / views)
   ============================================ */
.post { cursor: pointer; }
.post:active { transform: scale(.985); transition: transform .12s; }

/* hide all text / chrome on tiles — just the video */
.post .title,
.post .views,
.post-tag,
.post-type,
.post-deco,
.post-scan { display: none !important; }

/* small "reel" play indicator in corner so tiles read as video */
.post::after {
  content: '';
  position: absolute;
  top: 10px; right: 10px;
  width: 20px; height: 20px;
  z-index: 2;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><polygon points='5 3 19 12 5 21 5 3'/></svg>") no-repeat center / contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
  opacity: .85;
  pointer-events: none;
}

/* (old .tab.tab-brands special-case styling removed — both tabs now use the same pill treatment defined above) */

/* ============================================
   REEL VIEWER — full-screen vertical feed (IG Reels style)
   ============================================ */
.reel-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
  transition: opacity .3s var(--e-out), transform .35s var(--e-out);
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.reel-viewer.open {
  opacity: 1;
  pointer-events: auto;
}
.reel-viewer.closing-right { transform: translateX(100%); opacity: 0; }
.reel-viewer.closing-left  { transform: translateX(-100%); opacity: 0; }

/* top bar */
.reel-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 14px 16px calc(14px + env(safe-area-inset-top));
  padding-top: calc(14px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,0));
  color: #ffffff;
  pointer-events: none;
}
.reel-topbar > * { pointer-events: auto; }
.reel-back, .reel-mute {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  transition: transform .15s var(--e-spring), background .2s;
}
.reel-back:hover, .reel-mute:hover { background: rgba(255,255,255,.15); }
.reel-back:active, .reel-mute:active { transform: scale(.92); }
.reel-title {
  flex: 1;
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: .02em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.reel-mute .ic-off { display: none; }
.reel-viewer.muted .reel-mute .ic-on { display: none; }
.reel-viewer.muted .reel-mute .ic-off { display: block; }

/* swipe hint */
.reel-hint {
  position: fixed;
  top: 78px; right: 16px;
  z-index: 9;
  padding: 6px 12px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 100px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .4s, transform .4s;
  pointer-events: none;
}
.reel-viewer.open .reel-hint.show { opacity: .85; transform: translateX(0); }

/* "Tap for sound" hint shown when viewer is in muted state (autoplay-blocked fallback) */
.reel-sound-hint {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.9);
  z-index: 9;
  padding: 12px 20px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity .3s, transform .3s var(--e-spring);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.reel-sound-hint svg { width: 16px; height: 16px; }
.reel-viewer.muted.open .reel-sound-hint {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.reel-sound-hint:hover { background: rgba(255,255,255,.22); }

/* "This video has no audio track" warning — only shown when a slide is
   marked [data-no-audio] by the diagnostic in app.js AND it's the current slide. */
.reel-no-audio-badge {
  position: fixed;
  top: calc(78px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  padding: 10px 16px;
  background: rgba(255, 180, 0, 0.15);
  border: 1px solid rgba(255, 180, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffd98a;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 100px;
  display: none;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  text-align: center;
  white-space: normal;
  line-height: 1.3;
  pointer-events: none;
}
.reel-no-audio-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.reel-viewer.open .reel-no-audio-badge.show { display: inline-flex; }

/* scroll container */
.reel-scroll {
  position: absolute;
  inset: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reel-scroll::-webkit-scrollbar { display: none; }

/* each slide */
.reel-slide {
  position: relative;
  width: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.reel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0a0b;
}
/* media aspect container to letterbox 9:16 on wider screens */
.reel-media {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: min(100vw, calc(100dvh * 9 / 16));
  margin: 0 auto;
}
.reel-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* fallback scene for missing video */
.reel-scene {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  padding: 40px;
  font-size: clamp(40px, 10vw, 80px);
  line-height: .95;
  letter-spacing: -.02em;
}
.reel-slide:has(video:not([style*="display: none"])) .reel-scene { display: none; }

/* tap-to-pause overlay (whole slide is clickable) */
.reel-tap {
  position: absolute; inset: 0;
  z-index: 3;
}

/* play-pause icon that flashes when tapped */
.reel-playicon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.7);
  z-index: 5;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--e-spring);
}
.reel-playicon.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* bottom overlay: just actions on the right, no text */
.reel-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  padding: 40px 20px calc(60px + env(safe-area-inset-bottom)) 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.5) 80%);
  color: #ffffff;
  display: flex; gap: 16px; align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}
.reel-overlay > * { pointer-events: auto; }
.reel-info { display: none !important; }
.reel-info { flex: 1; min-width: 0; }
.reel-account {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.reel-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: conic-gradient(from 0deg, #6e6e72, #5c5c60, #888890, #4a4a4d, #2a2a2d, #4a4a4d, #5c5c60, #6e6e72);
  padding: 2px;
  position: relative;
  flex-shrink: 0;
}
.reel-avatar::after {
  content: 'NS';
  position: absolute; inset: 2px;
  border-radius: 50%;
  background: #0a0a0b;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 11px;
  color: #ffffff;
  letter-spacing: -.02em;
}
.reel-account-name {
  font-weight: 600;
  font-size: 14px;
}
.reel-account-dot { opacity: .5; margin: 0 4px; }
.reel-follow {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 6px;
  color: #ffffff;
  background: transparent;
  transition: background .2s;
}
.reel-follow:hover { background: rgba(255,255,255,.15); }
.reel-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: 6px;
}
.reel-caption {
  font-size: 14.5px;
  line-height: 1.4;
  max-width: 48ch;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.reel-caption strong { font-weight: 600; }
.reel-sound {
  margin-top: 10px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
}
.reel-sound svg { width: 14px; height: 14px; }

/* right-rail actions */
.reel-actions {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  padding-bottom: 12px;
}
.reel-action {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  background: transparent;
  transition: transform .15s var(--e-spring);
}
.reel-action:active { transform: scale(.88); }
.reel-action svg {
  width: 30px; height: 30px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.55));
}
.reel-action.liked svg { fill: #a8a8ad; stroke: #a8a8ad; animation: heart-pop .4s var(--e-spring); }

/* progress bar at bottom of each slide (subtle) */
.reel-progress {
  position: absolute;
  bottom: env(safe-area-inset-bottom);
  left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,.18);
  z-index: 5;
}
.reel-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
}

/* edge indicators shown while swiping horizontally */
.reel-edge {
  position: fixed;
  top: 0; bottom: 0;
  width: 4px;
  z-index: 11;
  background: var(--ig-grad);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.reel-edge.left  { left: 0; }
.reel-edge.right { right: 0; }
.reel-viewer.edge-r .reel-edge.right { opacity: .9; }
.reel-viewer.edge-l .reel-edge.left  { opacity: .9; }

/* body scroll lock helper */
body.reel-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* desktop controls — hidden by default (mobile), shown in desktop media query */
.reel-desktop-actions,
.reel-nav-arrow { display: none; }

/* ============================================
   DESKTOP REEL VIEWER — centered vertical player + right-rail buttons (IG/TikTok.com style)
   ============================================ */
@media (min-width: 900px) {
  /* center the scroll slides and keep a comfortable horizontal gutter */
  .reel-slide {
    padding: 40px 0;
    align-items: center;
    justify-content: center;
  }

  /* media container = 9:16 phone column, height-capped */
  .reel-media {
    position: relative;
    width: auto;
    height: calc(100dvh - 80px);
    max-height: 860px;
    aspect-ratio: 9 / 16;
    max-width: calc((100dvh - 80px) * 9 / 16);
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 90px rgba(0,0,0,.8);
  }
  .reel-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0a0a0b;
  }

  /* keep the scene text centered inside the phone column */
  .reel-scene {
    padding: 40px 20px;
    font-size: clamp(36px, 6vh, 64px);
  }

  /* overlay (gradients, progress bar) stays inside the media column */
  .reel-overlay {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc((100dvh - 80px) * 9 / 16);
    max-width: calc(860px * 9 / 16);
    padding: 40px 14px 24px 14px;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.45) 80%);
    justify-content: flex-end;
    border-radius: 0 0 18px 18px;
    /* hide mobile's inline action rail — we'll move it outside instead */
  }
  .reel-overlay .reel-actions { display: none; }

  /* progress bar tucked inside the phone column */
  .reel-progress {
    left: 50%;
    transform: translateX(-50%);
    width: calc((100dvh - 80px) * 9 / 16);
    max-width: calc(860px * 9 / 16);
    bottom: 40px;
    border-radius: 0 0 18px 18px;
  }

  /* desktop action rail — positioned BESIDE the phone column */
  .reel-media::after { content: none; } /* reserved, unused */

  .reel-desktop-actions {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(50% + (100dvh - 80px) * 9 / 32 + 24px); /* right edge of phone + 24px */
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    z-index: 5;
    pointer-events: auto;
  }
  .reel-desktop-actions button {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: #ffffff;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s var(--e-spring), background .2s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .reel-desktop-actions button:hover { background: rgba(255,255,255,.18); transform: scale(1.08); }
  .reel-desktop-actions button:active { transform: scale(.92); }
  .reel-desktop-actions button.liked svg { fill: #a8a8ad; stroke: #a8a8ad; animation: heart-pop .4s var(--e-spring); }
  .reel-desktop-actions button svg { width: 22px; height: 22px; }
  .reel-desktop-actions .label {
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: .14em;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
  }
  .reel-desktop-actions .action-group {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
  }

  /* prev/next arrow buttons on desktop — flank the phone column */
  .reel-nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: #ffffff;
    display: flex; align-items: center; justify-content: center;
    z-index: 11;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .2s, transform .15s var(--e-spring);
    cursor: pointer;
  }
  .reel-nav-arrow:hover { background: rgba(255,255,255,.18); }
  .reel-nav-arrow.up   { right: 24px; top: calc(50% - 30px); }
  .reel-nav-arrow.down { right: 24px; top: calc(50% + 30px); }
  .reel-nav-arrow svg { width: 20px; height: 20px; }

  /* hide mobile-only edge gradients */
  .reel-edge { display: none; }

  /* hide mobile swipe hint on desktop */
  .reel-hint { display: none; }
}

/* on very short desktops, shrink the phone column */
@media (min-width: 900px) and (max-height: 700px) {
  .reel-media {
    height: calc(100dvh - 60px);
    max-height: calc(100dvh - 60px);
    max-width: calc((100dvh - 60px) * 9 / 16);
  }
  .reel-overlay, .reel-progress {
    width: calc((100dvh - 60px) * 9 / 16);
  }
  .reel-desktop-actions {
    left: calc(50% + (100dvh - 60px) * 9 / 32 + 16px);
  }
}

/* outro logo — full white render */
.outro .outro-logo-img,
.outro img { filter: brightness(0) invert(1) !important; }
.outro .outro-mark { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
