/* Home page: the hero, and the screenshots in each product panel. Tokens come from index.html. */

/* ---------- Hero ---------- */
.hero2 { position: relative; min-height: 100svh; margin-top: -78px; padding-top: 78px; overflow: hidden; isolation: isolate;
  --mx: 50%; --my: 30%; }
.hero2::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(106,168,255,.13), transparent 60%); }
.streaks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; opacity: .9; }
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -4; filter: blur(80px) saturate(140%); opacity: .7; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora i:nth-child(1) { width: 55vw; height: 40vw; left: 5%; top: 0; background: radial-gradient(circle, rgba(94,231,245,.42), transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 60vw; height: 45vw; right: -5%; top: 5%; background: radial-gradient(circle, rgba(160,107,255,.45), transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 50vw; height: 35vw; left: 25%; top: 35%; background: radial-gradient(circle, rgba(70,120,255,.5), transparent 65%); animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(12vw, 8vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-14vw, 10vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(8vw, -12vh) scale(1.2); } }
.grid-floor { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(140,170,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(140,170,255,.13) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(500px) rotateX(62deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 60%, transparent); mask-image: linear-gradient(180deg, transparent, #000 35%, #000 60%, transparent);
  animation: floor 6s linear infinite; }
@keyframes floor { to { background-position: 0 64px, 0 0; } }

.hero2-copy { position: relative; text-align: center; padding-top: clamp(56px, 9vh, 110px); }
.hero2 .eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--edge);
  background: rgba(10,14,30,.55); backdrop-filter: blur(8px); -webkit-text-fill-color: initial; color: var(--cyan); }
.hero2 .eyebrow .live { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2.4s ease-in-out infinite; }
.hero2 h1 { margin: 0 auto; max-width: 16ch; font-size: clamp(46px, 8.6vw, 116px); line-height: .98; letter-spacing: -.045em;
  background: none; color: var(--text); -webkit-text-fill-color: initial; }
.hero2 h1 .br { display: none; }
@media (min-width: 900px) { .hero2 h1 .br { display: block; } .hero2 h1 { max-width: none; } }
.hero2 .w { display: inline-block; opacity: 0; transform: translateY(.5em) rotateX(-40deg); filter: blur(10px); transform-origin: 50% 100%;
  background: linear-gradient(180deg, #fff 0%, #DCE3F5 50%, #9AA6C7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2 .w.g { background: linear-gradient(95deg, var(--cyan), var(--accent) 35%, #A9CCFF 55%, var(--accent) 75%, var(--cyan) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; }
body:not(.intro-on) .hero2 .w { animation: wordIn .9s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i) * .08s + .1s); }
body:not(.intro-on) .hero2 .w.g { animation: wordIn .9s cubic-bezier(.16,1,.3,1) forwards, shimmer 6s linear 1.4s infinite; animation-delay: calc(var(--i) * .08s + .1s), 1.4s; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes shimmer { to { background-position: -250% 0; } }
.hero2 .h-in { opacity: 0; transform: translateY(16px); }
body:not(.intro-on) .hero2 .h-in { animation: wordIn .9s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i) * .08s + .1s); }
.hero2 .lede { margin: 26px auto 0; max-width: 58ch; }
.hero2 .actions { justify-content: center; }
.hero2 .btn.primary { position: relative; overflow: hidden; }
.hero2 .btn.primary::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: btnSweep 4s ease-in-out 2.5s infinite; }
@keyframes btnSweep { 0%, 70% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(220%) skewX(-20deg); } }

/* The 3D stage of product screens */
.stage { position: relative; height: clamp(320px, 46vw, 600px); margin-top: clamp(30px, 5vh, 60px); perspective: 1600px; perspective-origin: 50% 0%; }
.rig { position: absolute; inset: 0; transform-style: preserve-3d; --rx: 14deg; --ry: 0deg; --ty: 0px;
  transform: translateY(var(--ty)) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.s { position: absolute; left: 50%; top: 0; display: block; text-decoration: none; transform-style: preserve-3d;
  opacity: 0; animation: cardIn 1.3s cubic-bezier(.16,1,.3,1) forwards; }
body.intro-on .s { animation-play-state: paused; }
.s .frame { animation: bob 7s ease-in-out infinite; animation-delay: var(--d); transition: box-shadow .4s, transform .4s; }
.s:hover .frame { box-shadow: 0 0 0 1px rgba(160,190,255,.5), 0 30px 80px rgba(70,110,255,.45); }
.s .cap { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); white-space: nowrap; font: 600 12px/1 "Inter Tight", sans-serif;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .3s; }
.s:hover .cap { opacity: 1; }
@keyframes bob { 50% { transform: translateY(-12px); } }
@keyframes cardIn { from { opacity: 0; filter: blur(12px); } to { opacity: 1; filter: blur(0); } }
.s-center    { width: min(58vw, 760px); margin-left: calc(min(58vw, 760px) / -2); transform: translateZ(80px); z-index: 5; animation-delay: .7s; }
.s-left      { width: min(36vw, 470px); margin-left: calc(min(36vw, 470px) * -1.42); top: 9%; transform: translateZ(-40px) rotateY(28deg); z-index: 3; animation-delay: .85s; }
.s-right     { width: min(15vw, 200px); margin-left: calc(min(58vw, 760px) / 2 - min(5vw, 60px)); top: -3%; transform: translateZ(170px) rotateY(-18deg); z-index: 6; animation-delay: 1s; }
.s-far-right { width: min(30vw, 390px); margin-left: calc(min(58vw, 760px) / 2 + min(6vw, 90px)); top: 20%; transform: translateZ(-120px) rotateY(-32deg); z-index: 2; animation-delay: 1.1s; }
.s-far-left  { width: min(24vw, 310px); margin-left: calc(min(36vw, 470px) * -1.95); top: 52%; transform: translateZ(60px) rotateY(24deg); z-index: 4; animation-delay: 1.2s; }
.s-back      { width: min(22vw, 300px); margin-left: calc(min(22vw, 300px) / -2 - 4vw); top: -16%; transform: translateZ(-260px); z-index: 1; animation-delay: 1.25s; opacity: .7; }
.orb { position: absolute; left: 50%; top: 38%; width: 60vw; height: 22vw; margin-left: -30vw; transform: translateZ(-300px); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90,140,255,.45), rgba(160,107,255,.18) 60%, transparent); filter: blur(30px); pointer-events: none; }

/* Ticker */
.ticker { position: absolute; left: 0; right: 0; bottom: 30px; overflow: hidden; z-index: 7;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker .track { display: flex; gap: 26px; width: max-content; animation: tick 50s linear infinite; font: 600 13px/1 "Inter Tight", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.ticker b { color: var(--accent); font-weight: 400; }
@keyframes tick { to { transform: translateX(-50%); } }
.hero2::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 6; pointer-events: none; background: linear-gradient(180deg, transparent, var(--bg) 75%); }
.scroll-cue { position: absolute; left: 50%; bottom: 74px; z-index: 8; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid rgba(255,255,255,.25); border-radius: 14px; }
.scroll-cue i { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 860px) {
  .stage { height: 96vw; }
  .s-center { width: 84vw; margin-left: -42vw; }
  .s-left, .s-far-right, .s-back { display: none; }
  .s-right { width: 30vw; margin-left: 14vw; top: 30%; }
  .s-far-left { width: 44vw; margin-left: -46vw; top: 48%; }
  .scroll-cue { display: none; }
}

/* ---------- Frames: window, phone, card ---------- */
.frame { position: relative; overflow: hidden; background: #0A0C14; box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(160,175,255,.16); }
.frame img { display: block; width: 100%; height: auto; }
.frame.win { border-radius: 14px; }
.frame.win .bar { display: flex; gap: 6px; padding: 9px 12px; background: linear-gradient(180deg, #1A1D2A, #12141E); border-bottom: 1px solid rgba(255,255,255,.06); }
.frame.win .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3A3F52; }
.frame.win .bar i:nth-child(1) { background: #FF5F57; } .frame.win .bar i:nth-child(2) { background: #FEBC2E; } .frame.win .bar i:nth-child(3) { background: #28C840; }
.frame.phone { border-radius: 13% / 6.2%; border: 5px solid #1C1E26; box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.08); }
.frame.card { border-radius: 18px; background: none; }

/* ---------- Product panels with screenshots ---------- */
.product.prod { grid-template-columns: auto 1fr; }
.prod::after { content: ""; position: absolute; inset: auto -20% -40% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--pa) 22%, transparent), transparent 70%); }
.prod .btns .btn.primary { margin-top: 22px; }
.pshots { grid-column: 1 / -1; position: relative; margin-top: 10px; display: grid; grid-template-columns: 1fr; }
.pshots figure { margin: 0; }
.pshots figcaption { margin-top: 12px; font-size: 13.5px; color: var(--faint); text-align: center; }
.pshots .main .frame { transform: perspective(1400px) rotateX(6deg); transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.prod:hover .pshots .main .frame { transform: perspective(1400px) rotateX(0deg); }
.pshots .pip { position: absolute; right: -10px; bottom: 30px; width: 34%; animation: bob 7s ease-in-out infinite; }
.pshots .pip figcaption { text-align: right; }
.pshots .main .frame.card { max-width: 720px; margin: 0 auto; }
.pshots.phones { display: flex; justify-content: center; gap: clamp(10px, 2vw, 26px); padding: 10px 0 6px; }
.pshots.phones .frame { width: min(22%, 210px); }
.tilt { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.pshots.phones .t0 { transform: translateY(18px) rotate(-4deg); } .pshots.phones .t1 { transform: translateY(-6px) rotate(-1deg); }
.pshots.phones .t2 { transform: translateY(-6px) rotate(1deg); } .pshots.phones .t3 { transform: translateY(18px) rotate(4deg); }
.prod:hover .pshots.phones .frame { transform: none; }
@media (max-width: 760px) {
  .pshots .pip { position: static; width: 70%; margin: 18px auto 0; animation: none; }
  .pshots .pip figcaption { text-align: center; }
  .pshots.phones { flex-wrap: wrap; } .pshots.phones .frame { width: 44%; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora i, .grid-floor, .ticker .track, .s .frame, .scroll-cue i, .pshots .pip, .hero2 .btn.primary::after, .hero2 .eyebrow .live { animation: none !important; }
  .hero2 .w, .hero2 .h-in { opacity: 1 !important; transform: none; filter: none !important; animation: none !important; }
  .s { opacity: 1; filter: none; animation: none !important; }
}

header { z-index: 10; }
.product.prod { isolation: isolate; }
.frame.card { box-shadow: none; filter: drop-shadow(0 24px 50px rgba(0,0,0,.55)); }

/* Phones: stack the product panels */
@media (max-width: 760px) {
  .product.prod { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px; }
  .product.prod .icon-col { flex-direction: row; align-items: center; gap: 14px; }
  .product.prod .icon-col .app, .product.prod .icon-col img { width: 64px; height: 64px; border-radius: 16px; }
  .product.prod .who { text-align: left; max-width: none; font-size: 14px; letter-spacing: 0; }
  .product.prod h3 { font-size: 22px; }
  .product.prod p { font-size: 16px; }
  .product.prod .points, .product.prod .points.three { grid-template-columns: 1fr; gap: 8px; font-size: 15px; }
  .product.prod .btns { flex-direction: column; }
  .product.prod .btns .btn { justify-content: center; margin-top: 0; }
  .product.prod .btns { margin-top: 20px; gap: 10px; }
  .pshots { margin-top: 4px; }
  .pshots .main .frame { transform: none; }
  .pshots.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .pshots.phones .frame { width: 100%; }
  .pshots.phones .t0, .pshots.phones .t1, .pshots.phones .t2, .pshots.phones .t3 { transform: none; }
  .lineup a { padding: 12px; }
  .hero2-copy { padding-top: 40px; }
  .hero2 .actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero2 .btn { justify-content: center; }
  .stage { height: 88vw; margin-top: 34px; }
  .s-center { width: 88vw; margin-left: -44vw; top: 0; }
  .s-right { width: 28vw; margin-left: 17vw; top: 26%; }
  .s-far-left { width: 46vw; margin-left: -47vw; top: 50%; }
  .s .cap { display: none; }
  .ticker { bottom: 18px; }
}
@media (max-width: 760px) {
  nav { display: flex; }
  nav a:not([href="#products"]) { display: none; }
  nav a[href="#products"] { padding: 7px 12px; border: 1px solid var(--edge); border-radius: 10px; color: var(--text); background: rgba(10,14,30,.5); }
}

/* Founder photo in a circle */
.avatar.photo { display: block; width: 76px; height: 76px; padding: 0; object-fit: cover; object-position: 56% 38%;
  border: 2px solid rgba(140,170,255,.45); box-shadow: 0 0 0 5px rgba(106,168,255,.08), 0 12px 30px rgba(70,110,255,.3); }
.person .avatar { width: 76px; height: 76px; font-size: 22px; }

/* Hero copy, redone */
.hero2 .lede { margin-top: 28px; max-width: 46ch; font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: #B9BED2; }
.hero2 .uses { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero2 .uses a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; text-decoration: none;
  font: 600 14.5px/1 "Inter Tight", sans-serif; color: var(--text); background: rgba(16,22,44,.6); border: 1px solid rgba(140,170,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .25s, transform .25s, background .25s; }
.hero2 .uses a:hover { border-color: rgba(94,231,245,.6); background: rgba(30,50,90,.6); transform: translateY(-2px); }
.hero2 .uses i { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--accent)); box-shadow: 0 0 10px rgba(94,231,245,.7); }
.hero2 .actions { margin-top: 30px; }
@media (max-width: 760px) {
  .hero2 .lede { font-size: 17px; max-width: 34ch; }
  .hero2 .uses { gap: 8px; } .hero2 .uses a { font-size: 13.5px; padding: 9px 13px; }
}
.hero2 h1 .br { display: block; }
@media (max-width: 760px) { .hero2 h1 { font-size: clamp(36px, 11vw, 46px); } }
@media (max-width: 760px) { .hero2 h1 { font-size: clamp(30px, 9vw, 40px); letter-spacing: -.04em; } }
@media (max-width: 760px) { .hero2 .lede { max-width: none; font-size: 16px; line-height: 1.5; letter-spacing: -.005em; } }

/* Founder emails */
.person .email { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 15px; color: var(--cyan); text-decoration: none; }
.person .email::before { content: ""; width: 16px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px;
  background: linear-gradient(to top right, transparent 46%, currentColor 47% 53%, transparent 54%) left top/50% 70% no-repeat,
              linear-gradient(to top left, transparent 46%, currentColor 47% 53%, transparent 54%) right top/50% 70% no-repeat; opacity: .9; }
footer .cols a.brand { display: flex; padding: 0; }
.person .email:hover { text-decoration: underline; }
@media (max-width: 760px) { .contact .actions { flex-direction: column; align-items: stretch; } .contact .actions .btn { justify-content: center; font-size: 14px; } }
.contact .btn.hello { font-size: clamp(16px, 2vw, 19px); padding: 17px 28px; border-radius: 14px; }
footer .cols a.foot-mail { display: inline-block; margin-top: 12px; color: var(--cyan); }
footer .cols a.foot-mail:hover { color: var(--text); }
@media (max-width: 760px) { .contact .actions { align-items: center; } }
footer .made { display: inline-flex; align-items: center; gap: 6px; }
footer .heart { width: 15px; height: 15px; fill: #FF4D6D; filter: drop-shadow(0 0 6px rgba(255,77,109,.6)); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { footer .heart { animation: none; } }

/* ---------- Products, Netflix style: billboard + shelves ---------- */
.bb { position: relative; margin: clamp(30px, 5vw, 48px) calc(50% - 50vw) 0; height: clamp(520px, 74vh, 720px); isolation: isolate; overflow: hidden; }
.bb-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.bb-slide.on { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.bb-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 9s linear; }
.bb-slide.on .bb-art { transform: scale(1); }
.bb-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,6,11,.96) 0%, rgba(5,6,11,.82) 28%, rgba(5,6,11,.25) 58%, rgba(5,6,11,0) 75%),
              linear-gradient(0deg, var(--bg) 0%, rgba(5,6,11,.6) 22%, rgba(5,6,11,0) 45%),
              linear-gradient(180deg, var(--bg) 0%, rgba(5,6,11,0) 16%); }
.bb-shade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--pa) 26%, transparent), transparent 70%); mix-blend-mode: screen; }
.bb-copy { position: absolute; left: 0; right: 0; bottom: clamp(118px, 15vh, 150px); z-index: 2; }
.bb-copy > * { max-width: 540px; }
.bb-kicker { display: flex; align-items: center; gap: 10px; font: 600 12px/1 "Inter Tight", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: rgba(241,243,250,.78); }
.bb-kicker .bb-icon, .bb-kicker img, .bb-kicker svg { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.bb-name { margin-top: 14px; font: 800 clamp(44px, 6.6vw, 84px)/.95 "Inter Tight", sans-serif; letter-spacing: -.045em; max-width: 12ch;
  background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--pa) 45%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.55)); }
.bb-meta { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 15px; color: var(--muted); }
.bb-badge { padding: 4px 10px; border-radius: 6px; font: 700 12px/1.3 "Inter Tight", sans-serif; letter-spacing: .04em; color: #05060B; background: linear-gradient(135deg, var(--pa), var(--pb)); }
.bb-line { margin-top: 14px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; color: var(--text); text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.bb-genres { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: rgba(241,243,250,.7); }
.bb-genres span + span::before { content: "•"; margin: 0 10px; color: var(--pa); }
.bb-btns { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.bb-btns a { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px 13px 20px; border-radius: 8px; font: 700 16px/1 "Inter Tight", sans-serif; text-decoration: none; transition: transform .2s, background .2s; }
.bb-btns svg { width: 22px; height: 22px; }
.bb-play { background: #fff; color: #05060B; } .bb-play svg { fill: #05060B; }
.bb-play:hover { background: rgba(255,255,255,.82); }
.bb-info { background: rgba(120,128,150,.42); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bb-info:hover { background: rgba(120,128,150,.3); }
.bb-btns a:active { transform: scale(.97); }
.bb-side { position: absolute; right: max(16px, calc(50vw - 540px)); top: 50%; transform: translateY(-56%); display: flex; gap: 16px; z-index: 1; }
.bb-side .frame { width: clamp(120px, 12vw, 170px); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.bb-side .t0 { transform: translateY(26px) rotate(-5deg); } .bb-side .t2 { transform: translateY(26px) rotate(5deg); }
.has-side .bb-art { filter: blur(3px) brightness(.8); }

.bb-tabs { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bb-tab { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); text-align: left;
  background: rgba(10,12,22,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--text); cursor: pointer; overflow: hidden; transition: border-color .25s, background .25s, transform .25s; }
.bb-tab:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.18); }
.bb-tab.on { background: rgba(20,24,40,.78); border-color: color-mix(in srgb, var(--pa) 55%, transparent); }
.bb-tab img, .bb-tab svg { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.bb-tab b { display: block; font: 700 14px/1.2 "Inter Tight", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-tab small { display: block; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-tab > span { min-width: 0; }
.bb-tab i { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.bb-tab i::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--pa), #fff); }
.bb-tab.on i::after { animation: bbfill 8s linear forwards; }
.bb.paused .bb-tab.on i::after { animation-play-state: paused; }
@keyframes bbfill { to { transform: scaleX(1); } }

/* Shelves */
.shelf { margin-top: clamp(30px, 4vw, 44px); }
.shelf-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.shelf-head h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 700 clamp(19px, 2vw, 23px)/1.2 "Inter Tight", sans-serif; letter-spacing: -.01em; color: var(--text); }
.shelf-head h3 img, .shelf-head h3 svg { width: 26px; height: 26px; border-radius: 7px; }
.shelf-head h3 em { font-style: normal; font-weight: 600; font-size: .78em; color: var(--muted); }
.shelf-head > span { font-size: 14px; color: var(--faint); }
.shelf-head > a { font: 600 14px/1 "Inter Tight", sans-serif; color: var(--cyan); text-decoration: none; opacity: .85; }
.shelf-head > a:hover { opacity: 1; } .shelf-head > a span { display: inline-block; transition: transform .2s; } .shelf-head > a:hover span { transform: translateX(3px); }
.rail-wrap { position: relative; }
.rail { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(50% - 50vw); padding: 22px max(16px, calc(50vw - 540px)) 30px; scroll-padding-inline: max(16px, calc(50vw - 540px)); }
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rail-btn { position: absolute; top: 22px; bottom: 30px; z-index: 5; width: 52px; display: grid; place-items: center; border: 0; color: #fff; cursor: pointer;
  opacity: 0; transition: opacity .25s, background .25s; }
.rail-btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.rail-btn.prev { left: calc(50% - 50vw); background: linear-gradient(90deg, rgba(5,6,11,.92), rgba(5,6,11,0)); }
.rail-btn.next { right: calc(50% - 50vw); background: linear-gradient(270deg, rgba(5,6,11,.92), rgba(5,6,11,0)); }
.rail-wrap:hover .rail-btn:not([disabled]), .rail-btn:focus-visible { opacity: 1; }
.rail-btn:hover svg { transform: scale(1.25); }
.rail-btn[disabled] { pointer-events: none; }
@media (hover: none) { .rail-btn { display: none; } }

.tile { position: relative; flex: 0 0 clamp(250px, 26vw, 330px); aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; scroll-snap-align: start;
  background: #0B0E1A; text-decoration: none; color: var(--text); box-shadow: 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.tile.tall { flex-basis: clamp(150px, 15vw, 190px); aspect-ratio: 9 / 17; }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .35s; }
.tile .t-app { position: absolute; top: 8px; left: 8px; } .tile .t-app img, .tile .t-app svg { width: 22px; height: 22px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.6); }
.tile .t-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 11px; background: linear-gradient(0deg, rgba(5,6,11,.95) 15%, rgba(5,6,11,0));
  transform: translateY(42%); opacity: .0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.tile .t-info b { display: block; font: 700 12px/1.2 "Inter Tight", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--pa); }
.tile .t-info span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 13.5px; line-height: 1.35; color: var(--text); }
.tile .t-play { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s; }
.tile .t-play svg { width: 16px; height: 16px; fill: #05060B; margin-left: 2px; }
.tile:hover, .tile:focus-visible { transform: scale(1.07); z-index: 2; box-shadow: 0 0 0 1px color-mix(in srgb, var(--pa) 60%, transparent), 0 24px 50px rgba(0,0,0,.65); outline: none; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile:hover .t-info, .tile:focus-visible .t-info { transform: none; opacity: 1; }
.tile:hover .t-play, .tile:focus-visible .t-play { opacity: 1; transform: none; }
@media (hover: none) { .tile .t-info { transform: none; opacity: 1; } }

/* Top 4: big outlined numbers behind posters */
.rail.top { gap: 4px; }
.topt { position: relative; flex: 0 0 clamp(250px, 27vw, 330px); display: flex; align-items: flex-end; scroll-snap-align: start; text-decoration: none; color: var(--text); }
.topt .num { flex: none; width: 46%; margin-right: -14%; font: 800 clamp(150px, 17vw, 230px)/.74 "Inter Tight", sans-serif; letter-spacing: -.08em; text-align: right;
  color: var(--bg); -webkit-text-stroke: 4px color-mix(in srgb, var(--pa) 55%, #5a6080); paint-order: stroke; transition: -webkit-text-stroke-color .3s; }
.topt .poster { position: relative; z-index: 1; flex: none; width: 62%; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: #0B0E1A;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), -12px 0 30px rgba(5,6,11,.8); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.topt .poster > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.topt .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,6,11,.96) 8%, rgba(5,6,11,.25) 50%, rgba(5,6,11,0) 70%); }
.topt .p-tag { position: absolute; top: 0; right: 10px; z-index: 2; padding: 6px 7px 7px; border-radius: 0 0 5px 5px; font: 800 10px/1.15 "Inter Tight", sans-serif; letter-spacing: .06em; text-transform: uppercase;
  max-width: 64%; text-align: center; color: #05060B; background: linear-gradient(180deg, var(--pa), var(--pb)); }
.topt .p-info { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; }
.topt .p-info img, .topt .p-info svg { width: 40px; height: 40px; border-radius: 10px; display: block; margin-bottom: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.6); }
.topt .p-info b { display: block; font: 800 19px/1.05 "Inter Tight", sans-serif; letter-spacing: -.02em; }
.topt .p-info small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.topt:hover .poster, .topt:focus-visible .poster { transform: scale(1.06); box-shadow: 0 0 0 1px color-mix(in srgb, var(--pa) 70%, transparent), 0 26px 60px rgba(0,0,0,.7); }
.topt:hover .poster > img { transform: scale(1.06); }
.topt:hover .num, .topt:focus-visible .num { -webkit-text-stroke-color: var(--pa); }
.topt:focus-visible { outline: none; }

@media (max-width: 760px) {
  .bb { height: auto; min-height: 640px; display: flex; flex-direction: column; }
  .bb-slide { inset: 0 0 auto; height: 560px; }
  .bb-shade { background: linear-gradient(0deg, var(--bg) 6%, rgba(5,6,11,.75) 42%, rgba(5,6,11,.1) 70%), linear-gradient(180deg, var(--bg) 0%, rgba(5,6,11,0) 14%); }
  .bb-copy { bottom: 18px; }
  .bb-name { font-size: clamp(40px, 12vw, 52px); }
  .bb-line { font-size: 16px; }
  .bb-who, .bb-genres { display: none; }
  .bb-btns { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .bb-btns a { justify-content: center; padding: 13px 10px; font-size: 15px; }
  .bb-side { top: 70px; right: 50%; transform: translateX(50%); gap: 10px; }
  .bb-side .frame { width: 26vw; }
  .bb-slide.has-side .bb-copy { bottom: 18px; }
  .bb-tabs { position: relative; bottom: auto; margin-top: 568px; display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; width: auto; padding: 0 16px; scroll-snap-type: x mandatory; }
  .bb-tabs::-webkit-scrollbar { display: none; }
  .bb-tab { flex: 0 0 auto; max-width: 210px; scroll-snap-align: start; }
  .bb-tab:hover { transform: none; }
  .topt { flex-basis: 210px; }
  .topt .num { font-size: 150px; -webkit-text-stroke-width: 3px; }
  .tile { flex-basis: 74vw; } .tile.tall { flex-basis: 40vw; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-art, .bb-slide.on .bb-art { transform: none; transition: none; }
  .bb-tab.on i::after { animation: none; transform: scaleX(1); }
}
/* shelf refinements */
.bb-art { height: 118%; }
.bb-name { max-width: 560px; font-size: clamp(42px, 5.6vw, 76px); }
.bb-side.win-side { transform: translateY(-58%) perspective(1600px) rotateY(-14deg) rotateX(4deg); }
.bb-side.win-side .frame { width: clamp(380px, 38vw, 560px); }
.has-side .bb-art { filter: blur(4px) brightness(.62) saturate(1.1); }
.topt .num { margin-right: -6%; width: 44%; }
.topt .poster::after { background: linear-gradient(0deg, rgba(5,6,11,.98) 0%, rgba(5,6,11,.9) 26%, rgba(5,6,11,.25) 55%, rgba(5,6,11,0) 72%); }
@media (max-width: 1100px) { .bb-side.win-side { display: none; } }
@media (max-width: 760px) {
  .bb-art { height: 128%; }
  .bb-shade { background: linear-gradient(0deg, var(--bg) 10%, rgba(5,6,11,.88) 40%, rgba(5,6,11,.15) 68%), linear-gradient(180deg, var(--bg) 0%, rgba(5,6,11,0) 14%); }
}
.bb-slide { overflow: hidden; }
.topt .poster > img { height: 118%; }
.topt .num { margin-right: -3%; }
