/* The page under the set, and every reading page: warm off-white paper,
   one grotesque (Inter) with light, tight headlines (weight 480, -0.04em), near-black
   pill buttons and white ones with a hairline ring, soft cards with a ring
   instead of a border, and sections that take turns on the paper and a warm
   band, each opened the same way on the left edge (.shead). Apex's own
   characters, words, glyph pattern and violet accent. Always light: the set
   above it is the dark thing on the page. */

.page,
.foot,
.player {
  color-scheme: light;

  --paper: #fffcfa;
  --paper-2: #fcf8f5;
  --band: #f7f2ed;
  --ground: #f3eee9;
  --raised: #ffffff;
  --ink: #252522;
  --ink-2: rgba(37, 37, 34, 0.7);
  --ink-3: rgba(37, 37, 34, 0.56);
  --ink-card: rgba(37, 37, 34, 0.82);
  --line: #efe6dc;
  --violet: #6a4bff;
  --ok: #2f9e44;
  --no: #e5484d;
  --ring: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* The set's own floor glyphs, as a pattern for the soft bands. */
  --glyphs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cg fill='none' stroke='%236a4bff' stroke-width='1.3' stroke-linecap='round' opacity='.2'%3E%3Ccircle cx='7' cy='7' r='2.2'/%3E%3Cpath d='M21 4.5v5M18.5 7h5'/%3E%3Crect x='4.8' y='18.8' width='4.4' height='4.4' rx='1'/%3E%3Ccircle cx='21' cy='21' r='1.2' fill='%236a4bff'/%3E%3C/g%3E%3C/svg%3E");

  font-family: var(--sans);
}

.page {
  position: relative;
  /* Over the set and the hand with the remote (tv.css .remote, z-index 1): a sheet with rounded shoulders. */
  z-index: 2;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -24px 70px -10px rgba(0, 0, 0, 0.55);
  overflow: clip;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

/* :where keeps these resets weaker than any class below. */
.page :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, q) {
  margin: 0;
}

.page :where(ul, ol) {
  padding: 0;
  list-style: none;
}

.page :where(h1, h2) {
  font-weight: 480;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-wrap: balance;
}

.page :where(h3, h4) {
  text-wrap: balance;
}

.wrap {
  width: min(1040px, 100% - 2 * clamp(18px, 4vw, 40px));
  margin-inline: auto;
}

/* ---- actions: a near-black pill, or a white one with a hairline ring ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 41px;
  padding: 0 24px;
  border: 0;
  border-radius: 100px;
  background: var(--violet-key, #7657ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(45, 20, 140, 0.25);
  color: #fff;
  font: 500 14px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.15s var(--ease-out),
    background 0.15s,
    box-shadow 0.15s;
}

.btn:hover {
  background: #6440ff;
}

.btn:active {
  transform: scale(0.98);
}

.btn .i {
  width: 16px;
  height: 16px;
}

.btn--lg {
  height: 47px;
  padding: 0 28px;
  font-size: 15px;
}

.btn--sm {
  height: 37px;
  padding: 0 16px;
}

.btn--nav {
  height: 36px;
  padding: 0 20px;
  font-size: 13px;
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--ring);
}

.btn--ghost:hover {
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 2px 6px -2px rgba(0, 0, 0, 0.12);
}

/* A little still in the pill, the way theirs carries a face. */
.btn--thumb {
  gap: 12px;
  padding: 4.8px 20px 4.8px 4.8px;
}

.btn--thumb img {
  width: 56px;
  height: 100%;
  border-radius: 100px;
  object-fit: cover;
}

.btn--more::after,
.more::after {
  content: '›';
  margin-left: 2px;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s;
}

.btn--more:hover::after,
.more:hover::after {
  transform: translateX(3px);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 14px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.more--accent {
  color: var(--violet);
  font-size: 15px;
}

/* ---- the bar ---- */

.pagenav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  border-radius: 26px 26px 0 0;
  border-bottom: 1px solid var(--line);
  /* Nearly solid, and no backdrop blur: at this opacity the blur hardly
     showed, and it had the whole bar re-blurred on every frame of a scroll. */
  background: rgba(255, 252, 250, 0.96);
}

.pagenav__in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.pagenav__home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  color: var(--ink);
  font-size: 21px;
  font-weight: 560;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.pagenav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.pagenav__links::-webkit-scrollbar {
  display: none;
}

.pagenav__links a {
  padding: 6px 0;
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}

.pagenav__links a:hover,
.pagenav__links a[aria-current='true'] {
  color: var(--ink);
}

.pagenav__get {
  justify-self: end;
}

/* ---- shared section pieces (the reading pages use these too) ---- */

.sec {
  padding-block: clamp(64px, 9vw, 112px);
  scroll-margin-top: 64px;
}

.sec--tint {
  background: var(--band);
}

.kicker {
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 15px;
}

.sec h2 {
  font-size: clamp(30px, 4vw, 40px);
}

.lead {
  max-width: 56ch;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.lead strong {
  color: var(--ink);
  font-weight: 560;
}

.after {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.vnote {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 13.5px;
}

/* ---- the opening ---- */

.hero {
  --top: clamp(64px, 8.5vw, 122px);
  position: relative;
  padding-top: var(--top);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 30%, transparent), var(--paper) 520px),
    var(--glyphs) 0 0 / 28px 28px;
  overflow: hidden;
  scroll-margin-top: 64px;
  text-align: center;
}

.hero__title {
  max-width: 14ch;
  margin-inline: auto;
  font-size: clamp(36px, 4.2vw, 47.8px);
}

.hero__lead {
  max-width: 36ch;
  margin: 16px auto 0;
  color: var(--ink-2);
  font-size: clamp(18px, 1.6vw, 21.6px);
  line-height: 1.38;
  text-wrap: balance;
}

.hero__keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* The browser window, with the cast sitting on its top edge. */
.frame {
  --pw: clamp(76px, 10.5vw, 140px);
  position: relative;
  margin-top: clamp(100px, 11vw, 140px);
}

.frame__shot {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: #eee8ff;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 -10px 50px -20px rgba(60, 40, 120, 0.25);
}

.frame__shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* The cast's row ends on the window's top edge; each one sits on it (.pal--sit). */
.frame__cast {
  position: absolute;
  bottom: 100%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.frame__cast--l {
  left: 2%;
}

.frame__cast--r {
  right: 2%;
}

.frame__cast .pal {
  width: var(--pw);
  margin-inline: -4px;
}

/* ---- a companion sitting on an edge ----
   Drawn sitting (tools/render-companions --perch), feet hanging over the
   front. --edge is where the seat is in the image (0 to 1, down from the top):
   the image goes that far down past the end of its row, which lies on the edge,
   so the seat rests on it and the feet hang in front of what is below. */
.pal--sit {
  margin-bottom: calc((var(--edge) - 1) * var(--pw));
}

/* Where it sits it shades the edge just under it: a thin soft band, not a floor. */
.pal.pal--sit::before {
  left: 22%;
  right: 22%;
  top: calc(var(--edge) * 100%);
  bottom: auto;
  height: 7%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(30, 18, 70, 0.22), transparent);
  -webkit-mask-image: none;
  mask-image: none;
}

/* The feet stand off the face below by a hair's shadow. */
.pal.pal--sit > img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 1.5px rgba(30, 18, 70, 0.2));
}

.playmark {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border-radius: 100px;
  background: rgba(20, 18, 26, 0.86);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  translate: -50% 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.playmark .i {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.frame__shot:hover .playmark,
.vcard__play:hover .playmark {
  background: var(--violet);
}

/* ---- the strip of products ---- */

.marks {
  padding-block: 32px 40px;
  border-block: 1px solid var(--line);
  text-align: center;
}

.marks p {
  color: var(--ink-3);
  font-size: 15px;
}

.marks__clip {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marks__row {
  display: flex;
  gap: 64px;
  width: max-content;
  margin-top: 26px;
  animation: marks 52s linear infinite;
}

.marks__row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b4ada5;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.marks__row svg {
  width: 24px;
  height: 24px;
}

/* One quiet grey, whatever the brand's own colour. */
.marks__row svg path {
  fill: #b4ada5;
}

@keyframes marks {
  to {
    transform: translateX(-50%);
  }
}

/* ---- the sections under the hero: one rhythm, one way of opening ----
   Every section is a .blk: the same padding, on the paper or the warm band in
   turn. Each opens with a .shead on the left edge: the channel tag, the title,
   one line under it, and an action on the right when there is one. Cards sit
   on --card: the paper's own tint on paper, white on the band. */

.blk {
  --card: var(--paper-2);
  --pad: clamp(72px, 9vw, 120px);
  padding-block: var(--pad);
  scroll-margin-top: 64px;
}

/* A section away from the screen is not laid out or painted until it comes
   near (content-visibility). The whole page starts out under the set, so
   the first screen only draws the set. Once a section has been seen it keeps
   its real size (auto); the sizes here are only a guess before that, close to
   the real ones so the scrollbar hardly moves. */
/* (Not the hero: it is the first thing the page shows as it rises over the
   set, so it is always ready.) */
.page > .marks,
.page > .blk {
  content-visibility: auto;
  contain-intrinsic-size: auto 1000px;
}

/* Measured sizes, as the first guess (wide screens; tablets and phones below),
   less each section's padding: the guess is the size of the content alone. */
.page > .marks {
  contain-intrinsic-size: auto 81px;
}

.page > .works {
  contain-intrinsic-size: auto calc(980px - 2 * var(--pad));
}

.page > .reqs {
  contain-intrinsic-size: auto calc(1058px - 2 * var(--pad));
}

.page > .vsec {
  contain-intrinsic-size: auto calc(1228px - 2 * var(--pad));
}

.page > .parts {
  contain-intrinsic-size: auto calc(1012px - 2 * var(--pad));
}

.page > .crew {
  contain-intrinsic-size: auto calc(1328px - 2 * var(--pad));
}

.page > .safe {
  contain-intrinsic-size: auto calc(705px - 2 * var(--pad));
}

.page > .go {
  contain-intrinsic-size: auto calc(795px - 2 * var(--pad));
}

.page > .qa {
  contain-intrinsic-size: auto calc(1235px - 2 * var(--pad));
}

.page > .last {
  contain-intrinsic-size: auto calc(666px - var(--top) - var(--pad));
}

.blk--band {
  --card: #fff;
  background: var(--band);
}

.shead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.shead__text {
  max-width: 660px;
}

.shead h2 {
  font-size: clamp(32px, 4vw, 44px);
}

.shead__lead {
  max-width: 54ch;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

.shead__aside {
  flex: none;
}

/* ---- how it works: a cloud of products over a request, on a stage ---- */

.stage {
  position: relative;
  padding: clamp(28px, 4vw, 44px) clamp(16px, 3vw, 40px) clamp(28px, 3.5vw, 40px);
  border-radius: 24px;
  background: var(--band);
  box-shadow: var(--ring);
  overflow: hidden;
  isolation: isolate;
}

/* The set's floor glyphs, strongest at the top and fading down. */
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glyphs) 0 0 / 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.apps {
  position: relative;
  height: 200px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.apps__tile {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: 26%;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 8px 18px -8px rgba(40, 30, 20, 0.25);
  translate: -50% 0;
  animation: apps-float 6s ease-in-out calc(var(--i) * -0.6s) infinite alternate;
}

.apps__tile svg {
  width: 52%;
  height: 52%;
}

.apps__tile--d1 {
  filter: blur(1px);
  opacity: 0.7;
}

.apps__tile--d2 {
  filter: blur(3px);
  opacity: 0.4;
}

@keyframes apps-float {
  to {
    transform: translateY(-10px);
  }
}

.askbox {
  position: relative;
  z-index: 2;
  width: min(724px, 100%);
  min-height: 112px;
  margin: -34px auto 0;
  padding: 18px 20px 54px;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 24px 50px -24px rgba(40, 30, 20, 0.3);
  text-align: left;
}

.askbox__text {
  min-height: 1.5em;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

/* The request being typed and, invisible in the same place, the longest one:
   the box keeps that height while the requests come and go. */
.askbox__text {
  display: grid;
}

.askbox__text > span {
  grid-area: 1 / 1;
}

.askbox__size {
  visibility: hidden;
}

.askbox__text b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  vertical-align: bottom;
}

.askbox__text b svg {
  width: 15px;
  height: 15px;
}

[data-ask-text][data-typing]::after {
  content: '';
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-left: 2px;
  background: var(--ink);
  vertical-align: text-bottom;
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.askbox__plus {
  position: absolute;
  left: 20px;
  bottom: 12px;
  color: var(--ink-3);
  font-size: 22px;
  line-height: 1;
}

.askbox__send {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.askbox__send .i {
  width: 15px;
  height: 15px;
}

/* What happens, in three steps under the request. */
.works__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  justify-content: center;
  gap: 16px clamp(24px, 4vw, 48px);
  margin-top: 32px;
}

.works__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 540;
  letter-spacing: -0.015em;
}

/* ---- real requests, in speech-bubble cards ---- */

.reqs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.req {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  height: 100%;
  min-height: 250px;
  padding: 24px;
  border: 0;
  border-radius: 20px 20px 20px 4px;
  background: var(--card);
  box-shadow: var(--ring);
  color: var(--ink);
  font: 400 18px/1.5 var(--sans);
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    translate 0.2s var(--ease-out);
}

.req:hover {
  translate: 0 -2px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 12px 26px -14px rgba(40, 30, 20, 0.35);
}

.req q {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.req__who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.req__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-2);
  box-shadow: var(--ring);
}

.req__mark svg {
  width: 20px;
  height: 20px;
}

.req__who b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.req__who small {
  display: block;
  color: var(--ink-3);
  font-size: 14px;
}

/* ---- why a browser: two ways of working, side by side ---- */

.vs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.vs__col {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--ring);
}

/* Apex's side: white, with a violet ring. */
.vs__col--yes {
  background: #fff;
  box-shadow:
    0 0 0 1.5px color-mix(in srgb, var(--violet) 40%, transparent),
    0 24px 48px -28px rgba(60, 40, 140, 0.4);
}

.vs__head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  margin-bottom: 20px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.vs__icons {
  display: flex;
  gap: 6px;
}

.vs__icons span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 4px 8px -3px rgba(0, 0, 0, 0.12);
}

.vs__icons .i {
  width: 20px;
  height: 20px;
}

.vs__icons img {
  width: 28px;
  height: 28px;
}

.vs__card {
  position: relative;
  display: block;
  width: 100%;
  height: 320px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--band);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

button.vs__card {
  background: #17161a;
  cursor: pointer;
}

.vs__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

button.vs__card:hover .playmark {
  background: var(--violet);
}

/* The chatbot side: three windows you carry things between. */
.carry {
  position: relative;
  height: 100%;
}

.carry div {
  position: absolute;
  width: 58%;
  padding: 12px 14px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 14px 30px -16px rgba(40, 30, 20, 0.35);
  color: var(--ink-2);
  font-size: 13px;
  text-align: left;
}

.carry div b {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.carry div:nth-child(1) {
  left: 6%;
  top: 10%;
  rotate: -3deg;
}

.carry div:nth-child(2) {
  right: 5%;
  top: 36%;
  rotate: 2deg;
}

.carry div:nth-child(3) {
  left: 9%;
  bottom: 9%;
  rotate: -1deg;
}

.carry i {
  position: absolute;
  right: 22%;
  bottom: 30%;
  padding: 3px 10px;
  border-radius: 7px;
  background: #ffe9c7;
  color: #8a5a00;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.marksn {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  font-size: 16.5px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.marksn li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marksn li::before {
  content: '✕';
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--no);
  color: #fff;
  font-size: 11px;
}

.marksn--yes li::before {
  content: '✓';
  background: var(--ok);
}

/* The comparisons in full, as three quieter cards under the two. */
.vs__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.vs__links > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px 16px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--ring);
}

.vs__links h3 {
  font-size: 18px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.vs__links p {
  margin: 8px 0 10px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.vs__links .more {
  margin-top: auto;
  padding-inline: 0;
}

/* ---- what's inside: a list of parts beside a picture ---- */

.parts__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(18px, 2.6vw, 32px);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--ring);
}

.parts__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.part {
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.045);
  transition:
    background 0.2s,
    box-shadow 0.2s;
}

.part[open] {
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 10px 24px -14px rgba(40, 30, 20, 0.3);
}

.part summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 16px;
  font-size: 15.5px;
  font-weight: 560;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.part summary span {
  flex: 1;
}

.part summary::-webkit-details-marker {
  display: none;
}

.part summary .i {
  width: 17px;
  height: 17px;
}

.part[open] summary .i {
  color: var(--violet);
}

/* A plus that turns into a minus (the parts and the questions). */
.part summary i,
.faq summary i {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ground);
}

.part summary i::before,
.part summary i::after,
.faq summary i::before,
.faq summary i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 1.6px;
  border-radius: 1px;
  background: var(--ink-2);
  translate: -50% -50%;
}

.part summary i::after,
.faq summary i::after {
  rotate: 90deg;
  transition: rotate 0.2s;
}

.part[open] summary i::after,
.faq details[open] summary i::after {
  rotate: 0deg;
}

.part p {
  padding: 0 16px 16px 43px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

/* Beside the picture the parts open one after another by themselves; each
   open one keeps room for four lines (the longest, Browser, needs four), so
   the card stays one height and what is under it never moves. */
@media (min-width: 901px) {
  .part p {
    min-height: calc(4 * 1.55em);
    box-sizing: content-box;
  }
}

.parts__art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.parts__art:disabled {
  cursor: default;
}

/* Always the shape of the demos (16:9), whatever the picture, so the card
   keeps its size as the parts go by and scales with the column. */
.parts__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 30px 60px -30px rgba(40, 30, 80, 0.45);
  rotate: 1.5deg;
  transition:
    opacity 0.3s,
    rotate 0.4s var(--ease-out);
}

/* A picture that isn't a demo (the pack): whole, in the middle of a soft violet
   card with the set's glyphs, rather than cropped like a screenshot. */
.parts__art img[data-pic] {
  padding: 5% 0;
  object-fit: contain;
  object-position: center;
  background:
    radial-gradient(60% 70% at 50% 55%, color-mix(in srgb, var(--violet) 16%, #fff), transparent 75%),
    var(--glyphs) 0 0 / 24px 24px,
    color-mix(in srgb, var(--violet) 5%, var(--paper));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 30px 60px -34px rgba(40, 30, 80, 0.4);
}

.parts__art:not(:disabled):hover img {
  rotate: 0deg;
}

.parts__art img[data-fade] {
  opacity: 0;
}

.parts__art .playmark {
  bottom: 18px;
}

.parts__art:not(:disabled):hover .playmark {
  background: var(--violet);
}

.parts__art:disabled .playmark {
  display: none;
}

.parts__pause {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--ring);
  cursor: pointer;
}

.parts__pause svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* The ring fills as the next part comes up (--p, 0 to 1, from page.js). */
.parts__ring {
  stroke: var(--ink-3);
  stroke-width: 1.6;
  stroke-dasharray: 100.6;
  stroke-dashoffset: calc(100.6 * (1 - var(--p, 0)));
  rotate: -90deg;
  transform-origin: 50% 50%;
}

.parts__i-play {
  display: none;
  fill: var(--ink);
  stroke: none;
}

.parts__pause[aria-pressed='true'] .parts__i-play {
  display: block;
}

.parts__pause[aria-pressed='true'] .parts__i-pause {
  display: none;
}

/* ---- the companions as role cards ---- */

.crew__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mate {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--ring);
}

.mate__art {
  position: relative;
  height: 236px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(200deg, #fff, #fffcfa 66%);
  background: linear-gradient(200deg, color-mix(in srgb, var(--tint) 20%, #fff), color-mix(in srgb, var(--tint) 4%, #fffcfa) 66%);
  box-shadow: var(--ring);
  /* The companion's size follows the card's width (cqi), so it fits at every column count. */
  container-type: inline-size;
}

.mate__art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glyphs) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(215deg, #000 10%, transparent 62%);
  mask-image: linear-gradient(215deg, #000 10%, transparent 62%);
}

/* The floor it stands on: the card's tint, a shade deeper towards the front. */
.mate__art::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 44px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--tint) 12%, transparent));
}

/* Standing whole on the card's floor, on the right: feet (at 90% of the
   still's height) 16px above the bottom edge, its head clear of the bubble. */
.mate__art .pal {
  --pw: min(184px, 58cqi);
  position: absolute;
  right: 4%;
  bottom: calc(16px - var(--pw) * 0.1);
  z-index: 1;
  width: var(--pw);
}

/* Without container units (Safari before 16): one size that fits every card. */
@supports not (width: 1cqi) {
  .mate__art .pal {
    --pw: 170px;
  }
}

.mate__art .pal::before {
  left: 24%;
  right: 16%;
  bottom: 6.5%;
  height: 7%;
  background: radial-gradient(closest-side, rgba(40, 30, 20, 0.34), rgba(40, 30, 20, 0.14) 55%, transparent);
  -webkit-mask-image: none;
  mask-image: none;
}

.mate__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tint) 18%, #f4f0ec);
  color: color-mix(in srgb, var(--tint) 50%, #2a2622);
  font-size: 16px;
  font-weight: 540;
  letter-spacing: -0.01em;
}

.mate__tag .i {
  width: 15px;
  height: 15px;
}

.mate__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px 20px;
}

.mate__text p {
  color: var(--ink-card);
  font-size: 16px;
  line-height: 1.5;
}

.mate__keys {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.mate--own .pal {
  filter: grayscale(1) opacity(0.3);
}

.mate--own .mate__tag {
  color: var(--ink-3);
  background: #f1ece7;
}

/* ---- safety: four cards with a round mark ---- */

.safe__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.safe__grid li {
  padding: 24px 24px 26px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--ring);
}

.safe__grid .round {
  width: 44px;
  height: 44px;
  background: color-mix(in srgb, var(--violet) 9%, #fff);
  box-shadow: none;
  color: var(--violet);
}

.safe__grid .round .i {
  width: 20px;
  height: 20px;
}

.safe__grid h3 {
  margin-top: 20px;
  text-wrap: pretty;
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.safe__grid p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* ---- get started: three numbered cards ---- */

.start3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.start3 > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 28px 28px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--ring);
}

.start3 h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.start3 p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.start3 .btn {
  margin-top: 24px;
}

.pills {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.pills li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 560;
}

.pills .i,
.round .i {
  width: 17px;
  height: 17px;
}

.pills li > span,
.round {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--ring);
}

.start3__cast {
  display: flex;
  align-items: flex-end;
  margin-top: 18px;
}

.start3__cast .pal {
  width: 88px;
  margin-inline: -6px;
}

/* ---- questions: the heading and Juniper on the left, staying put; the questions on the right ---- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.faq__side {
  display: flex;
  flex-direction: column;
}

/* In the narrow column the action goes under the words, not beside them. */
.faq__side .shead {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
}

/* Juniper, who reads the fine print, large enough to hold its own beside the list. */
.faq__pal {
  position: relative;
  align-self: center;
  width: min(340px, 92%);
  margin-top: clamp(40px, 5vw, 64px);
}

.faq__say {
  position: absolute;
  left: 52%;
  top: 0;
  z-index: 3;
  max-width: 190px;
  padding: 9px 14px 10px;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(40, 30, 20, 0.06),
    0 10px 24px -8px rgba(40, 30, 20, 0.28);
  color: var(--ink);
  font: 800 14.5px/1.25 var(--round, 'Nunito', system-ui, sans-serif);
  text-wrap: pretty;
  transition: opacity 0.2s;
}

/* A new note (a question was opened) pops in from Juniper's side. */
.faq__say[data-new] {
  transform-origin: 0 100%;
  animation: faq-say 0.32s var(--ease-out) both;
}

@keyframes faq-say {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.9);
  }
}

/* While Juniper says its own line (on a click), the standing one steps aside. */
.faq__pal:has(.pal__say) .faq__say {
  opacity: 0;
}

/* On a screen tall enough for all of it, the column stays beside the questions as they go by. */
@media (min-width: 901px) and (min-height: 760px) {
  .faq__side {
    position: sticky;
    top: 104px;
  }
}

.faq__list {
  display: grid;
  gap: 10px;
}

.faq details {
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--ring);
  transition: box-shadow 0.2s;
}

.faq details[open] {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.07),
    0 16px 32px -20px rgba(40, 30, 20, 0.35);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 18px 24px;
  font-size: 17px;
  font-weight: 540;
  letter-spacing: -0.015em;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover i {
  background: color-mix(in srgb, var(--violet) 12%, var(--ground));
}

.faq details p {
  max-width: 62ch;
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}

/* ---- the last call: a card in the lavender of the set's first channel,
   so the page ends on the picture it began with, the cast sitting on top ---- */

.last {
  --top: clamp(130px, 13vw, 170px);
  padding-top: var(--top);
}

.last__stage {
  --pw: clamp(96px, 11vw, 150px);
  position: relative;
}

.last__card {
  position: relative;
  padding: clamp(56px, 6vw, 76px) clamp(20px, 4vw, 48px) clamp(44px, 5vw, 60px);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #f1edff, #e7e0ff);
  box-shadow:
    inset 0 0 0 1px rgba(106, 75, 255, 0.1),
    0 24px 48px -36px rgba(80, 50, 200, 0.45);
  text-align: center;
  isolation: isolate;
}

/* The set's floor glyphs, rising faintly from the bottom corners. */
.last__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glyphs) 0 0 / 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 130%, #000 20%, transparent 60%);
  mask-image: radial-gradient(120% 90% at 50% 130%, #000 20%, transparent 60%);
}

/* The cast's row ends on the card's top edge; each one sits on it (.pal--sit). */
.last__cast {
  position: absolute;
  left: 50%;
  bottom: 100%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  translate: -50% 0;
}

.last__cast .pal {
  width: var(--pw);
  margin-inline: -6px;
}

.last h2 {
  max-width: 14ch;
  margin-inline: auto;
  color: var(--ink);
  font-size: clamp(34px, 4.4vw, 48px);
}

.last__lead {
  max-width: 44ch;
  margin: 14px auto 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: balance;
}

.last__keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.last small {
  display: block;
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 14px;
}

/* The reading pages' own closing call. */
.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.final h2 {
  font-size: clamp(32px, 4.2vw, 44px);
}

.final .lead {
  margin-top: 0;
}

.final__faces {
  display: flex;
  justify-content: center;
}

.final__faces img {
  width: 76px;
  height: 76px;
  margin-inline: -6px;
}

.final .btn {
  margin-top: 8px;
}

.final small {
  color: var(--ink-3);
  font-size: 14px;
}

/* ---- video cards (reading pages) ---- */

.vgroup {
  margin-top: clamp(40px, 6vw, 72px);
}

.vgroup > :is(h2, h3) {
  font-size: clamp(22px, 2.6vw, 28px);
}

.vgroup > p {
  max-width: 64ch;
  margin-top: 6px;
  color: var(--ink-2);
}

.vgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 22px;
}

/* A video card: the still flush at the top, then what was asked (as a
   bubble, like the requests on the home page), what came of it, and the sites
   it used along the foot, in line from card to card. */
.vcard {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--ring);
  transition:
    box-shadow 0.2s,
    translate 0.2s var(--ease-out);
}

.sec--tint .vcard {
  background: #fff;
}

.vcard:hover {
  translate: 0 -2px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 14px 30px -18px rgba(40, 30, 20, 0.35);
}

.vcard__play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #17161a;
  cursor: pointer;
}

.vcard__play img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.vcard__play:hover img {
  transform: scale(1.03);
}

.vcard__play .playmark {
  left: 12px;
  bottom: 12px;
  padding: 7px 13px 7px 10px;
  font-size: 13.5px;
  translate: none;
}

/* Just the title and the request, in two lines: the rest is on the video's own page. */
.vcard__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px 18px;
}

/* (tv.css balances every paragraph; in a narrow card that leaves short, ragged lines.) */
.vcard__text > * {
  text-wrap: pretty;
}

.vcard__ask {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--ground);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.chip svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.chip:has(.logo) {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--ring);
}

/* ---- the companions on the page ----
   Each .pal starts as its still (an img); page.js puts a live 3D view of it
   over the still, drawn by the browser's own renderer (as on channel 3). */

.pal {
  position: relative;
  display: block;
  flex: none;
  pointer-events: auto;
}

/* They stand on a patch of the set's glyph floor, with a soft shadow. */
.pal::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 1%;
  height: 13%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(40, 30, 60, 0.24), transparent 55%),
    radial-gradient(circle, rgba(106, 75, 255, 0.32) 1.2px, transparent 1.7px) 0 0 / 9px 6px;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent);
  mask-image: radial-gradient(closest-side, #000 45%, transparent);
}

/* The ghost on "make your own" keeps only a faint shadow (see .mate__art .pal::before). */
.mate--own .pal::before {
  opacity: 0.5;
}

.pal > img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

/* The live view frames a little looser than the stills; this evens it out (as .booth__live does). */
.pal__live {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  scale: 1.035;
  transform-origin: 50% 92%;
  pointer-events: none;
}

.pal[data-live] > img {
  visibility: hidden;
}

.pal:not(.pal--ghost) {
  cursor: pointer;
}

/* What a companion says: the rounded face, as on the set. */
.pal__say {
  position: absolute;
  left: 50%;
  bottom: 96%;
  z-index: 3;
  width: max-content;
  max-width: 220px;
  padding: 8px 14px 9px;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(40, 30, 20, 0.06),
    0 10px 24px -8px rgba(40, 30, 20, 0.28);
  color: var(--ink);
  font: 800 14.5px/1.25 var(--round);
  letter-spacing: 0;
  text-align: center;
  translate: -50% 0;
  pointer-events: none;
  animation: pal-say 2.8s var(--ease-out) both;
}

.pal__say::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: #fff;
  translate: -50% -1px;
}

@keyframes pal-say {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.85);
  }
  10%,
  86% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ---- the foot: the name on the left, four lists on the right ---- */

.foot {
  position: relative;
  z-index: 2;
  padding-block: 48px 40px;
  background: var(--paper);
  color: var(--ink-3);
  font-size: 14px;
}

.foot__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 32px;
}

.foot__brand .pagenav__home {
  font-size: 22px;
}

.foot__brand p {
  margin: 52px 0 0;
  font-weight: 560;
  line-height: 1.45;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.foot__cols nav {
  display: grid;
  align-content: start;
  gap: 14px;
}

.foot__cols b {
  margin-bottom: 8px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
}

.foot__cols a {
  color: var(--ink);
  text-decoration: none;
}

.foot__cols a:hover {
  color: var(--violet);
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  grid-column: 1 / -1;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.foot__base a {
  color: var(--ink-3);
  text-decoration: none;
}

.foot__base a:hover {
  color: var(--ink);
}

.foot__base span {
  flex-basis: 100%;
  font-size: 13px;
}

/* ---- the player ---- */

.player {
  width: min(1100px, 100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.player::backdrop {
  background: rgba(14, 12, 20, 0.72);
  backdrop-filter: blur(4px);
}

.player video {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 150px);
  aspect-ratio: 16 / 9;
  background: #17161a;
}

.player__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 14px 20px;
}

.player__text {
  flex: 1;
  min-width: 0;
}

.player__text b {
  display: block;
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.player__text span {
  display: block;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--ground);
  color: var(--ink);
  cursor: pointer;
}

/* ---- narrower screens ---- */

@media (max-width: 900px) {
  /* What each section measures on a tablet, as the first guess (see .blk). */
  .page > .works {
    contain-intrinsic-size: auto calc(793px - 2 * var(--pad));
  }

  .page > .reqs {
    contain-intrinsic-size: auto calc(1270px - 2 * var(--pad));
  }

  .page > .vsec {
    contain-intrinsic-size: auto calc(1204px - 2 * var(--pad));
  }

  .page > .parts {
    contain-intrinsic-size: auto calc(1245px - 2 * var(--pad));
  }

  .page > .crew {
    contain-intrinsic-size: auto calc(1574px - 2 * var(--pad));
  }

  .page > .safe {
    contain-intrinsic-size: auto calc(746px - 2 * var(--pad));
  }

  .page > .go {
    contain-intrinsic-size: auto calc(1142px - 2 * var(--pad));
  }

  .page > .qa {
    contain-intrinsic-size: auto calc(1330px - 2 * var(--pad));
  }

  .page > .last {
    contain-intrinsic-size: auto calc(530px - var(--top) - var(--pad));
  }

  .pagenav__in {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .faq,
  .foot__in,
  .parts__card {
    grid-template-columns: 1fr;
  }

  .crew__grid,
  .reqs__grid,
  .safe__grid,
  .vgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .start3 {
    grid-template-columns: 1fr;
  }

  .parts__art {
    order: -1;
  }

  /* Stacked under the picture the parts don't move on by themselves (page.js):
     the list would change height under the reader's eyes. Tap one to open it. */
  .parts__pause {
    display: none;
  }

  /* One column: Juniper sits beside the heading, smaller, instead of under it. */
  .faq__side {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }

  .faq__pal {
    flex: none;
    width: 132px;
    margin-top: 0;
  }

  .faq__say {
    display: none;
  }

  .foot__brand p {
    margin-top: 14px;
  }
}

@media (max-width: 620px) {
  .pagenav {
    height: 56px;
  }

  .pagenav__get span {
    display: none;
  }

  .pagenav__get {
    width: 40px;
    padding: 0;
  }

  /* Closer together: on a phone the sections follow each other quickly. */
  .blk {
    --pad: 56px;
  }

  .vs,
  .safe__grid {
    grid-template-columns: 1fr;
  }

  .req {
    min-height: 0;
  }

  /* Why a browser, on a phone: the chatbot's three crosses say it without
     the drawing of windows; Apex's side keeps its demo. */
  div.vs__card {
    display: none;
  }

  .vs__card {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .vs__col .marksn {
    margin-top: 0;
  }

  .vs__col--yes .marksn {
    margin-top: 18px;
  }

  /* The three comparisons as one short list. */
  .vs__links {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 20px;
    background: var(--card);
    box-shadow: var(--ring);
  }

  .vs__links > li {
    padding: 14px 18px 10px;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .vs__links > li + li {
    border-top: 1px solid var(--line);
  }

  .vs__links h3 {
    font-size: 16.5px;
  }

  .vs__links p {
    display: none;
  }

  .vs__links .more {
    margin-top: 2px;
  }

  /* The mark beside the words, so four cards don't stretch the screen. */
  .safe__grid li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px;
  }

  .safe__grid .round {
    grid-row: span 2;
  }

  .safe__grid h3 {
    margin-top: 0;
  }

  .safe__grid p {
    margin-top: 4px;
  }

  .apps {
    height: 150px;
  }

  .apps__tile--d2 {
    display: none;
  }

  .works__steps {
    grid-template-columns: 1fr;
    justify-content: start;
    width: min(724px, 100%);
    margin-inline: auto;
  }

  .faq__pal {
    width: 96px;
  }

  .faq summary {
    padding: 16px 16px 16px 18px;
    font-size: 16px;
  }

  .faq details p {
    padding: 0 18px 18px;
  }

  /* Videos, real requests and the cast: one row each to swipe through, edge
     to edge, the next card showing at the side so it's clear there's more. */
  .vgrid,
  .reqs__grid,
  .crew__grid {
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    grid-template-columns: none;
    gap: 12px;
    margin-inline: calc(-1 * clamp(18px, 4vw, 40px));
    padding-inline: clamp(18px, 4vw, 40px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: clamp(18px, 4vw, 40px);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Room for the cards' shadows, which the scrolling would cut off. */
    padding-block: 4px 12px;
  }

  .vgrid::-webkit-scrollbar,
  .reqs__grid::-webkit-scrollbar,
  .crew__grid::-webkit-scrollbar {
    display: none;
  }

  .vcard,
  .reqs__grid > li,
  .crew__grid > li {
    scroll-snap-align: start;
  }

  /* What each section measures on a phone, as the first guess (see .blk). */
  .page > .works {
    contain-intrinsic-size: auto calc(915px - 2 * var(--pad));
  }

  .page > .reqs {
    contain-intrinsic-size: auto calc(738px - 2 * var(--pad));
  }

  .page > .vsec {
    contain-intrinsic-size: auto calc(1350px - 2 * var(--pad));
  }

  .page > .parts {
    contain-intrinsic-size: auto calc(1106px - 2 * var(--pad));
  }

  .page > .crew {
    contain-intrinsic-size: auto calc(800px - 2 * var(--pad));
  }

  .page > .safe {
    contain-intrinsic-size: auto calc(910px - 2 * var(--pad));
  }

  .page > .go {
    contain-intrinsic-size: auto calc(1262px - 2 * var(--pad));
  }

  .page > .qa {
    contain-intrinsic-size: auto calc(1413px - 2 * var(--pad));
  }

  .page > .last {
    contain-intrinsic-size: auto calc(645px - var(--top) - var(--pad));
  }

  .foot__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .frame__cast .pal:nth-child(n + 2) {
    display: none;
  }

  .last__keys .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marks__row,
  .apps__tile,
  .faq__say[data-new] {
    animation: none;
  }
}

/* ---- what makes the page Apex's own ---- */

/* A channel tag, like the set's display: the page carries on its channels.
   (.page .chtag: stronger than a section's own rules for its paragraphs.) */
.page .chtag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 5px 12px 4px 10px;
  border-radius: 9px;
  background: #1b1922;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  color: #b9a8ff;
  font: 400 18px/1 var(--pixel, 'VT323', ui-monospace, monospace);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(143, 116, 248, 0.6);
}

.chtag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #49e08e;
  box-shadow: 0 0 6px #49e08e;
}

/* The steps, numbered on the set's display. */
.lcdnum {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 9px 2px;
  border-radius: 7px;
  background: #1b1922;
  color: #b9a8ff;
  font: 400 22px/1 var(--pixel, 'VT323', ui-monospace, monospace);
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px rgba(143, 116, 248, 0.6);
}

/* Each companion card: the companion says its own line, in its speech bubble's face. */
.mate__say {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  max-width: 52%;
  padding: 7px 12px 8px;
  /* The tail in the corner nearest the companion, on the right. */
  border-radius: 14px 14px 4px 14px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 6px 14px -6px rgba(40, 30, 20, 0.25);
  color: var(--ink);
  font: 800 13.5px/1.25 var(--round, 'Nunito', system-ui, sans-serif);
}

/* What moves on its own stops while it is off screen (page.js sets data-off). */
[data-off] .marks__row,
[data-off] .apps__tile,
.apps[data-off] .apps__tile,
.askbox[data-off] [data-ask-text]::after {
  animation-play-state: paused;
}

@media (max-width: 620px) {
  .page .chtag {
    font-size: 16px;
  }

  .mate__say {
    max-width: 52%;
  }
}

/* ---- the logo (tools/build-logo.py): the word with the sprout on its A ---- */

.wordmark {
  display: block;
  flex: none;
}

/* The sprout rises above the letters, so the word itself sits a little low; lift it back to the line. */
.pagenav__home .wordmark {
  margin-top: -9px;
}
