:root {
  --color-cool-0: #f7fafc;
  --color-cool-50: #ebf0f7;
  --color-cool-200: #cdd3dd;
  --color-cool-300: #b8bfcc;
  --color-cool-400: #a3a8b2;
  --color-neutral-500: #2c2c2e;
  --color-neutral-950: #08080a;
  --color-atmos-charcoal: #202022;
  --color-atmos-warm-grey: #3a3734;
  --color-atmos-umber: #4a3120;
  --color-atmos-ash: #313032;
  --color-amber-300: #fab82e;
  --color-white-a07: rgba(255, 255, 255, 0.07);
  --color-white-a10: rgba(255, 255, 255, 0.1);
  --color-white-a22: rgba(255, 255, 255, 0.22);
  --color-white-a55: rgba(255, 255, 255, 0.55);

  --gutter: clamp(20px, 4vw, 56px);
  /* The floating header: its gap from the top edge, the glass bar's height,
     and the band it covers (where anchors land and the pinned scene starts). */
  --header-top: 10px;
  --header-bar-h: 52px;
  --header-item-h: 40px;
  --header-h: calc(var(--header-top) + var(--header-bar-h) + 10px);

  --text-primary: var(--color-cool-0);
  --text-reading: var(--color-cool-200);
  --text-secondary: var(--color-cool-300);
  --text-tertiary: var(--color-cool-400);
  --text-separator: color-mix(in srgb, var(--text-tertiary) 45%, transparent);
  --accent: var(--color-cool-0);
  --accent-ink: var(--color-neutral-950);
  --surface-app: var(--color-neutral-500);
  --hairline: var(--color-white-a10);
  --resume-fill: color-mix(in srgb, var(--color-amber-300) 95%, transparent);
  --card-sheen: rgba(255, 255, 255, 0.22);
  /* The header's "you are here" glass: the nav pill under the current
     section's link, and the Install button while Install is current. */
  --selected-fill: rgba(255, 255, 255, 0.12);
  --selected-rim: rgba(255, 255, 255, 0.08);
  --selected-sheen: rgba(255, 255, 255, 0.14);

  /* oklch(from var(--surface-app) .972 calc(c*.36) h) and l-.06, precomputed to sRGB since
     --surface-app is achromatic (c=0): oklch(.972 0 0) = #f6f6f6, oklch(.912 0 0) = #e2e2e2. */
  --accent-face: #f6f6f6;
  --accent-face-body: #e2e2e2;
  --accent-face-fill: linear-gradient(var(--accent-face), var(--accent-face-body) 9%, var(--accent-face-body));
}

@font-face {
  font-family: "PlxAppFont";
  src: url("fonts/appfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PlxAppFont";
  src: url("fonts/appfont-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

/* Smooth only for in-page links (the header nav). It never applies to the
   reader's own scrolling, and nothing on the page scrolls it by script. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--surface-app);
  color: var(--text-primary);
  font-family: "PlxAppFont", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: var(--text-primary);
  text-decoration: none;
}
a:hover {
  color: var(--resume-fill);
}
img {
  max-width: 100%;
}
/* The demo video has its own pause/play button; never let Safari draw its big
   start-playback glyph over it (it does so whenever autoplay is refused, e.g.
   in Low Power Mode). */
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

/* The ambient ground is the page's own background, scrolling with it, not a
   fixed layer. iOS Safari (26) paints the areas behind its translucent status
   bar and toolbar with ONE flat colour sampled from any fixed element at the
   screen edge, so a fixed gradient showed as a flat band top and bottom; page
   content, on the other hand, shows through the bars as it is. The ground is
   a tile two screens tall: the route ground's four corner glows in the top
   screen, mirrored in the bottom one, so its top and bottom edges match and it
   repeats down the page without a seam. Radii are the route ground's 120% of
   the screen. */
.page-shell {
  --ground-r: 120vw 120vh;
  --ground-tile: 100% 200vh;
  background-color: var(--color-atmos-charcoal);
  background-image:
    radial-gradient(var(--ground-r) at 0% 0%, var(--color-atmos-warm-grey), transparent 62%),
    radial-gradient(var(--ground-r) at 100% 0%, var(--color-atmos-charcoal), transparent 62%),
    radial-gradient(var(--ground-r) at 0% 50%, var(--color-atmos-ash), transparent 62%),
    radial-gradient(var(--ground-r) at 100% 50%, var(--color-atmos-umber), transparent 62%),
    radial-gradient(var(--ground-r) at 0% 100%, var(--color-atmos-warm-grey), transparent 62%),
    radial-gradient(var(--ground-r) at 100% 100%, var(--color-atmos-charcoal), transparent 62%);
  background-size: var(--ground-tile);
  background-repeat: repeat-y;
  color: var(--text-primary);
  padding: 0 var(--gutter);
  box-sizing: border-box;
  position: relative;
  /* clip, not hidden: `hidden` makes the shell a scroll container, and the
     sticky header and the pinned TV scene would then stick to it instead of
     the viewport (that is, never). */
  overflow: hidden;
  overflow: clip;
  /* At least a screen tall, so a short page (the 404) is ground to the
     bottom of the window rather than ending in a seam against the body. */
  min-height: 100vh;
  min-height: 100lvh;
}
/* Sized to the large viewport, so the tile does not change as the toolbar
   collapses mid-scroll. */
@supports (height: 100lvh) {
  .page-shell {
    --ground-r: 120vw 120lvh;
    --ground-tile: 100% 200lvh;
  }
}
/* The old fixed ground; the generated credits and doc pages still emit it. */
.ambient-ground {
  display: none;
}
.page-root {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  /* The header's gap from the top edge. Padding, not the header's own
     margin: overflow: clip does not contain margins, so a margin collapsed
     through the shell and bared the body colour above it. */
  padding-top: var(--header-top);
}

/* Scroll reveal. Elements marked data-reveal rise and fade in as they enter
   the viewport; media grows in from slightly smaller. Opacity and transforms
   only: a blur here was a filter re-rendered on every frame of every reveal.
   site.js sets .is-revealed and a per-batch --reveal-delay, and
   clears it once an element is back below the viewport, so scrolling down
   again replays it. Hidden states carry no transition, so a reset is never
   visible. The head script adds html.reveal; without it (no JS) or under
   reduced motion nothing is hidden. */
@media (prefers-reduced-motion: no-preference) {
  .reveal [data-reveal] {
    opacity: 0;
    translate: 0 40px;
  }
  .reveal [data-reveal="media"] {
    translate: 0 72px;
    scale: 0.92;
  }
  /* A card is tall enough that a text-sized rise finishes while most of it is
     still below the fold, so it travels further and settles from a little
     smaller, like media. */
  .reveal [data-reveal="card"] {
    translate: 0 64px;
    scale: 0.96;
  }
  /* Quick, all ease-out: an element is mostly there within a few hundred
     ms, so nothing on screen reads as disabled while it waits. site.js keeps
     the stagger short (180ms at most). */
  .reveal [data-reveal].is-revealed {
    opacity: 1;
    translate: none;
    scale: none;
    transition:
      opacity 600ms cubic-bezier(0.25, 0.1, 0.25, 1) var(--reveal-delay, 0ms),
      translate 800ms cubic-bezier(0.19, 1, 0.22, 1) var(--reveal-delay, 0ms),
      scale 900ms cubic-bezier(0.19, 1, 0.22, 1) var(--reveal-delay, 0ms),
      transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  /* A screenshot frame's transform follows the scroll (site.js,
     [data-unveil]); easing it as well would make it trail the page. */
  .reveal [data-reveal][data-unveil].is-revealed {
    transition:
      opacity 600ms cubic-bezier(0.25, 0.1, 0.25, 1) var(--reveal-delay, 0ms),
      translate 800ms cubic-bezier(0.19, 1, 0.22, 1) var(--reveal-delay, 0ms),
      scale 900ms cubic-bezier(0.19, 1, 0.22, 1) var(--reveal-delay, 0ms);
  }
  /* Cards fade over a little longer: a panel this size fading as fast as a
     line of text reads as popping in. */
  .reveal [data-reveal="card"].is-revealed {
    transition:
      opacity 800ms cubic-bezier(0.25, 0.1, 0.25, 1) var(--reveal-delay, 0ms),
      translate 900ms cubic-bezier(0.19, 1, 0.22, 1) var(--reveal-delay, 0ms),
      scale 1000ms cubic-bezier(0.19, 1, 0.22, 1) var(--reveal-delay, 0ms),
      transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Hero opening: each line rises in after the one before it, all landed
     within about a second. */
  [data-intro] {
    animation: intro 650ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }
  .hero-line--lead {
    animation-delay: 40ms;
  }
  .hero-line--sub {
    animation-delay: 90ms;
  }
  .hero-lede {
    animation-delay: 140ms;
  }
  .hero-actions {
    animation-delay: 200ms;
  }
  .hero-meta {
    animation-delay: 280ms;
  }
  /* The TV scene below never leads the hero: where it shows at load (a tall
     window, a phone), its heading and TV come in once the hero has landed.
     On their children, with `transform`, so this never meets the scene's
     own animations on .feel-heading and .feel-stage (translate, rotate,
     scale), nor the zoom's fades on the heading's lines (scale); `backwards`
     leaves nothing behind once it has run. */
  .feel-heading > *,
  .feel-stage > * {
    animation: intro 650ms cubic-bezier(0.19, 1, 0.22, 1) 600ms backwards;
  }
}
@keyframes intro {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* ---------- Header ---------- */
/* A floating glass capsule: the page's version of the app's own glass tab
   bar, with the brand at the left, the page's sections in the middle (a pill
   slides under the one being read, like the app's selected tab), and GitHub
   and Install at the right. The same markup heads every page.

   Nothing sticky or fixed touches the top edge: the capsule sticks 10px below
   it, and the header box around it is exactly as tall as the capsule. iOS
   Safari (26) fills the area behind its status bar with one flat colour
   sampled from a fixed or sticky element at the screen edge; the old
   full-width bar sat there and had to stay frosted for that reason (a
   transparent one left a flat band that matched nothing). With nothing at the
   edge, Safari shows the page itself through its status bar, as it does
   behind its toolbar (see .page-shell). */
.site-header {
  position: sticky;
  top: var(--header-top);
  z-index: 50;
  display: flex;
  justify-content: center;
  /* Only the capsule takes the pointer; the page stays live either side. */
  pointer-events: none;
}
.header-bar {
  pointer-events: auto;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 2px;
  height: var(--header-bar-h);
  max-width: 100%;
  padding: 0 6px;
  border-radius: 999px;
}
/* The glass itself, on its own layer so its tint and shadow can change
   without repainting the contents. */
.header-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: color-mix(in srgb, var(--surface-app) 86%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  box-shadow:
    inset 0 0 0 1px var(--color-white-a10),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 14px 40px rgba(0, 0, 0, 0.4);
  transition:
    background-color 300ms ease,
    box-shadow 300ms ease;
}
/* The glass is dense enough to read over any page running under it, which
   is every page without site.js (install, troubleshooting, credits, 404).
   Only the landing page, at its very top with nothing yet underneath, has
   site.js mark the header .is-top and lighten it. */
.site-header.is-top .header-bar::before {
  background: color-mix(in srgb, var(--surface-app) 58%, transparent);
  box-shadow:
    inset 0 0 0 1px var(--color-white-a10),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 10px 30px rgba(0, 0, 0, 0.22);
}
/* A reader who has asked for less transparency gets solid bars. */
@media (prefers-reduced-transparency: reduce) {
  .header-bar::before,
  .site-header.is-top .header-bar::before {
    background: var(--surface-app);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: var(--header-item-h);
  padding: 0 14px 0 0;
  border-radius: 999px;
  color: var(--text-primary);
}
.brand:hover {
  color: var(--text-primary);
}
/* A circle as tall as the header's items, so it sits in the capsule's
   rounded end concentrically (the bar's end radius less its 6px padding),
   as the Install pill does at the other end. */
.brand-mark {
  width: var(--header-item-h);
  height: var(--header-item-h);
  border-radius: 50%;
  background: #08080a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px var(--color-white-a10);
  flex: none;
}
.brand-mark img {
  height: calc(var(--header-item-h) * 0.55);
  width: auto;
  display: block;
}
.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
/* Sub-pages only (credits, 404, the doc pages): a leading chevron on the brand
   link so it reads as a way back to the landing page, not just a logo. The
   landing page's own header never has this span. */
.back-arrow {
  color: var(--text-secondary);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-item-h);
  padding: 0 4px;
  box-shadow: -1px 0 0 var(--color-white-a10), 1px 0 0 var(--color-white-a10);
}
.site-nav a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: var(--header-item-h);
  padding: 0 16px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 250ms ease;
}
.site-nav a:hover,
.site-nav a.is-current {
  color: var(--text-primary);
}
/* The selection pill; site.js places it under the current section's link. */
.nav-pill {
  position: absolute;
  top: 0;
  left: 0;
  height: var(--header-item-h);
  width: var(--pill-w, 0px);
  transform: translateX(var(--pill-x, 0px));
  border-radius: 999px;
  background: var(--selected-fill);
  box-shadow:
    inset 0 0 0 1px var(--selected-rim),
    inset 0 1px 0 var(--selected-sheen);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 480ms cubic-bezier(0.3, 1.2, 0.4, 1),
    width 480ms cubic-bezier(0.3, 1.2, 0.4, 1),
    opacity 250ms ease;
}
.site-nav.has-pill .nav-pill {
  opacity: 1;
}
.site-nav.pill-instant .nav-pill {
  transition: opacity 250ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}
/* GitHub and the Ko-fi cup are a matched pair of quiet glyphs: the same
   grey, the same target, lifting to white on hover. The cup is Ko-fi's own
   outline with the heart and handle cut out, so it reads as Ko-fi without
   the brand colours; Install stays the one filled shape in the bar. */
.header-github,
.header-kofi {
  display: grid;
  place-items: center;
  width: var(--header-item-h);
  height: var(--header-item-h);
  border-radius: 50%;
  color: var(--text-secondary);
  transition:
    color 200ms ease,
    background-color 200ms ease;
}
/* Ko-fi's cup carries half again the GitHub mark's ink at the same height,
   so it is drawn a little smaller to weigh the same. 21px is as small as it
   goes before the gap between the outline and the cup closes up on a 1x
   screen. The height follows the symbol's own proportions and the edge may
   spill, so rounding can never crop the outline. */
.kofi-icon {
  width: 21px;
  height: auto;
  aspect-ratio: 242 / 194;
  overflow: visible;
}
.header-github:hover,
.header-kofi:hover {
  color: var(--text-primary);
  background: var(--color-white-a07);
}
/* The button's face is --accent-face-fill drawn from two registered colours,
   so that it can fade to the current state below and back (a gradient itself
   does not transition; without @property the change is simply immediate).
   Its shadows are listed in the same kinds as the current state's, so they
   interpolate too. */
@property --cta-face {
  syntax: "<color>";
  inherits: false;
  initial-value: #f6f6f6;
}
@property --cta-body {
  syntax: "<color>";
  inherits: false;
  initial-value: #e2e2e2;
}
/* The icons' ink sits inside round 40-44px targets, so the space between
   two glyphs reads about twice the gap to the pill. The margin evens the
   visible gaps so GitHub and Ko-fi read as a pair, apart from Install. */
.header-cta {
  margin-left: 10px;
  --cta-face: var(--accent-face);
  --cta-body: var(--accent-face-body);
  display: inline-flex;
  align-items: center;
  height: var(--header-item-h);
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--accent-ink);
  background: linear-gradient(var(--cta-face), var(--cta-body) 9%, var(--cta-body));
  box-shadow:
    inset 0 0 0 1px var(--color-white-a22),
    inset 0 1px 0 transparent,
    0 2px 10px rgba(0, 0, 0, 0.25);
  transition:
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 250ms ease,
    color 250ms ease,
    --cta-face 250ms ease,
    --cta-body 250ms ease;
}
.header-cta:hover {
  color: var(--accent-ink);
  transform: translateY(-1px);
}
/* While the Install section is the one being read (site.js marks the button
   .is-current, as it marks the section links), the button is "here" the way
   a link is: the nav pill's selected glass with the current link's ink, in
   place of the call to action. No ring: that read as a keyboard-focus
   outline; :focus-visible below is the real one. Sub-pages link it to the
   landing page and never mark it. */
.header-cta.is-current {
  --cta-face: var(--selected-fill);
  --cta-body: var(--selected-fill);
  color: var(--text-primary);
  box-shadow:
    inset 0 0 0 1px var(--selected-rim),
    inset 0 1px 0 var(--selected-sheen),
    0 2px 10px rgba(0, 0, 0, 0);
}
.site-header a:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(88px, 10vh, 124px) 0 clamp(8px, 3vh, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform-origin: 50% 0;
}
/* A soft light behind the headline, warm on one side and cool on the other,
   like the app's route ground. Gradients only: no filter to redraw. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  width: min(1400px, 160vw);
  height: 100%;
  transform: translateX(-50%);
  background:
    radial-gradient(38% 46% at 38% 42%, rgba(250, 184, 46, 0.1), transparent 70%),
    radial-gradient(34% 44% at 64% 50%, rgba(170, 190, 230, 0.08), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(40px, 7.4vw, 104px);
  line-height: 1.02;
  font-weight: 700;
  margin: 0 0 clamp(22px, 3vh, 34px);
  letter-spacing: -0.045em;
  text-wrap: balance;
  max-width: 1100px;
}
.hero-line {
  display: block;
}
.hero-line--sub {
  color: var(--text-secondary);
}
/* .hero-shine keeps its class in the markup (a line that wraps stays one
   span), but is plain flat silver again, same as the rest of .hero-line--sub:
   no gradient, no shine sweep. */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
}
.hero-lede {
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-reading);
  margin: 0 0 30px;
  max-width: 42ch;
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.button {
  display: inline-flex;
  align-items: center;
  font-size: 17px;
  padding: 15px 30px;
  white-space: nowrap;
  border-radius: 999px;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms, background 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.button-primary {
  background: var(--accent-face-fill);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--color-white-a22);
}
.button-primary:hover {
  color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--color-white-a22), 0 10px 24px rgba(0, 0, 0, 0.35);
}
/* The quiet one beside it: a glass face, no fill of its own. */
.button-secondary {
  padding: 15px 26px;
  background: var(--color-white-a07);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--color-white-a22);
}
.button-secondary:hover {
  color: var(--text-primary);
  background: var(--color-white-a10);
  transform: translateY(-2px);
}
.hero-meta {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  text-wrap: pretty;
}
/* Each item keeps its words together ("Built for LG webOS" never splits), and
   a separator is held to the item before it, so the row can only break after
   one (phones break it themselves, below). */
.hero-meta-item {
  white-space: nowrap;
}
.hero-meta .sep {
  color: var(--text-separator);
}

/* ---------- "See how it feels": the pinned TV scene ---------- */
/* Without html.fx (no JS, or reduced motion) this is a plain TV playing the
   demo video. With it, the section is several screens tall and its content
   stays pinned while the scroll position drives the scene (the timeline is
   in the scroll-driven block at the end of this section). */
/* Wherever the section scrolls with the page (the TV in its flow), the Demo
   link lands its heading 16px under the header's band (--header-h). */
.feel {
  --feel-pad: clamp(40px, 6vh, 72px);
  --feel-land: calc(var(--header-h) + 16px - var(--feel-pad));
  position: relative;
  padding: var(--feel-pad) 0 0;
  scroll-margin-top: var(--feel-land);
}
.feel-sticky {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vh, 34px);
  gap: clamp(18px, 3svh, 34px);
  perspective: 2200px;
}
/* 1.3 screens of scroll drive the pinned scene; every stretch of it moves
   something, so the scroll always visibly answers. The Demo link lands on
   its first frame, the pinned box's own padding clearing the header. */
.fx .feel {
  height: 230vh;
  height: 230svh;
  padding: 0;
  scroll-margin-top: 0;
}
.fx .feel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  justify-content: center;
  padding-top: var(--header-h);
}
/* The TV in the page's flow instead: no pin and no zoom, the heading above it
   and the caption below scrolling with the page. On phones (narrow windows,
   either way up), where the column is nearly the window's width and a zoom
   had little to add to the screen, and in a short landscape window, where
   heading, TV and caption cannot share the screen. There the TV only rises in
   as it comes on screen (the scroll-driven block below); site.js's flowQuery
   is this media query. And, set by site.js as .is-still, where autoplay is
   refused (Low Power Mode) and the pinned scene would be drawn by script
   every frame: there it does not move at all. */
@media (max-width: 759px), (max-height: 559px) and (orientation: landscape) {
  .fx .feel {
    height: auto;
    padding: var(--feel-pad) 0 0;
    scroll-margin-top: var(--feel-land);
  }
  .fx .feel-sticky {
    position: relative;
    top: auto;
    height: auto;
    padding-top: 0;
  }
}
.fx .feel.is-still {
  height: auto;
  padding: var(--feel-pad) 0 0;
  scroll-margin-top: var(--feel-land);
}
.fx .feel.is-still .feel-sticky {
  position: relative;
  top: auto;
  height: auto;
  padding-top: 0;
}
.feel-heading {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.feel-heading h2 {
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.04;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.feel-heading p {
  max-width: 40ch;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-reading);
  margin: 0;
  text-wrap: balance;
}
/* As wide as the column allows while the heading, the whole TV and the
   caption still fit the window under the header, pinned or not: 330px is the
   header, the heading, the stand, the caption and the gaps between them.
   Phones and short landscape windows size it their own way (at the end). */
.feel-stage {
  position: relative;
  z-index: 2;
  width: min(100%, calc((100vh - 330px) * 16 / 9));
  width: min(100%, calc((100svh - 330px) * 16 / 9));
}
/* A layer of its own only while the scene is near the screen (site.js sets
   .is-near), not all page long. */
.fx .feel.is-near:not(.is-still) .feel-stage {
  will-change: transform, opacity;
}
/* The glow behind the TV: a tiny picture of the screen, already blurred and
   saturated (tools/render-site-glows.py), that the browser scales up. It
   reads as the blur(70px) it replaces and costs no filter. The TV's box (6%
   from the top, 4% in from each side) grows by the soft edge baked into the
   picture: --mx and --my are that edge as a fraction of the picture's
   content, as the tool prints them; phones get their own picture. */
.feel-glow {
  --mx: 0.2115;
  --my: 0.3438;
  position: absolute;
  left: calc(4% - 92% * var(--mx));
  top: calc(6% - 94% * var(--my));
  width: calc(92% * (1 + 2 * var(--mx)));
  height: calc(94% * (1 + 2 * var(--my)));
  max-width: none;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.feel-bezel {
  position: relative;
  z-index: 1;
  background: #08080a;
  padding: clamp(5px, 0.6%, 10px) clamp(5px, 0.6%, 10px) clamp(10px, 1.3%, 18px);
  box-shadow: 0 34px 76px rgba(0, 0, 0, 0.62), inset 0 0 0 1px var(--color-white-a10);
}
.demo-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #08080a;
}
/* The screen shows the demo video from the start. Until it has a frame it
   shows this CSS background as its poster — not the `poster` attribute,
   which cannot vary by viewport — so a phone gets a much smaller image than
   a desktop window; once the video has a frame it paints over this and
   nothing visible swaps. The two files are preloaded with fetchpriority
   "high" in index.html's head, since a background-image is invisible to the
   preload scanner.
   The video runs 1px past the screen on every side, clipped by the card: the
   card's box is fractional (16:9 of a percentage width, then scaled), and the
   browser snaps the video's own layer to whole pixels, so an exact fit left
   a row along the bottom where the frame's edge and this poster showed
   through under the moving picture. */
.demo-card video {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  display: block;
  background: #08080a url("media/feel-poster.jpg") center / cover no-repeat;
}
@media (max-width: 759px) {
  .demo-card video {
    background-image: url("media/feel-poster-narrow.jpg");
  }
}
/* The scene's one timed state: site.js sets .is-zoomed while the screen is
   well on its way to the window's width (from a sixth of the way), and the
   glow, stand, heading and caption leave and come back with a transition
   that finishes by itself, so wherever the reader stops they are either
   there or gone, never half-faded. They leave as the screen grows toward
   them and are back while it is still settling, quickly (250ms), so the
   heading never trails the TV nor leaves an empty band above it. */
.fx .feel-glow {
  transition: opacity 700ms ease;
}
.fx .feel.is-zoomed .feel-glow {
  opacity: 0;
}
.fx .stand {
  transition: opacity 250ms ease;
}
.fx .feel.is-zoomed .stand {
  opacity: 0;
}
/* The heading leaves in place, fading and settling back a little, never
   travelling up into the header capsule. */
.fx .feel-heading > * {
  transition:
    opacity 250ms ease,
    scale 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
.fx .feel.is-zoomed .feel-heading > * {
  opacity: 0;
  scale: 0.97;
}
.stand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stand-neck {
  width: clamp(44px, 5%, 84px);
  height: clamp(8px, 1vw, 14px);
  background: linear-gradient(180deg, #08080a, #141417);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}
.stand-foot {
  width: clamp(120px, 18%, 280px);
  height: clamp(6px, 0.7vw, 10px);
  border-radius: 0 0 4px 4px;
  background: #141417;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5), inset 0 1px 0 var(--color-white-a10);
}
.feel-caption {
  position: relative;
  z-index: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  text-align: center;
}
.fx .feel-caption {
  transition: opacity 250ms ease;
}
.fx .feel.is-zoomed .feel-caption {
  opacity: 0;
}
/* The video plays itself while it is on screen, with no native controls; this
   is the one control left, so motion can always be stopped. */
.demo-toggle {
  position: absolute;
  right: clamp(10px, 1.6vw, 18px);
  bottom: clamp(10px, 1.6vw, 18px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--text-primary);
  background: rgba(40, 40, 44, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--color-white-a22);
  cursor: pointer;
  transform-origin: 100% 100%;
  transition: background 160ms ease;
}
/* Always shown, whatever the video is doing, so a viewer whose autoplay was
   refused (Low Power Mode) can start it. */
.demo-toggle[hidden] {
  display: none;
}
.demo-toggle:hover {
  background: rgba(60, 60, 66, 0.7);
}
@media (prefers-reduced-transparency: reduce) {
  .demo-toggle {
    background: rgb(40, 40, 44);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .demo-toggle:hover {
    background: rgb(60, 60, 66);
  }
}
.demo-toggle:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}
/* A triangle centred by its box looks right-heavy; this puts its visual
   weight, not its bounding box, in the middle of the circle. */
.demo-toggle .demo-toggle-play {
  translate: -0.7px 0;
}
.demo-toggle[data-state="playing"] .demo-toggle-play,
.demo-toggle:not([data-state="playing"]) .demo-toggle-pause {
  display: none;
}
/* Autoplay refused (Low Power Mode, a browser set never to play by itself):
   until the video first plays, the button is the poster's play button,
   centred and larger, the same glass. site.js sets .is-start and clears it
   at the first play, when it becomes the small corner control again. It
   scales about its own centre, so the scene's counter-scale keeps it
   centred on the screen. */
.demo-toggle.is-start {
  right: calc(50% - 36px);
  bottom: calc(50% - 36px);
  width: 72px;
  height: 72px;
  transform-origin: 50% 50%;
}
.demo-toggle.is-start svg {
  width: 30px;
  height: 30px;
}
.demo-toggle.is-start .demo-toggle-play {
  translate: -1.2px 0;
}

/* The scene's geometry, run by the browser from the scroll position itself.
   Where CSS scroll-driven animations exist (Chromium 115+, Safari 26+), the
   tilt, the approach, the zoom and the heading's rise are animations on the
   section's view timeline, which the compositor advances in the same frame
   as the scroll (Safari 26.4+ and Chromium run them off the main thread).
   Written by script, they could not keep up on iPhone: Safari scrolls in
   another process, hands the page its scroll position late, and updates the
   page at most 60 times a second while the scroll itself runs at 120, so the
   TV lagged and stepped against the page it sits in. site.js then writes
   none of this; it keeps the timed state (.is-zoomed), measures the zoom
   target (--zoom-*) on layout changes, and computes the same curves per
   frame where these animations are missing.
   The video plays throughout. Progress p = 0..1 across the pinned stretch
   (the `contain` range):
     entry      the TV rises in, tilts upright and grows from 80%
     0.00-0.12  it comes a little closer (94% to 100%)
     0.12-0.52  the screen grows to the window's width...
     0.52-0.70  ...holds there...
     0.70-0.88  ...and settles back, the heading, caption, stand and
                glow returning on the way (from about 0.85)...
     0.88-1.00  ...to the whole scene at rest before the page moves on.
   cubic-bezier(1/3, 0, 2/3, 1) is exactly smoothstep and
   cubic-bezier(1/3, 1, 2/3, 1) exactly a cubic ease-out, the curves the
   fallback computes. The entry animates translate/rotate/scale and the zoom
   animates transform, which the browser applies in that order, so the two
   ranges compose exactly as the fallback's single transform does.
   In the page's flow (phones, a short landscape window) there is no pinned
   stretch: the TV rises in on its own view timeline, tilting up and growing
   from 90% over its whole entry (on a tall phone it is partly on screen at
   load, and a shorter range had all but finished by then), and nothing else
   moves. Without these animations the flow TV stands at rest; no script runs
   it. */
@supports (animation-timeline: --a) and (animation-range: entry 0% entry 100%) {
  @media (prefers-reduced-motion: no-preference) {
    .fx .feel {
      view-timeline: --feel block;
      view-timeline-inset: 0px;
    }
    .fx .feel-stage {
      animation:
        feel-stage-in linear both,
        feel-stage-zoom linear both;
      animation-timeline: --feel, --feel;
      animation-range:
        entry 0% entry 100%,
        contain 0% contain 100%;
    }
    .fx .demo-toggle {
      animation:
        feel-toggle-in linear both,
        feel-toggle-counter linear both;
      animation-timeline: --feel, --feel;
      animation-range:
        entry 0% entry 100%,
        contain 0% contain 100%;
    }
    .fx .feel-heading {
      animation: feel-heading-in linear both;
      animation-timeline: --feel;
      animation-range: entry 0% entry 60%;
    }
    @media (max-width: 759px), (max-height: 559px) and (orientation: landscape) {
      .fx .feel-stage {
        animation: feel-stage-rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 100%;
      }
      .fx .demo-toggle,
      .fx .feel-heading {
        animation: none;
      }
    }
  }
}
@keyframes feel-stage-in {
  from {
    opacity: 0.3;
    translate: 0 60px;
    rotate: x 22deg;
    scale: 0.8;
    animation-timing-function: cubic-bezier(0.3333, 1, 0.6667, 1);
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: x 0deg;
    scale: 1;
  }
}
@keyframes feel-stage-rise {
  from {
    opacity: 0.3;
    translate: 0 40px;
    rotate: x 22deg;
    scale: 0.9;
    animation-timing-function: cubic-bezier(0.3333, 1, 0.6667, 1);
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: x 0deg;
    scale: 1;
  }
}
@keyframes feel-stage-zoom {
  0% {
    transform: translate(0px, 0px) scale(0.94);
    animation-timing-function: cubic-bezier(0.3333, 0, 0.6667, 1);
  }
  12% {
    transform: translate(0px, 0px) scale(1);
    animation-timing-function: cubic-bezier(0.3333, 0, 0.6667, 1);
  }
  52%,
  70% {
    transform: translate(var(--zoom-x, 0px), var(--zoom-y, 0px)) scale(var(--zoom-s, 1));
    animation-timing-function: cubic-bezier(0.3333, 0, 0.6667, 1);
  }
  88%,
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}
/* The pause button keeps its size while the TV around it grows in and
   zooms: the inverse of the stage's scale, in the same two ranges. */
@keyframes feel-toggle-in {
  from {
    scale: 1.25;
    animation-timing-function: cubic-bezier(0.3333, 1, 0.6667, 1);
  }
  to {
    scale: 1;
  }
}
@keyframes feel-toggle-counter {
  0% {
    transform: scale(calc(1 / 0.94));
    animation-timing-function: cubic-bezier(0.3333, 0, 0.6667, 1);
  }
  12% {
    transform: scale(1);
    animation-timing-function: cubic-bezier(0.3333, 0, 0.6667, 1);
  }
  52%,
  70% {
    transform: scale(var(--zoom-inv, 1));
    animation-timing-function: cubic-bezier(0.3333, 0, 0.6667, 1);
  }
  88%,
  100% {
    transform: scale(1);
  }
}
@keyframes feel-heading-in {
  from {
    opacity: 0;
    transform: translateY(40px);
    animation-timing-function: cubic-bezier(0.3333, 1, 0.6667, 1);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* ---------- Big centred section headings (showcase / install) ---------- */
.section-heading,
.install-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin: 0 auto clamp(36px, 5.5vh, 64px);
}
.install-intro {
  max-width: 900px;
}
.section-heading h2,
.install-intro h2 {
  font-size: clamp(34px, 5.6vw, 80px);
  line-height: 1.04;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.04em;
  text-wrap: balance;
  transform-origin: 50% 100%;
}
.fx [data-scrub-big].is-near {
  will-change: transform;
}
.section-heading p,
.install-intro p {
  max-width: 40ch;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-reading);
  margin: 0;
  text-wrap: balance;
}
.install-intro p {
  max-width: 44ch;
}

/* ---------- Pointer-lit cards ---------- */
/* A soft light follows the pointer and the card leans toward it (site.js sets
   --mx/--my/--spot and the tilt). Mouse only; touch gets the plain card. */
[data-spot] {
  position: relative;
  overflow: hidden;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-spot]::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(var(--spot-size, 520px) circle at var(--mx, 50%) var(--my, 0%), var(--color-white-a10), transparent 60%);
  opacity: var(--spot, 0);
  transition: opacity 400ms ease;
}

/* ---------- Community quote cloud ---------- */
.quote-section {
  padding: clamp(40px, 5.5vh, 60px) 0 clamp(44px, 6vh, 68px);
  box-shadow: inset 0 1px 0 var(--hairline);
}
/* The lead quote hands straight on to the features, which open with their own
   padding: no second gap of its own under it. */
.quote-section--lead {
  padding-bottom: 0;
}
.quote-section--lead .quote-lead {
  margin-bottom: 0;
}
.quote-section > .kicker,
.press-section > .kicker {
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 clamp(32px, 4.5vh, 48px);
}
.quote-cloud {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(22px, 3vh, 34px) clamp(24px, 3.4vw, 48px);
  align-items: start;
  max-width: 1080px;
}
.quote-lead {
  grid-column: 1 / -1;
  max-width: 820px;
  margin-bottom: 26px;
}
.quote-lead-text {
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.22em;
  text-wrap: pretty;
}
.quote-lead-text .quote-mark {
  flex: none;
  font-size: 1.8em;
  line-height: 0;
  transform: translateY(0.3em);
  color: var(--text-primary);
  opacity: 0.3;
}
.quote-lead-link {
  display: inline-block;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 14px;
  padding: 6px 0;
}
.quote-lead-link:hover {
  color: var(--text-primary);
}
/* Quotes are read, not pressed: no pill outlines or chip fills. The longer
   excerpts are quote blocks set off by a quiet rule; the short ones float
   below them as plain fragments on uneven baselines. Each links to where it
   was said, with its source and TV underneath. */
.quote-lg,
.quote-sm {
  display: block;
  text-wrap: pretty;
  transition: color 200ms ease;
}
.quote-text::before {
  content: "\201C";
}
.quote-text::after {
  content: "\201D";
}
.quote-source {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text-tertiary);
  transition: color 200ms ease;
}
.quote-lg:hover,
.quote-sm:hover {
  color: var(--text-primary);
}
.quote-lg:hover .quote-source,
.quote-sm:hover .quote-source {
  color: var(--text-secondary);
}
.quote-lg {
  grid-column: span 3;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.35;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  padding: 2px 0 2px clamp(16px, 1.6vw, 22px);
  box-shadow: inset 2px 0 0 var(--color-white-a22);
}
.quote-sm {
  grid-column: span 2;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.4;
  letter-spacing: -0.2px;
  color: var(--text-reading);
}
.quote-cloud > .quote-sm {
  margin-top: 12px;
}
.quote-cloud > .quote-sm:nth-child(4) {
  margin-top: 30px;
  justify-self: center;
}
/* No sideways offset: with sources under them the short quotes are wide
   enough that pulling one into the gutter crowded its neighbour. */
.quote-cloud > .quote-sm:nth-child(5) {
  margin-top: 18px;
}
.quote-caption {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin: clamp(20px, 3vh, 28px) 0 0;
  max-width: 620px;
  text-wrap: pretty;
}
.quote-caption a {
  color: var(--text-secondary);
}
.quote-caption a:hover {
  color: var(--text-primary);
}

/* ---------- Press ---------- */
/* Kept apart from the community quotes: press is not a user testimonial. The
   outlet is set in type, not its logo. */
.press-section {
  padding: clamp(36px, 5vh, 56px) 0 clamp(40px, 5.5vh, 64px);
  box-shadow: inset 0 1px 0 var(--hairline);
}
.press-section > .kicker {
  margin-bottom: clamp(20px, 3vh, 28px);
}
/* A ruled list, newest first: one line per article on wide screens (outlet,
   headline, date), so the section stays a short citation block however many
   outlets join it. On phones each row stacks its label line over the headline. */
.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1080px;
  box-shadow: inset 0 -1px 0 var(--hairline);
}
.press-item {
  display: grid;
  /* Fixed outer columns, so every row's headline starts and wraps at the same
     x whatever the outlet's or date's length. */
  grid-template-columns: clamp(150px, 18vw, 220px) minmax(0, 1fr) 6.5em;
  align-items: baseline;
  gap: 6px clamp(20px, 2.6vw, 32px);
  padding: 16px 0;
  box-shadow: inset 0 1px 0 var(--hairline);
}
.press-item:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 4px;
  border-radius: 8px;
}
.press-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
}
.press-outlet {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--text-secondary);
  transition: color 200ms ease;
}
/* The article's language, set like the section kicker so it reads as a label
   and not as part of the outlet's name. */
.press-lang {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-tertiary);
}
.press-headline {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  font-weight: 700;
  color: var(--text-reading);
  text-wrap: pretty;
  transition: color 200ms ease;
}
.press-date {
  font-size: 14px;
  color: var(--text-tertiary);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.press-item:hover .press-outlet,
.press-item:focus-visible .press-outlet,
.press-item:hover .press-headline,
.press-item:focus-visible .press-headline {
  color: var(--text-primary);
}
@media (max-width: 759px) {
  .press-item {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    padding: 14px 0 16px;
  }
  .press-headline {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 16px;
  }
}

/* A clipped capsule would lose its outline ring, which is drawn outside the box. */
[data-pill-clip]:focus-visible {
  outline-offset: -4px;
}

/* ---------- Press switcher ---------- */
/* site.js turns the list above into outlet tabs plus one article on stage; the
   list stays as the no-JS form. The Trendshift badge is Trendshift's own live
   image (its rank is never frozen here), parked under the tabs. */
.press-badge {
  display: block;
  line-height: 0;
  max-width: 100%;
  width: fit-content;
  margin-top: 28px;
}
.press-badge[hidden] {
  display: none;
}
.press-badge img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 250 / 55;
}
.press-badge:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 4px;
  border-radius: 12px;
}
.press-section.is-switcher .press-list {
  display: none;
}
.press-switcher {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  max-width: 1080px;
}
.press-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.press-tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 280px;
  scrollbar-width: none;
}
.press-tabs::-webkit-scrollbar {
  display: none;
}
.press-tabs.is-long {
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.press-tab {
  font: inherit;
  flex: none;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--text-tertiary);
  transition: color 250ms ease;
}
.press-tab span {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.press-tab[aria-selected="true"],
.press-tab:hover {
  color: var(--text-primary);
}
.press-tab:focus-visible,
.press-step:focus-visible,
.press-read:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 4px;
  border-radius: 8px;
}
.press-stage {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 300px;
  min-width: 0;
}
.press-stage-meta {
  font-size: 15px;
  color: var(--text-tertiary);
}
.press-stage-headline {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.press-stage-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
.press-read {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  transition: opacity 200ms ease;
}
.press-read:hover {
  opacity: 0.75;
}
.press-pos {
  font-size: 14px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.press-step {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-primary);
  background: var(--color-white-a07);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: background 200ms ease;
}
.press-step:hover {
  background: var(--color-white-a10);
}
@media (max-width: 759px) {
  .press-switcher {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  /* The badge falls below the stage, so the side column's order is flattened. */
  .press-side {
    display: contents;
  }
  /* .is-long carries the desktop's vertical scroll and fade; with two classes
     it outranks a bare .press-tabs here, so it is named too, or the column's
     fade clips every pill's top and bottom. */
  .press-tabs,
  .press-tabs.is-long {
    flex-direction: row;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    scroll-snap-type: x proximity;
    /* The row runs past the screen's edges; a fade there says it scrolls. Each
       fade stays inside the gutter, so a pill scrolled fully into view, the
       first or the last, is never dimmed. */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .press-tab {
    max-width: 72vw;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 17px;
    letter-spacing: -0.2px;
    color: var(--text-secondary);
    background: var(--color-white-a07);
    box-shadow: inset 0 0 0 1px var(--hairline);
    transition: color 250ms ease, background 250ms ease;
  }
  .press-tab[aria-selected="true"] {
    color: var(--accent-ink);
    background: var(--accent-face-fill);
    box-shadow: inset 0 0 0 1px var(--color-white-a22);
  }
  .press-stage {
    gap: 16px;
    min-height: 0;
  }
  .press-badge {
    order: 3;
    margin-top: 4px;
  }
}

/* ---------- Install ---------- */
.install-section {
  padding: clamp(64px, 10vh, 128px) 0 clamp(44px, 6vh, 68px);
  box-shadow: inset 0 1px 0 var(--hairline);
  scroll-margin-top: var(--header-h);
}
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(16px, 2.2vw, 26px);
  align-items: stretch;
}
.install-card {
  border-radius: 16px;
  --spot-size: 420px;
  background: var(--color-white-a07);
  box-shadow: inset 0 0 0 1px var(--hairline);
  padding: clamp(22px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.install-card .install-eyebrow {
  font-size: 13px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0;
}
.install-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.install-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-reading);
  margin: 2px 0 0;
  text-wrap: pretty;
}
.install-card a {
  margin-top: auto;
  padding-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.install-card a:hover {
  color: var(--text-primary);
  opacity: 0.75;
}
/* The renewal small print, in the Developer Mode card only: it does not
   apply to a rooted TV. */
.install-card .install-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-tertiary);
  margin: 0;
}
.install-card .install-note a {
  display: inline;
  min-height: 0;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--color-white-a22);
  text-underline-offset: 3px;
}
.install-card .install-note a:hover {
  color: var(--text-primary);
  opacity: 1;
}
/* The store review: a line under the install cards, set at their body size so it
   reads as a note on them rather than as a second lede. */
.store-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: clamp(20px, 3vh, 32px);
}
.store-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--color-white-a10);
  box-shadow: inset 0 0 0 1px var(--color-white-a22);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.store-note p {
  flex: 1 1 320px;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-reading);
  margin: 0;
  text-wrap: pretty;
}
.store-note p a {
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--color-white-a22);
  text-underline-offset: 4px;
}
.store-note p a:hover {
  color: var(--text-primary);
}

/* ---------- FAQ ---------- */
.faq-section {
  padding: clamp(40px, 5.5vh, 64px) 0;
  box-shadow: inset 0 1px 0 var(--hairline);
  scroll-margin-top: var(--header-h);
}
.faq-section > h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  margin: 0 0 clamp(22px, 3.2vh, 32px);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.faq-grid h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 8px;
  text-wrap: balance;
}
.faq-grid p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-reading);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Footer ---------- */
.site-footer {
  box-shadow: inset 0 1px 0 var(--hairline);
  padding: clamp(32px, 4.5vh, 48px) 0 clamp(30px, 4vh, 40px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 64px);
  align-items: start;
}
.footer-disclaimer {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-reading);
  margin: 0;
  max-width: 44ch;
  text-wrap: pretty;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 14px) clamp(20px, 2.4vw, 36px);
  font-size: 15px;
}
.footer-links a {
  color: var(--text-reading);
  padding: 3px 0;
}
.footer-links a:hover {
  color: var(--text-primary);
}
.footer-kofi {
  position: relative;
  flex: none;
  display: block;
  width: 180px;
  max-width: 100%;
  line-height: 0;
  border-radius: 999px;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* The hairline sits over the image: an inset shadow on the link itself
   would be painted underneath it. */
.footer-kofi::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--color-white-a10);
  pointer-events: none;
}
.footer-kofi img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
.footer-kofi:hover {
  transform: translateY(-2px);
}
.footer-kofi:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}
/* The demo-artwork attribution: small print under the disclaimer, in the
   footer-meta voice, with a link big enough to tap. */
.footer-credit {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin: 14px 0 0;
  max-width: 44ch;
  text-wrap: pretty;
}
.footer-credit a {
  display: inline-block;
  padding: 6px 0;
  margin: -6px 0;
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--color-white-a22);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.footer-credit a:hover {
  color: var(--text-primary);
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin: clamp(28px, 3.5vh, 40px) 0 0;
  padding-top: clamp(18px, 2.4vh, 24px);
  box-shadow: inset 0 1px 0 var(--hairline);
}
.footer-meta .sep {
  color: var(--text-separator);
}
.footer-meta a {
  color: var(--text-tertiary);
}
.footer-meta a:hover {
  color: var(--text-secondary);
}

/* ---------- Credits page (credits.html, written by tools/demo_library.py) ---------- */
.credits-intro {
  padding: clamp(40px, 7vh, 84px) 0 clamp(32px, 5vh, 56px);
  max-width: 760px;
}
.credits-intro h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(18px, 2.6vh, 26px);
}
.credits-intro p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-reading);
  margin: 0 0 14px;
  max-width: 62ch;
  text-wrap: pretty;
}
.credits-intro p.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--text-primary);
}
.credits-section {
  padding: clamp(28px, 4vh, 44px) 0 clamp(12px, 2vh, 20px);
  box-shadow: inset 0 1px 0 var(--hairline);
}
.credits-section h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0 0 clamp(8px, 1.4vh, 14px);
}
.credit-work {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 12px clamp(24px, 4vw, 64px);
  padding: clamp(20px, 2.8vh, 28px) 0;
  scroll-margin-top: var(--header-h);
}
.credit-work + .credit-work {
  box-shadow: inset 0 1px 0 var(--color-white-a07);
}
.credit-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.credit-year {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-tertiary);
}
.credit-entries {
  display: grid;
  gap: 22px;
  max-width: 760px;
}
.credit-entry {
  margin: 0;
  display: grid;
  gap: 4px;
}
.credit-use {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.credit-entry dd {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0 12px;
  margin: 0;
}
.credit-label {
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.credit-value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-reading);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.credit-value a,
.credits-licences a,
.credits-footer .footer-meta a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-white-a22);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.credit-value a:hover,
.credits-licences a:hover,
.credits-footer .footer-meta a:hover {
  color: var(--text-primary);
  text-decoration-color: currentColor;
}
.credit-sources {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 18rem;
  column-gap: 32px;
}
.credit-sources li {
  break-inside: avoid;
  padding: 3px 0;
}
.credits-footer {
  margin-top: clamp(8px, 1.5vh, 16px);
}
.credits-licences {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-reading);
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}
.credits-footer .footer-meta {
  margin-top: clamp(20px, 3vh, 28px);
}

/* ---------- Doc pages (install/troubleshooting, rendered by tools/render-doc-page.py from
   docs/*.md) — prose only: headings, paragraphs, lists, code, tables, quotes, rules. Reuses
   the credits page's container width and heading scale rather than inventing a new one. ---------- */
/* One centred reading column: on a wide window a left-pinned column leaves
   an empty band on the right. Prose fills the column (no narrower measure of
   its own), so paragraphs, headings and tables share one right edge; 720px of
   16px text is about 80 characters a line. */
.doc-page {
  padding: clamp(40px, 7vh, 84px) 0 clamp(56px, 8vh, 96px);
  max-width: 720px;
  margin: 0 auto;
}
.doc-body h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(18px, 2.6vh, 26px);
}
.doc-body h2 {
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: clamp(36px, 5vh, 52px) 0 14px;
}
.doc-body h1 + h2 {
  margin-top: 0;
}
.doc-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.doc-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 22px 0 8px;
}
.doc-body p,
.doc-body li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-reading);
  text-wrap: pretty;
}
.doc-body p {
  margin: 0 0 16px;
}
.doc-body strong {
  color: var(--text-primary);
  font-weight: 700;
}
.doc-body a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--text-separator);
  text-underline-offset: 2px;
}
.doc-body a:hover {
  color: var(--resume-fill);
  text-decoration-color: currentColor;
}
.doc-body ul,
.doc-body ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}
.doc-body li + li {
  margin-top: 6px;
}
.doc-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.87em;
  background: var(--color-white-a07);
  border-radius: 4px;
  padding: 0.12em 0.4em;
}
.doc-body pre {
  background: var(--color-white-a07);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 14px 16px;
  /* Sideways only (see .doc-table-wrap). */
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  margin: 0 0 18px;
}
.doc-body pre code {
  background: none;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-primary);
}
.doc-body blockquote {
  margin: 0 0 18px;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--hairline);
  color: var(--text-secondary);
}
.doc-body blockquote p:last-child {
  margin-bottom: 0;
}
.doc-body hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: clamp(32px, 5vh, 48px) 0;
}
/* A sideways scroller must not scroll vertically too: `overflow-x: auto`
   alone turns overflow-y to auto as well, and then anything that pokes out of
   the bottom makes it a vertical scroller that swallows the page's own
   vertical swipes (the phone close-up row did exactly that). */
.doc-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  margin: 0 0 22px;
}
.doc-body :is(h1, h2, h3, h4) {
  scroll-margin-top: var(--header-h);
}
.doc-body table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin: 0;
  font-size: 14.5px;
}
.doc-body th,
.doc-body td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.doc-body th {
  color: var(--text-secondary);
  font-weight: 700;
  white-space: nowrap;
}
.doc-body td {
  color: var(--text-reading);
}

/* =========================================================
   Narrow layout (<760px)
   ========================================================= */
@media (max-width: 759px) {
  /* On phones the capsule spans the column: brand at the left, GitHub, Ko-fi
     and Install at the right, every target 44px. The section links would not
     fit beside them, and a sideways-scrolling strip of links is exactly the
     kind of scroller that steals vertical swipes. */
  :root {
    --header-bar-h: 56px;
    --header-item-h: 44px;
  }
  .header-bar {
    width: 100%;
    padding: 0 6px;
  }
  .site-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-cta {
    padding: 0 18px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-credit a {
    padding: 11px 0;
    margin: -11px 0;
  }

  .doc-body table {
    min-width: 420px;
    font-size: 13.5px;
  }
  .doc-body th,
  .doc-body td {
    padding: 8px 10px;
  }
  .doc-body pre {
    padding: 12px 14px;
  }
  .credit-work {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .credit-title {
    font-size: 18px;
  }
  .credit-year {
    display: inline;
    margin-left: 6px;
  }
  .credit-entry {
    gap: 6px;
  }
  .credit-entry dd {
    grid-template-columns: 4.75rem minmax(0, 1fr);
    gap: 0 10px;
  }
  .credit-label {
    font-size: 11px;
  }
  .credit-value a {
    display: inline-block;
    padding: 8px 0;
    margin: -8px 0;
  }
  .credits-licences a,
  .credits-footer .footer-meta a {
    display: inline-block;
    padding: 12px 0;
    margin: -12px 0;
  }
  .credit-sources li {
    padding: 0;
  }
  .credit-sources li a {
    padding: 10px 0;
    margin: 0;
  }

  /* The two hero buttons stay side by side: stacked, each as wide as its own
     label, they read as two unrelated widths. Type and padding scale down with
     the window so the pair fits a 320px phone; 48px tall keeps the target. */
  .hero-actions {
    flex-wrap: nowrap;
    gap: clamp(8px, 2.6vw, 12px);
  }
  .hero-actions .button {
    flex: 0 1 auto;
    min-height: 48px;
    padding: 0 clamp(14px, 4.6vw, 22px);
    font-size: clamp(14px, 4.2vw, 16px);
  }

  /* The row does not fit a phone's column, and a break left to the browser
     ends a line with a separator. Phones get two lines, broken on purpose
     before the last item, which drops its separator. */
  .hero-meta .sep:nth-last-child(2) {
    display: none;
  }
  .hero-meta-item:last-child {
    display: block;
  }

  /* The TV stands in the page's flow here (see .fx .feel), as large as the
     column allows and a little more: the bezel runs out into the gutter, to
     12px from the window's edges. A TV this close wants a nearer eye, or its
     tilt as it rises in would barely read. */
  .fx .feel-stage {
    width: calc(100% + 2 * var(--gutter) - 24px);
  }
  .fx .feel-sticky {
    perspective: 1000px;
  }
  /* The phone glows are their own pictures (<picture> sources), blurred for
     boxes this size, so their baked edges are wider. */
  .feel-glow {
    --mx: 0.6875;
    --my: 1.1;
  }

  .quote-cloud {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .quote-lg,
  .quote-sm {
    grid-column: 1 / -1;
  }
  .quote-cloud > .quote-sm,
  .quote-cloud > .quote-sm:nth-child(4),
  .quote-cloud > .quote-sm:nth-child(5) {
    margin-top: 0;
    justify-self: start;
  }
  .quote-cloud > .quote-sm:nth-child(3) {
    margin-top: 10px;
  }
  /* One column: every quote gets the same rule and indent, so the long and
     short ones differ only in size and never read as two stylings. */
  .quote-sm {
    font-size: 16px;
    padding: 2px 0 2px 16px;
    box-shadow: inset 2px 0 0 var(--color-white-a22);
  }
  .quote-lead {
    margin-bottom: 18px;
  }
  .quote-lead-text .quote-mark {
    display: none;
  }
}
/* In a short landscape window the flow TV (see .fx .feel) would be a
   thumbnail at the wide layout's width and too tall at a phone's: it only has
   to fit under the header, alone on the screen. After the phone rule above,
   which a phone on its side can match as well. */
/* Under 390px (iPhone SE and mini) the brand, GitHub, Ko-fi and Install do
   not fit on one capsule, the sub-pages' "<- PlxNative" being the widest:
   the PLX mark stands for the name, and the link keeps its aria-label. */
@media (max-width: 389px) {
  .brand-name {
    display: none;
  }
}

@media (max-height: 559px) and (orientation: landscape) {
  .feel-stage,
  .fx .feel-stage {
    width: min(100%, calc((100vh - 100px) * 16 / 9));
    width: min(100%, calc((100svh - 100px) * 16 / 9));
  }
}

/* ---------- Hero version line ---------- */
.hero-version {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 10px 0 0;
}
.hero-version a {
  color: var(--text-secondary);
}
.hero-version a:hover {
  color: var(--text-primary);
}
/* On a touchscreen the small inline links get a 44px-tall target; the
   negative margin keeps the line where it was. */
@media (pointer: coarse) {
  .hero-version a,
  .install-note a {
    display: inline-block;
    padding-block: 13px;
    margin-block: -13px;
  }
  .quote-lead-link {
    padding-block: 13px;
    margin-block: 1px -13px;
  }
  .footer-links a {
    display: inline-block;
    padding-block: 10px;
  }
}

/* ---------- Features ---------- */
.kicker {
  font-size: 13px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-tertiary);
  margin: 0;
}
.features-section {
  padding: clamp(56px, 8vh, 100px) 0 clamp(44px, 6vh, 68px);
  scroll-margin-top: var(--header-h);
}
.features-section .section-heading {
  align-items: flex-start;
  text-align: left;
  margin-bottom: clamp(28px, 4.5vh, 52px);
}
/* Mixed sizes, not a uniform grid: on wide screens six columns, the cards
   alternating two-thirds and one-third (fast + QR, libraries + codecs, player +
   HUD), and the offline card closing the grid across the full width; between
   760 and 999px two columns, the QR and libraries cards side by side; on phones
   one column. */
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
@media (min-width: 760px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-card--fast,
  .feature-card--wide,
  .feature-card--hud,
  .feature-card--half:last-child {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .feature-card--fast,
  .feature-card--wide {
    grid-column: span 4;
  }
  .feature-card--half,
  .feature-card--hud {
    grid-column: span 2;
  }
  .feature-card--half:last-child {
    grid-column: 1 / -1;
  }
}
.feature-card {
  --card-pad: clamp(22px, 2.6vw, 34px);
  border-radius: 18px;
  background: var(--color-white-a07);
  box-shadow: inset 0 0 0 1px var(--hairline);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.feature-card h3 {
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
}
.feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-reading);
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}
.shots-kicker {
  margin: clamp(64px, 10vh, 112px) 0 clamp(18px, 2.4vw, 26px);
}
/* Library and Search sit side by side, Search a little lower so the pair
   does not read as a grid. (The player's capture is in the player card.) */
.shot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(34px, 5vw, 64px) clamp(18px, 2.4vw, 30px);
  align-items: start;
}
@media (min-width: 760px) {
  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shot:nth-child(2) {
    margin-top: clamp(40px, 6vw, 88px);
  }
}
.shot {
  margin: 0;
  min-width: 0;
}
/* The frame opens from slightly smaller while its picture settles from
   slightly larger, as it scrolls in (site.js, [data-unveil]). */
.shot-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-neutral-950);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px var(--card-sheen);
}
.shot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: clamp(14px, 1.8vw, 20px) 0 0;
}
.shot h3 {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
}
.shot p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-reading);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}

/* ---------- Works with your Plex ---------- */
.works-section {
  padding: clamp(56px, 9vh, 112px) 0 clamp(48px, 7vh, 88px);
  box-shadow: inset 0 1px 0 var(--hairline);
  scroll-margin-top: var(--header-h);
}
.works-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: clamp(36px, 6vh, 72px);
}
.works-heading h2 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.works-heading p {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--text-reading);
  margin: 0;
  max-width: 44ch;
  text-wrap: balance;
}
/* A justified block of type: each line runs the full width of the block,
   its size set by --fit (in cqi, so the block keeps its shape from a phone to
   a desktop). Within a line, key features are full size, bold and white,
   everyday ones smaller and grey, the long tail smallest and dim. */
.works-cloud {
  container-type: inline-size;
  max-width: 980px;
  margin: 0 auto;
}
.works-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.3em;
  white-space: nowrap;
  font-size: calc(var(--fit) * 1cqi);
  line-height: 1.12;
}
.works-row li {
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-secondary);
}
.works-row li.is-key {
  font-size: 1em;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--text-primary);
}
.works-row li.is-minor {
  font-size: 0.46em;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
}

/* ---------- Approach ---------- */
.approach-section {
  padding: clamp(72px, 11vh, 140px) 0 clamp(48px, 7vh, 88px);
  box-shadow: inset 0 1px 0 var(--hairline);
  scroll-margin-top: var(--header-h);
}
/* The section's slogan, as large as the hero's headline; the first-person
   sentence under it lights up word by word. */
/* A chapter opener, so centred like the others (See how it feels, Works with
   your Plex, the stack, Install), with its statement and lede under it. */
.approach-section > h2,
.approach-statement,
.approach-lede {
  text-align: center;
}
.approach-section > h2 {
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1;
  font-weight: 700;
  margin: 0 auto clamp(28px, 4.5vh, 52px);
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.approach-statement {
  font-size: clamp(24px, 3.4vw, 46px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: pretty;
  max-width: 1100px;
  margin: 0 auto clamp(28px, 4vh, 44px);
}
.approach-lede {
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-reading);
  margin: 0 auto;
  max-width: 46ch;
  text-wrap: pretty;
}

/* ---------- The stack scene ---------- */
/* One idea, one picture: a typical TV app's seven layers as isometric plates,
   the picture on the app's plate and on the screen, glass with a fine
   wireframe between. As the page scrolls, the three browser plates
   (JavaScript, browser engine, compositor) slide away, the four that stay
   close up into a tight stack, the label turns to "PlxNative", and a still
   motion blur of the picture shows it dropping straight from the app to the
   screen, over "60 fps". site.js drives it: --t (0..1, leaving) on each
   browser plate, --f (its height, in plate widths) on every layer, --k (0..1,
   the PlxNative end state) on .stack-sticky. Without it (no JS, reduced
   motion) every value is the settled end state. Pinned for a stretch of
   scroll, phones included: in the flow the whole scene had to play inside
   under half a screen of scrolling, so a swipe raced through it and the frames
   (four backdrop blurs moving with the page) were dropped on iPhone. Only
   short landscape windows, where the stack cannot fit beside the title, play
   in the page's flow as the stack passes up the screen.

   Geometry, in --W (one plate's width): a plate is 16:9, laid flat by
   scale(1, 0.5) rotate(-45deg) (an isometric tilt), which takes a box 1.1 W wide and 0.55 W
   tall. The seven sit 0.22 W apart (0 to 1.32); the four that stay close up
   under the app to 0.24 W apart (0 to 0.72), and "60 fps" takes the room below
   them. Labels sit to the right of the plates; on a narrow phone --W shrinks
   so they still fit. */
.stack-scene {
  margin: clamp(56px, 9vh, 112px) 0 0;
  --label-w: clamp(150px, 18vw, 240px);
  --W: min(clamp(160px, min(34vw, 30svh), 400px), calc((100vw - 2 * var(--gutter) - var(--label-w)) / 1.1));
}
.fx .stack-scene {
  height: 220vh;
  height: 220svh;
}
.stack-sticky {
  --k: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vh, 48px);
  text-align: center;
}
.fx .stack-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
}
@media (max-height: 559px) and (orientation: landscape) {
  .fx .stack-scene {
    height: auto;
  }
  .fx .stack-sticky {
    position: static;
    height: auto;
  }
}
.stack-title {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-tertiary);
  text-wrap: balance;
}
.stack-title strong {
  color: var(--text-primary);
}
.stack-stage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1.4vh, 16px);
  text-align: left;
}
/* "A typical TV app" gives way to "PlxNative": one out, then the other in. */
.stack-kicker,
.layer-sub {
  display: grid;
  margin: 0;
}
.stack-kicker > span,
.layer-sub > span {
  grid-area: 1 / 1;
}
.stack-kicker {
  font-size: 15px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-tertiary);
}
.stack-kicker .is-ours {
  color: var(--text-primary);
}
.stack-kicker .is-typical,
.layer-sub .is-typical {
  opacity: max(0, 1 - var(--k) * 2);
}
.stack-kicker .is-ours,
.layer-sub .is-ours {
  opacity: max(0, var(--k) * 2 - 1);
}
.stack-layers {
  position: relative;
  width: calc(var(--W) * 1.1 + var(--label-w));
  height: calc(var(--W) * 1.87);
}
.layer,
.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--W) * 1.1);
  height: calc(var(--W) * 0.55);
  transform: translateY(calc(var(--W) * var(--f)));
}
.layer {
  z-index: var(--z);
}
/* The browser plates leave sideways and fade. */
.layer[data-cut] {
  --t: 1;
  opacity: calc(1 - var(--t));
  transform: translate(calc(var(--W) * var(--t) * var(--cut-x, -0.45)), calc(var(--W) * var(--f)));
}
/* A phone has no room to the left of the stack: the plates leave by a shorter
   way and are gone before they reach the edge. */
@media (max-width: 759px) {
  .layer[data-cut] {
    --cut-x: -0.2;
    opacity: max(0, 1 - var(--t) * 1.4);
  }
}
/* Each plate is a pane of glass with an edge: a hard shadow, offset in the
   plate's own plane, reads as its thickness once it is laid flat. The offset
   is (-x, +x) because the tilt below turns that into straight down on screen,
   so the edge shows under both lower sides, as a slab's would; (+x, +x) came
   out as a band along the right. (One hard shadow: Safari softens a stack of
   them into a halo.) A
   soft band of light crosses every pane as the scene scrolls (--s, 0..1),
   the way light runs over a phone turning in a product film. */
.plate {
  --edge: -4px 4px 0 rgba(255, 255, 255, 0.14);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--W);
  height: calc(var(--W) * 0.5625);
  margin: calc(var(--W) * -0.28125) 0 0 calc(var(--W) * -0.5);
  border-radius: calc(var(--W) * 0.035);
  overflow: hidden;
  /* rotateX(60deg) rotateZ(-45deg) without perspective, as a flat 2D
     transform: WebKit lets a backdrop blur on a 3D-transformed element bleed
     past its outline as a halo, and draws the 2D one cleanly. */
  transform: scale(1, 0.5) rotate(-45deg);
}
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.16) 50%, transparent 62%) no-repeat;
  background-size: 300% 100%;
  background-position: calc(110% - var(--s, 1) * 120%) 0;
}
.ghost .plate::after {
  display: none;
}
.plate--picture {
  background: var(--color-neutral-950);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), var(--edge), -18px 18px 40px rgba(0, 0, 0, 0.45);
}
.plate--picture picture,
.plate--picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* While the stack is "a typical TV app" its picture is a plain wireframe of
   a TV app, so PlxNative is never drawn on a browser; it gives way to
   PlxNative's own picture as the label turns (an opacity, so the compositor
   does it). Drawn here rather than shipped as an image: a nav dot and pill, a
   title, two lines, a button and a row of posters, placed in percent of a
   960x540 screen. */
.plate--picture .plate-generic {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #3a404e, #1e2129);
  opacity: calc(1 - var(--k));
}
.plate-generic i {
  position: absolute;
  border-radius: calc(var(--W) * 0.012);
  background: #545b6c;
}
.plate-generic i:nth-child(1) { left: 3.75%; top: 4.44%; width: 2.92%; height: 5.19%; border-radius: 50%; }
.plate-generic i:nth-child(2) { left: 39.6%; top: 4.44%; width: 20.8%; height: 5.19%; border-radius: 999px; }
.plate-generic i:nth-child(3) { left: 4.17%; top: 27.8%; width: 31.25%; height: 7.4%; background: #6c7488; }
.plate-generic i:nth-child(4) { left: 4.17%; top: 38.1%; width: 39.6%; height: 2.2%; }
.plate-generic i:nth-child(5) { left: 4.17%; top: 42.2%; width: 35.4%; height: 2.2%; }
.plate-generic i:nth-child(6) { left: 4.17%; top: 48.5%; width: 11.5%; height: 5.6%; border-radius: 999px; background: #969eb0; }
.plate-generic i:nth-child(7) {
  left: 4.17%;
  right: 0;
  top: 63%;
  height: 29.6%;
  border-radius: 0;
  background: linear-gradient(90deg, #464c5c 0 86.96%, transparent 0) 0 0 / 13.04% 100% repeat-x;
}
.plate--glass {
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), var(--edge), -18px 18px 40px rgba(0, 0, 0, 0.32);
}
/* The wireframes: fine white outlines only. */
.plate--glass svg {
  display: block;
  width: 100%;
  height: 100%;
}
.plate--glass path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 0.7;
  stroke-linejoin: round;
}
.plate--code {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8%;
  padding: 0 12%;
}
.plate--code i {
  display: block;
  height: 4%;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.plate--page {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 22% 1fr;
  gap: 9%;
  padding: 9% 10%;
}
.plate--page i,
.plate--panes i {
  display: block;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.plate--page i:first-child {
  grid-column: 1 / -1;
}
.plate--page i:last-child {
  grid-column: span 2;
}
.plate--panes i {
  position: absolute;
  width: 46%;
  height: 48%;
}
.plate--panes i:nth-child(1) { left: 10%; top: 14%; }
.plate--panes i:nth-child(2) { left: 30%; top: 30%; }
.plate--panes i:nth-child(3) { left: 50%; top: 44%; width: 38%; height: 40%; }
.plate--grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 6.25% 11.1%;
}
/* The picture's motion blur, from the app plate down to the screen: ten
   copies, fainter near the app, blurred together. It comes in once the stack
   has mostly closed up. */
.stack-trail {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  filter: blur(2px);
  opacity: max(0, var(--k) * 2 - 1);
}
.ghost {
  opacity: var(--o);
}
.ghost .plate {
  box-shadow: none;
}
/* Quiet labels, joined to their plate by a hairline. */
.layer-label {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: clamp(30px, 3.4vw, 46px);
  font-size: clamp(15px, 1.6vw, 22px);
  line-height: 1.15;
  font-weight: 600;
  white-space: nowrap;
}
.layer-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: clamp(16px, 2vw, 32px);
  height: 1px;
  background: var(--color-white-a22);
}
.layer[data-cut] .layer-label {
  color: var(--text-secondary);
  /* The plate slides away; its label stays on the shared column and only
     fades with it, so the labels never break ranks mid-scene. */
  transform: translate(calc(var(--W) * var(--t, 1) * var(--cut-x, -0.45) * -1), -50%);
}
/* While the typical app is still one closed block (--open below 1), only the
   app's label shows; the others come in as it opens, never on top of each
   other. */
.layer:not([data-y0="0"]) .layer-label {
  opacity: max(0, var(--open, 1) * 2 - 1);
}
.layer-sub {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 400;
  color: var(--text-secondary);
}
/* 60 fps: centred under the settled stack, in the room the browser plates
   leave, and in with it. */
.stack-stat {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--W) * 1.36);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: var(--k);
}
.stack-fps {
  margin: 0;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.055em;
}
/* The number counts up to 60 as the stack closes (site.js), in a warm
   white taken from the picture; tabular figures, so it never jitters. */
.stack-fps-n {
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 30%, #ffd9a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stack-fps-u {
  margin-left: 0.12em;
  font-size: 0.38em;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
}
.stack-caption {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--text-secondary);
  /* Only once the count has landed on 60: "21 fps on a 2019 LG TV" on the way
     up would read as a claim. */
  opacity: max(0, (var(--k) - 0.96) * 25);
}

/* ---------- Community: support, press glosses ---------- */
/* Support closes the page, after the FAQ, in a lit card of its own. */
.support-section {
  padding-bottom: clamp(40px, 6vh, 72px);
}
.community-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin: clamp(36px, 5vh, 56px) 0 0;
  padding: clamp(18px, 2.4vw, 24px) clamp(20px, 2.6vw, 28px);
  border-radius: 18px;
  background: var(--color-white-a07);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.community-support p {
  position: relative;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-reading);
  margin: 0;
  max-width: 46ch;
  text-wrap: pretty;
}
.press-gloss {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-tertiary);
}
.press-item {
  grid-template-areas: "meta head date" "meta gloss date";
}
.press-item .press-meta { grid-area: meta; }
.press-item .press-headline { grid-area: head; }
.press-item .press-gloss { grid-area: gloss; margin-top: 0; }
.press-item .press-date { grid-area: date; }
.press-stage-gloss {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-tertiary);
  margin: 0;
}
.press-stage-gloss[hidden] {
  display: none;
}
@media (max-width: 759px) {
  .press-item {
    grid-template-areas: "meta date" "head head" "gloss gloss";
  }
}

/* ---------- Install and notes links ---------- */
.install-card a,
.notes-split a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.notes-split a:hover {
  opacity: 0.75;
}
/* ---------- Install: reassurance chips ---------- */
.install-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
  margin-top: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--color-white-a07);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 15px;
}
.chip svg {
  flex: none;
  display: block;
}
/* ---------- Compatibility and privacy (the end of Install) ---------- */
/* Both are short and both are wanted before installing, so they close the
   Install section under a hairline rather than taking a section each. */
.notes-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
  margin-top: clamp(44px, 6.5vh, 80px);
  padding-top: clamp(32px, 4.5vh, 52px);
  box-shadow: inset 0 1px 0 var(--hairline);
}
.notes-split h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 clamp(18px, 2.6vh, 26px);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.notes-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.notes-split h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}
.notes-split p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-reading);
  margin: 0 0 12px;
  text-wrap: pretty;
}
.notes-stack p {
  margin: 0;
}
.notes-split .notes-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin-top: 10px;
}
.privacy-card {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: 16px;
  background: var(--color-white-a07);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.privacy-card h2 {
  margin-bottom: clamp(14px, 2vh, 20px);
}
.notes-split .privacy-lead {
  color: var(--text-primary);
  font-weight: 600;
}
.install-card a {
  align-self: flex-start;
}

/* ---------- Features: the look, then the cards ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.look-lead {
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 clamp(28px, 4.5vh, 48px);
  max-width: 34ch;
  text-wrap: pretty;
}
/* The glass close-up opens the feature grid as a card across its full
   width. */
.look-panel {
  grid-column: 1 / -1;
  margin: 0;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-white-a07);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.look-panel picture,
.look-panel img {
  display: block;
  width: 100%;
  height: auto;
}
.look-panel figcaption {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: clamp(20px, 2.6vw, 36px);
}
.look-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-white-a07);
  box-shadow: inset 0 0 0 1px var(--color-white-a22);
  color: var(--text-primary);
}
.look-panel h3 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
}
.look-panel p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--text-reading);
  margin: 0;
  max-width: 40ch;
  text-wrap: pretty;
}
.look-panel--glass picture {
  background: #2f2523;
}
.look-panel figcaption {
  box-shadow: inset 0 1px 0 var(--hairline);
}
/* On phones the glass panel shows the middle 76% of the wide render (its 12%
   to 88%), cropped to 1672:400, so the whole bar (Home, Movies, TV Shows,
   search) stays in view. The bar spans 14.8% to 85.5% of the render, so that
   leaves it a few pixels of poster either side; show less and its rounded
   ends are cut off. */
@media (max-width: 759px) {
  .look-panel--glass picture {
    aspect-ratio: 1672 / 400;
    overflow: hidden;
  }
  .look-panel--glass img {
    width: 131.58%;
    max-width: none;
    margin-left: -15.79%;
  }
}
/* The fast card is the numeral itself, as large as the card allows, with its
   title and line beside it (under it, where they do not fit). */
.feature-card--fast {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  /* The numeral and its copy sit together in the middle of a wide card,
     never in its left half. */
  justify-content: center;
  gap: 20px clamp(32px, 5vw, 80px);
}
.feature-card .feature-stat {
  position: relative;
  margin: 0;
  font-size: clamp(120px, 17vw, 250px);
  line-height: 0.8;
  font-weight: 700;
  letter-spacing: -0.07em;
  color: var(--text-primary);
}
.feature-card .feature-stat span {
  margin-left: 0.16em;
  font-size: 0.24em;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
}
.feature-fast-copy {
  position: relative;
  flex: 0 1 34ch;
  min-width: min(260px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-card--fast h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
/* Codec and player chips: the always-there ones filled and bold, the ones
   that depend on the TV or the server outlined in grey. */
.feature-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--color-white-a10);
  box-shadow: inset 0 0 0 1px var(--color-white-a22);
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 700;
  color: var(--text-primary);
}
.feature-chips .is-opt {
  background: none;
  font-weight: 600;
  color: var(--text-secondary);
}
.feature-chips svg {
  flex: none;
  display: block;
}
/* Each feature card opens on a quiet stage: one neutral panel with a single
   piece of art centred on it. When the card comes in (site.js adds
   .is-revealed) the art makes one small move and stops. Its resting state is
   the end of that move, so without JS or under reduced motion it just shows. */
.feature-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(196px, 48vw, 228px);
  margin-bottom: 10px;
  padding: 24px 16px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

/* Sign in: thin brackets settle around the code. */
.feature-qr {
  position: relative;
  padding: 13px;
  border-radius: 14px;
  background: var(--color-cool-0);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.feature-qr svg {
  display: block;
  width: clamp(100px, 27vw, 116px);
  height: auto;
}
.qr-frame {
  position: absolute;
  inset: -12px;
  pointer-events: none;
}
.qr-frame i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid rgba(255, 255, 255, 0.7);
}
.qr-frame i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 8px;
}
.qr-frame i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
  border-top-right-radius: 8px;
}
.qr-frame i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 8px;
}
.qr-frame i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 8px;
}

/* Libraries: three posters from the demo library fan out. */
.feature-fan {
  position: relative;
  width: 166px;
  height: 135px;
}
.feature-fan i {
  position: absolute;
  top: 7px;
  left: 43px;
  width: 80px;
  height: 121px;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.feature-fan i:nth-child(1) {
  background: #2b3452 url(media/closeup-fan-caligari.jpg) center / cover;
  translate: -43px 6px;
  rotate: -10deg;
}
.feature-fan i:nth-child(2) {
  background: #47321f url(media/closeup-fan-cosmos.jpg) center / cover;
  translate: 0 -7px;
  rotate: -1deg;
}
.feature-fan i:nth-child(3) {
  background: #1f3d3c url(media/closeup-fan-elephants.jpg) center / cover;
  translate: 43px 6px;
  rotate: 9deg;
}

/* Decoder and offline: a few line icons on matching tiles, joined by
   hairlines that draw in. */
.net-row {
  display: flex;
  align-items: flex-start;
  width: min(100%, 300px);
}
.net-node {
  /* Every node as wide as the widest label, so the icons sit evenly about the
     middle one whatever their labels ("HEVC 10-bit" beside "4K HDR"). */
  flex: 0 0 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: var(--text-primary);
}
.net-node svg,
.net-cloud svg {
  display: block;
}
.net-node svg {
  box-sizing: content-box;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.net-node--chip svg {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.net-node b,
.net-cloud b {
  /* One line, centred on its icon even where it is wider than the node. */
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.net-link {
  flex: 1;
  height: 1px;
  margin: 26px 10px 0;
  background: rgba(255, 255, 255, 0.4);
}
.feature-stage--decode .net-row {
  width: min(100%, 320px);
}
.feature-stage--decode .net-link {
  margin-inline: 8px;
}
.feature-stage--net {
  gap: 14px;
}
/* The home network link is the one coloured line: it is the point. */
.feature-stage--net .net-link {
  height: 2px;
  border-radius: 1px;
  background: #30d158;
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.45);
}
.net-cloud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-tertiary);
  opacity: 0.55;
}
.net-cloud b {
  color: inherit;
}
.net-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.net-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
}

/* Player: the real capture of the player runs across the top of its card,
   edge to edge like the glass close-up, at its own 16:9, with the chips and
   the text under it. */
.feature-stage--shot {
  min-height: 0;
  /* The capture's top 12% is the film's own black letterbox; the frame is cut
     to start under it (the image sits on the bottom edge). */
  aspect-ratio: 160 / 79;
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 14px;
  padding: 0;
  border-radius: 18px 18px 0 0;
  background: #060606;
  box-shadow: inset 0 -1px 0 var(--hairline);
}
.feature-stage--shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
/* The HUD card: three player HUDs stacked, the chosen one in front. */
.feature-stage--hud {
  padding: 24px 16px;
}
.hud-stack {
  position: relative;
  width: min(100%, 250px);
  height: 150px;
}
.hud-skin {
  position: absolute;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.hud-skin i {
  display: block;
  background: var(--color-white-a22);
}
.hud-skin--back {
  left: 22px;
  right: 22px;
  top: 0;
  height: 38px;
  gap: 8px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0.55;
}
.hud-skin--mid {
  left: 11px;
  right: 11px;
  top: 30px;
  height: 44px;
  gap: 10px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.07);
  opacity: 0.8;
}
.hud-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.hud-tick {
  width: 22px;
  height: 6px;
  border-radius: 3px;
}
.hud-line {
  flex: 1;
  height: 3px;
  border-radius: 2px;
}
.hud-skin--front {
  left: 0;
  right: 0;
  top: 66px;
  height: 84px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(28, 28, 30, 0.92);
  box-shadow: inset 0 0 0 1px var(--color-white-a22), 0 18px 40px rgba(0, 0, 0, 0.5);
}
.hud-transport {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}
.hud-transport svg {
  flex: none;
}
.hud-track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-white-a22);
}
.hud-track span {
  position: absolute;
  inset: 0 42% 0 0;
  border-radius: 2px;
  background: var(--text-primary);
}
.hud-transport b {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.hud-picks {
  display: flex;
  gap: 6px;
}
.hud-picks span {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: inset 0 0 0 1px var(--color-white-a22);
}
.hud-picks .is-on {
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-face-body);
  box-shadow: none;
}
/* A one-third card beside a taller card lets its stage take the extra
   height, so the art stays centred instead of leaving a gap under the text. */
.feature-card--half .feature-stage {
  flex: 1 0 auto;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal .feature-card .qr-frame {
    opacity: 0;
    scale: 1.18;
  }
  .reveal .feature-card .feature-fan i {
    translate: 0 0;
    rotate: 0deg;
  }
  .reveal .feature-card .net-link {
    scale: 0 1;
  }
  .reveal .feature-card.is-revealed .qr-frame {
    opacity: 1;
    scale: none;
    transition:
      opacity 500ms ease-out calc(var(--reveal-delay, 0ms) + 300ms),
      scale 900ms cubic-bezier(0.19, 1, 0.22, 1) calc(var(--reveal-delay, 0ms) + 300ms);
  }
  .reveal .feature-card.is-revealed .feature-fan i:nth-child(1) {
    translate: -43px 6px;
    rotate: -10deg;
  }
  .reveal .feature-card.is-revealed .feature-fan i:nth-child(2) {
    translate: 0 -7px;
    rotate: -1deg;
  }
  .reveal .feature-card.is-revealed .feature-fan i:nth-child(3) {
    translate: 43px 6px;
    rotate: 9deg;
  }
  .reveal .feature-card.is-revealed .feature-fan i {
    transition:
      translate 1000ms cubic-bezier(0.19, 1, 0.22, 1) calc(var(--reveal-delay, 0ms) + 250ms),
      rotate 1000ms cubic-bezier(0.19, 1, 0.22, 1) calc(var(--reveal-delay, 0ms) + 250ms);
  }
  .reveal .feature-card.is-revealed .net-link {
    scale: none;
    transition: scale 800ms cubic-bezier(0.65, 0, 0.35, 1) calc(var(--reveal-delay, 0ms) + 300ms);
  }
}

/* From tablets up, a two-thirds card runs its chips across the top and puts
   the stage beside the text below them; so does the offline card on a
   tablet, where it alone spans both columns. */
@media (min-width: 760px) {
  .feature-card--wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto auto 1fr;
    gap: 0 clamp(24px, 3vw, 40px);
  }
  .feature-card--wide .feature-chips {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 22px;
  }
  .feature-card--wide .feature-stage {
    grid-column: 2;
    grid-row: 2 / 6;
    min-height: 0;
    margin: 0;
  }
  .feature-card--wide.feature-card--shot {
    display: flex;
  }
  .feature-card--wide.feature-card--shot .feature-stage--shot {
    margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 14px;
  }
  .feature-card--wide h3 {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 12px;
  }
  .feature-card--wide p {
    grid-column: 1;
    grid-row: 4;
  }
}
/* Two thirds of a 1000-1199px window is too narrow for the decoder's chain
   beside its text: the chain goes back on top, as on a phone. */
@media (min-width: 1000px) and (max-width: 1199px) {
  .feature-card--decode {
    display: flex;
  }
  .feature-card--decode .feature-stage {
    min-height: 168px;
    margin-bottom: 10px;
  }
}
/* The offline card spans the full width from tablets up, its stage beside the text. */
@media (min-width: 760px) {
  .feature-card--half:last-child {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: 1fr auto auto 1fr;
    gap: 0 clamp(24px, 4vw, 40px);
  }
  .feature-card--half:last-child .feature-stage {
    grid-row: 1 / 5;
    margin: 0;
  }
  .feature-card--half:last-child h3 {
    grid-row: 2;
    margin-bottom: 12px;
  }
  .feature-card--half:last-child p {
    grid-row: 3;
  }
}
