/* What we build: "Software that works wherever you do" (src/partials/showcase.html).
   A centred head, the hub of everything Ariqor builds, and one big way in: "Tell us your idea",
   straight to the configurator.

   The hub is a real 3D space (perspective on the stage, preserve-3d on the scene and on every
   window), drawn in em: the scene's font size is a fraction of the stage's width (a container
   query unit), so the whole picture scales as one, text included, and never reflows.
   - At the back, turned in toward the viewer: the native "Projects" app on a Mac (left: traffic
     lights, a sidebar, a toolbar, the projects with their progress) and on Windows (right: a Mica
     title bar with its caption buttons, the navigation pane and its selection pill, a command row
     with the accent button, project cards).
   - In the middle: the shop admin "Luma" in a browser (a tab, a padlocked address): icon rail,
     search, figures with a chart, and the orders table with status pills.
   - In front: the hotel website "Kalma" in a browser (nav, a hero with its photo of the sea,
     features, rooms, footer) and Kalma's booking assistant (the guest's question, the answer, the
     field for the next question).
   - Floating parts (.sc-pop), each on a depth of its own in front of its window (--pz): the Mac's
     menu bar (apple, app name and menus, battery, Wi-Fi, Spotlight, Control Centre, the clock), its
     reminder and its Dock (Finder, Launchpad, Safari, Messages, Mail, Photos, Calendar, Notes, Music,
     Projects, System Settings, the Trash); the Windows 11 taskbar (weather, Start, search, Task View,
     File Explorer, Projects, Settings, and the tray with the clock); the web
     app's teammate cursor and toast; the website's rating and its iPhone version (titanium rim, thin
     bezel, Dynamic Island, status bar, side buttons); the assistant's confirmation. The Dock and
     taskbar glyphs are ported from the pricing card's desktop picture (pricing-desktop.css, which
     the home page does not load).
   - On the floor (.sc-floor, laid flat under the windows): thin lines join every product to a hub
     under the web app, with light pulses running along them.
   A stage under 760px keeps only the web app and the assistant, drawn larger, with their floating
   parts.

   The five overlap as one tight group about the web app (see "windows"): the Mac and Windows behind it
   meet above it like an open book, the website and the assistant overlap its lower corners.

   Motion, in layers that never touch each other's properties (the reveal on the individual translate,
   rotate and scale; the pointer and the scroll on transform; the loops on the frames' transform and the
   parts' own properties):
   - The reveal, once, when the section first comes into view (.is-bundled, then .is-revealing, from
     showcase.js; see "the reveal"): the products start as one small bundle, the scene at half size lying
     back with every window stacked deep behind the web app, and bloom out into the group with CSS
     transitions on the compositor: the scene stands up and grows, the windows spring to their places,
     turning toward the viewer as they land (the web app first, then the front windows, then the back
     ones), their floating parts pop out last, the glow widens and the floor's network fades in. It is
     driven by time, not by the scroll, so no frame of it waits on a style change.
   - Depth: each window has a --depth and each floating part a --pd on top of it. While the section
     scrolls past, the nearer layers travel further (--center from site.js); under a mouse or pen
     the scene turns toward the pointer, every layer shifts by its depth, a light slides over the
     glass and each window's soft shadow slides away from it (--px, --py from showcase.js). While
     the scene is live, short transitions smooth it all.
   - Life (.is-live from showcase.js, while the stage is in view, once the reveal is over): the windows and their parts
     float on their own rhythms, and the products play one twelve-second story (--loop): a guest
     asks the assistant to move a booking, the answer streams in word by word (showcase.js wraps the
     words) and the confirmation pops out; a light runs across the floor to the web app, where the
     new order slides into the table, its figure ticks up and the toast pops out, while a teammate's
     cursor moves around and a pending order turns paid. Meanwhile the Windows app goes to Today and
     back, its cards fill in again and its taskbar indicator shrinks and stretches, the Projects icon
     bounces in the Mac's Dock and the reminder slides in, and the website and the phone scroll. Text is never faded: whatever holds text comes and goes by
     transform and clip-path only.
   Every plain style is the FINISHED, still scene: without motion, without JavaScript, or once the
   reveal is over, every window rests in its place, every part has popped out and every
   screen shows in full. */

.showcase {
  --sc-win: #ffffff;
  --sc-bar: #f1f5f8;
  --sc-tabs: #e3eaef;
  --sc-side: #edf3f7;
  --sc-mica: #e9f0f4;
  --sc-select: #dde6ec;
  --sc-row: #f4f7f9;
  --sc-soft: #e5f3f9;
  --sc-ink: #282c33;
  --sc-ink-2: #52616e;
  --sc-skel: #dbe3e9;
  --sc-accent: #245d76;
  --sc-btn: #245d76;
  --sc-btn-ink: #ffffff;
  --sc-ok: #1d6a43;
  --sc-ok-bg: #dcf0e4;
  --sc-wait: #7c5410;
  --sc-wait-bg: #f7ecce;
  --sc-peer: #b4502a;
  --sc-peer-ink: #ffffff;
  --sc-live: #2f9a62;
  --sc-star: #e3a33a;
  --sc-me: #282c33;
  --sc-me-ink: #f8fafc;
  --sc-line: rgb(40 44 51 / 0.08);
  --sc-border: rgb(40 44 51 / 0.13);
  --sc-rim: rgb(255 255 255 / 0.85);
  --sc-dock: rgb(255 255 255 / 0.74);
  --sc-dock-rim: rgb(255 255 255 / 0.7);
  --sc-dock-gloss: rgb(255 255 255 / 0.45);
  --sc-run: #3a3f46;
  --sc-menubar: #eef2f7;
  --sc-task-on: #ffffff;
  --sc-task-dot: #8a929b;
  --sc-bezel: #0b0c0e;
  --sc-ti-1: #e4e1da;
  --sc-ti-2: #aaa69d;
  --sc-ti-3: #77746d;
  --sc-shadow: 0 1px 2px rgb(24 27 32 / 0.06), 0 0.6em 1.4em -0.6em rgb(24 27 32 / 0.2);
  --sc-cast: rgb(24 27 32 / 0.24);
  --sc-pop-shadow: 0 0.2em 0.5em rgb(24 27 32 / 0.08), 0 1.4em 2.6em -1em rgb(24 27 32 / 0.36);
  --sc-glow: rgb(167 216 239 / 0.5);
  --sc-floor: rgb(36 93 118 / 0.22);
  --sc-sheen: rgb(255 255 255 / 0.26);
  --sc-link: rgb(36 93 118 / 0.34);
  --sc-pulse: #3b7d9a;
  --sc-node: #245d76;
  --sc-sky-1: #9fd0ea;
  --sc-sky-2: #eef8fc;
  --sc-sea-1: #3b7d9a;
  --sc-sea-2: #1d4e63;
  --sc-land-1: #8fb7cb;
  --sc-land-2: #52707f;
  --sc-sun: #fff2cf;
  --sc-house: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .showcase {
    --sc-win: #23272e; --sc-bar: #2b3038; --sc-tabs: #1d2127; --sc-side: #1f2329; --sc-mica: #262b32;
    --sc-select: #343b44; --sc-row: #2b3038; --sc-soft: #33424d; --sc-ink: #eef2f5; --sc-ink-2: #a9b4bf;
    --sc-skel: #3b424b; --sc-accent: #a7d8ef; --sc-btn: #a7d8ef; --sc-btn-ink: #181b20;
    --sc-ok: #7fd1a2; --sc-ok-bg: #2a3b35; --sc-wait: #e3c16f; --sc-wait-bg: #3a3529;
    --sc-peer: #f09a74; --sc-peer-ink: #181b20; --sc-live: #7fd1a2; --sc-star: #e7b844;
    --sc-me: #eef3f6; --sc-me-ink: #181b20;
    --sc-line: rgb(241 245 249 / 0.08); --sc-border: rgb(241 245 249 / 0.14); --sc-rim: rgb(255 255 255 / 0.06);
    --sc-dock: rgb(43 48 56 / 0.74); --sc-dock-rim: rgb(255 255 255 / 0.14); --sc-dock-gloss: rgb(255 255 255 / 0.08); --sc-run: #e6e9ee;
    --sc-menubar: #1b2130; --sc-task-on: #343b44; --sc-task-dot: #9aa3ad;
    --sc-bezel: #050607; --sc-ti-1: #8e9196; --sc-ti-2: #50535a; --sc-ti-3: #2a2c30;
    --sc-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 0.6em 1.4em -0.6em rgb(0 0 0 / 0.55);
    --sc-cast: rgb(0 0 0 / 0.55);
    --sc-pop-shadow: 0 0.2em 0.5em rgb(0 0 0 / 0.3), 0 1.4em 2.6em -1em rgb(0 0 0 / 0.75);
    --sc-glow: rgb(59 125 154 / 0.45); --sc-floor: rgb(0 0 0 / 0.5); --sc-sheen: rgb(167 216 239 / 0.1);
    --sc-link: rgb(167 216 239 / 0.3); --sc-pulse: #a7d8ef; --sc-node: #a7d8ef;
    --sc-sky-1: #1f4558; --sc-sky-2: #4f8199; --sc-sea-1: #245d76; --sc-sea-2: #12303e;
    --sc-land-1: #3b6175; --sc-land-2: #1f3340; --sc-sun: #f3e3b5; --sc-house: #e3ebf0;
  }
}
:root[data-theme='dark'] .showcase {
  --sc-win: #23272e; --sc-bar: #2b3038; --sc-tabs: #1d2127; --sc-side: #1f2329; --sc-mica: #262b32;
  --sc-select: #343b44; --sc-row: #2b3038; --sc-soft: #33424d; --sc-ink: #eef2f5; --sc-ink-2: #a9b4bf;
  --sc-skel: #3b424b; --sc-accent: #a7d8ef; --sc-btn: #a7d8ef; --sc-btn-ink: #181b20;
  --sc-ok: #7fd1a2; --sc-ok-bg: #2a3b35; --sc-wait: #e3c16f; --sc-wait-bg: #3a3529;
  --sc-peer: #f09a74; --sc-peer-ink: #181b20; --sc-live: #7fd1a2; --sc-star: #e7b844;
  --sc-me: #eef3f6; --sc-me-ink: #181b20;
  --sc-line: rgb(241 245 249 / 0.08); --sc-border: rgb(241 245 249 / 0.14); --sc-rim: rgb(255 255 255 / 0.06);
  --sc-dock: rgb(43 48 56 / 0.74); --sc-dock-rim: rgb(255 255 255 / 0.14); --sc-dock-gloss: rgb(255 255 255 / 0.08); --sc-run: #e6e9ee;
  --sc-menubar: #1b2130; --sc-task-on: #343b44; --sc-task-dot: #9aa3ad;
  --sc-bezel: #050607; --sc-ti-1: #8e9196; --sc-ti-2: #50535a; --sc-ti-3: #2a2c30;
  --sc-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 0.6em 1.4em -0.6em rgb(0 0 0 / 0.55);
  --sc-cast: rgb(0 0 0 / 0.55);
  --sc-pop-shadow: 0 0.2em 0.5em rgb(0 0 0 / 0.3), 0 1.4em 2.6em -1em rgb(0 0 0 / 0.75);
  --sc-glow: rgb(59 125 154 / 0.45); --sc-floor: rgb(0 0 0 / 0.5); --sc-sheen: rgb(167 216 239 / 0.1);
  --sc-link: rgb(167 216 239 / 0.3); --sc-pulse: #a7d8ef; --sc-node: #a7d8ef;
  --sc-sky-1: #1f4558; --sc-sky-2: #4f8199; --sc-sea-1: #245d76; --sc-sea-2: #12303e;
  --sc-land-1: #3b6175; --sc-land-2: #1f3340; --sc-sun: #f3e3b5; --sc-house: #e3ebf0;
}

/* The section spans the page's width: anything of the 3D scene that leans past the page's edges
   (its glow, a window turning toward the pointer) is cut there instead of widening the page. */
.showcase { overflow-x: clip; }

/* ------------------------------------------------------------------ head */

.showcase__head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(36px, 4.4vw, 64px); }
.showcase__head .section-lead { margin-inline: auto; max-width: 52ch; }

/* ----------------------------------------------------------------- stage */

.showcase__stage {
  container-type: inline-size;
  position: relative;
  perspective: 1600px;
  perspective-origin: 50% 40%;
  /* The smoothing of the pointer's lean and the scroll drift while live, and the two curves of the
     reveal: a spring for the windows and their parts (it runs a little past, then settles back) and a
     calm ease-out for the scene itself. */
  --smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.32, 0.64, 1);
  --settle: cubic-bezier(0.22, 1, 0.36, 1);
  /* The length of the story the products play while live (see "life"). */
  --loop: 12s;
}
.showcase__scene {
  position: relative;
  font-size: calc(100cqi / 100);
  height: 63em;
  margin-inline: auto;
  line-height: 1.3;
  transform-style: preserve-3d;
  /* The bundle gathers about the middle of the group, so it is on screen while it blooms. */
  transform-origin: 50% 35%;
  /* The reveal moves the scene by its own rotate and scale (see "the reveal"); its transform is only the
     turn toward the pointer, so the two never retarget each other. */
  rotate: x 0deg;
  scale: 1;
  transform: rotateX(calc(var(--py, 0) * -4deg)) rotateY(calc(var(--px, 0) * 6deg));
}
/* A glow far behind the windows, and their shadow on the floor: soft radial gradients, no blur filter,
   so moving or scaling them costs nothing to repaint. */
.showcase__scene::before {
  content: ''; position: absolute; inset: 4% 8% 2%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--sc-glow), transparent);
  translate: calc(var(--px, 0) * 6em) calc(var(--py, 0) * 4em - var(--center, 0) * 2em) -34em;
  scale: 1;
  transform: scale(1.45);
}
.showcase__scene::after {
  content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 8em; border-radius: 50%;
  background: radial-gradient(closest-side, var(--sc-floor), transparent);
  transform: translateZ(-16em);
}

/* ------------------------------------------------------------------ floor */
/* A plane laid flat at the height of the front windows' feet, reaching from 22em behind the web app to
   4em before it: it stays clear of the front windows and the phone (all nearer than that) and of the
   stage's bottom edge. Its drawing is in em: one unit of the viewBox is one em of the scene. The hub
   sits under the web app, a node under every other window. */

.sc-floor {
  position: absolute; left: 0; top: 57em; width: 100em; height: 26em; pointer-events: none;
  transform-origin: 50% 0;
  transform: translateZ(-22em) rotateX(90deg);
}
.sc-floor svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sc-floor__link { fill: none; stroke: var(--sc-link); stroke-width: 0.12; stroke-dasharray: 0.5 0.55; }
/* A pulse is one short dash: with a gap longer than the path it shows only while it runs along it. */
.sc-floor__pulse { fill: none; stroke: var(--sc-pulse); stroke-width: 0.32; stroke-linecap: round; stroke-dasharray: 7 200; stroke-dashoffset: 7; }
.sc-floor__node { fill: var(--sc-node); }
.sc-floor__ring { fill: none; stroke: var(--sc-link); stroke-width: 0.12; }
.sc-floor__hub { fill: var(--sc-node); }
.sc-floor__wave { fill: none; stroke: var(--sc-pulse); stroke-width: 0.12; opacity: 0; transform-box: fill-box; transform-origin: center; }

/* ---------------------------------------------------------------- windows */
/* Each window rests at its place by its own translate (its depth, --z), rotate (turned in toward the
   viewer, --ry) and scale; the reveal moves only those three. Its transform carries the rest, which
   changes with every scroll step and pointer move: the drift by depth with the scroll (--center from
   site.js) and the shift by depth toward the pointer (--px, --py from showcase.js). */

.sc-win {
  position: absolute;
  transform-style: preserve-3d;
  translate: 0 0 var(--z, 0em);
  rotate: y var(--ry, 0deg);
  scale: 1;
  transform: translate3d(
    calc(var(--px, 0) * var(--depth) * 1.2em),
    calc(var(--py, 0) * var(--depth) * 0.8em + var(--center, 0) * var(--depth) * 1.8em),
    0);
}
/* Its soft shadow, just behind it: the light comes from the pointer, so the shadow slides away from it.
   A box-shadow blur (drawn once, cheaply) instead of a blur filter. */
.sc-win::before {
  content: ''; position: absolute; inset: 14% 10% 2%; border-radius: 2em; pointer-events: none;
  background: var(--sc-cast);
  box-shadow: 0 0 2.2em 1.2em var(--sc-cast);
  transform: translateZ(-2.5em);
  translate: calc(var(--px, 0) * -1.8em) calc(1.4em - var(--py, 0) * 1.2em);
}
/* The smoothing between scroll steps and pointer moves runs only while the scene is live, so a page that is
   loading, revealing, has no JavaScript or asks for reduced motion never shows it mid-move. */
.is-live .showcase__scene, .is-live .sc-win, .is-live .sc-pop { transition: transform var(--smooth); }
.is-live .showcase__scene::before, .is-live .sc-win::before { transition: translate var(--smooth); }

/* The bundle: five windows overlapping as one group about the web app. The two back windows meet at the
   middle like an open book above it (the Mac's menu bar, reminder and Dock in its visible part, the
   Windows taskbar in its own); the website and the assistant overlap its lower corners, leaving its
   title, figures, table header and first rows clear. --dx and --dy lead each window from its place to
   the web app's centre (50em, 28em) for the reveal; --rd is its delay in the reveal. */
.sc-win--mac { left: 6em; top: 1em; width: 44em; height: 30em; --z: -14em; --ry: 18deg; --dx: 22em; --dy: 12em; --depth: 0.6; --rd: 0.2s; }
.sc-win--windows { right: 6em; top: 1em; width: 44em; height: 30em; --z: -14em; --ry: -18deg; --dx: -22em; --dy: 12em; --sz: 1.5em; --depth: 0.6; --rd: 0.2s; }
.sc-win--web { left: 25em; top: 10em; width: 50em; height: 36em; --depth: 1.2; }
.sc-win--site { left: 13em; top: 34em; width: 37em; height: 24em; --z: 8em; --ry: 10deg; --dx: 18.5em; --dy: -18em; --depth: 2.2; --rd: 0.1s; }
.sc-win--ai { right: 13em; top: 33em; width: 30em; height: 25.5em; --z: 10em; --ry: -10deg; --dx: -22em; --dy: -17.75em; --depth: 2.5; --rd: 0.1s; }

/* The stage's scroll numbers (--enter, --center, --focus from site.js, every scroll step) and the
   pointer's (--px, --py) are only read by the scene, the windows, their shadows, lights and floating
   parts. Setting them again just inside the screens keeps each change from restyling the hundreds of
   elements drawn there. */
.sc-frame > *, .sc-pop > *, .sc-floor > * { --enter: 0; --center: 0; --focus: 0; }
.sc-frame > * { --px: 0; --py: 0; }

.sc-frame {
  position: relative;
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 1.1em; background: var(--sc-win); color: var(--sc-ink);
  border: 1px solid var(--sc-border); box-shadow: var(--sc-shadow);
}
.sc-frame--square { border-radius: 0.65em; }
/* The light on the glass: a wide soft spot, painted once, that slides over the window toward the pointer
   while the scene is live. */
.sc-frame::after {
  content: ''; position: absolute; left: -60%; top: -60%; width: 220%; height: 220%; z-index: 3; pointer-events: none;
  background: radial-gradient(closest-side, var(--sc-sheen), transparent 72%);
  translate: calc(var(--px, 0) * 20%) calc(var(--py, 0) * 20% - 12%);
  opacity: 0; transition: opacity 0.8s ease;
}
.is-live .sc-frame::after { opacity: 1; }

/* Parts every window uses: one line of text (every label is given room for its longest language; the
   ellipsis is only a safety net), an icon,
   the traffic lights, a search field, a project's mark, a progress bar, faces and a due date. */
.sc-t { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sc-strong { font-weight: 600; color: var(--sc-ink); }
.sc-dim { font-size: 0.86em; color: var(--sc-ink-2); }
.sc-ico { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sc-lights { flex: none; display: flex; gap: 0.45em; }
.sc-lights i { width: 0.8em; height: 0.8em; border-radius: 50%; background: #ec6a5e; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1); }
.sc-lights i:nth-child(2) { background: #f4bf4f; }
.sc-lights i:nth-child(3) { background: #61c554; }
.sc-lights--quiet i, .sc-lights--quiet i:nth-child(2), .sc-lights--quiet i:nth-child(3) { background: var(--sc-skel); box-shadow: none; }
.sc-search {
  display: flex; align-items: center; gap: 0.45em; min-width: 0; height: 2em; padding: 0 0.7em;
  border-radius: 0.55em; background: var(--sc-bar); color: var(--sc-ink-2); font-size: 0.92em;
}
.sc-search .sc-ico { width: 1em; height: 1em; }
.sc-proj { flex: none; width: 2.4em; height: 2.4em; border-radius: 0.65em; background: linear-gradient(135deg, var(--layer-ui), var(--layer-data)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3); }
.sc-proj--2 { background: linear-gradient(135deg, #f3d38a, #c98a2e); }
.sc-proj--3 { background: linear-gradient(135deg, #9ad1b4, #2f8a5b); }
.sc-proj--4 { background: linear-gradient(135deg, #f0a58a, #c2562f); }
.sc-prog { display: block; height: 0.42em; border-radius: 999px; background: var(--sc-skel); overflow: hidden; }
.sc-prog i { display: block; width: calc(var(--v, 0.5) * 100%); height: 100%; border-radius: inherit; background: var(--sc-accent); transform-origin: 0 50%; }
.sc-pct { font-size: 0.86em; color: var(--sc-ink-2); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-chip { flex: 0 1 auto; max-width: 100%; padding: 0.25em 0.65em; border-radius: 999px; background: var(--sc-wait-bg); color: var(--sc-wait); font-size: 0.8em; font-weight: 600; }
.sc-faces { flex: none; display: flex; }
.sc-faces i { width: 1.6em; height: 1.6em; margin-left: -0.45em; border-radius: 50%; border: 0.14em solid var(--sc-win); background: linear-gradient(135deg, #f0c4a8, #b9785a); }
.sc-faces i:first-child { margin-left: 0; }
.sc-faces i:nth-child(2) { background: linear-gradient(135deg, #a7d8ef, #3b7d9a); }
.sc-faces i:nth-child(3) { background: linear-gradient(135deg, #d9c2a3, #8a6b4a); }
/* The Projects app's own icon: three columns of a board, white on the brand's blues (as on the pricing card). */
.sc-appicon { flex: none; display: block; width: 1.2em; height: 1.2em; border-radius: 0.3em; background: linear-gradient(160deg, #7fbfdd, #3b7d9a 55%, #245d76); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35); }
.sc-appicon__glyph { display: block; width: 100%; height: 100%; fill: #ffffff; }

/* ------------------------------------------------------- floating parts */
/* A floating part rides on its window (so it flies in with it) and stands out in front of it by its own
   translate (--pz; just off the glass in the bundle) and scale, the two the reveal moves; its transform
   holds its own share of the pointer and the scroll on top of the window's (--pd). Its loops use
   translate (with the same depth), scale and clip-path. */

.sc-pop {
  position: absolute; display: flex; align-items: center; gap: 0.7em; line-height: 1.3; color: var(--sc-ink);
  translate: 0 0 var(--pz, 4em);
  scale: 1;
  transform: translate3d(
    calc(var(--px, 0) * var(--pd, 1) * 1em),
    calc(var(--py, 0) * var(--pd, 1) * 0.7em + var(--center, 0) * var(--pd, 1) * 1.4em),
    0);
}
.sc-pop--note, .sc-pop--toast, .sc-pop--done, .sc-pop--rating {
  padding: 0.8em 1em; border-radius: 0.9em; background: var(--sc-win); color: var(--sc-ink);
  border: 1px solid var(--sc-border); box-shadow: var(--sc-pop-shadow), inset 0 1px 0 var(--sc-rim);
}
.sc-pop__text { display: flex; flex-direction: column; gap: 0.1em; min-width: 0; }
.sc-check { flex: none; display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--sc-ok-bg); color: var(--sc-ok); }
.sc-check svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10; stroke-dashoffset: 0; }

/* ------------------------------------------------------------- the Mac */
/* The Projects app on macOS: the traffic lights in a translucent-looking sidebar, a unified toolbar
   (title, view switch, search, add) and the projects as a list, the selected one highlighted; with
   the menu bar above it, the reminder and the Dock as floating parts. */

.sc-mac { flex-direction: row; }
.sc-mac__side {
  flex: none; width: 11.5em; display: flex; flex-direction: column; gap: 0.2em; padding: 1.1em 0.7em 0.8em;
  background: var(--sc-side); border-right: 1px solid var(--sc-line); color: var(--sc-ink-2);
}
.sc-mac__side .sc-lights { margin: 0 0 1.4em 0.45em; }
.sc-mac__item { display: flex; align-items: center; gap: 0.55em; min-width: 0; padding: 0.45em 0.6em; border-radius: 0.5em; }
.sc-mac__item .sc-ico { color: var(--sc-accent); }
.sc-mac__item--on { background: var(--sc-select); color: var(--sc-ink); font-weight: 600; }
.sc-mac__item--end { margin-top: auto; }
.sc-mac__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-mac__toolbar { flex: none; height: 3.6em; display: flex; align-items: center; gap: 0.8em; padding: 0 1em 0 1.3em; border-bottom: 1px solid var(--sc-line); }
.sc-mac__title { flex: 1 1 auto; font-size: 1.25em; font-weight: 700; letter-spacing: -0.01em; }
.sc-seg { flex: none; display: flex; padding: 0.15em; border-radius: 0.45em; background: var(--sc-bar); }
.sc-seg i { width: 1.9em; height: 1.4em; border-radius: 0.35em; }
.sc-seg .sc-seg__on { background: var(--sc-win); box-shadow: 0 1px 2px rgb(24 27 32 / 0.14); }
.sc-mac__search { flex: 0 1 10em; }
.sc-mac__add { flex: none; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 0.5em; color: var(--sc-ink-2); }
.sc-mac__list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.35em; padding: 0.9em; }
.sc-mac__row {
  display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto 4.5em 2.8em; align-items: center; gap: 0.7em;
  min-height: 4.4em; padding: 0.5em 0.8em; border-radius: 0.75em;
}
/* The selected project has no faces column: its tasks and due date share the line under its name (and wrap
   rather than being cut). */
.sc-mac__row--on { grid-template-columns: 2.4em minmax(0, 1fr) 4.5em 2.8em; background: var(--sc-soft); }
.sc-mac__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3em 0.5em; min-width: 0; }
.sc-mac__name { display: flex; flex-direction: column; gap: 0.15em; min-width: 0; }

/* The menu bar, floating just above the window: the apple, the app's name in bold and its menus at the left;
   the battery, Wi-Fi, Spotlight, Control Centre and the date and time at the right, in macOS Sequoia's order. The menus wrap onto a hidden
   second line when a language runs long, so they are cut off whole and never run into the right side. */
.sc-pop--menubar {
  top: -2.8em; left: 0; right: 0; height: 2.1em; gap: 1.2em; padding: 0 1em;
  border-radius: 0.6em; background: var(--sc-menubar);
  box-shadow: var(--sc-pop-shadow), inset 0 0 0 1px var(--sc-border), inset 0 1px 0 var(--sc-rim);
  --pz: 1.6em; --pd: 0.9; --bob: 8.5s; --bob-delay: 1.2s;
}
.sc-menubar__menus {
  flex: 1 1 auto; min-width: 0; height: 100%; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; column-gap: 1.25em;
}
.sc-menubar__apple { flex: none; display: block; width: 0.95em; height: 1.1em; margin-block: 0.5em; fill: currentColor; }
.sc-menubar__app, .sc-menubar__menu, .sc-menubar__clock { font-size: 0.92em; font-weight: 500; line-height: 2.283; white-space: nowrap; }
.sc-menubar__app { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.sc-menubar__menu { flex: none; }
.sc-menubar__status { flex: none; display: flex; align-items: center; gap: 0.95em; }
.sc-menubar__icon { flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sc-menubar__icon--control { width: 1.1em; height: 0.95em; stroke-width: 1.2; }
.sc-menubar__icon--wifi { width: 1.25em; height: 0.95em; stroke-width: 1.6; }
.sc-menubar__icon--battery { width: 1.7em; height: 0.85em; stroke-width: 1.1; }
.sc-menubar__icon--spotlight { width: 0.92em; height: 0.92em; stroke-width: 1.6; }

/* The reminder, below the menu bar at the top right, as macOS shows it (above the web app, short of the
   Windows window's title). */
.sc-pop--note {
  top: 0.4em; right: 0; width: 18.5em; flex-direction: column; align-items: stretch; gap: 0.15em;
  padding: 0.75em 0.95em; border-radius: 1.1em; --pz: 5em; --pd: 1.2;
}
.sc-note__head { display: flex; align-items: center; gap: 0.45em; margin-bottom: 0.2em; font-size: 0.8em; color: var(--sc-ink-2); }
.sc-note__head .sc-t { flex: 1 1 auto; font-weight: 600; letter-spacing: 0.02em; }
.sc-note__time { flex: none; }
.sc-note__title { font-weight: 650; }
.sc-note__body { font-size: 0.9em; color: var(--sc-ink-2); }

/* The Dock, over the window's bottom edge and a little past its left one, so all of it lies in the part
   of the window beside the web app: frosted glass with a
   light across its top half, each app a rounded tile with a soft gloss and an inner rim (the glyphs are the
   pricing card's Mac drawings): Finder, Launchpad, Safari, Messages, Mail, Photos, Calendar (its red band and
   the day), Notes, Music, Projects, System Settings, a separator, the Trash; a dot under Finder and Projects. */
.sc-pop--dock {
  left: -5.6em; bottom: -1.9em; align-items: flex-end; gap: 0.22em; padding: 0.3em 0.36em 0.42em;
  border-radius: 0.85em; background: var(--sc-dock);
  box-shadow: var(--sc-pop-shadow), inset 0 0 0 1px var(--sc-dock-rim);
  --pz: 3em; --pd: 0.8; --bob: 7.4s; --bob-delay: 3s;
}
.sc-pop--dock::before {
  content: ''; position: absolute; left: 1px; right: 1px; top: 1px; height: 48%; pointer-events: none;
  border-radius: 0.8em 0.8em 0.3em 0.3em; background: linear-gradient(180deg, var(--sc-dock-gloss), transparent);
}
.sc-dock__app { position: relative; flex: none; display: block; }
.sc-dock__tile {
  position: relative; display: block; width: 1.45em; height: 1.45em; overflow: hidden; border-radius: 0.35em;
  box-shadow: 0 0.08em 0.2em rgb(16 24 40 / 0.28);
}
.sc-dock__tile::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.22), transparent 48%);
  box-shadow: inset 0 0.05em 0 rgb(255 255 255 / 0.5), inset 0 0 0 0.03em rgb(16 24 40 / 0.12);
}
.sc-dock__glyph { display: block; width: 100%; height: 100%; }
.sc-dock__app--finder .sc-dock__tile { background: #dff0fc; }
.sc-dock__app--launchpad .sc-dock__tile { background: linear-gradient(180deg, #f4f5f7, #cfd4da); }
.sc-dock__app--safari .sc-dock__tile { background: linear-gradient(180deg, #ffffff, #e4e9ef); }
.sc-dock__app--messages .sc-dock__tile { background: linear-gradient(180deg, #6cf57c, #16c037); }
.sc-dock__app--mail .sc-dock__tile { background: linear-gradient(180deg, #52b6ff, #1769e6); }
.sc-dock__app--photos .sc-dock__tile, .sc-dock__app--notes .sc-dock__tile { background: #ffffff; }
.sc-dock__app--music .sc-dock__tile { background: linear-gradient(180deg, #ff6584, #f8233c); }
.sc-dock__app--settings .sc-dock__tile { background: linear-gradient(180deg, #dfe2e6, #9da3ab); }
.sc-dock__app--trash .sc-dock__tile { overflow: visible; border-radius: 0; box-shadow: none; }
.sc-dock__app--trash .sc-dock__tile::after { content: none; }
/* Calendar: the red month band, then the day on plain white (a solid colour, for its contrast). */
.sc-dock__app--calendar .sc-dock__tile { display: flex; flex-direction: column; background-color: #ffffff; }
.sc-dock__month { flex: none; display: block; height: 0.4em; background: #f0443a; }
.sc-dock__day { flex: 1; display: grid; place-items: center; font-size: 0.76em; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: #1d1d1f; }
.sc-dock__app--running::after {
  content: ''; position: absolute; left: 50%; bottom: -0.3em; width: 0.17em; height: 0.17em; margin-left: -0.085em;
  border-radius: 50%; background: var(--sc-run);
}
.sc-dock__sep { flex: none; align-self: stretch; width: 1px; margin: 0.15em 0.12em; background: var(--sc-border); }

/* ---------------------------------------------------------- Windows 11 */
/* The same app on Windows: a Mica title bar with the app's icon and name and the three caption
   buttons, the navigation pane with its selection pill, and the content on a lighter layer: the
   heading, search, the accent "New project" button and the projects as cards; with the taskbar as a
   floating part. */

.sc-w11 { background: var(--sc-mica); }
.sc-w11__title { flex: none; height: 2.8em; display: flex; align-items: center; gap: 0.7em; padding-left: 1em; font-size: 0.95em; }
.sc-w11__title .sc-t { flex: 1 1 auto; }
.sc-w11__caps { flex: none; align-self: stretch; display: flex; }
.sc-w11__caps i { width: 3.4em; display: grid; place-items: center; }
.sc-w11__caps i::before { content: ''; width: 0.78em; height: 0.78em; border: 1px solid var(--sc-ink); border-radius: 0.12em; }
.sc-w11__caps i:first-child::before { height: 0; border-width: 1px 0 0; border-radius: 0; }
.sc-w11__caps i:last-child::before {
  border: 0; border-radius: 0;
  background:
    linear-gradient(45deg, transparent calc(50% - 0.5px), var(--sc-ink) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(-45deg, transparent calc(50% - 0.5px), var(--sc-ink) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
.sc-w11__body { flex: 1; min-height: 0; display: flex; }
.sc-w11__nav { flex: none; width: 11em; display: flex; flex-direction: column; gap: 0.3em; padding: 0.2em 0.5em 0.7em; color: var(--sc-ink-2); }
.sc-w11__burger { display: grid; place-items: center; width: 2.4em; height: 2.4em; color: var(--sc-ink); }
.sc-w11__items { position: relative; display: flex; flex-direction: column; gap: 0.2em; }
.sc-w11__item { position: relative; display: flex; align-items: center; gap: 0.7em; min-width: 0; height: 2.4em; padding: 0 0.75em; border-radius: 0.4em; }
.sc-w11__item--on { color: var(--sc-ink); font-weight: 600; }
.sc-w11__item--end { margin-top: auto; }
/* The selection: a soft pill with the accent mark at its left, under the second item ("Projects"). */
.sc-w11__pill { position: absolute; left: 0; right: 0; top: 0; height: 2.4em; border-radius: 0.4em; background: var(--sc-select); transform: translateY(2.6em); }
.sc-w11__pill::before { content: ''; position: absolute; left: 0; top: 0.68em; bottom: 0.68em; width: 0.22em; border-radius: 999px; background: var(--sc-accent); }
.sc-w11__content {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1em; padding: 1em 1.2em;
  background: var(--sc-bar); border: solid var(--sc-line); border-width: 1px 0 0 1px; border-top-left-radius: 0.65em;
}
.sc-w11__cmd { flex: none; display: flex; align-items: center; gap: 0.7em; }
.sc-w11__heading { flex: 1 1 auto; font-size: 1.45em; font-weight: 600; letter-spacing: -0.01em; }
.sc-w11__search { flex: 0 1 auto; max-width: 10em; border-radius: 0.35em; background: var(--sc-win); box-shadow: inset 0 -1px 0 var(--sc-border); }
.sc-w11__new {
  flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.4em; height: 2.2em; padding: 0 0.9em;
  border-radius: 0.35em; background: var(--sc-btn); color: var(--sc-btn-ink); font-size: 0.92em; font-weight: 600;
}
.sc-w11__cards { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 0.7em; }
.sc-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.6em; min-width: 0; padding: 0.9em;
  border-radius: 0.5em; background: var(--sc-win); border: 1px solid var(--sc-line); box-shadow: 0 1px 1px rgb(24 27 32 / 0.04);
}
.sc-card__top { display: flex; align-items: center; gap: 0.6em; min-width: 0; }
.sc-card .sc-proj { width: 2em; height: 2em; border-radius: 0.45em; }
.sc-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35em 0.5em; min-width: 0; font-size: 0.86em; color: var(--sc-ink-2); }
.sc-card__top .sc-t { line-height: 1.2; }
.sc-card__meta .sc-pct, .sc-card__meta .sc-chip { font-size: 0.92em; }

/* The Windows 11 taskbar on Mica, over the window's bottom edge and a little past its right edge (the screen
   goes on): the weather at the left (behind the web app); Start, search (Windows 11's "search icon only"
   setting, so the pinned apps fit beside the web app) and the pinned apps (Task View, File Explorer running
   with a dot, Projects open with its long accent indicator, Settings), pushed toward the tray; the tray at the
   right (hidden icons, Wi-Fi, sound, battery, the two-line clock, notifications). The glyphs are the pricing
   card's Windows drawings. */
.sc-pop--taskbar {
  right: -3.5em; bottom: -1.7em; width: 22.5em; height: 2.5em; gap: 0.35em; padding: 0 0.4em 0 0.5em;
  border-radius: 0.6em; background: var(--sc-mica);
  box-shadow: var(--sc-pop-shadow), inset 0 0 0 1px var(--sc-border), inset 0 1px 0 var(--sc-rim);
  --pz: 3.5em; --pd: 0.8; --bob: 9s; --bob-delay: 4.4s;
}
.sc-task__weather { flex: none; display: flex; align-items: center; gap: 0.25em; }
.sc-task__sun { flex: none; display: block; width: 1.05em; height: 1.05em; }
.sc-task__temp { font-size: 0.66em; font-weight: 500; white-space: nowrap; }
.sc-task__apps { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.08em; margin: 0 0.3em 0 auto; }
.sc-task { position: relative; flex: none; display: grid; place-items: center; width: 1.42em; height: 1.42em; border-radius: 0.3em; }
.sc-task__glyph { display: block; width: 0.9em; height: 0.9em; }
.sc-task__fill { fill: var(--sc-ink); }
.sc-task__line { fill: var(--sc-mica); stroke: var(--sc-ink); stroke-width: 1.3; }
.sc-task--on { background: var(--sc-task-on); box-shadow: inset 0 0 0 1px var(--sc-line); }
.sc-task__projects { width: 0.94em; height: 0.94em; border-radius: 0.22em; }
.sc-task--run::after, .sc-task--on::after {
  content: ''; position: absolute; left: 50%; bottom: 0.06em; width: 0.26em; height: 0.13em; margin-left: -0.13em;
  border-radius: 999px; background: var(--sc-task-dot);
}
.sc-task--on::after { width: 0.62em; margin-left: -0.31em; background: var(--sc-accent); }
.sc-task--search .sc-task__find { width: 0.85em; height: 0.85em; stroke-width: 1.7; }
.sc-task__tray { flex: none; display: flex; align-items: center; gap: 0.32em; }
.sc-task__quick { display: flex; align-items: center; gap: 0.22em; padding: 0.2em 0.32em; border-radius: 0.3em; }
.sc-tray { flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sc-tray--up { width: 0.45em; height: 0.45em; stroke-width: 1.4; }
.sc-tray--wifi { width: 0.72em; height: 0.55em; stroke-width: 1.5; }
.sc-tray--sound { width: 0.65em; height: 0.65em; stroke-width: 1.2; }
.sc-tray--battery { width: 0.9em; height: 0.45em; stroke-width: 1.1; }
.sc-tray--bell { width: 0.62em; height: 0.62em; stroke-width: 1.2; }
.sc-task__clock { display: flex; flex-direction: column; align-items: flex-end; font-size: 0.56em; line-height: 1.3; white-space: nowrap; }

/* ------------------------------------------------------------ browsers */
/* The tab strip (quiet lights, so the Mac stays the only window in colour), one tab, and the address
   bar with back and forward and the padlocked address in the middle. */

.sc-tabs { flex: none; height: 2.5em; display: flex; align-items: flex-end; gap: 0.8em; padding: 0 0.9em; background: var(--sc-tabs); }
.sc-tabs .sc-lights { align-self: center; }
.sc-tab {
  display: flex; align-items: center; gap: 0.5em; min-width: 0; max-width: 15em; height: 1.95em; padding: 0 0.8em;
  border-radius: 0.55em 0.55em 0 0; background: var(--sc-bar); font-size: 0.88em;
}
.sc-fav { flex: none; width: 1em; height: 1em; border-radius: 0.3em; background: linear-gradient(135deg, #f0a58a, #c2562f); }
.sc-fav--kalma { border-radius: 50%; background: linear-gradient(160deg, var(--layer-brand), var(--layer-data)); }
.sc-tabs__plus {
  align-self: center; flex: none; width: 0.75em; height: 0.75em;
  background:
    linear-gradient(var(--sc-ink-2), var(--sc-ink-2)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--sc-ink-2), var(--sc-ink-2)) center / 1.5px 100% no-repeat;
}
.sc-addr { flex: none; height: 2.6em; display: flex; align-items: center; gap: 0.9em; padding: 0 0.9em; background: var(--sc-bar); border-bottom: 1px solid var(--sc-line); }
.sc-addr__nav { flex: none; display: flex; gap: 0.75em; }
.sc-addr__nav i { width: 0.5em; height: 0.5em; border: solid var(--sc-ink-2); border-width: 0 0 1.5px 1.5px; rotate: 45deg; }
.sc-addr__nav i + i { rotate: -135deg; }
.sc-url {
  flex: 0 1 22em; min-width: 0; margin-inline: auto; display: flex; align-items: center; justify-content: center; gap: 0.45em;
  height: 1.8em; padding: 0 0.9em; border-radius: 999px; background: var(--sc-win); box-shadow: inset 0 0 0 1px var(--sc-line);
  font-size: 0.88em; color: var(--sc-ink-2);
}
.sc-lock { flex: none; width: 0.68em; height: 0.82em; }
.sc-lock rect { fill: var(--sc-ink-2); }
.sc-lock path { fill: none; stroke: var(--sc-ink-2); stroke-width: 1.5; }

/* ------------------------------------------------------------- web app */
/* Luma, a shop's admin: an icon rail, the title with search, the team and "New order", three figures
   (revenue with its chart, orders, conversion) and the latest orders. The table's view shows five rows;
   the newest order sits on top. */

.sc-app { flex: 1; min-height: 0; display: flex; }
.sc-app__rail {
  flex: none; width: 4.4em; display: flex; flex-direction: column; align-items: center; gap: 0.5em; padding: 1em 0;
  background: var(--sc-side); border-right: 1px solid var(--sc-line); color: var(--sc-ink-2);
}
.sc-app__brand { position: relative; width: 2.2em; height: 2.2em; margin-bottom: 0.8em; border-radius: 0.65em; background: linear-gradient(135deg, #f0a58a, #c2562f); }
.sc-app__brand::after { content: ''; position: absolute; inset: 0.55em; border-radius: 50%; border: 0.22em solid rgb(255 255 255 / 0.92); border-right-color: transparent; rotate: 45deg; }
.sc-app__icon { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 0.65em; }
.sc-app__icon--on { background: var(--sc-soft); color: var(--sc-accent); }
.sc-app__icon--end { margin-top: auto; }
.sc-app__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1em; padding: 1.2em 1.6em; }
/* The title and the button keep their words whole; the search field gives way first. */
.sc-app__top { flex: none; display: flex; align-items: center; gap: 0.7em; }
.sc-app__title { flex: none; margin-right: auto; font-size: 1.5em; font-weight: 700; letter-spacing: -0.015em; }
.sc-app__search { flex: 0 1 15em; height: 2.3em; }
.sc-faces--team i { width: 1.8em; height: 1.8em; }
.sc-app__new {
  flex: none; display: flex; align-items: center; gap: 0.4em; height: 2.3em; padding: 0 1em;
  border-radius: 0.6em; background: var(--sc-btn); color: var(--sc-btn-ink); font-size: 0.92em; font-weight: 600;
  box-shadow: 0 0.35em 0.9em -0.35em var(--sc-btn);
}
.sc-kpis { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9em; }
.sc-kpi { display: flex; flex-direction: column; gap: 0.25em; min-width: 0; padding: 0.8em 1em; border-radius: 0.8em; border: 1px solid var(--sc-line); }
.sc-kpi__label { font-size: 0.88em; color: var(--sc-ink-2); }
.sc-kpi__value { font-size: 1.75em; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-kpi__delta { align-self: flex-start; margin-top: auto; padding: 0.15em 0.55em; border-radius: 999px; background: var(--sc-ok-bg); color: var(--sc-ok); font-size: 0.8em; font-weight: 600; white-space: nowrap; }
.sc-chart__plot { display: block; width: 100%; height: 1.6em; margin-top: auto; overflow: visible; }
.sc-chart__area { fill: color-mix(in srgb, var(--layer-brand) 45%, transparent); }
.sc-chart__line { fill: none; stroke: var(--sc-accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sc-kpi__bars { display: flex; align-items: flex-end; gap: 0.3em; height: 1.6em; margin-top: auto; }
.sc-kpi__bars i { flex: 1; height: calc(var(--v, 0.5) * 100%); border-radius: 0.2em; background: var(--layer-brand); }
.sc-kpi__bars i:last-child { background: var(--sc-accent); }
/* A figure that ticks up: two numbers stacked in a one-line window, the second shown. */
.sc-roll { display: inline-block; height: 1.3em; overflow: hidden; vertical-align: bottom; }
.sc-roll__in { display: flex; flex-direction: column; transform: translateY(-50%); }
.sc-table { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 0.8em; border: 1px solid var(--sc-line); overflow: hidden; --row: 2.9em; }
.sc-table__head, .sc-row { display: grid; grid-template-columns: 5.2em minmax(0, 1fr) 6.2em 7.6em; align-items: center; gap: 0.8em; padding: 0 1em; }
.sc-table__head { flex: none; height: 2.3em; background: var(--sc-bar); color: var(--sc-ink-2); font-weight: 600; }
.sc-table__head > span { font-size: 0.82em; }
.sc-table__head > span:nth-child(3) { text-align: right; }
.sc-table__view { flex: 1; min-height: 0; overflow: hidden; }
.sc-row { position: relative; height: var(--row); border-top: 1px solid var(--sc-line); }
.sc-row:first-child { border-top: 0; }
.sc-row__id { font-size: 0.92em; color: var(--sc-ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-row__who { display: flex; align-items: center; gap: 0.6em; min-width: 0; font-weight: 500; }
.sc-face { flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; background: linear-gradient(135deg, #f0c4a8, #b9785a); }
.sc-row:nth-child(2) .sc-face { background: linear-gradient(135deg, #a7d8ef, #3b7d9a); }
.sc-row:nth-child(3) .sc-face { background: linear-gradient(135deg, #d9c2a3, #8a6b4a); }
.sc-row:nth-child(4) .sc-face { background: linear-gradient(135deg, #9ad1b4, #2f8a5b); }
.sc-row:nth-child(5) .sc-face { background: linear-gradient(135deg, #f3d38a, #c98a2e); }
.sc-row:nth-child(6) .sc-face { background: linear-gradient(135deg, #c3cfd8, #52616e); }
.sc-row__sum { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-row__state { display: flex; min-width: 0; }
.sc-pill { max-width: 100%; padding: 0 0.7em; border-radius: 999px; font-size: 0.8em; font-weight: 600; line-height: 1.6em; }
.sc-pill--paid { background: var(--sc-ok-bg); color: var(--sc-ok); }
.sc-pill--shipped { background: var(--sc-soft); color: var(--sc-accent); }
.sc-pill--pending { background: var(--sc-wait-bg); color: var(--sc-wait); }
/* A status that changes: both pills stacked in a one-pill window, the second ("Paid") shown. */
.sc-flip { display: block; height: 1.28em; overflow: hidden; border-radius: 999px; }
.sc-flip__in { display: flex; flex-direction: column; align-items: flex-start; transform: translateY(-50%); }
/* The newest row lights up when it arrives (a light under its text, never over it). */
.sc-row--new { isolation: isolate; }
.sc-row--new::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--sc-soft); opacity: 0; }

/* A teammate's labelled cursor over the figures and the table, and the toast for the new order, out past the
   top right edge (over the browser's bar and the Windows window, clear of the title row). */
.sc-pop--peer { left: 24em; top: 17em; align-items: flex-start; gap: 0.1em; --pz: 2.5em; --pd: 1; }
.sc-cursor { flex: none; width: 1.3em; height: 1.65em; fill: var(--sc-peer); stroke: #ffffff; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 0.15em 0.25em rgb(24 27 32 / 0.3)); }
.sc-peer__name { margin-top: 1.1em; padding: 0.2em 0.55em; border-radius: 0.35em 0.9em 0.9em; background: var(--sc-peer); color: var(--sc-peer-ink); font-size: 0.82em; font-weight: 600; white-space: nowrap; }
.sc-pop--toast { top: 1em; right: -11em; width: 19em; --pz: 6em; --pd: 1.6; }

/* ------------------------------------------------------------- website */
/* Kalma, a hotel by the sea: nav with its booking button, a hero (the place, the promise, two buttons)
   beside a photo of the sea, then features, rooms and the footer below the fold. */

.sc-site { flex: 1; min-height: 0; overflow: hidden; }
.sc-site__page { display: flex; flex-direction: column; gap: 0.9em; padding: 0 1.4em; --scroll: 12em; }
.sc-site__nav { flex: none; display: flex; align-items: center; gap: 1em; height: 2.8em; border-bottom: 1px solid var(--sc-line); }
.sc-logo { flex: none; display: flex; align-items: center; gap: 0.35em; font-family: ui-serif, Georgia, 'Times New Roman', serif; font-size: 1.15em; font-weight: 700; letter-spacing: 0.01em; }
.sc-logo i { width: 0.8em; height: 0.8em; border-radius: 50%; background: linear-gradient(160deg, var(--layer-brand), var(--layer-data)); }
.sc-logo--small { font-size: 1em; }
.sc-site__links { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; gap: 1.1em; font-size: 0.88em; color: var(--sc-ink-2); }
.sc-site__book { flex: 0 1 auto; max-width: 8em; padding: 0.4em 0.95em; border-radius: 999px; background: var(--sc-btn); color: var(--sc-btn-ink); font-size: 0.85em; font-weight: 600; }
.sc-site__hero { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) 14em; gap: 1.2em; align-items: center; }
.sc-site__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5em; min-width: 0; }
.sc-site__kicker { max-width: 100%; font-size: 0.82em; font-weight: 600; letter-spacing: 0.04em; color: var(--sc-accent); }
/* Text that takes a second line when a language needs it, instead of being cut (two lines at most). */
.sc-site__title, .sc-site__lead, .sc-phone__title, .sc-pop--done .sc-t, .sc-card__top .sc-t,
.sc-site__feature .sc-t, .sc-phone__feature .sc-t, .sc-pop--rating .sc-t {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; white-space: normal;
}
.sc-site__title { font-family: ui-serif, Georgia, 'Times New Roman', serif; font-size: 1.95em; font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.sc-site__lead { font-size: 0.88em; line-height: 1.4; color: var(--sc-ink-2); }
.sc-site__ctas { display: flex; gap: 0.5em; max-width: 100%; margin-top: 0.3em; }
.sc-site__cta, .sc-site__more { flex: 0 1 auto; padding: 0.55em 1em; border-radius: 999px; font-size: 0.82em; font-weight: 600; }
.sc-site__cta { background: var(--sc-btn); color: var(--sc-btn-ink); }
.sc-site__more { box-shadow: inset 0 0 0 1px var(--sc-border); }
.sc-site__photo { height: 11em; border-radius: 0.9em; }
.sc-site__features { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6em; }
.sc-site__feature { display: flex; align-items: center; gap: 0.45em; min-width: 0; padding: 0.65em 0.7em; border-radius: 0.7em; background: var(--sc-row); font-size: 0.86em; font-weight: 500; }
.sc-site__feature .sc-ico, .sc-phone__feature .sc-ico { color: var(--sc-accent); }
.sc-site__rooms { flex: none; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0.6em; }
.sc-site__rooms .sc-photo { height: 7em; border-radius: 0.7em; }
.sc-site__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1em; margin: 0 -1.4em; padding: 1em 1.4em; background: var(--sc-bar); font-size: 0.85em; color: var(--sc-ink-2); }
.sc-site__foot .sc-logo { color: var(--sc-ink); }

/* The photos: drawn sky, sun, islands, sea and a glitter of light on the water; a white house with its
   blue dome on the nearer island. Three smaller ones for the rooms: a room, the pool, the bay at dusk. */
.sc-photo { position: relative; display: block; overflow: hidden; background: linear-gradient(180deg, var(--sc-sky-1), var(--sc-sky-2) 60%, var(--sc-sea-1) 60%, var(--sc-sea-2)); }
.sc-photo__sun { position: absolute; left: 64%; top: 16%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 45% 45%, #ffffff, var(--sc-sun)); box-shadow: 0 0 1.4em 0.4em rgb(255 242 207 / 0.5); }
.sc-photo__land { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-photo__far { fill: var(--sc-land-1); }
.sc-photo__near { fill: var(--sc-land-2); }
.sc-photo__glint {
  position: absolute; left: 60%; width: 24%; top: 62%; bottom: 6%;
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / 0.6) 0 0.1em, transparent 0.1em 0.55em);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent);
}
.sc-photo__house { position: absolute; left: 80%; top: 49%; width: 5%; height: 7%; border-radius: 0.08em; background: var(--sc-house); }
.sc-photo__house::before { content: ''; position: absolute; left: 15%; right: 15%; bottom: 100%; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; background: var(--layer-api); }
.sc-photo--room { background: linear-gradient(170deg, #f3e8d8, #d9c2a3); }
.sc-photo--room::before { content: ''; position: absolute; left: 12%; top: 18%; width: 34%; height: 38%; border-radius: 0.2em; background: linear-gradient(180deg, #bfe2f3, #3b7d9a); box-shadow: inset 0 0 0 0.2em #ffffff; }
.sc-photo--room::after { content: ''; position: absolute; left: 30%; right: 8%; bottom: 14%; height: 26%; border-radius: 0.3em; background: #ffffff; box-shadow: 0 -0.5em 0 -0.15em #c9a97f; }
.sc-photo--pool { background: linear-gradient(180deg, #bfe2f3 0 42%, #f3ead9 42% 54%, #6fc6de 54%, #2f8fb0); }
.sc-photo--pool::after { content: ''; position: absolute; left: 0; right: 0; top: 64%; height: 0.15em; background: rgb(255 255 255 / 0.7); box-shadow: 0 0.7em 0 rgb(255 255 255 / 0.45); }
.sc-photo--dusk { background: linear-gradient(180deg, #f4b67a, #d27a5e 56%, #3b4a6b 56%, #24324f); }
.sc-photo--dusk::after { content: ''; position: absolute; left: 40%; top: 36%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #ffe0b0; clip-path: inset(0 0 45% 0); }

/* The rating, floating over the lower left of the hero's photo, beside the phone: the stars, then the score
   and the reviews (two lines at most). */
.sc-pop--rating { top: 13.7em; left: 22em; width: 9.5em; flex-direction: column; align-items: flex-start; gap: 0.35em; padding: 0.65em 0.8em; font-size: 0.95em; font-weight: 600; --pz: 5em; --pd: 1.4; --bob: 6.2s; --bob-delay: 1.4s; }
.sc-stars { flex: none; display: flex; gap: 0.1em; }
.sc-star { width: 1.05em; height: 1.05em; fill: var(--sc-star); }
/* The same site on an iPhone (15/16 Pro proportions: 1 : 2.06), in front at the right. A slim titanium rim
   (1.2% of the width, lighter at the top left, natural titanium in light, graphite in dark), a thin even black
   bezel (3.7%), a screen whose corners follow the body's (17.5% of the width, less the rim and the bezel), the
   Dynamic Island, the status bar flanking it on a solid strip that stays put while the page scrolls under it,
   the home indicator, the light on its glass, and the buttons just outside the rim (action and volume on the
   left, the side button on the right), in the same metal and touching it, so the lean never opens a gap. */
.sc-pop--phone {
  right: -4.5em; bottom: -0.5em; width: 11.4em; height: 23.5em; padding: 0.14em; border-radius: 2em;
  background: linear-gradient(135deg, var(--sc-ti-1), var(--sc-ti-2) 42%, var(--sc-ti-3));
  box-shadow: var(--sc-pop-shadow), inset 0 0 0 0.03em rgb(255 255 255 / 0.35);
  --pz: 6.5em; --pd: 1.7; --bob: 6.8s; --bob-delay: 4.2s;
}
.sc-phone__btn { position: absolute; width: 0.16em; background: linear-gradient(90deg, var(--sc-ti-3), var(--sc-ti-1) 55%, var(--sc-ti-2)); }
.sc-phone__btn--action, .sc-phone__btn--up, .sc-phone__btn--down { left: -0.12em; border-radius: 0.08em 0 0 0.08em; }
.sc-phone__btn--action { top: 4.1em; height: 1.2em; }
.sc-phone__btn--up { top: 6.1em; height: 2.1em; }
.sc-phone__btn--down { top: 8.6em; height: 2.1em; }
.sc-phone__btn--side { right: -0.12em; top: 6.6em; height: 3.3em; border-radius: 0 0.08em 0.08em 0; }
.sc-phone { position: relative; width: 100%; height: 100%; padding: 0.42em; border-radius: 1.86em; background: var(--sc-bezel); }
.sc-phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 1.44em; background: var(--sc-win); color: var(--sc-ink); }
/* The light on the glass, very soft, sliding toward the pointer like the windows' light. */
.sc-phone__screen::after {
  content: ''; position: absolute; left: -60%; top: -60%; width: 220%; height: 220%; z-index: 3; pointer-events: none;
  background: radial-gradient(closest-side, var(--sc-sheen), transparent 65%);
  translate: calc(var(--px, 0) * 22%) calc(var(--py, 0) * 22% - 14%);
  opacity: 0; transition: opacity 0.8s ease;
}
.is-live .sc-phone__screen::after { opacity: 0.7; }
.sc-phone__island {
  position: absolute; left: 50%; top: 0.4em; z-index: 2; width: 3.08em; height: 0.92em; margin-left: -1.54em; border-radius: 999px;
  background: radial-gradient(circle at 78% 50%, #1b2633 0 0.15em, transparent 0.17em), #000000;
}
.sc-phone__status {
  position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 1.75em;
  display: grid; grid-template-columns: minmax(0, 1fr) 3.6em minmax(0, 1fr); align-items: center;
  background: var(--sc-win);
}
.sc-phone__time { grid-column: 1; justify-self: center; font-size: 0.78em; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sc-phone__icons { grid-column: 3; justify-self: center; display: flex; align-items: center; gap: 0.22em; }
.sc-phone__signal { display: block; width: 0.72em; height: 0.48em; fill: currentColor; }
.sc-phone__wifi { display: block; width: 0.7em; height: 0.52em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.sc-phone__battery { display: block; width: 1.05em; height: 0.5em; fill: none; stroke: currentColor; stroke-width: 1.1; }
.sc-phone__home { position: absolute; left: 50%; bottom: 0.32em; z-index: 2; width: 3.7em; height: 0.17em; margin-left: -1.85em; border-radius: 999px; background: var(--sc-ink); }
.sc-phone__page { display: flex; flex-direction: column; gap: 0.6em; padding: 2.25em 0.85em 1.4em; font-size: 0.82em; }
.sc-phone__nav { flex: none; display: flex; align-items: center; justify-content: space-between; }
.sc-phone__photo { flex: none; height: 8.5em; border-radius: 0.8em; }
.sc-phone__kicker { font-size: 0.9em; font-weight: 600; color: var(--sc-accent); }
.sc-phone__title { font-family: ui-serif, Georgia, 'Times New Roman', serif; font-size: 1.55em; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.sc-phone__cta { flex: none; padding: 0.65em; border-radius: 999px; background: var(--sc-btn); color: var(--sc-btn-ink); font-weight: 600; text-align: center; }
.sc-phone__feature { flex: none; display: flex; align-items: center; gap: 0.45em; min-width: 0; padding: 0.55em 0.6em; border-radius: 0.6em; background: var(--sc-row); }

/* ------------------------------------------------------------ assistant */
/* Kalma's booking assistant: its face and name, the guest's question, the answer, and the field for
   the next question. */

.sc-chat__head { flex: none; display: flex; align-items: center; gap: 0.6em; height: 3.6em; padding: 0 1.1em; border-bottom: 1px solid var(--sc-line); }
.sc-orb { position: relative; flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff, var(--layer-brand) 30%, var(--layer-api) 68%, var(--layer-data)); box-shadow: 0 0 1em color-mix(in srgb, var(--layer-ui) 55%, transparent); }
.sc-orb i { position: absolute; inset: -0.28em; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--layer-ui) 60%, transparent); }
.sc-chat__name { flex: 0 1 auto; font-size: 1.05em; font-weight: 650; }
.sc-chat__live { flex: none; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--sc-live); box-shadow: 0 0 0 0.2em color-mix(in srgb, var(--sc-live) 22%, transparent); }
.sc-chat__more { flex: none; display: flex; gap: 0.22em; margin-left: auto; }
.sc-chat__more i { width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--sc-ink-2); }
.sc-chat__thread { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.7em; padding: 1.1em; font-size: 1.05em; line-height: 1.4; }
.sc-bubble { max-width: 86%; padding: 0.6em 0.9em; border-radius: 1.1em; overflow-wrap: anywhere; text-wrap: pretty; }
.sc-bubble--me { align-self: flex-end; border-bottom-right-radius: 0.35em; background: var(--sc-me); color: var(--sc-me-ink); transform-origin: 100% 100%; }
.sc-bubble--bot { position: relative; align-self: flex-start; border-bottom-left-radius: 0.35em; background: var(--sc-soft); color: var(--sc-ink); transform-origin: 0 0; }
.sc-bubble__text { display: block; }
.sc-word { position: relative; display: inline-block; }
.sc-typing { position: absolute; left: 0.9em; top: 0.86em; display: flex; gap: 0.32em; opacity: 0; }
.sc-typing i { width: 0.48em; height: 0.48em; border-radius: 50%; background: var(--sc-ink-2); }
.sc-input {
  flex: none; display: flex; align-items: center; gap: 0.6em; height: 2.9em; margin: 0 1em 1em; padding: 0 0.4em 0 1em;
  border-radius: 999px; background: var(--sc-bar); border: 1px solid var(--sc-line); color: var(--sc-ink-2);
}
.sc-input__text { position: relative; flex: 1 1 auto; padding-left: 0.35em; }
.sc-input__send { flex: none; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--sc-btn); color: var(--sc-btn-ink); }
.sc-input__send svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* The confirmation, popping out at the window's lower left, between the answer and the field (clear of the
   phone beside it). */
.sc-pop--done { left: -0.8em; bottom: 4.1em; width: 19em; --pz: 6em; --pd: 1.8; }

/* ---------------------------------------------------------- narrow stage */
/* A narrow stage keeps the web app and the assistant, drawn larger, with a gentler depth; their
   floating parts stay inside the stage. */
@container (max-width: 759px) {
  .showcase__scene { font-size: calc(100cqi / 58); height: 56em; }
  /* A narrow stage is too shallow to shrink the glow with distance: keep it inside the stage. */
  .showcase__scene::before { inset: 6% 14% 4%; transform: scale(1.15); }
  .sc-win--mac, .sc-win--windows, .sc-win--site, .sc-floor { display: none; }
  .sc-win--web { left: 0; top: 2em; width: 58em; height: 37em; }
  .sc-win--ai { right: 0; top: 28em; width: 33em; height: 26em; --z: 5em; --ry: -6deg; --dx: -12.5em; --dy: -20.5em; --depth: 1.8; }
  .sc-pop--toast { top: 8.5em; right: 1.5em; }
  .sc-pop--done { left: -9em; bottom: 4.6em; }
}

/* ---------------------------------------------------------------- the reveal */
/* One time, when the section first comes into view (showcase.js): the products bloom out of a small
   bundle into the group. Driven by time, not by the scroll, so it runs on the compositor: it moves only
   the individual translate, rotate and scale of the scene, the windows and their floating parts, and the
   opacity of the text-free glow, floor and floor shadow, with transitions; nothing in it changes per frame.
   - .is-bundled (set on load while the stage is still below three quarters of the screen): the scene at
     half size, lying back; every window stacked deep behind the web app, facing front and smaller (--dx,
     --dy lead to the web app's centre; one back window --sz deeper so the two never share a plane); the
     floating parts flat on their windows; the glow small, the floor gone.
   - .is-revealing (swapped in once the stage's top crosses that line): the finished values, reached by
     transitions: the scene stands up and grows (1.2s, calm), the windows spring to their places (1.1s, the
     web app at once, the front windows 0.1s later, the back ones 0.2s later: --rd), and each window's
     floating parts pop out 0.55s after it (0.7s). All done within about 1.5s; then showcase.js removes the
     class (the scene is then simply at rest) and starts the life loops.
   will-change is set only while revealing, so the text is drawn crisp again at rest. */

.is-bundled .showcase__scene { rotate: x 24deg; scale: 0.5; }
.is-bundled .showcase__scene::before { scale: 0.4; opacity: 0.5; }
.is-bundled .showcase__scene::after { opacity: 0.4; }
.is-bundled .sc-floor { scale: 0.6; opacity: 0; }
.is-bundled .sc-win {
  translate: var(--dx, 0em) var(--dy, 0em) calc(var(--z, 0em) - 30em - var(--sz, 0em));
  rotate: y 0deg;
  scale: 0.7;
}
.is-bundled .sc-pop { translate: 0 0 0.3em; scale: 0.9; }

.is-revealing .showcase__scene { transition: rotate 1.2s var(--settle), scale 1.2s var(--settle); will-change: transform, rotate, scale; }
.is-revealing .showcase__scene::before { transition: scale 1.2s var(--settle), opacity 1.2s var(--settle); }
.is-revealing .showcase__scene::after { transition: opacity 1s var(--settle) 0.3s; }
.is-revealing .sc-floor { transition: scale 1s var(--settle) 0.3s, opacity 1s var(--settle) 0.3s; }
.is-revealing .sc-win {
  transition: translate 1.1s var(--spring) var(--rd, 0s), rotate 1.1s var(--spring) var(--rd, 0s), scale 1.1s var(--spring) var(--rd, 0s);
  will-change: transform, translate, rotate, scale;
}
.is-revealing .sc-pop {
  transition: translate 0.7s var(--spring) calc(var(--rd, 0s) + 0.55s), scale 0.7s var(--spring) calc(var(--rd, 0s) + 0.55s);
  will-change: translate, scale;
}

/* ------------------------------------------------------------------ life */
/* Only while the stage is in view and motion is allowed (showcase.js sets .is-live). Each loop starts
   and ends on the finished picture: it holds it first, then plays, so the scene always arrives
   complete. Every loop also begins at rest when .is-live arrives (right as the reveal lands, in full
   view): no negative delays, which would start a loop mid-cycle and make it jump; the floats and bobs
   are kept out of step by positive delays instead, holding their rest pose until they start. The story loops share one length (--loop) and start together, so their moments meet:
     28-31%  what replays steps back: the conversation, the confirmation, the toast, the new order and its
             figure, the chart, the paid status, the Mac's progress; the Windows app goes to Today and
             its cards empty (a pulse runs out to it); the website starts to scroll down
     34-38%  the question arrives;  38-42% the Mac's reminder slides away;  42-50% the assistant types
     44-54%  the Windows app returns to Projects and its cards fill in;  40-72% the chart draws again
     51-69%  the answer streams in;  58-61% the pending order turns paid
     52-67%  a pulse runs out to the Mac, its dock icon bounces, the reminder slides back in and the
             selected project's progress moves on
     70-75%  the confirmation pops out;  75-85% its light runs across the floor to the web app
     85-91%  the new order slides into the table, its figure ticks up, the toast pops out */

.is-live .sc-frame { animation: sc-float var(--float, 7s) ease-in-out var(--float-delay, 0s) infinite; }
.is-live .sc-win--mac { --float: 8.5s; --float-delay: 1.2s; }
.is-live .sc-win--windows { --float: 9s; --float-delay: 4.4s; }
.is-live .sc-win--web { --float: 10s; --float-delay: 2.6s; }
.is-live .sc-win--site { --float: 7.2s; --float-delay: 0.6s; }
.is-live .sc-win--ai { --float: 7.8s; --float-delay: 3.8s; }
@keyframes sc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.7em); } }

/* The floating parts bob on rhythms of their own, out of step with their windows. */
.is-live .sc-pop { animation: sc-bob var(--bob, 6s) ease-in-out var(--bob-delay, 0s) infinite; }
@keyframes sc-bob { 0%, 100% { translate: 0 0 var(--pz, 4em); } 50% { translate: 0 -0.55em var(--pz, 4em); } }

/* The assistant: the question pops in, the answer bubble opens as the typing dots and grows into the
   full answer, the words stream in with a caret after the newest, then the confirmation pops out. */
.is-live .sc-bubble--me { animation: sc-ask var(--loop) var(--ease) infinite; }
@keyframes sc-ask {
  0%, 27% { scale: 1; clip-path: inset(-1em); }
  30%, 34% { scale: 0.6; clip-path: inset(50%); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  38%, 100% { scale: 1; clip-path: inset(-1em); }
}
.is-live .sc-bubble--bot { animation: sc-reply var(--loop) var(--ease) infinite; }
@keyframes sc-reply {
  0%, 27% { scale: 1; clip-path: inset(0 round 1.1em 1.1em 1.1em 0.35em); }
  30%, 39% { scale: 0.6; clip-path: inset(0 100% 100% 0 round 1.1em); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  42%, 48% { scale: 1; clip-path: inset(0 calc(100% - 3.4em) calc(100% - 2.2em) 0 round 1.1em); }
  52%, 100% { scale: 1; clip-path: inset(0 round 1.1em 1.1em 1.1em 0.35em); }
}
.is-live .sc-typing { animation: sc-dots var(--loop) linear infinite; }
@keyframes sc-dots { 0%, 41% { opacity: 0; } 42.5%, 49% { opacity: 1; } 51%, 100% { opacity: 0; } }
.is-live .sc-typing i { animation: sc-dot 0.9s ease-in-out infinite; }
.is-live .sc-typing i:nth-child(2) { animation-delay: 0.15s; }
.is-live .sc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes sc-dot { 0%, 100% { transform: translateY(0); opacity: 0.45; } 50% { transform: translateY(-0.28em); opacity: 1; } }
/* Each word (showcase.js sets --w, its place in the answer) runs the same loop 0.1s after the one before. */
.is-live .sc-word { animation: sc-word var(--loop) var(--ease) calc(var(--w, 0) * 0.1s) infinite backwards; }
@keyframes sc-word {
  0%, 27% { transform: none; clip-path: inset(-0.3em -0.6em -0.3em -0.3em); }
  28%, 51% { transform: translateY(0.25em); clip-path: inset(-0.3em 100% -0.3em -0.3em); }
  53.5%, 100% { transform: none; clip-path: inset(-0.3em -0.6em -0.3em -0.3em); }
}
.is-live .sc-word::after {
  content: ''; position: absolute; right: -0.2em; top: 0.15em; bottom: 0.1em; width: 0.09em; border-radius: 0.05em;
  background: var(--sc-accent); opacity: 0;
  animation: sc-word-caret var(--loop) linear calc(var(--w, 0) * 0.1s) infinite backwards;
}
@keyframes sc-word-caret { 0%, 51.9% { opacity: 0; } 52%, 52.7% { opacity: 1; } 52.8%, 100% { opacity: 0; } }
.is-live .sc-pop--done { animation: sc-bob 5.8s ease-in-out 1s infinite, sc-done var(--loop) var(--ease) infinite; }
@keyframes sc-done {
  0%, 27% { scale: 1; clip-path: inset(-4em); }
  30%, 70% { scale: 0.6; clip-path: inset(50%); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  75%, 100% { scale: 1; clip-path: inset(-4em); }
}
.is-live .sc-pop--done .sc-check path { animation: sc-tick-done var(--loop) linear infinite; }
@keyframes sc-tick-done { 0%, 29% { stroke-dashoffset: 0; } 29.1%, 72% { stroke-dashoffset: 10; } 76%, 100% { stroke-dashoffset: 0; } }
/* The assistant's field: a caret blinks before the prompt. */
.is-live .sc-input__text::before {
  content: ''; position: absolute; left: 0; top: 0.15em; bottom: 0.15em; width: 1px;
  background: var(--sc-ink-2); animation: sc-caret 1.1s steps(1) infinite;
}
@keyframes sc-caret { 50% { opacity: 0; } }

/* The floor: the confirmation's light runs from the assistant to the hub; other pulses run out from the
   hub to the website, the Windows app and the Mac just before each of them changes; rings breathe out
   from the hub. A pulse outside its run lies off the path, so it shows nothing. */
.is-live .sc-floor__pulse--ai { animation: sc-pulse-in var(--loop) cubic-bezier(0.45, 0, 0.25, 1) infinite; }
@keyframes sc-pulse-in { 0%, 75% { stroke-dashoffset: -100; } 85%, 100% { stroke-dashoffset: 7; } }
.is-live .sc-floor__pulse--mac, .is-live .sc-floor__pulse--windows, .is-live .sc-floor__pulse--site { animation: sc-pulse-out var(--loop) cubic-bezier(0.45, 0, 0.25, 1) var(--at, 0s) infinite backwards; }
.is-live .sc-floor__pulse--windows { --at: 2.6s; }
.is-live .sc-floor__pulse--site { --at: 3.2s; }
.is-live .sc-floor__pulse--mac { --at: 5.6s; }
@keyframes sc-pulse-out { 0%, 6% { stroke-dashoffset: 7; } 18%, 100% { stroke-dashoffset: -100; } }
.is-live .sc-floor__wave { animation: sc-wave 4s ease-out infinite; }
.is-live .sc-floor__wave--late { animation-delay: 2s; }
@keyframes sc-wave { 0% { transform: scale(0.6); opacity: 0; } 8% { opacity: 0.8; } 100% { transform: scale(2.6); opacity: 0; } }

/* The web app: the new order slides into the table from above (and lights up), the orders figure ticks
   up, the chart draws itself again, the pending order turns paid, the teammate's cursor wanders, and the
   toast pops out with its tick drawn. */
.is-live .sc-table__rows { animation: sc-rows var(--loop) var(--ease) infinite; }
@keyframes sc-rows {
  0%, 28% { transform: translateY(0); }
  31%, 85% { transform: translateY(calc(-1 * var(--row))); animation-timing-function: cubic-bezier(0.34, 1.3, 0.64, 1); }
  89%, 100% { transform: translateY(0); }
}
.is-live .sc-row--new::before { animation: sc-flash var(--loop) ease-out infinite; }
@keyframes sc-flash { 0%, 86% { opacity: 0; } 89% { opacity: 1; } 100% { opacity: 0; } }
.is-live .sc-roll__in { animation: sc-roll var(--loop) var(--ease) infinite; }
@keyframes sc-roll { 0%, 28% { transform: translateY(-50%); } 31%, 87% { transform: translateY(0); } 90%, 100% { transform: translateY(-50%); } }
.is-live .sc-chart__plot { animation: sc-draw var(--loop) cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes sc-draw {
  0%, 28% { clip-path: inset(-1em); opacity: 1; }
  31% { clip-path: inset(-1em); opacity: 0; }
  31.1%, 40% { clip-path: inset(-1em 100% -1em 0); opacity: 1; }
  72%, 100% { clip-path: inset(-1em); opacity: 1; }
}
.is-live .sc-flip__in { animation: sc-flip var(--loop) var(--ease) infinite; }
@keyframes sc-flip { 0%, 28% { transform: translateY(-50%); } 31%, 57% { transform: translateY(0); } 61%, 100% { transform: translateY(-50%); } }
.is-live .sc-pop--peer { animation: sc-peer var(--loop) cubic-bezier(0.45, 0, 0.25, 1) infinite; }
@keyframes sc-peer {
  0%, 8% { translate: 0 0 var(--pz, 4em); }
  22%, 30% { translate: -9em -5.5em var(--pz, 4em); }
  46%, 52% { translate: 6em -2.4em var(--pz, 4em); }
  68%, 76% { translate: -4em 3em var(--pz, 4em); }
  90%, 100% { translate: 0 0 var(--pz, 4em); }
}
.is-live .sc-pop--toast { animation: sc-bob 6.6s ease-in-out 2s infinite, sc-toast var(--loop) var(--ease) infinite; }
@keyframes sc-toast {
  0%, 26% { scale: 1; clip-path: inset(-4em); }
  29%, 86% { scale: 0.7; clip-path: inset(50%); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  91%, 100% { scale: 1; clip-path: inset(-4em); }
}
.is-live .sc-pop--toast .sc-check path { animation: sc-tick-toast var(--loop) linear infinite; }
@keyframes sc-tick-toast { 0%, 28% { stroke-dashoffset: 0; } 28.1%, 88% { stroke-dashoffset: 10; } 92%, 100% { stroke-dashoffset: 0; } }

/* The Mac: the Projects icon bounces in the dock, then the reminder slides in from the right and the
   selected project's progress moves on. */
.is-live .sc-dock__app--projects .sc-dock__tile { animation: sc-hop var(--loop) ease-in-out infinite; }
@keyframes sc-hop { 0%, 52%, 56%, 60%, 100% { transform: translateY(0); } 54% { transform: translateY(-0.9em); } 58% { transform: translateY(-0.45em); } }
.is-live .sc-pop--note { animation: sc-note var(--loop) var(--ease) infinite; }
@keyframes sc-note {
  0%, 38% { translate: 0 0 var(--pz, 4em); clip-path: inset(-4em); }
  42%, 60% { translate: 4em 0 var(--pz, 4em); clip-path: inset(-4em -4em -4em 100%); animation-timing-function: cubic-bezier(0.34, 1.3, 0.64, 1); }
  65%, 100% { translate: 0 0 var(--pz, 4em); clip-path: inset(-4em); }
}
.is-live .sc-prog--live i { animation: sc-gain var(--loop) var(--ease) infinite; }
@keyframes sc-gain { 0%, 28% { transform: scaleX(1); } 31%, 62% { transform: scaleX(0.82); } 67%, 100% { transform: scaleX(1); } }

/* Windows: the selection slides to Today and back to Projects, the cards' progress fills in again, and the
   Projects indicator on the taskbar shrinks as the app is left and stretches as it comes back. */
.is-live .sc-task--on::after { animation: sc-stretch var(--loop) var(--ease) infinite; }
@keyframes sc-stretch { 0%, 29% { transform: scaleX(1); } 32% { transform: scaleX(0.45); } 36%, 44% { transform: scaleX(1); } 47% { transform: scaleX(1.5); } 51%, 100% { transform: scaleX(1); } }
.is-live .sc-w11__pill { animation: sc-nav var(--loop) var(--ease) infinite; }
@keyframes sc-nav {
  0%, 28% { transform: translateY(2.6em); }
  31%, 44% { transform: translateY(0); animation-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1); }
  48%, 100% { transform: translateY(2.6em); }
}
.is-live .sc-prog--grow i { animation: sc-grow var(--loop) var(--ease) infinite; }
.is-live .sc-card:nth-child(2) .sc-prog--grow i { animation-delay: 0.12s; }
.is-live .sc-card:nth-child(3) .sc-prog--grow i { animation-delay: 0.24s; }
.is-live .sc-card:nth-child(4) .sc-prog--grow i { animation-delay: 0.36s; }
@keyframes sc-grow { 0%, 29% { transform: scaleX(1); } 32%, 47% { transform: scaleX(0); } 54%, 100% { transform: scaleX(1); } }

/* The website: the page scrolls down to its features and rooms and back, the phone does the same a
   little later, light glitters on the sea, and the stars twinkle one after another. */
.is-live .sc-site__page { animation: sc-scroll var(--loop) cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes sc-scroll { 0%, 30% { transform: translateY(0); } 44%, 60% { transform: translateY(calc(-1 * var(--scroll))); } 74%, 100% { transform: translateY(0); } }
.is-live .sc-phone__page { animation: sc-scroll-phone var(--loop) cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes sc-scroll-phone { 0%, 36% { transform: translateY(0); } 50%, 66% { transform: translateY(-7em); } 80%, 100% { transform: translateY(0); } }
.is-live .sc-photo__glint { animation: sc-glint 4s ease-in-out infinite; }
@keyframes sc-glint { 0%, 100% { transform: translateX(0) scaleX(1); } 50% { transform: translateX(0.3em) scaleX(0.85); } }
.is-live .sc-star { animation: sc-star var(--loop) var(--ease) infinite; }
.is-live .sc-star:nth-child(2) { animation-delay: 0.08s; }
.is-live .sc-star:nth-child(3) { animation-delay: 0.16s; }
.is-live .sc-star:nth-child(4) { animation-delay: 0.24s; }
.is-live .sc-star:nth-child(5) { animation-delay: 0.32s; }
@keyframes sc-star { 0%, 62%, 70%, 100% { scale: 1; } 65% { scale: 1.3; } }

/* ------------------------------------------------------------------ way in */

.showcase__cta { display: flex; justify-content: center; margin-top: clamp(36px, 4.4vw, 64px); }
.showcase__button { min-height: 64px; padding: 0 clamp(32px, 3.4vw, 48px); font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem); font-weight: 600; }

@media (forced-colors: active) {
  .sc-frame, .sc-pop--note, .sc-pop--toast, .sc-pop--done, .sc-pop--rating, .sc-pop--menubar, .sc-pop--taskbar, .sc-pop--dock { border: 1px solid CanvasText; }
  .showcase__scene::before, .showcase__scene::after, .sc-win::before, .sc-frame::after, .sc-floor { display: none; }
}
