/* Reach Studio experiment page (v2.html), loaded after tokens.css and styles.css. The page is the
   top bar and the sky hero for now; sections come back one at a time as they're decided.
   Rules in DESIGN.md under "Landing: Reach Studio experiment". */

/* ---------- Tokens ---------- */
:root {
  /* One family: Inter for headings too. */
  --font-heading: var(--font-body);
  --font-mono: var(--font-body);
  /* The headline's face (owner's pick, 2026-11-09): a thin, tight serif, the premium startup look. */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #0a0a0a;
  --text-muted: rgb(0 0 0 / 0.58);
  --line: rgb(0 0 0 / 0.08);
  --accent: #0d6dfc;
  --accent-fill: #0d6dfc;
  --tint: rgb(13 109 252 / 0.08);
  --live: #dc2626;
  --money: #16a34a;
  --shadow: 0 4px 16px -8px rgb(0 0 0 / 0.08);
  --sticker-line: rgb(0 0 0 / 0.08);
  /* Buttons on the sky are near-black: blue on blue disappears. */
  --ink-button: #0a0a0a;
  --ink-button-hover: #2a2a2a;

  /* The hero's painted sky, sampled from img/studio/sky.webp: top, middle, horizon. */
  --sky-top: #52b1fc;
  --sky-mid: #76c8fc;
  --sky-horizon: #a1defc;
  /* Quiet text over the sky: darker than --text-muted so it holds 4.5:1 on --sky-top. */
  --on-sky-muted: rgb(0 0 0 / 0.7);
  /* The footer's ground: the sky's blue at about 7%, nearly white. The ASCII meadow fades into it. */
  --footer-tint: #f1f8fe;
}

/* ---------- Top bar ---------- */
/* The current page's bar, unchanged (owner, 2026-11-10: "use the same exact code"): its markup, styles.css
   and nav.js. The bar, its menu and the phone drawer carry data-tokens="base", so they take tokens.css's
   values rather than this page's, and nothing here restyles them. Only the words and links are this page's: its
   Features rows are links rather than the current page's buttons, so they lose a link's underline. */
.menu-item { text-decoration: none; }

/* ---------- Type ---------- */
.text-display { font-weight: 600; letter-spacing: -0.035em; }
.btn-primary:not(.drawer *) { --slide-bg: #fff; --slide-ink: var(--ink-button); background: var(--ink-button); box-shadow: none; transition: background-color 0.2s ease, transform 0.15s ease; }
.btn-primary:not(.drawer *):hover { background: var(--ink-button-hover); }
/* The hero's Get started matches the bar's blue Contact button (owner, 2026-11-10). */
.studio-copy .btn-primary { --slide-ink: var(--accent-fill); background: var(--accent-fill); box-shadow: 0 10px 24px -12px var(--accent-fill); }
.studio-copy .btn-primary:hover { background: var(--accent-fill); }

/* ---------- Scene: the landscape behind the page ---------- */
/* Fixed behind everything: the sky, then the meadow hills. On scroll the sky drifts up a little and the
   meadow a bit more, both slower than the page; the hero's grass moves with the page. That difference in
   speed is the depth. It runs on the browser's scroll timeline, so no script and no main-thread work; where
   that isn't supported, and with reduced motion, the scene simply stays still. The meadow box runs past
   the bottom of the screen by as much as it rises, so its foot never shows. */
html { background: var(--sky-top); }
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.scene-sky, .scene-sky img { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 106%; object-fit: cover; object-position: 50% 60%; }
/* The clouds drift (a Kling loop of the sky layer) over the still once it plays. */
.scene-sky-video { opacity: 0; transition: opacity 0.8s ease; }
.scene-sky-video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .scene-sky-video { display: none; } }
.scene-meadow { position: absolute; left: 0; right: 0; bottom: calc(var(--meadow-rise) * -1); height: calc(clamp(260px, 30vw, 620px) + var(--meadow-rise)); --meadow-rise: 18vh; }
.scene-meadow img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scene-sky { animation: scene-sky linear both; animation-timeline: scroll(root); }
    /* Toward the end, while the footer's links scroll in at the foot of the sheet, the scene's meadow sinks
       away: by the time the sheet lifts off, only the pale cloudy sky is under it, and that sky runs straight
       into the ASCII footer's clouds. The footer's meadow is then the only ground. */
    body { timeline-scope: --footer-in; }
    .sf-inner { view-timeline-name: --footer-in; }
    .scene-meadow { animation: scene-meadow linear both, scene-meadow-out linear both; animation-timeline: scroll(root), --footer-in; animation-range: 0 120vh, entry 0% entry 100%; }
  }
}
@keyframes scene-sky { to { transform: translateY(-5%); } }
@keyframes scene-meadow { to { transform: translateY(calc(var(--meadow-rise) * -1)); } }
@keyframes scene-meadow-out { to { translate: 0 110%; } }
@media (max-width: 820px) {
  .scene-meadow { height: calc(40vh + var(--meadow-rise)); }
}

/* ---------- Hero: the painted sky ---------- */
/* Three layers: the sky (still, then the looping video over it), the Trending mock, and the grass
   ridge in front, so the page rises out of the meadow. */
body { background: transparent; }
.studio-hero { position: relative; overflow-x: clip; overflow-y: visible; min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: calc(96px + 7svh) var(--gutter) 0; }
.studio-sky, .studio-sky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.studio-sky-video { opacity: 0; transition: opacity 0.8s ease; }
.studio-sky-video.is-playing { opacity: 1; }
.studio-copy { position: relative; z-index: 1; max-width: 1400px; display: flex; flex-direction: column; align-items: center; gap: var(--space-5); text-align: center; }
.studio-title { margin: 0; font: 400 clamp(52px, 6vw, 108px) / 0.98 var(--font-display); letter-spacing: -0.025em; text-wrap: balance; }
.studio-copy p { margin: 0; max-width: 54ch; color: var(--on-sky-muted); text-wrap: balance; }
.studio-copy .ctas { margin-top: var(--space-2); }

/* The app window rises from the hero's foot. --s (set on the hero by app-window.js) scales the app's
   1440x900 pages to the window; --aw-h is the window's full height. The stage shows 86% of it and the
   rest runs past the hero's edge, behind the grass.
     Hovered: the window lifts 10px and the grass sinks 36px, so it rises toward you out of the meadow.
     In use (a page clicked): the stage opens to the whole window, the grass sinks away, and
     app-window.js scrolls the window into view. The ridge's crest sits a fixed 10%
   of the window above the hero's foot at rest; its centre crest is 13.8% of the screen's width above
   its own bottom, so on wide screens it slides down past the edge instead of climbing over the app. */
.studio-hero { --s: 0.78; --aw-bar: 38px; --aw-h: calc(var(--aw-bar) + 900px * var(--s)); --show: 0.86; --lift: 0px; --sink: 0px; }
.studio-hero.is-lifted { --lift: -10px; --sink: 36px; }
.studio-hero.is-using { --show: 1; --lift: 0px; --sink: 70%; }
.studio-copy { margin-bottom: var(--space-8); }
.studio-stage { position: relative; z-index: 1; overflow: clip; flex: none; width: min(1160px, 100%); height: calc(var(--aw-h) * var(--show)); margin-top: auto; transform: translateY(var(--lift)); transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.studio-hero.is-using .studio-stage { margin-bottom: 88px; }
.studio-ridge { --ridge-under: max(0px, calc(13.8vw - var(--aw-h) * 0.1)); position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(var(--ridge-under) * -1); pointer-events: none; transform: translateY(var(--sink)); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
/* Only the part of the grass below the hero's edge fades (into the meadow behind); above the edge it stays solid
   so it always covers the window's foot. */
.studio-ridge { -webkit-mask-image: linear-gradient(to top, transparent, #000 var(--ridge-under)); mask-image: linear-gradient(to top, transparent, #000 var(--ridge-under)); }
.studio-ridge img { width: 100%; height: auto; }
.studio-ridge-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.studio-ridge-video.is-playing { opacity: 1; }

/* Build-in, once on load, after a reference the owner picked: calm and one thing at a time, by fade and
   focus rather than slides. First the scene (studio.js: the clouds resolve out of soft pixels on the smooth
   sky, then the hills fade up), then the hero's grass, the bar, the headline word by word coming into focus,
   the intro and the button, and last the app rising gently from behind the grass. Everything is held
   (html.intro-hold) until the images are ready and the scene starts, so the two stay in step. */
@media (prefers-reduced-motion: no-preference) {
  .studio-ridge { animation: studio-fade 0.9s ease 0.95s backwards; }
  .site-header { animation: studio-focus 0.8s ease 1.15s backwards; }
  .studio-title .w { display: inline-block; vertical-align: top; }
  .studio-title .wi { display: inline-block; animation: studio-focus 0.9s ease backwards; animation-delay: calc(1.3s + var(--i) * 0.09s); }
  .studio-copy p { animation: studio-focus 0.9s ease 1.95s backwards; }
  .studio-copy .ctas { animation: studio-focus 0.9s ease 2.1s backwards; }
  .studio-stage .aw { animation: studio-emerge 1.7s cubic-bezier(0.16, 1, 0.3, 1) 2.15s backwards; }
}
@keyframes studio-fade { from { opacity: 0; } }
@keyframes studio-focus { from { opacity: 0; filter: blur(10px); } }
/* The app comes up solid from behind the grass, not fading, so it never shows the meadow through it. It
   starts wholly below the stage's clipped bottom edge (under the grass), so nothing shows before it moves. */
@keyframes studio-emerge { from { transform: translateY(100%); } }

/* The scene's canvas while it plays; the real images are hidden under it until it hands back. */
.intro .scene-clouds, .intro .scene-sky-video, .intro .scene-meadow { opacity: 0; }
/* Before studio.js splits the headline into words it would show whole for a moment; hold it hidden. */
.intro-hold .studio-title { visibility: hidden; }
/* Leaving (a reload): clear to the plain sky the next load starts from (the head's script). */
.leaving .scene-clouds, .leaving .scene-sky-video, .leaving .scene-meadow, .leaving .scene-pixels { opacity: 0; transition: none; }
.leaving body > :not(.scene) { visibility: hidden; }
.scene-pixels { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.5s ease; }
.intro-hold .site-header, .intro-hold .studio-title .wi, .intro-hold .studio-copy p, .intro-hold .studio-copy .ctas,
.intro-hold .studio-stage .aw, .intro-hold .studio-ridge { animation-play-state: paused; }

/* Phones: the mock is drawn half again as wide as the screen and cropped at the sides, so its feed
   stays large enough to read as a product rather than a thumbnail. */
@media (max-width: 520px) {
  .studio-hero { padding-top: calc(84px + 5svh); }
  .studio-copy { margin-bottom: var(--space-7); }
  .studio-stage { width: 150%; }
  .studio-hero.is-using .studio-stage { width: 100%; }
  /* The ridge at twice the screen's width, cropped, so its crest is tall enough to overlap the mock. */
  .studio-ridge { --ridge-under: 36px; }
  .studio-ridge img, .studio-ridge-video { width: 200%; max-width: none; margin-left: -50%; }
  .studio-ridge-video { left: 0; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-sky-video { display: none; }
}

/* ---------- The app window ---------- */
/* A plain app window: a bar with the address, then the app's pages at 1440x900, scaled. The poster
   (a still of Trending) shows until the pages load. Only the current page is visible and clickable. */
.aw { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 30px 80px -24px rgb(10 40 90 / 0.35); transition: box-shadow 0.9s ease; }
.studio-hero.is-lifted .aw, .studio-hero.is-using .aw { box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 40px 100px -24px rgb(10 40 90 / 0.45); }
.aw-bar { position: relative; display: flex; align-items: center; justify-content: center; height: var(--aw-bar); background: var(--bg); border-bottom: 1px solid var(--line); }
.aw-lights { position: absolute; left: 14px; display: flex; gap: 7px; }
.aw-lights i { width: 11px; height: 11px; border-radius: 50%; background: rgb(0 0 0 / 0.12); }
.aw-nav { position: absolute; left: 76px; display: flex; gap: 2px; }
.aw-nav button { display: flex; align-items: center; gap: 2px; min-width: 26px; height: 26px; padding: 0 4px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); cursor: pointer; }
.aw-nav button:hover:not(:disabled) { background: rgb(0 0 0 / 0.05); }
.aw-nav button:disabled { color: rgb(0 0 0 / 0.25); cursor: default; }
.aw-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.aw-nav [data-aw-back-label] { padding-right: 4px; font: 500 12px / 1 var(--font-body); }
.aw-nav [data-aw-back-label]:empty { display: none; }
.aw-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aw-wait { position: absolute; inset: 0; z-index: 1; }
.aw-wait img { width: 100%; height: 100%; object-fit: cover; object-position: top left; filter: saturate(0.85); }
.aw-wait span { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; padding: 7px 14px; border-radius: var(--radius-pill); background: rgb(10 10 10 / 0.78); color: #fff; font: 500 13px / 1 var(--font-body); }
@media (prefers-reduced-motion: no-preference) { .aw-wait span { animation: aw-breathe 1.6s ease-in-out infinite alternate; } }
@keyframes aw-breathe { to { opacity: 0.55; } }
.aw-url { padding: 4px 14px; border-radius: var(--radius-pill); background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--text-muted); font: 500 12px / 1.2 var(--font-body); }
.aw-view { position: relative; height: calc(900px * var(--s)); overflow: hidden; background: var(--surface); }
.aw-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.aw-view iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
.aw-view iframe.is-on { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
/* The page most likely next is kept drawn (still invisible), so showing it costs no first paint. */
.aw-view iframe.is-next { visibility: visible; transition: none; }
.aw-view iframe:not(.is-on) { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .studio-stage, .studio-ridge, .aw, .aw-view iframe { transition: none; }
}

/* ---------- Sections below the hero ---------- */
/* Section headings use the headline's serif, a step smaller. */
.studio-h2 { margin: 0; font: 400 clamp(38px, 4.4vw, 64px) / 1.02 var(--font-display); letter-spacing: -0.025em; text-wrap: balance; }

/* The sheet: everything after the hero, on one white page laid over the scene. It overlaps the hero's grass,
   with rounded corners and a soft shadow so it reads as lifted off the landscape; the scene shows in a thin
   margin down its sides. */
.sheet { position: relative; z-index: 3; margin: -48px clamp(10px, 1.6vw, 24px) 0; border-radius: 32px; background: var(--surface);
  /* A soft, deep shadow cast up onto the grass (green-dark, as a shadow on grass is), so the sheet reads as lifted off the meadow. */
  box-shadow: 0 -10px 24px -14px rgb(18 46 14 / 0.38), 0 -40px 90px -30px rgb(18 46 14 / 0.32), 0 40px 80px -40px rgb(10 40 90 / 0.4); }
/* The grass tips cross the sheet's top edge: the strip's tips rise a little above it and the blades lie over
   the white, fading out. They sway with the meadow (a slow, small lean from their foot). */
.sheet-fringe { position: absolute; z-index: 1; left: 0; right: 0; top: -6px; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.sheet-fringe img { display: block; width: 100%; height: auto; transform-origin: 50% 0; }
@media (prefers-reduced-motion: no-preference) { .sheet-fringe img { animation: fringe-sway 6s ease-in-out infinite alternate; } }
@keyframes fringe-sway { from { transform: skewX(-1.2deg); } to { transform: skewX(1.2deg); } }
@media (max-width: 520px) { .sheet { border-radius: 24px; margin-top: -36px; } .sheet-fringe { top: -3px; } }

/* ---------- Features: the Bento and the Showcase ---------- */
/* Two sections at the top of the sheet (owner's pick, 2026-11-10; mockups in lab/features/). The Bento lays out
   every feature; the Showcase walks one clip through the Twitch automation. Each card draws a small piece of the
   real app at real size (features.js), never a shrunken screenshot. Rules in DESIGN.md under Features. */
/* ---------- Section head (shared) ---------- */
.ft { padding: var(--space-10) var(--gutter); }
.ft-head { max-width: 760px; margin: 0 auto var(--space-9); display: grid; gap: var(--space-4); text-align: center; }
.ft-head p { margin: 0; color: var(--text-muted); }
.ft-inner { max-width: 1160px; margin: 0 auto; }

/* A card's words: the name and one line under it. */
.ft-name { margin: 0; font: 600 18px / 1.3 var(--font-body); letter-spacing: -0.01em; }
.ft-line { margin: var(--space-2) 0 0; max-width: 44ch; color: var(--text-muted); font: 400 15px / 1.5 var(--font-body); }

@media (max-width: 520px) {
  .ft { padding: var(--space-9) var(--gutter); }
  .ft-head { margin-bottom: var(--space-7); }
}

/* The Bento, Full bleed (owner's pick of round 3, 2026-11-10; lab/features/r3-a.html): one sentence per card, then a
   large piece of the app that runs off the card's edge. Its pieces are the p-* classes, drawn by features.js. */
.r3 { --card-r: 28px; --pad: 32px; }
.r3 .ft-inner { max-width: 1180px; }
.r3-grid { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.s4 { grid-column: span 4; } .s3 { grid-column: span 3; } .s2 { grid-column: span 2; }
.h1 { height: 500px; } .h2 { height: 480px; } .h3 { height: 420px; }

/* A card: one sentence on top (the name in ink, the rest quieter), then a large piece of the app that runs
   off the card's edge, like a window into the real thing. */
.fc { position: relative; isolation: isolate; display: flex; flex-direction: column; border-radius: var(--card-r); background: var(--bg); overflow: hidden; }
.fc-copy { position: relative; z-index: 2; margin: 0; padding: var(--pad) var(--pad) 0; max-width: 36ch; color: var(--text-muted); font: 500 19px / 1.38 var(--font-body); letter-spacing: -0.012em; text-wrap: pretty; }
.fc-copy b { color: var(--text); font-weight: 600; }
.fc-ed .fc-copy { max-width: 40ch; }
.fc-hint { display: block; margin-top: 10px; color: var(--text-muted); font: 400 14px / 1.4 var(--font-body); letter-spacing: 0; }
.fc-stage { position: relative; flex: 1; min-height: 280px; margin-top: 24px; }
.fc-stage > [data-p] { position: absolute; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fc:hover .fc-stage > [data-p] { transform: translateY(-4px); }

/* The dark card: Multiview's streams look best on black, and one dark card gives the grid a rhythm. */
.fc-dark { background: var(--ink-button); }
.fc-dark .fc-copy { color: rgb(255 255 255 / 0.62); }
.fc-dark .fc-copy b { color: #fff; }
.fc-dark .fc-hint { color: rgb(255 255 255 / 0.62); }

/* Where each piece sits. */
.fc-alert [data-p="alerts"] { left: 24px; right: 24px; top: 4px; }
.fc-ed [data-p="phone"] { left: 56px; top: 0; width: 220px; }
.fc-ed [data-p="script"] { left: 316px; right: var(--pad); top: 0; }
.fc-post [data-p="post"] { left: var(--pad); right: var(--pad); top: 0; }
.fc-auto [data-p="auto"] { left: var(--pad); right: var(--pad); top: 0; bottom: var(--pad); }

/* ---------- Pieces of the app ---------- */
.p-panel { background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04), 0 24px 48px -24px rgb(10 20 40 / 0.28); color: var(--text); font-family: var(--font-body); }
.p-av { width: 20px; height: 20px; flex: none; border-radius: 50%; object-fit: cover; }
.p-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 10px; font: 600 15px / 1 var(--font-body); }
.p-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: var(--bg); }
.p-seg button { height: 26px; padding: 0 11px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--text-muted); font: 500 13px / 1 var(--font-body); cursor: default; }
.p-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / 0.06); }
.p-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* The burst: clips a minute on Clix's channel over the last 24 minutes. */
.p-burst { padding: 18px 18px 14px; }
.p-burst-who { display: flex; align-items: center; gap: 8px; font: 600 14px / 1 var(--font-body); }
.p-big { margin: 16px 0 0; font: 400 64px / 0.9 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.p-big-sub { margin: 6px 0 0; color: var(--text-muted); font: 400 13px / 1.35 var(--font-body); }
.p-bars { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 96px; margin-top: 18px; }
.p-bars::before { content: ""; position: absolute; left: 0; right: 0; bottom: var(--usual, 14px); border-top: 1px dashed rgb(0 0 0 / 0.25); }
.p-bars i { flex: 1; height: var(--h); min-height: 3px; border-radius: 3px; background: rgb(0 0 0 / 0.13); transform-origin: bottom; }
.p-bars i.hot { background: var(--accent-fill); transition: height 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.p-axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--text-muted); font: 400 11px / 1 var(--font-body); }

/* Alerts: the bell, alive (owner's pick, 2026-11-10; lab/features/alerts-b2.html). The browser notification lands
   while Reach is in the background, Reach comes forward with the new row on top, and Clip it marks it read. Ink only:
   blue for the new row's dot and tint, red only for LIVE, as the app's bell. */
.pb { position: relative; height: 300px; container-type: inline-size; color: var(--text); font-family: var(--font-body); }
.pb-ic { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pb-zap { width: 10px; height: 10px; fill: currentColor; stroke: none; }
.pb-panel { position: relative; height: 100%; padding: 4px 0 6px; overflow: hidden; transition: filter 0.6s ease, opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pb.away .pb-panel { filter: blur(5px) saturate(0.6); opacity: 0.55; }
.pb-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 10px; }
.pb-head b { font: 600 15px / 1 var(--font-body); }
.pb-head span { display: flex; gap: 14px; color: var(--text-muted); }
.pb-tabs { display: grid; grid-template-columns: 1fr 1.5fr 1fr 1fr; gap: 2px; margin: 0 12px; padding: 3px; border-radius: var(--radius-pill); background: var(--bg); }
.pb-tabs span { min-width: 0; height: 26px; display: flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; border-radius: var(--radius-pill); color: var(--text-muted); font: 500 12.5px / 1 var(--font-body); }
.pb-tabs [aria-current] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / 0.06); }
.pb-count { color: var(--text-muted); font: 600 11px / 1 var(--font-body); font-style: normal; font-variant-numeric: tabular-nums; transition: opacity 0.3s ease; }
.pb-count[hidden] { display: inline; opacity: 0; }
.pb-group { margin: 12px 16px 6px; color: var(--text-muted); font: 500 12px / 1 var(--font-body); }
.pb-slot { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease; }
.pb-slot.in, .pb-slot.out { grid-template-rows: 0fr; opacity: 0; }
.pb-row { position: relative; min-height: 0; overflow: hidden; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0 6px; padding: 10px 10px 12px; border-radius: 14px; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), background 1.6s ease 0.5s; }
.pb-slot.in > .pb-row { transform: translateY(-8px); }
.pb-row > * { transition: opacity 0.35s ease 0.25s; }
.pb-slot.in > .pb-row > * { opacity: 0; transition-delay: 0s; }
.pb-row.new { background: var(--bg); }
.pb-slot.in > .pb-row.new { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.pb-row.read { background: none; transition-delay: 0s; }
.pb-face { position: relative; width: 40px; height: 40px; }
.pb-face img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; transition: opacity 0.4s ease; }
.pb-face em { position: absolute; left: 50%; top: -7px; transform: translateX(-50%); padding: 1px 4px; border-radius: 4px; background: var(--ink-button); box-shadow: 0 0 0 2px var(--surface); color: #fff; font: 700 8.5px / 1.2 var(--font-body); font-style: normal; letter-spacing: 0.02em; }
.pb-face i { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); color: var(--text-muted); box-shadow: 0 0 0 2px var(--surface); }
.pb-words p { margin: 0; font: 400 14px / 1.3 var(--font-body); transition: color 0.4s ease; }
.pb-words b { font-weight: 600; }
.pb-words span { display: block; margin-top: 2px; color: var(--text-muted); font: 400 12.5px / 1.3 var(--font-body); }
.pb-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / 0.06); font: 600 13px / 1 var(--font-body); white-space: nowrap; transition: background 0.4s ease, box-shadow 0.4s ease, color 0.4s ease, transform 0.15s ease, opacity 0.35s ease 0.25s; }
.pb-btn.press { transform: scale(0.94); }
.pb-dot { position: absolute; left: 2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent-fill); transition: opacity 0.4s ease; }
.pb-row.read .pb-face img { opacity: 0.7; }
.pb-row.read .pb-words p { color: var(--text-muted); }
.pb-row.read .pb-words b { font-weight: 500; }
.pb-row.read .pb-btn { background: none; box-shadow: none; color: var(--text-muted); }
.pb-row.read .pb-dot { opacity: 0; }
/* The browser notification, as Windows and macOS draw a site's. */
.pb-toast { position: absolute; left: 6px; right: 6px; top: 52px; z-index: 3; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 14px 13px; border-radius: 18px; background: rgb(255 255 255 / 0.86); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.07), 0 2px 4px rgb(0 0 0 / 0.04), 0 28px 56px -26px rgb(10 20 40 / 0.4); opacity: 0; transform: translateY(-22px) scale(0.97); pointer-events: none; transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pb-toast.show { opacity: 1; transform: none; }
.pb-toast.press { transform: scale(0.975); transition-duration: 0.15s; }
.pb-toast img { width: 40px; height: 40px; border-radius: 10px; }
.pb-toast div { min-width: 0; }
.pb-toast b { display: block; font: 600 14.5px / 1.25 var(--font-body); letter-spacing: -0.006em; }
.pb-toast span { display: block; margin-top: 2px; font: 400 13.5px / 1.35 var(--font-body); text-wrap: pretty; }
.pb-toast small, .pb-toast time { display: block; margin-top: 3px; color: var(--text-muted); font: 400 12px / 1.3 var(--font-body); }
.pb-toast time { margin-top: 0; }
.pb-cursor { position: absolute; left: 0; top: 0; z-index: 4; width: 20px; height: 20px; margin: -3px 0 0 -5px; fill: var(--text); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.25)); transition: transform 0.8s cubic-bezier(0.45, 0, 0.2, 1); pointer-events: none; }
.pb-cursor.press { scale: 0.85; }
@media (prefers-reduced-motion: reduce) { .pb-cursor { display: none; } }
/* Narrow cards (windows about 960-1100px wide): Clip it keeps its scissors only, so the words never break. */
@container (max-width: 300px) {
  .pb-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; padding: 9px 8px 11px; }
  .pb-face, .pb-face img { width: 34px; height: 34px; }
  .pb-words p { font-size: 13px; }
  .pb-words span { font-size: 12px; }
  .pb-btn { width: 30px; padding: 0; justify-content: center; gap: 0; font-size: 0; }
  .pb-tabs span { font-size: 12px; }
}
.p-faces { display: flex; flex: none; }
.p-faces img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface); }
.p-faces img + img { margin-left: -8px; }

/* Video tiles: the Multiview streams. */
.p-tile { position: relative; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: #000; font: inherit; color: inherit; cursor: default; }
.p-tile.big { grid-column: 1 / -1; box-shadow: 0 0 0 2px var(--accent-fill); }
.p-tile > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 6s ease; }
.p-tile.big > img { transform: scale(1.04); }
.p-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 8px; background: rgb(10 10 10 / 0.72); color: #fff; font: 600 13px / 1 var(--font-body); white-space: nowrap; }
.p-tile .p-name { left: 8px; bottom: 8px; }
.p-tile:not(.big) .p-name { height: 22px; padding: 0 7px; font-size: 12px; left: 6px; bottom: 6px; }
.p-tile:not(.big) .p-av { width: 14px; height: 14px; }
.p-flag { left: 8px; top: 8px; background: var(--accent-fill); }
.p-clip { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--accent-fill); color: #fff; font: 600 14px / 1 var(--font-body); }
.p-tile:not(.big) .p-flag, .p-tile:not(.big) .p-clip { display: none; }
.p-ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Editor: the 9:16 phone and its captions. */
.p-phone { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #000; box-shadow: 0 0 0 6px #0a0a0a, 0 40px 70px -30px rgb(10 20 40 / 0.55); }
.p-phone .cam, .p-phone .game { position: absolute; left: 0; right: 0; overflow: hidden; }
.p-phone .cam { top: 0; height: 38%; } .p-phone .game { top: 38%; bottom: 0; }
.p-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-cap { position: absolute; left: 10px; right: 10px; top: 33%; text-align: center; color: #fff; font: 800 21px / 1.1 var(--font-body); text-transform: uppercase; letter-spacing: -0.01em; -webkit-text-stroke: 4px #000; paint-order: stroke fill; }
.p-cap .on { color: #ffd84d; }
.p-cap[data-style="boxed"] { -webkit-text-stroke: 0; }
.p-cap[data-style="boxed"] span { padding: 0 3px; }
.p-cap[data-style="boxed"] .on { color: #000; background: #fff; border-radius: 4px; }
.p-cap[data-style="plain"] { text-transform: none; font-weight: 700; -webkit-text-stroke: 3px rgb(0 0 0 / 0.8); }
.p-cap[data-style="plain"] .on { color: #fff; }

/* Schedule: one clip, three accounts, each status arriving in turn. */
.p-post-clip { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 16px; }
.p-post-clip img { width: 46px; height: 82px; object-fit: cover; border-radius: 7px; }
.p-post-clip b { display: block; font: 600 15px / 1.3 var(--font-body); }
.p-post-clip span { display: block; margin-top: 3px; color: var(--text-muted); font: 400 13px / 1.3 var(--font-body); }
.p-dest { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; box-shadow: inset 0 1px 0 var(--line); font: 500 15px / 1.2 var(--font-body); }
.p-dest .p-plat { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--bg); fill: currentColor; }
.p-dest em { font-style: normal; color: var(--text-muted); font-size: 14px; white-space: nowrap; transition: color 0.2s ease; }
.p-dest em.done { color: var(--text); font-weight: 600; }
.p-dest em .p-spin { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 50%; border: 2px solid rgb(0 0 0 / 0.15); border-top-color: var(--text); animation: p-spin 0.8s linear infinite; }
@keyframes p-spin { to { transform: rotate(360deg); } }
.p-post-btn { margin-left: auto; height: 32px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: var(--accent-fill); color: #fff; font: 600 14px / 1 var(--font-body); cursor: pointer; }
.p-post-btn[disabled] { opacity: 0.5; cursor: default; }

/* Automations: the switch, then the four steps lighting in turn. */
/* Automations: one click on Twitch to a scheduled post (owner's pick F, lab/features/automations-f.html). Kai Cenat's stream is
   clipped; Reach boxes the face cam and the gameplay, both fly into a 9:16 stack with the title; a schedule sheet takes it. */
.af { display: flex; flex-direction: column; font-family: var(--font-body); color: var(--text); }
.af-stage { position: relative; flex: 1; min-height: 0; }
.af-frame { position: absolute; overflow: hidden; border-radius: 14px; background: var(--ink-button); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), 0 24px 48px -24px rgb(10 20 40 / 0.45); }
.af-frame, .af-pane, .af-box, .af-frame video { transition: left 1s cubic-bezier(0.65, 0, 0.25, 1), top 1s cubic-bezier(0.65, 0, 0.25, 1), width 1s cubic-bezier(0.65, 0, 0.25, 1), height 1s cubic-bezier(0.65, 0, 0.25, 1), opacity 0.5s ease, border-radius 1s ease; }
.af-src, .af-pane { position: absolute; overflow: hidden; }
.af-src { inset: 0; }
.af-frame video { position: absolute; max-width: none; object-fit: cover; }
.af-pane { opacity: 0; }
.af[data-s="stack"] .af-pane, .af[data-s="titled"] .af-pane, .af[data-s="sched"] .af-pane { opacity: 1; }
.af[data-s="stack"] .af-src, .af[data-s="titled"] .af-src, .af[data-s="sched"] .af-src { opacity: 0; transition: opacity 0.3s ease 0.2s; }
.af:is([data-s="stack"], [data-s="titled"], [data-s="sched"]) .af-frame { border-radius: 16px; }
.af-cam { box-shadow: 0 1px 0 rgb(255 255 255 / 0.5); z-index: 1; }

/* What Reach finds: a solid white box on the cam, then a dashed one on the part of the game it keeps. */
.af-box { position: absolute; z-index: 2; border-radius: 6px; opacity: 0; pointer-events: none; }
.af-box-cam { box-shadow: inset 0 0 0 2px #fff, 0 0 0 999px rgb(0 0 0 / 0); }
.af-box-game { border: 2px dashed rgb(255 255 255 / 0.9); }
.af-box em { position: absolute; left: 6px; top: 6px; padding: 3px 7px; border-radius: 6px; background: #fff; color: #000; font: 600 11px / 1 var(--font-body); font-style: normal; white-space: nowrap; }
.af[data-s="cam"] .af-box-cam, .af[data-s="game"] .af-box-cam, .af[data-s="game"] .af-box-game { opacity: 1; }
.af[data-s="game"] .af-box-cam em { opacity: 0; }

.af-title { position: absolute; z-index: 3; left: 8px; right: 8px; top: calc(40% - 14px); padding: 6px 6px; border-radius: 7px; background: #fff; color: #000; text-align: center; font: 800 12px / 1.15 var(--font-body); opacity: 0; transform: translateY(-6px) scale(0.92); transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.af:is([data-s="titled"], [data-s="sched"]) .af-title { opacity: 1; transform: none; }

.af-clip { position: absolute; z-index: 3; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); background: rgb(255 255 255 / 0.95); color: #000; font: 600 13px / 1 var(--font-body); box-shadow: 0 2px 6px rgb(0 0 0 / 0.25); transition: transform 0.15s ease, opacity 0.3s ease; }
.af-clip .p-ic { width: 13px; height: 13px; }
.af.press .af-clip { transform: scale(0.9); }
.af:not([data-s="clip"]):not([data-s="made"]) .af-clip { opacity: 0; }
.af-flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.af.press .af-flash { opacity: 0.6; transition-duration: 0.05s; }
.af-toast { position: absolute; left: 50%; top: 0; z-index: 5; transform: translate(-50%, -6px); display: inline-flex; gap: 6px; align-items: center; height: 32px; padding: 0 12px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 14px 30px -14px rgb(10 20 40 / 0.4); color: var(--text-muted); font: 400 12.5px / 1 var(--font-body); white-space: nowrap; opacity: 0; transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.af-toast b { color: var(--text); font-weight: 600; }
.af[data-s="made"] .af-toast { opacity: 1; transform: translate(-50%, 0); }

/* The schedule sheet: it takes the clip once it's made. */
.af-sheet { position: absolute; top: 50%; left: var(--sheet-x, 50%); right: 0; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 24px 48px -24px rgb(10 20 40 / 0.35); opacity: 0; transform: translate(16px, -50%); transition: opacity 0.45s ease 0.35s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s; }
.af[data-s="sched"] .af-sheet { opacity: 1; transform: translate(0, -50%); }
.af-when { margin: 0; font: 600 17px / 1.2 var(--font-body); letter-spacing: -0.015em; }
.af-when small { display: block; margin-bottom: 3px; color: var(--text-muted); font: 500 12px / 1.2 var(--font-body); letter-spacing: 0; }
.af-heads { display: flex; align-items: center; gap: 6px; margin: 8px 0 10px; color: var(--text-muted); font: 400 12px / 1.3 var(--font-body); font-variant-numeric: tabular-nums; }
.af-heads .p-ic { width: 13px; height: 13px; }
.af-acct { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 8px 0; box-shadow: inset 0 1px 0 var(--line); }
.af-acct svg { width: 16px; height: 16px; fill: var(--text); grid-row: span 2; }
.af-acct b { font: 600 12.5px / 1.25 var(--font-body); white-space: nowrap; }
.af-acct em { color: var(--text-muted); font: 400 12px / 1.25 var(--font-body); font-style: normal; transition: color 0.3s ease; }
.af-acct em.done { color: var(--text); font-weight: 600; }

.af-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; padding: 0; counter-reset: af; }
.af-steps li { counter-increment: af; padding-top: 10px; box-shadow: inset 0 2px 0 rgb(0 0 0 / 0.1); color: var(--text-muted); font: 500 14px / 1.3 var(--font-body); white-space: nowrap; transition: color 0.4s ease, box-shadow 0.4s ease; }
.af-steps li::before { content: counter(af) ". "; }
.af-steps li.on { color: var(--text); box-shadow: inset 0 2px 0 var(--text); }
@media (prefers-reduced-motion: reduce) { .af * { transition: none !important; } }
@media (max-width: 360px) { .af-steps li, .af-heads { white-space: normal; } .af-when { font-size: 14px; } }

/* ---------- Entrance: the cards rise in, one after another, the first time they're seen ---------- */
@media (prefers-reduced-motion: no-preference) {
  .r3.js .fc { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
  .r3.js .fc.in { opacity: 1; transform: none; }
  .p-row.arrive { animation: p-arrive 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
}
@keyframes p-arrive { from { opacity: 0; transform: translateY(-16px); } }
@keyframes p-drop { from { opacity: 0; transform: translateY(-20px) scale(0.97); } }

/* The horizon (owner's pick, 2026-11-10): each light card fades into the hero's painted sky toward its foot, every
   card a slice of one painting lined up across the grid (features.js sets --gw/--gh/--bx/--by). Same file as the
   scene behind the page, so no extra download. */
.r3 .fc:not(.fc-dark)::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/studio/sky-only.webp") no-repeat; background-size: var(--gw, 1600px) var(--gh, 900px); background-position: calc(var(--bx, 0px) * -1) calc(var(--by, 0px) * -1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, rgb(0 0 0 / 0.85) 100%); mask-image: linear-gradient(to bottom, transparent 30%, rgb(0 0 0 / 0.85) 100%); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .fc-ed [data-p="phone"] { left: 32px; width: 190px; }
  .fc-ed [data-p="script"] { left: 254px; }
}
@media (max-width: 960px) {
  .r3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s4 { grid-column: 1 / -1; } .s3, .s2 { grid-column: span 1; }
}
@media (max-width: 640px) {
  .r3 { --pad: 20px; --card-r: 24px; }
  .r3-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .s4, .s3, .s2 { grid-column: auto; }
  .h1, .h2, .h3 { height: auto; }
  .fc-copy { font-size: 17px; }
  .fc-stage { height: 340px; min-height: 0; flex: none; }
  /* The list-like pieces flow at their own height on phones, so nothing is cut and no band is left empty. */
  .fc-alert .fc-stage, .fc-post .fc-stage { height: auto; padding: 0 12px 12px; }
  .fc-alert .fc-stage > [data-p], .fc-post .fc-stage > [data-p] { position: relative; left: auto; right: auto; top: auto; }
  .fc-auto .fc-stage { height: 350px; }
  .fc-auto [data-p="auto"] { left: 16px; right: 16px; bottom: 18px; }
  .af-steps li { font-size: 13px; }
  .af-sheet { padding: 12px; }
  .af-when { font-size: 15px; }
  .af-heads { font-size: 11.5px; white-space: nowrap; }
  .fc-mv .fc-stage { height: 270px; }
  .fc-mv [data-p="mv"] { left: 12px; right: 12px; }
  .fc-ed [data-p="phone"] { left: 50%; width: 200px; margin-left: -100px; top: 0; }
  .fc-ed [data-p="script"] { display: none; }
}

/* The Bento, round 4 (owner's pick, 2026-11-10; lab/features/r4.html): real footage, Trending as the lead card,
   nothing cut off, motion that plays once. Overrides the Full bleed rules above. */
.r4 .ft-head p { text-wrap: balance; }
.r4 .r3-grid { gap: 16px; }
.r4 .fc-copy { max-width: 32ch; }

/* ---------- Row 1: Trending leads, the full width ---------- */
.fc-lead { grid-column: 1 / -1; height: 560px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.fc-lead .fc-left { display: flex; flex-direction: column; min-width: 0; }
.fc-lead .fc-copy { font-size: 24px; line-height: 1.32; letter-spacing: -0.018em; max-width: 22ch; padding: 40px 40px 0; }
.fc-lead [data-p="burst"] { margin: auto 40px 40px; width: auto; max-width: 380px; }
.fc-lead .fc-right { position: relative; min-width: 0; }

/* The moment: real footage, big, with only what Trending shows: when, how fast, and the button. */
.m-card { position: absolute; left: 0; right: 40px; top: 40px; isolation: isolate; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0b0b0c; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 40px 80px -36px rgb(10 20 40 / 0.55); z-index: 2; }
.m-card > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.m-shade { position: absolute; inset: auto 0 0 0; height: 58%; background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / 0.55) 45%, rgb(0 0 0 / 0.86)); }
.m-top { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; gap: 8px; }
.m-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 9px; background: rgb(10 10 10 / 0.66); color: #fff; font: 600 14px / 1 var(--font-body); white-space: nowrap; }
.m-chip.now { background: var(--accent-fill); }
.m-foot { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 16px; color: #fff; }
.m-who { display: flex; align-items: center; gap: 8px; font: 600 16px / 1.2 var(--font-body); }
.m-who img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.9); }
.m-sig { margin: 6px 0 0; color: rgb(255 255 255 / 0.85); font: 500 14px / 1.3 var(--font-body); font-variant-numeric: tabular-nums; }
.m-sig b { color: #fff; font-weight: 700; }
.m-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: var(--radius-pill); background: var(--accent-fill); color: #fff; font: 600 15px / 1 var(--font-body); white-space: nowrap; flex: none; }
.m-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The moment before it, eight minutes older, tucked behind: Trending is a feed. */
.m-prev { position: absolute; right: 0; top: 96px; width: 46%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; z-index: 1; opacity: 0.9; box-shadow: 0 30px 60px -30px rgb(10 20 40 / 0.5); transform: translateY(var(--prev-y, 250px)); }
.m-prev img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.85); }
.m-prev .m-chip { position: absolute; left: 10px; top: 10px; height: 26px; font-size: 13px; }

/* The burst, quieter here: the big 5× and the bars, no panel noise. */
.fc-lead .p-burst { padding: 20px 22px 16px; }
.fc-lead .p-big { margin-top: 10px; font-size: 72px; }
.fc-lead .p-bars { height: 60px; margin-top: 14px; }
.fc-lead .p-big-sub { max-width: 30ch; }

/* ---------- Rows 2 and 3 ---------- */
.r4 .row2 { height: 460px; }
.r4 .row3 { height: 500px; }
.fc-alert [data-p="alerts"] { top: 0; }
.fc-mv [data-p="mv"] { left: 24px; right: 24px; top: 0; bottom: 24px; }
.fc-auto [data-p="auto"] { left: 24px; right: 24px; top: 0; bottom: 24px; }
.fc-post [data-p="post"] { left: 24px; right: 24px; top: 0; }

/* Multiview: Lacy and Marlon's co-stream side by side, both chats in one feed under them, as the app's "All chats"
   (each line starts with the picture of the channel it came from). Newest at the bottom; older lines fade under the head. */
.p-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.p-co { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.p-co-streams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; flex: none; }
.p-co-chat { display: flex; flex-direction: column; min-height: 0; flex: 1; border-top: 1px solid var(--line); }
.p-co-head { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; flex: none; border-bottom: 1px solid var(--line); color: var(--text); font: 600 13px / 1 var(--font-body); }
.p-co-head svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
.p-co-list { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; flex: 1; margin: 0; padding: 4px 0 8px; list-style: none; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px); }
.p-co-line { padding: 3px 14px; color: var(--text); font: 400 13px / 20px var(--font-body); overflow-wrap: anywhere; }
.p-co-line img { display: inline-block; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; object-fit: cover; vertical-align: -4px; }
.p-co-line b { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .p-co-line.new { animation: p-co-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
  @keyframes p-co-in { from { opacity: 0; transform: translateY(6px); } }
}
@media (max-width: 640px) { .fc-mv .fc-stage > [data-p="mv"] { bottom: auto; height: 360px; } }

/* The phone plays the real stack. */
.p-phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.p-phone .p-cap { top: 28%; }

/* Nothing is cut off: lines wrap instead of ending in "…". */
.r4 .p-sig, .r4 .p-title { white-space: normal; overflow: visible; text-overflow: clip; }

/* Steps that have played stay in ink; only the ones still to come are quiet. */

/* ---------- Played once, as each card arrives ---------- */
@media (prefers-reduced-motion: no-preference) {
  .r4.js .m-card { transform: translateY(-24px); opacity: 0; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s, opacity 0.6s ease 0.25s; }
  .r4.js .fc-lead.in .m-card { transform: none; opacity: 1; }
  .r4.js .m-prev { transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s; }
  .r4.js .fc-lead:not(.in) .m-prev { --prev-y: 120px; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .fc-lead .fc-copy { font-size: 21px; padding: 32px 32px 0; }
  .fc-lead [data-p="burst"] { margin: auto 32px 32px; }
}
@media (max-width: 960px) {
  .fc-lead { height: auto; grid-template-columns: minmax(0, 1fr); }
  .fc-lead [data-p="burst"] { display: none; }
  .fc-lead .fc-right { height: 420px; }
  .m-card { left: 32px; right: 32px; top: 24px; }
  .m-prev { display: none; }
  .r4 .row2, .r4 .row3 { height: 460px; }
}
@media (max-width: 640px) {
  .fc-lead .fc-copy { font-size: 19px; padding: 20px 20px 0; }
  .fc-lead .fc-right { height: auto; padding: 20px 12px 12px; }
  /* On a phone the video stays clear: its words and button sit in a dark strip under it. */
  .m-card { position: relative; left: auto; right: auto; top: auto; aspect-ratio: auto; display: flex; flex-direction: column; }
  .m-card > video { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; }
  .m-shade { display: none; }
  .m-foot { position: static; padding: 12px 14px 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .m-btn { height: 34px; font-size: 14px; }
  .r4 .row2, .r4 .row3 { height: auto; }
  .fc-mv .fc-stage { height: auto; padding: 0 12px 12px; }
  .fc-mv .fc-stage > [data-p] { position: relative; left: auto; right: auto; top: auto; }
  .r4 .fc-ed .fc-stage { height: 360px; }
}

/* The Bento's lead card, round 5 (owner's pick, 2026-11-10; lab/features/r5.html): Trending said so a new user
   gets it, around Lacy's viral clip. Overrides the round 4 lead card above. */
/* The chart says what it counts, where the usual is, and what now is. */
.p-burst.r5 .p-burst-who { font-weight: 500; color: var(--text-muted); }
.p-burst.r5 .p-burst-who img { opacity: 1; }
.p-burst.r5 .p-big { display: flex; align-items: baseline; gap: 10px; }
.p-burst.r5 .p-big span { color: var(--text-muted); font: 500 16px / 1 var(--font-body); letter-spacing: 0; }
.p-burst.r5 .p-bars { height: 76px; margin-top: 30px; --usual: 10px; }
.p-burst.r5 .p-bars::before { bottom: 10px; }
.p-usual { position: absolute; left: 0; bottom: 14px; padding-right: 6px; background: var(--surface); color: var(--text-muted); font: 500 11px / 1 var(--font-body); }
.p-bars i.hot { position: relative; }
.p-bars i.hot em { position: absolute; right: 0; bottom: calc(100% + 6px); color: var(--text); font: 600 12px / 1 var(--font-body); font-style: normal; white-space: nowrap; }
.fc-lead.r5-lead .p-bars { height: 76px; }

/* The moment before it: a plain, labelled row under the video, so Trending reads as a feed. */
.r5-lead .m-card { bottom: auto; }
.m-row { position: absolute; left: 0; right: 40px; bottom: 40px; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 20px 40px -24px rgb(10 20 40 / 0.35); }
.m-row > img { width: 96px; aspect-ratio: 16 / 9; border-radius: 9px; object-fit: cover; display: block; }
.m-row b { display: flex; align-items: center; gap: 7px; font: 600 15px / 1.2 var(--font-body); }
.m-row span { display: block; margin-top: 4px; color: var(--text-muted); font: 400 14px / 1.3 var(--font-body); }
.m-row time { align-self: start; padding: 2px 4px 0 0; color: var(--text-muted); font: 500 13px / 1 var(--font-body); white-space: nowrap; }

@media (max-width: 960px) {
  .r5-lead .fc-right { height: auto; padding: 24px 32px 32px; }
  .r5-lead .m-card { position: relative; left: auto; right: auto; top: auto; }
  .m-row { position: relative; left: auto; right: auto; bottom: auto; margin-top: 12px; }
}
@media (max-width: 640px) {
  .r5-lead .fc-right { padding: 20px 12px 12px; }
  .m-row { grid-template-columns: 72px minmax(0, 1fr); }
  .m-row > img { width: 72px; }
  .m-row time { display: none; }
}

/* The plainer sentence is longer: the lead card grows to fit it and the chart, and the row stays inside. */
.fc-lead.r5-lead { height: 640px; grid-template-rows: minmax(0, 1fr); }
.r5-lead .fc-copy { font-size: 22px; max-width: 25ch; }
.r5-lead .fc-left, .r5-lead .fc-right { min-height: 0; }
.p-usual { bottom: 26px; background: none; }
@media (max-width: 960px) { .fc-lead.r5-lead { height: auto; } }
/* The video and the row before it stack with one steady gap, top-aligned with the sentence. */
@media (min-width: 961px) {
  .r5-lead .fc-right { display: flex; flex-direction: column; gap: 14px; padding: 40px 40px 0 0; }
  .r5-lead .m-card { position: relative; left: auto; right: auto; top: auto; }
  .r5-lead .m-row { position: relative; left: auto; right: auto; bottom: auto; }
}

/* A viral moment (Lacy's restaurant bill): the spike towers over the usual. */
.p-burst.r5 .p-bars { height: 124px; }
.p-burst.r5 .p-bars::before { bottom: 5px; }
.p-usual { bottom: 12px; }
.p-burst.r5 .p-axis span:nth-child(2) { opacity: 0.7; }
.m-watch { margin-left: 4px; padding-left: 10px; border-left: 1px solid rgb(255 255 255 / 0.35); color: rgb(255 255 255 / 0.8); font-weight: 500; font-size: 14px; }
.m-title { margin: 6px 0 0; color: #fff; font: 600 18px / 1.25 var(--font-body); }
.r5-lead .fc-left [data-p="burst"] { margin-top: auto; }
/* Solid enough that the stream's own chat never shows through. */
.r5-lead .m-chip { background: rgb(10 10 10 / 0.86); }
.r5-lead .m-chip.now { background: var(--accent-fill); }

/* The Trending video, decluttered (owner's ask, 2026-11-10): who, the one fact, Clip it and a volume control. The
   footage is cropped past the stream's own chat. Every control is the same pill: 36px tall, 14px type; Clip it is the
   one blue, the rest are one quiet dark chip (no backdrop blur: nothing blurs over moving video). */
.r5-lead .m-shade { height: 50%; background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / 0.5) 55%, rgb(0 0 0 / 0.78)); }
.r5-lead .m-foot { left: 20px; right: 16px; bottom: 16px; align-items: center; }
.r5-lead .m-who { font-size: 16px; }
.r5-lead .m-sig { margin-top: 6px; font-size: 15px; color: rgb(255 255 255 / 0.78); }
.r5-lead .m-btn { height: 36px; padding: 0 16px; font: 600 14px / 1 var(--font-body); }
.m-vol { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; align-items: center; height: 36px; padding: 0; border-radius: var(--radius-pill); background: rgb(10 10 10 / 0.62); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); transition: background 0.2s ease; }
.m-vol:hover, .m-vol:focus-within { background: rgb(10 10 10 / 0.78); }
.m-ctl { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.m-ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-ctl .spk { fill: currentColor; stroke-width: 1.6; }
.m-ctl[aria-pressed="false"] .on, .m-ctl[aria-pressed="true"] .off { display: none; }
.m-ctl:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
/* The slider slides out of the chip on hover or focus, and stays while the sound is on. */
.m-range { width: 0; margin: 0; opacity: 0; accent-color: #fff; cursor: pointer; transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease, margin 0.3s ease; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--v, 60%), rgb(255 255 255 / 0.3) var(--v, 60%)); }
.m-vol:hover .m-range, .m-vol:focus-within .m-range, .m-vol.is-on .m-range { width: 84px; margin-right: 14px; opacity: 1; }
.m-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.4); }
.m-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.m-range:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .m-range { transition: none; } .m-vol { display: none; } }
@media (max-width: 640px) {
  .r5-lead .m-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .m-vol .m-range { display: none; }
}

/* The Bento's Editor card, round 6 (owner's pick, 2026-11-10; lab/features/r6-a.html): Source → Result, with a
   timeline in step with both videos. */
.r4 .row3 { height: 620px; }
.fc-ed .fc-stage { margin-top: 20px; }

/* ---------- A: Source → Result ---------- */
.ed-a { position: absolute; left: 32px; right: 32px; top: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 168px); grid-template-areas: "src arrow res" "tl tl tl"; gap: 14px 14px; align-items: center; }
.ed-label { margin: 0 0 8px; color: var(--text-muted); font: 500 13px / 1 var(--font-body); }
.ed-label b { color: var(--text); font-weight: 600; }
.ed-src { grid-area: src; }
.ed-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b0b0c; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 24px 48px -28px rgb(10 20 40 / 0.5); }
.ed-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* The boxes the Editor draws on the source: where the face cam and the gameplay were found. */
.ed-box { position: absolute; border: 2px solid var(--accent-fill); border-radius: 4px; box-shadow: 0 0 0 9999px rgb(0 0 0 / 0); }
.ed-box span { position: absolute; left: -2px; top: -2px; transform: translateY(-100%); padding: 3px 7px; border-radius: 5px 5px 5px 0; background: var(--accent-fill); color: #fff; font: 600 11px / 1.2 var(--font-body); white-space: nowrap; }
.ed-box.face { left: 0; top: 27.4%; width: 25.2%; height: 24.4%; }
.ed-box.face span { top: auto; bottom: -2px; transform: translateY(100%); border-radius: 0 5px 5px 5px; }
.ed-box.game { left: 28.1%; top: 0; width: 45.7%; height: 100%; border-color: #fff; border-style: dashed; }
.ed-box.game span { top: 6px; left: 6px; transform: none; background: rgb(10 10 10 / 0.75); border-radius: 5px; }
.ed-arrow { grid-area: arrow; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgb(0 0 0 / 0.3); }
.ed-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ed-res { grid-area: res; }
.ed-res .p-phone { border-radius: 20px; box-shadow: 0 0 0 4px #0a0a0a, 0 30px 60px -30px rgb(10 20 40 / 0.55); }
.ed-res .p-cap { font-size: 15px; -webkit-text-stroke: 3px #000; }
/* The timeline: captions (ums cut), the video, the clip's real audio, and the playhead in step with the video. */
.ed-tl { grid-area: tl; position: relative; padding: 10px 12px 12px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 18px 36px -24px rgb(10 20 40 / 0.3); }
.ed-row { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 10px; align-items: center; height: 30px; }
.ed-row + .ed-row { margin-top: 6px; }
.ed-row > span { color: var(--text-muted); font: 500 12px / 1 var(--font-body); }
.ed-track { position: relative; height: 100%; }
.ed-chips { display: flex; gap: 4px; height: 26px; }
.ed-chip { display: flex; align-items: center; padding: 0 8px; border-radius: 6px; background: var(--tint); color: var(--text); font: 500 12px / 1 var(--font-body); white-space: nowrap; overflow: hidden; flex: var(--w) 1 0; min-width: 0; transition: background 0.15s ease; }
.ed-chip.on { background: var(--accent-fill); color: #fff; }
.ed-chip.cut { background: repeating-linear-gradient(135deg, rgb(0 0 0 / 0.05) 0 5px, transparent 5px 10px); color: rgb(0 0 0 / 0.38); text-decoration: line-through; }
.ed-film { height: 30px; border-radius: 6px; background-size: 100% 100%; background-repeat: no-repeat; }
.ed-wave { display: flex; align-items: center; gap: 1px; height: 30px; }
.ed-wave i { flex: 1; height: calc(var(--a) * 100%); min-height: 2px; border-radius: 1px; background: rgb(0 0 0 / 0.28); }
.ed-wave i.cut { background: rgb(0 0 0 / 0.1); }
.ed-head { position: absolute; top: 6px; bottom: 6px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--accent-fill); left: calc(12px + 68px + 10px + (100% - 12px - 68px - 10px - 12px) * var(--t, 0)); }
.ed-head::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-fill); }

@media (max-width: 1100px) {
  .ed-a { left: 24px; right: 24px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 140px); }
}
@media (max-width: 960px) { .r4 .row3 { height: 640px; } }
@media (max-width: 640px) {
  .r4 .fc-ed .fc-stage { height: auto; padding: 0 12px 12px; }
  .ed-a { position: relative; left: auto; right: auto; top: auto; }
  .ed-a { grid-template-columns: minmax(0, 1fr) minmax(0, 104px); grid-template-areas: "src res" "tl tl"; gap: 10px; }
  .ed-arrow { display: none; }
  .ed-row { grid-template-columns: 52px minmax(0, 1fr); }
  .ed-head { left: calc(12px + 52px + 10px + (100% - 12px - 52px - 10px - 12px) * var(--t, 0)); }
  .ed-chip { padding: 0 5px; font-size: 11px; }
}

/* Phones: the card grows to fit; nothing is cut mid-word (A drops the captions row, B's tabs wrap). */
@media (max-width: 640px) {
  .r4 .row3 { height: auto; }
  .ed-a .ed-row:first-child { display: none; }
}
@media (max-width: 640px) {
  .fc-stage > .ed-a { position: relative; left: auto; right: auto; top: auto; }
}

/* The Bento's Schedule card, round 7 (owner's pick, 2026-11-10; lab/features/r7.html): it picks up the Editor's clip. */
.fc-post .fc-stage { margin-top: 18px; }
.fc-post [data-p="post"].sd { left: 24px; right: 24px; top: 0; bottom: 24px; display: flex; flex-direction: column; gap: 10px; }

.sd-panel { background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 18px 36px -24px rgb(10 20 40 / 0.3); }

/* 1. The clip, from the Editor, still playing in step with it. */
.sd-from { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; }
.sd-thumb { position: relative; width: 42px; aspect-ratio: 9 / 16; border-radius: 7px; overflow: hidden; background: #0b0b0c; }
.sd-thumb video, .sd-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-from b { display: block; font: 600 14px / 1.25 var(--font-body); }
.sd-from div span { display: block; margin-top: 2px; color: var(--text-muted); font: 400 12px / 1.3 var(--font-body); }
.sd-post { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 112px; height: 32px; padding: 0 14px; line-height: 1; border-radius: var(--radius-pill); background: var(--accent-fill); color: #fff; font: 600 13px / 1 var(--font-body); transition: transform 0.12s ease, opacity 0.3s ease; }
.sd-post svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sd-post.down { transform: scale(0.94); }
.sd-post.done { gap: 7px; background: var(--bg); color: var(--text); }
/* The done mark: a small blue disc with a white tick, centred on the label. */
.sd-tick { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-fill); }
.sd-tick svg { width: 11px !important; height: 11px !important; stroke: #fff !important; stroke-width: 3 !important; }
.sd-row em { transition: opacity 0.35s ease; }
.sd-row em.fade { opacity: 0; }
.sd-now { transition: top 1s linear; }

/* 2. A slice of the real week grid: three days, 11 AM to 2 PM, the now line, and the new post landing. */
.sd-week { position: relative; padding: 8px 10px 10px 0; }
.sd-days { display: grid; grid-template-columns: 40px repeat(3, minmax(0, 1fr)); margin-bottom: 4px; font: 500 12px / 1 var(--font-body); color: var(--text-muted); }
.sd-days span { padding: 4px 6px; }
.sd-days b { color: var(--text); font-weight: 600; margin-left: 3px; }
.sd-days .today b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-fill); color: #fff; font-size: 11px; }
.sd-grid { position: relative; display: grid; grid-template-columns: 40px repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, 40px); }
.sd-hour { grid-column: 1; padding-right: 6px; text-align: right; color: var(--text-muted); font: 400 10px / 1 var(--font-body); transform: translateY(-5px); white-space: nowrap; }
.sd-cell { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.sd-cell.today { background: rgb(13 109 252 / 0.035); }
.sd-now { position: absolute; left: calc(40px + (100% - 40px) / 3); width: calc((100% - 40px) / 3); height: 2px; background: var(--live); top: 28px; }
.sd-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.sd-chip { position: absolute; display: grid; gap: 2px; padding: 5px 7px; border-radius: 7px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 600 11px / 1.15 var(--font-body); color: var(--text); overflow: hidden; }
.sd-chip span { display: flex; align-items: center; gap: 3px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.sd-chip svg { width: 11px; height: 11px; fill: currentColor; flex: none; }
.sd-chip.old { opacity: 0.75; }
.sd-chip.new { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--accent-fill); color: var(--accent-fill); }
.sd-chip.new span { color: var(--text); }

/* 3. The day list: one row per account, each in its own words. */
.sd-day { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 4px 0; }
.sd-day h4 { margin: 0; padding: 8px 14px 6px; font: 600 14px / 1.2 var(--font-body); }
.sd-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 14px; box-shadow: inset 0 1px 0 var(--line); }
.sd-row .p-plat { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--bg); fill: currentColor; }
.sd-row b { display: block; font: 500 13px / 1.25 var(--font-body); }
.sd-row small { display: block; color: var(--text-muted); font: 400 12px / 1.25 var(--font-body); font-variant-numeric: tabular-nums; }
.sd-row em { font-style: normal; color: var(--text-muted); font: 500 12px / 1 var(--font-body); white-space: nowrap; }
.sd-row em.done { color: var(--text); font-weight: 600; }
.sd-row em .p-spin { width: 10px; height: 10px; margin-right: 5px; }

@media (prefers-reduced-motion: no-preference) {
  .sd-chip.new { transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease; }
  .sd-chip.new.wait { transform: translateY(-14px); opacity: 0; }
}

@media (max-width: 640px) {
  .fc-post .fc-stage { height: auto; padding: 0 12px 12px; }
  .fc-stage > [data-p="post"].sd { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
}

/* ---- Showcase (owner's pick, 2026-11-10; lab/showcase/): one Clix clip through the real app, played by the scroll ---- */
.sc { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.sc-list { display: grid; gap: var(--space-1); }
.sc-item { position: relative; display: block; width: 100%; padding: var(--space-4) var(--space-5) var(--space-4) var(--space-6); border: 0; border-radius: var(--radius-md); background: none; text-align: left; cursor: pointer; color: var(--text); }
.sc-item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--line); }
.sc-item::after { content: ""; position: absolute; left: 0; top: 14px; width: 2px; height: 0; border-radius: 2px; background: var(--text); }
.sc-item .ft-name { display: block; color: var(--text-muted); transition: color 0.2s ease; }
.sc-item .ft-line { display: grid; grid-template-rows: 0fr; margin: 0; overflow: hidden; transition: grid-template-rows 0.35s ease, margin 0.35s ease; }
.sc-item .ft-line > span { min-height: 0; }
.sc-item[aria-selected="true"] .ft-name { color: var(--text); }
.sc-item[aria-selected="true"] .ft-line { grid-template-rows: 1fr; margin-top: var(--space-2); }
.sc-item[aria-selected="true"]::after { height: calc(100% - 28px); transform-origin: top; animation: sc-fill var(--dur, 6s) linear both; }
.sc.is-paused .sc-item[aria-selected="true"]::after { animation: none; }
.sc-item:hover .ft-name { color: var(--text); }
.sc-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes sc-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 960px) {
  .sc { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .sc-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; gap: var(--space-2); }
  .sc-item { padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--bg); }
  .sc-item::before, .sc-item::after, .sc-item .ft-line { display: none; }
  .sc-item .ft-name { font-size: 15px; }
  .sc-item[aria-selected="true"] { background: var(--text); } .sc-item[aria-selected="true"] .ft-name { color: #fff; }
  .sc-caption { display: block !important; }
}
.sc-caption { display: none; margin: var(--space-4) 0 0; color: var(--text-muted); font: 400 15px / 1.5 var(--font-body); }
@media (prefers-reduced-motion: reduce) { .sc-item[aria-selected="true"]::after { transform: none; } }
.ft-flow { --ss-player: var(--ink-button); --ss-app: #f6f7f9; --ss-ease: cubic-bezier(0.22, 1, 0.36, 1); }

/* The stage: the scene itself. It plays by itself once it's half on screen; the scroll never drives it.
   On a computer it bleeds off the page's right edge, like a window into the app that carries on past it. */
.ss-stage { position: relative; height: 600px; border-radius: 28px; overflow: hidden; overflow: clip; background: var(--ss-app); box-shadow: 0 0 0 1px var(--line); isolation: isolate; }

.ss-layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; }

/* ---- 1: the player ---- */
.ss-player { display: flex; flex-direction: column; background: var(--ss-player); color: #fff; }
.pl-video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.pl-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pl-live { position: absolute; top: 14px; left: 14px; padding: 4px 8px; border-radius: 6px; background: rgb(10 10 10 / 0.72); font: 600 12px / 1 var(--font-body); letter-spacing: 0.02em; text-transform: uppercase; }
.pl-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.pl-flash.go { animation: pl-flash 0.5s ease-out; }
@keyframes pl-flash { 0% { opacity: 0.28; } 100% { opacity: 0; } }
.pl-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: var(--space-2); padding: 40px 14px 12px; background: linear-gradient(to top, rgb(0 0 0 / 0.6), transparent); }
.pl-grow { flex: 1; }
.pl-ic { display: grid; place-items: center; width: 32px; height: 32px; }
.pl-ic svg, .pl-clip svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-ic:first-child svg { fill: #fff; stroke: none; }
.pl-clip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border: 0; border-radius: 8px; background: rgb(255 255 255 / 0.16); color: #fff; font: 600 14px / 1 var(--font-body); cursor: pointer; transition: background 0.15s ease, transform 0.12s ease; }
.pl-clip:hover { background: rgb(255 255 255 / 0.26); }
.pl-clip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pl-clip.down { transform: scale(0.92); background: rgb(255 255 255 / 0.34); }
.pl-clip.done { background: var(--accent-fill); }
.pl-info { position: relative; flex: 1; display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-6); }
.pl-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--ss-player), 0 0 0 3px rgb(255 255 255 / 0.5); }
.pl-who { display: grid; gap: 3px; }
.pl-who b { font: 600 16px / 1.2 var(--font-body); }
.pl-who span { color: rgb(255 255 255 / 0.6); font: 400 14px / 1.2 var(--font-body); }
.pl-made { position: absolute; right: var(--space-6); top: 50%; display: flex; align-items: center; gap: var(--space-3); padding: 8px 14px 8px 8px; border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.5); opacity: 0; transform: translateY(-30%) scale(0.96); transition: opacity 0.3s ease, transform 0.45s var(--ss-ease); pointer-events: none; }
.pl-made.on { opacity: 1; transform: translateY(-50%); }
.pl-made-pic { width: 64px; height: 36px; border-radius: 6px; background: #000; }
.pl-made b { display: block; font: 600 14px / 1.3 var(--font-body); }
.pl-made span { color: var(--text-muted); font: 400 13px / 1.3 var(--font-body); }

/* ---- 2–4: the real app at 1:1 ---- */
.ss-app { background: var(--ss-app); }
.ss-cam { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0; }
.ss-cam iframe { display: block; width: 1440px; height: 900px; border: 0; }

/* The app pages are crops: on a computer their cut top edge fades out, so they read as the app going on (the right
   edge is the page's own edge). The Editor shows its whole stage card, so it has none. */
@media (min-width: 641px) { .ss-app:not([data-layer="editor"]) { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px); mask-image: linear-gradient(to bottom, transparent, #000 28px); } }
/* One shot: the clip's frame flying from the player into its tile. */
.ss-fly { position: absolute; left: 0; top: 0; z-index: 5; background: #000 center / cover no-repeat; opacity: 0; pointer-events: none; transform-origin: 0 0; will-change: transform; }

@media (max-width: 960px) {
  .ss-stage { height: 520px; }
}
@media (max-width: 520px) {
  .ss-stage { height: 440px; border-radius: 22px; }
  .pl-info { display: grid; grid-template-columns: auto 1fr; align-content: center; gap: var(--space-4) var(--space-3); padding: 0 var(--space-4); }
  .pl-made { position: static; grid-column: 1 / -1; transform: translateY(8px); }
  .pl-made.on { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-made, .pl-clip { transition: none; }
  .pl-flash.go { animation: none; }
}

/* The list's line fills with the step's own progress (P), not a timer. */
.ss .sc-item[aria-selected="true"]::after { animation: none; height: calc(100% - 28px); transform-origin: top; transform: scaleY(var(--fill, 0)); }
  
/* The app window and the flow (owner, 2026-11-11; lab/showcase/flow.html): the scenes play in a window framed as the
   hero's, with its bar and an address that follows the step. On a computer nothing pins: the step blocks scroll with
   the page and the window stays beside them. */
.ss-win { --aw-bar: 38px; border-radius: var(--radius-lg); overflow: hidden; overflow: clip; background: var(--surface); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 30px 80px -24px rgb(10 40 90 / 0.35); }
.ss-win .ss-stage, .ft-flow .ss-win .ss-stage { border-radius: 0; box-shadow: none; }
.ss-winbar .aw-url { display: inline-flex; font-variant-numeric: tabular-nums; }
.ss-winbar [data-ss-url] { color: var(--text); }

@media (min-width: 961px) {
  /* The window sits in the content width (no longer full bleed) and stays put while the steps go by. */
  .ft-flow .ft-inner.sc { max-width: 1160px; margin: 0 auto; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--space-9); align-items: stretch; }
  .ft-flow .ss-pin { height: auto; }
  .ft-flow .ss-win { position: sticky; top: max(96px, calc(50vh - 299px)); }
  .ft-flow .ss-win .ss-stage { height: 560px; }

  /* Five step blocks in the page's flow: each about half a screen, so the text keeps moving under the wheel. Every
     step's line stays readable; the one the window plays is in ink. */
  /* The last step keeps the window on screen long enough for its scene (the post going onto the calendar). */
  .is-flow .sc-list { gap: 0; padding: 6vh 0 16vh; }
  .is-flow .sc-item, .is-flow .sc-item[aria-selected="true"] { min-height: 52vh; align-content: start; }
  .is-flow .sc-item:nth-last-child(2) { min-height: 78vh; }
  /* Only the step being read is strong (time, name and line at full ink); the rest sit quiet. Colour and opacity
     only, over 200ms, so nothing moves. */
  .is-flow .sc-item .ft-line { grid-template-rows: 1fr; margin-top: var(--space-3); opacity: 0.55; transition: opacity 0.2s ease, color 0.2s ease; }
  .is-flow .sc-item[aria-selected="true"] .ft-line { opacity: 1; color: var(--text); }
}
@media (prefers-reduced-motion: reduce) { .is-flow .sc-item .ft-line { transition: none; } }

/* The band (owner, 2026-11-10): the whole Showcase on the app's canvas grey, set in from the sheet's edges with the
   sheet's corners, so the white app panels in it have edges, as in the app. The active step is a white card. */
.ft-flow { margin: 0 var(--space-3); padding: var(--space-10) var(--gutter); border-radius: 32px; background: var(--bg); }
.ft + .ft-flow { margin-top: var(--space-6); }
/* The clip's clock (owner's pick A, 2026-11-10; lab/showcase/rail-a.html; showcase-rail.js): on a computer the steps
   are a timetable of the clip's journey: its time, a thin rail that fills with the scroll, then the step in Instrument
   Serif, larger and in ink while it plays. No cards. On phones the pills each gain their time. */
.rl-time { color: var(--text-muted); font: 500 13px / 1 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; transition: color 0.2s ease; }
@media (min-width: 961px) {
  .ft-flow .sc-list { position: relative; display: flex; flex-direction: column; gap: var(--space-6); }
  .ft-flow .sc-item, .ft-flow .sc-item[aria-selected="true"], .ft-flow .rl-total { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--space-7); align-items: baseline; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .ft-flow .sc-item::before, .ft-flow .sc-item::after { display: none; }
  .ft-flow .sc-item:focus-visible { outline-offset: 6px; border-radius: 4px; }
  .ft-flow .rl-time { grid-column: 1; text-align: right; }
  .ft-flow .sc-item .ft-name { grid-column: 2; color: var(--text-muted); font: 400 32px / 1.1 var(--font-display); letter-spacing: -0.015em; transition: color 0.2s ease; }
  .ft-flow .sc-item .ft-line { grid-column: 2; color: var(--text-muted); font: 400 15px / 1.5 var(--font-body); }
  .ft-flow .sc-item[aria-selected="true"] .ft-line { margin-top: var(--space-3); }
  .ft-flow .sc-item[aria-selected="true"] .ft-name { color: var(--text); }
  .ft-flow .sc-item:hover .ft-name, .ft-flow .sc-item[aria-selected="true"] .rl-time { color: var(--text); }
  .rl-rail { position: absolute; left: calc(64px + var(--space-7) / 2); width: 1px; background: var(--line); pointer-events: none; }
  .rl-fill { position: absolute; left: 0; top: 0; width: 1px; background: var(--text); transform-origin: top; } /* tied to the scroll, so no transition: it moves with the wheel */
  .rl-tick { position: absolute; left: -4px; width: 9px; height: 1px; background: var(--line); transition: background 0.3s ease; }
  .rl-tick.on { background: var(--text); }
  .ft-flow .rl-total { margin: var(--space-3) 0 0; color: var(--text-muted); font: 400 15px / 1.4 var(--font-body); }
  .ft-flow .rl-total b { color: var(--text-muted); font: 400 24px / 1 var(--font-display); letter-spacing: -0.01em; transition: color 0.4s ease; }
  .ft-flow .rl-total.on b { color: var(--text); }
}
@media (max-width: 960px) {
  .rl-rail, .rl-total { display: none; }
  .ft-flow .sc-item { display: inline-flex; gap: var(--space-2); align-items: baseline; }
  .ft-flow .sc-item[aria-selected="true"] .rl-time { color: rgb(255 255 255 / 0.6); }
}
@media (prefers-reduced-motion: reduce) {
  .ft-flow .sc-item .ft-name, .rl-time, .rl-tick, .rl-fill, .ft-flow .rl-total b, .is-flow .sc-item .ft-line { transition: none; }
  /* Every step at full strength: nothing fades as you scroll. */
  .is-flow .sc-item .ft-name, .is-flow .sc-item .rl-time { color: var(--text); }
  .is-flow .sc-item .ft-line { opacity: 1; }
}
@media (max-width: 960px) {
  .ft-flow .sc-item { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
  .ft-flow .sc-item[aria-selected="true"] { background: var(--text); box-shadow: none; }
}
@media (max-width: 520px) {
  .ft-flow { margin: 0 var(--space-2); padding: var(--space-9) var(--gutter); border-radius: 24px; }
}

/* Pricing: a free plan and a dark Pro plan, with the Annual / Monthly switch. */
.pr { margin: 0 var(--space-3); padding: var(--space-10) var(--gutter); border-radius: 32px; background: var(--bg); display: grid; justify-items: center; gap: var(--space-6); } /* the Showcase's grey panel (owner, 2026-11-10) */
@media (max-width: 520px) { .pr { margin: 0 var(--space-2); border-radius: 24px; } }
.pr-head { max-width: 720px; display: grid; gap: var(--space-4); text-align: center; }
.pr-head p { margin: 0; color: var(--text-muted); }
/* One white pill sits behind both labels and slides to the chosen one (as Littlebird's does): two equal columns,
   the pill is half the width and moves by its own width. The labels' colour fades as it passes. */
.pr-toggle { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: 1fr 1fr; padding: var(--space-1); border-radius: var(--radius-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); } /* white track, thin ring: it reads on the grey panel (as Littlebird's light track does) */
.pr-toggle::before { content: ""; position: absolute; z-index: -1; top: var(--space-1); bottom: var(--space-1); left: var(--space-1); width: calc(50% - var(--space-1)); border-radius: var(--radius-pill); background: var(--ink-button); transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1); } /* the dark pill, our button ink */
.pr-toggle[data-period="monthly"]::before { transform: translateX(100%); }
.pr-toggle button { min-width: 108px; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--text-muted); font: 400 15px / 1.2 var(--font-body); cursor: pointer; transition: color 0.3s ease; } /* Littlebird's size: 108 × 44 in a 52px-tall switch */
.pr-toggle button:hover { color: var(--text); }
.pr-toggle button[aria-pressed="true"], .pr-toggle button[aria-pressed="true"]:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .pr-toggle::before, .pr-toggle button { transition: none; } }
.pr-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The cards follow Littlebird's exactly (owner, 2026-11-10): the plan's name small and grey, a big price, one line
   under it, a tight list of checks, and a full-width button pinned to the card's foot, so both buttons line up.
   Colours and buttons stay ours. */
.pr-plans { width: min(880px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pr-plan { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 28px; background: var(--surface); box-shadow: 0 0 0 1px rgb(10 10 10 / 0.08), 0 1px 2px rgb(10 10 10 / 0.06), 0 6px 18px rgb(10 10 10 / 0.07); text-align: left; }
.pr-plan h3 { margin: 0; color: var(--text-muted); font: 500 15px / 1.3 var(--font-body); }
.pr-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--space-2); font: 400 54px / 1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pr-price > span:first-child { display: inline-block; } /* so the swap can lift and drop it (app-window.js) */
.pr-price small { font: 400 16px / 1 var(--font-body); letter-spacing: 0; opacity: 0.72; }
/* Prices are placeholders until the owners set them: visibly unfinished on purpose. */
.pr-tag { align-self: center; padding: 3px 8px; border: 1px dashed currentColor; border-radius: var(--radius-sm); font: 500 12px / 1.2 var(--font-body); letter-spacing: 0; opacity: 0.75; }
.pr-note { margin: 0; color: var(--text-muted); font: 400 14px / 1.4 var(--font-body); }
.pr-note { display: inline-block; }
.pr-desc { margin: 0; font: 500 15px / 1.4 var(--font-body); opacity: 0.86; }
.pr-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pr-plan li { display: flex; gap: 10px; font: 400 15.5px / 1.45 var(--font-body); text-wrap: pretty; }
.pr-check { flex: none; width: 17px; height: 17px; margin-top: 3px; fill: none; stroke: var(--accent-fill); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pr-actions { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.pr-plan .btn { width: 100%; }
.pr-plan .btn .slide-label { flex: 1; text-align: center; padding-right: calc(var(--slide-w, 56px) + 16px); } /* centred on the whole button, as in the drawer */
.pr-pro { background: var(--ink-button); color: #fff; box-shadow: none; }
.pr-pro .pr-note, .pr-pro h3 { color: rgb(255 255 255 / 0.72); }
.pr-pro .pr-check { stroke: #fff; }
.pr-pro .btn-secondary { --slide-bg: var(--ink-button); --slide-ink: #fff; background: #fff; color: var(--ink-button); border: 0; }

/* Questions before you start. The last section eases into the footer's tint. */
.fq { padding: var(--space-10) var(--gutter) var(--space-11); display: grid; justify-items: center; gap: var(--space-7); }
/* Bencho's FAQ accordion, words arriving (owner's pick C, 2026-11-10; faq.js). The answer's row eases 0fr → 1fr, so
   it grows by exactly its own height with nothing measured; then each word rises out of a soft blur, a beat after
   the one before. Closing is one quick fade. Until faq.js arms the list ([data-armed]) every answer simply shows. */
.fq { --fq-ease: cubic-bezier(0.22, 1, 0.36, 1); --fq-open: 420ms; }
.fq-list { width: min(760px, 100%); border-top: 1px solid var(--line); }
.fq-item { border-bottom: 1px solid var(--line); }
.fq-h { margin: 0; font: inherit; }
.fq-q { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); width: 100%; padding: var(--space-5) 0; border: 0; background: none; color: var(--text); font: 500 17px / 1.4 var(--font-body); letter-spacing: -0.01em; text-align: left; cursor: pointer; }
.fq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.fq-mark { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--text-muted); stroke-width: 1.6; stroke-linecap: round; transition: rotate var(--fq-open) var(--fq-ease), stroke 160ms ease; }
.fq-q:hover .fq-mark, .fq-q[aria-expanded="true"] .fq-mark { stroke: var(--text); }
.fq-q[aria-expanded="true"] .fq-mark { rotate: 135deg; }
.fq-a > div { min-height: 0; overflow: hidden; }
.fq-list[data-armed] .fq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--fq-open) var(--fq-ease); }
.fq-list[data-armed] .is-open > .fq-a { grid-template-rows: 1fr; }
.fq-a p { margin: 0 0 var(--space-5); max-width: 64ch; padding-right: var(--space-7); color: var(--text-muted); font: 400 16px / 1.6 var(--font-body); }
.fq-a p > span { display: inline-block; white-space: pre; opacity: 0; translate: 0 6px; filter: blur(4px); transition: opacity 160ms ease, translate 160ms ease, filter 160ms ease; }
.fq-item.is-open > .fq-a p > span { opacity: 1; translate: 0 0; filter: blur(0); transition: opacity 240ms var(--fq-ease), translate 240ms var(--fq-ease), filter 240ms var(--fq-ease); transition-delay: calc(80ms + var(--k) * 10ms); }
@media (max-width: 640px) {
  .fq-q { font-size: 16px; }
  .fq-a p { font-size: 15px; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fq-list * { transition: none !important; }
  .fq-a p > span { filter: none; translate: none; }
}

@media (max-width: 820px) {
  .pr-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .pr-plan { padding: var(--space-6); }
  .pr-price { font-size: 48px; }
}

/* ---------- Footer: the ASCII meadow ---------- */
/* The page and the painting share one colour, so the art never starts, it appears: the page above
   eases from white into --footer-tint (in .fq, the last section) (the sky's own blue, nearly white), the links sit on it, and
   the ASCII meadow (ascii.js) melts into exactly that colour through --ascii-page. */
/* The ASCII meadow tucks up under the sheet's foot: its faded top sits hidden behind the sheet, so the
   moment the sheet ends the ASCII scene is already there, with no plain sky band in between. */
.studio-footer { --band-h: clamp(420px, 34vw, 640px); position: relative; z-index: 2; margin-top: calc(var(--band-h) * -0.3 - 32px); --ascii-page: #d6ecfd; }
.sf-inner { max-width: var(--content); margin: 0 auto; padding: var(--space-9) var(--gutter) var(--space-7); display: grid; gap: var(--space-9); }
.sf-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-8); }
.sf-brand { display: grid; gap: var(--space-3); align-content: start; }
.sf-brand .brand { color: var(--text); }
.sf-brand p { margin: 0; color: var(--text-muted); font: 400 15px / 1.5 var(--font-body); }
.sf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.sf-cols div { display: grid; gap: var(--space-3); align-content: start; }
.sf-cols p { margin: 0 0 var(--space-1); color: var(--text-muted); font: 500 14px / 1.4 var(--font-body); }
.sf-cols a { color: var(--text); text-decoration: none; font: 400 15px / 1.4 var(--font-body); }
.sf-cols a:hover { color: var(--accent-fill); }
.sf-legal { display: flex; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--text-muted); font: 400 14px / 1.4 var(--font-body); }
.sf-legal-links { display: flex; gap: var(--space-6); }
.sf-legal a { color: inherit; text-decoration: none; }
.sf-legal a:hover { color: var(--text); }
.studio-ascii { position: relative; height: calc(var(--band-h) * 1.3 + 32px); touch-action: pan-y; }
.studio-ascii canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.studio-ascii .ascii-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .sf-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .sf-inner { padding-top: var(--space-9); gap: var(--space-7); }
  .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); }
  .sf-legal { flex-direction: column; gap: var(--space-2); }
}

/* ---------- Preview page switch (remove before shipping) ---------- */
.theme-switch a { color: var(--text-muted); padding: var(--space-2) 14px; border-radius: var(--radius-pill); text-decoration: none; }
.theme-switch a:hover { color: var(--text); }
.theme-switch a[aria-current="page"] { background: var(--text); color: var(--bg); }
@media (max-width: 520px) {
  .theme-switch a { padding: 6px 10px; font-size: 12px; }
}

/* A clicked step shows no ring; the keyboard still gets one. */
.sc-item:focus:not(:focus-visible) { outline: none; }

/* ---------- Bento: the cards' sentences fill in as you scroll (owner's ask, 2026-11-10) ---------- */
/* Each word goes from muted to ink on the scroll's own timeline (no script at scroll time): it starts as the card
   enters the bottom third and is full ink by the time its top is about 45% down the screen. Without scroll timelines,
   or with reduced motion, the sentence is simply full ink. features.js wraps the words (.ink-w) once. */
.r4 .fc-copy { --ink-to: var(--text); }
.r4 .fc-dark .fc-copy { --ink-to: #fff; }
.r4 .fc-copy.ink-fill { color: var(--ink-to); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* The timeline is the card's, not the sentence's: the card clips its overflow, which would make it the scroller
       for anything inside it. Ranges are in screen heights from the moment the card's top enters at the bottom:
       33vh in (the bottom third) to 55vh in (top at 45%). */
    .r4 .fc:has(.ink-fill) { view-timeline: --ink block; }
    /* Slower and more deliberate (owner, 2026-11-10: the first version "happened so fast"): the words start
       lighter, so the change reads, and fill one after another across about two thirds of a screen of scroll, from the
       card's top 75% down the screen to about 10% (owner, 2026-11-11: start later, run slower), so the sentence fills
       while it sits in the middle of the screen, where people read. */
    .r4 .fc-copy.ink-fill { color: var(--ink-muted, color-mix(in srgb, var(--text-muted) 45%, transparent)); }
    .r4 .fc-dark .fc-copy.ink-fill { --ink-muted: rgb(255 255 255 / 0.3); }
    .r4 .fc-copy.ink-fill b { color: inherit; }
    .ink-w { animation: ink-fill linear both; animation-timeline: --ink; animation-range: cover calc(25vh + var(--a) * 0.65vh) cover calc(25vh + var(--b) * 0.65vh); }
  }
}
@keyframes ink-fill { to { color: var(--ink-to); } }

/* ============ Integrations ("Clip from the AI you already use", owner's pick 2026-11-10: lab/integrations A) ============
   Copy and the linked accounts on the left, a sample chat with Reach's real tools on the right, the AI apps under it.
   Driven by integrations.js. Rules in DESIGN.md, Landing > Integrations. */
.ig { padding: var(--space-10) var(--gutter); }
.ig-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: var(--space-9); align-items: center; max-width: 1120px; margin: 0 auto; }
.ig-copy { display: grid; gap: var(--space-5); }
.ig-copy > p { margin: 0; color: var(--text-muted); }
.ig-ways { color: var(--text-muted); font: 400 14px / 1.5 var(--font-body); }
.ig-ways b { color: var(--text); font-weight: 500; }
.ig-ways code { color: var(--text); font: 600 12.5px / 1 var(--font-mono); }
[data-ig-mark] { display: inline-grid; place-items: center; font-style: normal; }
[data-ig-mark] svg { width: 100%; height: 100%; fill: currentColor; }

/* The accounts: small white discs on hairlines. A line draws in ink as the work reaches it. */
.ig-wire { position: relative; contain: layout; aspect-ratio: 400 / 240; max-width: 440px; margin-top: var(--space-4); }
.ig-wire > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ig-track { fill: none; stroke: var(--text); stroke-opacity: 0.16; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-opacity 0.35s ease, stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.ig-track.is-roll { stroke-opacity: 0.5; }
.ig-lit { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ig-dot { fill: var(--text); opacity: 0; }
.ig-node { position: absolute; display: grid; justify-items: center; gap: 8px; transform: translate(-50%, -24px); }
.ig-disc { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 6px 16px -10px rgb(0 0 0 / 0.25); transition: box-shadow 0.4s ease, transform 0.4s ease; }
.ig-disc [data-ig-mark] { width: 20px; height: 20px; }
.ig-disc img { width: 48px; height: 48px; border-radius: 50%; }
.ig-node-wide .ig-disc { width: auto; padding: 0 14px; gap: 6px; display: flex; border-radius: var(--radius-pill); }
.ig-node-wide [data-ig-mark] { width: 16px; height: 16px; }
.ig-label { color: var(--text-muted); font: 500 12.5px / 1.2 var(--font-body); white-space: nowrap; transition: color 0.4s ease; }
.ig-node.is-lit .ig-disc, .ig-node.is-roll .ig-disc { box-shadow: 0 0 0 1.5px var(--text), 0 10px 22px -12px rgb(0 0 0 / 0.35); transform: translateY(-2px); }
.ig-node.is-lit .ig-label, .ig-node.is-roll .ig-label { color: var(--text); }
.ig-node { transition: opacity 0.5s ease, translate 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) { .ig-node:hover .ig-disc { transform: translateY(-3px); } }
/* Reach is busy while the edits land: one thin ink arc turns around its mark. */
.ig-node[data-node="reach"] .ig-disc::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: var(--text); opacity: 0; transition: opacity 0.35s ease; animation: ig-spin 1.1s linear infinite; }
.ig-node[data-node="reach"] .ig-disc::after { animation-play-state: paused; }
.is-editing .ig-node[data-node="reach"] .ig-disc::after { opacity: 1; animation-play-state: running; }
/* The clip on the move: a frame of the stream in from Twitch, the finished vertical clip out to the posts. */
.ig-fly { position: absolute; left: 0; top: 0; z-index: 1; will-change: transform, opacity; width: 34px; aspect-ratio: 16 / 9; border-radius: 4px; object-fit: cover; opacity: 0; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px var(--surface), 0 6px 14px -6px rgb(0 0 0 / 0.45); pointer-events: none; }
.ig-fly-out { width: 16px; aspect-ratio: 9 / 16; border-radius: 3px; }
/* The first time it's seen, the wire draws in: hairlines first, then the discs. */
.ig-pre .ig-track { stroke-dashoffset: 1; }
.ig-pre .ig-node { opacity: 0; translate: 0 8px; }
.ig-wire .ig-track:nth-of-type(2), .ig-wire .ig-track:nth-of-type(3) { transition-delay: 0s, 0.1s; }
.ig-wire .ig-track:nth-of-type(4), .ig-wire .ig-track:nth-of-type(5), .ig-wire .ig-track:nth-of-type(6) { transition-delay: 0s, 0.25s; }
.ig-wire .ig-node:nth-of-type(2), .ig-wire .ig-node:nth-of-type(3) { transition-delay: 0.15s; }
.ig-wire .ig-node:nth-of-type(n+4) { transition-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) { .ig-node[data-node="reach"] .ig-disc::after { animation: none; } }

/* The chat: a plain panel, not any one AI app's look. Every row has its place from the start (nothing shifts);
   things arrive by opacity and a few px of rise. */
.ig-side { display: grid; gap: var(--space-4); justify-items: center; }
.ig-chat { width: 100%; border-radius: var(--radius-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgb(0 0 0 / 0.22); overflow: hidden; }
.ig-bar { display: flex; align-items: center; gap: var(--space-3); padding: 12px var(--space-4); border-bottom: 1px solid var(--line); color: var(--text-muted); font: 500 13px / 1 var(--font-body); }
.ig-bar span:last-child { margin-left: auto; font-weight: 400; }
.ig-body { contain: content; will-change: opacity; display: grid; gap: var(--space-3); padding: var(--space-4); }
.ig-you { display: grid; justify-self: end; max-width: 88%; margin: 0; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--bg); font: 500 15px / 1.45 var(--font-body); }
.ig-you [data-type]::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin: 0 -2px 0 1px; vertical-align: -2px; background: var(--text); opacity: 0; }
.is-typing .ig-you [data-type]::after { opacity: 1; }
.ig-you > span { grid-area: 1 / 1; }
.ig-ghost { visibility: hidden; }
.ig-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ig-tools li { display: grid; grid-template-columns: 16px auto 1fr; align-items: center; gap: 10px; font: 400 13.5px / 1.35 var(--font-body); opacity: 0; transform: translateY(4px); transition: opacity 0.4s ease, transform 0.4s ease; }
.ig-tools li[data-state="run"], .ig-tools li[data-state="done"] { opacity: 1; transform: none; }
.ig-tools code { justify-self: start; padding: 3px 7px; border-radius: 6px; background: var(--bg); font: 600 12px / 1.2 var(--font-mono); }
.ig-tools li > span:last-child { color: var(--text-muted); transition: opacity 0.35s ease; }
.ig-tools li[data-state="run"] > span:last-child { opacity: 0; }
.ig-check { width: 16px; height: 16px; }
.ig-check svg { width: 100%; height: 100%; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ig-check circle { stroke: var(--line); }
.ig-check path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.35s ease; }
li[data-state="done"] .ig-check path { stroke-dashoffset: 0; }
li[data-state="run"] .ig-check circle { stroke: var(--text-muted); stroke-dasharray: 0.3 0.7; }
li[data-state="run"] .ig-check { animation: ig-spin 0.9s linear infinite; } /* the box turns, not the SVG, so it stays on the compositor */
@keyframes ig-spin { to { transform: rotate(360deg); } }
.ig-reply { margin: 2px 0 0; font: 500 15px / 1.45 var(--font-body); opacity: 0; transition: opacity 0.4s ease; }
.is-reply .ig-reply { opacity: 1; }

/* The clip: it appears once it's cut and changes as each edit lands (stack, captions, punch-in). Then the post's
   accounts and Approve arrive, as Reach shows a proposal under Needs you. Video boxes stay dark, as in the app. */
.ig-card { display: grid; grid-template-columns: 104px 1fr; gap: var(--space-4); padding: var(--space-3); border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); opacity: 0; will-change: opacity, transform; }
.ig-clip { position: relative; width: 104px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px; background: var(--stage); }
.ig-clip img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.ig-raw { object-fit: contain; }
.ig-stack { object-fit: cover; opacity: 0; transform-origin: 50% 16%; }
.is-layout .ig-raw { opacity: 0; }
.is-layout .ig-stack { opacity: 1; }
.is-zoom .ig-stack { transform: scale(1.35); }
.ig-cap { position: absolute; left: 6px; right: 6px; top: 31.5%; margin: 0; color: var(--surface); font: 700 10.5px / 1.1 var(--font-body); letter-spacing: 0.01em; text-align: center; text-transform: uppercase; text-shadow: 0 1px 2px rgb(0 0 0 / 0.8), 0 0 1px rgb(0 0 0 / 0.9); opacity: 0; transform: translateY(3px); transition: opacity 0.4s ease, transform 0.4s ease; }
.is-captions .ig-cap { opacity: 1; transform: none; }
.ig-card-main { display: grid; align-content: start; gap: 6px; min-width: 0; }
.ig-card-main b { font: 600 14px / 1.3 var(--font-body); }
/* What Reach is doing to the clip right now; each new line fades up 3px. */
.ig-sub { color: var(--text-muted); font: 400 13px / 1.35 var(--font-body); }
.ig-sub.is-new { animation: ig-line 0.35s ease both; }
@keyframes ig-line { from { opacity: 0; translate: 0 3px; } }
.ig-post { display: grid; gap: 6px; opacity: 0; transition: opacity 0.45s ease; }
.is-post .ig-post { opacity: 1; }
.ig-to { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 5px; font: 400 13px / 1.3 var(--font-body); }
.ig-to li { display: flex; align-items: center; gap: 8px; }
.ig-to [data-ig-mark] { width: 14px; height: 14px; }
.ig-to time { margin-left: auto; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ig-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 32px; margin-top: 4px; font: 500 13px / 1.2 var(--font-body); }
.ig-wait, .ig-done { color: var(--text-muted); transition: opacity 0.35s ease; }
.ig-done { position: absolute; left: 0; opacity: 0; color: var(--text); }
.ig-ok { padding: 8px 16px; border-radius: var(--radius-pill); background: var(--ink-button); color: var(--surface); font: 600 13px / 1 var(--font-body); transition: transform 0.18s ease, opacity 0.35s ease; }
.is-pressing .ig-ok { transform: scale(0.94); }
.is-approved .ig-ok, .is-approved .ig-wait { opacity: 0; }
.is-approved .ig-done { opacity: 1; }

/* The AI apps, named under the chat. */
.ig-apps { margin: 0; color: var(--text-muted); font: 500 13px / 1.6 var(--font-body); text-align: center; }
.ig-apps b { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; color: var(--text); font-weight: 500; vertical-align: top; }
.ig-apps [data-ig-mark] { width: 15px; height: 15px; }
html.ig-still .ig *, html.ig-still .ig *::before, html.ig-still .ig *::after { transition: none !important; }

@media (max-width: 900px) {
  .ig { padding: var(--space-9) var(--gutter); }
  .ig-in { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .ig-wire { width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) {
  .ig-node { transform: translate(-50%, -19px); gap: 6px; }
  .ig-disc { width: 38px; height: 38px; } .ig-disc img { width: 38px; height: 38px; }
  .ig-disc [data-ig-mark] { width: 17px; height: 17px; }
  .ig-label { font-size: 11.5px; }
  .ig-tools li { grid-template-columns: 16px 1fr; }
  .ig-tools li > span:last-child { grid-column: 2; }
  .ig-you { font-size: 14px; }
  .ig-card { grid-template-columns: 88px 1fr; gap: var(--space-3); }
  .ig-clip { width: 88px; }
  .ig-cap { font-size: 9px; }
}

/* Phone header: the wordmark and the Contact pill were 21px wider than the bar at 375px, so the pill rode over
   the bar's edge. A smaller wordmark and gap keep both inside; below 370px even that doesn't fit, so the logo
   stands alone there (the name stays for screen readers). */
@media (max-width: 420px) {
  .site-header .brand { gap: 6px; }
  .site-header .brand span { font-size: 16px; }
}
@media (max-width: 370px) {
  .site-header .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
