/* Stroza landing. Palette and type rules from sr2-design.md 3A/3C, at marketing scale. */

@font-face {
  font-family: Inter;
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900; /* variable file, every weight is real */
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --surface-2: #F5F5F7;
  --surface-3: #E8E8ED;
  --line: #D2D2D7;
  --ink: #1D1D1F;
  --ink-2: #424245;
  --muted: #636366;
  --accent: #0071E3;
  --accent-hover: #0062C4;
  --on-accent: #FFFFFF;
  --accent-ink: #0066CC;
  --focus-ring: #0071E3;
  --nav-bg: rgba(251, 251, 253, 0.8);
  --nav-solid: #FBFBFD;
  --shot-edge: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 30px 60px -24px rgba(0, 0, 0, 0.22);
  --s-white: #FFFFFF;
  --s-grey: #F5F5F7;
  --s-story2: #FFFFFF;
  --s-alt: #F5F5F7;
  --s-foot: #F5F5F7;
  --thumb: #FFFFFF;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --wrap: 1180px;
  --gutter: 16px;
  --section-y: 96px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --section-y: 128px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; --section-y: 160px; } }

/* Dark tokens: declared twice, once for "follow the system", once for the saved override. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface-2: #1D1D1F; --surface-3: #2C2C2E; --line: #424245;
    --ink: #F5F5F7; --ink-2: #D2D2D7; --muted: #A1A1A6;
    --accent-ink: #2997FF; --focus-ring: #2997FF;
    --nav-bg: rgba(22, 22, 23, 0.8); --nav-solid: #161617;
    --shot-edge: 0 0 0 1px #2C2C2E;
    --s-white: #000000; --s-grey: #1D1D1F; --s-story2: #1D1D1F; --s-alt: #000000; --s-foot: #000000; --thumb: #5A5A5E;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --surface-2: #1D1D1F; --surface-3: #2C2C2E; --line: #424245;
  --ink: #F5F5F7; --ink-2: #D2D2D7; --muted: #A1A1A6;
  --accent-ink: #2997FF; --focus-ring: #2997FF;
  --nav-bg: rgba(22, 22, 23, 0.8); --nav-solid: #161617;
  --shot-edge: 0 0 0 1px #2C2C2E;
  --s-white: #000000; --s-grey: #1D1D1F; --s-story2: #1D1D1F; --s-alt: #000000; --s-foot: #000000; --thumb: #5A5A5E;
}
:root[data-theme="light"] { color-scheme: light; }

/* The true-black section carries dark tokens in both themes (#0066CC on black would fail). */
.s-black, .motion-on .pin-stage {
  --bg: #000000; --ink: #F5F5F7; --ink-2: #D2D2D7; --muted: #A1A1A6;
  --line: #424245; --accent-ink: #2997FF; --focus-ring: #2997FF;
  --shot-edge: 0 0 0 1px #2C2C2E;
  background: #000000; color: var(--ink);
}
/* A dark band next to a black section in dark mode lifts to #1D1D1F so the two stay apart. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-raise { background: #1D1D1F; } }
:root[data-theme="dark"] .s-raise { background: #1D1D1F; }
.s-white { background: var(--s-white); }
.s-grey { background: var(--s-grey); }
.s-story2 { background: var(--s-story2); }
.s-alt { background: var(--s-alt); }
.s-foot { background: var(--s-foot); }

/* Theme-specific twins (20X logo): light by default, dark when the theme is dark. */
.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none; }
  :root:not([data-theme="light"]) .on-dark { display: inline-block; }
}
:root[data-theme="dark"] .on-light { display: none; }
:root[data-theme="dark"] .on-dark { display: inline-block; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Room for the sticky bar above a link target. On the targets, not as scroll-padding on the page: with padding, the
   browser treats the bar itself as out of view and scrolls the page half a screen every time a bar link takes focus. */
:where(main, section, div, h1, h2, h3)[id] { scroll-margin-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
cite { font-style: normal; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-weight: 500;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.t-hero {
  font-size: clamp(44px, 4.2vw + 20px, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.t-section {
  font-size: clamp(34px, 2.6vw + 18px, 56px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.lead {
  font-size: 19px;
  line-height: 1.42;
  letter-spacing: -0.012em;
  color: var(--muted);
  text-wrap: pretty;
}
@media (min-width: 768px) { .lead { font-size: 21px; line-height: 1.38; } }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-solid);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav {
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--nav-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) { .nav { background: var(--nav-solid); border-bottom: 1px solid var(--ink); } }
/* Over a black band (site.js adds .nav-dark while one is under the bar's middle): the bar takes its dark-theme look, the
   same tokens as the dark theme, so in the dark theme nothing changes. The colours ease over 200ms; instant under reduced motion. */
.nav.nav-dark {
  --bg: #000000; --ink: #F5F5F7; --ink-2: #D2D2D7; --muted: #A1A1A6; --line: #424245;
  --accent-ink: #2997FF; --focus-ring: #2997FF; --nav-bg: rgba(22, 22, 23, 0.8); --nav-solid: #161617;
}
@media (prefers-reduced-motion: no-preference) {
  .nav, .nav::before, .brand, .mark-tile, .mark-s, .nav-links a, .menu-links, .menu-links a {
    transition: background-color 200ms var(--ease), color 200ms var(--ease), fill 200ms var(--ease), border-color 200ms var(--ease);
  }
  .menu-icon, .menu-icon::before { transition: transform 240ms var(--ease), background-color 200ms var(--ease); }
}

.nav-bar {
  display: flex; align-items: center; gap: 8px;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  height: 52px; margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.mark { flex: none; }
.mark-tile { fill: var(--ink); }
.mark-s { fill: var(--bg); font: 600 18px/1 var(--font); letter-spacing: 0; }
.s-black .mark-tile { fill: #F5F5F7; }

.nav-links { display: none; }
.nav-cta { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; }
.nav-cta span {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border-radius: 980px; background: var(--accent); color: var(--on-accent);
  font-size: 14px; font-weight: 500; letter-spacing: -0.006em;
  transition: background-color 120ms var(--ease);
}
.nav-cta:hover { text-decoration: none; }
/* Sign up: a quiet pill beside the one blue button. In the bar only on wide screens; on phones it is in the menu. */
.nav-up { display: none; }
.nav-up span {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border-radius: 980px; background: var(--surface-3); color: var(--ink);
  font-size: 14px; font-weight: 500; letter-spacing: -0.006em;
}
.nav-up:hover { text-decoration: none; }
.nav-links a, .nav-up span, .nav-cta span { white-space: nowrap; }
.nav-cta:hover span { background: var(--accent-hover); }

/* Phone menu: <details> works without JavaScript. */
.menu { position: static; }
.menu summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
  border-radius: 12px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform 240ms var(--ease); }
.menu-icon { position: relative; transform: translateY(-3.5px); }
.menu-icon::before { content: ""; position: absolute; left: 0; top: 7px; }
.menu[open] .menu-icon { transform: rotate(45deg); }
.menu[open] .menu-icon::before { transform: translateY(-7px) rotate(-90deg); }
.menu-links {
  position: absolute; left: 0; right: 0; top: 52px;
  padding: 8px var(--gutter) 24px;
  background: var(--nav-solid);
  border-bottom: 1px solid var(--line);
}
.menu-links a {
  display: flex; align-items: center; min-height: 48px;
  font-size: 21px; font-weight: 600; letter-spacing: -0.016em; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.menu-links li:last-child a { border-bottom: 0; }

/* The full bar needs about 1000px since Sign in and Sign up joined it; below that the menu holds every link. */
@media (min-width: 1000px) {
  .menu { display: none; }
  .nav-links { display: flex; gap: 4px; margin-left: auto; }
  .nav-links a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
    font-size: 14px; color: var(--ink-2); letter-spacing: -0.006em;
  }
  .nav-links a:hover { color: var(--ink); text-decoration: none; }
  .nav-cta { margin-left: 8px; }
  .nav-up { display: inline-flex; align-items: center; min-height: 44px; margin-left: 8px; }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 980px;
  background: var(--accent); color: var(--on-accent);
  font-size: 17px; font-weight: 500; letter-spacing: -0.011em;
  transition: background-color 120ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 17px; letter-spacing: -0.011em;
}
.more::after {
  content: ""; width: 7px; height: 7px; margin-top: 1px;
  border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}

/* ---------- hero ---------- */
.hero { padding-top: 72px; overflow: clip; text-align: center; }
@media (min-width: 768px) { .hero { padding-top: 88px; } }
.hero .t-hero { max-width: 1000px; margin: 0 auto; }
.hero-lead { max-width: 640px; margin: 24px auto 0; }
.hero .actions { margin-top: 32px; }
.powered {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 8px;
  font-size: 14px; line-height: 1.4; letter-spacing: -0.006em; color: var(--muted);
}
.hero .powered { margin-top: 28px; }
.logo-20x { width: 18px; height: 18px; }
.dot { color: var(--muted); }
@media (max-width: 599px) {
  .hero .powered .dot { display: none; }
  .hero .powered span:last-child { flex-basis: 100%; }
}

.hero-shot {
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 64px auto 0; padding: 0 var(--gutter);
}
.hero-shot img {
  margin: 0 auto;
  border-radius: 14px 14px 0 0;
  box-shadow: var(--shot-edge);
}
/* Phone and tablet: the phone screen, not a shrunken desktop (the 1440 picture would be about half size below 900px).
   It sits on the section edge like a device rising into view. */
@media (max-width: 899px) {
  .hero-shot { margin-top: 48px; }
  .hero-shot img { width: 360px; border-radius: 28px 28px 0 0; }
}
@media (max-width: 599px) { .hero-shot img { width: 300px; } }
@media (min-width: 900px) {
  .hero-shot img { border-radius: 16px 16px 0 0; }
}

/* ---------- what is ---------- */
.what { padding: var(--section-y) 0; }
.what-grid { display: grid; gap: 24px; }
.statement {
  font-size: 21px; line-height: 1.42; letter-spacing: -0.014em;
  color: var(--ink-2); max-width: 34em; text-wrap: pretty;
}
@media (min-width: 900px) {
  .what-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .statement { font-size: 28px; line-height: 1.32; letter-spacing: -0.02em; font-weight: 500; color: var(--ink); }
}

/* ---------- shared section head ---------- */
.problem, .channels, .story, .how, .trust, .faq, .closing { padding: var(--section-y) 0; }
.sec-head { max-width: 980px; margin: 0 auto; text-align: center; }
.sec-head .lead { margin: 20px auto 0; max-width: 640px; text-wrap: balance; }
.line { display: inline; }
@media (min-width: 768px) { .line { display: block; } }

/* ---------- problem: figures ---------- */
.figures { margin: 72px auto 0; max-width: 980px; }
.figures li {
  display: grid; gap: 8px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.figures li:last-child { border-bottom: 1px solid var(--line); }
.fig {
  font-size: clamp(48px, 3vw + 30px, 72px);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.fig-text p:first-child { font-size: 19px; line-height: 1.4; letter-spacing: -0.012em; color: var(--ink-2); max-width: 30em; }
.source { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--muted); letter-spacing: -0.006em; }
@media (min-width: 768px) {
  .figures li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding: 40px 0; }
  .fig-text p:first-child { font-size: 21px; }
}

/* ---------- channels: one card per service, its mark, and a short example chat in that service's manner ---------- */
.sprite { position: absolute; }
.mark { display: block; flex: none; }
.mark-instagram { fill: var(--ink); }
.mark-whatsapp { fill: #25D366; }
.mark-facebook { fill: #0866FF; }
.mark-youtube { fill: #FF0000; }
.works-with { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 22px; }
.channel-list {
  display: grid; gap: 16px;
  margin: 72px auto 0;
}
.ch { display: flex; flex-direction: column; padding: 24px 24px 22px; border-radius: 28px; background: var(--bg); }
.ch-head { display: flex; align-items: center; gap: 12px; }
.channel-list h3 { font-size: 28px; font-weight: 600; line-height: 1.14; letter-spacing: -0.022em; }
.channel-list p { margin-top: 12px; font-size: 17px; color: var(--muted); max-width: 24em; }
/* The example chat is a drawing: our own layout, with the bubble colour each service is known for. */
.ch-chat { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 28px; font-size: 15px; line-height: 1.35; letter-spacing: -0.01em; }
.ch-in, .ch-out { max-width: 88%; padding: 9px 13px; border-radius: 18px; }
.ch-in { align-self: flex-start; border-bottom-left-radius: 5px; background: var(--surface-2); color: var(--ink); }
.ch-out { align-self: flex-end; border-bottom-right-radius: 5px; color: #FFFFFF; }
.ch-by { align-self: flex-end; font-size: 12px; color: var(--muted); }
/* Says plainly that the chat is an example, the way a chat shows "Today" above its first message. */
.ch-top { display: none; }
.ch.ch-youtube .ch-in.ch-b { margin-top: 12px; }
.ch-eg { align-self: center; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.ch-instagram .ch-out { background-color: #833AB4; background-image: linear-gradient(135deg, #833AB4, #C13584); }
.ch-whatsapp .ch-out { background: #005C4B; }
.ch-facebook .ch-out { background: #0866FF; }
/* YouTube answers are comments, not bubbles: the reply sits indented under the comment. */
.ch.ch-youtube .ch-in, .ch.ch-youtube .ch-out { max-width: none; padding: 0; border-radius: 0; background: none; color: var(--ink); align-self: stretch; }
.ch.ch-youtube .ch-out { margin-top: 6px; padding-left: 14px; border-left: 2px solid var(--line); }
.ch.ch-youtube b { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.ch.ch-youtube .ch-by { align-self: flex-start; padding-left: 16px; }
@media (min-width: 600px) { .channel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .channel-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ch { min-height: 360px; }
}
.marks { margin-top: 20px; font-size: 12px; color: var(--muted); }

/* ---------- the same night, twice: four messages on four channels, unanswered and answered ---------- */
.night { display: grid; gap: 16px; margin: 72px auto 0; max-width: 980px; }
@media (min-width: 900px) { .night { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.night-col { display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: 28px; background: var(--surface-2); }
.night-title { font-size: 21px; font-weight: 600; letter-spacing: -0.016em; }
.night-without .night-title { color: var(--muted); }
.night-rows { display: grid; gap: 18px; margin: 22px 0; padding: 0; list-style: none; }
.night-rows li { display: grid; grid-template-columns: 62px 20px minmax(0, 1fr); gap: 0 10px; align-items: start; font-size: 15px; line-height: 1.35; letter-spacing: -0.01em; }
.night-rows time { padding-top: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.night-rows .mark { margin-top: 8px; }
.night-msgs { display: flex; flex-direction: column; gap: 6px; }
.night .ch-in { background: var(--bg); }
.night-none { align-self: flex-start; padding-left: 4px; font-size: 12px; color: var(--muted); }
.night-end { margin-top: auto; padding-top: 18px; font-size: 15px; color: var(--muted); }
.night-rows + .night-end { border-top: 1px solid var(--line); }
/* YouTube has no bubble colour of its own that carries white text, so its answer is the plain inverse. */
.night .ch-youtube .ch-out { background: var(--ink); color: var(--bg); }
.night-with .night-end { color: var(--ink); font-weight: 600; }

/* ---------- stories: five shapes, one idea each ---------- */
.t-display {
  font-size: clamp(44px, 4.2vw + 20px, 80px); /* never above the hero H1 */
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.036em;
  text-wrap: balance;
}
.points {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 28px; font-size: 17px; color: var(--ink);
}
@media (min-width: 768px) {
  .points { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 8px 40px; }
}
/* Points beside a picture read as a short list with hairlines, left aligned on wide screens. */
.points-stack { gap: 0; }
@media (min-width: 768px) { .points-stack { flex-direction: column; align-items: center; } }
@media (min-width: 768px) {
  .split .points-stack { align-items: stretch; margin-top: 40px; }
  .split .points-stack li { padding: 14px 0; border-top: 1px solid var(--line); }
  .split .points-stack li:last-child { border-bottom: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .bleed .points-stack { align-items: stretch; margin-top: 40px; }
  .bleed .points-stack li { padding: 14px 0; border-top: 1px solid var(--line); }
  .bleed .points-stack li:last-child { border-bottom: 1px solid var(--line); }
}
.story-bleed, .stage { overflow: clip; }

/* Story 1: text in the left column, the chat flush with the right edge of the screen. */
.bleed { display: grid; gap: 64px; }
.bleed-text { padding: 0 var(--gutter); max-width: 720px; margin: 0 auto; text-align: center; }
.bleed-text .lead { margin-top: 20px; }
.bleed-shot { padding: 0 var(--gutter); }
.bleed-shot img { margin: 0 auto; width: 100%; max-width: 848px; border-radius: 18px; box-shadow: var(--shot-edge); }
/* Phone: the chat runs off the right edge here too, as on desktop. */
@media (max-width: 599px) {
  .bleed-shot { padding-right: 0; }
  .bleed-shot img { max-width: 390px; margin: 0 0 0 auto; border-radius: 22px 0 0 22px; }
}
@media (min-width: 900px) {
  .bleed {
    grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 420px) minmax(48px, 88px) minmax(0, 672px) minmax(0, 1fr);
    align-items: center; gap: 0;
  }
  .bleed-text { grid-column: 2; padding: 0; margin: 0; text-align: left; }
  .bleed-shot { grid-column: 4 / -1; padding: 0; }
  .bleed-shot img { max-width: 1120px; margin: 0; border-radius: 20px 0 0 20px; }
}

/* Story 2: centred, the review close-up under the words. */
.shot { margin: 72px auto 0; }
.shot img { margin: 0 auto; }
.shot-review img { width: 848px; border-radius: 18px; box-shadow: var(--shot-edge); }
@media (max-width: 599px) { .shot-review img { width: 100%; max-width: 360px; border-radius: 22px; } }

/* Story 3: the list on the left, words on the right. */
.split { display: grid; gap: 64px; }
.split-text { text-align: center; max-width: 640px; margin: 0 auto; }
.split-text .lead { margin-top: 20px; }
.split-shot img { width: 100%; max-width: 390px; margin: 0 auto; border-radius: 24px; box-shadow: var(--shot-edge); }
@media (min-width: 768px) {
  .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 96px; align-items: center; }
  .split-text { grid-column: 2; grid-row: 1; text-align: left; margin: 0; }
  .split-shot { grid-column: 1; grid-row: 1; }
  .split-shot img { max-width: 390px; margin: 0 0 0 auto; border-radius: 28px; } /* 390 = the 1x file: no upscaling on 1x screens */
}
@media (min-width: 768px) and (max-width: 899px) { .split { gap: 48px; }
}
/* Stacked: the picture comes first, so this story does not read like Story 2 (words, then picture). */
@media (max-width: 767px) { .split-shot { order: -1; } }

/* Story 4: a dark band, very large type beside the phone. */
.stage-grid { display: grid; gap: 64px; justify-items: center; text-align: center; }
.stage-text { max-width: 720px; }
.stage-text .lead { margin: 28px auto 0; max-width: 30em; }
.device img {
  width: 300px; border-radius: 40px;
  box-shadow: 0 0 0 8px #2C2C2E, 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
@media (min-width: 768px) {
  .stage-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; text-align: left; justify-items: stretch; }
  .stage-text .lead { margin-left: 0; font-size: 24px; line-height: 1.33; }
  .device { justify-self: end; }
  .device img { width: 300px; }
}
/* 768-1099: a fixed 300px column, so the 7fr/5fr split does not squeeze the phone to about 267px. */
@media (min-width: 768px) and (max-width: 1099px) { .stage-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (min-width: 1100px) {
  .device img { width: 340px; border-radius: 46px; }
}

/* Story 5: words only, a quiet moment with a lot of air. */
.quiet { text-align: center; padding: calc(var(--section-y) * 1.25) 0; }
.quiet .t-display { max-width: 980px; margin: 0 auto; }
.quiet-lead { max-width: 640px; margin: 28px auto 0; }
.fine { margin-top: 24px; font-size: 14px; line-height: 1.4; letter-spacing: -0.006em; color: var(--muted); }

/* Phone: long leads and points read left aligned (ragged both sides is hard to read). The hero and closing stay centred. */
@media (max-width: 599px) {
  .sec-head, .bleed-text, .split-text, .stage-text, .quiet, .how .steps-note { text-align: left; }
  .sec-head .lead, .stage-text .lead, .quiet-lead { margin-left: 0; }
  .points { align-items: flex-start; }
  .points li { text-wrap: balance; }
}

/* ---------- how it works ---------- */
.steps { counter-reset: step; display: grid; gap: 0 40px; margin: 72px auto 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; padding: 28px 0 32px; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 16px;
  font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -0.035em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.steps p { font-size: 21px; line-height: 1.38; letter-spacing: -0.014em; color: var(--muted); max-width: 22em; }
.steps strong { font-weight: 600; color: var(--ink); }
.steps-note { margin-top: 40px; text-align: center; font-size: 17px; color: var(--muted); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li::before { font-size: 72px; margin-bottom: 24px; }
  .steps-note { margin-top: 56px; }
}

/* ---------- security ---------- */
.trust-grid { display: grid; gap: 48px; }
.trust-list li { padding: 28px 0; border-top: 1px solid var(--line); }
.trust-list li:last-child { border-bottom: 1px solid var(--line); }
.trust-list p { font-size: 19px; line-height: 1.42; letter-spacing: -0.012em; color: var(--muted); max-width: 32em; text-wrap: pretty; }
.trust-list strong { font-weight: 600; color: var(--ink); }
.trust-20x picture { margin-bottom: 20px; }
.trust-20x picture.on-light { display: block; }
.wordmark { height: 44px; width: auto; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .trust-20x picture.on-light { display: none; }
  :root:not([data-theme="light"]) .trust-20x picture.on-dark { display: block; }
}
:root[data-theme="dark"] .trust-20x picture.on-light { display: none; }
:root[data-theme="dark"] .trust-20x picture.on-dark { display: block; }
@media (min-width: 768px) { .trust-list p { font-size: 21px; line-height: 1.38; } }
@media (min-width: 900px) {
  .trust-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
  .trust-list li:first-child { padding-top: 0; border-top: 0; }
}

/* ---------- questions ---------- */
.faq-grid { display: grid; gap: 48px; }
.qa { padding: 28px 0; border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -0.016em; }
.qa p { margin-top: 10px; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 40em; }
@media (min-width: 768px) {
  .qa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; padding: 32px 0; }
  .qa p { margin-top: 0; font-size: 19px; line-height: 1.45; }
}
@media (min-width: 1100px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
  .faq-title { position: sticky; top: 96px; }
}

/* ---------- closing ---------- */
.closing { text-align: center; padding: calc(var(--section-y) * 1.1) 0; }
.closing .t-display { max-width: 900px; margin: 0 auto; }
.closing .lead { margin: 24px auto 0; }
.closing .actions { margin-top: 40px; }

/* ---------- footer ---------- */
.foot { padding: 48px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; gap: 24px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.foot-brand .brand-name { font-size: 17px; }
.foot-links ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--ink-2); }
.updated { color: var(--muted); }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 1fr auto auto; align-items: center; gap: 16px 40px; }
  .updated { grid-column: 1 / -1; }
}

/* Theme control: only useful with JavaScript, so it stays hidden without it. */
.theme { display: none; }
.js .theme {
  display: inline-flex; padding: 2px; gap: 2px; justify-self: start;
  border-radius: 980px; background: var(--surface-3);
}
.theme button {
  min-height: 44px; min-width: 72px; padding: 0 14px;
  border: 0; border-radius: 980px; background: transparent; color: var(--ink-2);
  font: 500 14px/1 var(--font); letter-spacing: -0.006em; cursor: pointer;
  transition: background-color 120ms var(--ease);
}
.theme button[aria-pressed="true"] { background: var(--thumb); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

/* ---------- scroll motion ----------
   Only under html.motion-on, which the head script sets before first paint (not under reduced motion; removed again if
   site.js has not started within 1.5 s). site.js writes on <html>: --vh, and --NAME-top / --NAME-len for each
   [data-motion="NAME"] block; --t (top in px) on every .reveal and on .statement, for the entrances; and --sy (scroll
   position in px, smoothed) on each element below that reads it (.nav, .hero, .pin, .stage, .steps, .reveal, .statement),
   only while it is within a screen of the view. Everything below turns those numbers into transform, opacity and clip-path. */
:root { --sy: 0; --vh: 900; --hero-top: 600; --story-top: 100000; --story-len: 1000; --takeover-top: 100000; --takeover-len: 1000; --steps-top: 100000; --steps-len: 1000; }
.pin-frame, .pin-dots, .ai-switch, .bubbles { display: none; }

/* Hero on load: a 12px rise, transform only (the headline paints at full opacity from the first frame). translate, not
   transform, so it adds to the scroll motion; no fill after the end, so the scroll values take over. Not the picture:
   it is the page's largest element (the LCP element), and rising it made LCP later in a 9-run test during slice 2. */
@keyframes rise { from { translate: 0 12px; } }
.motion-on .hero .t-hero, .motion-on .hero-lead, .motion-on .hero .actions, .motion-on .hero .powered { animation: rise 600ms var(--ease) backwards; }
.motion-on .hero-lead { animation-delay: 80ms; }
.motion-on .hero .actions, .motion-on .hero .powered { animation-delay: 160ms; }

/* Entrances: start when the block's top is 10% inside the viewport, done 25% of a viewport later; scroll-linked, so
   nothing waits half-faded. --d delays one block against its row (share of a viewport). Unmeasured (--t unset) = shown. */
.motion-on .reveal {
  --e: clamp(0, (var(--sy) + var(--vh) * 0.9 - var(--t, -100000) - var(--d, 0) * var(--vh)) / (var(--vh) * 0.25), 1);
  opacity: var(--e); transform: translateY(calc((1 - var(--e)) * 24px));
}
.motion-on .pin-stage .reveal { --e: 1; }
.measuring .reveal, .measuring .reveal > * { transform: none !important; }

/* Visually hidden, still read (the sentence behind a word-split paragraph). */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* "What is Stroza?": the statement lights up word by word (site.js wraps the words; 22% to full) as it rises from 80% to 35% of the screen. */
.motion-on .statement { --s: clamp(0, (var(--sy) + var(--vh) * 0.8 - var(--t, -100000)) / (var(--vh) * 0.45), 1); }
.motion-on .statement [aria-hidden] > span { opacity: calc(0.22 + 0.78 * clamp(0, (var(--s) * (var(--n, 50) + 6) - var(--i, 0)) / 6, 1)); }

/* Figures: each row's hairline draws left to right while its words rise; site.js counts the number up once. */
.motion-on .figures .reveal { position: relative; border-top-color: transparent; opacity: 1; transform: none; }
.motion-on .figures .reveal::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--line); transform: scaleX(var(--e)); transform-origin: 0 0;
}
.motion-on .figures .reveal > * { opacity: var(--e); transform: translateY(calc((1 - var(--e)) * 24px)); }

/* Channels: entries side by side arrive one after another. */
.motion-on .night .ch-in { --b: clamp(0, (var(--e) - 0.45) * 4, 1); opacity: var(--b); transform: translateY(calc((1 - var(--b)) * 10px)); }
.motion-on .night .ch-out, .motion-on .night .ch-by, .motion-on .night-none { --b: clamp(0, (var(--e) - 0.7) * 4, 1); opacity: var(--b); transform: translateY(calc((1 - var(--b)) * 10px)); }
@media (min-width: 600px) { .channel-list li:nth-child(even) { --d: 0.04; } }
@media (min-width: 1100px) { .channel-list li:nth-child(3) { --d: 0.08; } .channel-list li:nth-child(4) { --d: 0.12; } }

/* Story 4: the phone lags the words by 40px over the band; a small switch (decorative) turns off as the band passes the middle. */
.motion-on .stage {
  --q: clamp(0, (var(--sy) + var(--vh) - var(--takeover-top)) / (var(--vh) + var(--takeover-len)), 1);
  --flip: clamp(0, (var(--sy) + var(--vh) / 2 - var(--takeover-top) - var(--takeover-len) / 2) / 80, 1);
}
.motion-on .device { transform: translateY(calc((var(--q) - 0.5) * 40px)); }
.motion-on .ai-switch { display: inline-block; vertical-align: top; position: relative; width: 51px; height: 31px; margin-bottom: 28px; border-radius: 16px; background: #3A3A3C; }
.motion-on .ai-switch::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); opacity: calc(1 - var(--flip)); }
.motion-on .ai-switch i { position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); transform: translateX(calc((1 - var(--flip)) * 20px)); }

/* Story 5: the headline's words rise in one after another; a comment and a private message (shapes only) follow. */
.motion-on .quiet .t-display, .motion-on .bubbles { opacity: 1; transform: none; }
.motion-on .quiet .t-display [aria-hidden] > span {
  display: inline-block; --w: clamp(0, (var(--e) - var(--i, 0) * 0.1) / 0.7, 1);
  opacity: var(--w); transform: translateY(calc((1 - var(--w)) * 0.35em));
}
.motion-on .quiet-lead { --d: 0.03; }
.motion-on .quiet .fine { --d: 0.05; }
.motion-on .bubbles { --d: 0.06; display: flex; flex-direction: column; gap: 12px; width: min(100%, 360px); margin: 48px auto 0; }
.bubbles i { display: block; height: 44px; border-radius: 22px; }
.bubbles i:first-child { width: 70%; align-self: flex-start; border-bottom-left-radius: 6px; background: var(--surface-3); opacity: clamp(0, var(--e) * 2, 1); transform: translateY(calc((1 - clamp(0, var(--e) * 2, 1)) * 16px)); }
.bubbles i:last-child { width: 82%; align-self: flex-end; border-bottom-right-radius: 6px; background: linear-gradient(90deg, #8639B1, #B93589); opacity: clamp(0, var(--e) * 2 - 1, 1); transform: translateY(calc((1 - clamp(0, var(--e) * 2 - 1, 1)) * 16px)); }
@media (max-width: 599px) { .motion-on .bubbles { margin-left: 0; } }

/* Live in three steps: a hairline draws along the steps (across on wide screens, down on phones); each number fills as it arrives. */
.motion-on .steps { position: relative; --q: clamp(0, (var(--sy) + var(--vh) * 0.85 - var(--steps-top)) / (var(--vh) * 0.4), 1); }
.motion-on .steps::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 1px; background: var(--ink); transform: scaleX(var(--q)); transform-origin: 0 0; }
.motion-on .steps li::before { opacity: calc(0.18 + 0.82 * clamp(0, (var(--q) - var(--k, 0)) * 8, 1)); }
.steps li:nth-child(2) { --k: 0.36; }
.steps li:nth-child(3) { --k: 0.72; }
@media (max-width: 767px) {
  .motion-on .steps { --q: clamp(0, (var(--sy) + var(--vh) * 0.6 - var(--steps-top)) / var(--steps-len), 1); }
  .motion-on .steps::before { right: auto; bottom: 0; width: 1px; height: auto; transform: scaleY(var(--q)); }
  .motion-on .steps li { padding-left: 24px; }
  .steps li:nth-child(2) { --k: 0.3; }
  .steps li:nth-child(3) { --k: 0.62; }
}

/* Security: the 20X wordmark settles from 0.9; the points arrive in turn. */
.motion-on .trust-20x picture { transform: scale(calc(0.9 + 0.1 * var(--e))); transform-origin: 0 50%; }
@media (min-width: 900px) { .trust-list li:nth-child(2) { --d: 0.03; } .trust-list li:nth-child(3) { --d: 0.06; } .trust-list li:nth-child(4) { --d: 0.09; } }

/* Closing: the headline grows from 0.94 into place; the line and the button follow. */
.motion-on .closing .t-display { transform: scale(calc(0.94 + 0.06 * var(--e))); }
.motion-on .closing .lead { --d: 0.03; }
.motion-on .closing .actions { --d: 0.06; }

/* Navigation bar: transparent at the top, frosted and 56 -> 48px over the first 64px. The box stays 56px (no layout shift). */
.motion-on .nav { --n: clamp(0, var(--sy) / 64, 1); background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.motion-on .nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--nav-solid); opacity: var(--n);
  transform: scaleY(calc(1 - var(--n) / 7)); transform-origin: 0 0;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .motion-on .nav::before { background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .motion-on .nav::before { background: var(--nav-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.motion-on .nav-bar { height: 56px; transform: translateY(calc(var(--n) * -4px)); }

/* Hero: words drift up and fade; the picture grows from 0.86 to 1 until its top meets the bar, then stays pinned for 40% of a screen. */
.motion-on .hero {
  --g: clamp(0, var(--sy) / (var(--hero-top) - 56), 1);
  --f: clamp(0, var(--sy) / (var(--hero-top) * 0.6), 1);
}
.motion-on .hero .t-hero, .motion-on .hero-lead { opacity: calc(1 - var(--f)); transform: translateY(calc(var(--f) * -60px)); }
.motion-on .hero .actions { opacity: calc(1 - var(--f) * 1.7); transform: translateY(calc(var(--f) * -60px)); }
.motion-on .hero-pin::after { content: ""; display: block; height: 40vh; height: 40svh; }
/* A gap under the picture so it leaves as a rounded card instead of a hard cut at the next section. On .hero-shot, not .hero-pin: the pin ends where the picture unpins. */
.motion-on .hero-shot { padding-bottom: 48px; }
/* Phone: the picture is much shorter than the screen, so a long hold is mostly empty space; hold briefly. */
@media (max-width: 599px) { .motion-on .hero-pin::after { height: 10vh; height: 10svh; } .motion-on .hero-shot { padding-bottom: 32px; } }
.motion-on .hero-shot picture {
  display: block; position: sticky; top: 56px;
  transform-origin: 50% 0; transform: scale(calc(0.86 + 0.14 * var(--g)));
  filter: drop-shadow(0 0 1px var(--line)) drop-shadow(0 30px 40px rgba(0, 0, 0, 0.14));
}
/* Radius 24 -> 12px as seen on screen, so divide by the scale. clip-path, not border-radius: no repaint of the box. */
.motion-on .hero-shot img { border-radius: 0; box-shadow: none; clip-path: inset(0 round calc((24px - 12px * var(--g)) / (0.86 + 0.14 * var(--g)))); }

/* Pinned story: a black card opens to full bleed, pins, steps through three stories, closes. */
.motion-on .pin {
  --P: clamp(0, (var(--sy) - var(--story-top)) / var(--story-len), 1);
  --in: clamp(0, (var(--sy) + var(--vh) - var(--story-top)) / var(--vh), 1);
  --opened: clamp(0, (var(--in) - 0.7) * 3.34, 1);
  --open: calc(var(--opened) - clamp(0, (var(--P) - 0.9) * 10, 1));
  --t1: clamp(0, (var(--P) - 0.24) * 6.25, 1);
  --t2: clamp(0, (var(--P) - 0.55) * 6.25, 1);
  height: 340vh;
  background: var(--s-grey);
}
.motion-on .pin-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip;
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 48px; align-items: center;
  padding: 56px 0 24px max(calc(var(--gutter) + 24px), calc(50% - 656px)); /* clear of the 40px card inset; the frame runs off the right */
  clip-path: inset(calc((1 - var(--open)) * 40px) round calc((1 - var(--open)) * 28px));
}
.motion-on .pin-stage > section { grid-area: 1 / 1; padding: 0; background: none; }
.motion-on .pin-stage .bleed, .motion-on .pin-stage .wrap { display: block; padding: 0; max-width: none; }
.motion-on .pin-stage .bleed-text, .motion-on .pin-stage .sec-head, .motion-on .pin-stage .split-text { max-width: none; margin: 0; padding: 0; text-align: left; }
.motion-on .pin-stage .bleed-shot, .motion-on .pin-stage .shot, .motion-on .pin-stage .split-shot { display: none; }
.motion-on .pin-stage .t-section { font-size: clamp(30px, 1.4vw + 20px, 44px); }
.motion-on .pin-stage .lead { margin: 16px 0 0; max-width: none; font-size: 19px; line-height: 1.42; text-wrap: pretty; }
.motion-on .pin-stage .points { flex-direction: column; align-items: stretch; gap: 0; margin-top: 28px; font-size: 17px; }
.motion-on .pin-stage .points li { padding: 12px 0; border-top: 1px solid var(--line); text-wrap: pretty; }
.motion-on .pin-stage .points li:last-child { border-bottom: 1px solid var(--line); }
/* Step words: the old ones are fully out (down 24px, by t 0.4) before the new ones start (up from 32px, from t 0.4). */
.motion-on .pin-stage > section:nth-of-type(1) { --o: min(1, var(--t1) * 2.5); opacity: calc(1 - var(--o)); transform: translateY(calc(var(--o) * 24px)); }
.motion-on .pin-stage > section:nth-of-type(2) {
  --i: clamp(0, (var(--t1) - 0.4) / 0.6, 1); --o: min(1, var(--t2) * 2.5);
  opacity: calc(var(--i) - var(--o)); transform: translateY(calc((1 - var(--i)) * 32px + var(--o) * 24px));
}
.motion-on .pin-stage > section:nth-of-type(3) { --i: clamp(0, (var(--t2) - 0.4) / 0.6, 1); opacity: var(--i); transform: translateY(calc((1 - var(--i)) * 32px)); }
/* One frame, one screen: over t 0.3-0.7 of a change the new screen wipes in from the right edge inside the same frame while the
   old one is cut back from the right, so at every scroll position each point of the frame shows exactly one screen (never two,
   never none). The clip sits on <picture> (the screen's box) and the drift on <img>, so the seam stays exact while the new
   screen settles 12px leftward. Wide screens: the picture is up to 64% of the screen high; the frame runs off the right edge
   while the screen inside stops 24px short of it, so the app's right-hand controls (Stroza AI switch, Approve) stay in view;
   while the card is inset it holds 24px further left so the 40px inset does not cut the screen. */
.motion-on .pin { --b1: clamp(0, (var(--t1) - 0.3) / 0.4, 1); --b2: clamp(0, (var(--t2) - 0.3) / 0.4, 1); }
/* A lit edge on the incoming screen marks the seam, so a half-wiped frame reads as a change, not one broken screen. */
.motion-on .pin-pic { position: relative; }
.motion-on .pin-pic:nth-of-type(2) { --w: var(--b1); }
.motion-on .pin-pic:nth-of-type(3) { --w: var(--b2); }
.motion-on .pin-pic:not(:first-child)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-left: 1px solid #F5F5F7; box-shadow: inset 24px 0 24px -24px rgba(245, 245, 247, 0.35);
  opacity: min(1, var(--w) * (1 - var(--w)) * 12); transform: translateX(calc((1 - var(--w)) * 100%));
}
.motion-on .pin-frame {
  display: grid; grid-area: 1 / 2; justify-self: start; overflow: clip;
  width: calc(100% + 40px); transform: translateX(calc((1 - var(--open)) * -24px));
  background: #000000; border-radius: 16px 0 0 16px; box-shadow: 0 0 0 1px #2C2C2E;
}
.motion-on .pin-pic { grid-area: 1 / 1; display: block; justify-self: start; width: min(calc(64vh * 1.7257), calc(100% - 64px)); width: min(calc(64svh * 1.7257), calc(100% - 64px)); }
.motion-on .pin-pic img { width: 100%; max-width: none; margin: 0; }
.motion-on .pin-pic:nth-of-type(1) { clip-path: inset(0 calc(var(--b1) * 100%) 0 0); }
.motion-on .pin-pic:nth-of-type(1) img { transform: scale(calc(1.03 - 0.03 * var(--opened))); }
.motion-on .pin-pic:nth-of-type(2) { clip-path: inset(0 calc(var(--b2) * 100%) 0 calc((1 - var(--b1)) * 100%)); }
.motion-on .pin-pic:nth-of-type(2) img { transform: translateX(calc((1 - var(--b1)) * 12px)); }
.motion-on .pin-pic:nth-of-type(3) { clip-path: inset(0 0 0 calc((1 - var(--b2)) * 100%)); }
.motion-on .pin-pic:nth-of-type(3) img { transform: translateX(calc((1 - var(--b2)) * 12px)); }
/* Three-dot step mark under the words column, level with the picture's bottom edge. */
.motion-on .pin-dots {
  display: flex; gap: 10px; grid-area: 1 / 1; align-self: center; justify-self: start;
  transform: translateY(calc(32vh + 32px)); transform: translateY(calc(32svh + 32px));
}
.pin-dots i { width: 7px; height: 7px; border-radius: 50%; background: #F5F5F7; }
.pin-dots i:nth-child(1) { opacity: calc(0.3 + 0.7 * (1 - var(--t1))); }
.pin-dots i:nth-child(2) { opacity: calc(0.3 + 0.7 * (var(--t1) - var(--t2))); }
.pin-dots i:nth-child(3) { opacity: calc(0.3 + 0.7 * var(--t2)); }

/* Short wide screens (1280x720): tighter words, so the last point stays well clear of the dots. */
@media (min-width: 960px) and (max-height: 780px) {
  .motion-on .pin-stage .lead { font-size: 17px; }
  .motion-on .pin-stage .points { margin-top: 20px; font-size: 16px; }
  .motion-on .pin-stage .points li { padding: 9px 0; }
}
/* 960-1099 (1024x768): two columns still, with a narrower words column, so the picture is not a small box in the middle. */
@media (min-width: 960px) and (max-width: 1099px) { .motion-on .pin-stage { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 40px; } }
/* Below 960px the columns do not fit: picture on top, words under it, shorter scroll, centred in the stage. The picture gives way so the words always fit. */
@media (max-width: 959px) {
  .motion-on .pin { height: 280vh; }
  .motion-on .pin-stage {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: safe center; align-items: start; row-gap: 44px;
    padding: 60px var(--gutter) 16px;
    clip-path: inset(calc((1 - var(--open)) * 12px) round calc((1 - var(--open)) * 24px));
  }
  .motion-on .pin-frame { grid-area: 1 / 1; justify-self: center; transform: none; width: min(100%, calc((100vh - 470px) * 1.7257)); width: min(100%, calc((100svh - 470px) * 1.7257)); border-radius: 16px; }
  .motion-on .pin-pic { width: 100%; }
  .motion-on .pin-stage > section { grid-area: 2 / 1; justify-self: center; width: 100%; max-width: 720px; }
  .motion-on .pin-dots { grid-area: 1 / 1; align-self: end; justify-self: center; transform: translateY(21px); }
}
@media (max-width: 599px) {
  .motion-on .pin-stage { row-gap: 40px; }
  .motion-on .pin-frame { width: min(100%, calc(100vh - 420px)); width: min(100%, calc(100svh - 420px)); border-radius: 20px; }
  .motion-on .pin-stage .t-section { font-size: 28px; }
  .motion-on .pin-stage .lead { margin-top: 10px; font-size: 16px; line-height: 1.4; }
  .motion-on .pin-stage .points { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
  .motion-on .pin-stage .points li, .motion-on .pin-stage .points li:last-child { padding: 1px 0; border: 0; }
}

/* Apple's system font (first in the font list) already sets its own letter-spacing for each size. The tightening in
   this file is tuned for Inter, which every other device shows, and would stack on top of it. This test is true only
   in Safari and in every browser on iPhone and iPad. Not seen on a real Apple device yet. */
@supports (font: -apple-system-body) {
  *, *::before, *::after { letter-spacing: normal !important; }
}

/* ---------- channels as a pinned story (motion on): one platform at a time, its question, then the answer ----------
   --P runs 0 to 1 over the pinned length; each of the four platforms owns a quarter. A platform is fully gone before the
   next one starts to show, so two are never on screen together. */
:root { --chan-top: 100000; --chan-len: 1000; }
.chan-dots { display: none; }
.chan li:nth-child(1) { --i: 0; --first: 1; }
.chan li:nth-child(2) { --i: 1; }
.chan li:nth-child(3) { --i: 2; }
.chan li:nth-child(4) { --i: 3; --last: 1; }
.motion-on .chan { height: 400vh; padding: 0; --P: clamp(0, (var(--sy) - var(--chan-top)) / var(--chan-len), 1); }
.motion-on .chan-stage { position: sticky; top: 0; display: flex; align-items: center; height: 100vh; height: 100svh; padding-top: 48px; overflow: hidden; }
.motion-on .chan-stage .wrap { width: 100%; }
.motion-on .chan .t-section { font-size: clamp(28px, 1.6vw + 16px, 44px); }
.motion-on .chan .lead { margin-top: 10px; font-size: 17px; }
.motion-on .chan .ch, .motion-on .chan-dots li {
  --x: calc(var(--P) * 4 - var(--i));
  --in: clamp(0, var(--x) * 8 + var(--first, 0), 1);
  --out: clamp(0, (1 - var(--x)) * 8 + var(--last, 0), 1);
}
.motion-on .chan .channel-list { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 1040px; margin-top: 36px; }
.motion-on .chan .ch {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); grid-template-rows: 1fr auto auto 1fr; column-gap: 72px; align-items: start;
  min-height: 0; padding: 0; border-radius: 0; background: none;
  opacity: calc(var(--in) * var(--out)); transform: translateY(calc((1 - var(--in)) * 24px));
}
.motion-on .chan .ch-head { grid-column: 1; grid-row: 2; gap: 18px; }
.motion-on .chan .ch-head .mark { width: 64px; height: 64px; }
.motion-on .chan .ch h3 { font-size: clamp(44px, 3.4vw + 18px, 72px); letter-spacing: -0.032em; }
.motion-on .chan .ch > p { grid-column: 1; grid-row: 3; margin-top: 20px; font-size: 24px; line-height: 1.33; max-width: 18em; }
.motion-on .chan .ch-chat {
  grid-column: 2; grid-row: 1 / span 4; justify-content: flex-end; gap: 10px;
  height: min(580px, calc(100vh - 330px)); height: min(580px, calc(100svh - 330px)); min-height: 0; margin: 0; padding: 22px 22px 26px;
  border-radius: 44px; background: var(--bg); box-shadow: var(--shot-edge); overflow: hidden;
  font-size: 19px;
}
/* The phone's top line: whose chat this is, with the platform's mark. */
.motion-on .chan .ch-top { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; color: var(--ink); }
.motion-on .chan .ch-eg { margin: 10px 0 auto; }
.motion-on .chan .ch-by { font-size: 13px; }
.motion-on .chan .ch-in, .motion-on .chan .ch-out, .motion-on .chan .ch-by { --b: clamp(0, (var(--x) - var(--at)) * 10, 1); opacity: var(--b); transform: translateY(calc((1 - var(--b)) * 12px)); }
.chan .ch-in.ch-a { --at: 0.04; }
.chan .ch-out.ch-a { --at: 0.17; }
.chan .ch-in.ch-b { --at: 0.36; }
.chan .ch-out.ch-b, .chan .ch-by { --at: 0.5; }
/* The four marks under the stage show which platform is on. */
.motion-on .chan-dots { display: flex; align-items: center; gap: 20px; max-width: 1040px; margin: 28px auto 0; }
.motion-on .chan-dots li { opacity: calc(0.28 + 0.72 * var(--in) * var(--out)); }
@media (max-width: 899px) {
  .motion-on .chan .channel-list { margin-top: 20px; }
  .motion-on .chan .ch { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .motion-on .chan .ch-head { grid-row: 1; gap: 12px; }
  .motion-on .chan .ch-head .mark { width: 40px; height: 40px; }
  .motion-on .chan .ch h3 { font-size: 36px; }
  .motion-on .chan .ch > p { grid-row: 2; margin-top: 8px; font-size: 17px; }
  .motion-on .chan .ch-chat { grid-column: 1; grid-row: 3; height: calc(100vh - 430px); height: calc(100svh - 430px); min-height: 250px; margin-top: 18px; padding: 16px 16px 18px; border-radius: 32px; font-size: 16px; gap: 8px; }
  .motion-on .chan .ch-top { padding-bottom: 12px; font-size: 15px; }
  .motion-on .chan-dots { margin-top: 18px; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .motion-on .chan .lead { display: none; }
  .motion-on .chan .channel-list { margin-top: 20px; }
  .motion-on .chan .ch-chat { height: calc(100vh - 290px); height: calc(100svh - 290px); font-size: 17px; }
  .motion-on .chan-dots { margin-top: 18px; }
}
@media (max-width: 899px) and (max-height: 720px) { .motion-on .chan .lead { display: none; } .motion-on .chan .ch-chat { height: calc(100svh - 380px); } }
