:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #03070d;
  --panel: rgba(16, 24, 39, 0.78);
  --panel-strong: rgba(17, 24, 39, 0.94);
  --text: #f8fafc;
  --muted: #a9b4c5;
  --muted-2: #748094;
  --brand: #f97316;
  --brand-2: #fb923c;
  --blue: #60a5fa;
  --green: #4ade80;
  --warning: #ef4444;
  --border: rgba(148, 163, 184, 0.24);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  --radius: 1.5rem;
  --radius-sm: 0.9rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 30rem),
    radial-gradient(circle at 80% 18%, rgba(96, 165, 250, 0.1), transparent 24rem),
    linear-gradient(180deg, #03070d 0%, #07111f 38%, #08111f 100%);
  color: var(--text);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 70%);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 20;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.9);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 5vw, 3rem);
  background: rgba(3, 7, 13, 0.74);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand span span {
  color: var(--brand-2);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.98), rgba(251, 146, 60, 0.45));
  color: #03070d;
  text-transform: uppercase;
  font-size: 0.85rem;
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.22);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
  outline: none;
}

.section-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  position: relative;
}

.hero {
  min-height: 760px;
  display: grid;
  align-content: center;
  gap: 3rem;
  text-align: center;
}

.hero-backdrop {
  position: absolute;
  inset: 4rem -1rem 0;
  border-radius: 2.4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(249, 115, 22, 0.18), transparent 14rem),
    linear-gradient(130deg, transparent 0 18%, rgba(96, 165, 250, 0.1) 36%, transparent 70%),
    radial-gradient(circle at 50% 100%, rgba(15, 23, 42, 0.92), transparent 28rem);
  opacity: 0.95;
}

.hero-backdrop::before,
.hero-backdrop::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  height: 18rem;
  bottom: 7rem;
  border-top: 1px solid rgba(249, 115, 22, 0.22);
  transform: skewY(-5deg);
  opacity: 0.5;
}

.hero-backdrop::after {
  bottom: 4rem;
  transform: skewY(4deg);
  border-color: rgba(96, 165, 250, 0.22);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 900;
  font-size: 0.75rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(4.5rem, 13vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
}

h1 span {
  color: var(--brand);
}

h2 {
  max-width: 880px;
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.subtitle {
  color: var(--text);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 800;
}

.hero-summary,
.section-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-summary {
  margin-inline: auto;
}

.hero-audience,
.feature-note {
  max-width: 760px;
  margin: 1rem auto 0;
}

.hero-audience {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.feature-note {
  color: var(--muted-2);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.impact-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.impact-ribbon p,
.scenario-card p {
  margin-bottom: 0;
}

.impact-ribbon p {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(10, 17, 29, 0.7);
  text-align: left;
}

.impact-ribbon strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.impact-ribbon span {
  color: var(--muted);
  font-size: 0.94rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.85rem 1.2rem;
  border-radius: 0.85rem;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid var(--border);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), #fb923c);
  color: #111827;
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.3);
}

.button-secondary {
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hero-stats article,
.rail-card,
.workflow-panel,
.tower-card,
.matrix-card,
.governance-grid article,
.outcome-grid article,
.case-footer-inner {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.86), rgba(15, 23, 42, 0.62));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-stats article {
  padding: 1.2rem;
  text-align: left;
}

.hero-stats span {
  display: inline-flex;
  color: var(--brand-2);
  font-weight: 900;
  margin-bottom: 0.7rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.05rem;
}

.hero-stats p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading.centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.glance-grid article {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.82), rgba(15, 23, 42, 0.58));
  box-shadow: var(--shadow);
}

.glance-grid span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--brand-2);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.glance-grid strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.25;
}

.manual-flow {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.7rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.manual-flow div {
  min-height: 7.5rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px dashed rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
}

.manual-flow span {
  color: var(--warning);
  font-size: 1.5rem;
}

.manual-flow strong {
  color: var(--text);
  font-size: 0.9rem;
}

.callout {
  margin: 1rem 0 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.78);
  color: var(--muted);
}

.callout-warning {
  border-color: rgba(239, 68, 68, 0.3);
}

.scenario-card {
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(249, 115, 22, 0.26);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.09), rgba(15, 23, 42, 0.76));
}

.scenario-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.scenario-card p:last-child {
  color: var(--muted);
}

.verified-flow {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.7rem;
  list-style: none;
  margin: 2rem 0;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.5));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.flow-step {
  position: relative;
  min-height: 8.4rem;
  padding: 1rem 0.75rem;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.74);
  transition: transform 220ms var(--ease-out), border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.flow-step.active,
.flow-step.is-observed {
  transform: translateY(-0.35rem);
  border-color: rgba(249, 115, 22, 0.88);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.16), rgba(15, 23, 42, 0.86));
  box-shadow: 0 20px 46px rgba(249, 115, 22, 0.18);
}

.flow-step.success {
  border-color: rgba(74, 222, 128, 0.5);
}

.flow-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.9rem;
  color: var(--brand-2);
  background: rgba(249, 115, 22, 0.11);
  border: 1px solid rgba(249, 115, 22, 0.3);
  font-weight: 900;
}

.flow-step strong {
  font-size: 0.96rem;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.rail-grid,
.split-workflow,
.control-grid,
.matrix-grid,
.governance-grid,
.outcome-grid {
  display: grid;
  gap: 1rem;
}

.rail-grid {
  grid-template-columns: 1fr 1fr;
}

.rail-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding: 1.35rem;
}

.rail-symbol {
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.4rem;
}

.intelligence .rail-symbol {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.34);
  color: var(--brand-2);
}

.deterministic .rail-symbol {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.32);
  color: var(--blue);
}

.deterministic .eyebrow {
  color: #93c5fd;
}

.rail-card ul,
.workflow-panel ol,
.gate-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.rail-card li,
.workflow-panel li,
.gate-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.rail-card li span,
.workflow-panel li span {
  color: var(--muted);
}

.rail-card li strong::before,
.workflow-panel.modern li strong::before {
  content: "•";
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--brand-2);
  font-weight: 900;
}

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

.workflow-panel {
  padding: 1.35rem;
  overflow: hidden;
}

.workflow-panel.traditional {
  border-color: rgba(239, 68, 68, 0.22);
}

.workflow-panel.modern {
  border-color: rgba(249, 115, 22, 0.42);
}

.mini-path {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  overflow-x: visible;
  padding-bottom: 0;
}

.mini-path span {
  min-height: 4.8rem;
  min-width: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.75rem;
  border: 1px dashed rgba(239, 68, 68, 0.36);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: rgba(239, 68, 68, 0.04);
  overflow-wrap: anywhere;
}

.workflow-panel.modern li {
  display: grid;
  grid-template-columns: 1.3rem 1fr auto;
  align-items: center;
}

.workflow-panel.modern li::before {
  content: counter(list-item);
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--brand);
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
}

.architecture-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.architecture-strip article {
  padding: 1rem;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(3, 7, 13, 0.28);
}

.architecture-strip span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 0.7rem;
  background: rgba(249, 115, 22, 0.12);
  color: var(--brand-2);
  border: 1px solid rgba(249, 115, 22, 0.3);
  font-weight: 900;
}

.architecture-strip strong {
  display: block;
  margin-bottom: 0.45rem;
}

.architecture-strip p {
  color: var(--muted);
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.flywheel {
  margin-top: 1rem;
  padding: 1rem;
  text-align: center;
  color: var(--brand-2);
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.12), transparent);
  font-weight: 900;
}

.control-grid {
  grid-template-columns: 1.2fr 1.3fr 1fr 0.9fr;
}

.feature-banner {
  margin: 0 0 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(59, 130, 246, 0.08);
  color: #dbeafe;
}

.tower-card,
.matrix-card {
  padding: 1rem;
}

.tower-card h3,
.matrix-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tower-card h3 span {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.55rem;
  color: var(--brand-2);
  border: 1px solid rgba(249, 115, 22, 0.38);
}

.issue-list p,
.agent-rows p {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 0.65rem;
  padding: 0.75rem;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.issue-list em,
.agent-rows em {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.agent-rows p {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.agent-rows em {
  grid-column: 1 / -1;
}

.chip {
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 900;
  border: 1px solid var(--border);
}

.chip.run {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.13);
  border-color: rgba(34, 197, 94, 0.28);
}

.chip.reuse {
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.13);
  border-color: rgba(96, 165, 250, 0.28);
}

.chip.skip {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.1);
}

.gate-list li span,
.signal-panel span,
td:not(:first-child) {
  color: #bbf7d0;
  font-weight: 900;
}

.signal-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.signal-panel strong {
  color: var(--muted);
}

.matrix-grid {
  grid-template-columns: 1.2fr 0.8fr;
  margin-top: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

.matrix-card,
.matrix-card .table-wrap {
  min-width: 0;
  max-width: 100%;
}

.matrix-card table {
  width: 100%;
  table-layout: fixed;
}

.matrix-card th,
.matrix-card td {
  overflow-wrap: anywhere;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fine-print {
  color: var(--muted-2);
  font-size: 0.88rem;
  margin-bottom: 0;
  line-height: 1.55;
}

.fallback-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.fallback-strip span {
  padding: 0.9rem 0.5rem;
  text-align: center;
  border: 1px solid rgba(249, 115, 22, 0.26);
  border-radius: 0.85rem;
  background: rgba(249, 115, 22, 0.08);
  color: var(--text);
  font-weight: 800;
}

.governance-grid {
  grid-template-columns: repeat(3, 1fr);
}

.governance-grid article,
.outcome-grid article {
  padding: 1.2rem;
}

.governance-grid strong,
.outcome-grid strong {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.governance-grid strong::before {
  content: "";
  flex: 0 0 auto;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), rgba(251, 146, 60, 0.45));
  box-shadow: 0 0 0 0.32rem rgba(249, 115, 22, 0.09);
}

.governance-grid p,
.outcome-grid p {
  color: var(--muted);
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.outcome-grid {
  grid-template-columns: repeat(4, 1fr);
}

.outcome-grid span {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  color: var(--brand-2);
  border: 1px solid rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.09);
  font-size: 1.25rem;
}

blockquote {
  max-width: 860px;
  margin: 2rem auto 0;
  padding: 1.1rem 1.4rem;
  text-align: center;
  color: var(--text);
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  font-size: 1.15rem;
  font-weight: 800;
}

.case-footer {
  padding: 0 1rem 3.5rem;
}

.case-footer-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 1rem;
}

.case-footer-inner h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.case-footer-inner p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.case-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

@media (max-width: 1020px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
  }

  .site-header nav a {
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-stats,
  .rail-grid,
  .split-workflow,
  .matrix-grid,
  .impact-ribbon,
  .case-footer-inner {
    grid-template-columns: 1fr;
  }

  .manual-flow {
    grid-template-columns: repeat(4, 1fr);
  }

  .verified-flow {
    grid-template-columns: 1fr;
  }

  .flow-step {
    min-height: auto;
    justify-items: start;
    text-align: left;
    grid-template-columns: auto 1fr;
  }

  .flow-step p {
    grid-column: 2;
  }

  .architecture-strip,
  .control-grid,
  .governance-grid,
  .outcome-grid,
  .glance-grid,
  .mini-path {
    grid-template-columns: repeat(2, 1fr);
  }

  .matrix-card {
    padding-inline: 0.85rem;
  }

  .matrix-card table {
    font-size: 0.78rem;
  }

  .case-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .section-shell {
    width: min(100% - 1rem, 1160px);
  }

  .site-header {
    gap: 0.85rem;
    padding-inline: 0.85rem;
  }

  .brand {
    font-size: 0.98rem;
    gap: 0.55rem;
  }

  .brand-mark {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.78rem;
  }

  .site-header nav a {
    font-size: 0.82rem;
    padding: 0.48rem 0.68rem;
  }

  h1 {
    font-size: clamp(3.6rem, 20vw, 5rem);
  }

  .hero {
    gap: 2rem;
    padding-top: 2.8rem;
  }

  .hero-summary,
  .hero-audience {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .manual-flow,
  .architecture-strip,
  .control-grid,
  .governance-grid,
  .outcome-grid,
  .fallback-strip,
  .glance-grid,
  .mini-path {
    grid-template-columns: 1fr;
  }

  .rail-card {
    grid-template-columns: 1fr;
  }

  .manual-flow div {
    min-height: 5.7rem;
  }

  blockquote {
    border-radius: var(--radius);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.site-header nav {
  scrollbar-width: thin;
}

.site-header nav a,
.brand,
.button,
.hero-stats article,
.rail-card,
.workflow-panel,
.tower-card,
.matrix-card,
.governance-grid article,
.outcome-grid article,
.glance-grid article,
.architecture-strip article,
.case-footer-inner {
  transition: transform 200ms var(--ease-out), border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease, background-position 260ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.brand:hover,
.brand:focus-visible {
  transform: translateY(-1px);
}

.button:hover,
.button:focus-visible,
.hero-stats article:hover,
.rail-card:hover,
.workflow-panel:hover,
.tower-card:hover,
.matrix-card:hover,
.governance-grid article:hover,
.outcome-grid article:hover,
.glance-grid article:hover,
.architecture-strip article:hover,
.case-footer-inner:hover {
  transform: translateY(-3px);
}

.button-primary {
  background-size: 180% 180%;
}

.button-primary:hover,
.button-primary:focus-visible {
  background-position: 100% 50%;
}

.hero-backdrop {
  position: absolute;
  inset: 4rem -1rem 0;
  border-radius: 2.4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(249, 115, 22, 0.16), transparent 14rem),
    linear-gradient(130deg, transparent 0 18%, rgba(96, 165, 250, 0.08) 36%, transparent 70%),
    radial-gradient(circle at 50% 100%, rgba(15, 23, 42, 0.92), transparent 28rem);
  opacity: 0.95;
}

.hero-backdrop::before,
.hero-backdrop::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  height: 18rem;
  bottom: 7rem;
  border-top: 1px solid rgba(249, 115, 22, 0.2);
  transform: skewY(-5deg);
  opacity: 0.45;
}

.hero-backdrop::after {
  bottom: 4rem;
  transform: skewY(4deg);
  border-color: rgba(96, 165, 250, 0.2);
}

.orb,
.motion-rail {
  position: absolute;
  pointer-events: none;
}

.orb {
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.3;
}

.orb-one {
  top: 5rem;
  left: 12%;
  background: rgba(249, 115, 22, 0.72);
}

.orb-two {
  right: 10%;
  bottom: 4rem;
  background: rgba(96, 165, 250, 0.45);
}

.motion-rail {
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.56), rgba(96, 165, 250, 0.38), transparent);
  opacity: 0.35;
  transform: rotate(-5deg);
}

.rail-one {
  bottom: 11rem;
}

.rail-two {
  bottom: 7rem;
  transform: rotate(4deg);
}

.motion-ready .orb-one {
  animation: ambient-orb-one 18s ease-in-out infinite alternate;
}

.motion-ready .orb-two {
  animation: ambient-orb-two 20s ease-in-out infinite alternate;
}

.motion-ready .motion-rail {
  animation: rail-glow 8s ease-in-out infinite;
}

@keyframes ambient-orb-one {
  from { transform: translate3d(-1rem, 0, 0) scale(1); opacity: 0.22; }
  to { transform: translate3d(1.5rem, -1rem, 0) scale(1.08); opacity: 0.36; }
}

@keyframes ambient-orb-two {
  from { transform: translate3d(1rem, 0.5rem, 0) scale(0.95); opacity: 0.18; }
  to { transform: translate3d(-1.2rem, -1rem, 0) scale(1.04); opacity: 0.32; }
}

@keyframes rail-glow {
  0%, 100% { opacity: 0.24; filter: blur(0); }
  50% { opacity: 0.52; filter: blur(1px); }
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .flow-step {
  opacity: 0.72;
}

.flow-step.is-complete,
.flow-step.is-current,
.flow-step.is-observed {
  opacity: 1;
  transform: translateY(-0.35rem);
  border-color: rgba(249, 115, 22, 0.88);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.16), rgba(15, 23, 42, 0.86));
  box-shadow: 0 20px 46px rgba(249, 115, 22, 0.18);
}

.flow-step.is-current {
  transform: translateY(-0.55rem);
}

.flow-step.success.is-current,
.flow-step.success.is-complete,
.flow-step.success.is-observed {
  border-color: rgba(74, 222, 128, 0.72);
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.12), rgba(15, 23, 42, 0.9));
  box-shadow: 0 22px 54px rgba(74, 222, 128, 0.14);
}

.motion-ready .chip.run {
  animation: status-pulse 2.6s ease-in-out infinite;
}

.motion-ready .status-pending,
.motion-ready .status-required {
  animation: pending-glow 3s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
  50% { box-shadow: 0 0 0 0.28rem rgba(34, 197, 94, 0.08); }
}

@keyframes pending-glow {
  0%, 100% { color: #fde68a; text-shadow: 0 0 0 rgba(253, 230, 138, 0); }
  50% { color: #fef3c7; text-shadow: 0 0 18px rgba(253, 230, 138, 0.22); }
}

.motion-ready .fallback-card.is-visible .fallback-strip span {
  animation: fallback-step 680ms var(--ease-out) both;
  animation-delay: calc(var(--step-index, 0) * 110ms);
}

@keyframes fallback-step {
  from {
    transform: translateY(0.35rem);
    opacity: 0.62;
    border-color: rgba(249, 115, 22, 0.16);
  }

  to {
    transform: translateY(0);
    opacity: 1;
    border-color: rgba(249, 115, 22, 0.42);
  }
}

.table-wrap {
  overflow-x: auto;
}

@media (max-width: 1020px) {
  .site-header nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.15rem;
  }

  .site-header nav a {
    white-space: nowrap;
  }

  .hero-stats,
  .rail-grid,
  .split-workflow,
  .matrix-grid,
  .impact-ribbon,
  .case-footer-inner {
    grid-template-columns: 1fr;
  }

  .verified-flow {
    grid-template-columns: 1fr;
  }

  .flow-step {
    min-height: auto;
    justify-items: start;
    text-align: left;
    grid-template-columns: auto 1fr;
  }

  .flow-step p {
    grid-column: 2;
  }

  .architecture-strip,
  .control-grid,
  .governance-grid,
  .outcome-grid,
  .glance-grid,
  .mini-path {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .section-shell {
    width: min(100% - 1rem, 1160px);
  }

  .site-header {
    gap: 0.85rem;
    padding-inline: 0.85rem;
  }

  .brand {
    font-size: 0.98rem;
    gap: 0.55rem;
  }

  .brand-mark {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.78rem;
  }

  .site-header nav a {
    font-size: 0.82rem;
    padding: 0.48rem 0.68rem;
  }

  .hero {
    gap: 2rem;
    padding-top: 2.8rem;
  }

  .hero-backdrop {
    inset: 3.5rem -0.35rem 0;
    border-radius: 1.6rem;
  }

  .hero-summary,
  .hero-audience {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .manual-flow,
  .architecture-strip,
  .control-grid,
  .governance-grid,
  .outcome-grid,
  .fallback-strip,
  .glance-grid,
  .mini-path {
    grid-template-columns: 1fr;
  }

  .rail-card {
    grid-template-columns: 1fr;
  }

  .manual-flow div {
    min-height: 5.7rem;
  }

  .matrix-card {
    width: 100%;
  }

  .workflow-panel.modern li {
    grid-template-columns: 1.3rem 1fr;
  }

  .workflow-panel.modern li span {
    grid-column: 2;
  }

  .agent-rows p {
    grid-template-columns: 1fr;
  }

  .agent-rows .chip {
    width: fit-content;
  }

  blockquote {
    border-radius: var(--radius);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .motion-ready [data-reveal],
  .motion-ready [data-reveal].is-visible,
  .motion-ready .flow-step,
  .motion-ready .flow-step.is-complete,
  .motion-ready .flow-step.is-current,
  .motion-ready .flow-step.is-observed {
    opacity: 1;
    transform: none;
  }
}


/* Agentic SRE graph split additions */
:root {
  color-scheme: dark;
  --bg: #03070d;
  --bg-soft: #07111f;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --text: #f8fafc;
  --muted: #a9b4c5;
  --muted-2: #748094;
  --brand: #f97316;
  --brand-2: #fb923c;
  --blue: #60a5fa;
  --green: #4ade80;
  --amber: #fbbf24;
  --border: rgba(148, 163, 184, 0.22);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  --radius: 1.35rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(249, 115, 22, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 22%, rgba(96, 165, 250, 0.11), transparent 26rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 42%, #08111f 100%);
  color: var(--text);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 72%);
}

a { color: inherit; }

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.9);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 30;
  padding: 0.7rem 1rem;
  border-radius: 0.9rem;
  background: var(--brand);
  color: #111827;
  font-weight: 900;
}

.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 5vw, 3rem);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(3, 7, 13, 0.76);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand span span { color: var(--brand-2); }

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.72rem;
  background: linear-gradient(135deg, var(--brand), #fdba74);
  color: #111827;
  font-size: 0.8rem;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.site-header nav a {
  padding: 0.52rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.site-header nav a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.section-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  position: relative;
}

.hero {
  min-height: 760px;
  display: grid;
  align-content: center;
  gap: 2.2rem;
  text-align: center;
}

.hero-backdrop {
  position: absolute;
  inset: 4rem -1rem 1rem;
  border-radius: 2.3rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(249, 115, 22, 0.18), transparent 14rem),
    linear-gradient(130deg, transparent 0 20%, rgba(96, 165, 250, 0.10) 40%, transparent 70%),
    rgba(15, 23, 42, 0.26);
  border: 1px solid rgba(148, 163, 184, 0.10);
}

.hero-copy,
.impact-ribbon {
  position: relative;
  z-index: 1;
}

.eyebrow,
.kicker {
  margin: 0 0 0.7rem;
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 950;
  font-size: 0.74rem;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 980px;
  margin: 0 auto 1rem;
  font-size: clamp(3.1rem, 8vw, 6.3rem);
  line-height: 0.93;
  letter-spacing: -0.075em;
}

h2 {
  max-width: 900px;
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.6rem;
  letter-spacing: -0.025em;
}

.subtitle,
.section-heading p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.06rem;
}

.subtitle { margin-inline: auto; }

.centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.82rem 1.15rem;
  border-radius: 0.88rem;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 950;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), #fdba74);
  color: #111827;
  box-shadow: 0 20px 44px rgba(249, 115, 22, 0.28);
}

.button-secondary {
  background: rgba(15, 23, 42, 0.75);
}

.hero-actions,
.mode-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-actions { justify-content: center; margin-top: 1.5rem; }

.impact-ribbon,
.detail-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.impact-ribbon p,
.detail-card,
.layer-card,
.selected-panel,
.review-grid article,
.graph-toolbar,
.graph-card,
.mobile-journey,
.case-footer-inner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.84), rgba(15, 23, 42, 0.56));
  box-shadow: var(--shadow);
}

.impact-ribbon p {
  padding: 1rem 1.1rem;
  text-align: left;
}

.impact-ribbon strong,
.detail-card strong,
.review-grid strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.impact-ribbon span,
.detail-card p,
.layer-card p,
.selected-grid p,
.review-grid p,
.case-footer-inner span {
  color: var(--muted);
}

.graph-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
}

.graph-toolbar strong {
  display: block;
  margin-bottom: 0.2rem;
}

.graph-toolbar span {
  color: var(--muted);
  font-size: 0.92rem;
}

.mode-buttons { justify-content: flex-end; }

.mode-button {
  min-height: 2.6rem;
  padding: 0.58rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.mode-button:hover,
.mode-button:focus-visible {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(249, 115, 22, 0.58);
}

.mode-button.is-active {
  color: #111827;
  border-color: rgba(249, 115, 22, 0.86);
  background: linear-gradient(135deg, var(--brand), #fdba74);
}

.graph-card {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  padding: 1rem;
  background:
    radial-gradient(circle at 16% 8%, rgba(249, 115, 22, 0.12), transparent 18rem),
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    rgba(2, 6, 23, 0.48);
  background-size: auto, 44px 44px, 44px 44px, auto;
}

.graph-card::before {
  content: "";
  position: absolute;
  inset: 3.2rem 2.2rem 2.2rem;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 16.66% 100%;
  pointer-events: none;
}

.lane-label {
  position: absolute;
  top: 1rem;
  z-index: 2;
  color: rgba(226, 232, 240, 0.44);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.lane-triggers { left: 4.4%; }
.lane-orchestration { left: 19.7%; }
.lane-boundary { left: 35.3%; }
.lane-agents { left: 51.0%; }
.lane-delivery { left: 68.2%; }
.lane-feedback { right: 5.5%; }

.graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.path {
  fill: none;
  stroke: rgba(148, 163, 184, 0.24);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.36;
}

.dashed { stroke-dasharray: 12 14; }

.is-mode-event .event-path,
.is-mode-scheduled .scheduled-path,
.is-mode-provider .provider-path {
  stroke: var(--brand);
  stroke-width: 5;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.32));
  stroke-dasharray: 12 14;
  animation: dash 1.18s linear infinite;
}

.is-mode-scheduled .scheduled-path {
  stroke: var(--amber);
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.26));
}

.is-mode-provider .provider-path {
  stroke: var(--blue);
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.32));
}

@keyframes dash {
  to { stroke-dashoffset: -52; }
}

.mcp-boundary {
  position: absolute;
  left: 33.4%;
  top: 15%;
  width: 16.6%;
  height: 67%;
  border: 1.5px dashed rgba(96, 165, 250, 0.42);
  border-radius: 1.4rem;
  background: rgba(37, 99, 235, 0.04);
  pointer-events: none;
}

.mcp-boundary span {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #bfdbfe;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.graph-node {
  position: absolute;
  z-index: 4;
  width: 142px;
  min-height: 96px;
  padding: 0.72rem;
  display: grid;
  align-content: start;
  gap: 0.24rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  transition: transform 200ms var(--ease-out), opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.graph-node b {
  color: var(--brand-2);
  font-size: 1rem;
}

.graph-node strong {
  font-size: 0.84rem;
  line-height: 1.12;
}

.graph-node span {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.26;
}

.graph-node[data-step]::after {
  content: attr(data-step);
  position: absolute;
  top: -0.52rem;
  right: 0.75rem;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #111827;
  font-size: 0.68rem;
  font-weight: 950;
  box-shadow: 0 0 0 0.32rem rgba(249, 115, 22, 0.12);
}

.graph-node:hover,
.graph-node:focus-visible,
.graph-node.is-selected {
  transform: translateY(-5px);
  border-color: rgba(253, 186, 116, 0.9);
  box-shadow: 0 0 0 1px rgba(253, 186, 116, 0.28), 0 22px 58px rgba(249, 115, 22, 0.18);
}

.graph-node.is-selected {
  z-index: 8;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.28), transparent 8rem), linear-gradient(180deg, rgba(30, 41, 59, 0.99), rgba(15, 23, 42, 0.9));
}

.graph-node.is-muted {
  opacity: 0.44;
}

.graph-node.is-path-active {
  opacity: 1;
}

.core {
  border-color: rgba(249, 115, 22, 0.5);
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 8rem), linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.82));
}

.boundary-node {
  border-color: rgba(96, 165, 250, 0.38);
}

.success-node {
  border-color: rgba(74, 222, 128, 0.42);
}

.node-n1 { left: 4.2%; top: 12%; }
.node-n2 { left: 4.2%; top: 38%; }
.node-n3 { left: 4.2%; top: 65%; }
.node-n4 { left: 18.6%; top: 38%; }
.node-n5 { left: 34.4%; top: 38%; }
.node-n6 { left: 34.4%; top: 65%; }
.node-n7 { left: 50.6%; top: 12%; }
.node-n8 { left: 50.6%; top: 38%; }
.node-n9 { left: 50.6%; top: 65%; }
.node-n10 { left: 50.6%; top: 84%; min-height: 72px; }
.node-n11 { left: 67.2%; top: 12%; }
.node-n12 { left: 67.2%; top: 38%; }
.node-n13 { left: 67.2%; top: 65%; }
.node-n14 { left: 82.4%; top: 38%; }
.node-n15 { left: 82.4%; top: 65%; }

.mobile-journey {
  display: none;
  padding: 1rem;
}

.mobile-journey-head {
  margin-bottom: 1rem;
}

.mobile-journey-head strong {
  display: block;
}

.mobile-journey-head span {
  color: var(--muted);
}

.mobile-journey ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.mobile-journey li {
  display: none;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.32);
  cursor: pointer;
}

.mobile-journey li.is-visible-step {
  display: grid;
}

.mobile-journey b {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.16);
  color: var(--brand-2);
}

.mobile-journey strong,
.mobile-journey span {
  display: block;
}

.mobile-journey span {
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-grid {
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 1rem;
}

.detail-card {
  padding: 1rem;
}

.layers-section {
  padding-top: clamp(2.4rem, 5vw, 4rem);
}

.layer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.layer-card {
  min-height: 15rem;
  padding: 1rem;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.layer-card span {
  color: var(--brand-2);
  font-weight: 950;
}

.layer-card:hover,
.layer-card:focus-visible,
.layer-card.is-layer-selected {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.54);
  box-shadow: 0 20px 52px rgba(249, 115, 22, 0.13);
}

.layer-card.is-layer-selected {
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 10rem),
    linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(15, 23, 42, 0.62));
}

.selected-section {
  padding-top: clamp(2.2rem, 5vw, 4rem);
}

.selected-panel {
  padding: 1.05rem;
  background:
    radial-gradient(circle at 12% 0, rgba(249, 115, 22, 0.10), transparent 18rem),
    linear-gradient(180deg, rgba(17, 24, 39, 0.84), rgba(15, 23, 42, 0.58));
}

.selected-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.9rem;
}

.selected-panel-head h3 {
  margin: 0;
  font-size: 1.6rem;
}

.sync-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.6rem;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 999px;
  color: var(--text);
  background: rgba(249, 115, 22, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.selected-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.selected-grid article {
  padding: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.28);
}

.selected-grid strong {
  display: block;
  margin-bottom: 0.3rem;
}

.selected-grid p {
  margin-bottom: 0;
}

.review-grid {
  grid-template-columns: repeat(4, 1fr);
}

.review-grid article {
  padding: 1rem;
}

.case-footer {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto 2rem;
}

.case-footer-inner {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .graph-card-desktop {
    min-width: 1120px;
  }

  .graph-section {
    overflow-x: auto;
  }

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

  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    justify-content: flex-start;
  }

  .graph-toolbar,
  .detail-grid,
  .selected-grid,
  .impact-ribbon {
    grid-template-columns: 1fr;
  }

  .mode-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .section-shell {
    width: min(100% - 1rem, 720px);
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .graph-section {
    overflow-x: visible;
  }

  .graph-card-desktop {
    display: none;
  }

  .mobile-journey {
    display: block;
  }

  .layer-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .selected-panel-head,
  .case-footer-inner {
    display: block;
  }

  .sync-chip {
    margin-top: 0.75rem;
  }
}

@media (max-width: 460px) {
  .mode-button {
    width: 100%;
    justify-content: center;
  }

  .hero-actions .button {
    width: 100%;
  }

  .graph-toolbar,
  .selected-panel,
  .detail-card,
  .layer-card {
    border-radius: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}


/* Agentic SRE graph split additions */
.layers-section {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
}

.layers-section .section-heading {
  margin-bottom: 1.2rem;
}

.layers-section .section-heading h2 {
  max-width: 760px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.layer-grid.is-rich-layer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.layer-card.scale-card {
  grid-column: 1 / -1;
  min-height: 12rem;
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) 1.28fr;
  gap: 1.1rem;
  align-items: center;
  border-color: rgba(74, 222, 128, 0.36);
  background:
    radial-gradient(circle at 10% 20%, rgba(74, 222, 128, 0.14), transparent 18rem),
    radial-gradient(circle at 84% 40%, rgba(96, 165, 250, 0.10), transparent 18rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.48));
}

.layer-card.scale-card:hover,
.layer-card.scale-card:focus-visible,
.layer-card.scale-card.is-layer-selected {
  border-color: rgba(74, 222, 128, 0.58);
  box-shadow: 0 22px 56px rgba(74, 222, 128, 0.12);
}

.scale-number {
  display: block;
  margin: 0.35rem 0 0.2rem;
  color: var(--green);
  font-size: clamp(2.35rem, 4vw, 3.35rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.layer-card.scale-card .scale-number {
  color: var(--green);
}

.layer-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.layer-card li + li {
  margin-top: 0.38rem;
}

.layer-note {
  margin-top: 0.9rem;
  padding: 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0.8rem;
  background: rgba(3, 7, 13, 0.28);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.selected-section {
  padding-top: 0.75rem;
}

.selected-section .section-heading {
  margin-bottom: 0.75rem;
}

.selected-section .section-heading h2,
.selected-section .section-heading p {
  display: none;
}

.selected-section .section-heading .eyebrow {
  margin-bottom: 0;
  color: var(--muted);
}

.selected-panel-head .sync-chip {
  text-transform: lowercase;
}

@media (max-width: 1180px) {
  .layer-grid.is-rich-layer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .layer-grid.is-rich-layer-grid {
    grid-template-columns: 1fr;
  }

  .layer-card.scale-card {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .selected-section {
    padding-top: 0.5rem;
  }
}
