/* ==========================================================================
   Reelsmith · the store's one design ("Streaming Night").
   Deep indigo lit by the films' own colours, poster shelves like a streaming
   app, a sunset gradient for the things you can buy.
   Fonts: Archivo (one family: condensed for titles, normal width for text).
   ========================================================================== */
:root {
  --bg: #0a0b14;
  --bg-2: #0e1020;
  --panel: #151731;
  --text: #f6f3ec;
  --muted: #aaa7bf;
  --dim: #7c7992;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.08);
  --sunset: linear-gradient(100deg, #ff6a3d 0%, #ff3d8b 48%, #8b5cff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 16px;
  --maxw: 1240px;
  --nav-h: 64px;
  --gap: 16px;
  /* Shelves run to the screen edge but their first card lines up with the page */
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  --card-w: clamp(140px, 42vw, 210px);
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --gutter: 28px; --card-w: calc((100vw - 2 * var(--gutter) - 3 * var(--gap)) / 4.3); } }
@media (min-width: 1100px) { :root { --gutter: 32px; --card-w: calc((min(100vw, var(--maxw)) - 2 * var(--gutter) - 5 * var(--gap)) / 6); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
p { margin: 0; }
button { font-family: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.fine { color: var(--dim); font-size: 0.85rem; line-height: 1.5; }
.fine a, .textlink { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--bg); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
/* Big condensed titles, like a film poster */
.display { font-stretch: 70%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.9; }
.label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 12px var(--c, #fff); flex: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}
.btn--play { background: #fff; color: var(--bg); }
.btn--play:hover { background: #e8e5f1; }
.btn--buy { background: var(--sunset); color: #fff; box-shadow: 0 12px 34px -12px rgba(255, 61, 139, 0.75); }
.btn--buy:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--glass { background: var(--glass); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.14); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn--big { width: 100%; min-height: 58px; font-size: 1.08rem; }
.btn[aria-disabled="true"] { background: rgba(255, 255, 255, 0.06); color: var(--dim); box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed; filter: none; transform: none; }
.play-icon { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; flex: none; }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: rgba(10, 11, 20, 0.74); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 78%; font-size: 1.32rem; letter-spacing: 0.01em; text-transform: uppercase; }
.logo__mark { position: relative; width: 26px; height: 26px; border-radius: 8px; background: var(--sunset); box-shadow: 0 0 18px rgba(255, 61, 139, 0.45); flex: none; }
.logo__mark::after { content: ""; position: absolute; left: 10px; top: 7px; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.nav__links { display: none; gap: 26px; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav .btn { margin-left: auto; }
@media (min-width: 860px) { .nav__links { display: flex; } }

/* ---------- Home: featured-film hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__bd { position: absolute; inset: -90px; z-index: -3; background-size: cover; background-position: center; filter: blur(80px) saturate(1.7); transform: scale(1.15); opacity: 0; transition: opacity 1.1s ease; }
.hero__bd.is-active { opacity: 0.7; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(10, 11, 20, 0.15) 0%, rgba(10, 11, 20, 0.55) 45%, var(--bg) 100%); }
/* a little film grain */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.08; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (min-width: 900px) {
  .hero::before { background: linear-gradient(90deg, var(--bg) 12%, rgba(10, 11, 20, 0.6) 50%, rgba(10, 11, 20, 0.15) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
}
.hero__inner { display: grid; gap: 28px; align-items: center; padding-top: 28px; padding-bottom: 20px; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; min-height: min(620px, calc(100vh - var(--nav-h) - 110px)); padding-top: 40px; padding-bottom: 24px; } }

.hero__slides { display: grid; }
.hero__slide { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s, visibility 0s; }
.hero__slide .label { margin-bottom: 16px; }
.hero__title { font-size: clamp(3rem, 8.6vw, 6.8rem); margin-bottom: 14px; text-wrap: balance; }
.hero__kicker { font-size: 1.18rem; font-weight: 600; margin-bottom: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.meta li { font-size: 0.84rem; font-weight: 700; padding: 5px 10px; border-radius: 6px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.meta .meta__price { background: #fff; color: var(--bg); box-shadow: none; }
.hero__slide .meta { margin-bottom: 18px; }
.hero__blurb { color: var(--muted); max-width: 37rem; font-size: 1.05rem; margin-bottom: 26px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) { .hero__blurb { -webkit-line-clamp: unset; display: block; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .hero__cta .btn { flex: 1 1 0; padding: 0 14px; } }

/* the film itself, with the next films waiting behind it */
.hero__screen { position: relative; order: -1; justify-self: center; width: min(52vw, 240px); aspect-ratio: 9 / 16; touch-action: pan-y; }
@media (min-width: 900px) { .hero__screen { order: 0; width: min(100%, 320px); justify-self: end; margin-right: 8%; } }
.hero__frame { position: absolute; inset: 0; z-index: 2; display: block; border-radius: 22px; overflow: hidden; opacity: 0; transform: scale(0.95); transition: opacity 0.7s ease, transform 0.7s ease; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 100px -24px rgba(0, 0, 0, 0.85), 0 0 90px -10px var(--c); pointer-events: none; }
.hero__frame.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero__frame .media { position: absolute; inset: 0; border-radius: 0; }
.hero__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; }
.hero__frame video.is-playing { opacity: 1; }
.hero__made { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: rgba(10, 11, 20, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.hero__made .play-icon { border-left-width: 7px; border-top-width: 4.5px; border-bottom-width: 4.5px; }
.hero__deck { position: absolute; inset: 0; z-index: 1; border-radius: 22px; background: var(--panel) center / cover no-repeat; filter: brightness(0.42) saturate(1.1); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.8); transition: transform 0.7s ease; }
.hero__deck--next { transform: translateX(26%) rotate(7deg) scale(0.88); }
.hero__deck--after { transform: translateX(-26%) rotate(-7deg) scale(0.88); }

.hero__rail { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 10px; padding-bottom: 40px; }
.hero__tab { padding: 12px 0 4px; border: 0; background: none; text-align: left; color: var(--dim); cursor: pointer; font: 600 0.86rem/1.3 var(--font); min-width: 0; }
.hero__tab:hover { color: var(--muted); }
.hero__tab.is-active { color: var(--text); }
.hero__bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; margin-bottom: 10px; }
.hero__bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.hero__tab.is-active .hero__bar i { animation: hero-fill var(--dur, 7s) linear forwards; }
.hero.is-paused .hero__tab.is-active .hero__bar i { animation-play-state: paused; }
.hero__tab b, .hero__tab small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__tab b { font-weight: 700; }
.hero__tab small { font-size: 0.78rem; color: var(--dim); font-weight: 500; }
@keyframes hero-fill { from { width: 0; } to { width: 100%; } }
@media (max-width: 760px) { .hero__tab b, .hero__tab small { display: none; } .hero__rail { padding-bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .hero__tab.is-active .hero__bar i { width: 100%; } }

/* ---------- Home: one-line pitch + numbers ---------- */
.intro { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro__inner { display: grid; gap: 22px; padding-top: 28px; padding-bottom: 28px; align-items: center; }
@media (min-width: 1000px) { .intro__inner { grid-template-columns: 1fr auto; gap: 56px; } }
.intro__lead { font-size: 1.08rem; color: var(--muted); max-width: 40rem; }
.intro__lead strong { color: var(--text); }
.intro__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; list-style: none; margin: 0; padding: 0; }
.intro__stats b { display: block; font-size: 1.7rem; font-weight: 800; font-stretch: 72%; line-height: 1.1; text-transform: uppercase; }
.intro__stats span { font-size: 0.84rem; color: var(--dim); }
@media (min-width: 600px) {
  .intro__stats { display: flex; gap: 0; }
  .intro__stats li { padding: 0 24px; border-left: 1px solid var(--line); }
  .intro__stats li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 100px 0; } }
.section--alt { background: var(--bg-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 40px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.section-head p { color: var(--muted); max-width: 30rem; }

/* ---------- Home: the catalogue ---------- */
.skills { padding: 56px 0 72px; }
@media (min-width: 960px) { .skills { padding: 88px 0 100px; } }
.jump { position: sticky; top: var(--nav-h); z-index: 30; margin-bottom: 40px; background: rgba(10, 11, 20, 0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.jump__inner { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 12px; padding-bottom: 12px; }
.jump__inner::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.9rem; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 0.2s ease, color 0.2s ease; }
.jump a:hover { color: var(--text); }
.jump a[aria-current="true"] { color: var(--bg); background: #fff; box-shadow: none; }
.jump a[aria-current="true"] .dot { box-shadow: none; }
.jump sup { font-size: 0.72em; opacity: 0.6; }

.shelf { scroll-margin-top: calc(var(--nav-h) + 80px); }
.shelf + .shelf, .shelf + .shelf-pair, .shelf-pair + .shelf { margin-top: 52px; }
.shelf__head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.shelf__titles { min-width: 0; }
.shelf__head h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.shelf__count { font-size: 0.9rem; font-weight: 700; color: var(--dim); font-stretch: 100%; text-transform: none; }
.shelf__blurb { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.shelf__nav { display: none; gap: 8px; margin-left: auto; }
@media (hover: hover) and (min-width: 900px) { .shelf__nav { display: flex; } }
.shelf__btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--glass); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; display: grid; place-items: center; transition: background-color 0.15s ease, opacity 0.15s ease; }
.shelf__btn:hover { background: rgba(255, 255, 255, 0.16); }
.shelf__btn:disabled { opacity: 0.3; cursor: default; }
.shelf__btn svg { width: 16px; height: 16px; }
.shelf__row { display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w); gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px var(--edge) 20px; scroll-padding-inline: var(--edge); }
.shelf__row::-webkit-scrollbar { display: none; }
/* two short shelves side by side */
.shelf-pair { display: grid; gap: 52px var(--gap); }
@media (min-width: 900px) { .shelf-pair { grid-template-columns: 1fr 1fr; } .shelf-pair > .shelf + .shelf { margin-top: 0; } }
.shelf-pair .shelf__row { padding-left: 0; padding-right: 0; scroll-padding-inline: 0; }
.shelf-pair .shelf__nav { display: none; }

/* ---------- Poster card ---------- */
.card { display: block; min-width: 0; text-decoration: none; color: var(--text); scroll-snap-align: start; border-radius: 16px; }
.card:focus-visible { outline-offset: 4px; }
.card__poster { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); transition: transform 0.25s ease, box-shadow 0.25s ease; container-type: inline-size; }
.card:hover .card__poster, .card:focus-visible .card__poster { transform: translateY(-5px); box-shadow: 0 0 0 2px var(--c), 0 26px 50px -18px var(--c); }
.card__poster .media { position: absolute; inset: 0; border-radius: 0; }
.card__poster::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 24%); }
.pill { position: absolute; top: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; line-height: 1.3; background: rgba(10, 11, 20, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.pill--price { right: 10px; }
.pill--films { left: 10px; font-weight: 700; color: #dcd9e8; }
.card__name { display: block; margin-top: 12px; font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.card__kicker { display: block; margin-top: 3px; color: var(--muted); font-size: 0.88rem; line-height: 1.35; }
.card__tag { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 0.78rem; font-weight: 700; color: var(--dim); }
.card__tag .dot { width: 6px; height: 6px; box-shadow: none; }

/* ---------- Media: poster still + optional muted loop ---------- */
.media { position: relative; overflow: hidden; background: var(--panel); border-radius: var(--radius-sm); }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media video { opacity: 0; transition: opacity 0.4s ease; }
.media video.is-playing { opacity: 1; }
/* No film yet: a title card in the category's colour */
.media--title { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px; padding: 8cqi 8cqi 9cqi; background: linear-gradient(180deg, var(--c) 0%, color-mix(in oklab, var(--c) 42%, #0a0b14) 48%, #0a0b14 94%); }
.media--title::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px); }
.media--title::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.5px 6cqi); -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0, transparent 58%); mask-image: radial-gradient(circle at 50% 30%, #000 0, transparent 58%); }
/* A pack: four of its films in a grid */
.media--mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--bg); }
.media--mosaic img { position: static; width: 100%; height: 100%; object-fit: cover; }
.media__name { position: relative; z-index: 1; font-size: clamp(1.3rem, 15cqi, 3.4rem); font-stretch: 68%; font-weight: 800; text-transform: uppercase; line-height: 0.9; letter-spacing: 0; }
.media__soon { position: relative; z-index: 1; font-size: clamp(0.62rem, 5.4cqi, 0.8rem); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }

/* ---------- Home: bundle ---------- */
.bundle__panel { position: relative; display: grid; overflow: hidden; isolation: isolate; border-radius: 28px; background: var(--sunset); color: #fff; }
@media (min-width: 960px) { .bundle__panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); min-height: 580px; } }
.bundle__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 30px 22px 32px; }
@media (min-width: 960px) { .bundle__copy { padding: 60px 56px; justify-content: center; } }
.bundle__copy .label { color: rgba(255, 255, 255, 0.85); }
.bundle h2 { font-size: clamp(3rem, 6.6vw, 5.4rem); }
.bundle__blurb { font-size: 1.08rem; max-width: 34rem; opacity: 0.95; }
.bundle__price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 6px; }
.bundle__now { font-size: clamp(3.6rem, 7vw, 5.2rem); font-weight: 800; font-stretch: 72%; line-height: 0.95; }
.bundle__was { font-size: 0.95rem; opacity: 0.9; }
.bundle__save { font-weight: 800; font-size: 0.85rem; padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--bg); }
.bundle__save:empty { display: none; }
.bundle__copy .btn { min-width: min(100%, 300px); }
.bundle__copy .btn--play[aria-disabled="true"] { background: rgba(255, 255, 255, 0.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.bundle__copy .fine { color: rgba(255, 255, 255, 0.85); }
.bundle__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 6px 0 0; max-width: 40rem; }
.bundle__list li { font-size: 0.8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(10, 11, 20, 0.24); }
/* a slowly moving wall of film posters */
.bundle__wall { position: relative; order: -1; height: 250px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
@media (min-width: 960px) { .bundle__wall { order: 0; height: auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); } }
.wall { position: absolute; inset: -30% -12% -30% -6%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; transform: rotate(-9deg); }
@media (max-width: 959px) { .wall { inset: -60% -8%; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wall__col { animation: wall-up 60s linear infinite; }
.wall__col:nth-child(even) { animation-duration: 75s; animation-direction: reverse; }
.wall__col img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; margin-bottom: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
@keyframes wall-up { to { transform: translateY(-50%); } }

/* ---------- Home: how it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px 22px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)); box-shadow: inset 0 0 0 1px var(--line); }
.steps__n { font-size: 3.6rem; font-weight: 800; font-stretch: 68%; line-height: 0.9; color: var(--c); }
.steps li:nth-child(1) { --c: #ff6a3d; }
.steps li:nth-child(2) { --c: #ff3d8b; }
.steps li:nth-child(3) { --c: #c44dff; }
.steps li:nth-child(4) { --c: #8b7bff; }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--muted); font-size: 0.97rem; }
.code { margin: 4px 0 0; background: rgba(0, 0, 0, 0.35); border-radius: 10px; padding: 10px 12px; overflow-x: auto; font: 0.8rem/1.5 var(--mono); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Home: FAQ ---------- */
.faq-grid { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; }
  .faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; flex-direction: column; align-items: flex-start; }
}
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 22px 52px 22px 0; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; display: grid; place-items: center; border-radius: 50%; font-size: 1.3rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.2s ease, background-color 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); background: rgba(255, 255, 255, 0.1); }
.faq details p { padding: 0 52px 24px 0; color: var(--muted); max-width: 44rem; }

/* ---------- Footer ---------- */
.footer { padding: 44px 0 64px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__inner { display: grid; gap: 22px; }
.footer .fine { max-width: 42rem; margin-top: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { text-decoration: none; font-weight: 600; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
@media (min-width: 860px) { .footer__inner { grid-template-columns: 1fr auto; } }

/* ---------- Skill page: the title page ---------- */
.title-page { position: relative; overflow: hidden; isolation: isolate; }
.title-page__bd { position: absolute; inset: -90px; z-index: -2; background: center / cover no-repeat; filter: blur(80px) saturate(1.6); transform: scale(1.15); opacity: 0.55; }
.title-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 11, 20, 0.35), var(--bg) 92%); }
.title-page__bd--blank { background: radial-gradient(60% 50% at 30% 20%, var(--c), transparent 70%); opacity: 0.45; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; padding-top: 20px; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--text); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; gap: 32px; padding-top: 24px; padding-bottom: 64px; }
@media (min-width: 960px) {
  .product { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; padding-top: 36px; padding-bottom: 96px; }
  .product__media { position: sticky; top: calc(var(--nav-h) + 24px); }
}
.player { margin: 0 auto; width: min(100%, 380px); display: flex; flex-direction: column; gap: 12px; }
.player--wide { width: 100%; }
@media (max-width: 959px) { .player:not(.player--wide) { width: min(74vw, 320px); } }
.player__screen { position: relative; border-radius: 20px; overflow: hidden; background: #000; container-type: inline-size; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 100px -20px var(--c); }
.player video { width: 100%; aspect-ratio: 9 / 16; background: #000; }
.player--wide video { aspect-ratio: 16 / 9; }
.player__screen > .media { aspect-ratio: 9 / 16; border-radius: 0; }
.player figcaption { font-size: 0.86rem; color: var(--muted); }
.player figcaption b { color: var(--text); font-weight: 700; }
.gallery { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.gallery__item { flex: none; width: 54px; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 9px; overflow: hidden; cursor: pointer; opacity: 0.5; background: var(--panel); box-shadow: 0 0 0 1px var(--line); transition: opacity 0.15s ease, box-shadow 0.15s ease; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item:hover { opacity: 0.85; }
.gallery__item.is-active { opacity: 1; box-shadow: 0 0 0 2px #fff; }

.product__info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.product__title { font-size: clamp(3rem, 7vw, 5.6rem); text-wrap: balance; }
.product__kicker { font-size: 1.2rem; font-weight: 600; margin-top: -4px; }
.product__blurb { font-size: 1.08rem; color: #d9d6e4; max-width: 40rem; }
.buybox { display: grid; gap: 14px; padding: 22px; border-radius: var(--radius); background: rgba(21, 23, 49, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.buybox__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.buybox__price { font-size: 3.4rem; font-weight: 800; font-stretch: 72%; line-height: 0.9; }
.buybox__once { font-size: 0.9rem; color: var(--muted); }
.pack-note { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.06); font-size: 0.93rem; color: var(--muted); }
.pack-note a { color: var(--text); font-weight: 700; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts > div:first-child { border-top: 1px solid var(--line); }
.facts dt { font-size: 0.86rem; color: var(--dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.facts dd { margin: 0; font-size: 0.96rem; }
@media (max-width: 480px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }

.more .shelf__head h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.more .shelf__head { margin-bottom: 22px; }

/* ---------- Skill page: guide tabs ---------- */
.docs__inner { max-width: 860px; }
.tabs { display: flex; gap: 4px 30px; overflow-x: auto; scrollbar-width: none; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; padding: 14px 0 16px; border: 0; background: none; cursor: pointer; font: 700 1rem/1 var(--font); color: var(--dim); }
.tab:hover { color: var(--muted); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--sunset); }
.md { max-width: 760px; }
.md h1 { display: none; }
.md h2 { font-size: 1.7rem; margin: 44px 0 14px; }
.md h2:first-child { margin-top: 0; }
.md h3 { font-size: 1.18rem; margin: 28px 0 10px; }
.md p, .md li { color: var(--muted); }
.md strong { color: var(--text); }
.md a { color: var(--text); text-underline-offset: 3px; }
.md p + p { margin-top: 12px; }
.md ul, .md ol { padding-left: 22px; margin: 12px 0; }
.md li + li { margin-top: 7px; }
.md li::marker { color: var(--dim); }
.md code { background: rgba(255, 255, 255, 0.08); padding: 1px 6px; border-radius: 6px; font: 0.85em var(--mono); color: var(--text); }
.md pre { background: rgba(0, 0, 0, 0.35); padding: 14px 16px; border-radius: 12px; overflow-x: auto; margin: 14px 0; box-shadow: inset 0 0 0 1px var(--line); }
.md pre code { background: none; padding: 0; font-size: 0.82rem; line-height: 1.6; }
.md table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.92rem; display: block; overflow-x: auto; }
.md th, .md td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); min-width: 120px; }
.md th { color: var(--text); }
.md img { border-radius: 12px; margin: 12px 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.md blockquote { margin: 16px 0; padding-left: 16px; border-left: 3px solid #ff3d8b; }

/* ---------- Simple pages (order status, legal) ---------- */
.page { min-height: 100dvh; display: flex; flex-direction: column; }
.page main { flex: 1; }
.narrow { max-width: 780px; margin: 0 auto; padding: 48px var(--gutter) 96px; }
.prose h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); font-stretch: 70%; text-transform: uppercase; line-height: 0.92; margin: 10px 0 20px; }
.prose h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--text); }
.prose code { font-family: var(--mono); font-size: 0.88em; color: var(--text); }
.eyebrow { font-size: 0.9rem; color: var(--dim); }
.status-card { padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); box-shadow: inset 0 0 0 1px var(--line-2); }
.status-card h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.status-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; color: #fff; }
.status-icon--ok { background: #14b886; box-shadow: 0 0 30px rgba(20, 184, 134, 0.5); }
.status-icon--wait { background: #f2b40c; color: var(--bg); }
.status-icon--bad { background: #e5484d; }

/* ---------- Only shown on localhost ---------- */
.setup-hint { position: fixed; left: 12px; bottom: 12px; z-index: 50; max-width: 420px; margin-right: 12px; background: #fff6c9; color: #3d3400; border-radius: 12px; padding: 12px 14px; font: 0.85rem/1.45 system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.setup-hint code { font-family: var(--mono); font-size: 0.8rem; }
.setup-hint button { float: right; background: none; border: 0; cursor: pointer; font-size: 1rem; margin: -4px -6px 0 8px; color: inherit; }
