/* ============================================================
   SERVED BY THE APP at /assets/landing.css (CBM-94) — this is the
   schema site's live stylesheet, not a preview file, despite the
   header below. Ported from presentation-preview/landing/public/css/
   landing.css; apart from this banner the only change was repointing
   the four @font-face rules from the preview's ../fonts/ directory at
   this route, so it still diffs cleanly against the preview. Some of
   the rules below (.cb-gallery*, .cb-preview-tag)
   are used only by the preview's own pages and are kept so that diff
   stays clean.
   ============================================================ */
/* ============================================================
   Corporate Brain — focus/landing presentation preview (Task A).

   Vaporwave-plus-pirate shell in the same visual language as
   shipn-landing. Design tokens are copied verbatim from
   /home/fica/Documents/shipn-landing/public/css/styles.css, which
   itself echoes dashboard frontend tokens v6 — see HANDOFF.md for
   provenance. Class names carry the cb- prefix so this sheet can
   later be merged into the site without colliding with the
   application's existing styles.

   Fully self-contained: fonts are vendored woff2 in ../fonts,
   no CDN or external requests. Login documents remain script-free.
   ============================================================ */

@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/assets/orbitron-var.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/spacemono-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/spacemono-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/spacemono-400-italic.woff2") format("woff2");
}

:root {
  /* echoed from shipn-landing styles.css, which echoes dashboard tokens v6 */
  --space: #170b2e;
  --panel: #221040;
  --panel-2: #1a0c33;
  --line: rgba(244, 236, 255, 0.1);
  --line-strong: rgba(244, 236, 255, 0.2);
  --muted: #9c87c4;
  --paper: #f4ecff;
  --magenta: #ff2e97;
  --cyan: #05e5d8;
  --amber: #ffe37b;
  --chrome1: #8df6ff;
  --chrome2: #ff9af0;
  --iso-edge: rgba(141, 246, 255, 0.35);
  --ok: var(--cyan);
  --warn: var(--amber);
  --down: var(--magenta);

  --font-display: "Orbitron", "Trebuchet MS", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", monospace;

  /* one landscape, one anchor number (same trick as the dashboard) */
  --horizon: 45vh;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--space);
  color: var(--paper);
  font-family: var(--font-mono);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.mono {
  font-family: var(--font-mono);
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 32px;
}
.cb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* skip link: hidden until focused, then a solid readable target */
.cb-skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  background: var(--panel);
  color: var(--paper);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: top 0.15s;
}
.cb-skip:focus-visible {
  top: 12px;
}

/* chrome-gradient display type (shipn-landing's chrome-text) */
.chrome-text {
  background: linear-gradient(180deg, var(--chrome1) 0%, #ffffff 28%, var(--chrome2) 60%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 46, 151, 0.35));
}

/* ============================================================
   neural backdrop — sky, stars, branching fibers, horizon haze,
   perspective grid floor. Decorative only: pointer-transparent,
   hidden from assistive technology.
   ============================================================ */
.cb-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
main,
header,
footer {
  position: relative;
  z-index: 1;
}

/* CRT scanline overlay, same as the console */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

.cb-stars {
  position: absolute;
  inset: 0 0 var(--horizon) 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(244, 236, 255, 0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 9%, rgba(141, 246, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 30%, rgba(244, 236, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 14%, rgba(255, 154, 240, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 67% 34%, rgba(244, 236, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 11%, rgba(141, 246, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 26%, rgba(244, 236, 255, 0.65) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 40%, rgba(244, 236, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 42%, rgba(255, 154, 240, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 47% 6%, rgba(244, 236, 255, 0.5) 50%, transparent 51%);
  animation: cb-twinkle 9s ease-in-out infinite alternate;
}
@keyframes cb-twinkle {
  from { opacity: 0.35; }
  to { opacity: 0.65; }
}

.cb-neural-field {
  position: absolute;
  left: 50%;
  top: calc(var(--horizon) - 36vh);
  width: max(1000px, 105vw);
  height: 86vh;
  transform: translateX(-50%);
  opacity: .48;
  -webkit-mask-image: radial-gradient(ellipse, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse, #000 15%, transparent 72%);
}
.cb-neural-aura {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 34% 30% at 46% 43%, rgba(101, 123, 220, .15), transparent 90%),
    radial-gradient(ellipse 20% 24% at 65% 42%, rgba(5, 229, 216, .06), transparent 85%),
    radial-gradient(ellipse 28% 38% at 32% 48%, rgba(167, 113, 255, .09), transparent 85%);
}

.cb-horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--horizon) - 15vh);
  height: 22vh;
  opacity: 0.18;
  background: radial-gradient(ellipse 62% 100% at 50% 72%, #8197df 0%, rgba(133, 110, 211, 0.22) 42%, transparent 78%);
}

.cb-grid {
  position: absolute;
  left: -25%;
  right: -25%;
  top: var(--horizon);
  bottom: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(var(--iso-edge) 1px, transparent 1px),
    linear-gradient(90deg, var(--iso-edge) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(75deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  mask-image: linear-gradient(to top, #000 0%, transparent 78%);
}

/* ============================================================
   masthead — slim, shared across the three preview pages
   ============================================================ */
.cb-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(23, 11, 46, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.cb-header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  flex-wrap: wrap;
}
.cb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 0; /* full header height is the tap target */
  min-width: 0;
  max-width: 100%;
}
.cb-brand-mark {
  width: 30px;
  height: 30px;
  color: var(--paper);
  flex: none;
}
.cb-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.18em;
  overflow-wrap: anywhere;
  line-height: 1.5;
  background: linear-gradient(180deg, var(--chrome1) 0%, #ffffff 30%, var(--chrome2) 65%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cb-header-controls {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.cb-nav {
  display: flex;
  gap: 22px;
  margin-left: 12px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.cb-nav a {
  color: var(--muted);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.cb-nav a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.cb-nav a[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.cb-utility {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.cb-utility a {
  color: var(--muted);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.cb-utility a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.cb-logout {
  display: inline-flex;
}
.cb-logout button {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.cb-logout button:hover {
  border-color: var(--magenta);
  color: var(--chrome2);
  box-shadow: 0 0 14px rgba(255, 46, 151, 0.3);
}

/* LED status lights — the console's state colors */
.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
  background: var(--muted);
}
.led-ok {
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: cb-pulse 2.6s ease-in-out infinite;
}
.led-warn {
  background: var(--warn);
  box-shadow: 0 0 8px var(--warn);
}
.led-down {
  background: var(--down);
  box-shadow: 0 0 8px var(--down);
}
@keyframes cb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ============================================================
   hero — title, subtitle, the brain emblem, two action panels
   ============================================================ */
.cb-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
  min-height: calc(100svh - 64px - 108px); /* viewport minus masthead and footer strip */
  justify-content: center;
}
.cb-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 7.8vw, 64px);
  line-height: 1.3; /* Orbitron has tall font metrics; keep title line boxes separate. */
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.cb-subtitle {
  color: var(--muted);
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  max-width: 100%;
  text-wrap: balance;
}

/* Offline-projected, depth-sorted neural sculpture. The focus page adds a
   few pixels of depth parallax; the static render stays complete without it. */
.cb-emblem {
  display: block;
  width: min(490px, 100%);
  height: auto;
  aspect-ratio: 520 / 370;
  flex: none;
  margin: 0 0 18px;
  overflow: visible;
}
.cb-brain-float {
  transform-origin: 260px 185px;
  animation: cb-brain-drift 12s ease-in-out infinite;
}
.cb-depth-layer {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.cb-depth-active .cb-depth-layer {
  transition-duration: 90ms;
}
.cb-depth-drift {
  transform-box: fill-box;
  transform-origin: center;
}
.cb-depth-rear .cb-depth-drift {
  animation: cb-depth-rear-drift 16s ease-in-out infinite alternate;
}
.cb-depth-mid .cb-depth-drift {
  animation: cb-depth-mid-drift 13s ease-in-out -4s infinite alternate;
}
.cb-depth-front .cb-depth-drift {
  animation: cb-depth-front-drift 11s ease-in-out -7s infinite alternate;
}
.cb-emblem-small {
  width: min(370px, 100%);
  margin-bottom: 18px;
}
.cb-neural-dot {
  opacity: 0;
  offset-anchor: 0px 0px;
  offset-rotate: 0deg;
  transform-origin: 0 0;
}
@supports (offset-path: path("M0 0L1 1")) {
  .cb-neural-fallback {
    animation: cb-dot-path 2.4s linear infinite;
    animation-delay: var(--dot-delay, 0s);
  }
}
.cb-random-active .cb-neural-fallback {
  display: none;
}
.cb-neural-live {
  animation: none;
}
.cb-neuron, .cb-spark {
  animation: cb-neuron-glow 7s ease-in-out infinite;
  animation-delay: var(--node-delay, 0s);
}
.cb-brain-ground {
  animation: cb-ground-breathe 12s ease-in-out infinite;
}
@keyframes cb-brain-drift {
  0%, 100% { transform: translateY(2px) rotate(-.7deg); }
  50% { transform: translateY(-4px) rotate(.7deg); }
}
@keyframes cb-depth-rear-drift {
  from { transform: translate(-.7px, .35px); }
  to { transform: translate(.7px, -.35px); }
}
@keyframes cb-depth-mid-drift {
  from { transform: translate(.25px, -.2px); }
  to { transform: translate(-.25px, .2px); }
}
@keyframes cb-depth-front-drift {
  from { transform: translate(1.1px, -.55px); }
  to { transform: translate(-1.1px, .55px); }
}
@keyframes cb-dot-path {
  0% { offset-distance: 0%; opacity: 0; }
  2% { opacity: 1; }
  18% { opacity: 1; }
  20%, 100% { offset-distance: 100%; opacity: 0; }
}
@keyframes cb-neuron-glow {
  0%, 35%, 100% { opacity: .25; }
  55% { opacity: 1; }
  75% { opacity: .45; }
}
@keyframes cb-ground-breathe {
  0%, 100% { opacity: .65; }
  50% { opacity: .35; }
}

/* the two primary hero choices — equal weight, same structure */
.cb-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: min(760px, 100%);
}
.cb-panel {
  display: block;
  text-align: left;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 26px 28px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.cb-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--cyan)), transparent);
}
.cb-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 24px rgba(5, 229, 216, 0.08);
}
.cb-panel-schema {
  --accent: var(--cyan);
}
.cb-panel-schema:hover {
  border-color: var(--cyan);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 26px rgba(5, 229, 216, 0.22);
}
.cb-panel-ontology {
  --accent: var(--magenta);
}
.cb-panel-ontology:hover {
  border-color: var(--magenta);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 26px rgba(255, 46, 151, 0.22);
}
.cb-panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.cb-panel-schema h2 {
  color: var(--chrome1);
}
.cb-panel-ontology h2 {
  color: var(--chrome2);
}
.cb-panel p {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 14px;
}
.cb-panel-route {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent, var(--cyan));
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ============================================================
   sign-in panel (logged-out state) — plain native form, no JS
   ============================================================ */
.cb-signin {
  width: min(440px, 100%);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 30px 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(141, 246, 255, 0.05) inset, 0 0 40px rgba(255, 46, 151, 0.08);
  text-align: left;
}
.cb-signin h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-align: center;
  margin-bottom: 8px;
  color: var(--paper);
}
.cb-signin-note {
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  margin-bottom: 22px;
}
.cb-signin label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.cb-signin input[type="password"] {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 16px; /* avoids automatic focus zoom in iPhone Safari */
  color: var(--paper);
  background: var(--space);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cb-signin input[type="password"]:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(5, 229, 216, 0.35);
}
.cb-signin button {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(255, 46, 151, 0.22), rgba(255, 46, 151, 0.08));
  border: 1px solid var(--magenta);
  border-radius: 6px;
  padding: 13px 20px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 46, 151, 0.25);
  transition: box-shadow 0.2s, transform 0.15s;
}
.cb-signin button:hover {
  box-shadow: 0 0 28px rgba(255, 46, 151, 0.45);
  transform: translateY(-1px);
}
.cb-signin button:active {
  transform: translateY(0);
}
.cb-error {
  color: var(--down);
  border: 1px solid rgba(255, 46, 151, 0.5);
  background: rgba(255, 46, 151, 0.08);
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  margin-bottom: 16px;
}

/* ============================================================
   footer strip
   ============================================================ */
.cb-footer {
  border-top: 1px solid var(--line);
  background: rgba(23, 11, 46, 0.9);
}
.cb-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.cb-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.cb-footer-status .led {
  width: 9px;
  height: 9px;
}
.cb-preview-tag {
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(255, 227, 123, 0.45);
  border-radius: 4px;
  padding: 1px 7px;
  margin-left: 4px;
}
.cb-footer-fine {
  border-top: 1px dashed var(--line);
}
.cb-footer-row.cb-footer-fine {
  font-size: 11.5px;
  opacity: 0.75;
}

/* ============================================================
   state gallery page (preview-only demonstration)
   ============================================================ */
.cb-gallery {
  padding-top: 56px;
  padding-bottom: 72px;
}
.cb-gallery h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.cb-gallery-intro {
  color: var(--muted);
  font-size: 14px;
  max-width: 72ch;
  margin-bottom: 40px;
}
.cb-state-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cb-state-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 20px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  overflow-wrap: anywhere;
}
.cb-state-card .cb-preview-tag {
  align-self: flex-end;
  margin-bottom: 12px;
  margin-left: 0;
}
.cb-state-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.cb-state-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(23, 11, 46, 0.9);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--paper);
  margin-bottom: 14px;
}
.cb-state-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.cb-state-note code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--chrome1);
}

/* ============================================================
   responsive — 390px: stack panels, keep everything in-flow
   ============================================================ */
@media (max-width: 980px) {
  .cb-backdrop {
    --horizon: 52vh;
  }
  .cb-nav {
    margin-left: 0;
    gap: 14px;
    font-size: 12px;
  }
  .cb-header-row {
    gap: 0 20px;
    padding-block: 8px;
  }
  .cb-header-controls {
    flex-basis: 100%;
  }
  .cb-state-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .wrap {
    padding-inline: 20px;
  }
  .cb-header {
    position: relative; /* expanded mobile masthead never covers scrolled content */
  }
  .cb-header-row {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 4px 20px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-inline: 12px;
  }
  .cb-header-controls {
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between;
  }
  .cb-utility {
    margin-left: 0;
    gap: 6px;
    font-size: 11px;
    letter-spacing: .02em;
  }
  .cb-brand-name {
    font-size: clamp(12px, 3.5vw, 16px);
    letter-spacing: 0.10em;
  }
  .cb-brand {
    padding-block: 8px;
  }
  .cb-nav {
    justify-content: flex-start;
    gap: 4px;
    font-size: 11px;
    letter-spacing: .02em;
  }
  .cb-nav a, .cb-utility a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
  }
  .cb-logout button {
    min-height: 44px;
    padding-inline: 6px;
    font-size: 11px;
    letter-spacing: .02em;
  }
  .cb-hero {
    min-height: 0;
    padding-block: 32px;
  }
  .cb-emblem {
    width: min(400px, 100%);
    margin-bottom: 16px;
  }
  .cb-emblem-small {
    width: min(300px, 100%);
  }
  .cb-panels {
    grid-template-columns: 1fr;
  }
  .cb-state-cards {
    grid-template-columns: 1fr;
  }
  .cb-footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .cb-signin {
    padding: 24px 22px;
  }
}

/* ============================================================
   reduced motion — no ambient movement, no smooth transitions
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .cb-neural-dot {
    opacity: 0;
  }
}
