:root {
  color-scheme: light;
  --bg: #edf4fb;
  --bg-strong: #f5f8fc;
  --panel: rgba(255, 255, 255, 0.68);
  --panel-strong: rgba(250, 253, 255, 0.9);
  --text: #10213a;
  --muted: #4e637d;
  --line: rgba(16, 33, 58, 0.12);
  --accent: #1d5fbf;
  --accent-2: #4d8fe7;
  --shadow: 0 24px 80px rgba(18, 40, 72, 0.12);
  --font-display: "Fat Frank", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Fat Frank", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Rollerscript", "Snell Roundhand", "Brush Script MT", cursive;
  --font-mono: "SFMono-Regular", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08111f;
  --bg-strong: #0e1a2f;
  --panel: rgba(14, 24, 43, 0.72);
  --panel-strong: rgba(12, 21, 39, 0.9);
  --text: #e7f0ff;
  --muted: #9cb4d4;
  --line: rgba(231, 240, 255, 0.14);
  --accent: #7bb2ff;
  --accent-2: #9ad4ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(to right, rgba(29, 95, 191, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 95, 191, 0.08) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(29, 95, 191, 0.14), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(77, 143, 231, 0.12), transparent 26%),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: var(--text);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.page-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 8px 0 86px;
  position: relative;
  z-index: 1;
}

.coming-soon-page {
  overflow: hidden;
}

.coming-soon-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 0 96px;
}

.coming-soon-card {
  width: min(100%, 760px);
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.coming-soon-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(84px, 16vw, 132px);
}

.coming-soon-logo {
  display: block;
  width: min(100%, 520px);
  height: auto;
  object-fit: contain;
}

.coming-soon-logo-dark {
  display: none;
}

html[data-theme="dark"] .coming-soon-logo-light {
  display: none;
}

html[data-theme="dark"] .coming-soon-logo-dark {
  display: block;
}

.coming-soon-copy {
  margin: 18px auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  font-family: var(--font-display);
  letter-spacing: 0;
}

.coming-soon-link {
  display: inline-flex;
  margin-top: 28px;
  color: #ffffff;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  font-weight: 400;
  font-family: var(--font-script);
  letter-spacing: 0;
}

html:not([data-theme="dark"]) .coming-soon-link {
  color: #1e3b6a;
}

.project-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 68%, transparent);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.project-pill:hover,
.project-pill:focus-visible {
  opacity: 1;
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--panel-strong));
  transform: translateY(-1px);
}

.theme-toggle,
.hud-toggle,
.hud,
.hud-label,
.hud-value {
  font-family: var(--font-display);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(94vh, 920px);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#signal-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(0deg, rgba(236, 244, 252, 0.04), rgba(236, 244, 252, 0.04));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(38px, 6vh, 82px) 0 clamp(34px, 6vh, 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  gap: 16px;
}

.eyebrow,
.section-label {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-mono);
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(5.4rem, 18vw, 15rem);
  line-height: 0.86;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: 700;
}

.lede {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: 600;
}

.hero-copy {
  margin: 4px 0 0;
  max-width: 58rem;
  font-size: clamp(1.22rem, 2.1vw, 2rem);
  line-height: 1.18;
  color: var(--text);
  font-family: var(--font-body);
}

.hero-detail {
  margin: 0;
  max-width: 62rem;
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  color: var(--muted);
  font-family: var(--font-body);
}

.supporting-copy {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--panel);
  backdrop-filter: blur(16px);
  font-family: var(--font-body);
}

.button-primary {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  color: var(--text);
}

.button-secondary {
  color: var(--muted);
}

.button:hover,
.chips a:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  width: min(100%, 1160px);
  max-width: 100%;
}

.chips a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 clamp(12px, 1vw, 16px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: clamp(0.72rem, 0.95vw, 0.92rem);
  font-weight: 500;
  white-space: nowrap;
  flex: 0 0 auto;
  backdrop-filter: blur(14px);
  font-family: var(--font-mono);
}

.content-section {
  width: min(1180px, 100%);
  margin: 86px auto 0;
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading h2,
.compact-section h2,
.footer-band h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4.6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: 700;
}

.section-intro {
  margin: 16px 0 0;
  max-width: 64rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  font-family: var(--font-body);
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
}

.problem-copy {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.problem-copy p,
.compact-section p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  line-height: 1.75;
  font-family: var(--font-body);
}

.system-map {
  position: relative;
  min-height: 380px;
  border: 1px solid var(--line);
  background:
    linear-gradient(to right, rgba(29, 95, 191, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 95, 191, 0.06) 1px, transparent 1px),
    var(--panel);
  background-size: 28px 28px, 28px 28px, auto;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.system-map::before,
.system-map::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid color-mix(in srgb, var(--accent-2) 36%, transparent);
  transform: skew(-12deg) rotate(-8deg);
}

.system-map::after {
  inset: 30% 16% 25%;
  transform: skew(14deg) rotate(12deg);
}

.source-list {
  position: absolute;
  inset: 26px auto 26px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  z-index: 1;
}

.source-list span,
.system-node {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.system-node {
  position: absolute;
  right: 28px;
  top: 50%;
  z-index: 1;
  max-width: 170px;
  color: var(--text);
  transform: translateY(-50%);
}

.capability-grid,
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.capability-grid article,
.example-grid article,
.process-steps article {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.capability-grid h3,
.example-grid h3,
.process-steps h3 {
  margin: 0 0 12px;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  line-height: 1.2;
}

.capability-grid p,
.example-grid p,
.process-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  font-family: var(--font-body);
}

.hero-workflow {
  width: min(100%, 1180px);
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  line-height: 1.1;
}

.workflow-table,
.comparison-table {
  display: grid;
  gap: 8px;
}

.workflow-row,
.comparison-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.8fr 1.3fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 70%, transparent);
}

.comparison-row {
  grid-template-columns: 1fr 1fr;
}

.workflow-head,
.comparison-head {
  background: transparent;
  border-color: transparent;
  padding-bottom: 2px;
}

.workflow-head span,
.comparison-head span {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.workflow-row span,
.comparison-row span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.35;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.status-live,
.status-ok,
.status-warn {
  border: 1px solid currentColor;
}

.status-live {
  color: #235f97;
  background: rgba(35, 95, 151, 0.08);
}

.status-ok {
  color: #1d6b52;
  background: rgba(29, 107, 82, 0.08);
}

.status-warn {
  color: #8f5d14;
  background: rgba(166, 102, 0, 0.08);
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.matrix-grid span {
  padding: 16px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.3;
}

.case-study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 14px;
  align-items: stretch;
}

.case-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 320px;
  padding: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(to right, rgba(29, 95, 191, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 95, 191, 0.06) 1px, transparent 1px),
    var(--panel);
  background-size: 32px 32px, 32px 32px, auto;
  backdrop-filter: blur(18px);
}

.case-map::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 26%, transparent);
}

.case-map span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-side {
  display: grid;
  gap: 12px;
}

.case-status {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.status-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.status-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.status-list span,
.status-list strong {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-list span {
  color: var(--muted);
  font-size: 0.68rem;
}

.status-list strong {
  color: var(--text);
  font-size: 0.95rem;
}

.process-rail {
  display: grid;
  gap: 12px;
  position: relative;
  padding-left: 22px;
}

.process-rail::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.process-rail article {
  position: relative;
  padding: 18px 18px 18px 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.process-rail article span {
  position: absolute;
  left: -2px;
  top: 18px;
  display: inline-flex;
  width: 22px;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.process-rail h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.process-rail p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  line-height: 1.65;
}

.grid-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 86px auto 0;
  width: min(1180px, 100%);
  border-top: 1px solid var(--line);
}

.grid-band article,
.footer-band {
  width: 100%;
  padding: 42px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.grid-band article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.grid-band article:last-child {
  border-bottom: 1px solid var(--line);
}

.section-index {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
  font-family: var(--font-mono);
}

.section-copy {
  width: min(100%, 900px);
}

.grid-band h2 {
  margin: 12px 0 12px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.grid-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.grid-band article:hover {
  border-top-color: color-mix(in srgb, var(--accent) 34%, var(--line));
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.before-after > div {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.before-after span,
.process-steps span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.before-after p {
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  line-height: 1.35;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.compact-section {
  display: grid;
  gap: 18px;
  width: min(980px, 100%);
}

.footer-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(980px, 100%);
  margin: 86px auto 0;
  padding: 54px 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-band h2 {
  max-width: 840px;
}

.footer-band a {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--accent);
}

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

body.coming-soon-page .theme-toggle {
  top: 16px;
  right: 16px;
}

.theme-toggle:hover {
  border-color: rgba(127, 140, 160, 0.45);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hud-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  width: 42px;
  min-height: 108px;
  padding: 8px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transform: rotate(180deg);
  transform-origin: center center;
}

.hud-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.hud-toggle::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-bottom: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 0 2px, transparent 2px),
    color-mix(in srgb, var(--accent) 10%, var(--panel-strong));
}

.hud-toggle:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--panel-strong));
}

.hud-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

html[data-hud="collapsed"] .hud-toggle {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: var(--panel-strong);
}

html[data-hud="collapsed"] .hud-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.theme-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.hud-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.hud-bar-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.hud-bar-track {
  display: flex;
  width: max-content;
  animation: hud-marquee 72s linear infinite;
  will-change: transform;
}

.hud-bar-group {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  white-space: nowrap;
}

.hud-bar .hud-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
}

.hud-bar .hud-label {
  display: inline;
  margin: 0;
  color: var(--muted);
  font-size: 0.56rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.hud-bar .hud-value {
  display: inline;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
  font-weight: 400;
}

@keyframes hud-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hud-bar-track {
    animation: none;
    transform: none;
  }
}

.hud {
  position: fixed;
  left: 76px;
  bottom: 18px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0.46;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
  transform: rotate(180deg);
  transform-origin: center center;
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease;
}

html[data-hud="collapsed"] .hud {
  opacity: 0;
  visibility: hidden;
  transform: rotate(180deg) translateX(-10px);
}

.hud-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.hud-label {
  display: block;
  margin-bottom: 0;
  font-size: 0.56rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.hud-value {
  display: block;
  font-size: 0.82rem;
  line-height: 1;
  color: var(--text);
  white-space: pre-line;
  font-weight: 400;
}

@media (max-width: 920px) {
  .hero {
    min-height: 86vh;
  }

  .grid-band,
  .content-section {
    margin-top: 42px;
  }

  .hero-content {
    width: min(100%, calc(100% - 32px));
  }

  .chips {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .problem-layout,
  .capability-grid,
  .example-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-workflow {
    width: 100%;
  }

  .workflow-row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .matrix-grid,
  .case-study-grid {
    grid-template-columns: 1fr 1fr;
  }

  .comparison-row {
    grid-template-columns: 1fr 1fr;
  }

  .process-rail {
    padding-left: 18px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 18px), 1440px);
    padding-top: 6px;
    padding-bottom: 48px;
  }

  .coming-soon-shell {
    min-height: 100svh;
    padding: 18px 0 112px;
  }

  .coming-soon-card {
    width: 100%;
    padding: 26px 18px;
    border-radius: 28px;
  }

  .coming-soon-card h1 {
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

  .hero {
    min-height: auto;
    border-radius: 0;
  }

  .theme-toggle {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .hud-toggle {
    left: 14px;
    bottom: 14px;
    width: 36px;
    min-height: 96px;
    padding: 7px 0 9px;
    font-size: 0.62rem;
    transform: rotate(180deg) scale(0.9);
  }

  html[data-hud="collapsed"] .hud-toggle {
    transform: rotate(180deg) scale(0.9);
  }

  .hud {
    left: 64px;
    bottom: 14px;
    gap: 5px;
    opacity: 0.42;
    transform: rotate(180deg) scale(0.9);
  }

  html[data-hud="collapsed"] .hud {
    transform: rotate(180deg) scale(0.9) translateX(-10px);
  }

  .hud-item {
    gap: 4px;
  }

  .hud-label {
    font-size: 0.42rem;
    font-weight: 700;
  }

  .hud-value {
    font-size: 0.58rem;
    font-weight: 400;
  }

  .hero-content {
    width: auto;
    padding: 82px 14px 30px;
    justify-content: flex-end;
    gap: 12px;
  }

  h1 {
    font-size: clamp(3.55rem, 18vw, 6rem);
    line-height: 0.9;
  }

  .lede {
    max-width: 20rem;
    font-size: clamp(1.22rem, 5vw, 1.65rem);
    line-height: 1.12;
  }

  .hero-copy {
    font-size: clamp(1.02rem, 5vw, 1.32rem);
  }

  .hero-detail {
    font-size: 0.88rem;
    line-height: 1.58;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-workflow {
    padding: 14px;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .workflow-table {
    gap: 6px;
  }

  .workflow-head,
  .comparison-head {
    display: none;
  }

  .workflow-row,
  .comparison-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
  }

  .button {
    width: 100%;
    min-height: 42px;
  }

  .chips {
    gap: 7px;
    width: 100%;
  }

  .chips a {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.72rem;
  }

  .content-section {
    margin-top: 38px;
    padding: 38px 8px;
  }

  .section-heading,
  .grid-band article {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-heading h2,
  .compact-section h2,
  .footer-band h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .problem-layout,
  .capability-grid,
  .example-grid,
  .before-after,
  .process-steps,
  .matrix-grid,
  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .system-map {
    min-height: 320px;
  }

  .case-map {
    min-height: 240px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-rail {
    padding-left: 14px;
  }

  .process-rail::before {
    left: 6px;
  }

  .process-rail article {
    padding: 16px 16px 16px 22px;
  }

  .process-rail article span {
    top: 16px;
  }

  .grid-band article {
    padding: 38px 10px;
  }

  .grid-band h2 {
    font-size: clamp(1.65rem, 9vw, 2.6rem);
    line-height: 1.02;
  }

  .grid-band p {
    font-size: 0.92rem;
  }

  .section-label {
    font-size: 0.66rem;
  }

  .footer-band {
    align-items: center;
    margin-top: 42px;
    padding: 38px 10px 0;
  }
}

@media (max-width: 460px) {
  .page-shell {
    width: min(calc(100% - 12px), 1440px);
  }

  .hero-content {
    padding: 58px 10px 22px 20px;
  }

  h1 {
    font-size: clamp(3.05rem, 17.2vw, 4.55rem);
  }

  .lede {
    font-size: clamp(1.08rem, 5.2vw, 1.34rem);
  }

  .chips {
    max-width: 100%;
  }

  .chips a {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  .grid-band {
    margin-top: 24px;
  }

  .grid-band article,
  .capability-grid article,
  .example-grid article,
  .process-steps article,
  .before-after > div,
  .workflow-row,
  .comparison-row {
    padding: 34px 8px;
  }

  .hud {
    left: 58px;
    bottom: 12px;
    gap: 4px;
    transform: rotate(180deg) scale(0.82);
  }

  .hud-toggle {
    left: 12px;
    bottom: 12px;
    transform: rotate(180deg) scale(0.82);
  }

  .hero-workflow {
    padding: 12px;
  }

  .matrix-grid span,
  .case-map span {
    font-size: 0.7rem;
  }

  html[data-hud="collapsed"] .hud {
    transform: rotate(180deg) scale(0.82) translateX(-10px);
  }
}

@media (max-width: 360px) {
  .coming-soon-card {
    padding: 22px 16px;
  }

  .hero-content {
    padding-left: 22px;
  }

  h1 {
    font-size: clamp(2.7rem, 16.8vw, 3.65rem);
  }

  .chips a {
    font-size: 0.64rem;
  }
}
