/* The original evidence sits in these slots. A dedicated layer holds it
   only while it's travelling between the two measured layouts. */
.story-layer {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.story-layer > [data-carried] {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--w);
  height: var(--h);
  transform: translate3d(var(--x), var(--y), 0);
  overflow: hidden;
}
.story-slot { min-width: 0; }
.story-slot > :is(.story-traffic, .story-domain, .story-request) { width: 100%; height: 100%; }
.story-slot > .story-fallback { display: none; }
#main :is(.site-screen, .structure-screen, .recorder-screen, .api-screen, .matrix-screen) :is(.screen-copy, .screen-art) {
  transform: none;
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .story-surface {
    position: fixed; z-index: 0; top: 0; left: 0;
    width: var(--w); height: var(--h);
    transform: translate3d(var(--x), var(--y), 0);
    border-radius: var(--story-radius, 18px);
    background: var(--story-skin);
    border: 1px solid #557c78;
    opacity: var(--story-frame-ink, 1);
    pointer-events: none;
  }
  #main [data-story-piece] {
    translate: var(--piece-x) var(--piece-y);
    scale: var(--piece-scale);
    transform-origin: center;
    opacity: var(--piece-ink);
  }
  #main .screen-art[data-story-state] { z-index: 1; }
  #main .screen-art[data-story-state="in"] { z-index: 2; }
  #main .screen-art[data-story-state] :is(.site-instrument, .trace-instrument, .recorder-instrument, .record-request) {
    overflow: visible;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  .screen-art[data-story-state] .capture-summary { border-color: transparent; }
  .screen-art[data-story-state] .instrument-metrics { border-color: transparent; }
  .network-stage[data-story-state="out"] { --device-ink: 1; }
  .network-stage[data-story-state="out"] :is(#duo-stage, .mobile-network) { opacity: var(--device-ink); }
}
@media (prefers-reduced-motion: reduce) {
  .story-slot > .story-fallback { display: grid; }
  .story-layer { display: none; }
}

.manual-tools { min-width: 0; max-width: 100%; font-size: .8rem; color: #b8d4d2; }
.manual-tools > summary {
  width: fit-content;
  min-height: 42px;
  padding: 11px 0;
  cursor: pointer;
  color: #bcdbd6;
}
.manual-tools > summary::marker { color: var(--accent); }
.manual-tools[open] > summary { color: var(--accent); }
.network-screen .manual-tools { margin-top: 8px; }
.network-screen .manual-tools .lab-controls { margin-top: 6px; }
#site-analysis:not(:has(.manual-tools[open])) :is(.site-bars, .site-hosts) { display: none; }
#site-analysis:not(:has(.manual-tools[open])) .site-breakdown { grid-template-columns: minmax(0, 1fr); }
#recorder:not(:has(.manual-tools[open])) .record-seek { display: none; }
#recorder:not(:has(.manual-tools[open])) .record-timeline { margin-top: 18px; }

[data-story-slot="traffic-network"] { height: 44px; }
[data-story-slot="traffic-site"] { height: 132px; margin: 12px 16px; }
[data-story-slot="domain-site"], [data-story-slot="domain-tree"] { height: 72px; margin: 10px 16px; }
[data-story-slot^="request-"] { height: 88px; }

.story-traffic, .story-domain, .story-request {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-mono);
}
.story-traffic {
  --grouping: 0;
  --axis: calc(44px * var(--grouping));
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: calc(4px + 4px * var(--grouping)) calc(12px * var(--grouping)) calc(5px + 3px * var(--grouping));
  color: #bfdfdd;
  background: #102326;
  border-radius: calc(9px * var(--grouping));
  box-shadow: inset 0 0 0 calc(1px * var(--grouping)) #416965;
}
.traffic-caption {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: .66rem;
  margin-bottom: 4px;
  white-space: nowrap;
}
.traffic-grid {
  position: relative;
  margin-left: var(--axis);
  min-height: 14px;
  background: repeating-linear-gradient(90deg, #9dc8d331 0 1px, transparent 1px 25%);
  border-bottom: 1px solid #497672;
}
.traffic-grid i {
  position: absolute;
  left: calc(var(--time-start) * (1 - var(--grouping)) + var(--group-start) * var(--grouping));
  top: calc(var(--time-y) * (1 - var(--grouping)) + var(--group-y) * var(--grouping));
  width: calc(var(--time-width) * (1 - var(--grouping)) + var(--group-width) * var(--grouping));
  height: calc(1px + 13px * var(--grouping));
  border-inline-end: 1px solid #102326;
  border-radius: 2px;
  background: #81d7cb;
}
.traffic-grid i[data-kind="JS"] { background: #9cb9f5; }
.traffic-grid i[data-kind="Fetch"] { background: #85e1b6; }
.traffic-grid :is([data-kind="Img"], [data-kind="Font"]) { background: #dfc188; }
.traffic-cursor {
  position: absolute;
  inset: 0 auto 0 var(--cursor-time, 100%);
  width: 1px;
  background: #d6f9ee;
  transform: scaleY(calc(1 - var(--grouping)));
  transform-origin: bottom;
}
.traffic-groups {
  display: grid;
  padding-top: 4px;
  position: absolute;
  inset: 22px auto 6px 12px;
  width: var(--axis);
  overflow: hidden;
  clip-path: inset(0 calc(100% * (1 - var(--grouping))) 0 0);
  white-space: nowrap;
  align-items: center;
  font-size: .62rem;
  color: #c6dad6;
}
.traffic-groups b { font-weight: 600; color: #a6eac4; }

.story-domain, .story-request {
  display: grid;
  align-items: center;
  gap: 10px 16px;
  border: 1px solid #5c8a84;
  border-radius: 10px;
  background: #173035;
  color: #d5e8e7;
  padding: 10px clamp(11px, 1.8vw, 20px);
}
.story-domain { grid-template-columns: minmax(0, 1fr) auto auto; }
.story-domain div { overflow: hidden; }
.story-domain small { display: block; margin-bottom: 3px; font-size: .65rem; color: #a3d1cc; }
.story-domain strong { display: block; color: #e7fbf6; font-size: clamp(.85rem, 2.6vw, 1.2rem); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.story-domain > span { font-size: .72rem; white-space: nowrap; }
.story-request {
  border-color: #70a298;
  background: #172f31;
  gap: 6px;
}
.story-request > div { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.story-request strong { color: #e4fffa; font-size: clamp(.86rem, 2.8vw, 1.24rem); overflow-wrap: anywhere; }
.story-request > :last-child { color: #b5cdca; font-size: .69rem; }
.story-method {
  border-radius: 4px;
  background: #2c584e;
  color: #cff9e9;
  padding: 4px 7px;
  font-size: .72rem;
}
.story-http { color: #a9edc5; }
.site-instrument .site-breakdown { min-height: 0; border-top: 1px solid #31574e; }
.site-selection { max-height: 176px; overflow: auto; }
.site-selection p { font-weight: 620; }
.trace-detail .trace-fields { margin-top: 22px; }
.trace-detail .trace-fields h3 { font-size: clamp(1.25rem, 3.2vw, 2.2rem); }
.record-request {
  padding: 12px 14px;
  border: 1px solid #926d53;
  border-bottom: 0;
  background: #211f1b;
  border-radius: 18px 18px 0 0;
}
.record-request + .recorder-instrument { border-radius: 0; }
[data-story-slot="request-api"] { margin: 12px 16px; }
.api-content { margin-top: 14px; min-width: 0; }
.api-verdict { color: #a5efd3; font: .78rem/1.7 var(--font-mono); margin-top: 9px; min-height: 1.7em; }
.api-grid [data-pending] { visibility: hidden; }
.api-tools { margin-top: 8px; }
.api-tools select, .api-tools [data-api-send] {
  min-height: 38px;
  padding-inline: 9px;
  background: #1c3c38;
  color: #e8fbf6;
  border: 1px solid #649084;
  border-radius: 5px;
}

@media (max-width: 900px) {
  #workflow:not(:has(#network-tools[open])) .mobile-network { display: none; }
}
@media (max-width: 740px) {
  #workflow .screen-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 10px; }
  #workflow #network-tools { margin-top: 0; }
  #workflow #network-tools[open] { flex-basis: 100%; }
  .story-domain { gap: 7px; }
  .story-domain > span { font-size: .62rem; }
  .record-request { padding: 9px 10px; }
  .trace-detail { order: -1; border-bottom: 1px solid #31505c; }
  .trace-detail .trace-fields { margin-top: 15px; }
  [data-story-slot="traffic-site"] { height: 108px; }
  [data-story-slot="domain-site"], [data-story-slot="domain-tree"] { margin-inline: 10px; }
  .api-grid { min-height: 355px; }
}

/* The section layouts follow the illustrated task, with the native names
   reserved for the controls inside the workbench. */
.hero h1 { font-size: clamp(3.25rem, 5.15vw, 5.65rem); }
.hero-value { max-width: 32ch; margin-top: clamp(16px, 2.3vw, 24px); font-size: clamp(.97rem, 1.2vw, 1.13rem); color: #c8ddd8; }
.hero-paths { display: flex; flex-wrap: wrap; gap: 4px 25px; margin-top: 14px; }
.hero-paths a {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
  font-size: .87rem; font-weight: 635; color: var(--accent);
  border-bottom: 1px solid #84c4b157;
}
.hero-paths a:hover { color: #e2f8f0; border-color: currentColor; }
.hero-paths a span[aria-hidden] { font-weight: 400; }
.screen-copy > p:not(.hero-value), .scene-intro p {
  margin-top: 10px; font-size: clamp(.84rem, 1.2vw, .98rem); line-height: 1.62;
}
.scene-intro { min-width: 0; }
.network-screen .scene-intro { flex-basis: 100%; }
#resource-tree .screen-copy p { max-width: 52ch; margin-inline-start: auto; }
#api-lab .screen-copy p { text-align: center; }
#workflow h2 { font-size: clamp(2rem, 3.16vw, 3.6rem); line-height: 1.23; }
#site-analysis .screen-copy { padding-inline: 8px; }
#site-analysis h2 { font-size: clamp(2.2rem, 3.8vw, 4.4rem); }
#resource-tree .screen-copy { grid-row: 2; text-align: end; }
#resource-tree h2 { font-size: clamp(1.9rem, 3.42vw, 3.9rem); }
#recorder .screen-copy { border-inline-start: 2px solid #f2c58f80; padding-inline: 16px 0; }
#recorder h2 { font-size: clamp(2rem, 3.67vw, 4.14rem); }
#api-lab .screen-layout { width: min(1120px, var(--wrap)); }
#api-lab h2 { font-size: clamp(2.05rem, 3.68vw, 4.15rem); text-align: center; }
.capture-types {
  display: flex; flex-wrap: wrap; gap: 3px 9px; margin-top: 6px;
  color: #bcd5d7; font: .61rem/1.35 var(--font-mono);
}
.capture-types b { color: #9ce6d8; font-weight: 700; }
.waterfall-rows [aria-pressed=true] strong, .capture-summary dd { color: #defff6; }
.capture-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 10px 16px;
  border-block: 1px solid #31574e;
}
.capture-summary div { padding: 9px 7px; }
.capture-summary dt { color: #b3cfc6; font-size: .69rem; }
.capture-summary dd { margin: 4px 0 0; font: .8rem var(--font-mono); overflow-wrap: anywhere; }
.capture-source { border-top: 1px solid #31574e; font: .66rem/1.5 var(--font-mono); padding: 7px 15px; }
.site-selection [data-status="404"] { color: #ffbd95; }
.site-selection a:hover { text-decoration: underline; }
[data-story-slot="traffic-site"] { height: 177px; }
.traffic-grid i { height: calc(1px + 10px * var(--grouping)); }
.traffic-groups { inset-block-end: 11px; padding-top: 0; }
.traffic-grid i[data-kind="Media"] { background: #c4aef1; }
.traffic-grid i[data-status="404"] { background: #f2af88; }
.request-headers { margin-block: 8px; color: #b8d8d8; font-size: .72rem; }
.request-headers summary { cursor: pointer; padding-block: 5px; min-height: 25px; }
.request-headers dd { overflow-wrap: anywhere; }
.script-example button { border: 1px solid #649084; border-radius: 4px; background: #1c393c; padding: 5px 9px; }
.script-example output { margin-inline-start: 8px; color: #a5ebc1; }
.api-comparison dt { color: #c1dad1; }
.record-trace { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.record-trace time { white-space: nowrap; }
.recorder-instrument .playback-scroll { padding: 0; }
.recorder-instrument .playback-window { height: 370px; }
@media (max-width: 740px) {
  .hero h1 { font-size: clamp(2.45rem, 9vw, 4.35rem); }
  #workflow h2 br { display: initial; }
  #resource-tree .screen-copy { grid-row: 1; text-align: start; }
  #site-analysis .screen-copy { padding-inline: 0; }
  #api-lab h2 { text-align: start; }
  .capture-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-inline: 9px; }
  .record-trace { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recorder-instrument .playback-window { height: 280px; }
  .waterfall-rows button > span:first-child small { font-size: .57rem; }
}
#main { overflow-anchor: none; }
.api-content { min-height: 194px; }
.site-lab { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; align-items: stretch; }
.site-timing { min-width: 0; }
.site-evidence {
  min-width: 0; align-self: start; border: 1px solid #608780; border-radius: 18px;
  background: linear-gradient(125deg,#142d2a,#102222 62%); box-shadow: 0 30px 70px #02080a62;
  padding: clamp(13px, 1.6vw, 21px);
}
.site-evidence header {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-bottom: 10px; border-bottom: 1px solid #49776c;
}
.site-evidence h3 { color: #e8f7ee; font-size: 1.02rem; font-weight: 680; }
.site-evidence header span { color: #add0c1; font-size: .72rem; white-space: nowrap; }
.site-evidence .evidence-domain { color: #b2e9d4; font-size: .84rem; margin-top: 10px; overflow-wrap: anywhere; }
.evidence-group { margin-top: 14px; }
.evidence-group h4, .certificate-names h5 { margin: 0 0 5px; color: #e0f3e9; font-size: .82rem; font-weight: 630; }
.evidence-group dl, .certificate-names ul { margin: 0; padding: 0; }
.evidence-group dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.fingerprint-list > div { padding-block: 7px; border-bottom: 1px solid #5c847145; }
.fingerprint-list dt { font-size: .71rem; color: #a9c6bd; }
.fingerprint-list strong { margin-left: 7px; color: #e2f2ee; font: 620 .85rem var(--font-mono); }
.fingerprint-list dd { margin-top: 3px; font-size: .70rem; color: #b4d1ca; }
.evidence-type { color: #a3e6cb; margin-right: 3px; }
.evidence-type.is-inferred { color: #efd4a3; }
.evidence-records > div, .certificate-names li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  border-bottom: 1px solid #5c847145; padding-block: 6px; font-size: .72rem;
}
.evidence-records dt, .certificate-names li span { color: #aac9bf; white-space: nowrap; }
.evidence-records dd, .certificate-names li code { color: #d2ece3; }
.certificate-names { margin-top: 11px; }
.certificate-names ul { list-style: none; }
.certificate-names li code { overflow-wrap: anywhere; min-width: 0; }
.site-evidence .evidence-note { color: #afd0c4; font-size: .71rem; line-height: 1.5; margin-top: 10px; }
@media (min-width: 1020px) {
  .site-lab { grid-template-columns: minmax(0,1.7fr) minmax(320px,1fr); }
}
@media (max-width: 1019px) {
  .site-evidence { grid-row: 1; }
}
@media (max-width: 740px) {
  .hero-value { margin-top: 13px; }
  .hero-paths { margin-top: 8px; }
  #site-analysis h2 { font-size: clamp(1.62rem, 7.8vw, 2.65rem); text-wrap: balance; }
  #api-lab .screen-copy p { text-align: start; }
  #resource-tree .screen-copy p { margin-inline-start: 0; }
}

@media (min-width: 1121px) {
  #overview { --stage-height: min(clamp(790px, 46vw, 1040px), calc(100svh - var(--nav-height) - 96px)); }
  #overview .screen-layout { width: min(1490px, calc(100% - 112px)); }
}

.matrix-screen { --accent: #b4ebdb; }
.matrix-screen .screen-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.matrix-screen h2 { font-size: clamp(2rem, 3.6vw, 4rem); letter-spacing: -.065em; }
.matrix-board {
  --board-line: #53736e; --diagram-entry: 1;
  display: grid; grid-template-columns: clamp(95px, 13vw, 180px) minmax(0, 1fr);
  align-items: stretch; border: 1px solid var(--board-line); border-radius: 20px;
  background: linear-gradient(112deg, #172f30, #102024 47%, #112225);
}
.matrix-hub { position: relative; display: grid; place-items: center; }
.capability-dock { position: absolute; display: block; pointer-events: none; }
.capability-dock-api { inset-block: 0; inset-inline-end: 0; width: 1px; }
.capability-dock-matrix { height: 1px; inset-inline: 50% 0; top: 50%; }
.capability-wire { display: block; width: 100%; height: 100%; background: #78a79b; }
.capability-dock-api > .capability-wire { background: #4c786d; }
.story-layer > .capability-wire {
  position: absolute; top: 0; left: 0; height: var(--wire-width, 1px); width: var(--wire-length);
  transform: translate3d(var(--wire-x), var(--wire-y), 0) translate(-50%, -50%) rotate(var(--wire-angle));
  transform-origin: center;
  background: rgb(139 225 197 / var(--wire-ink, 1));
  box-shadow: 0 0 9px rgb(125 232 201 / var(--wire-glow, 0));
}
.story-layer > .capability-wire::after {
  content: ""; position: absolute; top: 50%; left: var(--wire-tip); width: 5px; height: 5px;
  border-radius: 50%; background: #c7ffed; transform: translate(-50%, -50%);
  opacity: min(1, calc(var(--wire-glow, 0) * 2.3)); box-shadow: 0 0 7px #91ead9;
}
.capability-dock:empty::after { content: ""; display: block; width: 100%; height: 100%; background: #78a79b; }
.capability-dock-api:empty::after { background: #4c786d; }
@media (prefers-reduced-motion: no-preference) {
  .capability-dock:empty::after { display: none; }
}
@media (max-width: 740px) {
  .capability-dock-api { height: 1px; width: auto; inset-block: auto 0; inset-inline: 0; }
}
.matrix-orbit {
  position: relative; display: grid; place-items: center; width: min(74%, 116px); aspect-ratio: 1;
  border-radius: 50%; border: 1px solid #72ad9c; background: radial-gradient(circle at 38% 35%, #284e47, #13292b 78%);
  box-shadow: 0 0 0 8px #52877816, 0 0 34px #549c8645;
}
.matrix-orbit img { width: 63%; height: auto; }
.matrix-lanes { position: relative; min-width: 0; border-inline-start: 1px solid var(--board-line); padding-block: 7px; }
.matrix-lanes::before {
  content: ""; position: absolute; left: -1px; top: 13%; bottom: 13%; width: 1px;
  background: linear-gradient(#7ad3bd4d, #93d7b7, #dfbd8659);
  transform: scaleY(var(--diagram-entry));
}
.matrix-lane {
  --lane-color: #a2e1d2; --lane-entry: 1; position: relative;
  display: grid; grid-template-columns: minmax(110px, .67fr) minmax(0, 4fr);
  align-items: stretch; min-width: 0;
}
.matrix-lane + .matrix-lane { border-top: 1px solid #587b753f; }
.matrix-lane:nth-child(2) { --lane-color: #b4d6fd; }
.matrix-lane:nth-child(3) { --lane-color: #b9e8bf; }
.matrix-lane:nth-child(4) { --lane-color: #f0cc9b; }
.matrix-lane h3 {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 15px 8px 15px clamp(12px, 1.5vw, 21px); color: var(--lane-color);
  font-weight: 660; font-size: clamp(.87rem, 1.1vw, 1.02rem);
}
.matrix-lane h3::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px;
  background: var(--lane-color); opacity: .74; transform-origin: left;
  transform: scaleX(var(--lane-entry));
}
.matrix-lane h3 span {
  flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lane-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lane-color) 13%, transparent);
}
.matrix-lane dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; min-width: 0; }
.matrix-cell { position: relative; padding: 15px clamp(10px, 1.25vw, 17px); border-inline-start: 1px solid #587b753f; }
.matrix-cell dt { margin-bottom: 6px; color: #eef6f5; font-size: .93rem; font-weight: 680; }
.matrix-cell dd { margin: 0; color: #bfd3d1; font-size: .83rem; line-height: 1.52; }
.matrix-cell dd + dd { margin-top: 5px; }

@media (max-width: 1030px) {
  .matrix-board { grid-template-columns: 105px minmax(0,1fr); }
  .matrix-lane { grid-template-columns: 1fr; padding-bottom: 5px; }
  .matrix-lane h3 { padding: 12px 14px 4px; }
  .matrix-lane dl { padding-inline: 9px; }
  .matrix-cell { padding-block: 8px 13px; }
  .matrix-cell:first-child { border-inline-start: 0; }
}
@media (max-width: 660px) {
  .matrix-screen .screen-layout { gap: 18px; }
  .matrix-board { grid-template-columns: 1fr; border-radius: 14px; }
  .matrix-hub { min-height: 103px; }
  .capability-dock-matrix { top: auto; bottom: 0; left: 50%; right: auto; width: 1px; height: 20px; }
  .matrix-orbit { width: 61px; }
  .matrix-lanes { border-inline-start: 0; border-top: 1px solid var(--board-line); padding-inline: 13px; }
  .matrix-lanes::before { display: none; }
  .matrix-lane h3 { padding-inline: 0; }
  .matrix-lane h3::before { display: none; }
  .matrix-lane dl { grid-template-columns: 1fr; padding-inline: 3px 0; }
  .matrix-cell { padding: 9px 6px 10px 14px; }
  .matrix-cell:first-child { border-inline-start: 1px solid #587b753f; }
  .matrix-cell::before { content: ""; position: absolute; left: -2px; top: 15px; width: 4px; height: 4px; border-radius: 50%; background: var(--lane-color); }
  .matrix-cell dd { font-size: .83rem; }
}
@media (prefers-reduced-motion: no-preference) {
  #main .api-screen[data-capability-exit]:not(:focus-within) :is(.screen-copy, .screen-art) {
    opacity: var(--api-exit-ink);
  }
  #main .api-screen[data-capability-exit="finished"] :is(.screen-copy, .screen-art) { visibility: hidden; }
  #main .matrix-screen[data-capability-entry] :is(.screen-copy, .matrix-board) {
    opacity: clamp(0, calc(var(--matrix-enter) * 3.4), 1);
  }
  .matrix-screen[data-capability-entry] .matrix-board { --diagram-entry: clamp(0, calc(var(--matrix-enter) * 1.75), 1); }
  .matrix-screen[data-capability-entry] .matrix-orbit {
    opacity: clamp(0, calc(var(--matrix-enter) * 2.8), 1);
    transform: scale(calc(.9 + .1 * var(--matrix-enter)));
  }
  .matrix-screen[data-capability-entry] .matrix-lane {
    --lane-entry: clamp(0, calc((var(--matrix-enter) - .135 * var(--lane)) * 1.9), 1);
    opacity: var(--lane-entry);
    transform: translate3d(calc(-16px * (1 - var(--lane-entry))), 0, 0);
  }
}

/* The welcome screen uses the app's original artwork. */
.air-app:not([data-has-page]) :is(.air-tools, .mini-dock) { display: none; }
.air-app:not([data-has-page]) .air-page { height: 100%; background: #111418; }
.air-welcome { min-height: 100%; padding: clamp(20px, 9cqh, 64px) 7% 25px; }
.air-welcome-globe { display: block; margin: 0 auto clamp(25px, 9cqh, 73px); width: min(55%, 186px); height: auto; opacity: .72; filter: drop-shadow(0 0 11px #82d8be63); }
.air-welcome form { position: relative; display: flex; gap: 6px; min-width: 0; }
.air-welcome form label { display: flex; min-width: 0; flex: 1; align-items: center; gap: 7px; padding: 0 10px; border-radius: 13px; background: #242a30; color: #9ba7aa; }
.air-welcome form label svg { flex: 0 0 14px; }
.air-welcome input { border: 0; min-height: 38px; min-width: 0; width: 100%; padding: 4px 0; color: #edf6f4; background: none; font: clamp(.62rem, 1vw, .91rem) system-ui; }
.air-welcome input::placeholder { color: #b8c0c3; }
.welcome-open { border: 1px solid #526b66; border-radius: 10px; min-width: 30px; background: #203231; color: #b0e8d8; padding: 0 6px; }
.air-welcome-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 9px 17px; font: .71rem system-ui; color: #bac3c7; }
@media (max-width: 740px) {
  .air-welcome-links { font-size: .55rem; gap: 5px 8px; }
}

.hero .screen-copy { container-type: inline-size; }
#overview h1 .title-line, #workflow h2 .title-line { color: inherit; }
#overview h1 span, #workflow h2 .title-line { display: block; }
#overview h1 br, #workflow h2 br { display: none; }
:root:not(:lang(zh), :lang(ja)) .hero h1 {
  font-size: clamp(2.06rem, 12cqw, 5.2rem);
  white-space: normal;
  letter-spacing: -.065em;
}
:root:not(:lang(zh), :lang(ja)) #workflow h2 { font-size: clamp(1.78rem, 2.65vw, 3.45rem); }
:root:not(:lang(zh), :lang(ja)) #site-analysis h2 { font-size: clamp(1.8rem, 3.35vw, 3.75rem); }
.hero-paths { column-gap: clamp(12px, 1.6vw, 25px); }
.evidence-records dt, .certificate-names li span { white-space: normal; }
.certificate-names li span { text-align: end; }
:is(.site-evidence h4, .instrument-metrics span, .capture-summary dt, .matrix-lane h3) { overflow-wrap: anywhere; }
.waterfall-legend, .response-timing { flex-wrap: wrap; }
.request-inspection [aria-label] { overflow-wrap: anywhere; }
