/* ==========================================================================
   e2e.qa · hero
   Light, brand-first composition. The agent's route leaves the sentence and
   is drawn straight onto the page: no window, no panel, no screenshot frame.
   ========================================================================== */

:root {
  --paper:      #e7edf2;
  --ink:        #0b1f2a;
  --ink-2:      rgba(11, 31, 42, .72);
  --ink-3:      rgba(11, 31, 42, .44);
  --ink-4:      rgba(11, 31, 42, .16);

  --pass:       #0f9f6e;
  --pass-deep:  #0a7a54;
  --pass-soft:  rgba(15, 159, 110, .14);
  --run:        #c45c26;
  --fail:       #d64545;

  --line:       rgba(11, 31, 42, .1);
  --line-2:     rgba(11, 31, 42, .18);

  --radius:     10px;
  --radius-sm:  8px;

  --maxw:       1280px;
  --gutter:     clamp(20px, 4.5vw, 64px);

  /* distance from the container edge out to the viewport edge */
  --bleed:      calc(max(0px, (100vw - var(--maxw))) / 2 + var(--gutter));

  --display: "Bricolage Grotesque", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* 100vw in --bleed counts the scrollbar gutter, so clip the few px it adds */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--pass);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Atmosphere · cool stone field with soft topo wash
   ========================================================================== */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 78% 18%, rgba(15, 159, 110, .1), transparent 58%),
    radial-gradient(70% 60% at 8% 88%, rgba(11, 31, 42, .06), transparent 55%),
    linear-gradient(165deg, #eef3f7 0%, var(--paper) 42%, #dce8e4 100%);
}

.atmosphere__wash {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(45% 40% at 62% 48%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(35% 30% at 30% 30%, rgba(15, 159, 110, .07), transparent 70%);
  animation: washDrift 18s var(--ease) infinite alternate;
}

@keyframes washDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.04); }
}

.atmosphere__topo {
  position: absolute;
  inset: 0;
  opacity: .3;
  background:
    repeating-radial-gradient(
      ellipse 120% 80% at 70% 40%,
      transparent 0,
      transparent 38px,
      rgba(11, 31, 42, .04) 39px,
      transparent 40px
    );
  -webkit-mask-image: radial-gradient(80% 70% at 65% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(80% 70% at 65% 45%, #000 20%, transparent 75%);
}

.atmosphere__mist {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(231, 237, 242, .7) 100%);
}

/* ==========================================================================
   Navigation + logo
   ========================================================================== */

.nav {
  position: relative;
  z-index: 5;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

/* the original mark: three mapped nodes that resolve into a checkmark */
.brand__mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #14b981;
  box-shadow: 0 8px 18px -10px rgba(11, 31, 42, .7);
}

.brand__mark svg { width: 21px; height: 21px; overflow: visible; }

.brand__check {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  animation: markDraw .95s var(--ease) .35s forwards;
}

.brand__node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: markPop .42s var(--ease) forwards;
}

.brand__node:nth-of-type(1) { animation-delay: .34s; }
.brand__node:nth-of-type(2) { animation-delay: .68s; }
.brand__node:nth-of-type(3) { animation-delay: 1.06s; }

@keyframes markDraw { to { stroke-dashoffset: 0; } }
@keyframes markPop {
  from { opacity: 0; transform: scale(.3); }
  to   { opacity: 1; transform: scale(1); }
}

.brand__word {
  font-size: 18.5px;
  font-weight: 650;
  letter-spacing: -.04em;
}

.brand__dot {
  display: inline-block;
  width: .27em;
  height: .27em;
  margin: 0 .06em;
  border-radius: 50%;
  background: var(--pass);
  vertical-align: .15em;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-inline: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-2);
}

.nav__links a { transition: color .18s var(--ease); }
.nav__links a:hover { color: var(--ink); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --pad-y: 14px;
  --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), box-shadow .22s var(--ease);
}

.btn--sm { --pad-y: 9px; --pad-x: 14px; font-size: 13.5px; }

.btn--solid {
  background: var(--ink);
  color: #f4f8fa;
  box-shadow: 0 12px 28px -16px rgba(11, 31, 42, .55);
}

.btn--solid:hover {
  transform: translateY(-1px);
  background: #163544;
  box-shadow: 0 16px 34px -14px rgba(11, 31, 42, .6);
}

.btn--line {
  background: rgba(255, 255, 255, .45);
  border-color: var(--line-2);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn--line:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .78);
  border-color: rgba(11, 31, 42, .28);
}

.btn--quiet {
  background: transparent;
  color: var(--ink-2);
  padding-inline: 12px;
  font-weight: 500;
  font-family: var(--mono);
  font-size: 12.5px;
}

.btn--quiet:hover { color: var(--ink); }

.btn__arrow { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.btn--solid:hover .btn__arrow { transform: translateX(3px); }

/* ==========================================================================
   Hero shell
   ========================================================================== */

.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(300px, 30rem) minmax(0, 1fr);
  align-items: start;
  align-content: center;
  column-gap: clamp(24px, 4vw, 72px);
  row-gap: clamp(16px, 2.6vh, 26px);
  padding: clamp(16px, 3vh, 36px) var(--gutter) clamp(32px, 5vh, 56px);
  max-width: var(--maxw);
  margin-inline: auto;
}

.hero__composition {
  position: relative;
  z-index: 3;
  grid-column: 1;
  grid-row: 1;
  /* lets the max-content stats rail wrap instead of widening the track */
  min-width: 0;
}

.hero__field {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

[data-rise] {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .9s var(--ease) forwards;
}

[data-rise="1"] { animation-delay: .05s; }
[data-rise="2"] { animation-delay: .14s; }
[data-rise="3"] { animation-delay: .24s; }
[data-rise="4"] { animation-delay: .34s; }
[data-rise="5"] { animation-delay: .46s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------------------------------- copy ---------------------------------- */

.hero__brand {
  margin: 0 0 clamp(16px, 2.6vh, 26px);
  font-size: clamp(2.8rem, 6.4vw, 5rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.06em;
  color: var(--ink);
}

.hero__brandDot {
  display: inline-block;
  width: .22em;
  height: .22em;
  margin: 0 .06em;
  border-radius: 50%;
  background: var(--pass);
  vertical-align: .12em;
  animation: brandPulse 2.8s var(--ease) infinite;
}

@keyframes brandPulse {
  0%, 70%, 100% { transform: scale(1); opacity: 1; }
  78% { transform: scale(.72); opacity: .35; }
  88% { transform: scale(1); opacity: 1; }
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3.3vw, 2.7rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
  color: var(--ink);
}

.hero__titleAccent {
  color: var(--ink-2);
  font-weight: 500;
}

.hero__lede {
  margin: 0 0 26px;
  max-width: 30em;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.hero__hint {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}

/* --------------------- origin: where the route departs --------------------- */

.hero__origin {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink-3);
}

.hero__liveDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pass);
  flex: none;
  animation: liveBlink 1.6s steps(1, end) infinite;
}

.hero__live.is-fail .hero__liveDot { background: var(--fail); }
.hero__live.is-run  .hero__liveDot { background: var(--run); }

@keyframes liveBlink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: .25; }
}

.origin__rule {
  flex: 1;
  min-width: 12px;
  height: 0;
  border-top: 1px dashed var(--ink-4);
}

.origin__port {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--pass);
  margin-right: -4px;
}

.origin__port::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(15, 159, 110, .45);
  animation: portPulse 2.4s var(--ease) infinite;
}

@keyframes portPulse {
  0%   { transform: scale(.6); opacity: 0; }
  40%  { opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* --------------------------- the connecting route -------------------------- */

.bridge {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

.bridge__path {
  fill: none;
  stroke: var(--pass);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: .75;
}

.bridge__spark {
  fill: var(--ink);
  stroke: var(--pass);
  stroke-width: 2;
  opacity: 0;
  transition: opacity .2s var(--ease);
}

.bridge.is-sparking .bridge__spark { opacity: 1; }

/* ==========================================================================
   Field · instruments, map, log. No frame anywhere.
   ========================================================================== */

.readout {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2.6vw, 34px);
}

.inst {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.inst--end { margin-left: auto; }

.inst__key {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.inst__val {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.inst__val--fail { color: var(--fail); }

/* a measuring rule rather than a UI progress bar */
.scan {
  position: relative;
  height: 2px;
  margin-top: 11px;
  border-radius: 2px;
  background-color: rgba(11, 31, 42, .07);
  background-image: repeating-linear-gradient(90deg, rgba(11, 31, 42, .16) 0 1px, transparent 1px 58px);
  overflow: hidden;
}

.scan__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pass-deep), var(--pass));
  box-shadow: 0 0 12px rgba(15, 159, 110, .55);
  transition: width .25s linear;
}

/* ----------------------------------- map ---------------------------------- */

.map {
  position: relative;
  margin-top: clamp(6px, 1.4vh, 14px);
  /* the diagram breathes out to the viewport edge; the data rows stay in grid */
  margin-right: calc(var(--bleed) * -1);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 95%, transparent 100%);
}

/* plotted field: dots, not a boxed grid */
.map::before {
  content: "";
  position: absolute;
  inset: -6% -2%;
  background-image: radial-gradient(rgba(11, 31, 42, .14) 1px, transparent 1px);
  background-size: 27px 27px;
  -webkit-mask-image: radial-gradient(70% 62% at 44% 50%, #000 22%, transparent 78%);
          mask-image: radial-gradient(70% 62% at 44% 50%, #000 22%, transparent 78%);
  pointer-events: none;
}

.graph {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* --------------------------------- legend --------------------------------- */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin: clamp(10px, 1.8vh, 18px) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.legend--pass { color: rgba(15, 159, 110, .85); }
.legend--run  { color: rgba(196, 92, 38, .85); }
.legend--fail { color: rgba(214, 69, 69, .85); }
.legend--idle { color: rgba(11, 31, 42, .38); }

/* -------------------------------- bug note -------------------------------- */

.bugnote {
  position: absolute;
  right: clamp(4px, calc(var(--bleed) * .45), 78px);
  bottom: 0;
  z-index: 3;
  width: clamp(186px, 34%, 244px);
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 253, 253, .97);
  border: 1px solid rgba(214, 69, 69, .22);
  border-left: 2px solid var(--fail);
  box-shadow: 0 18px 44px -18px rgba(11, 31, 42, .3);
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}

.bugnote.is-open { opacity: 1; transform: none; }

.bugnote__flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fail);
}

.bugnote__flag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fail);
}

.bugnote__title {
  margin: 8px 0 4px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.02em;
  color: var(--ink);
}

.bugnote__meta {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

.bugnote__chips { display: flex; flex-wrap: nowrap; gap: 6px; }

.bugnote__chips span {
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .05em;
  color: var(--ink-2);
}

.bugnote__ticket {
  border-color: rgba(214, 69, 69, .28) !important;
  color: #a32a2a !important;
}

/* ----------------------------------- log ---------------------------------- */

.log {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  min-width: 0;
  padding-top: 12px;
  padding-bottom: 4px;
  border-top: 1px solid var(--line);
}

.feed {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 74px;
}

.feed li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: -.015em;
  color: var(--ink-3);
  animation: feedIn .45s var(--ease) backwards;
}

@keyframes feedIn {
  from { opacity: 0; transform: translateY(7px); }
}

.feed__mark {
  flex: none;
  width: 14px;
  text-align: center;
  font-weight: 600;
}

.feed li.is-pass .feed__mark { color: var(--pass); }
.feed li.is-fail .feed__mark { color: var(--fail); }
.feed li.is-fail .feed__name { color: #8f1f1f; }

.feed__name {
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed__device {
  margin-left: auto;
  flex: none;
  white-space: nowrap;
}

.feed__dur {
  flex: none;
  width: 48px;
  text-align: right;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------- rail ---------------------------------- */

/* the rule spans the stats, not the column */
.hero__rail {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  width: max-content;
  min-width: 0;
  max-width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  row-gap: 15px;
  margin: 0;
  min-width: 0;
}

.proof {
  padding-right: clamp(18px, 2.8vw, 34px);
  margin-right: clamp(18px, 2.8vw, 34px);
  border-right: 1px solid var(--line);
}

.proof:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.proof dt {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.proof dd {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.proof__num {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.proof__unit {
  font-size: 13px;
  font-weight: 650;
  color: var(--pass);
}

/* ==========================================================================
   Graph (SVG)
   ========================================================================== */

.edge {
  fill: none;
  stroke: rgba(11, 31, 42, .2);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity .5s var(--ease), stroke .45s var(--ease);
}

.edge.is-known {
  opacity: 1;
  stroke: rgba(11, 31, 42, .24);
}

.edge.is-walking {
  opacity: 1;
  stroke: var(--pass);
  stroke-width: 2.6;
  filter: drop-shadow(0 0 6px rgba(15, 159, 110, .5));
  transition: none;
}

.edge.is-walked {
  opacity: 1;
  stroke: rgba(15, 159, 110, .5);
  stroke-width: 2.2;
  stroke-dasharray: none;
}

.node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.88);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.node.is-seen { opacity: 1; transform: none; }

.node__box {
  fill: #ffffff;
  stroke: rgba(11, 31, 42, .18);
  stroke-width: 1.2;
  filter: drop-shadow(0 8px 16px rgba(11, 31, 42, .1));
  transition: stroke .3s var(--ease), fill .3s var(--ease);
}

.node__label {
  fill: rgba(11, 31, 42, .78);
  font-family: var(--mono);
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -.02em;
  transition: fill .3s var(--ease);
}

.node__pip {
  fill: rgba(11, 31, 42, .26);
  transition: fill .3s var(--ease);
}

.node__ring {
  fill: none;
  stroke: var(--run);
  stroke-width: 1.6;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.node.is-scanning .node__box   { stroke: rgba(196, 92, 38, .55); fill: #fff8f2; }
.node.is-scanning .node__label { fill: #7a3514; }
.node.is-scanning .node__pip   { fill: var(--run); }
.node.is-scanning .node__ring  { opacity: 1; animation: scanRing 1.1s var(--ease) infinite; }

@keyframes scanRing {
  0%   { transform: scale(1); opacity: .75; }
  100% { transform: scale(1.1); opacity: 0; }
}

.node.is-pass .node__box   { stroke: rgba(15, 159, 110, .5); fill: #eefaf4; }
.node.is-pass .node__label { fill: #0a5c3f; }
.node.is-pass .node__pip   { fill: var(--pass); }

.node.is-fail .node__box   { stroke: rgba(214, 69, 69, .55); fill: #fff1f0; }
.node.is-fail .node__label { fill: #8f1f1f; }
.node.is-fail .node__pip   { fill: var(--fail); }

.graph__probe {
  opacity: 0;
  transition: opacity .25s var(--ease);
}

.graph__probe.is-travelling { opacity: 1; }

.probe__aura { fill: url(#probeGlow); }
.probe__core { fill: var(--ink); }
.probe__ring {
  fill: none;
  stroke: rgba(15, 159, 110, .75);
  stroke-width: 1.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* the map shrinks faster than the note's text, so the note gets terse */
@media (max-width: 1300px) {
  .bugnote__meta,
  .bugnote__chips { display: none; }
  .bugnote__title { font-size: 13px; margin-bottom: 0; }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    row-gap: 22px;
  }

  .hero__composition,
  .hero__field,
  .hero__rail,
  .log {
    grid-column: 1;
    grid-row: auto;
  }

  .hero__composition { order: 1; max-width: 38rem; }
  .hero__rail { order: 2; margin-top: clamp(14px, 2.6vh, 26px); }
  .hero__field { order: 3; }
  .log { order: 4; }

  .bridge,
  .origin__rule,
  .origin__port { display: none; }

  .map {
    margin-right: calc(var(--gutter) * -1);
    margin-left: calc(var(--gutter) * -0.5);
  }

  .bugnote { right: calc(var(--gutter) + 4px); }

  .nav__links { display: none; }
}

@media (max-width: 640px) {
  .hero__brand { font-size: clamp(2.6rem, 14vw, 3.6rem); }
  .hero__title { font-size: clamp(1.65rem, 7.5vw, 2.1rem); }
  .btn--quiet { display: none; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }

  .inst__key { display: none; }
  .inst::before {
    content: attr(data-abbr);
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .12em;
    color: var(--ink-3);
  }
  .inst__val { font-size: 14px; }

  .legend li:nth-child(4) { display: none; }
  .feed li:nth-child(n+3) { display: none; }
  .feed { min-height: 50px; }
  .feed__device { display: none; }

  /* the graph switches to its portrait arrangement here */
  .map { margin-inline: calc(var(--gutter) * -.55); }
  .bugnote { width: min(196px, 62%); right: 6px; }
  .node__label { font-size: 17.5px; }
  .proof__num { font-size: 21px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  [data-rise] { opacity: 1; transform: none; }
  .brand__check { stroke-dashoffset: 0; }
  .brand__node { opacity: 1; }
  .atmosphere__wash { animation: none; }
  .hero__brandDot { animation: none; }
}
