@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --bg:#08070d;
  --bg-elev:#0c0a14;
  --surface:#121020;
  --surface-2:#17142a;
  --surface-3:#1d1934;
  --line:#ffffff0f;
  --line-2:#ffffff1a;
  --line-3:#ffffff26;
  --fg:#f1eef8;
  --fg-2:#b3adc4;
  --fg-3:#8b849d;
  --violet:#8e60ce;
  --violet-bright:#bc94f5;
  --violet-soft:#d7c2fb;
  --violet-deep:#3b2560;
  --ok:#93c7a9;
  --warn:#d3bd8c;
  --danger:#e79c9c;
  --content:1320px;
  --content-wide:1440px;
  --measure:74ch;
  --gutter:clamp(20px,3.6vw,56px);
  --section-y:clamp(72px,7vw,128px);
  --r-sm:8px;
  --r-md:12px;
  --r-lg:16px;
  --r-xl:22px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --t-display:clamp(46px,6.2vw,92px);
  --t-h2:clamp(28px,3.4vw,46px);
  --t-h3:clamp(19px,1.6vw,24px);
  --shadow-lg:0 30px 80px -24px #000000cc;
  --font-display:"Space Grotesk Variable","Segoe UI",Arial,sans-serif;
  --font-sans:"Segoe UI Variable Text","Segoe UI",system-ui,Arial,sans-serif;
  --font-mono:ui-monospace,"Cascadia Mono",Consolas,"Courier New",monospace;
  --dept-manager:#8b5cf6;
  --dept-research:#a78bfa;
  --dept-architecture:#6366f1;
  --dept-engineering:#22c55e;
  --dept-productux:#ec4899;
  --dept-qa:#eab308;
  --dept-security:#ef4444;
  --dept-devops:#14b8a6;
  --dept-documentation:#38bdf8;
  --dept-release:#f59e0b;
  color-scheme:dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--t-display);
}

h2 {
  font-size: var(--t-h2);
}

h3 {
  font-size: var(--t-h3);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section :is(p, li, dd, td, .notice, .gate__item, .figure__caption) a:where(:not(.btn, .brand, .skip-link, .chip, .download-related__link, .docs-nav__link, .notfound-links a)) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: #ffffff40;
}

.section :is(p, li, dd, td, .notice, .gate__item, .figure__caption) a:where(:not(.btn, .brand, .skip-link, .chip, .download-related__link, .docs-nav__link, .notfound-links a)):is(:hover, :focus-visible) {
  text-decoration-color: var(--violet-bright);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: #8e60ce59;
  color: var(--fg);
}

:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

[data-dept="manager"] {
  --dept-accent: var(--dept-manager);
}

[data-dept="research"] {
  --dept-accent: var(--dept-research);
}

[data-dept="architecture"] {
  --dept-accent: var(--dept-architecture);
}

[data-dept="engineering"] {
  --dept-accent: var(--dept-engineering);
}

[data-dept="productux"] {
  --dept-accent: var(--dept-productux);
}

[data-dept="qa"] {
  --dept-accent: var(--dept-qa);
}

[data-dept="security"] {
  --dept-accent: var(--dept-security);
}

[data-dept="devops"] {
  --dept-accent: var(--dept-devops);
}

[data-dept="documentation"] {
  --dept-accent: var(--dept-documentation);
}

[data-dept="release"] {
  --dept-accent: var(--dept-release);
}

.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--content-wide);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: calc(var(--section-y) * .55);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 72ch;
  margin-bottom: clamp(28px, 3.4vw, 52px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-soft);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 68ch;
}

.section-head p,
.lead,
.section > .container > p:not(.notice),
.section > .container > .stack > p:not(.notice),
.section > .container.stack > p:not(.notice) {
  max-width: var(--measure);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

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

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

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

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 22px);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line-2);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
}

.hash {
  font-family: var(--font-mono);
  font-size: 12.5px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.muted {
  color: var(--fg-2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-200%);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--violet-bright);
  color: #160d24;
  font-size: 14px;
  font-weight: 600;
  transition: transform .18s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0a0912d9;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--violet-soft);
}

.brand__word {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__word em {
  font-style: normal;
  color: var(--violet-bright);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 18px);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--fg-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .18s var(--ease);
}

.site-nav__link:hover {
  color: var(--fg);
  text-decoration: none;
}

.site-nav__link[aria-current="page"] {
  color: var(--violet-soft);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 1px;
  background: var(--violet-soft);
}

.version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--fg);
}

.nav-toggle:hover {
  background: var(--surface-2);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, #c0a0ed, #a67add);
  color: #1a1026;
  border: 1px solid #d2b2fb80;
  box-shadow: 0 14px 30px -18px #8e60cecc;
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #cbaff3, #b18ae6);
  box-shadow: 0 20px 40px -18px #8e60cee6;
}

.btn--secondary {
  background: transparent;
  border: 1px solid var(--line-3);
  color: var(--fg);
}

.btn--secondary:hover {
  background: var(--surface-2);
  border-color: #8e60ce99;
  transform: translateY(-1px);
}

.btn--ghost {
  min-height: 44px;
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
  color: var(--violet-soft);
}

.btn--ghost::after {
  content: "\2192";
  font-family: var(--font-mono);
  font-size: 14px;
  transition: transform .18s var(--ease);
}

.btn--ghost:hover {
  color: var(--violet-bright);
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

.btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
}

.btn--block {
  display: flex;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--rc {
  color: var(--violet-soft);
  border-color: #8e60ce66;
  background: #8e60ce1f;
}

.badge--warn {
  color: var(--warn);
  border-color: #d3bd8c4d;
  background: #d3bd8c1a;
}

.badge--ok {
  color: var(--ok);
  border-color: #93c7a94d;
  background: #93c7a91a;
}

.badge--neutral {
  color: var(--fg-3);
  border-color: var(--line-2);
  background: var(--surface);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--fg-2);
  font-size: 13px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 #ffffff08;
  padding: clamp(20px, 2.4vw, 28px);
}

.panel--flush {
  padding: 0;
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel--flush .panel__head {
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px);
  margin-bottom: 0;
}

.panel__body {
  min-width: 0;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  min-width: 0;
}

.tile__icon {
  width: 18px;
  height: 18px;
  color: var(--violet-soft);
}

.tile__value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tile__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.kv {
  margin: 0;
  border-top: 1px solid var(--line);
}

.kv__row {
  display: grid;
  grid-template-columns: minmax(190px, .42fr) minmax(0, 1fr);
  gap: 8px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.kv__key {
  min-width: 190px;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.kv__value {
  min-width: 0;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.kv__value .hash,
.kv__value code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.figure {
  margin: 0;
}

.figure__frame {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 1px 0 #ffffff0a;
}

.figure__frame img {
  width: 100%;
}

.figure__caption {
  margin-top: 12px;
  max-width: 70ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-3);
}

.hero .figure__frame {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px #8e60ce40, inset 0 1px 0 #ffffff0a;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 120px) clamp(56px, 6vw, 96px);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 1.8vw, 24px);
  max-width: 62ch;
  min-width: 0;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--fg-3);
}

.hero__meta span + span::before {
  content: "\00B7";
  margin: 0 10px;
  opacity: .75;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__visual {
  position: relative;
  min-width: 0;
}

.hero__glow {
  position: absolute;
  z-index: 0;
  top: -18%;
  right: -12%;
  width: min(70%, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, #8e60ce24, #8e60ce0d 55%, transparent 72%);
  filter: blur(60px);
}

.hero__visual > :not(.hero__glow) {
  position: relative;
  z-index: 1;
}

.grid-texture {
  background-image: repeating-linear-gradient(0deg, #ffffff08 0 1px, transparent 1px 64px), repeating-linear-gradient(90deg, #ffffff08 0 1px, transparent 1px 64px);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 28%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 28%, transparent 78%);
}

.dept {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 28px;
}

.dept__topology {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.dept__topology-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dept__topology-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dept-accent, var(--violet));
}

.dept__rail {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 1px 0 #ffffff08;
  overflow: hidden;
}

.dept__item {
  display: grid;
  grid-template-columns: 28px 10px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.dept__item:last-child {
  border-bottom: 0;
}

.dept__item:hover {
  background: var(--surface-2);
  color: var(--fg);
}

.dept__item[aria-selected="true"] {
  background: var(--surface-3);
  box-shadow: inset 3px 0 0 var(--dept-accent, var(--violet));
  color: var(--fg);
}

.dept__num {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}

.dept__dot {
  grid-row: 1 / span 2;
  align-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dept-accent, var(--violet));
}

.dept__name {
  grid-column: 3;
  grid-row: 1;
  font-size: 15px;
  font-weight: 600;
}

.dept__role {
  grid-column: 3;
  grid-row: 2;
  font-size: 12px;
  color: var(--fg-3);
}

.dept__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 260px;
}

.dept__panel-accent {
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: var(--dept-accent, var(--violet));
}

.dept__panel-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dept__panel-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet-soft);
}

.dept__panel-role::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 14px;
  background: var(--dept-accent, var(--violet));
}

.dept__panel-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 66ch;
}

.pipeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.pipeline__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--fg-3);
}

.pipeline__name {
  font-size: 16px;
  font-weight: 600;
}

.pipeline__dept {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--fg-3);
}

.pipeline__dept::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dept-accent, var(--violet));
}

.pipeline__optional {
  border-style: dashed;
  background: transparent;
}

.pipeline__optional .pipeline__index,
.pipeline__optional .pipeline__name {
  color: var(--fg-3);
}

.pipeline__optional::after {
  content: "routed when needed";
  align-self: flex-start;
  margin-top: 6px;
  padding: 3px 8px;
  border: 1px dashed var(--line-3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.lifecycle {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.6vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lifecycle::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, #8e60ce00, #8e60ce66 10%, #8e60ce66 90%, #8e60ce00);
}

.phase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 52px;
}

.phase__num {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #8e60ce66;
  border-radius: 50%;
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--violet-bright);
}

.phase__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.phase__detail {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 56ch;
}

.phase__map {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--violet-soft);
}

.states {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.state {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
}

.state__role {
  font-size: 11px;
  color: var(--fg-3);
}

.cap-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
}

.cap {
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}

.cap__name {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.cap__detail {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 60ch;
}

.gate {
  border-top: 2px solid var(--violet-deep);
}

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

.gate__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gate__item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 14.5px;
  color: var(--fg-2);
}

.gate__item::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: .5em;
  border-radius: 50%;
  background: var(--violet);
}

.gate__item--ok::before {
  background: var(--ok);
}

.gate__item--warn::before {
  background: var(--warn);
}

.gate__item--danger::before {
  background: var(--danger);
}

.notice {
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--violet);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--fg-2);
  font-size: 14.5px;
}

.notice--warn {
  border-left-color: var(--warn);
  background: #d3bd8c1a;
}

.notice--info {
  border-left-color: var(--violet);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line-2);
}

.tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .18s var(--ease);
}

.tab:hover {
  color: var(--fg-2);
}

.tab[aria-selected="true"] {
  color: var(--violet-soft);
  box-shadow: inset 0 -2px 0 var(--violet);
}

.tabpanel[hidden] {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding-block: clamp(48px, 5vw, 72px) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.footer-col {
  min-width: 0;
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col--brand .muted {
  max-width: 46ch;
  font-size: 14px;
}

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--fg-2);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-3);
}

.footer-bottom p {
  max-width: 78ch;
}

.footer-bottom__note {
  color: var(--fg-3);
  white-space: nowrap;
}

.reveal {
  opacity: 1;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .56s var(--ease), transform .56s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.ambient {
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(38% 30% at 14% 10%, #8e60ce14, transparent 70%), radial-gradient(34% 28% at 86% 84%, #3b256026, transparent 72%);
  animation: ambient-drift 48s ease-in-out infinite alternate;
}

@keyframes ambient-drift {
  from {
    transform: translate3d(-1.4%, -1%, 0) scale(1);
    opacity: .85;
  }
  to {
    transform: translate3d(1.4%, 1.4%, 0) scale(1.06);
    opacity: 1;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .hero__visual .figure__frame {
    animation: hero-rise .8s var(--ease) both;
  }
}

@media (min-width:2200px) {
  :root {
    --content: 1440px;
    --content-wide: 1680px;
    --section-y: clamp(96px, 6vw, 160px);
    --t-display: clamp(60px, 4.6vw, 108px);
    --t-h2: clamp(36px, 2.6vw, 56px);
    --t-h3: clamp(22px, 1.4vw, 28px);
  }
  body {
    font-size: 17px;
  }
}

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

@media (min-width:1180px) {
  .hero__inner {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(32px, 4vw, 64px);
  }
  .cap-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width:1000px) {
  .lifecycle {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(16px, 1.6vw, 28px);
  }
  .phase__detail {
    text-wrap: pretty;
  }
  .lifecycle::before {
    left: 2%;
    right: 2%;
    top: 14px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, #8e60ce00, #8e60ce66 8%, #8e60ce66 92%, #8e60ce00);
  }
  .phase {
    padding-left: 0;
    padding-top: 46px;
  }
  .phase__num {
    top: 0;
  }
}

@media (min-width:900px) {
  .dept {
    grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
    gap: 28px;
  }
}

@media (min-width:760px) {
  .pipeline {
    flex-direction: row;
    align-items: stretch;
    gap: 22px;
  }
  .pipeline__stage {
    flex: 1 1 0;
  }
  .pipeline__stage + .pipeline__stage::before {
    content: "";
    position: absolute;
    top: 24px;
    left: -22px;
    width: 22px;
    height: 1px;
    background: var(--line-3);
  }
}

@media (max-width:900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px var(--gutter) 20px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line-2);
    box-shadow: var(--shadow-lg);
  }
  html.js .site-nav {
    display: none;
  }
  html.js .site-nav.is-open {
    display: flex;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__link {
    width: 100%;
    min-height: 48px;
    padding: 0 8px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav__link[aria-current="page"]::after {
    display: none;
  }
  .version-badge {
    align-self: flex-start;
    margin-top: 12px;
  }
}

@media (max-width:900px) {
  .dept__rail {
    display: block;
    overflow: visible;
  }
  .dept__item {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .dept__item:last-child {
    border-bottom: 0;
  }
}

@media (max-width:700px) {
  .grid--2,
  .grid--3,
  .cap-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kv__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .kv__key {
    min-width: 0;
    padding-top: 0;
  }
  .panel__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .footer-bottom__note {
    white-space: normal;
  }
}

@media (max-width:560px) {
  :root {
    --t-display: clamp(38px, 10vw, 54px);
    --t-h2: clamp(24px, 7.4vw, 32px);
    --t-h3: 19px;
    --section-y: clamp(56px, 12vw, 80px);
  }
  .site-header__inner {
    min-height: 64px;
  }
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-block: clamp(44px, 11vw, 64px) clamp(40px, 9vw, 56px);
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .btn {
    min-height: 46px;
    padding: 0 18px;
  }
  .tile__value {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
  .ambient {
    animation: none;
  }
}

@media print {
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
  html,
  body {
    background: #fff;
    color: #000;
  }
  .site-header,
  .site-footer,
  .ambient,
  .nav-toggle,
  .skip-link,
  .hero__glow {
    display: none;
  }
  .panel,
  .tile,
  .figure__frame {
    border-color: #000;
    background: #fff;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}
