/* SSH Guru: split stage. Two grounds that hold the whole way down, one accent
   hue (LED green) in two lightnesses, one keyed to each ground. */
:root {
  /* the winning side: pale concrete */
  --sc-canvas: #e6eae7;  --sc-surface: #f4f6f4;
  --sc-ink: #0f1511;     --sc-ink-soft: #48554d;
  --sc-accent: #0a7040;  --sc-accent-ink: #f4f6f4;
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text: "Archivo", system-ui, sans-serif;
  --sc-font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sc-shadow-color: 150 12% 30%;
  --sc-edge: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  --old-canvas: #111513; --old-surface: #1a1f1c;
  --old-ink: #dce3de;    --old-ink-soft: #9aa79f;
  --old-accent: #5fd68f;

  --r: 10px;
  --gut: clamp(1.25rem, 3.6vw, 3.5rem);
}
html { background: var(--sc-canvas); }
body { background: var(--sc-canvas); color: var(--sc-ink); font-family: var(--sc-font-text); font-variation-settings: "wdth" 100; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ grounds */
.side--old {
  --sc-canvas: var(--old-canvas); --sc-surface: var(--old-surface);
  --sc-ink: var(--old-ink); --sc-ink-soft: var(--old-ink-soft);
  --sc-accent: var(--old-accent); --sc-accent-ink: #0b120e;
  --sc-shadow-color: 150 30% 2%;
  --sc-edge: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: var(--sc-canvas); color: var(--sc-ink);
}
.side--new { background: var(--sc-canvas); color: var(--sc-ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; }
.side { position: relative; overflow: clip; min-width: 0; }
.split[data-sc-stage] { height: 100svh; }

/* ------------------------------------------------------------------ type */
.h-old, .h-new, .h2, .quiet {
  font-family: var(--sc-font-display);
  font-weight: 760; font-variation-settings: "wdth" 88;
  letter-spacing: -0.03em; line-height: 0.98; margin: 0; text-wrap: balance;
}
.h-old, .h-new { font-size: clamp(2.2rem, 1.2rem + 2.9vw, 4.2rem); max-width: 13ch; }
.side--old .h-old { font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; }
.h2 { font-size: clamp(1.9rem, 1.1rem + 2.3vw, 3.5rem); max-width: 16ch; }
.h2--peak { font-size: clamp(3rem, 1.4rem + 5vw, 7rem); }
.h2--close { font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4.8rem); max-width: 18ch; }
.sub, .body { font-size: var(--sc-t-base); line-height: 1.6; color: var(--sc-ink-soft); max-width: 40ch; margin: 0; text-wrap: pretty; }
.side--old :is(.sub, .body, .note) { letter-spacing: 0.005em; line-height: 1.66; }
.note { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); max-width: 44ch; margin: 0; }
.kicker, .log__cap, .tally__k, .behind__k, .tier, .card__who, .foot__h {
  font-family: var(--sc-font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); margin: 0;
}
code, pre { font-family: var(--sc-font-mono); }

/* ------------------------------------------------------------------ mark */
.mark { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--sc-font-display); font-weight: 780; font-variation-settings: "wdth" 110; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--sc-ink); text-decoration: none; }
.mark__led { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--sc-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--sc-accent) 22%, transparent); }
.mark--hero { margin-bottom: clamp(1.5rem, 5vh, 3rem); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.35rem; border-radius: var(--r);
  font: 650 1rem/1 var(--sc-font-text); font-variation-settings: "wdth" 100;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.btn--go { background: var(--sc-accent); color: var(--sc-accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px hsl(150 60% 18% / 0.55); }
.btn--line { background: transparent; color: var(--sc-ink); border-color: color-mix(in oklab, var(--sc-ink) 30%, transparent); }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: 0.92rem; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .btn--go:hover { background: color-mix(in oklab, var(--sc-accent) 88%, #000); }
  .btn--line:hover { border-color: var(--sc-ink); }
}
.link { color: var(--sc-ink); font-weight: 600; text-underline-offset: 0.25em; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in oklab, var(--sc-ink) 35%, transparent); }
.link:hover { text-decoration-color: var(--sc-accent); }
:focus-visible { outline: 2.5px solid var(--sc-accent); outline-offset: 3px; border-radius: 4px; }
.cta-row { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin: 0; }

/* ================================================================ divider
   Fixed chrome on the seam between the two grounds. */
.divider { position: fixed; top: 0; bottom: 0; left: 50%; width: 0; z-index: var(--sc-z-chrome); pointer-events: none; will-change: transform; }
.divider__line { position: absolute; top: 0; bottom: 0; left: -0.5px; width: 1px; background: linear-gradient(to bottom, transparent, rgba(160, 175, 166, 0.55) 12%, rgba(160, 175, 166, 0.55) 88%, transparent); }
.divider__labels { position: absolute; top: 1.4rem; left: 0; margin: 0; }
.lab { position: absolute; top: 0; white-space: nowrap; font-family: var(--sc-font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.lab--old { right: 0.9rem; color: var(--old-ink-soft); }
.lab--new { left: 0.9rem; color: #48554d; }
.behind {
  position: absolute; bottom: 6.4rem; left: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 0.6rem 0.7rem 0.7rem; border-radius: 12px; pointer-events: auto;
  background: #f4f6f4; border: 1px solid rgba(15, 21, 17, 0.14);
  box-shadow: 0 1px 0 #fff inset, 0 10px 30px -10px rgba(10, 20, 14, 0.45), 0 2px 6px rgba(10, 20, 14, 0.2);
}
.behind__k { color: #48554d; font-size: 0.66rem; }
.behind select, .mbar select {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: 650 0.95rem/1.2 var(--sc-font-text); color: #0f1511; text-align: center;
  padding: 0.15rem 1.3rem 0.15rem 0.3rem; border-radius: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230a7040' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.25rem center; background-size: 0.7rem;
}
.tally { position: absolute; bottom: 1.4rem; left: 0; margin: 0; display: grid; grid-template-columns: auto auto auto; align-items: center; transform: translateX(-50%); gap: 0.9rem; }
.tally__n { font: 700 1.6rem/1 var(--sc-font-display); font-variant-numeric: tabular-nums; min-width: 2ch; }
.tally__n--old { text-align: right; color: var(--old-ink); }
.tally__n--new { color: #0f1511; }
.tally__k { font-size: 0.6rem; text-align: center; line-height: 1.35; padding: 0.35rem 0.5rem; border-radius: 6px; background: #f4f6f4; color: #48554d; border: 1px solid rgba(15,21,17,.12); }

.mbar { display: none; }

/* ================================================================ 1 hero */
.act--hero .side { height: 100svh; }
.plane { position: absolute; pointer-events: none; }
.plane img { display: block; max-width: none; }
.plane--plate { inset: -6% 0; }
.plane--plate img { width: 100%; height: 100%; object-fit: cover; }
/* the blend sits on the plane: it is the stacking context the parallax transform creates */
.side--new .plane--plate { mix-blend-mode: multiply; opacity: 0.9; }
.side--old .plane--plate { mix-blend-mode: multiply; opacity: 0.8; }
.side--old .plane--plate img { filter: contrast(2.4) brightness(1.06); }

.plane--router { left: 0; right: 0; bottom: -4%; margin-inline: auto; width: min(58%, 27rem); transform-origin: 50% 100%; }
.plane--router img { width: 100%; height: auto; filter: drop-shadow(10px 18px 14px rgba(0, 0, 0, 0.55)); }
.plane--cables { left: -9%; bottom: -30%; width: min(46%, 22rem); z-index: 2; }
.plane--cables img { width: 100%; height: auto; filter: drop-shadow(16px 26px 18px rgba(0, 0, 0, 0.6)); }

.plane--board { left: 0; right: 0; bottom: 0; top: 50%; }
/* The rig: the same router as the left side, untouched, with the board pushed
   into its USB port. The board sits under the router, so the part of its
   connector inside the port is hidden; unplugging slides it out to the right.
   Numbers are measured from the cut-outs (router body right edge 93.1%, body
   centre 66.6%; connector 26.8% of the board). */
.rig { position: absolute; left: 50%; top: 64%; width: var(--rig-w, min(76%, 29rem)); aspect-ratio: 1.77; translate: -50% -50%; }
.rig__router { position: absolute; left: 0; top: 0; width: 60%; height: auto; max-width: none; z-index: 2; filter: drop-shadow(10px 16px 12px hsl(150 12% 24% / 0.4)); }
.rig__dongle { position: absolute; left: 45.9%; top: 54.4%; width: 44%; z-index: 1; transform: translateX(var(--pull, 0px)); }
.rig__dongle img { display: block; width: 100%; height: auto; max-width: none; filter: drop-shadow(7px 10px 7px hsl(150 12% 24% / 0.42)); }
.led { position: absolute; left: 85.8%; top: 79%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #7dff9f; box-shadow: 0 0 0 2px rgba(125,255,159,.35), 0 0 12px 3px rgba(125,255,159,.55); transition: background-color 160ms linear, box-shadow 160ms linear; }
.is-off .led, .led.is-off { background: #6b6f6c; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.rig__dongle .led { left: 91.2%; top: 71.5%; }

.inbound, .outbound { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.inbound path, .outbound path { fill: none; vector-effect: non-scaling-stroke; }
.inbound path { stroke: color-mix(in oklab, var(--old-ink-soft) 85%, transparent); stroke-width: 1.4; stroke-dasharray: 5 7; opacity: calc(var(--beat, 0) * 0.9); }
.outbound path { stroke: var(--sc-accent); stroke-width: 1.8; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--beat, 0)); }

.copy { position: absolute; z-index: var(--sc-z-copy); top: clamp(4.5rem, 12vh, 8rem); left: var(--gut); right: var(--gut); display: grid; gap: 1.1rem; justify-items: start; }
.copy--new .cta-row { margin-top: 0.4rem; }
.beat { margin: 0.4rem 0 0; font-family: var(--sc-font-mono); font-size: 0.8rem; letter-spacing: 0.02em; opacity: var(--beat, 0); translate: 0 calc((1 - var(--beat, 0)) * 8px); }
.beat--old { color: var(--old-ink); }
.beat--new { color: var(--sc-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 0.5em; }
.beat--new::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sc-accent); }

/* ================================================================ flow acts */
.pad { padding: clamp(4rem, 10vh, 7rem) var(--gut) clamp(4rem, 10vh, 7rem) var(--gut); display: grid; gap: 1.2rem; align-content: start; }
.side--old .pad { padding-right: calc(var(--gut) + 3rem); }
.side--new .pad { padding-left: calc(var(--gut) + 3rem); }
.pad--top { padding-top: clamp(4.5rem, 12vh, 7.5rem); padding-bottom: 2rem; }

/* 2 pick */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.6rem 0 0.2rem; max-width: 34rem; }
.chip {
  font: 600 0.98rem/1 var(--sc-font-text); padding: 0.85rem 1.05rem; min-height: 46px; border-radius: 999px; cursor: pointer;
  color: var(--sc-ink); background: var(--sc-surface); border: 1px solid color-mix(in oklab, var(--sc-ink) 18%, transparent);
  box-shadow: var(--sc-edge); transition: background-color 150ms var(--sc-ease-out), border-color 150ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.chip[aria-checked="true"] { background: var(--sc-ink); color: var(--old-canvas); border-color: var(--sc-ink); }
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: color-mix(in oklab, var(--sc-ink) 55%, transparent); } }

/* 3 steps */
.count { margin: 0; display: flex; align-items: baseline; gap: 0.6rem; }
.count__n { font: 760 clamp(3rem, 2rem + 3vw, 5.2rem)/0.9 var(--sc-font-display); font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.count__k { font-family: var(--sc-font-mono); font-size: 0.78rem; color: var(--sc-ink-soft); }
.steps { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0; max-width: 34rem; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.2rem; padding: 0.62rem 0; border-top: 1px solid color-mix(in oklab, var(--sc-ink) 13%, transparent); font-size: var(--sc-t-base); line-height: 1.4; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 0.78rem/1.9 var(--sc-font-mono); color: var(--sc-ink-soft); }
.steps--old li { opacity: 0; translate: 0 6px; transition: opacity 220ms var(--sc-ease-out), translate 220ms var(--sc-ease-out); }
.steps--old li.on { opacity: 1; translate: 0 0; }
.steps--new li::before { color: var(--sc-accent); }

.log { margin: 0.8rem 0 0; max-width: 34rem; border-radius: var(--r); background: #0a0d0b; border: 1px solid rgba(255,255,255,0.07); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; overflow: hidden; }
.log__cap { padding: 0.6rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 0.66rem; }
.log__body { margin: 0; padding: 0.7rem 0.9rem 0.8rem; height: 8.9rem; overflow: hidden; font-size: 0.72rem; line-height: 1.55; color: #9aa79f; white-space: pre; }
.log__body b { color: #dce3de; font-weight: 500; }

/* 4 keys */
.path { margin: 0.8rem 0 0; }
.path__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
.node { position: relative; padding: 0.8rem 0.95rem; border-radius: 8px; font-weight: 650; font-size: 0.95rem; background: var(--sc-surface); border: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent); box-shadow: var(--sc-edge); display: grid; gap: 0.2rem; }
.node + .node { margin-left: 1.6rem; }
.node + .node::before { content: ""; position: absolute; left: -1.45rem; top: 50%; width: 1.3rem; height: 1.5px; background: color-mix(in oklab, var(--sc-ink) 40%, transparent); }
.node small { font: 500 0.7rem/1.2 var(--sc-font-mono); color: var(--sc-ink-soft); letter-spacing: 0.02em; }
.node--hot { border-color: color-mix(in oklab, var(--sc-ink) 60%, transparent); }
.node--hot small { color: var(--sc-ink); }
.node--key { background: var(--sc-accent); color: var(--sc-accent-ink); border-color: var(--sc-accent); }
.node--key small { color: color-mix(in oklab, var(--sc-accent-ink) 82%, transparent); }
.node--dim { background: transparent; border-style: dashed; }

/* 5 guru */
.agent { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.5rem; max-width: 34rem; }
.agent li { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.8rem; padding: 0.7rem 0.9rem; border-radius: 8px; background: var(--sc-surface); border: 1px solid rgba(255,255,255,0.06); opacity: 0; translate: 0 6px; transition: opacity 220ms var(--sc-ease-out), translate 220ms var(--sc-ease-out); }
.agent li.on { opacity: 1; translate: 0 0; }
.agent code { grid-column: 1 / -1; font-size: 0.82rem; color: var(--sc-ink); white-space: pre-wrap; word-break: break-word; }
.agent .t { font: 500 0.7rem/1.4 var(--sc-font-mono); color: var(--sc-ink-soft); }
.agent .ok { font: 600 0.7rem/1.4 var(--sc-font-mono); color: var(--sc-ink); justify-self: end; }

.card { max-width: 30rem; margin-top: 0.4rem; border-radius: 12px; background: var(--sc-surface); border: 1px solid rgba(15,21,17,0.14); box-shadow: var(--sc-edge), var(--sc-e2); padding: 1rem 1.05rem 1.1rem; display: grid; gap: 0.75rem; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.tier { padding: 0.35rem 0.55rem; border-radius: 6px; color: #5a3600; background: #f6dfb3; font-size: 0.66rem; letter-spacing: 0.06em; }
.card__who { font-size: 0.64rem; }
.card__cmd { display: block; padding: 0.75rem 0.85rem; border-radius: 8px; background: #111513; color: #dce3de; font-size: 0.86rem; overflow-x: auto; white-space: nowrap; }
.card__cmd::before { content: "$ "; color: #5fd68f; }
.card__why { margin: 0; font-size: 0.92rem; color: var(--sc-ink-soft); line-height: 1.5; }
.card__act { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.card__out { margin: 0; padding: 0.7rem 0.85rem; border-radius: 8px; background: #111513; color: #9aa79f; font-size: 0.78rem; line-height: 1.55; white-space: pre-wrap; }
.card__out b { color: #5fd68f; font-weight: 600; }

/* 6 quiet */
.act--quiet .side { min-height: 62svh; display: grid; place-items: center; padding: 4rem var(--gut); }
.quiet { font-size: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; color: var(--sc-ink-soft); }

/* 7 peak */
.peak-rig { left: 42%; top: 72%; --rig-w: min(82%, 34rem); z-index: 2; }
.pad--over { position: relative; z-index: 3; }
.warn { margin: 0.5rem 0 0; font-family: var(--sc-font-mono); font-size: 0.82rem; color: var(--sc-ink); max-width: 34rem; }
.status { margin: 0; display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--sc-font-mono); font-size: 0.82rem; font-weight: 500; color: var(--sc-ink); padding: 0.45rem 0.7rem; border-radius: 8px; background: var(--sc-surface); border: 1px solid rgba(15,21,17,0.12); justify-self: start; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sc-accent); transition: background-color 160ms linear; }
.is-off .status__dot { background: #9aa79f; }
.gone { color: var(--sc-ink); font-weight: 560; max-width: 26ch; font-size: var(--sc-t-lg); line-height: 1.35; }
#replug { justify-self: start; }
.peak-rig.manual .rig__dongle { transition: transform 280ms var(--sc-ease-out); }

/* 8 close: a sticky stage with room under it; the dark ground is wiped off
   from the seam leftwards while the stage holds. */
.act--close { position: relative; height: 175svh; background: var(--sc-canvas); }
.close__stick { position: sticky; top: 0; height: 100svh; overflow: clip; }
.close-old { position: absolute; inset: 0 50% 0 0; background: var(--old-canvas); clip-path: inset(0 var(--wipe, 0%) 0 0); z-index: 0; }
.close__in { position: relative; z-index: 1; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: clamp(4rem, 12vh, 7rem) var(--gut) 1.8rem calc(50vw + var(--gut) + 3rem - var(--shift, 0) * (50vw + 3rem)); }
.close__main { display: grid; gap: 1.4rem; align-content: center; max-width: 44rem; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 2rem; align-items: start; padding-top: 1.6rem; margin-top: 1.5rem; border-top: 1px solid rgba(15,21,17,0.12); opacity: var(--shift, 0); }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 0.35rem 2rem; }
.foot nav:last-of-type { grid-template-columns: auto; }
.foot__h { grid-column: 1 / -1; margin-bottom: 0.3rem; }
.foot a { color: var(--sc-ink); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--sc-accent); text-underline-offset: 0.25em; }
.foot__mark { margin: 0; justify-self: end; }

/* ================================================================ phones
   The seam turns horizontal: the usual way on top, SSH Guru underneath. */
@media (max-width: 860px) {
  .divider { display: none; }
  .mbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: var(--sc-z-chrome); align-items: center; gap: 0.6rem; padding: 0.55rem 0.8rem; background: color-mix(in oklab, #f4f6f4 94%, transparent); border-bottom: 1px solid rgba(15,21,17,0.1); backdrop-filter: saturate(1.2) blur(8px); }
  .mbar .mark { font-size: 1rem; }
  .mbar__behind { margin-left: auto; }
  .mbar select { font-size: 0.85rem; text-align: left; max-width: 9.5rem; }
  .split { grid-template-columns: 1fr; }
  .split[data-sc-stage] { grid-template-rows: 1fr 1fr; }
  .pad, .side--old .pad, .side--new .pad { padding: 3rem 1.25rem; }
  .pad--top { padding-top: 4.2rem; padding-bottom: 1rem; }
  .side--old .pad--top { padding-top: 4.6rem; }

  .split--hero { grid-template-rows: 40fr 60fr; }
  .act--hero .side { height: auto; }
  .copy { top: auto; bottom: 1.2rem; left: 1.25rem; right: 1.25rem; gap: 0.6rem; }
  .copy--old { top: 3.8rem; bottom: auto; }
  .copy--new { top: 1.2rem; bottom: auto; }
  .h-old { font-size: 1.7rem; max-width: 16ch; }
  .h-new { font-size: 2.2rem; max-width: 13ch; }
  .copy--old .sub, .mark--hero, .beat { display: none; }
  .plane--router { width: 46%; left: auto; right: -6%; bottom: -10%; margin: 0; }
  .plane--cables { width: 40%; left: auto; right: 24%; bottom: -22%; }
  .plane--board { top: 0; }
  .rig { left: auto; right: -12%; top: 90%; --rig-w: 54%; translate: 0 -50%; }

  .h2 { font-size: 1.75rem; }
  .count__n { font-size: 2.6rem; }
  .steps li { padding: 0.42rem 0; font-size: 0.92rem; }
  .act--steps .steps--old li:nth-child(n+6) { display: none; }
  .log, .act--steps .side--new .note { display: none; }
  .act--guru .body, .act--guru .note, .agent li:nth-child(n+3) { display: none; }
  .card__why { display: none; }
  .act--quiet .side { min-height: 30svh; }
  .h2--peak { font-size: 3rem; }
  .act--peak .split[data-sc-stage] { grid-template-rows: 40fr 60fr; }
  .act--peak .side--new .pad--top { padding-top: 1.4rem; gap: 0.8rem; }
  .peak-rig { left: 44%; top: 83%; --rig-w: 62%; translate: -50% -50%; }
  .act--peak .gone { font-size: 1rem; }
  .close-old { display: none; }
  .act--close { height: auto; }
  .close__stick { position: static; height: auto; }
  .close__in { padding: 5rem 1.25rem 2rem; }
  .foot { grid-template-columns: 1fr; gap: 1.4rem; opacity: 1; }
  .foot nav { grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
  .foot nav:last-of-type { grid-template-columns: repeat(4, auto); }
  .path__row { flex-direction: column; align-items: flex-start; }
  .node + .node { margin-left: 0; margin-top: 1.1rem; }
  .node + .node::before { left: 1.2rem; top: -1rem; width: 1.5px; height: 0.9rem; }
  .foot__mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .steps--old li, .agent li { transition: none; }
}

/* short phones (360x640 and similar): less copy per half, smaller objects */
@media (max-width: 860px) and (max-height: 700px) {
  .h-new { font-size: 1.85rem; }
  .copy--new .sub { display: none; }
  .rig { --rig-w: 46%; top: 91%; right: -10%; }
  .h2--peak { font-size: 2.3rem; }
  .act--peak .gone { font-size: 0.88rem; max-width: 30ch; }
  .act--peak .status { font-size: 0.72rem; }
  .peak-rig { --rig-w: 44%; top: 88%; left: 76%; }
  .act--steps .steps--old li:nth-child(n+5) { display: none; }
  .steps li { padding: 0.3rem 0; font-size: 0.84rem; }
}
