/* IP3D — white rooms, gold and black accents, windows of video.
 *
 * Pages are white. The video is the dark, gold part: it sits in rounded
 * windows that float on the page (hero, details, version previews) and fills
 * the player. Anything drawn over video takes the .on-dark token set.
 *
 * Type:  Unbounded (display: titles, channel names, the mark)
 *        Geist (interface and reading), Geist Mono (formats, timecodes, specs)
 * Motif: convergence. Two eyes' images slide together into one picture:
 *        the loader, every hero change and the Side-by-Side card do it.
 */

:root {
  --paper: #ffffff;
  --mist: #f4f4f1;
  --stone: #e9e8e3;
  --ink: #0b0a08;
  --ink-2: rgba(11, 10, 8, 0.66);
  --ink-3: rgba(11, 10, 8, 0.56);
  --line: rgba(11, 10, 8, 0.12);
  --line-2: rgba(11, 10, 8, 0.07);
  --onyx: #070605;
  --bullion: #c9a45c;
  --champagne: #f1e2b8;
  --gold-ink: #8a6526; /* gold that reads as text on white */
  --gold: linear-gradient(100deg, #f7e9c3 0%, #dcb76c 34%, #a67d38 60%, #efd79d 88%, #f7e9c3 100%);
  --gold-deep: linear-gradient(100deg, #d6b067 0%, #a47a2e 40%, #6e5020 68%, #bf9142 100%);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-edge: rgba(11, 10, 8, 0.08);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --lift: 0 30px 70px -28px rgba(30, 22, 8, 0.38);

  --f-display: "Unbounded", "Geist", system-ui, sans-serif;
  --f-sans: "Geist", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --pad: clamp(16px, 3.2vw, 56px);
  --nav-h: 76px;
  --rail-w: clamp(240px, 20vw, 310px);
  --gap: 20px;
  --r-xl: 32px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* Over video: light text, dark glass. */
.on-dark, .player {
  --ink: #efe9dc;
  --ink-2: rgba(239, 233, 220, 0.74);
  --ink-3: rgba(239, 233, 220, 0.48);
  --line: rgba(214, 178, 104, 0.26);
  --line-2: rgba(239, 233, 220, 0.12);
  --glass: rgba(15, 12, 8, 0.5);
  --glass-edge: rgba(233, 204, 140, 0.2);
  --glass-hi: inset 0 1px 0 rgba(255, 243, 212, 0.12);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html[data-loading] body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
dl, dd, dt, figure, p, h1, h2, h3, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .player :focus-visible { outline-color: var(--champagne); }
::selection { background: var(--ink); color: var(--paper); }

.mono { font-family: var(--f-mono); font-size: 11.5px; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }
.gold-text { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -48px; z-index: 300; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }
.noscript { padding: 40px; text-align: center; }
.view[hidden] { display: none; }

/* masked text swap (ui.js) */
.swap { display: inline-block; position: relative; overflow: hidden; vertical-align: top; max-width: 100%; }
.swap__in { display: block; }

/* ── the mark ─────────────────────────────────────────────────────────── */
.brand {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  color: var(--ink);
}
.brand__3d { position: relative; padding-right: 0.04em; background: var(--gold-deep); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* the right eye's copy, a hair apart: the mark is a stereo pair at rest */
.brand__3d::after {
  content: attr(data-ghost);
  position: absolute; left: 0; top: 0;
  color: var(--ink);
  opacity: 0.14;
  transform: translateX(2px);
  transition: transform 0.6s var(--ease-out), opacity 0.6s;
  pointer-events: none;
}
.brand:hover .brand__3d::after { transform: translateX(0); opacity: 0; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn svg { color: var(--bullion); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 0 12px 30px -10px rgba(11, 10, 8, 0.45); }
.btn--ink:hover { background: #29241b; }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost svg { color: var(--gold-ink); }
.btn--glass { border: 1px solid var(--glass-edge); background: rgba(255, 240, 205, 0.06); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--ink); }
.btn--glass:hover { border-color: rgba(233, 204, 140, 0.5); background: rgba(255, 240, 205, 0.1); }
.btn--gold { background: var(--gold); background-size: 160% 100%; background-position: 0% 0; color: #1a1206; box-shadow: inset 0 1px 0 rgba(255, 250, 235, 0.6); transition: background-position 0.8s var(--ease-out), transform 0.3s var(--ease-out); }
.btn--gold:hover { background-position: 100% 0; }
.btn--gold svg { color: currentColor; }

/* Two versions, always side by side: one joined capsule, two halves. Lives over video. */
.pair {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-hi), 0 18px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.pair__v {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  text-align: left;
  padding: 9px 20px 9px 14px;
  border-radius: 999px;
  color: var(--ink);
  transition: background-color 0.3s, color 0.3s;
}
.pair__v svg { grid-row: 1 / 3; width: 26px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.pair__name { font-weight: 500; font-size: 15px; line-height: 1.2; }
.pair__sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); line-height: 1.3; }
.pair__v:hover { background: rgba(255, 240, 205, 0.08); }
.pair__v.is-rec { background: var(--gold); background-size: 160% 100%; color: #1a1206; box-shadow: inset 0 1px 0 rgba(255, 250, 235, 0.6); }
.pair__v.is-rec .pair__sub { color: rgba(26, 18, 6, 0.62); }
.pair__v.is-rec:hover { background-position: 100% 0; }
/* a version that hasn't arrived yet */
.pair__v.is-soon { opacity: 0.55; }
.pair__v.is-soon.is-rec { background: rgba(255, 240, 205, 0.1); color: inherit; box-shadow: none; }
.pair__v.is-soon .pair__sub { color: inherit; opacity: 0.8; }
/* the small pair on cards and in the notice: on white */
.pair--mini { padding: 2px; gap: 2px; background: transparent; border: 1px solid var(--line); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.pair--mini i { font-style: normal; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding: 3px 8px; border-radius: 999px; }
.pair--mini i + i { background: var(--ink); color: var(--champagne); }

/* ── nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav::before {
  content: ""; position: absolute; inset: 0 0 -14px; z-index: -1; pointer-events: none;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent);
  opacity: 0; transition: opacity 0.5s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav .brand { justify-self: start; }
.nav__pill {
  position: relative;
  display: flex; gap: 2px; padding: 5px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-hi), 0 10px 30px -12px rgba(30, 22, 8, 0.25);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}
.nav__pill a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color 0.3s; }
.nav__pill a:hover { color: var(--ink); }
.nav__pill a.is-active { color: var(--champagne); }
/* Vrai Voyeur (html[data-realm="vv"]): its channels take the nav's place, and the logo carries its name */
.nav__vv { display: none; }
[data-realm="vv"] .nav__ip3d { display: none; }
[data-realm="vv"] .nav__vv { display: inline-block; }
.nav__pill a.nav__exit { color: var(--ink-3); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line); border-radius: 0 999px 999px 0; }
.nav__pill a.nav__exit:hover { color: var(--ink); }
/* the logo: IP3D, or 3V-TV (Vrai Voyeur Vision – TV) inside Vrai Voyeur, same face and gold */
.brand__3vtv { display: none; }
[data-realm="vv"] .brand__ip3d { display: none; }
[data-realm="vv"] .brand__3vtv { display: inline; }
/* on a channel's pages the logo names it: IP3D-Music, IP3D-Movies, IP3D-TV, IP3D-Tech */
.brand__ch { display: inline-block; white-space: nowrap; }
.brand__ch:empty { display: none; }
@media (max-width: 560px) {
  /* phones: no room beside the nav, so the section's name sits under IP3D, smaller */
  .brand__ip3d { display: inline-block; }
  .brand__ch { display: block; margin-top: 3px; font-size: 0.62em; letter-spacing: 0.01em; color: var(--ink-2); }
  .brand__dash { display: none; }
}
/* Vrai Voyeur's home: its name above the hero */
.vv-head { display: none; }
[data-realm="vv"] .vv-head { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 28px; row-gap: 4px; padding: calc(var(--nav-h) + 14px) var(--pad) 0; }
.vv-head__kicker { flex-basis: 100%; color: var(--ink-3); }
.vv-head__kicker b { color: var(--gold-ink); font-weight: 500; }
.vv-head__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 5.2vw, 76px); line-height: 1; letter-spacing: -0.045em; }
.vv-head__line { color: var(--ink-2); padding-bottom: 0.5em; }
[data-realm="vv"] .hero { --stage-t: 12px; height: calc(100svh - var(--nav-h) - clamp(96px, 9vw, 128px)); min-height: 560px; }
@media (max-width: 560px) { .vv-head__line { display: none; } }
.nav__glint { position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); width: 0; border-radius: 999px; background: var(--ink); opacity: 0; transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out), opacity 0.3s; }
.nav__end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav__xr, .nav__acct {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: color 0.3s, border-color 0.3s;
}
.nav__xr:hover, .nav__acct:hover { color: var(--ink); border-color: var(--line); }
.nav__acct { color: var(--ink); }
.nav__acct .person { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; color: var(--gold-ink); }
.nav__acct.is-in { padding-left: 5px; }
.nav__initial { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--champagne); font-size: 13px; font-weight: 600; }
.nav__xr.is-ready { color: var(--ink); }
.goggles { width: 24px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.nav__xr .goggles { color: var(--gold-ink); }
.xr-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bullion); box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.25); animation: pulse 2.4s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(201, 164, 92, 0); } }

/* ── loader ───────────────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 36px;
  background: var(--paper);
}
html:not([data-loading]) .loader { pointer-events: none; }
.loader__mark {
  position: relative;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(56px, 11vw, 168px); letter-spacing: -0.04em; line-height: 1;
  width: 4.2ch; height: 1.1em;
}
.loader__eye, .loader__fused { position: absolute; inset: 0; display: grid; place-items: center; white-space: nowrap; }
.loader__eye { opacity: 0.6; mix-blend-mode: multiply; will-change: transform; }
.loader__eye--l { color: #b98a34; }
.loader__eye--r { color: var(--ink); }
.loader__fused { opacity: 0; display: flex; justify-content: center; align-items: center; color: var(--ink); }
.loader__fused span { padding-right: 0.04em; background: var(--gold-deep); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader__meta { display: flex; gap: 28px; color: var(--ink-3); }
.loader__n { font-weight: 500; color: var(--gold-ink); }
.loader__device { display: inline-flex; align-items: center; gap: 8px; }

/* ── hero ─────────────────────────────────────────────────────────────── */
/* The rail on white at the left; the video in a window beside it. */
.hero {
  --stage-l: calc(var(--pad) + var(--rail-w) + var(--gap));
  --stage-t: calc(var(--nav-h) + 6px);
  --stage-b: 24px;
  position: relative; height: 100svh; min-height: 660px;
}
.hero__stage {
  position: absolute;
  left: var(--stage-l); right: var(--pad); top: var(--stage-t); bottom: var(--stage-b);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--onyx);
  transform-origin: 50% 0%;
  will-change: transform;
  box-shadow: 0 50px 110px -40px rgba(30, 22, 8, 0.55), 0 0 0 1px rgba(11, 10, 8, 0.06);
}
.hero__video { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover; opacity: 0; max-width: none; }
.hero__video.is-on { opacity: 1; }
.hero__ghost { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.hero__video, .hero__ghost { scale: var(--intro, 1); }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(7, 6, 5, 0.88) 0%, rgba(7, 6, 5, 0.5) 26%, rgba(7, 6, 5, 0) 58%),
    linear-gradient(90deg, rgba(7, 6, 5, 0.55) 0%, rgba(7, 6, 5, 0) 45%);
}

.rail {
  position: absolute; z-index: 3;
  left: var(--pad); top: var(--stage-t); bottom: var(--stage-b);
  width: var(--rail-w);
  display: flex; flex-direction: column;
}
.rail__head { display: flex; justify-content: space-between; padding: 12px 10px 14px; color: var(--ink-3); border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.rail__list { display: grid; gap: 4px; align-content: start; overflow-y: auto; scrollbar-width: none; }
.rail__list::-webkit-scrollbar { display: none; }
.rail__item {
  position: relative;
  width: 100%;
  display: grid; grid-template-columns: 44% 1fr; gap: 12px; align-items: center;
  padding: 7px;
  border-radius: 16px;
  text-align: left;
  border: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.rail__item:hover { background: var(--mist); }
.rail__item[aria-current="true"] { background: var(--paper); border-color: var(--line-2); box-shadow: 0 16px 36px -18px rgba(30, 22, 8, 0.35); }
.rail__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--onyx); }
.rail__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out), opacity 0.4s; opacity: 0.88; }
.rail__item:hover .rail__thumb img, .rail__item[aria-current="true"] .rail__thumb img { transform: scale(1.06); opacity: 1; }
.rail__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }
.rail__text { display: grid; gap: 3px; min-width: 0; }
.rail__ch { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
.rail__title { font-size: 14px; font-weight: 500; line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail__item:not([aria-current="true"]) .rail__title { color: var(--ink-2); }

.hero__info {
  position: absolute; z-index: 3;
  left: calc(var(--stage-l) + clamp(28px, 3.4vw, 60px));
  right: calc(var(--pad) + 40px);
  bottom: calc(var(--stage-b) + clamp(36px, 7vh, 80px));
  max-width: 900px;
}
.hero__eyebrow { color: var(--champagne); margin-bottom: 18px; }
.hero__eyebrow .dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; margin: 0 10px; opacity: 0.6; }
.hero__title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(44px, 5.8vw, 108px);
  line-height: 0.98; letter-spacing: -0.045em;
  margin-bottom: 18px;
}
.hero__title .swap { padding-bottom: 0.08em; }
.hero__title[data-long] { font-size: clamp(34px, 3.9vw, 70px); }
.hero__title .swap__in { padding-right: 0.06em; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__line { font-size: clamp(16px, 1.2vw, 19px); color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__more { height: 56px; padding: 0 24px; }
/* Preview in 3D (headsets only, js/preview3d.js) */
.p3d-btn { height: 56px; padding: 0 24px; }
.p3d-btn[hidden] { display: none; }
.p3d-btn .goggles { width: 22px; height: 13px; }
.d-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* WebXR route: the clip's own <video> stays out of sight (the headset shows it) */
.p3d { position: fixed; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
/* Vision Pro route: the panel the clip plays in before (and after) full screen */
.xr__panel.p3d-panel__box { width: min(720px, 100%); }
.p3d-panel__title { margin-top: 22px; }
.p3d-panel__screen { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; margin-bottom: 14px; }
.p3d-panel__video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.p3d-panel__status { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; min-height: 1.5em; }
.p3d-panel__status.is-bad { color: #a3361f; }
.p3d-panel .btn[disabled] { opacity: 0.45; pointer-events: none; }

.hero__hud {
  position: absolute; z-index: 3; right: calc(var(--pad) + 24px); bottom: calc(var(--stage-b) + 22px);
  display: flex; align-items: center; gap: 18px; color: var(--ink-3);
}
.hero__sound { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); transition: color 0.3s, border-color 0.3s; }
.hero__sound:hover, .hero__sound[aria-pressed="true"] { color: var(--champagne); border-color: var(--line); }

/* ── shelves ──────────────────────────────────────────────────────────── */
#shelves { position: relative; z-index: 2; }
.shelf { padding-top: clamp(80px, 12vh, 140px); }
.shelf__head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  padding: 0 var(--pad) 26px;
}
.shelf__kicker { display: flex; align-items: center; gap: 14px; color: var(--ink-3); margin-bottom: 14px; }
.shelf__kicker b { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; font-size: 12px; color: var(--gold-ink); text-transform: none; }
.shelf__name {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(38px, 5.2vw, 88px); line-height: 1; letter-spacing: -0.045em;
  overflow: hidden; padding-bottom: 0.06em;
}
.shelf__name > span { display: inline-block; }
.shelf__line { margin-top: 14px; color: var(--ink-2); font-size: 17px; max-width: 52ch; }
.shelf__ctrl { display: flex; align-items: center; gap: 10px; }
.shelf__btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, opacity 0.3s;
}
.shelf__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.shelf__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--champagne); }
.shelf__btn:disabled { opacity: 0.3; cursor: default; background: none; color: var(--ink); border-color: var(--line); }
.shelf__track {
  display: flex; gap: clamp(14px, 1.4vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
  padding: 18px var(--pad) 40px;
  scrollbar-width: none;
  perspective: 1400px;
}
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.shelf__track.is-dragging .card { pointer-events: none; }

.card { flex: none; width: clamp(260px, 26vw, 420px); scroll-snap-align: start; display: block; }
.card__frame {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--onyx);
  box-shadow: 0 0 0 1px var(--line-2);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  will-change: transform;
}
.card:hover .card__frame, .card:focus-visible .card__frame { box-shadow: var(--lift), 0 0 0 1px rgba(166, 125, 56, 0.35); transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(30px); }
.card__frame img, .card__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__frame video { opacity: 0; transition: opacity 0.6s; }
.card__frame video.is-on { opacity: 1; }
.card__sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 236, 190, 0.2), rgba(255, 236, 190, 0) 45%); opacity: 0; transition: opacity 0.4s; }
.card:hover .card__sheen { opacity: 1; }
.card__len { position: absolute; left: 12px; bottom: 11px; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); font-size: 10px; }
.card__meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; padding: 16px 4px 0; }
.card__title { font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.card__sub { grid-column: 1; font-size: 14px; color: var(--ink-3); }
.card .pair--mini { grid-row: 1 / 3; grid-column: 2; margin-top: 2px; }

/* ── footer ───────────────────────────────────────────────────────────── */
.foot { position: relative; z-index: 2; padding: clamp(110px, 16vh, 200px) var(--pad) 36px; overflow: hidden; }
.foot__mark {
  font-family: var(--f-display); font-weight: 200;
  font-size: clamp(90px, 25vw, 420px); line-height: 0.8; letter-spacing: -0.07em;
  color: var(--stone);
  margin-left: -0.04em;
}
.foot__mark span { padding-right: 0.08em; background: var(--gold-deep); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot__cols { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 32px; align-items: end; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot__line { color: var(--ink-2); max-width: 46ch; }
.foot__nav { display: grid; gap: 6px; font-size: 15px; }
.foot__nav a { color: var(--ink-2); transition: color 0.3s; width: fit-content; }
.foot__nav a:hover { color: var(--gold-ink); }
.foot__legal { color: var(--ink-3); }

/* ── details ──────────────────────────────────────────────────────────── */
.d-hero {
  position: relative;
  margin: calc(var(--nav-h) + 6px) var(--pad) 0;
  min-height: calc(100svh - var(--nav-h) - 30px);
  border-radius: var(--r-xl);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--onyx);
  box-shadow: 0 50px 110px -40px rgba(30, 22, 8, 0.55);
}
.d-hero__media { position: absolute; inset: 0; background: var(--onyx); }
.d-hero__media img, .d-hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.d-hero__media video { opacity: 0; transition: opacity 1.2s; }
.d-hero__media video.is-on { opacity: 1; }
.d-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(7, 6, 5, 0.9) 0%, rgba(7, 6, 5, 0.6) 30%, rgba(7, 6, 5, 0) 64%),
    linear-gradient(90deg, rgba(7, 6, 5, 0.6) 0%, rgba(7, 6, 5, 0) 55%);
}
.d-hero__body { position: relative; z-index: 1; width: 100%; padding: 0 clamp(24px, 3.4vw, 60px) clamp(40px, 8vh, 80px); }
.d-back { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); margin-bottom: clamp(28px, 6vh, 60px); transition: color 0.3s; }
.d-back:hover { color: var(--champagne); }
.d-back svg { width: 16px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.d-eyebrow { color: var(--champagne); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px 0; }
.d-eyebrow span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; margin: 0 10px; opacity: 0.6; }
.d-title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(48px, 8vw, 144px); line-height: 0.95; letter-spacing: -0.05em;
  max-width: 14ch; margin-bottom: 24px;
}
.d-title[data-long] { font-size: clamp(40px, 5.6vw, 96px); max-width: 18ch; }
.d-title .gold-text { padding: 0 0.06em 0.08em 0; display: inline-block; }
.d-logline { font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-2); max-width: 48ch; margin-bottom: 34px; }

.d-about {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 110px);
  padding: clamp(64px, 10vh, 120px) var(--pad);
}
.d-synopsis { font-size: clamp(21px, 1.9vw, 30px); line-height: 1.38; font-weight: 300; letter-spacing: -0.015em; }
.d-credits { display: grid; align-content: start; }
.d-credits > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.d-credits > div:last-child { border-bottom: 1px solid var(--line); }
.d-credits dt { color: var(--ink-3); padding-top: 3px; }
.d-credits dd { font-size: 16px; }

.d-versions { padding: clamp(40px, 8vh, 100px) var(--pad) clamp(40px, 8vh, 90px); }
.d-versions__head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.d-versions__head .mono { color: var(--gold-ink); }
.d-versions__head h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 3.4vw, 56px); line-height: 1.05; letter-spacing: -0.04em; }
.vpair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); }
.vcard {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--mist);
  border: 1px solid var(--line-2);
  overflow: hidden;
  transition: border-color 0.5s, box-shadow 0.6s var(--ease-out);
}
.vcard:hover { box-shadow: var(--lift); }
.vcard.is-rec { border-color: rgba(166, 125, 56, 0.4); }
.vcard__viz { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--onyx); margin: 10px 10px 0; border-radius: calc(var(--r-lg) - 8px); }
.vcard__body { padding: clamp(22px, 2.4vw, 36px); display: grid; gap: 14px; }
.vcard__tag { color: var(--ink-3); display: flex; align-items: center; gap: 8px; min-height: 16px; }
.vcard.is-rec .vcard__tag { color: var(--gold-ink); }
.vcard h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(26px, 2.4vw, 40px); letter-spacing: -0.04em; line-height: 1.05; }
.vcard__line { color: var(--ink-2); max-width: 44ch; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin: 6px 0 8px; }
.spec > div { background: var(--paper); padding: 12px 14px; display: grid; gap: 5px; }
.spec dt { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { font-size: 13.5px; line-height: 1.35; }
.vcard .btn { justify-self: start; }

/* Side-by-Side card: the real stereo pair, which converges into one picture on hover. */
.sbs-viz { display: grid; place-items: center; }
.sbs-viz__pair { position: relative; width: 94%; aspect-ratio: 32 / 9; }
.sbs-viz__eye {
  position: absolute; top: 0; width: calc(50% - 3px); height: 100%;
  border-radius: 8px; overflow: hidden;
  background-size: 200% 100%; background-repeat: no-repeat;
  will-change: transform;
}
.sbs-viz__eye--l { left: 0; background-position: 0 0; }
.sbs-viz__eye--r { right: 0; background-position: 100% 0; }
.sbs-viz.is-fused .sbs-viz__eye { mix-blend-mode: plus-lighter; }
.sbs-viz__label { position: absolute; top: 9px; left: 10px; color: var(--champagne); font-size: 10px; padding: 3px 7px; border-radius: 6px; background: rgba(7, 6, 5, 0.6); }
.sbs-viz__hint, .depth-viz__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: rgba(239, 233, 220, 0.52); white-space: nowrap; transition: opacity 0.4s; }

/* Spatial card: the same picture as three depth planes you can tilt. */
.depth-viz { perspective: 900px; perspective-origin: 50% 45%; }
.depth-viz__stack { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.depth-viz__layer { position: absolute; inset: 9% 11%; border-radius: 10px; background-size: cover; background-position: center; will-change: transform; }
.depth-viz__layer::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(233, 204, 140, var(--edge, 0)); }
.depth-viz__layer--0 { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); }

/* a series' episodes, each with its own pair of version buttons */
.d-playing { color: var(--ink-3); margin: -16px 0 12px; }
.d-episodes { padding: clamp(20px, 4vh, 48px) var(--pad) clamp(40px, 7vh, 80px); }
.d-episodes__head { display: grid; gap: 14px; margin-bottom: 26px; }
.d-episodes__head .mono { color: var(--gold-ink); }
.d-episodes__head h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(28px, 3vw, 48px); line-height: 1.05; letter-spacing: -0.04em; }
.eps { display: grid; gap: 12px; }
.ep {
  display: grid; grid-template-columns: clamp(180px, 18vw, 280px) minmax(0, 1fr) auto; gap: clamp(16px, 2.2vw, 32px); align-items: center;
  padding: 12px; border-radius: 24px; background: var(--mist); border: 1px solid var(--line-2);
}
.ep__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--onyx); }
.ep__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep__main { display: grid; gap: 6px; min-width: 0; }
.ep__n { color: var(--gold-ink); }
.ep__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 2vw, 32px); letter-spacing: -0.035em; line-height: 1.1; overflow-wrap: anywhere; hyphens: auto; }
.ep__line { color: var(--ink-2); font-size: 15px; }
.ep .pair { box-shadow: none; background: var(--paper); }

.d-more { padding-bottom: 20px; }
.d-more .shelf { padding-top: 40px; }
.d-more .shelf__name { font-size: clamp(30px, 3.4vw, 56px); }

.d-next { display: block; position: relative; margin: clamp(60px, 10vh, 120px) var(--pad) 40px; border-radius: var(--r-xl); overflow: hidden; min-height: 340px; background: var(--onyx); box-shadow: 0 40px 90px -40px rgba(30, 22, 8, 0.5); }
.d-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.d-next::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7, 6, 5, 0.9) 0%, rgba(7, 6, 5, 0.4) 55%, rgba(7, 6, 5, 0.1) 100%); }
.d-next:hover img { transform: scale(1.04); }
.d-next__body { position: relative; z-index: 2; padding: clamp(32px, 4vw, 60px); display: grid; gap: 14px; align-content: end; min-height: 340px; }
.d-next__body .mono { color: var(--bullion); }
.d-next__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(34px, 4.6vw, 80px); letter-spacing: -0.045em; line-height: 1; max-width: 16ch; }
.d-next__sub { color: var(--ink-2); }

/* ── small shared bits for pages ──────────────────────────────────────── */
.shelf__more, .cp-lead__name, .tile__go, .plan__count { --ic: 14px; }
.shelf__more svg, .cp-lead__name svg, .tile__go svg, .plan__count svg { width: var(--ic); height: var(--ic); fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.shelf__more {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 18px; margin-right: 6px;
  border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.shelf__more:hover { background: var(--ink); border-color: var(--ink); color: var(--champagne); }
.card[hidden], .course[hidden] { display: none; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 3.8vw, 60px); letter-spacing: -0.05em; line-height: 1; }
.price span { color: var(--ink-3); font-size: 15px; }
.price__note, .price__alt { color: var(--ink-3); margin-top: 10px; }
.checks { display: grid; gap: 12px; align-content: start; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.45; }
.checks svg { width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--gold-ink); stroke-width: 1.8; }
.on-dark .checks svg { stroke: var(--bullion); }

/* ── a channel page ───────────────────────────────────────────────────── */
.cp-hero {
  position: relative;
  margin: calc(var(--nav-h) + 6px) var(--pad) 0;
  min-height: min(80svh, 820px);
  border-radius: var(--r-xl);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--onyx);
  box-shadow: 0 50px 110px -40px rgba(30, 22, 8, 0.55);
}
.cp-hero__media { position: absolute; inset: 0; }
.cp-hero__media img, .cp-hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.cp-hero__media video { opacity: 0; transition: opacity 1.2s; }
.cp-hero__media video.is-on { opacity: 1; }
.cp-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(7, 6, 5, 0.92) 0%, rgba(7, 6, 5, 0.55) 34%, rgba(7, 6, 5, 0) 66%),
    linear-gradient(90deg, rgba(7, 6, 5, 0.55) 0%, rgba(7, 6, 5, 0) 55%);
}
.cp-hero__plan {
  position: absolute; z-index: 2; top: 20px; right: 20px;
  display: grid; gap: 3px; padding: 11px 16px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  font-size: 14px; font-weight: 500;
  transition: border-color 0.3s;
}
.cp-hero__plan .mono { color: var(--bullion); font-size: 10px; }
/* the Institute's seal above its title (a channel's crest) */
.cp-crest { display: block; width: clamp(84px, 9vw, 136px); height: auto; margin-bottom: 18px; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45)); }
/* when a hero's content fills it (short screens), it still starts below the top edge */
@media (max-width: 560px) and (max-height: 760px) { .cp-crest { width: 64px; margin-bottom: 12px; } }
/* a partner's logo on a title's page (HPW on its lectures), linking to their site */
.d-partner {
  position: absolute; z-index: 2; top: 20px; right: 20px;
  display: grid; justify-items: center; gap: 6px; width: clamp(112px, 10vw, 148px); padding: 14px 14px 12px;
  border-radius: 20px; background: #fff; color: #1b1712; text-align: center;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6); transition: box-shadow 0.4s; /* GSAP owns its transform (the intro) */
}
/* the hero's text never runs under the card: a column kept free beside it, and on phones room above */
.d-hero--partner .d-hero__body { padding-right: calc(clamp(112px, 10vw, 148px) + 44px); }
.d-partner img { width: 100%; height: auto; }
.d-partner__name { font-size: 12px; font-weight: 500; line-height: 1.25; }
.d-partner__go { font-size: 9.5px; letter-spacing: 0.06em; color: #8a6a2c; }
.d-partner:hover { box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.75), 0 0 0 2px rgba(233, 204, 140, 0.55); }
@media (max-width: 560px) {
  .d-partner { top: 14px; right: 14px; width: 86px; padding: 9px 9px 8px; border-radius: 16px; gap: 4px; }
  .d-partner__name { display: none; }
  .d-partner__go { font-size: 9px; }
  .d-hero--partner .d-hero__body { padding-right: clamp(24px, 3.4vw, 60px); padding-top: 128px; }
}
.cp-hero__plan:hover { border-color: rgba(233, 204, 140, 0.5); }
.cp-hero__body { position: relative; z-index: 1; width: 100%; padding: clamp(20px, 5vw, 40px) clamp(24px, 3.4vw, 60px) clamp(36px, 7vh, 72px); }
.cp-hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--champagne); margin-bottom: 16px; }
.cp-hero__kicker b { font-family: var(--f-display); font-weight: 500; font-size: 12px; letter-spacing: -0.01em; text-transform: none; color: var(--bullion); }
.cp-title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(64px, 12vw, 200px); line-height: 0.9; letter-spacing: -0.055em;
  margin-bottom: 18px;
}
.cp-title[data-long] { font-size: clamp(46px, 7.4vw, 128px); }
.cp-title .gold-text { display: inline-block; padding: 0 0.06em 0.06em 0; }
.cp-line { font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-2); max-width: 46ch; margin-bottom: 30px; }
.cp-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cp-lead__name { display: inline-grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; font-size: 17px; font-weight: 500; }
.cp-lead__name .mono { grid-column: 1 / -1; color: var(--ink-3); font-size: 10px; margin-bottom: 4px; }
.cp-lead__name:hover { color: var(--champagne); }

.cp-browse { padding: clamp(56px, 9vh, 100px) var(--pad) 0; }
.cp-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid var(--line);
}
.cp-count { color: var(--ink-3); }
.cp-count b { color: var(--ink); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--champagne); }
a.chip, .chip:has(.chip__n) { display: inline-flex; align-items: center; gap: 9px; }
.chip__n { font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: var(--gold-ink); }
.chip[aria-pressed="true"] .chip__n { color: var(--bullion); }
.chip--soon { color: var(--ink-3); border-style: dashed; }
.chip--soon .chip__n { color: var(--ink-3); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; }
/* Vrai Voyeur: adults only, locked */
svg.lock { width: 13px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.chip--locked { display: inline-flex; align-items: center; gap: 8px; }
.chip--locked svg.lock { color: var(--gold-ink); margin-right: -2px; }
.chip--locked[aria-pressed="true"] svg.lock { color: var(--bullion); }
.chip--locked .chip__n { font-size: 10px; letter-spacing: 0.06em; }

/* Movies: one block per subcategory; the empty ones sit side by side as "coming soon" tiles */
.cp-subs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(56px, 8vh, 88px) clamp(14px, 1.6vw, 24px);
}
.cp-sub { grid-column: 1 / -1; }
.cp-sub[hidden] { display: none; }
.cp-sub__head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 8px 18px; margin-bottom: 26px; }
.cp-sub__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 3vw, 48px); letter-spacing: -0.045em; line-height: 1.05; }
.cp-sub__count { color: var(--gold-ink); }
.cp-sub__line { grid-column: 1 / -1; color: var(--ink-2); font-size: 16px; max-width: 56ch; }
.cp-sub.is-empty { grid-column: auto; padding: 26px 28px 28px; border-radius: var(--r-lg); border: 1px dashed var(--line); background: var(--mist); }
.cp-sub.is-empty .cp-sub__head { margin: 0; }
.cp-sub.is-empty .cp-sub__name { font-size: clamp(24px, 2vw, 32px); }
.cp-sub.is-empty .cp-sub__count { color: var(--ink-3); }
.cp-sub.is-empty .cp-sub__line { font-size: 15px; }
.cp-sub.is-locked { border-style: solid; border-color: rgba(138, 101, 38, 0.35); background: linear-gradient(160deg, #fbf7ee, var(--mist)); }
.cp-sub.is-locked .cp-sub__head { grid-template-columns: 1fr; }
.cp-sub.is-locked .cp-sub__name { display: flex; align-items: center; gap: 12px; }
.cp-sub.is-locked .cp-sub__name svg.lock { width: 0.62em; height: 0.68em; color: var(--gold-ink); stroke-width: 1.4; }
.cp-sub.is-locked .cp-sub__count { color: var(--gold-ink); }
.cp-sub__unlock { margin-top: 20px; }
.shelf__subs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 44px clamp(14px, 1.6vw, 24px); perspective: 1400px; }
.cp-grid .card { width: auto; }

/* courses read as rows */
.cp-list { display: grid; }
.course {
  display: grid;
  grid-template-columns: clamp(170px, 15vw, 230px) minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)) auto;
  gap: clamp(16px, 2vw, 28px); align-items: center;
  padding: 14px; margin: 0 -14px;
  border-radius: 22px; border-bottom: 1px solid var(--line-2);
  perspective: 900px;
  transition: background-color 0.35s;
}
.course:hover { background: var(--mist); }
.course__thumb.card__frame { border-radius: 14px; }
.course:hover .card__frame { box-shadow: var(--lift); transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(18px); }
.course:hover .card__sheen { opacity: 1; }
.course__main { display: grid; gap: 6px; min-width: 0; }
.course__title { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.course__line { color: var(--ink-3); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course__meta { display: grid; gap: 5px; font-size: 14.5px; }
.course__meta .mono { color: var(--ink-3); font-size: 10px; }

/* the channel's own plan */
.cp-plan { padding: clamp(80px, 12vh, 140px) var(--pad) 0; }
.plan-band {
  display: grid; grid-template-columns: 1.15fr 1fr auto; gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(28px, 3.4vw, 52px);
  border-radius: var(--r-xl); background: var(--mist); border: 1px solid var(--line-2);
}
.plan-band__main > .mono { color: var(--gold-ink); }
.plan-band__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(32px, 3.4vw, 56px); letter-spacing: -0.045em; line-height: 1.02; margin: 12px 0 10px; }
.plan-band__line { color: var(--ink-2); margin-bottom: 24px; }
.plan-band__cta { display: grid; gap: 10px; }
.plan-band__alt { margin-top: 14px; color: var(--ink-2); font-size: 14.5px; max-width: 40ch; }

/* the other channels */
.cp-more { padding: clamp(80px, 12vh, 140px) var(--pad) 0; }
.cp-more__kicker { color: var(--ink-3); margin-bottom: 18px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.tile {
  position: relative; display: block; min-height: clamp(230px, 26vw, 360px);
  border-radius: var(--r-xl); overflow: hidden; background: var(--onyx);
  box-shadow: 0 40px 90px -40px rgba(30, 22, 8, 0.5);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(7, 6, 5, 0.88) 0%, rgba(7, 6, 5, 0.25) 60%, rgba(7, 6, 5, 0.1) 100%); }
.tile__body { position: absolute; z-index: 2; left: clamp(22px, 2.4vw, 34px); right: 96px; bottom: clamp(20px, 2.4vw, 30px); display: grid; gap: 10px; }
.tile__body .mono { color: var(--champagne); }
.tile__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(26px, 2.6vw, 44px); letter-spacing: -0.045em; line-height: 1; }
.tile__go {
  --ic: 18px;
  position: absolute; z-index: 2; right: 24px; bottom: 24px;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-edge); color: var(--champagne);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.4s, color 0.4s;
}
.tile:hover img { transform: scale(1.05); }
.tile:hover .tile__go { background: var(--champagne); color: var(--onyx); }

/* ── pricing ──────────────────────────────────────────────────────────── */
.pp { padding: calc(var(--nav-h) + clamp(28px, 5vh, 64px)) var(--pad) 0; }
.pp-head { display: grid; justify-items: center; text-align: center; gap: 14px; margin-bottom: clamp(32px, 5vh, 56px); }
.pp-kicker { color: var(--gold-ink); }
.pp-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(38px, 4.6vw, 78px); line-height: 0.98; letter-spacing: -0.05em; max-width: 16ch; }
.pp-line { color: var(--ink-2); font-size: clamp(17px, 1.3vw, 20px); max-width: 52ch; }
.bill { position: relative; display: inline-flex; padding: 5px; margin-top: 10px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line-2); }
.bill__knob { position: absolute; top: 5px; left: 0; height: calc(100% - 10px); border-radius: 999px; background: var(--ink); }
.bill button { position: relative; z-index: 1; height: 42px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color 0.3s; }
.bill button[aria-checked="true"] { color: var(--champagne); }
.bill__save { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: rgba(201, 164, 92, 0.18); color: var(--gold-ink); transition: background-color 0.3s, color 0.3s; }
.bill button[aria-checked="true"] .bill__save { background: rgba(201, 164, 92, 0.24); color: var(--champagne); }

.show-s { display: none; }

/* three tabs: Entertainment, then Vrai Voyeur and the Technical Institute on their own */
.pp-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  width: min(100%, 960px); margin-top: 14px; padding: 6px;
  border-radius: 26px; background: var(--mist); border: 1px solid var(--line-2);
}
.pp-tab {
  display: grid; justify-items: center; gap: 7px; padding: 16px 14px;
  border-radius: 20px; color: var(--ink-2);
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.pp-tab__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(17px, 1.7vw, 24px); letter-spacing: -0.035em; line-height: 1.1; }
.pp-tab__sub { font-size: 10px; color: var(--ink-3); transition: color 0.35s; }
.pp-tab:hover { color: var(--ink); }
.pp-tab[aria-selected="true"] { background: var(--ink); color: var(--champagne); box-shadow: 0 18px 40px -22px rgba(30, 22, 8, 0.7); }
.pp-tab[aria-selected="true"] .pp-tab__sub { color: var(--bullion); }
.pp-panel[hidden], .bill[hidden] { display: none; }
.pp-panel__line { text-align: center; color: var(--ink-2); font-size: clamp(16px, 1.2vw, 18px); max-width: 60ch; margin: 0 auto clamp(26px, 4vh, 44px); }
.pp-edu { display: grid; justify-items: center; gap: 12px; text-align: center; max-width: 780px; margin: 0 auto clamp(28px, 4.4vh, 48px); }
.pp-edu__kicker { color: var(--gold-ink); }
.pp-edu__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 3.6vw, 60px); letter-spacing: -0.045em; line-height: 1.02; }
.pp-edu__name .gold-text { display: inline-block; padding: 0 0.06em 0.06em 0; }
.pp-edu__line { color: var(--ink-2); font-size: clamp(16px, 1.2vw, 19px); max-width: 64ch; }

/* the Institute tab: every course with its own price */
.pp-courses { display: grid; gap: clamp(40px, 6vh, 72px); max-width: 1180px; margin: 0 auto; }
.pp-subject__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pp-subject__head h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(26px, 2.4vw, 40px); letter-spacing: -0.045em; line-height: 1.05; }
.pp-subject__head a { --ic: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); }
.pp-subject__head a svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pcourse {
  display: grid; grid-template-columns: clamp(130px, 12vw, 176px) minmax(0, 1fr) auto auto;
  gap: clamp(16px, 2.2vw, 36px); align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line-2);
}
.pcourse__thumb.card__frame { border-radius: 14px; }
.pcourse__main { display: grid; gap: 6px; min-width: 0; }
.pcourse__title { margin: 0; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.pcourse__title a:hover { color: var(--gold-ink); }
.pcourse__line { color: var(--ink-2); font-size: 14.5px; }
.pcourse__meta { color: var(--ink-3); font-size: 10.5px; margin-top: 2px; }
.pcourse__price { display: grid; justify-items: end; gap: 6px; min-width: 96px; }
.pcourse__price b { font-family: var(--f-display); font-weight: 300; font-size: clamp(28px, 2.4vw, 38px); letter-spacing: -0.045em; line-height: 1; }
.pcourse__price span { color: var(--ink-3); font-size: 10px; }
.pp-includes { padding-top: clamp(64px, 10vh, 110px); max-width: 920px; }
.pp-includes .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.plan {
  display: flex; flex-direction: column;
  border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -44px rgba(30, 22, 8, 0.35);
  overflow: hidden;
  transition: box-shadow 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.plan:hover { box-shadow: var(--lift); transform: translateY(-4px); }
.plan__window { position: relative; display: block; aspect-ratio: 16 / 8.5; margin: 10px 10px 0; border-radius: calc(var(--r-xl) - 8px); overflow: hidden; background: var(--onyx); }
.plan__window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.plan__window::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(7, 6, 5, 0.85) 0%, rgba(7, 6, 5, 0) 65%); }
.plan:hover .plan__window img { transform: scale(1.05); }
.plan__ch { position: absolute; z-index: 2; left: 20px; bottom: 16px; padding-right: 0.06em; font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.05; letter-spacing: -0.04em; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan__count { position: absolute; z-index: 2; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--champagne); font-size: 10px; }
.plan__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 32px); }
.plan__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(24px, 2vw, 32px); letter-spacing: -0.04em; line-height: 1.1; }
/* two lines each, so the prices line up across the row */
.plan__line { color: var(--ink-2); min-height: 2lh; }
.plan__price { padding: 10px 0 20px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.plan .price b { font-size: clamp(36px, 3vw, 50px); }
.plan .checks { flex: 1; }
.plan__cta { width: 100%; margin-top: 14px; }
/* one plan on its own (Vrai Voyeur) */
.plans--one { grid-template-columns: minmax(0, 520px); justify-content: center; }
.plan__lock { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: var(--bullion); }
.plan__lock svg.lock { width: 44px; height: 48px; stroke-width: 1.1; opacity: 0.9; }
.plan__window:has(.plan__lock) { background: radial-gradient(120% 90% at 50% 40%, #2a2112, var(--onyx) 70%); }
.age { display: grid; gap: 4px; margin-top: 8px; }
.age__check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.age__check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); }
.plan__cta:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.bundle {
  display: grid; grid-template-columns: 1.1fr 1fr;
  margin-top: clamp(14px, 1.6vw, 24px); min-height: 420px;
  border-radius: var(--r-xl); overflow: hidden; background: var(--onyx);
  box-shadow: 0 50px 110px -40px rgba(30, 22, 8, 0.55);
}
.bundle__art { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.bundle__art img { width: 100%; height: 100%; object-fit: cover; }
.bundle__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 6, 5, 0.1) 0%, rgba(7, 6, 5, 0.4) 60%, var(--onyx) 100%); }
.bundle__body { display: grid; gap: 14px; align-content: center; padding: clamp(28px, 4vw, 64px); }
.bundle__kicker { color: var(--bullion); }
.bundle__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 4.6vw, 80px); letter-spacing: -0.05em; line-height: 1; }
.bundle__name .gold-text { display: inline-block; padding: 0 0.06em 0.06em 0; }
.bundle__line { color: var(--ink-2); }
.bundle__save { color: var(--champagne); }
.bundle .btn { justify-self: start; margin-top: 10px; }

.pp-h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 3.2vw, 52px); letter-spacing: -0.045em; line-height: 1.05; margin-bottom: 28px; }
.compare { padding-top: clamp(80px, 12vh, 140px); }
.compare__scroll { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-lg); scrollbar-width: thin; }
.compare table { width: 100%; min-width: 860px; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: 15px; font-weight: 400; }
.compare thead th { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); background: var(--mist); }
.compare tbody th { font-weight: 500; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .yes, .compare .no { display: inline-grid; }
.compare .yes svg, .compare .no svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.compare .yes { color: var(--gold-ink); }
.compare .no { color: var(--ink-3); }
.compare__price td { font-family: var(--f-display); font-weight: 300; font-size: 22px; letter-spacing: -0.03em; }
.compare__price td span { font-family: var(--f-sans); font-size: 13px; letter-spacing: 0; color: var(--ink-3); margin-left: 3px; }

.faq { padding-top: clamp(80px, 12vh, 140px); max-width: 920px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; width: 14px; height: 14px; flex: none; color: var(--gold-ink); }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform 0.4s var(--ease-out); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0deg); }
.faq__item p { padding: 0 4px 24px; color: var(--ink-2); max-width: 64ch; }

/* ── player (always dark)─────────────────────────────────────────────── */
.player { position: fixed; inset: 0; z-index: 90; background: #000; }
.player[hidden] { display: none; }
.player__stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.player__screen { position: relative; overflow: hidden; }
.player__video { position: absolute; top: 0; left: 0; height: 100%; width: 100%; max-width: none; object-fit: fill; }
.player__stage[data-crop="left"] .player__video { width: 200%; }
/* the video on its own in full screen (Spatial, immersive on Vision Pro) */
.player__video:fullscreen { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__video:-webkit-full-screen { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player__frame[hidden] { display: none; }
.player__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.7) 100%); transition: opacity 0.5s; }
.player__top, .player__bottom { position: absolute; left: var(--pad); right: var(--pad); transition: opacity 0.5s, transform 0.5s var(--ease-out); }
.player__top { top: 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.player__meta { display: grid; gap: 4px; min-width: 0; }
.player__title { font-family: var(--f-display); font-weight: 300; font-size: 20px; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__sub { color: var(--ink-3); }
.player__versions { justify-self: center; }
.player__versions .pair__v { padding: 7px 16px 7px 12px; }
.player__versions .pair__v[aria-pressed="true"] { background: var(--gold); color: #1a1206; }
.player__versions .pair__v[aria-pressed="true"] .pair__sub { color: rgba(26, 18, 6, 0.62); }
.player__right { justify-self: end; display: flex; gap: 8px; }
.player__btn {
  height: 40px; padding: 0 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--glass-edge); background: var(--glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  font-size: 14px; font-weight: 500;
  transition: border-color 0.3s, color 0.3s;
}
.player__btn:hover { border-color: rgba(233, 204, 140, 0.5); color: var(--champagne); }
.player__btn--gold { background: var(--gold); color: #1a1206; border-color: transparent; }
.player__btn--gold:hover { color: #1a1206; }
.player__btn[hidden] { display: none; }
.player__notice { position: absolute; left: 50%; top: 86px; transform: translateX(-50%); max-width: min(640px, calc(100% - 32px)); text-align: center; padding: 10px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: var(--ink-2); font-size: 13.5px; }
.player__notice[hidden] { display: none; }
.player__bottom { bottom: 22px; padding: 14px 18px 12px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: var(--glass-hi); }
.player__scrub { position: relative; height: 18px; cursor: pointer; touch-action: none; }
.player__scrub::before, .player__buf, .player__prog { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 2px; }
.player__scrub::before { background: rgba(239, 233, 220, 0.14); }
.player__buf { background: rgba(239, 233, 220, 0.24); transform: scaleX(0); transform-origin: 0 50%; }
.player__prog { background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }
.player__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.player__group { display: flex; align-items: center; gap: 8px; }
.player__time { color: var(--ink-2); margin-left: 6px; }
.player__ctl { height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: color 0.3s, background-color 0.3s; }
.player__ctl:hover { color: var(--champagne); background: rgba(255, 240, 205, 0.06); }
.player__status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; color: var(--ink-2); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.player__status.is-on { opacity: 1; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(214, 178, 104, 0.25); border-top-color: var(--bullion); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player.is-idle { cursor: none; }
.player.is-idle .player__top, .player.is-idle .player__bottom { opacity: 0; }
.player.is-idle .player__top { transform: translateY(-8px); }
.player.is-idle .player__bottom { transform: translateY(8px); }
.player.is-idle .player__veil { opacity: 0; }
.player.is-frame .player__bottom, .player.is-frame .player__veil { display: none; }

/* ── headset notice ───────────────────────────────────────────────────── */
.xr { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; }
.xr[hidden] { display: none; }
.xr__veil { position: absolute; inset: 0; background: rgba(244, 244, 241, 0.6); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); }
.xr__panel {
  position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-2);
  box-shadow: var(--glass-hi), 0 50px 120px -30px rgba(30, 22, 8, 0.35);
  backdrop-filter: blur(30px) saturate(140%); -webkit-backdrop-filter: blur(30px) saturate(140%);
}
.xr__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink-3); }
.xr__x { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); transition: color 0.3s, border-color 0.3s; }
.xr__x:hover { color: var(--ink); border-color: var(--ink); }
.xr__glyph { width: 76px; height: 44px; margin: 28px 0 18px; color: var(--gold-ink); fill: none; stroke: currentColor; stroke-width: 1.1; }
.xr__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 4vw, 44px); line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 14px; }
.xr__body { color: var(--ink-2); margin-bottom: 24px; }
.xr__rows { display: grid; margin-bottom: 26px; }
.xr__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.xr__row:last-child { border-bottom: 1px solid var(--line); }
.xr__row dt { font-weight: 500; }
.xr__row .pair--mini { grid-row: 1 / 3; grid-column: 2; align-self: center; }
.xr__row .pair--mini i { background: var(--ink); color: var(--champagne); }
.xr__row dd { grid-column: 1; color: var(--ink-3); font-size: 14px; }
.xr__row dd b { color: var(--ink); font-weight: 500; }
.xr__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* signing in to watch (js/auth.js); the panel is the headset notice's */
.auth__title { margin-top: 26px; }
.auth__form { display: grid; gap: 14px; }
.auth__field { display: grid; gap: 6px; }
.auth__field span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.auth__field input {
  height: 48px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; transition: border-color 0.3s;
}
.auth__field input:focus { outline: none; border-color: var(--ink); }
.auth__err { color: #a3361f; font-size: 14px; }
.auth__err[hidden] { display: none; }
.auth__form .xr__actions { margin-top: 6px; }
/* the door to Vrai Voyeur */
.vv-gate__title { margin-top: 26px; display: flex; align-items: baseline; gap: 14px; }
.vv-gate__age { font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--champagne); }
.vv-gate__veil { background: rgba(11, 10, 8, 0.72); }
.vv-gate__note { margin-top: 14px; color: var(--gold-ink); font-size: 12px; letter-spacing: 0.04em; }
.vv-gate__form { margin-top: -6px; }
/* Vrai Voyeur's store: no picture yet, just the dark window */
.vv-store__hero { background: radial-gradient(120% 90% at 20% 100%, #2a2116 0%, var(--onyx) 60%); min-height: min(60svh, 620px); }
.auth__switch { margin-top: 22px; color: var(--ink-2); font-size: 14px; }
.auth__switch button, .auth__link { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.auth__note { margin-top: 14px; color: var(--ink-3); font-size: 11px; }
.xr-toast {
  position: fixed; z-index: 60; left: 50%; top: calc(var(--nav-h) + 6px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px -16px rgba(30, 22, 8, 0.3);
  font-size: 14px; white-space: nowrap;
}
.xr-toast[hidden] { display: none; }
.xr-toast .mono { color: var(--gold-ink); }

/* ── transitions ──────────────────────────────────────────────────────── */
.fly { position: fixed; z-index: 70; overflow: hidden; pointer-events: none; background: var(--onyx); }
.fly img { width: 100%; height: 100%; object-fit: cover; }

/* ── smaller screens ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .spec { grid-template-columns: 1fr 1fr; }
  .spec > div:last-child { grid-column: 1 / -1; }
  .plan-band { grid-template-columns: 1fr 1fr; }
  .plan-band__cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
  .course { grid-template-columns: 170px minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) auto; }
  .course__meta:nth-of-type(3), .course__meta:nth-of-type(4) { display: none; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: auto 1fr auto; gap: 10px; }
  .nav__pill { justify-self: center; }
  .nav__pill a { padding: 7px 11px; font-size: 13px; }
  .hide-s { display: none; }
  .show-s { display: inline; }
  .nav__xr span, .nav__acct span:not(.nav__initial) { display: none; }
  .nav__xr, .nav__acct { padding: 0 11px; }
  .nav__acct.is-in { padding: 0 4px; }
  .nav__end { gap: 6px; }
  /* the window takes the width; the rail becomes a strip under it */
  .hero { --stage-l: var(--pad); --stage-b: 150px; min-height: 700px; }
  .rail { top: auto; bottom: 14px; left: 0; right: 0; width: auto; }
  .rail__head { display: none; }
  .rail__list { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 0 var(--pad); scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); }
  .rail__list li { flex: none; width: 150px; scroll-snap-align: start; }
  .rail__item { grid-template-columns: 1fr; gap: 8px; padding: 6px; }
  .rail__title { font-size: 13px; -webkit-line-clamp: 1; }
  .hero__info { left: calc(var(--pad) + 20px); right: calc(var(--pad) + 20px); bottom: calc(var(--stage-b) + 24px); }
  .hero__hud { display: none; }
  .hero__line { margin-bottom: 22px; }
  .d-about { grid-template-columns: 1fr; }
  .vpair { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr; }
  .player__top { grid-template-columns: 1fr auto; }
  .player__versions { grid-column: 1 / -1; grid-row: 2; }
  .plans { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; }
  .plan__window { aspect-ratio: 16 / 6.5; }
  .plan__line { min-height: 0; }
  .bundle { grid-template-columns: 1fr; }
  .bundle__art { height: 200px; }
  .bundle__art::after { background: linear-gradient(0deg, var(--onyx) 0%, rgba(7, 6, 5, 0.2) 100%); }
  .plan-band { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .course { grid-template-columns: 132px 1fr; gap: 16px; }
  .course__meta, .course .pair--mini { display: none; }
  .course .course__meta--price { display: grid; grid-column: 2; }
  .pcourse { grid-template-columns: 104px minmax(0, 1fr); gap: 10px 16px; }
  .pcourse__price { grid-column: 2; display: flex; align-items: baseline; gap: 10px; }
  .pcourse .btn { grid-column: 2; justify-self: start; }
  .pcourse__line { display: none; }
  .pp-includes .checks { grid-template-columns: 1fr; }
  .cp-hero__plan { top: 14px; right: 14px; }
  .ep { grid-template-columns: 150px minmax(0, 1fr); }
  .ep .pair { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) {
  /* pricing tabs stack: name left, what it covers right */
  .pp-tabs { grid-template-columns: 1fr; border-radius: 22px; }
  .pp-tab { grid-template-columns: auto 1fr; justify-items: start; align-items: baseline; gap: 12px; padding: 14px 18px; border-radius: 16px; }
  .pp-tab__sub { justify-self: end; text-align: right; }
  .brand { font-size: 17px; }
  .nav { gap: 4px; }
  .nav__pill { padding: 3px; gap: 0; }
  .nav__pill a { padding: 7px 6px; font-size: 11.5px; }
  .nav__glint { top: 3px; height: calc(100% - 6px); }
  .nav__xr, .nav__acct { height: 34px; padding: 0 7px; }
  .nav__acct.is-in { padding: 0 3px; }
  .nav__initial { width: 26px; height: 26px; }
  .hero__stage, .d-hero, .cp-hero { border-radius: 24px; }
  .cp-hero { min-height: 74svh; }
  .cp-hero__plan { display: none; }
  .bill button { padding: 0 14px; font-size: 14px; }
  .pair { width: 100%; }
  .pair__v { flex: 1 1 auto; justify-content: center; padding: 10px 12px 10px 10px; column-gap: 8px; }
  .pair__v svg { width: 20px; grid-row: 1; }
  .pair__name { font-size: 13.5px; white-space: nowrap; }
  .pair__sub { display: none; }
  .hero__more { display: none; }
  .hero__line { font-size: 15px; }
  .hero__title { font-size: 40px; }
  .hero__title[data-long] { font-size: 30px; }
  .shelf__head { grid-template-columns: 1fr; }
  .shelf__ctrl { justify-self: start; }
  .shelf__btn { display: none; }
  .shelf__more { height: 40px; }
  .card { width: 78vw; }
  .d-credits > div { grid-template-columns: 1fr; gap: 4px; }
  .spec { grid-template-columns: 1fr 1fr; }
  .player__right .player__btn span { display: none; }
  .player__time { display: none; }
}
/* five channel links and the headset chip, down to 360px phones */
@media (max-width: 400px) {
  .nav { padding: 0 12px; }
  .brand { font-size: 15px; }
  .nav__pill a { padding: 7px 5px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
