/* */
:root {
  --b-bg: #0b0b0b;
  --b-text-1: #f5f5f5; --b-text-2: #fffc; --b-text-3: #fff9;
  --b-fg-secondary: #fffc; --b-fg-tertiary: #fff9;
  --b-brand-main: #e5243b; --b-brand-text-accent: #d03a62;
  --b-status-warning: #ff9f52;
  --b-surface: #171717;
  --b-ease: cubic-bezier(.2, .8, .2, 1);
  --b-dur-navigation: .32s;
  --stage-font: "Nunito Sans", system-ui, sans-serif;
}

/* ---------- nav keys (44px, on-media icons with drop shadow) ---------- */
.nav-key { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nav-key svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)) drop-shadow(0 0 1px rgba(0,0,0,.3)); }
.nav-key:hover { opacity: .8; } .nav-key:active { opacity: .6; }
.nav-key:focus-visible { outline: 2px solid var(--b-brand-main); outline-offset: 2px; }

/* ---------- subtitle layer ---------- */
.sub-layer { position: absolute; inset-inline: 0; bottom: 12%; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; z-index: 2; }
.sub-cue { max-width: 78%; margin: 0; padding: 6px 14px; border-radius: 12px; background: rgba(0,0,0,.35); color: rgba(255,255,255,.97); text-align: center; font-size: 19px; font-weight: 600; line-height: 1.4; text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 0 12px rgba(0,0,0,.35); }
.sub-cue:empty { display: none; }

/* ---------- story page overlay ---------- */
.story-history { position: fixed; inset: 0; z-index: 66; height: 100dvh; background: rgba(10,10,10,.96); backdrop-filter: blur(8px); animation: sh-in var(--b-dur-navigation) var(--b-ease) both; color: var(--b-text-1); }
.story-history[hidden] { display: none !important; }
.story-history.is-closing { animation: sh-out .22s ease-in both; }
@keyframes sh-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes sh-out { to { opacity: 0; transform: scale(.985); } }
.story-history-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }

.story-history[data-layout="page"] {
  --stage-pad: 24px; --stage-left: 104px; --stage-gap: 64px; --stage-col: clamp(480px, 47vw, 700px); --stage-right: 92px;
  --stage-media-w: calc((100dvh - 2 * var(--stage-pad)) * 9 / 16);
}
.story-stage { display: grid; grid-template-columns: minmax(0, var(--stage-media-w)) var(--stage-col); justify-content: center; column-gap: var(--stage-gap); min-height: 100%; padding-inline: var(--stage-left) var(--stage-right); }
.story-stage-media { position: sticky; top: 0; z-index: 1; height: 100dvh; padding: var(--stage-pad) 0; display: flex; align-items: center; justify-content: flex-end; align-self: start; }
.story-history-poster { position: relative; width: min(100%, var(--stage-media-w)); aspect-ratio: 9 / 16; max-height: 100%; background: #000; overflow: hidden; }
.story-history-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.story-history-opening { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s var(--b-ease); pointer-events: none; }
.story-history-opening.is-playing { opacity: 1; }
.story-stage-sound { position: absolute; z-index: 3; inset-inline-end: 14px; bottom: 14px; }
.story-stage-sound .ic-on { display: none; } .story-stage-sound[aria-pressed="true"] .ic-on { display: block; } .story-stage-sound[aria-pressed="true"] .ic-off { display: none; }

.story-stage-col { position: relative; z-index: 2; display: flex; flex-direction: column; min-width: 0; padding: 88px 0 96px; }
.story-stage-eyebrow { margin: 0 0 22px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--b-text-3); }
.story-stage-copy { display: flex; flex-direction: column; gap: 24px; }
.story-stage-head { --stage-avatar-min: 116px; display: flex; align-items: center; gap: 20px; min-width: 0; }
.story-stage-avatar { flex: none; width: var(--stage-avatar-min); height: var(--stage-avatar-min); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.06); }
.story-stage-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.story-stage-avatar.ph-grad { display: grid; place-items: center; font-size: 48px; font-weight: 900; color: rgba(255,255,255,.3); }
.story-stage-words { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.story-stage-name { margin: 0; font-family: var(--stage-font); font-size: 92px; font-weight: 1000; font-stretch: 75%; line-height: .86; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; color: var(--b-text-1); overflow-wrap: anywhere; }
.story-stage-name[data-len="long"] { font-size: 64px; }
.story-stage-name[data-script="cjk"] { line-height: 1.2; }
.story-stage-meta { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; line-height: 24px; color: var(--b-fg-tertiary); min-width: 0; }
.story-stage-heat { display: inline-flex; align-items: center; gap: 4px; font-size: 20px; line-height: 20px; font-weight: 800; color: var(--b-status-warning); font-variant-numeric: tabular-nums; white-space: nowrap; }
.story-stage-heat svg { width: 20px; height: 20px; fill: currentColor; }
.story-stage-byline { color: var(--b-text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-stage-hook { margin: 0 0 8px; font-size: 20px; line-height: 30px; font-weight: 600; color: var(--b-text-1); }
.story-stage-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -16px 0 0; padding: 0; list-style: none; }
.story-stage-tags li { min-height: 24px; padding: 2px 8px; border-radius: 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: #f4b3c8; background: rgba(229,36,59,.22); }
.si-section { display: grid; gap: 8px; min-width: 0; }
.si-label { margin: 0; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--b-text-3); }
.si-text { margin: 0; font-size: 16px; line-height: 26px; color: var(--b-fg-secondary); }
.si-whisper { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.si-whisper-avatar { flex: none; width: 40px; height: 40px; margin-top: 2px; padding: 2px; border: 2px solid var(--b-brand-main); border-radius: 50%; box-sizing: content-box; }
.si-whisper-avatar img, .si-whisper-avatar span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; display: grid; place-items: center; font-weight: 800; }
.si-whisper-body { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.si-whisper-from { margin: 0; font-size: 14px; line-height: 18px; font-weight: 600; color: rgba(255,255,255,.6); }
.si-whisper-from b { color: var(--b-text-1); font-weight: 800; }
.si-whisper-bubble { margin: 0; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--b-brand-text-accent) 28%, transparent); background: color-mix(in srgb, var(--b-brand-main) 16%, transparent); border-radius: 4px 18px 18px 18px; font-size: 16px; line-height: 24px; font-style: italic; font-weight: 500; color: rgba(255,255,255,.97); }
.story-history-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.sh-begin { min-width: 168px; height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; border: 0; border-radius: 16px; background: var(--b-brand-main); color: #fff; font: 700 16px/1 var(--stage-font); letter-spacing: -.01em; cursor: pointer; box-shadow: inset 0 0 0 1px #ffffff38; transition: background-color .16s var(--b-ease); }
.sh-begin:hover { background: #c41d31; }
.sh-begin svg { width: 16px; height: 16px; fill: currentColor; }
.story-history-about { margin: 48px 0 0; display: grid; gap: 12px; }
.story-history-h2 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 800; color: var(--b-text-1); }
.story-history-about-text { margin: 0; font-size: 16px; line-height: 26px; color: rgba(255,255,255,.72); white-space: pre-line; }
.story-history-about-text.is-folded { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.sh-more { justify-self: start; padding: 0; border: 0; background: none; color: var(--b-text-1); font: 600 16px/24px var(--stage-font); cursor: pointer; }
.story-history-section { margin: 40px 0 0; }
.story-history-section .story-history-h2 { margin-bottom: 14px; }
.story-history-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sh-card { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; border: .5px solid rgba(255,255,255,.1); background: #161616; color: #fff; text-decoration: none; }
.sh-card:hover { filter: brightness(1.08); }
.sh-card img, .sh-card .poster-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.sh-card-heat { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(0,0,0,.42); font-size: 12px; font-weight: 800; color: var(--b-status-warning); }
.sh-card-heat svg { width: 12px; height: 12px; fill: currentColor; }
.sh-card-name { position: absolute; inset: auto 0 0; z-index: 1; display: grid; gap: 6px; padding: 72px 16px 16px; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.6) 34%, rgba(0,0,0,.9)); }
.sh-card-name strong { font-size: 20px; line-height: 1.3; font-weight: 800; }
.sh-card-name small { font-size: 14px; line-height: 1.45; color: var(--b-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-stage-back { position: absolute; z-index: 6; top: 24px; inset-inline-start: 24px; }
.story-stage-close { position: absolute; z-index: 6; top: 24px; inset-inline-end: 24px; display: flex; gap: 12px; }

@media (max-height: 860px) {
  .story-history[data-layout="page"] { --stage-pad: 20px; }
  .story-stage-col { padding-top: 76px; }
  .story-stage-eyebrow { margin-bottom: 18px; }
  .story-stage-head { --stage-avatar-min: 100px; }
}
@media (max-width: 1279px) {
  .story-history[data-layout="page"] { --stage-left: 48px; --stage-gap: 40px; --stage-col: clamp(420px, 50vw, 600px); --stage-right: 48px; }
  .story-stage-name { font-size: 72px; }
}
@media (max-width: 899px) {
  .story-history[data-layout="page"] { --stage-left: 28px; --stage-right: 28px; }
  .story-stage { grid-template-columns: minmax(0, 1fr); }
  .story-stage-media { position: relative; height: auto; justify-content: center; padding: 72px 0 0; }
  .story-history[data-layout="page"] .story-history-poster { width: min(100%, 320px); }
  .story-stage-col { padding-top: 32px; }
}

/* ---------- phone layout: full-bleed opening behind a sheet that scrolls up ---------- */
.story-history[data-layout="phone"] { --history-ramp: 120px; --history-progress: 0; background: #000; backdrop-filter: none; }
.story-history[data-layout="phone"] .story-history-stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; transform: scale(calc(1 + .08 * var(--history-progress))) translateY(calc(-28px * var(--history-progress))); transform-origin: 50% 30%; }
.story-history[data-layout="phone"] .story-history-stage .story-history-poster { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.story-history[data-layout="phone"] .story-history-stage .story-history-poster > img,
.story-history[data-layout="phone"] .story-history-stage .story-history-opening { object-position: 50% 0%; }
.story-history[data-layout="phone"] .story-history-stage-dim { position: absolute; inset: 0; z-index: 2; background: #000; opacity: calc(.65 * var(--history-progress)); }
.story-history[data-layout="phone"] .story-history-stage::after { content: ""; position: absolute; inset: 0 0 auto; z-index: 2; height: calc(112px + env(safe-area-inset-top)); background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,0)); }
.story-history[data-layout="phone"] .sub-layer { top: calc(env(safe-area-inset-top) + 64px); bottom: calc(50vh - var(--history-ramp) + 56px); align-items: flex-end; opacity: calc(1 - 8 * var(--history-progress)); }
.story-history[data-layout="phone"] .story-history-scroll { position: relative; z-index: 1; padding-top: calc(50vh - var(--history-ramp)); scrollbar-width: none; }
.story-history[data-layout="phone"] .story-history-scroll::-webkit-scrollbar { display: none; }
.story-history[data-layout="phone"] .story-stage { display: block; padding: 0; }
.story-history[data-layout="phone"] .story-stage-media { display: none; }
.story-history[data-layout="phone"] .story-stage-col { min-height: 100%; padding: var(--history-ramp) 20px calc(104px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgb(0 0 0 / 0) 0, rgb(0 0 0 / .2) calc(var(--history-ramp) * .3), rgb(0 0 0 / .62) calc(var(--history-ramp) * .65), rgb(0 0 0 / .92) var(--history-ramp), #000 calc(var(--history-ramp) + 48px)); }
.story-history[data-layout="phone"] .story-stage-eyebrow { display: none; }
.story-history[data-layout="phone"] .story-stage-copy { gap: 16px; }
.story-history[data-layout="phone"] .story-stage-head { --stage-avatar-min: 0px; }
.story-history[data-layout="phone"] .story-stage-avatar { display: none; }
.story-history[data-layout="phone"] .story-stage-name { font-size: 56px; }
.story-history[data-layout="phone"] .story-stage-tags { margin-top: -8px; }
.story-history[data-layout="phone"] .si-label { color: rgba(255,255,255,.56); }
.story-history[data-layout="phone"] .story-history-actions { position: fixed; z-index: 30; left: calc(20px + env(safe-area-inset-left)); right: calc(20px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); margin: 0; justify-content: center; }
.story-history[data-layout="phone"] .sh-begin { width: 100%; height: 52px; }
.story-history[data-layout="phone"] .story-history-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.story-history[data-layout="phone"] .story-stage-back { top: calc(12px + env(safe-area-inset-top)); inset-inline-start: 5px; }
.story-history[data-layout="phone"] .story-stage-close { top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 16px; }
.story-history[data-layout="phone"] .story-stage-sound { position: fixed; top: calc(12px + env(safe-area-inset-top)); bottom: auto; inset-inline-end: 64px; }
.story-history[data-layout="phone"] .story-history-head-bg { position: absolute; inset: 0 0 auto; z-index: 5; height: calc(68px + env(safe-area-inset-top)); background: linear-gradient(#000 0, #000 calc(100% - 32px), rgb(0 0 0 / 0)); opacity: var(--history-progress); pointer-events: none; }
.story-history:not([data-layout="phone"]) .story-history-head-bg, .story-history:not([data-layout="phone"]) .story-history-stage { display: none; }

/* =====================================================================================
   Home hero (HomeHero): full-height featured story, copy bottom-left, 9:16 card reel right
   ===================================================================================== */
.hero { position: relative; width: 100%; height: 100dvh; min-height: 560px; --hero-x: 80px; --hero-bottom: var(--hero-x); color: var(--b-text-1); background: var(--b-bg); overflow: hidden; }
@media (max-width: 1343px) { .hero { --hero-x: 48px; } }
.hero-cover { position: absolute; inset: 0; z-index: 0; background: #000; overflow: hidden; }
.hero-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero-cover img.in { animation: hero-cover-in .7s ease both; }
@keyframes hero-cover-in { from { opacity: 0; } to { opacity: 1; } }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to right, #0a0a0ad1 0%, #0a0a0a6b 34%, #0a0a0a00 62%), linear-gradient(180deg, #0a0a0a26 0%, #0a0a0a00 25%, #0a0a0a00 55%, #0a0a0aeb 100%); }
.hero-seam { position: absolute; inset: auto 0 0; height: min(42vh, 420px); pointer-events: none; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--b-bg) 48%, transparent) 58%, var(--b-bg) 80%, var(--b-bg) 100%); }
.hero-copy { position: absolute; z-index: 5; inset-inline-start: var(--hero-x); bottom: var(--hero-bottom); width: 520px; max-width: calc(100% - 2 * var(--hero-x)); display: grid; gap: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero-story { display: grid; gap: 14px; min-width: 0; animation: hero-copy-in .28s var(--b-ease) both; }
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; text-shadow: none; }
.hero-tags li { padding: 3px 8px; border-radius: 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: #f4b3c8; background: rgba(229,36,59,.32); backdrop-filter: blur(6px); }
.hero-title { margin: 0; font: 700 clamp(40px, 5vw, 56px)/1.15 var(--stage-font); color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-hook-row { display: flex; align-items: last baseline; gap: 12px; width: min(100%, 560px); min-width: 0; }
.hero-hook { margin: 0; flex: 0 1 auto; min-width: 0; font: 400 16px/1.5 var(--stage-font); color: var(--b-fg-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-more { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 0 2px; border: 0; background: none; color: var(--b-fg-tertiary); font: 600 16px/1 var(--stage-font); cursor: pointer; }
.hero-more:hover { color: var(--b-brand-main); }
.hero-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.hero-actions { display: flex; align-items: center; gap: 16px; width: min(100%, 440px); margin-top: 8px; }
.hero-actions > * { flex: 1 1 0; min-width: 0; }
.hero-begin, .hero-secondary { height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; font: 700 16px/1 var(--stage-font); cursor: pointer; text-shadow: none; }
.hero-begin { border: 0; border-radius: 12px; background: var(--b-brand-main); color: #fff; transition: background-color .16s var(--b-ease); }
.hero-begin:hover { background: #a92851; }
.hero-begin svg { width: 16px; height: 16px; fill: currentColor; }
.hero-secondary { border: 1px solid #fff6; border-radius: 12px; color: var(--b-text-1); background: rgba(10,10,10,.28); backdrop-filter: blur(8px); font-weight: 600; }
.hero-secondary:hover { border-color: rgba(255,255,255,.7); }
.hero-all-ico { display: grid; place-items: center; width: 20px; height: 20px; }
.hero-all-ico svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: opacity .16s var(--b-ease), transform .16s var(--b-ease); }
.hero-all-ico svg:last-child { opacity: 0; transform: translateY(-4px); }
@media (hover: hover) and (pointer: fine) {
  .hero-secondary:hover .hero-all-ico svg:first-child { opacity: 0; transform: translateY(4px); }
  .hero-secondary:hover .hero-all-ico svg:last-child { opacity: 1; transform: none; }
}

/* reel: 5 visible 9:16 cards, the active one in front playing its opening */
.hero-reel { --tw: clamp(150px, 12vw, 216px); --th: calc(var(--tw) * 16 / 9); position: absolute; z-index: 5; inset-inline-end: max(24px, calc(var(--hero-x) - 48px)); bottom: var(--hero-bottom); height: var(--th); display: grid; grid-template-columns: calc(var(--tw) * 3.3) 44px; align-items: center; column-gap: 12px; }
.hero-reel-cards { position: relative; height: 100%; }
.hero-card { position: absolute; top: 50%; left: 50%; width: var(--tw); height: var(--th); padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #111; cursor: pointer;
  transform: translate(-50%, -50%) translateX(calc(var(--d) * var(--tw) * .62)) scale(calc(1 - var(--ad) * .14));
  opacity: calc(1 - var(--ad) * .28); filter: brightness(calc(1 - var(--ad) * .22)); z-index: calc(10 - var(--ad));
  transition: transform .5s var(--b-ease), opacity .5s var(--b-ease), filter .5s var(--b-ease); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.hero-card[data-hidden] { opacity: 0; pointer-events: none; }
.hero-card img, .hero-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.hero-card video { opacity: 0; transition: opacity .4s; }
.hero-card video.on { opacity: 1; }
.hero-card .sub-layer { bottom: 9%; padding: 0 8px; }
.hero-card .sub-cue { font-size: 12px; padding: 3px 8px; border-radius: 8px; max-width: 92%; }
.hero-card-progress { position: absolute; inset: auto 10px 8px; z-index: 3; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero-card-progress i { display: block; height: 100%; width: 0; background: #fff; }
.hero-card:not(.is-active) .hero-card-progress { display: none; }
.hero-card.is-active { box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 24px 60px rgba(0,0,0,.6); }
.hero-next { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(10,10,10,.45); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-next:hover { border-color: rgba(255,255,255,.6); }
.hero-next svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1199px) { .hero-copy { width: 440px; } .hero-reel { --tw: clamp(110px, 12vw, 144px); } }
@media (max-width: 1023px) {
  .hero-copy { bottom: 190px; }
  .hero-reel { --tw: 92px; inset-inline-end: var(--hero-x); bottom: 24px; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: clamp(48px, 2.8vw, 56px); line-height: 1.1; }
  .hero-hook, .hero-more { font-size: clamp(18px, 1.05vw, 22px); }
}
@media (min-width: 1600px) { .hero-copy { width: 700px; } .hero-hook-row { max-width: 700px; } }
@media (max-width: 767px) {
  .hero { --hero-x: 16px; height: 86dvh; }
  .hero-scrim { background: linear-gradient(rgba(10,10,10,.36) 0%, rgba(10,10,10,.02) 36%, rgba(10,10,10,.12) 58%, rgba(10,10,10,.78) 100%); }
  .hero-copy { width: auto; max-width: none; inset-inline-end: var(--hero-x); bottom: 220px; display: block; }
  .hero-story { position: relative; }
  .hero-hook-row { width: calc(100% - clamp(144px, 42vw, 180px)); }
  .hero-hook { font-size: 15px; }
  .hero-more { display: none; }
  .hero-actions { position: absolute; inset-inline-end: 0; bottom: 0; width: auto; margin: 0; }
  .hero-actions > * { flex: 0 0 auto; }
  .hero-begin { width: clamp(140px, 40vw, 176px); height: 48px; }
  .hero-secondary { display: none; }
  .hero-reel { --tw: 92px; inset-inline-end: var(--hero-x); bottom: 24px; grid-template-columns: calc(var(--tw) * 3.3) 44px; }
}

/* */
body.has-hero .topbar { background: linear-gradient(180deg, rgba(10,10,10,.55), rgba(10,10,10,0)); transition: background-color .25s, box-shadow .2s; }
body.has-hero .topbar[data-over-hero="false"] { background: var(--bar); }
.bells-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 8px; margin-inline-start: 4px; border: 0; border-radius: 999px; background: rgba(255,255,255,.08); color: #ffcf4a; font: 800 18px/1 var(--stage-font); cursor: pointer; }
.bells-pill:hover { background: rgba(255,255,255,.14); }
.bells-pill svg { width: 24px; height: 24px; }
.me-avatar { position: relative; width: 36px; height: 36px; margin-inline-start: 8px; padding: 0; border: 0; border-radius: 50%; overflow: visible; background: linear-gradient(135deg, #e0457a, #7d1d4a); color: #fff; font-weight: 800; cursor: pointer; }
.me-avatar::after { content: ""; position: absolute; top: -1px; right: -1px; width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 2px #0b0b0b; }
@media (max-width: 767px) { .bells-pill { height: 34px; font-size: 15px; } .bells-pill svg { width: 20px; height: 20px; } .me-avatar { width: 32px; height: 32px; } }

.nav-item[aria-current="page"] { color: var(--b-brand-main); }

/* signed-out vs signed-in header (simulated login, auth.js) */
body:not(.signed-in) .bells-pill, body:not(.signed-in) .me-avatar { display: none; }
body.signed-in .signin-btn { display: none; }

/* signed-in account group (BrowseTopBar.account): Bells + avatar in one 52px pill */
.account { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.06); margin-inline-start: 4px; }
body:not(.signed-in) .account { display: none; }
body.has-hero .topbar[data-over-hero="true"] .account { background: rgba(10,10,10,.28); backdrop-filter: blur(8px); }
.account .bells-pill { height: 44px; margin: 0; padding: 0 12px 0 8px; border-radius: 12px; background: none; color: #ffcc4d; font-size: 20px; font-weight: 600; }
.account .bells-pill:hover { background: rgba(255,255,255,.08); }
.account .bells-pill svg { width: 22px; height: 22px; }
.account .me-avatar { width: 44px; height: 44px; margin: 0; font-size: 16px; }
@media (max-width: 767px) { .account .bells-pill { height: 36px; font-size: 16px; padding: 0 8px 0 6px; } .account .me-avatar { width: 36px; height: 36px; } }

/* */
.hero-reel-cards { perspective: 900px; }
.hero-card { transform: translate(-50%, -50%) translateX(var(--tx)) rotateY(var(--ry)) scale(var(--sc)); opacity: var(--op); filter: none; z-index: var(--z); }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #000; opacity: var(--dim, 0); pointer-events: none; transition: opacity .5s var(--b-ease); }

/* phone: the backdrop stage ignores clicks so the sheet can scroll over it — but its sound key must stay tappable */
.story-history[data-layout="phone"] > .story-stage-sound { z-index: 31; }
