/* Delegatus landing, prototype A (docs/landing/concept-opus.md).
   Colours are the product's dark tokens (src/styles/tokens.css); the emblem
   red lives only inside the bird. */

:root {
  --ground: #111218;
  --raised: #191b23;
  --sunken: #14151b;
  --line: #292c36;
  --line-strong: #3c404c;
  --cream: #fbebdd;
  --cream-2: color-mix(in oklab, var(--cream) 70%, var(--ground));
  --cream-3: color-mix(in oklab, var(--cream) 50%, var(--ground));
  --ink: #262a36;
  --ink-2: color-mix(in oklab, var(--ink) 72%, var(--cream));
  --accent: #8f88ff;
  --accent-soft: #262347;
  --green: #4fc36f;
  --amber: #e0ae45;
  --product-text: #e8e8ec;
  --product-muted: #8b8b98;

  --display: "Unbounded", "Geologica", system-ui, sans-serif;
  --text: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --product: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5.2vw, 80px);
  --maxw: 1320px;
  --inset: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  --radius: 14px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--ground);
  scrollbar-color: var(--line-strong) var(--ground);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--cream);
  font: 400 18px/1.5 var(--text);
  font-variation-settings: "SHRP" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--line-strong); color: var(--cream); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
code, kbd, pre { font-family: var(--mono); font-feature-settings: normal; }

.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 14px; border-radius: 10px; background: var(--cream); color: var(--ink);
}
.skip:focus { top: 12px; }

/* ---------- Navigation ---------- */

.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px; padding-inline: var(--inset);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.005em; }
.brand img { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: 15px; color: var(--cream-2); }
.nav-links > a:hover { color: var(--cream); }
.nav-gh { display: inline-flex; align-items: center; gap: 8px; }
.nav-links .short { display: none; }
.stars { display: inline-flex; align-items: center; gap: 4px; color: var(--cream-3); font-variant-numeric: tabular-nums; }
.stars .i { width: 13px; height: 13px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button { min-width: 38px; height: 28px; padding-inline: 8px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--cream-3); }
.lang button[aria-pressed="true"] { background: var(--raised); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-strong); }
.lang button:hover { color: var(--cream); }

/* ---------- The live frames ----------
   Each frame is an iframe running Delegatus's own interface (demo/). It is
   laid out at the width the product needs and scaled to the page, so the
   interface keeps its own proportions at every width. */

.live {
  position: relative; overflow: hidden;
  background: #111218;
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
}
.live-frame { position: absolute; inset: 0; }
.live iframe {
  position: absolute; left: 0; top: 0;
  border: 0; display: block;
  transform-origin: 0 0;
  background: #111218;
  opacity: 0; transition: opacity 400ms var(--ease);
}
.live[data-loaded] iframe { opacity: 1; }
.live iframe[data-incoming] { opacity: 0; pointer-events: none; }
.live[data-busy]::after {
  content: ""; position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 16px; height: 16px;
  border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%;
  animation: spin 900ms linear infinite;
}
.live::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%;
  animation: spin 900ms linear infinite;
}
.live[data-loaded]::before { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* A window around a frame: a bar with the frame's views, the frame, and in the hero the steps. */
.stage-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sunken);
  box-shadow: 0 40px 120px -40px rgb(0 0 0 / 0.7);
}
.stage-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--ground); }
.seg button {
  height: 32px; padding: 0 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--cream-3); white-space: nowrap;
  transition: color 150ms, background-color 150ms;
}
.seg button:hover { color: var(--cream-2); }
.seg button[aria-selected="true"] { color: var(--cream); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong); }
.live-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 6px 0 0; font-size: 13.5px; color: var(--cream-3); }
.live-tag .dot { transform: none; }

/* ---------- Hero ---------- */

.hero { padding: clamp(24px, 4vh, 48px) var(--inset) 0; }
.hero-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(40px, 5vw, 96px); align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}

h1, h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 5.6rem); line-height: 1.02; }
:lang(uk) h1 { font-size: clamp(2.6rem, 6vw, 5.8rem); }
.sub { margin: 26px 0 0; max-width: 32ch; font-size: 22px; line-height: 1.45; color: var(--cream-2); text-wrap: pretty; }
.promise { margin: 14px 0 0; font-size: 16px; color: var(--cream-3); }
.hero-head .install { max-width: none; }

.hero .stage-wrap { margin-top: 8px; }
.catcher {
  position: absolute; z-index: 3;
  right: clamp(24px, 6vw, 96px); bottom: calc(100% - 14px);
  width: 92px; aspect-ratio: 80 / 68;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.45));
  pointer-events: none;
}
.mascot-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mascot-svg .m-all, .mascot-svg .m-body, .mascot-svg .m-glasses, .mascot-svg .m-wing,
.mascot-svg .m-wing-front, .mascot-svg .m-glint { transform-box: fill-box; }
.mascot-svg .m-body { transform-origin: 50% 100%; }
.mascot-svg .m-wing-l { transform-origin: 100% 80%; }
.mascot-svg .m-wing-r { transform-origin: 0% 80%; }

.live-hero { border-radius: 0; }
.steps {
  list-style: none; margin: 0; padding: 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  border-top: 1px solid var(--line);
}
.steps button {
  display: inline-flex; align-items: center; gap: 9px;
  height: 36px; padding: 0 14px 0 6px; border-radius: 10px;
  font-size: 14.5px; color: var(--cream-3); white-space: nowrap;
  transition: color 150ms, background-color 150ms;
}
.steps button:hover { color: var(--cream); background: var(--raised); }
.steps b {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; color: var(--cream-3);
  font-variant-numeric: tabular-nums;
}
.steps button[data-done] b { border-color: color-mix(in oklab, var(--green) 55%, transparent); color: var(--green); }
.steps button[aria-current="step"] { color: var(--cream); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong); }
.steps button[aria-current="step"] b { background: var(--accent); border-color: var(--accent); color: #14122b; }
.steps-replay { margin-left: auto; }
.steps-replay button { padding-left: 12px; gap: 7px; }
.steps-replay .i { width: 15px; height: 15px; }
.step-hint {
  margin: 0; padding: 0 20px 16px; min-height: 1.5em;
  font-size: 15.5px; color: var(--cream-2);
}
.step-hint[data-step="0"]::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%;
  background: var(--accent); vertical-align: 0.1em;
  box-shadow: 0 0 0 0 rgb(143 136 255 / 0.6); animation: coach 1.8s ease-out infinite;
}
@keyframes coach { 70%, 100% { box-shadow: 0 0 0 9px rgb(143 136 255 / 0); } }

/* ---------- Install box ---------- */

.install {
  position: relative;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.03) inset;
}
.install-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 0 8px; }
.tabs { display: flex; gap: 2px; }
.tabs button {
  height: 36px; padding: 0 12px; border-radius: 9px;
  font-size: 15px; font-weight: 500; color: var(--cream-3);
  transition: color 150ms, background-color 150ms;
}
.tabs button:hover { color: var(--cream-2); }
.tabs button[aria-selected="true"] { color: var(--cream); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px 0 14px; border-radius: 10px;
  background: var(--cream); color: var(--ink);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform 120ms var(--ease), background-color 150ms;
}
.copy-btn:hover { background: #fff3e8; }
.copy-btn:active { transform: translateY(1px); }
.copy-btn .i { width: 15px; height: 15px; }
.copy-btn[data-copied] { background: var(--green); color: #0d1f13; }

.prompt { position: relative; padding: 14px 18px 0; }
.prompt pre {
  margin: 0; max-height: calc(3 * 1.7em + 2px); overflow: hidden;
  font-size: 12.5px; line-height: 1.7; color: var(--cream-2);
  white-space: pre-wrap; word-break: break-word;
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
  transition: max-height 520ms var(--ease);
}
.prompt[data-open="true"] pre { max-height: 60em; -webkit-mask-image: none; mask-image: none; }
.prompt-more {
  display: flex; align-items: center; gap: 6px; margin: 0 -18px; width: calc(100% + 36px);
  justify-content: center; height: 36px; font-size: 13px; color: var(--cream-3);
  border-top: 1px solid transparent;
}
.prompt-more:hover { color: var(--cream); }
.prompt-more .i { width: 14px; height: 14px; transition: transform 300ms var(--ease); }
.prompt[data-open="true"] .prompt-more .i { transform: rotate(180deg); }
.prompt[data-open="true"] .prompt-more { border-top-color: var(--line); }
.prompt code .cmd { color: var(--cream); }

/* ---------- Legacy install and the giggle ---------- */

.legacy-wrap { max-width: 560px; margin-top: 14px; }
.legacy-link {
  font-size: 15px; color: var(--cream-3);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px;
  padding: 6px 2px;
}
.legacy-link:hover { color: var(--cream-2); text-decoration-color: currentColor; }
.legacy { position: relative; padding-top: 58px; }
.legacy[hidden] { display: none; }
.legacy-box {
  position: relative; z-index: 2;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #0d0e13;
}
.legacy-title { margin: 0 0 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--cream-3); }
.legacy-cmd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.legacy-cmd code { font-size: 15px; color: var(--cream); }
.legacy-cmd code::before { content: "$ "; color: var(--cream-3); }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  color: var(--cream-3); border: 1px solid var(--line);
}
.icon-btn:hover { color: var(--cream); border-color: var(--line-strong); }
.icon-btn[data-copied] { color: var(--green); border-color: color-mix(in oklab, var(--green) 40%, transparent); }
.legacy-needs { margin: 8px 0 0; font-size: 13px; color: var(--cream-3); }
.legacy-needs code { font-size: 11.5px; color: var(--cream-2); word-break: break-word; }

.giggler {
  position: absolute; z-index: 1;
  right: 26px; top: 58px;
  width: 68px; aspect-ratio: 64 / 66;
  transform: translateY(-60%);
}
.bubble {
  position: absolute; z-index: 3;
  right: 104px; top: 2px;
  max-width: min(320px, calc(100% - 110px));
  margin: 0; padding: 8px 12px;
  border-radius: 14px 14px 4px 14px;
  background: var(--cream); color: var(--ink);
  font-size: 14px; line-height: 1.35; font-weight: 500;
}
.bubble::after {
  content: ""; position: absolute; right: -6px; bottom: 6px;
  border-style: solid; border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--cream);
}

/* ---------- Sections ---------- */

.sec { padding: clamp(112px, 12vw, 180px) var(--inset) 0; }
.sec h2 { font-size: clamp(2rem, 3.3vw, 3.4rem); line-height: 1.06; }
.caps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; max-width: 34ch; }
.caps li { display: grid; grid-template-columns: 14px 1fr; align-items: baseline; gap: 12px; color: var(--cream-2); text-wrap: pretty; }
.dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transform: translateY(-2px); }
.dot-green { background: var(--green); box-shadow: 0 0 0 4px color-mix(in oklab, var(--green) 16%, transparent); }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 4px color-mix(in oklab, var(--amber) 16%, transparent); }
kbd {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.5em; padding: 0 0.35em;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px;
  font-size: 0.8em; color: var(--cream); vertical-align: 0.05em;
}

/* It runs the work: the heading and four facts over a full-width frame. */
.sec-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(40px, 5vw, 96px); align-items: start;
  margin-bottom: clamp(40px, 4vw, 64px);
}
.caps-grid { margin: 8px 0 0; max-width: none; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 20px; }

/* Every conversation, open: a tab list beside one frame. */
.sec-open {
  display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 9fr);
  column-gap: clamp(32px, 4vw, 64px); align-items: start;
}
.open-side h2 { margin-bottom: 36px; }
.vtabs { display: grid; gap: 6px; }
.vtabs button {
  display: grid; gap: 4px; text-align: left;
  padding: 14px 16px 15px 18px; border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color 150ms, border-color 150ms;
}
.vtabs b { font-weight: 500; font-size: 18px; color: var(--cream-2); }
.vtabs span { font-size: 15.5px; line-height: 1.45; color: var(--cream-3); text-wrap: pretty; }
.vtabs button:hover b { color: var(--cream); }
.vtabs button[aria-selected="true"] { background: var(--raised); border-color: var(--line); box-shadow: inset 3px 0 0 var(--accent); }
.vtabs button[aria-selected="true"] b { color: var(--cream); }
.vtabs button[aria-selected="true"] span { color: var(--cream-2); }
.live-open { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 40px 120px -40px rgb(0 0 0 / 0.7); }

/* It finds you: the phone, live, beside the facts. */
.sec-reach {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  column-gap: clamp(40px, 5vw, 88px); align-items: center;
  padding-bottom: clamp(112px, 12vw, 176px);
}
.reach-art { display: grid; justify-items: center; gap: 22px; padding-top: 72px; }
.handset {
  position: relative;
  width: clamp(300px, 26vw, 356px);
  padding: 10px; border-radius: 46px;
  border: 1px solid var(--line-strong);
  background: #0b0c10;
  box-shadow: 0 40px 100px -30px rgb(0 0 0 / 0.8);
}
.live-phone { border-radius: 36px; }
.perch {
  position: absolute; z-index: 3;
  right: 34px; bottom: 100%;
  width: 84px; aspect-ratio: 1;
  margin-bottom: calc(-84px * 18 / 76);
  pointer-events: none;
}

/* ---------- Footer band: the only light surface ---------- */

.band { background: var(--cream); color: var(--ink); padding: clamp(80px, 10vw, 140px) var(--inset) 36px; }
.band-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(40px, 6vw, 110px); align-items: start; }
.band-line { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.5vw, 2.4rem); line-height: 1.18; letter-spacing: -0.015em; text-wrap: balance; }
.band-does { margin: 28px 0 0; max-width: 44ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.band-needs { margin: 16px 0 0; font-size: 14.5px; color: var(--ink-2); }
.band .install { box-shadow: 0 30px 60px -30px rgb(38 42 54 / 0.55); }
.band .legacy-link { color: var(--ink-2); text-decoration-color: color-mix(in oklab, var(--ink) 35%, transparent); }
.band .legacy-link:hover { color: var(--ink); }
.band .bubble { background: var(--ink); color: var(--cream); }
.band .bubble::after { border-left-color: var(--ink); }
.band-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(64px, 8vw, 110px);
  padding-top: 20px; border-top: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
  font-size: 15px; color: var(--ink-2);
}
.band-meta a:hover { color: var(--ink); }
.band-meta code { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .hero-head { grid-template-columns: 1fr; row-gap: 40px; }
  .sub { max-width: 34ch; }
  .sec-head { grid-template-columns: 1fr; row-gap: 28px; }
  .sec-open { grid-template-columns: 1fr; row-gap: 32px; }
  .vtabs { grid-template-columns: 1fr 1fr; }
  .sec-reach { grid-template-columns: 1fr; row-gap: 16px; }
  .band-inner { grid-template-columns: 1fr; row-gap: 40px; }
  .caps { max-width: 46ch; }
}

/* ---------- Phone ---------- */

@media (max-width: 639px) {
  body { font-size: 17px; }
  .nav { height: 60px; }
  .nav-links { gap: 14px; }
  .stars { display: none; }
  .nav-links .long { display: none; }
  .nav-links .short { display: inline; }
  .nav-gh > span:first-child { display: none; }
  .nav-gh::before {
    content: ""; width: 18px; height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4'/%3E%3Cpath d='M9 18c-4.51 2-5-2-7-2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4'/%3E%3Cpath d='M9 18c-4.51 2-5-2-7-2'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .nav-gh { gap: 6px; }
  .hero { padding: 16px var(--gutter) 0; }
  .hero-head { row-gap: 28px; margin-bottom: 64px; }
  h1, :lang(uk) h1 { font-size: clamp(2.3rem, 11.4vw, 2.9rem); }
  .sub { margin-top: 18px; font-size: 19px; }
  .promise { font-size: 15px; }
  .install-bar { flex-wrap: wrap; }
  .tabs { flex: 1; }
  .tabs button { flex: 1; }
  .copy-btn { order: 3; width: 100%; justify-content: center; height: 44px; margin: 0; }
  .install-bar { padding: 8px; }
  .prompt { padding-top: 4px; }
  .prompt pre { font-size: 11.5px; }
  .bubble { font-size: 13px; right: 96px; max-width: calc(100% - 100px); }

  .stage-wrap { margin-inline: calc(var(--gutter) * -0.5); }
  .stage-bar { flex-wrap: wrap; gap: 8px; }
  .seg { flex: 1; }
  .seg button { flex: 1; padding: 0 8px; }
  .live-tag { display: none; }
  .catcher { width: 76px; right: 22px; }
  .steps { gap: 4px; padding: 8px; }
  .steps li:not(.steps-replay) span { display: none; }
  /* One line: the numbers keep their size, and only the current step's name
     gives way, inside its own pill. */
  .steps { flex-wrap: nowrap; }
  .steps li { flex-shrink: 0; }
  .steps li:has(> button[aria-current="step"]) { flex-shrink: 1; min-width: 0; }
  .steps button { padding: 0 6px; }
  .steps button[aria-current="step"] { max-width: 100%; min-width: 0; padding-right: 12px; }
  .steps button[aria-current="step"] b { flex-shrink: 0; }
  .steps button[aria-current="step"] span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .steps-replay span { display: none; }
  .step-hint { padding: 0 14px 14px; font-size: 15px; }

  .sec { padding: 104px var(--gutter) 0; }
  .sec h2 { font-size: clamp(1.85rem, 8.6vw, 2.4rem); }
  .caps { margin-top: 24px; gap: 14px; }
  .caps-grid { grid-template-columns: 1fr; margin-top: 0; }
  .sec-head { margin-bottom: 32px; }
  .vtabs { grid-template-columns: 1fr 1fr; gap: 4px; }
  .vtabs span { display: none; }
  .vtabs button { padding: 10px 12px; }
  .vtabs b { font-size: 16px; }
  .open-side h2 { margin-bottom: 24px; }
  .live-open { margin-inline: calc(var(--gutter) * -0.5); }
  .reach-art { padding-top: 64px; }
  .handset { width: min(318px, 86vw); }
  .band { padding-top: 72px; }
  .band-line { font-size: 1.5rem; }
}

/* ---------- Reduced motion: final frames, nothing moves ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}
