/* salaiptv.com. The app's Amethyst OLED world: true black, a deep violet
   that comes and goes with the scroll, the brand violet where it does a
   job. The screens are the material; the motion (main.js, GSAP) is the
   staging. Everything degrades to a plain page without JavaScript or with
   reduced motion. */

/* Schibsted Grotesk (SIL OFL) for everything; Instrument Serif (SIL OFL)
   italic for the words that carry a sentence. Both served from here. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

:root {
  --black: #000;
  --ink: #07040d;
  --amethyst: #14082a;
  --raised: #0e0c12;
  --line: #231e2b;
  --line-2: #352d42;
  --paper: #f3eff8;
  --paper-2: #a89fb6;
  --paper-3: #6f6680;
  --violet: #b77aff;
  --violet-deep: #6d35d9;
  --violet-ink: #170b27;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --measure: 58ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bg: var(--black);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.9s var(--ease);
}
html[data-theme="amethyst"] body { --bg: var(--amethyst); }
.scrim, .fold::before, .platforms::before { transition: opacity 0.9s var(--ease); }
img { max-width: 100%; height: auto; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h1 em, h2 em, .statement-text em { font: italic 1.08em/1 var(--serif); letter-spacing: 0; color: var(--violet); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; padding: 0.5rem 1rem; background: var(--violet); color: var(--violet-ink); border-radius: 999px; }
.skip:focus { top: 1rem; }

/* A small dot follows the pointer and grows over anything pressable;
   only where a fine pointer exists, and never in place of the arrow. */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--violet);
    pointer-events: none;
    opacity: 0;
    transform: translate(-100px, -100px);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), opacity 0.3s, background-color 0.25s;
    mix-blend-mode: screen;
  }
  .cursor.is-on { opacity: 0.9; }
  html.cursor-on, html.cursor-on * { cursor: none !important; }
  html.cursor-on .cursor { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--paper); mix-blend-mode: difference; }
  html.cursor-on .cursor.is-over { width: 48px; height: 48px; margin: -24px 0 0 -24px; background: rgb(255 255 255 / 0.9); }
  html.cursor-on .cursor.is-drag { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .cursor.is-over { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgb(183 122 255 / 0.35); }
  .cursor.is-drag { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgb(183 122 255 / 0.25); }
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.1rem;
  padding: 0 1.45rem;
  border-radius: 999px;
  background: var(--violet);
  color: var(--violet-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #d9bbff;
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { transform: translateY(-1px); }
.btn-quiet { background: transparent; color: var(--paper); border: 1px solid var(--line-2); }
.btn-quiet::after { background: var(--paper); }
.btn-quiet:hover { color: var(--violet-ink); border-color: var(--paper); }

/* Header: fixed, out of the way until the page scrolls, then on a glass. */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  transition: background-color 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.top.is-stuck {
  background: rgb(7 4 13 / 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.06);
}
.brand { display: inline-flex; }
.brand img { display: block; width: 146px; height: auto; }
.top-right { display: flex; align-items: center; gap: 0.75rem; }
.btn-top { height: 2.6rem; padding: 0 1.15rem; }
.menu-btn {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.3);
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}
.menu-btn:hover { border-color: var(--paper-2); }
.menu-btn span { display: block; width: 16px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform 0.35s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* The menu: the whole screen, five big lines. */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  background: rgb(7 4 13 / 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
}
.menu[hidden] { display: flex; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease), visibility 0s; }
.menu-links { margin: 0; padding: 0; list-style: none; }
.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.25em 0;
  color: var(--paper);
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none;
  transform: translateY(0.4em);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), color 0.25s;
}
.menu-links a small { font: italic 0.35em/1 var(--serif); color: var(--violet); letter-spacing: 0; }
.menu-links a:hover { color: var(--violet); }
.menu.is-open .menu-links a { transform: none; opacity: 1; }
.menu.is-open .menu-links li:nth-child(2) a { transition-delay: 0.05s; }
.menu.is-open .menu-links li:nth-child(3) a { transition-delay: 0.1s; }
.menu.is-open .menu-links li:nth-child(4) a { transition-delay: 0.15s; }
.menu.is-open .menu-links li:nth-child(5) a { transition-delay: 0.2s; }
.menu-foot { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; color: var(--paper-2); }
.menu-foot a { color: var(--paper-2); }

/* Sections */
main > section { position: relative; }
.wrap, .hero-copy, .journey-head, .fold, .platforms, .start, .foot-grid, .foot-note {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
h2 { font-size: clamp(2.25rem, 5.2vw, 4.25rem); line-height: 1.02; max-width: 16ch; }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.15; }

/* Hero. Behind the words, the app's own welcome wall: the open films'
   posters on a slow slide, tilted, under a scrim that keeps the left dark
   for the words and two glows in the accent. Transforms only. */
.hero { position: relative; min-height: 100vh; padding: clamp(8rem, 18vh, 12rem) 0 clamp(3rem, 8vw, 6rem); overflow: hidden; }
.wall, .scrim, .aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* Everything behind the hero fades out before the hero ends: the next
   section meets the page's own colour, never a cut glow. */
.aurora { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 50%, transparent 92%); mask-image: linear-gradient(to bottom, #000 0, #000 50%, transparent 92%); }
.wall {
  opacity: 0.6;
  /* The wall fades out towards the bottom, so the section ends in the
     page's own colour with no edge. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 50%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0, #000 50%, transparent 92%);
}
.wall-tilt { position: absolute; top: -40px; left: -250px; transform-origin: 0 0; transform: rotate(-8deg); }
.wall-row { display: flex; margin-bottom: 26px; animation: wall-slide 150s linear infinite; will-change: transform; }
.wall-row:nth-child(odd) { margin-left: -124px; }
.wall-row img { flex-shrink: 0; width: 200px; height: 283px; margin-right: 26px; border-radius: 12px; object-fit: cover; }
@keyframes wall-slide { to { transform: translateX(-50%); } }
/* A soft dark pool behind the words and a light veil over the rest; no
   opaque colour anywhere, so nothing meets the page's colour in a line. */
.scrim {
  background:
    radial-gradient(55% 60% at 26% 42%, rgb(0 0 0 / 0.86) 0, rgb(0 0 0 / 0.6) 40%, transparent 75%),
    linear-gradient(180deg, rgb(0 0 0 / 0.55) 0, rgb(0 0 0 / 0.25) 30%, rgb(0 0 0 / 0.2) 65%, transparent 100%);
}
.aurora i {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(109 53 217 / 0.5), transparent 62%);
  mix-blend-mode: screen;
  animation: aurora 22s ease-in-out infinite alternate;
}
.aurora i:first-child { top: -20vw; right: -10vw; }
.aurora i:last-child { top: 30%; left: 4vw; width: 40vw; height: 40vw; animation-duration: 28s; animation-direction: alternate-reverse; }
@keyframes aurora { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8vw, 6vw) scale(1.15); } }
.hero-copy { position: relative; }
.hero-where { margin-top: 1.5rem; color: var(--paper-3); font-size: 0.98rem; }
.hero-title {
  margin-top: 0;
  font-size: clamp(3.1rem, 10.5vw, 9.5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 12ch;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .line > span { display: block; }
.lead {
  margin-top: 1.75rem;
  max-width: 44ch;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--paper-2);
  text-wrap: pretty;
}
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* A TV screen: 16:9, hairline frame, black behind the picture. */
.tv {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(10px, 1.2vw, 18px);
  border: 1px solid var(--line-2);
  background: var(--black);
}
.tv > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The comparison in the hero: a glow behind it, the frame rising into
   place as the page scrolls (main.js). */
.compare {
  position: relative;
  max-width: var(--max);
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding: 0 var(--gutter);
  perspective: 1400px;
}
.compare::before {
  content: "";
  position: absolute;
  inset: 8% 12% 4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(109 53 217 / 0.45), transparent);
  filter: blur(40px);
  pointer-events: none;
}
.compare-frame {
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 40px 120px rgb(0 0 0 / 0.6);
  transform-origin: 50% 100%;
  will-change: transform;
}
.compare-frame .after { position: absolute; inset: 0; }
.before { position: absolute; inset: 0; background: #141414; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 0; pointer-events: none; }
.handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.35); }
.knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: clamp(2.25rem, 4.5vw, 3rem);
  height: clamp(2.25rem, 4.5vw, 3rem);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: var(--violet-ink);
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.5), 0 0 0 0 rgb(183 122 255 / 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 2px 12px rgb(0 0 0 / 0.5), 0 0 0 0 rgb(183 122 255 / 0.5); } 100% { box-shadow: 0 2px 12px rgb(0 0 0 / 0.5), 0 0 0 18px rgb(183 122 255 / 0); } }
.compare-frame.is-held .knob { animation: none; }
.knob svg { width: 55%; height: 55%; }
.compare-frame:has(.range:focus-visible) .knob { outline: 2px solid #fff; outline-offset: 3px; }
.range-wrap { position: absolute; inset: 0; }
.range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.tag {
  position: absolute;
  bottom: 5%;
  padding: 0.35em 0.85em;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.62);
  color: #fff;
  font-size: clamp(0.7rem, 1.3vw, 0.95rem);
  font-weight: 500;
  line-height: 1.3;
  pointer-events: none;
  transition: opacity 0.2s;
}
.tag-before { left: 2.5%; }
.tag-after { right: 2.5%; }
.tag.is-hidden { opacity: 0; }
@media (max-width: 560px) { .tag { display: none; } }
@media (max-width: 700px) {
  .wall { opacity: 0.35; }
  .btn-top { height: 2.4rem; padding: 0 0.95rem; font-size: 0.95rem; }
  .brand img { width: 124px; }
}
.compare figcaption { margin-top: 0.9rem; color: var(--paper-3); font-size: 0.95rem; }

/* The provider's list, drawn at 1920x1080 and scaled to the frame: a plain
   player's VOD screen, no posters, the names as they come. Greys only. */
.raw { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; transform: scale(var(--k, 0.5)); transform-origin: 0 0; color: #9a9a9a; font-size: 26px; line-height: 1.3; }
.raw-top { display: flex; justify-content: space-between; align-items: center; height: 96px; padding: 0 48px; background: #1d1d1d; color: #d6d6d6; font-size: 30px; font-weight: 500; }
.raw-top b { font-weight: 400; color: #8a8a8a; }
.raw-body { display: flex; height: 984px; }
.raw-cats { flex: 0 0 440px; margin: 0; padding: 16px 0; list-style: none; background: #181818; border-right: 1px solid #2a2a2a; overflow: hidden; }
.raw-cats li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 40px; }
.raw-cats li span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.raw-cats li b { flex: none; font-weight: 400; color: #6a6a6a; }
.raw-cats li.on { background: #2b2b2b; color: #e6e6e6; }
.raw-grid { flex: 1; margin: 0; padding: 28px 40px; list-style: none; display: grid; grid-template-columns: repeat(6, 200px); gap: 22px 24px; align-content: start; overflow: hidden; }
.raw-grid li { width: 200px; }
.raw-grid i { display: block; height: 250px; border-radius: 4px; background: #242424; border: 1px solid #2f2f2f; }
.raw-grid span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 10px; font-size: 22px; line-height: 1.2; color: #a7a7a7; overflow: hidden; }

/* The statement: one sentence the page reads out as you scroll, the words
   lighting up one by one, on the deep violet the theme brings in. */
.statement { min-height: 100vh; }
.statement-pin { min-height: 100vh; display: grid; place-items: center; padding: 6rem var(--gutter); }
.statement-text {
  max-width: 22ch;
  font-size: clamp(2rem, 5.6vw, 4.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}
.statement-text .word { display: inline-block; opacity: 0.18; transition: opacity 0.2s; }
.statement-text em .word, .statement-text .word em { opacity: 0.18; }
html.no-motion .statement-text .word { opacity: 1; }

/* The journey: five screens that pass sideways as the page scrolls down
   (main.js pins the section), each wide enough to read, its words below;
   on a narrow screen they simply stack. The deep violet stays on. */
.journey { padding-top: clamp(4rem, 10vw, 7rem); overflow: hidden; scroll-margin-top: 5rem; }
.journey-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding-top: 2rem; }
.journey-count { font: italic clamp(1.5rem, 3vw, 2.5rem)/1 var(--serif); color: var(--paper-2); white-space: nowrap; }
.journey-count .cur { color: var(--violet); }
.journey-count .sep { margin: 0 0.15em; color: var(--paper-3); }
.journey-pin { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 8vw, 6rem); }
.track { margin: 0; padding: 0 var(--gutter); list-style: none; display: grid; gap: clamp(3rem, 8vw, 6rem); }
.panel { display: grid; gap: 1.25rem; }
.panel-text { display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-items: baseline; max-width: 70ch; }
.panel-text .num { font: italic 1.6rem/1 var(--serif); color: var(--violet); }
.panel-text h3 { grid-column: 2; }
.panel-text p { grid-column: 2; margin-top: 0.4rem; color: var(--paper-2); text-wrap: pretty; }
@media (min-width: 900px) {
  .journey-pin { height: 100vh; display: flex; align-items: center; padding: 0; }
  .track { display: flex; gap: 5vw; padding: 0 var(--gutter); will-change: transform; }
  .panel { flex: 0 0 auto; width: min(78vw, 1240px); gap: 1.5rem; }
  .panel .tv { box-shadow: 0 30px 90px rgb(0 0 0 / 0.55); }
  .panel-text { grid-template-columns: auto 1fr 1.3fr; max-width: none; }
  .panel-text p { grid-column: 3; margin-top: 0; }
}

/* The fold: twelve copies become one row, driven by the scroll. */
.fold { position: relative; padding: clamp(4rem, 9vw, 7rem) var(--gutter); display: grid; gap: 3rem; align-items: center; }
/* The section's glow spans the whole window, not the section's column,
   and fades to nothing before any edge it could meet (closest-side). */
.fold::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; background: radial-gradient(closest-side at 70% 50%, rgb(109 53 217 / 0.26), rgb(109 53 217 / 0.08) 55%, transparent); pointer-events: none; }
.fold-copy p { margin-top: 1.25rem; max-width: 46ch; color: var(--paper-2); font-size: clamp(1.05rem, 1.5vw, 1.25rem); text-wrap: pretty; }
.fold-stage { position: relative; }
.fold-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.fold-list li {
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--paper-2);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  will-change: transform, opacity;
}
.fold-result {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin-top: -1.9rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--raised);
  border: 1px solid var(--violet);
  box-shadow: 0 0 0 4px rgb(183 122 255 / 0.12), 0 20px 60px rgb(0 0 0 / 0.5);
  opacity: 0;
  transform: translateY(0.5rem);
}
.fold-logo { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 8px; background: linear-gradient(135deg, #6d35d9, #b77aff); color: #fff; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; overflow: hidden; }
.fold-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.fold-badge { margin-left: auto; padding: 0.25rem 0.7rem; border-radius: 999px; background: rgb(183 122 255 / 0.15); color: var(--violet); font-size: 0.85rem; font-weight: 600; }
html.no-motion .fold-list { opacity: 0.25; }
html.no-motion .fold-result { opacity: 1; transform: none; }
@media (min-width: 900px) { .fold { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* The page's light: one soft violet glow under the pointer, wherever it
   is, the black margins included (main.js moves it). A layer as large as
   the window, so it never meets an edge. Fine pointers only. */
.spot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .spot {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(520px circle at var(--sx, -999px) var(--sy, -999px), rgb(183 122 255 / 0.17), rgb(183 122 255 / 0.05) 45%, transparent 70%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.5s;
  }
  html.spot-on .spot { opacity: 1; }
}

/* On a card or a screen the light is brighter, inside its own frame
   ([data-glow]: only things with a box of their own), and they tilt a
   little towards it. */
[data-glow] { --mx: 50%; --my: 50%; position: relative; }
[data-glow]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgb(183 122 255 / 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.tv[data-glow] { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }

/* Platforms: five cards, each lit from under the pointer. */
.platforms { position: relative; padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.platforms::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; background: radial-gradient(closest-side at 30% 35%, rgb(109 53 217 / 0.22), rgb(109 53 217 / 0.07) 55%, transparent); pointer-events: none; }
.platforms-lead { margin-top: 1rem; max-width: 46ch; color: var(--paper-2); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.cards {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 17rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--raised);
  border: 1px solid var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgb(183 122 255 / 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover { border-color: var(--line-2); }
/* The glows under the pointer need a real one: a tap on a phone counts as
   :hover and lit the box from its middle (the owner). */
@media (hover: hover) and (pointer: fine) {
  .card:hover::before,
  [data-glow]:hover::after { opacity: 1; }
  .tv[data-glow]:hover { box-shadow: 0 40px 110px rgb(0 0 0 / 0.65), 0 0 0 1px rgb(183 122 255 / 0.35); }
}
.card > * { position: relative; }
.card-icon { width: 2.5rem; height: 2.5rem; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--paper-2); font-size: 0.98rem; flex: 1; text-wrap: pretty; }
.card .btn { align-self: stretch; margin-top: 0.25rem; padding: 0 1rem; }
.card small { color: var(--paper-3); font-size: 0.82rem; line-height: 1.4; }
.pill {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--paper-2);
  font-size: 0.82rem;
  font-weight: 600;
}
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(5, 1fr); } }

/* Start: numbered because it is a sequence. */
.start { padding: clamp(4rem, 10vw, 8rem) var(--gutter); display: grid; gap: 2.5rem; }
.start-text { max-width: var(--measure); }
.steps { margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1.5rem; }
.steps li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 0.75rem; }
.steps li > * { grid-column: 2; }
.steps li::before { counter-increment: step; content: "0" counter(step); grid-column: 1; grid-row: 1 / span 2; font: italic 1.6rem/1.2 var(--serif); color: var(--violet); }
.steps h3 { font-size: 1.3rem; }
.steps p { margin-top: 0.25rem; color: var(--paper-2); }
.free { margin-top: 2rem; font-weight: 600; }
@media (min-width: 900px) { .start { grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: center; } }

/* Footer: a line that never stops, then the small print. */
.foot { border-top: 1px solid var(--line); padding-bottom: 2rem; }
.marquee { overflow: hidden; padding: clamp(1.5rem, 4vw, 2.5rem) 0; border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span { white-space: nowrap; font-size: clamp(1.5rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -0.03em; color: var(--paper-3); }
.marquee-track span:nth-child(4n + 1) { color: var(--paper); }
.marquee-track span:nth-child(4n + 3) { font: italic clamp(1.65rem, 3.85vw, 3.3rem)/1 var(--serif); color: var(--violet); letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.foot-grid { display: grid; gap: 2rem; padding-top: clamp(2rem, 5vw, 3.5rem); color: var(--paper-2); }
.foot-about img { display: block; width: 110px; height: auto; margin-bottom: 1rem; opacity: 0.9; }
.foot-about p { max-width: 48ch; }
.foot-about p + p { margin-top: 0.6rem; }
.small { font-size: 0.9rem; color: var(--paper-3); }
.foot-links { display: flex; flex-direction: column; gap: 0.5rem; }
.foot-links a { color: var(--paper-2); text-decoration: none; width: max-content; }
.foot-links a:hover { color: var(--violet); }
.foot-note { margin-top: 2.5rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }

/* Reveals: main.js animates [data-reveal] in; without it they just show. */
html.has-motion [data-reveal] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .spot { transition: none; }
  .wall-row, .aurora i, .knob, .marquee-track { animation: none; }
  .btn, .btn::after, .tag, .card, .menu, .menu-links a { transition: none; }
  html.has-motion [data-reveal] { opacity: 1; }
}
