/* Headroom — the long page. Warm paper, one ink, crimson only where Headroom speaks. */

:root {
  --bg: #fafaf7;
  --panel: #f2f1ec;
  --card: #fff;
  --ink: #1d1d1b;
  --ink-2: #4a4945;
  --muted: #8a8880;
  --line: rgba(29, 29, 27, 0.08);
  --crimson: #b81f37;
  --rose: #ff4d63;
  --hl: rgba(255, 77, 99, 0.16);
  --blue: #0a84ff;
  --code: #5e6ad2;
  --sell: #e8364f;
  --learn: #f0a020;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --max: 1120px;
  --gut: max(16px, 4vw);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 48px; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-size: 17px; line-height: 1.47; overflow-x: clip; }
/* once the crimson end owns the screen, the canvas behind the page is crimson too; Safari 26
   tints its top and bottom bars from the body background, so the body turns with it */
html[data-end-red], html[data-end-red] body { background: var(--crimson); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- shared bits ---------- */
.tile {
  --s: 1em;
  display: inline-block; flex: none; vertical-align: middle;
  width: var(--s); height: var(--s); object-fit: cover;
  border-radius: 23%;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08);
}
.tile-xs { --s: 18px; border-radius: 5px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.2s var(--out), background-color 0.2s;
}
.pill:active { transform: scale(0.97); }
.pill svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #000; }
.pill-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.04); }
.pill-sm { height: 38px; padding: 0 18px; font-size: 15px; }

.label {
  display: inline-block; align-self: flex-start;
  font: 500 13px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.bubble {
  position: relative; align-self: flex-end;
  max-width: 88%;
  background: var(--blue); color: #fff;
  font-size: 16.5px; line-height: 1.3; letter-spacing: -0.01em;
  padding: 8px 14px; border-radius: 19px;
}
.bubble::before, .bubble::after { content: ""; position: absolute; bottom: 0; height: 18px; }
.bubble::before { right: -7px; width: 20px; background: var(--blue); border-bottom-left-radius: 16px 14px; }
.bubble::after { right: -10px; width: 10px; background: var(--tail-bg, var(--panel)); border-bottom-left-radius: 10px; }
.t-c { --t: var(--code); }
.t-s { --t: var(--sell); }
.t-l { --t: var(--learn); }

/* ---------- HERO ---------- */
.hero { padding: 40px 12px 0; }
.hero-panel {
  position: relative;
  max-width: 1416px; margin: 0 auto;
  padding: 0 var(--gut) 40px;
}
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 24px 0;
}
.mark { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.mark img { width: 34px; height: 34px; border-radius: 23%; }
.top-links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.top-links a:hover { color: var(--ink); }

.hero-title {
  margin: 56px auto 0; text-align: center;
  font-size: clamp(42px, 6.4vw, 80px); line-height: 1.04; font-weight: 600; letter-spacing: -0.04em;
}
.h-line { display: block; text-wrap: balance; }
.rot {
  display: inline-block; vertical-align: bottom;
  height: 1.3em; overflow: hidden;
  transition: width 0.6s var(--out);
  margin: -0.11em 0 -0.15em;
}
.rot-track { position: relative; display: block; height: 100%; }
.rot-item { padding: 0 0.06em; width: max-content; }
.rot-item {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 0.16em; white-space: nowrap;
  height: 100%;
  opacity: 0; transform: translateY(70%); filter: blur(6px);
  transition: opacity 0.5s var(--out), transform 0.6s var(--out), filter 0.5s var(--out);
}
.rot-item[data-on] { opacity: 1; transform: none; filter: none; }
.rot-item[data-off] { opacity: 0; transform: translateY(-70%); filter: blur(6px); }
.rot-item .tile { --s: 0.78em; border-radius: 22%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 6px 16px -6px rgba(0, 0, 0, 0.3); }

.hero-sub {
  max-width: 640px; margin: 26px auto 0; text-align: center;
  font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); letter-spacing: -0.012em;
  text-wrap: pretty;
}
.hl {
  color: var(--ink); background: var(--hl); border-radius: 6px; padding: 1px 5px;
  white-space: nowrap; box-decoration-break: clone; -webkit-box-decoration-break: clone;
  transition: background-color 0.2s;
}
.hl:hover { background: rgba(255, 77, 99, 0.26); }
.hl svg { display: inline-block; vertical-align: -1px; margin-left: 3px; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* the two buttons that become fields */
.ctas { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.cta {
  --w: auto;
  position: relative; height: 52px; border-radius: 999px;
  display: grid;
  transition: width 0.5s var(--out), box-shadow 0.3s;
}
.cta-dark { background: var(--ink); color: #fff; }
.cta-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.04); }
.cta > * { grid-area: 1 / 1; }
.cta-face {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 24px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: opacity 0.25s;
}
.cta-face svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
.cta-field { display: flex; align-items: center; padding: 5px 5px 5px 22px; opacity: 0; pointer-events: none; transition: opacity 0.25s; min-width: 0; }
.cta-field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 17px; letter-spacing: -0.01em; }
.cta-dark input::placeholder { color: rgba(255, 255, 255, 0.5); }
.cta-light input::placeholder { color: var(--muted); }
.cta-go { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: transform 0.2s var(--out); }
.cta-go:active { transform: scale(0.92); }
.cta-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cta-dark .cta-go { background: #fff; color: var(--ink); }
.cta-light .cta-go { background: var(--ink); color: #fff; }
.cta[data-open] .cta-face { opacity: 0; pointer-events: none; }
.cta[data-open] .cta-field { opacity: 1; pointer-events: auto; transition-delay: 0.12s; }
.cta-light[data-open] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cta-note { min-height: 22px; margin-top: 12px; text-align: center; font-size: 15px; color: var(--muted); }
.cta-note[data-tone="error"] { color: var(--crimson); font-weight: 500; }
.cta-done { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 500; animation: pop 0.5s var(--spring) both; }
.cta-done svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } }

/* ---------- the stage ----------
   One day, told by the data: Gmail, Calendar and Stripe each prove a step, the step ticks
   itself on the phone and the score on the right moves. Stripe's charge closes the level.
   Proven state is [data-done]; .swap holds the before (.a) and after (.b) of any value. */
.stage {
  position: relative;
  max-width: var(--max); margin: 56px auto 0;
  display: grid; grid-template-columns: 1fr 90px auto 90px 1fr; align-items: center;
  padding: 24px 0;
}
.stage-col { display: flex; flex-direction: column; gap: 14px; }
.col-label { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.outs .col-label { text-align: right; }

.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; transition: opacity 0.3s var(--out), transform 0.5s var(--out); }
.swap > .b { opacity: 0; transform: translateY(45%); }
[data-done] .swap > .a { opacity: 0; transform: translateY(-45%); }
[data-done] .swap > .b { opacity: 1; transform: none; }

.src, .out {
  transition: opacity 0.5s var(--out);
}
.src { display: flex; align-items: center; gap: 12px; padding: 10px 0; opacity: 0.4; }
.src .tile { --s: 38px; border-radius: 10px; }
.src p { display: grid; min-width: 0; }
.src b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.src-v, .src-r { grid-area: 2 / 1; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.15s; }
.src-v { opacity: 0; color: var(--ink-2); }
.src-r { opacity: 0; }
.src[data-reading] { opacity: 1; }
.src[data-reading] .src-r { opacity: 1; animation: blink 1s ease-in-out infinite; }
.src[data-read] { opacity: 1; }
.src[data-read] .src-v { opacity: 1; transition: opacity 0.3s 0.15s; }
.src[data-read] .src-r { opacity: 0; }
@keyframes blink { 50% { opacity: 0.4; } }

.wires { width: 100%; height: 300px; overflow: visible; }
.wires path { fill: none; stroke: rgba(29, 29, 27, 0.12); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.wires path[data-flow] { stroke: var(--blue); stroke-dasharray: 4 6; animation: flow 0.8s linear infinite; }
.wires-out path[data-flow] { stroke: var(--crimson); }
@keyframes flow { to { stroke-dashoffset: -20; } }

/* the score column */
.out { padding: 10px 0; opacity: 0.4; }
.out[data-done] { opacity: 1; }
.note-head { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.note-head b { color: var(--ink); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 0.02em; }
.note-head .swap { margin-left: auto; font-variant-numeric: tabular-nums; }
.note-head .swap > .b { color: var(--crimson); font-weight: 600; }
.note-title { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.dots { display: flex; gap: 4px; margin-top: 10px; }
.dots i { position: relative; flex: 1; height: 6px; border-radius: 99px; background: rgba(29, 29, 27, 0.08); overflow: hidden; }
.dots i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--crimson); transform: scaleX(0); transform-origin: left; }
.dots i.on::after { transform: none; }
.out[data-done] .dots i.nx::after { transform: none; transition: transform 0.6s 0.15s var(--out); }
.out-level { display: flex; align-items: center; gap: 12px; }
.out-level p { flex: 1; min-width: 0; display: grid; }
.out-level .note-title { margin-top: 2px; }
.out-level .ring { width: 40px; }

/* rings: Activity-style, closing once, then Apple Pay's check */
.ring { flex: none; display: block; overflow: visible; }
.ring-track { fill: none; stroke: rgba(184, 31, 55, 0.13); stroke-width: 5; }
.ring-fill {
  fill: none; stroke: var(--crimson); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0;
  transform: rotate(-90deg); transform-origin: 20px 20px;
}
.ring-check { fill: none; stroke: var(--crimson); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
[data-done] > .ring .ring-fill, [data-done] > .ring-xl .ring-fill { opacity: 1; stroke-dashoffset: 0; transition: opacity 0.1s, stroke-dashoffset 1.1s cubic-bezier(0.65, 0, 0.35, 1); }
[data-done] > .ring .ring-check { stroke-dashoffset: 0; transition: stroke-dashoffset 0.38s 1.05s cubic-bezier(0.3, 0, 0.2, 1); }
[data-done] > .ring { animation: ring-close 0.55s 1s var(--spring) both; }
@keyframes ring-close { 40% { transform: scale(1.09); } }

/* the phone */
.stage-phone { position: relative; justify-self: center; }
/* A real iPhone 15 Pro frame (oursky/mockuphone.com, Apache-2.0) over the live HTML screen.
   The frame is 1419 × 2796; its screen cut-out is 1179 × 2556 at (120, 120), i.e. 393 × 852 pt @3x,
   and it carries its own Dynamic Island. --w is the SCREEN width, 1pt = --w / 393. */
.iphone {
  --w: 280px; --pt: calc(var(--w) / 393);
  position: relative;
  width: calc(var(--w) * 1419 / 1179); aspect-ratio: 1419 / 2796;
  filter: drop-shadow(0 34px 40px rgba(40, 10, 20, 0.28));
}
.iphone::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: url(iphone-15-pro.webp) center / 100% 100% no-repeat;
}
.ip-screen {
  position: absolute; overflow: hidden;
  left: calc(120 / 1419 * 100%); top: calc(120 / 2796 * 100%);
  width: calc(1179 / 1419 * 100%); height: calc(2556 / 2796 * 100%);
  border-radius: calc(56 * var(--pt));
  background: #f2f2f7;
  font-size: calc(17 * var(--pt));
}
.ip-status { position: absolute; inset: 0 0 auto; height: calc(54 * var(--pt)); display: flex; align-items: center; justify-content: space-between; padding: calc(4 * var(--pt)) calc(34 * var(--pt)) 0 calc(44 * var(--pt)); font-weight: 600; font-size: calc(16 * var(--pt)); }
.ip-sys { display: flex; gap: calc(3 * var(--pt)); align-items: flex-end; }
.ip-sys b { width: calc(4 * var(--pt)); border-radius: 1px; background: #000; }
.ip-sys b:nth-child(1) { height: calc(6 * var(--pt)); }
.ip-sys b:nth-child(2) { height: calc(9 * var(--pt)); }
.ip-sys b:nth-child(3) { height: calc(12 * var(--pt)); width: calc(22 * var(--pt)); border-radius: calc(3.5 * var(--pt)); }
.ip-body { padding: calc(62 * var(--pt)) calc(16 * var(--pt)) 0; }
.ip-kick { font-size: calc(13 * var(--pt)); font-weight: 600; color: #8e8e93; text-transform: uppercase; letter-spacing: 0.02em; padding-left: calc(4 * var(--pt)); }
.ip-title { font-size: calc(34 * var(--pt)); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; padding-left: calc(4 * var(--pt)); }
.ip-card { background: #fff; border-radius: calc(22 * var(--pt)); margin-top: calc(12 * var(--pt)); }

.ip-level { display: flex; align-items: center; gap: calc(13 * var(--pt)); padding: calc(13 * var(--pt)) calc(16 * var(--pt)); }
.ip-level .ring { width: calc(46 * var(--pt)); }
.ip-level p { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.lv-k { font-size: calc(12 * var(--pt)); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--crimson); }
.ip-level b { font-size: calc(19 * var(--pt)); font-weight: 700; letter-spacing: -0.015em; }
.ip-level .swap { font-size: calc(13 * var(--pt)); color: #8e8e93; }
.ip-level .swap > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rows { padding: calc(2 * var(--pt)) 0; }
.rows li { display: flex; align-items: center; gap: calc(11 * var(--pt)); padding: calc(10 * var(--pt)) calc(14 * var(--pt)); }
.rows li + li { box-shadow: inset 0 calc(0.5 * var(--pt)) 0 rgba(60, 60, 67, 0.18); }
.chk { position: relative; flex: none; width: calc(22 * var(--pt)); height: calc(22 * var(--pt)); border-radius: 50%; box-shadow: inset 0 0 0 calc(1.5 * var(--pt)) #c7c7cc; }
.chk::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--crimson); transform: scale(0); transition: transform 0.4s var(--spring); }
.chk svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chk path { fill: none; stroke: #fff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.rows li[data-done] .chk::before { transform: none; }
.rows li[data-done] .chk path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.3s 0.18s cubic-bezier(0.3, 0, 0.2, 1); }
.rows p { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.rows b { font-weight: 500; font-size: calc(15 * var(--pt)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows p > span { font-size: calc(12.5 * var(--pt)); color: #8e8e93; white-space: nowrap; }
.rows .swap > .b { display: flex; align-items: center; gap: calc(5 * var(--pt)); color: #3c3c43; }
.rows .swap .tile { --s: calc(14 * var(--pt)); border-radius: calc(3.5 * var(--pt)); box-shadow: none; }
.rows em { flex: none; font-style: normal; font-size: calc(11.5 * var(--pt)); font-weight: 600; color: var(--t); background: color-mix(in srgb, var(--t) 12%, transparent); padding: calc(3 * var(--pt)) calc(8 * var(--pt)); border-radius: 99px; }
.row-code b { color: #8e8e93; }
.row-code .chk { box-shadow: inset 0 0 0 calc(1.5 * var(--pt)) #d1d1d6; }
/* the cursor points at the code row: the iOS "no" shake */
.row-code[data-nope] > :is(p, em) { animation: nope 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes nope { 15%, 85% { transform: translateX(calc(-2 * var(--pt))); } 30%, 70% { transform: translateX(calc(4 * var(--pt))); } 50% { transform: translateX(calc(-5 * var(--pt))); } }

.ip-say { display: flex; gap: calc(10 * var(--pt)); align-items: flex-start; margin-top: calc(12 * var(--pt)); padding: calc(12 * var(--pt)) calc(14 * var(--pt)); background: #fff; border-radius: calc(22 * var(--pt)); }
.ip-say img { flex: none; width: calc(26 * var(--pt)); height: calc(26 * var(--pt)); border-radius: 23%; }
.ip-say p { flex: 1; min-width: 0; font-size: calc(14.5 * var(--pt)); line-height: 1.35; letter-spacing: -0.005em; }
.ip-nums { display: grid; grid-template-columns: repeat(3, 1fr); padding: calc(12 * var(--pt)) calc(6 * var(--pt)); }
.ip-nums p { display: grid; justify-items: center; line-height: 1.2; }
.ip-nums p + p { box-shadow: inset calc(0.5 * var(--pt)) 0 0 rgba(60, 60, 67, 0.18); }
.ip-nums b { font-size: calc(22 * var(--pt)); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; justify-items: center; }
.ip-nums b > .b { color: var(--crimson); }
.ip-nums p > span { font-size: calc(12 * var(--pt)); color: #8e8e93; }

.ip-tabs {
  position: absolute; left: calc(16 * var(--pt)); right: calc(16 * var(--pt)); bottom: calc(24 * var(--pt));
  display: grid; grid-template-columns: repeat(4, 1fr); padding: calc(4 * var(--pt));
  border-radius: 999px; background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8);
  box-shadow: 0 calc(6 * var(--pt)) calc(20 * var(--pt)) rgba(0, 0, 0, 0.1), inset 0 0 0 calc(0.5 * var(--pt)) rgba(0, 0, 0, 0.06);
}
.ip-tabs span { display: grid; justify-items: center; gap: calc(1 * var(--pt)); padding: calc(6 * var(--pt)) 0 calc(5 * var(--pt)); border-radius: 999px; font-size: calc(10 * var(--pt)); font-weight: 600; color: #3c3c43; }
.ip-tabs span[data-on] { color: var(--crimson); background: rgba(0, 0, 0, 0.05); }
.ip-tabs svg { width: calc(22 * var(--pt)); height: calc(22 * var(--pt)); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ip-home { position: absolute; z-index: 3; left: 50%; bottom: calc(8 * var(--pt)); width: calc(140 * var(--pt)); height: calc(5 * var(--pt)); margin-left: calc(-70 * var(--pt)); border-radius: 99px; background: #000; }

/* the level clears: a sheet rises, the ring closes, the check draws */
.ip-dim { position: absolute; inset: 0; z-index: 2; background: rgba(0, 0, 0, 0.2); opacity: 0; transition: opacity 0.45s var(--out); pointer-events: none; }
.ip-sheet {
  position: absolute; z-index: 2; left: calc(8 * var(--pt)); right: calc(8 * var(--pt)); bottom: calc(8 * var(--pt));
  display: grid; justify-items: center; text-align: center;
  padding: calc(34 * var(--pt)) calc(20 * var(--pt)) calc(40 * var(--pt));
  border-radius: calc(48 * var(--pt));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 calc(-4 * var(--pt)) calc(30 * var(--pt)) rgba(0, 0, 0, 0.12);
  transform: translateY(calc(100% + 12 * var(--pt)));
  transition: transform 0.45s cubic-bezier(0.5, 0, 0.75, 0);
}
.ip-sheet .ring-xl { width: calc(104 * var(--pt)); margin-bottom: calc(18 * var(--pt)); }
.ip-sheet .ring-xl .ring-track, .ip-sheet .ring-xl .ring-fill { stroke-width: 4.6; }
.sh-k { font-size: calc(13 * var(--pt)); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--crimson); }
.sh-t { margin-top: calc(2 * var(--pt)); font-size: calc(28 * var(--pt)); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.sh-s { display: flex; align-items: center; gap: calc(6 * var(--pt)); margin-top: calc(6 * var(--pt)); font-size: calc(15 * var(--pt)); color: #8e8e93; }
.sh-s .tile { --s: calc(18 * var(--pt)); border-radius: calc(4.5 * var(--pt)); }
.ip-sheet > :not(.ring) { opacity: 0; transform: translateY(calc(6 * var(--pt))); transition: opacity 0.2s, transform 0.2s; }
.ip-screen[data-cleared] .ip-dim { opacity: 1; }
.ip-screen[data-cleared] .ip-sheet { transform: none; transition: transform 0.6s cubic-bezier(0.32, 1.15, 0.5, 1); }
.ip-sheet[data-done] > :not(.ring) { opacity: 1; transform: none; transition: opacity 0.4s 1.15s var(--out), transform 0.6s 1.15s var(--out); }
.ip-sheet[data-done] > .sh-t { transition-delay: 1.22s; }
.ip-sheet[data-done] > .sh-s { transition-delay: 1.3s; }

.agent-tag {
  position: absolute; z-index: 5; left: 0; top: 0;
  display: flex; align-items: flex-start; gap: 2px;
  transform: translate(var(--x, 0px), var(--y, 0px));
  transition: transform 0.7s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s;
  white-space: nowrap; pointer-events: none;
}
.agent-tag svg { flex: none; width: 17px; height: 17px; margin: -2px 0 0 -2px; fill: var(--ink); stroke: #fff; stroke-width: 1.1; stroke-linejoin: round; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.25)); }
.agent-tag span { margin-top: 13px; font-size: 13px; font-weight: 500; color: #fff; background: var(--blue); padding: 4px 10px; border-radius: 7px; box-shadow: 0 4px 12px -4px rgba(10, 132, 255, 0.6); }
.agent-tag[data-left] { flex-direction: row-reverse; translate: -100% 0; }
.agent-tag[data-left] svg { transform: scaleX(-1); margin: -2px -2px 0 0; }
.agent-tag[data-hide] { opacity: 0; }
.agent-tag[data-jump] { transition: opacity 0.3s; }

.stage-pause {
  position: absolute; right: 16px; bottom: 16px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s var(--out), opacity 0.3s;
}
.stage-pause:active { transform: scale(0.92); }
.stage-pause[hidden] { display: none; }
.stage-pause svg { width: 14px; height: 14px; fill: var(--ink); grid-area: 1 / 1; }
.stage-pause .i-again { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stage-pause .i-play, .stage-pause .i-again { display: none; }
.stage[data-paused] .stage-pause .i-pause { display: none; }
.stage[data-paused] .stage-pause .i-play { display: block; }
.stage[data-ended] .stage-pause :is(.i-pause, .i-play) { display: none; }
.stage[data-ended] .stage-pause .i-again { display: block; }
.stage[data-paused] *, .stage[data-paused] *::before, .stage[data-paused] *::after { animation-play-state: paused !important; }


/* ---------- SECTIONS ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: 150px var(--gut) 0; }
.h2 { text-align: center; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -0.04em; }
.h2 em { font-style: italic; font-weight: 600; }
.h2-left { text-align: left; }
.lede { max-width: 600px; margin: 22px auto 0; text-align: center; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); letter-spacing: -0.012em; }
mark { color: var(--ink); background: var(--hl); border-radius: 6px; padding: 1px 5px; }
.eyebrow { text-align: center; font: 500 14px/1 var(--mono); letter-spacing: 0.02em; color: var(--muted); margin-bottom: 20px; }

/* numbers */
.logos { display: grid; grid-template-columns: repeat(7, 76px); justify-content: center; gap: 28px 28px; margin-top: 64px; }
.logos li { position: relative; display: grid; justify-items: center; }
.logos .tile { --s: 76px; border-radius: 18px; transition: transform 0.35s var(--spring); }
.logos li:hover .tile { transform: translateY(-4px) scale(1.04); }
.logos span {
  position: absolute; top: calc(100% + 8px); white-space: nowrap;
  font-size: 13px; color: var(--ink-2); opacity: 0; transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.3s var(--out); pointer-events: none;
}
.logos li:hover span { opacity: 1; transform: none; }
/* a tap leaves :hover stuck on touch screens, and the name would sit on the row below */
@media (hover: none) {
  .logos span { display: none; }
  .logos li:hover .tile { transform: none; }
}

/* tabs */
.tabs {
  position: relative; display: flex; width: max-content; max-width: 100%; margin: 56px auto 0;
  padding: 4px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs button { position: relative; z-index: 1; padding: 10px 22px; border-radius: 999px; font-size: 15.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color 0.25s; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.tabs-lens { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.04); transition: transform 0.5s var(--out), width 0.5s var(--out); }

.session { margin-top: 28px; border-radius: 28px; background: var(--panel); padding: 32px; box-shadow: inset 0 0 0 1px var(--line); }
.sess { display: grid; grid-template-columns: minmax(0, 360px) 64px minmax(0, 1fr); align-items: center; min-height: 520px; }
.sess[hidden] { display: none; }
.sess[data-in] .sess-flow > *, .sess[data-in] .doc { animation: rise 0.6s var(--out) both; }
.sess[data-in] .sess-flow > :nth-child(2) { animation-delay: 0.08s; }
.sess[data-in] .sess-flow > :nth-child(3) { animation-delay: 0.16s; }
.sess[data-in] .doc { animation-delay: 0.22s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.sess-flow { display: flex; flex-direction: column; align-items: stretch; }
.ask-card, .did-card { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 0 0 1px var(--line), 0 4px 14px -8px rgba(0, 0, 0, 0.1); }
.ask-who { font: 13px/1 var(--mono); color: var(--muted); margin-bottom: 8px; }
.ask-q { font-size: 18px; line-height: 1.32; letter-spacing: -0.012em; }
.down { display: block; width: 1px; height: 30px; margin: 6px auto; background: rgba(29, 29, 27, 0.25); position: relative; }
.down::after { content: ""; position: absolute; left: -4px; bottom: 0; width: 7px; height: 7px; border-right: 1px solid rgba(29, 29, 27, 0.35); border-bottom: 1px solid rgba(29, 29, 27, 0.35); transform: rotate(45deg); }
.did-who { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; }
.did-who img { width: 26px; height: 26px; border-radius: 23%; }
.did { margin-top: 10px; display: grid; gap: 7px; font-size: 15px; color: var(--ink-2); }
.did li { display: flex; gap: 9px; }
.did li::before { content: "✓"; color: #34a853; font-weight: 600; }
.sess-foot { margin-top: 18px; text-align: center; font: 13px/1 var(--mono); color: var(--muted); }
.across { display: block; height: 1px; margin: 0 12px; background: rgba(29, 29, 27, 0.25); position: relative; }
.across::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px; border-right: 1px solid rgba(29, 29, 27, 0.35); border-top: 1px solid rgba(29, 29, 27, 0.35); transform: rotate(45deg); }

.doc { background: #fff; border-radius: 20px; padding: 32px 36px; box-shadow: 0 0 0 1px var(--line), 0 14px 40px -20px rgba(0, 0, 0, 0.18); }
.doc-kick { font: 13px/1 var(--mono); color: var(--muted); }
.doc-title { margin-top: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.tl { margin-top: 22px; }
.tl li { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.tl time { font: 13.5px/1.4 var(--mono); color: var(--muted); }
.tl b { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.tl p { font-size: 15px; color: var(--muted); line-height: 1.42; margin-top: 3px; }
.tl em, .eves span { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--t); background: color-mix(in srgb, var(--t) 11%, transparent); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }

.funnel { margin-top: 24px; display: grid; gap: 8px; }
.funnel li { position: relative; display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 15px; overflow: hidden; background: #f6f5f1; }
.funnel li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: rgba(94, 106, 210, 0.16); border-radius: 10px; transform-origin: left; }
.sess[data-in] .funnel li::before { animation: grow 0.9s var(--out) both; }
@keyframes grow { from { transform: scaleX(0); } }
.funnel li.leak::before { background: rgba(232, 54, 79, 0.2); }
.funnel span, .funnel b { position: relative; }
.funnel b { font-variant-numeric: tabular-nums; font-weight: 600; }
.doc-say { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--hl); font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.mini-steps { margin-top: 14px; counter-reset: s; display: grid; gap: 8px; font-size: 15px; }
.mini-steps li { display: flex; gap: 10px; align-items: baseline; counter-increment: s; }
.mini-steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; transform: translateY(-1px); }

.weekbars { margin-top: 26px; height: 180px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; align-items: end; }
.weekbars div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.weekbars i { width: 100%; height: calc(var(--c) * 150px); border-radius: 8px; background: var(--code); transform-origin: bottom; box-shadow: 0 -3px 0 0 var(--bg) inset; }
.sess[data-in] .weekbars i { animation: up 0.8s var(--out) both; }
.weekbars div:nth-child(2) i { animation-delay: 0.04s; } .weekbars div:nth-child(3) i { animation-delay: 0.08s; } .weekbars div:nth-child(4) i { animation-delay: 0.12s; }
.weekbars div:nth-child(5) i { animation-delay: 0.16s; } .weekbars div:nth-child(6) i { animation-delay: 0.2s; } .weekbars div:nth-child(7) i { animation-delay: 0.24s; }
@keyframes up { from { transform: scaleY(0); } }
.weekbars span { font-size: 12px; color: var(--muted); }
.wk-key { display: flex; gap: 16px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.wk-key span::before, .mix-key span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--t); margin-right: 6px; vertical-align: 1px; }

.mail { margin-top: 0; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.mail-row { display: flex; gap: 12px; padding: 11px 16px; font-size: 15px; border-bottom: 1px solid var(--line); }
.mail-row span { width: 58px; color: var(--muted); }
.mail-body { padding: 16px 18px 20px; font-size: 15.5px; line-height: 1.5; display: grid; gap: 10px; color: var(--ink-2); }
.mail-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mail-more span { font-size: 13px; padding: 6px 11px; border-radius: 99px; background: #f6f5f1; color: var(--ink-2); }

/* asks */
.asks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 64px; }
.askc { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 28px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); min-height: 420px; }
.askc > :last-child { margin-top: auto; }
.asks .askc { grid-column: span 5; }
.asks .askc-wide { grid-column: span 7; }

.sources-rank { background: #fff; border-radius: 18px; padding: 10px 18px; box-shadow: 0 0 0 1px var(--line); }
.sources-rank li { position: relative; display: grid; grid-template-columns: 1fr auto 44px; gap: 12px; align-items: center; padding: 12px 0; font-size: 15px; }
.sources-rank li + li { border-top: 1px solid var(--line); }
.sources-rank li::after { content: ""; position: absolute; left: 0; bottom: 4px; height: 3px; border-radius: 3px; width: calc(var(--v) * 70%); background: var(--rose); opacity: 0.7; }
.sources-rank b { font-weight: 500; }
.sources-rank span { font-size: 13px; color: var(--muted); }
.sources-rank em { font-style: normal; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.vcard { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 12px; }
.vthumb-lg { width: 100%; font-size: 26px; padding: 18px; border-radius: 12px; }
.vthumb-lg i { width: 52px; height: 52px; left: calc(50% - 26px); top: calc(50% - 26px); right: auto; bottom: auto; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.vthumb-lg i::after { left: 21px; top: 17px; border-width: 9px; border-left-width: 14px; border-right-width: 0; }
.vcard p { display: grid; font-size: 14px; color: var(--muted); }
.vcard b { color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.vwhy { font-size: 14px !important; color: var(--ink-2) !important; padding-top: 10px; border-top: 1px solid var(--line); }

.eves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.eves div { background: #fff; border-radius: 16px; padding: 14px 12px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; min-height: 170px; }
.eves p { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.eves span { white-space: normal; border-radius: 9px; padding: 8px 9px; line-height: 1.25; }

.post { background: #fff; border-radius: 18px; padding: 20px 22px; box-shadow: 0 0 0 1px var(--line); }
.post-sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.post-title { margin-top: 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.post-body { margin-top: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }

/* different */
.vs-box { text-align: center; border-radius: 32px; border: 1.5px dashed rgba(29, 29, 27, 0.13); padding: 64px var(--gut) 72px; }
.vs-icon { width: 96px; height: 96px; border-radius: 23%; margin: 0 auto 26px; box-shadow: 0 18px 40px -16px rgba(184, 31, 55, 0.55); }
.vs-sub { margin-top: 16px; font-size: 18px; color: var(--muted); }
.vs-chips { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 10px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(0, 0, 0, 0.04); font-size: 15.5px; font-weight: 500; }
.chip img { width: 22px; height: 22px; border-radius: 23%; }
.chip .tile { --s: 22px; border-radius: 6px; }
.vs { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 6px; }
.vs-line { margin-top: 46px; font-size: clamp(21px, 2.2vw, 27px); letter-spacing: -0.02em; }
.squig { position: relative; display: inline-block; }
.squig svg { position: absolute; left: 0; right: 0; bottom: -12px; width: 100%; height: 12px; overflow: visible; fill: none; stroke: var(--rose); stroke-width: 2.2; stroke-linecap: round; }
.vs-p { max-width: 600px; margin: 22px auto 0; font-size: 19px; line-height: 1.5; color: var(--muted); letter-spacing: -0.01em; }

/* questions */
.chat { max-width: 760px; margin: 56px auto 0; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15.5px; }
.chat-head img { width: 28px; height: 28px; border-radius: 23%; }
.msgs { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.msgs p { max-width: 82%; padding: 9px 15px; border-radius: 20px; font-size: 16.5px; line-height: 1.38; letter-spacing: -0.01em; }
.msgs .q { align-self: flex-end; background: var(--blue); color: #fff; margin-top: 12px; }
.msgs .q:first-child { margin-top: 0; }
.msgs .a { align-self: flex-start; background: #efeee9; }
.msgs .q, .msgs .a { position: relative; }
.msgs .q::before, .msgs .q::after, .msgs .a::before, .msgs .a::after { content: ""; position: absolute; bottom: 0; height: 18px; }
.msgs .q::before { right: -7px; width: 20px; background: var(--blue); border-bottom-left-radius: 16px 14px; }
.msgs .q::after { right: -10px; width: 10px; background: #fff; border-bottom-left-radius: 10px; }
.msgs .a::before { left: -7px; width: 20px; background: #efeee9; border-bottom-right-radius: 16px 14px; }
.msgs .a::after { left: -10px; width: 10px; background: #fff; border-bottom-right-radius: 10px; }
.msgs .a a { color: var(--crimson); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* me */
.me { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.me-text > p { margin-top: 20px; font-size: 20px; line-height: 1.5; color: var(--muted); letter-spacing: -0.012em; }
.me-text .pill { margin-top: 30px; }
.sig { display: flex !important; align-items: center; gap: 12px; margin-top: 34px !important; }
.sig dp-mark { width: 48px; height: 48px; border-radius: 50%; display: block; }
.sig span { display: grid; font-size: 15px; line-height: 1.3; }
.sig b { color: var(--ink); font-weight: 500; font-size: 16px; }
.icons { display: grid; justify-items: center; gap: 22px; }
.icon-pile { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1.1; }
.icon-pile .ic { position: absolute; width: 38%; border-radius: 23%; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45); transition: transform 0.5s var(--spring); }
.ic-1 { left: 4%; top: 6%; transform: rotate(-8deg); }
.ic-2 { right: 6%; top: 0; transform: rotate(7deg); }
.ic-3 { left: 0; bottom: 4%; transform: rotate(5deg); }
.ic-4 { right: 2%; bottom: 8%; transform: rotate(-6deg); }
.icon-pile .ic-hr { left: 31%; top: 28%; width: 40%; z-index: 1; box-shadow: 0 26px 50px -18px rgba(184, 31, 55, 0.6); }
.icons:hover .ic-1 { transform: rotate(-12deg) translate(-6px, -4px); }
.icons:hover .ic-2 { transform: rotate(11deg) translate(6px, -6px); }
.icons:hover .ic-3 { transform: rotate(9deg) translate(-6px, 6px); }
.icons:hover .ic-4 { transform: rotate(-10deg) translate(6px, 4px); }
.icons:hover .ic-hr { transform: scale(1.04); }
.icons figcaption { font-size: 14px; color: var(--muted); }

/* end */
.end { text-align: center; padding-bottom: 40px; }
.end-icon { width: 112px; height: 112px; border-radius: 23%; margin: 0 auto 30px; box-shadow: 0 24px 50px -18px rgba(184, 31, 55, 0.55); }
.join { display: flex; gap: 6px; width: min(100%, 460px); margin: 0 auto; padding: 5px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 24px -14px rgba(0, 0, 0, 0.2); }
.join:focus-within { box-shadow: 0 0 0 1.5px var(--ink), 0 8px 24px -14px rgba(0, 0, 0, 0.2); }
.join input { flex: 1; min-width: 0; border: 0; outline: none; background: none; padding: 0 6px 0 18px; font-size: 17px; }
.join input::placeholder { color: var(--muted); }
.join button { height: 46px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 500; white-space: nowrap; transition: transform 0.2s var(--out), opacity 0.2s; }
.join button:active { transform: scale(0.97); }
.join button:disabled { opacity: 0.6; }
.join-note { margin-top: 14px; font-size: 15px; color: var(--muted); min-height: 22px; }
.join-note[data-tone="error"] { color: var(--crimson); font-weight: 500; }
.done-mark { margin-top: 18px; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 140px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); text-align: left; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .stage { grid-template-columns: 1fr auto 1fr; gap: 28px; padding: 36px 28px; }
  .wires { display: none; }
  .iphone { --w: 225px; }
}
@media (max-width: 900px) {
  .top-links { display: none; }
  .stage { grid-template-columns: 1fr; justify-items: center; gap: 24px; }
  .stage-col { width: min(100%, 420px); }
  .stage-phone { order: -1; }
  .outs .col-label { text-align: left; }
  .sess { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .across { width: 1px; height: 30px; margin: 6px auto; }
  .across::after { left: -4px; right: auto; top: auto; bottom: 0; border-top: 0; border-left: 0; border-bottom: 1px solid rgba(29, 29, 27, 0.35); }
  .doc { padding: 24px 22px; }
  .asks .askc, .asks .askc-wide { grid-column: span 12; }
  .askc { min-height: 0; }
  .me { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(5, 64px); gap: 20px; }
  .logos .tile { --s: 64px; border-radius: 15px; }
  .sec { padding-top: 110px; }
}
@media (max-width: 560px) {
  .hero { padding: 36px 6px 0; }
  .hero-panel { padding-bottom: 24px; }
  .hero-title { margin-top: 30px; font-size: 44px; }
  .rot { display: block; margin: 0.04em auto 0; }
  .hero-sub { font-size: 17px; }
  .hl { white-space: normal; }
  .ctas { flex-direction: column; align-items: center; }
  .cta { width: 100%; max-width: 360px; }
  .session { padding: 16px; border-radius: 24px; }
  .tl li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .tl time { grid-column: 1 / -1; }
  .logos { grid-template-columns: repeat(4, 60px); }
  .logos .logo-wide { display: none; }
  .logos .tile { --s: 60px; }
  .eves { grid-template-columns: 1fr; }
  .eves div { min-height: 0; }
  .askc { padding: 20px; border-radius: 24px; }
  .tabs { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- the stage on a phone ----------
   Stacked, the three columns turn into a cursor flying across a page taller than the screen.
   On a phone the whole day plays inside the iPhone instead: each source comes in through
   the Dynamic Island, the row it proves ticks, and the score sits on the phone itself. */
.island { display: none; }
.island {
  position: absolute; z-index: 5; left: 50%; top: calc(154 / 3 * var(--pt));
  width: calc(117 * var(--pt)); height: calc(110 / 3 * var(--pt)); border-radius: calc(55 / 3 * var(--pt));
  translate: -50% 0; background: #000; overflow: hidden; opacity: 0;
  transition: width 0.5s var(--island), height 0.5s var(--island), border-radius 0.5s var(--island), opacity 0s 0.5s;
  --island: cubic-bezier(0.3, 1.25, 0.55, 1);
}
.island[data-open] { width: calc(371 * var(--pt)); height: calc(78 * var(--pt)); border-radius: calc(39 * var(--pt)); opacity: 1; transition-delay: 0s; }
.isl {
  position: absolute; inset: 0; display: flex; align-items: center; gap: calc(12 * var(--pt));
  padding: 0 calc(24 * var(--pt)) 0 calc(16 * var(--pt));
  color: #fff; opacity: 0; scale: 0.92; filter: blur(calc(4 * var(--pt)));
  transition: opacity 0.18s, scale 0.18s, filter 0.18s;
}
.isl[data-on] { opacity: 1; scale: 1; filter: none; transition: opacity 0.3s 0.16s, scale 0.45s 0.16s var(--out), filter 0.3s 0.16s; }
.isl .tile { --s: calc(46 * var(--pt)); border-radius: calc(13 * var(--pt)); flex: none; }
.isl p { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.isl p span { font-size: calc(13 * var(--pt)); color: rgba(235, 235, 245, 0.6); }
.isl p b { font-size: calc(15.5 * var(--pt)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isl strong { font-size: calc(30 * var(--pt)); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .stage { padding: 32px 0 30px; }
  .stage-col, .wires, .agent-tag { display: none; }
  .island { display: block; }
  .iphone { --w: min(290px, calc((100vw - 64px) * 1179 / 1419)); }
  .stage-pause { right: 14px; bottom: 14px; }
}
