/* S1 product page. Sits on Stash's stylesheet (stash.css): its tokens, header and footer. Everything here is the
   page layout and the app's UI, redrawn in HTML at the app's own sizes (a 372 px card) and zoomed for the snippets. */

:root {
  --ink-card: #0b0b0b; --ink-text: #f2f2f2; --ink-muted: #8a8a8a; --ink-soft: #a8a8a8; --ink-line: #2a2a2a;
  --ink-bar: #3333ff; --ink-now: #8080ff; --ink-hover: #4d4dff; --ink-red: #ff1a1a; --ink-red-now: #ff8080; --ink-yellow: #ffff00;
  --spring: cubic-bezier(.34, 1.36, .5, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
  /* Theme-following: the hero menu bar and the install panel. The demo frames and cards stay dark in both themes. */
  --s1-bar-ink: #111; --s1-pill-bg: #111; --s1-pill-fg: #fff; --s1-panel: #f1f1f1;
}
:root[data-theme="dark"] { --s1-bar-ink: #f2f2f2; --s1-pill-bg: #fff; --s1-pill-fg: #000; --s1-panel: #151515; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --s1-bar-ink: #f2f2f2; --s1-pill-bg: #fff; --s1-pill-fg: #000; --s1-panel: #151515; }
}

/* Page ———————————————————————————————————————————————————————————————————— */
.s1-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--pad);   /* its height is the menu bar and card */
  padding: calc(var(--hh) + 28px) var(--pad) 72px; }
.s1-hero-l { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.s1-mark { line-height: 0; }   /* the S1 artwork (assets/brand/s1.svg), in the text color so it follows the theme */
.s1-mark svg { display: block; height: clamp(104px, 18vw, 315px); width: auto; }
.s1-hero-copy { display: flex; flex-direction: column; gap: 6px; max-width: 40ch; font-size: var(--t); line-height: 1.45; }   /* one block, its bottom on the card's */
.s1-name { font-weight: 500; line-height: 1.15; }
.s1-hero-copy p:last-child { color: var(--muted); }
.s1-hero-r { display: flex; flex-direction: column; align-items: flex-end; }
@media (min-width: 1200px) { .s1-hero-r { zoom: 1.3; } }
@media (min-width: 1600px) { .s1-hero-r { zoom: 1.5; } }

.s1-sec { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); gap: var(--pad); column-gap: clamp(40px, 6vw, 112px); padding: 14px var(--pad) clamp(96px, 12vw, 200px);
  margin: 0 var(--pad); padding-left: 0; padding-right: 0; }
.s1-sec-l { font-size: var(--t); line-height: 1.45; display: flex; flex-direction: column; gap: 10px; max-width: 32ch; }
.s1-sec-l h2 { font: 500 calc(16 * var(--u))/1.2 var(--sans); }
.s1-sec-l p:not(.s1-num) { color: var(--muted); }
.s1-num { font-family: var(--mono); color: var(--muted); }
.s1-sec-r { display: flex; justify-content: center; align-items: flex-start; min-width: 0; }   /* frame tops line up with the number */
/* Each demo sits in the same rounded frame, its card centered in it */
.s1-box { width: 100%; aspect-ratio: 16 / 10; min-height: 560px; display: grid; place-items: center; padding: 32px; border-radius: 24px;
  background: #151515; overflow: hidden; }
.s1-box .ui-card { width: min(372px, 100%); }
/* Pause / play, bottom left of each demo frame and the film (s1.js adds them; not shown with reduced motion) */
.s1-box, .s1-film { position: relative; }
.s1-pause { position: absolute; left: 16px; bottom: 16px; z-index: 6; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #f2f2f2; cursor: pointer; transition: background .2s; }
.s1-pause:hover { background: rgba(255, 255, 255, .18); }
.s1-pause:focus-visible { outline: 2px solid var(--ink-now); outline-offset: 2px; }
.s1-pause svg { width: 10px; height: 10px; fill: currentColor; }
.s1-box.paused *, .s1-box.paused *::before, .s1-box.paused *::after { animation-play-state: paused !important; }
.s1-box .zoom-l { zoom: 1.2; }
.s1-box .zoom-xl { zoom: 1.6; }                       /* the tallest list fits the frame with room around it */

.s1-legend { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.s1-legend li { display: flex; align-items: center; gap: 8px; color: var(--muted); transition: color .3s; }
.s1-legend li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; transition: opacity .3s; }
.s1-legend li.on { color: var(--fg); }
.s1-legend li.on::before { opacity: 1; }

.s1-get { margin: 0 var(--pad); padding-top: 14px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: var(--pad); font-size: var(--t); line-height: 1.45; }
.s1-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pad); }
.s1-specs span { display: block; margin-bottom: 6px; }
.s1-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.s1-soon, .s1-gh { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 20px; background: var(--ink-bar); color: #fff;
  font: 700 calc(11 * var(--u)) var(--sans); text-transform: uppercase; letter-spacing: .04em; }

/* Install: three steps in one frame, each command with its own Copy */
.s1-gh { align-self: flex-start; gap: 8px; margin-top: 14px; text-decoration: none; transition: background .2s; }
.s1-gh:hover { background: var(--ink-hover); }
.s1-gh svg { width: 15px; height: 15px; fill: currentColor; }
.s1-install { width: 100%; min-width: 0; list-style: none; padding: 32px; border-radius: 24px; background: var(--s1-panel); display: flex; flex-direction: column; gap: 32px;
  font-size: var(--t); line-height: 1.45; }
.s1-install li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--pad); align-items: start; }
.s1-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; }
.s1-step .c-muted { grid-column: 2; }
.s1-code { position: relative; min-width: 0; border-radius: 12px; background: #0b0b0b; }
.s1-code pre { margin: 0; padding: 16px 88px 16px 20px; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.7 var(--mono); color: #f2f2f2; }
.s1-code code span::before { content: "$ "; color: #8a8a8a; user-select: none; }
.s1-copy { position: absolute; top: 10px; right: 10px; height: 28px; padding: 0 12px; border: 0; border-radius: 14px; background: #262626; color: #f2f2f2;
  font: 700 10px var(--sans); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; transition: background .2s; }
.s1-copy:hover { background: #333; }
.s1-copy.done { background: var(--ink-bar); color: #fff; }

/* Menu bar and pill —————————————————————————————————————————————————————————— */
.ui-bar { display: flex; align-items: center; gap: 14px; height: 30px; font: 13px var(--sans); color: var(--ink-text); }
.ui-bar.big { zoom: 2.2; gap: 16px; width: 360px; padding: 0 12px; background: #000; border-radius: 8px; border: 1px solid var(--ink-line); }
.ui-dim { color: var(--ink-text); }
.ui-gap { flex: 1; }
.ui-pill { position: relative; height: 22px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border-radius: 11px;
  background: #fff; color: #000; font: 700 12px var(--sans); font-variant-numeric: tabular-nums;
  transition: background .5s var(--out), color .5s var(--out); }
.ui-pill svg { width: 13px; height: 12px; }
.ui-pill rect { fill: currentColor; opacity: .35; transition: opacity .35s; }
.ui-pill[data-cpu="1"] rect:nth-child(1), .ui-pill[data-cpu="2"] rect:nth-child(-n+2), .ui-pill[data-cpu="3"] rect { opacity: 1; }
.ui-pill.hot { background: var(--ink-red); color: #000; }
.ui-badge { position: absolute; top: -6px; right: -7px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; display: grid; place-items: center;
  background: var(--ink-yellow); color: #000; font: 700 10px var(--sans); font-style: normal; box-shadow: 0 0 0 2px #000;
  transform: scale(0); transition: transform .4s var(--spring); }
.ui-pill.busy .ui-badge { transform: scale(1); }
.ui-time { color: var(--ink-text); }

/* The card ———————————————————————————————————————————————————————————————————— */
.ui-card { position: relative; width: 372px; padding: 18px 26px 16px; border-radius: 26px; background: var(--ink-card); color: var(--ink-text);
  box-shadow: 0 0 0 1px var(--ink-line), 0 18px 50px rgba(0, 0, 0, .35); font: 12px/1.4 var(--sans); font-variant-numeric: tabular-nums;
  display: flex; flex-direction: column; text-align: left; }
.ui-card.bare { box-shadow: none; background: transparent; padding: 0; }
.zoom-l { zoom: 1.45; }
.zoom-xl { zoom: 2; }
.c-top { display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.c-caps { text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); font-size: 11px; display: flex; align-items: center; gap: 8px; }
.c-hi { color: var(--ink-text); }
.c-red { color: var(--ink-red); }
.c-muted { color: var(--ink-muted); }
.c-soft { color: var(--ink-soft); margin-top: 6px; }
.c-title { font-size: 26px; letter-spacing: -.01em; margin-top: 4px; line-height: 1.15; }
.c-back { text-transform: uppercase; letter-spacing: .04em; font-size: 11px; height: 36px; display: flex; align-items: center; }
.c-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.c-stat { display: flex; flex-direction: column; padding-bottom: 10px; border-bottom: 2px solid var(--ink-line); }
.c-stat.on { border-color: var(--ink-bar); }
.c-stat b { font: 400 44px/1.05 var(--sans); letter-spacing: -.02em; margin-top: 4px; white-space: nowrap; transition: color .5s var(--out); }
.c-stat b::after { content: "%"; }
.c-stat b[data-unit]::after { content: none; }
.c-stat b small { font-size: 20px; letter-spacing: 0; }
.c-stat b.hot { color: var(--ink-red); }
.c-sub { color: var(--ink-muted); margin-top: 2px; white-space: nowrap; }
.c-bars { position: relative; display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 96px; margin-top: 18px; }
.c-bars.tall { height: 120px; }
.c-bars i { display: block; height: var(--h, 0%); background: var(--ink-bar); border-radius: 1px; transform-origin: 50% 100%;
  transition: height .7s var(--spring), background .5s var(--out); }
.c-bars i:last-of-type { background: var(--ink-now); }
.c-bars i.hot { background: var(--ink-red); }
.c-bars i.hot:last-of-type { background: var(--ink-red-now); }
.c-line { position: absolute; left: 0; right: 0; bottom: 80%; border-top: 1px dashed #9a9a9a; opacity: 0; transition: opacity .4s; z-index: 1; }
.c-line i { position: absolute; left: 0; bottom: 3px; font: 10px var(--sans); font-style: normal; color: var(--ink-muted); }
.c-bars .c-line i { height: auto; line-height: 1; background: none; border-radius: 0; transition: none; white-space: nowrap; }   /* a label, not a bar: it sits above the line */
.c-bars.hot .c-line { opacity: 1; }
.c-axis { display: flex; justify-content: space-between; color: var(--ink-muted); margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ink-line); }
.c-cols, .c-row { display: grid; grid-template-columns: minmax(0, 1fr) 60px 44px 12px; gap: 12px; align-items: center; }
.c-cols { margin-top: 20px; padding-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); font-size: 11px; }
.c-cols span:not(:first-child), .c-row > span { text-align: right; }
.c-cols::after { content: ""; }
.c-row { padding: 9px 0; border-bottom: 1px dotted var(--ink-line); }
.c-row.last { border-bottom: 0; }
.c-row > div { display: flex; flex-direction: column; min-width: 0; }
.c-row > div span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.c-row.more::after { content: "›"; color: var(--ink-muted); font-size: 15px; text-align: right; }
.c-row .c-wide { grid-column: span 2; }
.c-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; display: inline-block; }
.c-dot.y { background: var(--ink-yellow); }
.c-dot.r { background: var(--ink-red); }
.c-dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.c-foot { display: flex; justify-content: space-between; margin: 10px -12px 0; }
.c-btn { height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 18px; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.c-login { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.c-switch { width: 26px; height: 15px; border-radius: 8px; background: var(--ink-bar); position: relative; }
.c-switch::after { content: ""; position: absolute; top: 2px; left: 13px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink-text); }
.c-kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dotted var(--ink-line); }
.c-kv span:first-child { color: var(--ink-muted); }
.c-stats + .c-kv { margin-top: 14px; }
.c-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.c-actions .c-btn { margin-left: auto; margin-right: -12px; }
.c-pill { height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 16px; text-transform: uppercase; letter-spacing: .04em;
  font-size: 11px; transition: background .25s, transform .2s var(--spring), opacity .35s; }
.c-pill.go { background: var(--ink-bar); color: #fff; font-weight: 700; }
.c-pill.stop { background: var(--ink-red); color: #000; font-weight: 700; }
.c-pill.ghost { box-shadow: inset 0 0 0 1px #3a3a3a; }
.c-pill.press { transform: scale(.94); }
.c-pill.go.press { background: var(--ink-hover); }
.c-pill.sleep { opacity: .35; }
.c-list { margin-top: 14px; padding: 4px 14px; border-radius: 14px; background: #141414; display: flex; flex-direction: column; }
.c-list span { padding: 7px 0; border-bottom: 1px dotted var(--ink-line); }
.c-list span:last-child { border-bottom: 0; }
.c-note { margin-top: 12px; }

/* Rows that come and go */
.c-row.grow { overflow: hidden; max-height: 0; padding-block: 0; opacity: 0; border-bottom-color: transparent;
  transition: max-height .55s var(--spring), padding .55s var(--spring), opacity .4s, border-color .4s; }
.c-row.grow.in { max-height: 60px; padding-block: 9px; opacity: 1; border-bottom-color: var(--ink-line); }

/* 03: a session's Open chat opens the conversation behind it, in its own window over the card */
.chat-demo { display: grid; place-items: center; }
.chat-demo > * { grid-area: 1 / 1; }
.chat-demo .c-kv.first { margin-top: 16px; }
.chat-demo [data-chat-card] .c-kv:last-of-type { border-bottom: 0; }
.chat-demo [data-chat-card] { transition: transform .6s var(--spring), opacity .45s var(--out), filter .45s var(--out); }
.chat-demo.open [data-chat-card] { transform: translateY(-14px) scale(.94); opacity: .3; filter: blur(2px); }
.chat-win { position: relative; z-index: 2; width: min(400px, 100%); border-radius: 14px; background: #161616; color: var(--ink-text);
  box-shadow: 0 0 0 1px #2a2a2a, 0 40px 80px rgba(0, 0, 0, .55); font-size: 13px; line-height: 1.45; overflow: hidden;
  opacity: 0; transform: translateY(28px) scale(.96); transition: transform .6s var(--spring), opacity .35s var(--out); pointer-events: none; }
.chat-demo.open .chat-win { opacity: 1; transform: none; }
.cw-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-bottom: 1px solid #242424; font-size: 12px; }
.cw-dots { display: flex; gap: 6px; margin-right: 6px; }
.cw-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.cw-title { font-weight: 500; }
.cw-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 6px; min-height: 230px; justify-content: flex-end; }
.cw-msg { max-width: 85%; }
.cw-msg.in { animation: cw-in .45s var(--spring) both; }
@keyframes cw-in { from { opacity: 0; transform: translateY(8px); } }
.cw-msg.me { align-self: flex-end; padding: 7px 11px; border-radius: 12px; background: #2a2a2a; }
.cw-msg:not(.in) { display: none; }
.cw-wait { display: flex; gap: 4px; padding: 4px 0; }
.cw-wait i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-muted); animation: cw-dot 1s ease-in-out infinite; }
.cw-wait i:nth-child(2) { animation-delay: .15s; }
.cw-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes cw-dot { 50% { opacity: .3; transform: translateY(-2px); } }
.cw-input { display: flex; align-items: center; gap: 2px; margin: 10px 12px 12px; min-height: 38px; padding: 6px 6px 6px 12px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px #2e2e2e; }
.cw-input [data-chat-type]:empty::before { content: "Reply…"; color: var(--ink-muted); }
.cw-caret { width: 1px; height: 15px; background: var(--ink-text); animation: cw-blink 1s steps(1) infinite; }
@keyframes cw-blink { 50% { opacity: 0; } }
.cw-send { width: 26px; height: 26px; margin-left: auto; border-radius: 50%; background: #2e2e2e; transition: background .2s; }
.cw-input.ready .cw-send { background: var(--ink-bar); }

/* A pointer that walks to a button and presses it */
.cursor { position: absolute; left: 0; top: 0; width: 14px; height: 20px; pointer-events: none; opacity: 0; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20'%3E%3Cpath d='M1 1v15l4-4 3 7 2.5-1-3-7h5.5z' fill='%23fff' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
  transition: transform .9s var(--out), opacity .3s; }
.cursor.on { opacity: 1; }

/* The island: the hero card grows out of the pill */
/* On load the clock and pill show big in the middle, scale down into the menu bar, and the panel drops out of the pill */
.s1-hero-r { position: relative; }
.s1-hero-r .ui-bar, .s1-hero-r .ui-time { color: var(--s1-bar-ink); }
.s1-hero-r .ui-pill:not(.hot) { background: var(--s1-pill-bg); color: var(--s1-pill-fg); }
.s1-hero-r .ui-bar { position: relative; z-index: 4; transition: transform 1.2s cubic-bezier(.76, 0, .24, 1); }
.s1-hero-l { transition: opacity .9s var(--out); }
.s1-hero.intro .s1-hero-l { opacity: 0; transition: none; }
.s1-hero ~ section { transition: opacity .9s var(--out); }   /* the rest of the page waits for the intro too */
.s1-hero.intro ~ section { opacity: 0; transition: none; }   /* hidden from the first frame; fades in when intro ends */
.s1-hero.intro:not(.ready) .ui-bar { visibility: hidden; }
.ui-time { white-space: pre; }
.s1-hero-r.wait .island { visibility: hidden; }
.island { margin-top: 6px; transform-origin: 100% 0; }
.island .ui-card { clip-path: inset(0 0 calc(100% - 22px) calc(100% - 64px) round 11px); transition: clip-path .75s var(--spring); }
.island .ui-card > * { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--out), transform .55s var(--spring); }
.island.open .ui-card { clip-path: inset(0 0 0 0 round 26px); }
.island.open .ui-card > * { opacity: 1; transform: none; }
/* Build order as it opens: the top line and stats, the graph and its axis, then the list a row at a time */
.island.open .ui-card > *:nth-child(1) { transition-delay: .12s; }
.island.open .ui-card > *:nth-child(2) { transition-delay: .2s; }
.island.open .ui-card > *:nth-child(3) { transition-delay: .3s; }
.island.open .ui-card > *:nth-child(4) { transition-delay: .36s; }
.island.open .ui-card > *:nth-child(5) { transition-delay: .95s; }
.island.open .ui-card > *:nth-child(6) { transition-delay: 1.03s; }
.island.open .ui-card > *:nth-child(7) { transition-delay: 1.11s; }
.island.open .ui-card > *:nth-child(8) { transition-delay: 1.19s; }
.island.open .ui-card > *:nth-child(n+9) { transition-delay: 1.3s; }

/* Stage: a light desktop with S1's screens on it, and a camera that tilts and glides between them ——————————— */
.s1-stage { padding: 0 var(--pad) clamp(96px, 12vw, 200px); }
.s1-film { aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #0b0b0b; }
.s1-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 18%, rgba(120, 140, 255, .28), transparent 70%),
    radial-gradient(50% 60% at 12% 90%, rgba(255, 170, 120, .22), transparent 70%),
    linear-gradient(160deg, #f3f2ef, #dcdee4); }
.world { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; }
.w-bar { position: absolute; inset: 0 0 auto; z-index: 3; height: 32px; display: flex; align-items: center; gap: 18px; padding: 0 18px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #111; font: 13px var(--sans); }
.w-bar b { font-weight: 700; }
.w-apple { width: 13px; height: 15px; border-radius: 50% 50% 45% 45%; background: #111; }
.w-icon { width: 16px; height: 12px; border-radius: 3px; border: 1.5px solid #111; }
.ui-pill.calm { background: #111; color: #fff; }
.ui-pill.calm.hot { background: var(--ink-red); color: #000; }
.w-card { position: absolute; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 80px rgba(20, 24, 40, .35), 0 12px 24px rgba(20, 24, 40, .2); }
.w-card[data-w="home"] { z-index: 2; }
.js-stage .w-card:not([data-w="home"]), .js-stage .w-card[data-w="home"] > * { opacity: 0; }   /* the film starts on the pill alone */
/* Kinetic type: sized in container units so it's drawn at full size, never blown up */
.stage { container-type: size; }
.stage .c-bars i { transition: background .5s var(--out); }   /* heights run on the film's timeline */
.kin { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; color: #f2f2f2; }
.kin-bg { position: absolute; inset: 0; background: #0b0b0b; }
.kin-label { position: absolute; left: 3.2cqw; top: 3cqw; font: 400 1.5cqw/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: 0; }
.kin-num { position: absolute; left: 50%; top: 50%; display: flex; align-items: flex-start; transform: translate(-50%, -50%);
  font: 700 30cqw/1 var(--sans); letter-spacing: -.06em; font-variant-numeric: tabular-nums; opacity: 0; white-space: nowrap; }
.kin-num .odo { display: inline-block; height: 1em; overflow: hidden; }
.kin-num .odo-strip { display: flex; flex-direction: column; }
.kin-num .odo-strip span { height: 1em; display: block; }
.kin-num .pct { font-size: .55em; letter-spacing: -.03em; margin-top: .07em; }
.kin-rows { position: absolute; inset: -4cqh -10cqw; display: flex; flex-direction: column; justify-content: center; gap: 0;
  font: 700 15.5cqh/.9 var(--sans); letter-spacing: -.05em; white-space: nowrap; color: #000; opacity: 0; }
.kin-rows div { will-change: auto; }
.kin-s1 { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 1cqw;
  font: 700 78cqh/1 var(--sans); letter-spacing: -.07em; color: #000; opacity: 0; }
.kin-s1 span { display: inline-block; }
.depth { position: absolute; inset: 0; z-index: 3; background: #0b0b0b; overflow: hidden; visibility: hidden; }
.depth-cam { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.depth-cam > * { position: absolute; left: 0; top: 0; }
.depth-big { font: 700 9cqw/1 var(--sans); letter-spacing: -.05em; color: #f2f2f2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.depth-big small { font-size: .5em; color: var(--ink-muted); letter-spacing: 0; }

/* The ring: the screens fan out around a turning drum, like pages on a carousel */
.st-dark { position: absolute; inset: 0; background: #0b0b0b; opacity: 0; pointer-events: none; z-index: 1; }
.ring { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; transform-style: preserve-3d; visibility: hidden; }
.ring > .ui-card { position: absolute; left: 0; top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .45); }
.cursor.big { width: 22px; height: 31px; background-size: contain; transition: none; }

/* Narrow screens —————————————————————————————————————————————————————————————— */
@media (max-width: 1100px) {
  .zoom-l { zoom: 1.2; }
  .zoom-xl { zoom: 1.5; }
  .s1-box { min-height: 580px; }
  .s1-box .zoom-l { zoom: 1; }
  .s1-box .zoom-xl { zoom: 1.3; }
  .ui-bar.big { zoom: 1.7; }
}
@media (max-width: 860px) {
  .stage { aspect-ratio: 4 / 5; border-radius: 18px; }
  .s1-film { border-radius: 18px; }
  .s1-hero { grid-template-columns: 1fr; min-height: 0; }
  .s1-hero-r { align-items: center; }
  .s1-sec { grid-template-columns: 1fr; }
  .s1-sec-l { max-width: 52ch; }
  .s1-sec-r { padding-top: 24px; }
  .s1-box { aspect-ratio: auto; height: 540px; min-height: 0; padding: 16px; border-radius: 18px; }
  .s1-box .zoom-xl { zoom: 1; }
  .s1-install { padding: 20px 16px; border-radius: 18px; gap: 28px; }
  .s1-install li { grid-template-columns: 1fr; gap: 12px; }
  .s1-code pre { font-size: 12px; padding-right: 80px; }
  .s1-get { grid-template-columns: 1fr; }
  .s1-specs { grid-template-columns: 1fr 1fr; }
  .s1-cta { align-items: flex-start; text-align: left; }
  .zoom-l, .zoom-xl { zoom: 1; }
  .ui-bar.big { zoom: 1; width: 100%; max-width: 360px; }
}
@media (max-width: 420px) {
  .ui-card { width: calc(100vw - 2 * var(--pad)); padding: 16px 18px 14px; }
  .ui-card.bare { padding: 0; }
  .c-stat b { font-size: 38px; }
  .s1-specs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .island .ui-card, .island .ui-card > *, .c-bars i, .c-row.grow, .cursor, .ui-badge { transition: none !important; }
  .c-dot.pulse { animation: none; }
  .cw-wait i, .cw-caret { animation: none; }
  .chat-demo [data-chat-card], .chat-win { transition: none !important; }
  .cw-msg.in { animation: none; }
}
.ui-pill b { font-weight: 700; }
.ui-pill b::after { content: "%"; }
