* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-canvas);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

code,
pre {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "liga" 0, "calt" 0;
}

::selection {
  color: var(--color-paper);
  background: var(--color-cobalt);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: var(--color-paper);
  background: var(--color-cobalt);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  min-height: 64px;
  grid-template-columns: 232px 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-canvas);
}

.topbar__brand {
  display: flex;
  width: 232px;
  height: 64px;
  align-items: center;
  padding: 0 24px;
  border-right: 1px solid var(--color-border);
}

.topbar__brand img {
  width: 116px;
  height: auto;
}

.topbar__meta {
  padding-inline: 24px;
  color: var(--color-metadata);
}

.topbar__actions {
  display: flex;
  min-height: 64px;
  align-items: stretch;
}

.utility-control,
.menu-control {
  min-width: 112px;
  padding: 0 20px;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--color-border);
  border-radius: 0;
  cursor: pointer;
}

.utility-control:hover,
.menu-control:hover {
  color: var(--color-cobalt);
  background: var(--color-surface-secondary);
}

.menu-control {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.topbar .button {
  min-height: 64px;
  border-radius: 0;
}

.button--primary {
  color: var(--color-paper);
  background: var(--color-cobalt);
  border-color: var(--color-cobalt);
}

.button--primary:hover {
  color: var(--color-cobalt);
  background: var(--color-canvas);
}

.button--secondary {
  color: var(--color-text);
  background: transparent;
  border-color: var(--color-divider);
}

.button--secondary:hover {
  color: var(--color-cobalt);
  border-color: var(--color-cobalt);
}

.button--light {
  color: var(--color-cobalt);
  background: var(--color-paper);
  border-color: var(--color-paper);
}

.button--light:hover {
  color: var(--color-paper);
  background: transparent;
}

.guide-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}

.guide-rail {
  position: relative;
  border-right: 1px solid var(--color-border);
}

.guide-rail__inner {
  position: sticky;
  top: 64px;
  display: flex;
  height: calc(100vh - 64px);
  flex-direction: column;
  overflow-y: auto;
  padding: 32px 20px 24px;
}

.rail-label {
  margin: 0 8px 20px;
  color: var(--color-metadata);
}

.chapter-nav {
  display: grid;
  gap: 2px;
}

.chapter-nav__link {
  display: grid;
  min-height: 36px;
  grid-template-columns: 32px 1fr;
  align-items: center;
  padding: 0 8px;
  border-radius: var(--radius-control);
  font-size: 14px;
  text-decoration: none;
}

.chapter-nav__link span {
  color: var(--color-metadata);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.chapter-nav__link:hover {
  color: var(--color-cobalt);
  background: var(--color-surface-secondary);
}

.chapter-nav__link.is-active {
  color: var(--color-cobalt);
  background: var(--color-surface-secondary);
  box-shadow: inset 2px 0 0 var(--color-cobalt);
}

.rail-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-metadata);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--color-success);
  border-radius: 50%;
}

main {
  min-width: 0;
}

.cover {
  display: grid;
  min-height: calc(100vh - 64px);
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  border-bottom: 1px solid var(--color-border);
}

.cover__copy {
  display: flex;
  min-height: 680px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(40px, 7vw, 112px);
}

.eyebrow,
.chapter__number {
  margin: 0 0 24px;
  color: var(--color-cobalt);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cover h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(52px, 7.2vw, 112px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.cover__description {
  max-width: 720px;
  margin: 44px 0 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
}

.cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.agent-starters {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-divider);
}

.agent-starters__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.agent-button i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--color-paper);
  background: var(--color-carbon);
  border-radius: var(--radius-control);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.agent-button:hover {
  color: var(--color-paper);
  background: var(--color-cobalt);
  border-color: var(--color-cobalt);
}

.agent-button:hover i {
  color: var(--color-cobalt);
  background: var(--color-paper);
}

.agent-starters > p {
  max-width: 720px;
  margin: 0;
  color: var(--color-metadata);
  font-size: 13px;
}

.agent-starters--dark {
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--color-slate);
}

.agent-starters--dark .agent-button {
  color: var(--color-paper);
  border-color: var(--color-slate);
}

.agent-starters--dark .agent-button i {
  color: var(--color-carbon);
  background: var(--color-paper);
}

.agent-starters--dark > p {
  color: var(--color-stone);
}

.cover__mark {
  position: relative;
  display: grid;
  min-height: 680px;
  place-items: center;
  overflow: hidden;
  color: var(--color-paper);
  background: var(--color-cobalt);
}

.cover__mark::before,
.cover__mark::after {
  position: absolute;
  content: "";
  background: var(--color-paper);
}

.cover__mark::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.cover__mark::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.cover__mark img {
  position: relative;
  z-index: 1;
  width: 62%;
}

.cover__mark-label {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 20px;
}

.overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--color-border);
}

.overview a {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-right: 1px solid var(--color-border);
  text-decoration: none;
}

.overview a:last-child {
  border-right: 0;
}

.overview a:hover {
  color: var(--color-cobalt);
  background: var(--color-surface-secondary);
}

.overview span {
  color: var(--color-metadata);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

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

.chapter {
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(88px, 10vw, 160px) clamp(28px, 7vw, 112px);
  border-bottom: 1px solid var(--color-border);
}

.chapter__header {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(360px, 0.74fr) minmax(300px, 0.6fr);
  gap: 24px;
  align-items: start;
  margin-bottom: clamp(52px, 7vw, 96px);
}

.chapter__header h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.chapter__header > p:last-child {
  max-width: 520px;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.message-stack {
  border-top: 1px solid var(--color-divider);
}

.message-stack__row {
  display: grid;
  min-height: 136px;
  grid-template-columns: minmax(160px, 0.36fr) 1fr;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--color-divider);
}

.message-stack__row span {
  color: var(--color-metadata);
}

.message-stack__row strong {
  max-width: 850px;
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.principles-grid,
.voice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
  border-top: 1px solid var(--color-divider);
  border-left: 1px solid var(--color-divider);
}

.principles-grid article,
.voice-grid article {
  min-height: 260px;
  padding: 24px;
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.principles-grid article > span,
.voice-grid article > span {
  color: var(--color-cobalt);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.principles-grid h3,
.voice-grid h3 {
  margin: 72px 0 12px;
  font-size: 22px;
  font-weight: 600;
}

.principles-grid p,
.voice-grid p {
  margin: 0;
  line-height: 1.5;
}

.strategy-note {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) 1fr;
  margin-top: 72px;
  color: var(--color-paper);
  background: var(--color-carbon);
}

.strategy-note__symbol {
  display: grid;
  min-height: 320px;
  place-items: center;
  background: var(--color-cobalt);
}

.strategy-note__symbol img {
  width: 46%;
}

.strategy-note > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 72px);
}

.strategy-note h3 {
  margin: 16px 0;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.strategy-note p {
  max-width: 640px;
}

.logo-stage {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 48px;
  border: 1px solid var(--color-divider);
}

.logo-stage img {
  width: min(62%, 620px);
}

.logo-stage > span {
  position: absolute;
  right: 20px;
  bottom: 18px;
}

.logo-stage--paper {
  color: var(--color-ink);
  background: var(--color-paper);
}

.logo-stage--carbon {
  color: var(--color-paper);
  background: var(--color-carbon);
}

.logo-stage--cobalt {
  color: var(--color-paper);
  background: var(--color-cobalt);
}

.logo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.logo-pair .logo-stage {
  border-top: 0;
}

.logo-pair .logo-stage + .logo-stage {
  border-left: 0;
}

.asset-row {
  display: grid;
  grid-template-columns: 184px 1fr auto;
  gap: 32px;
  align-items: center;
  margin-top: 64px;
  padding: 24px;
  border: 1px solid var(--color-divider);
}

.asset-row__visual {
  padding: 20px;
  background: var(--color-surface-secondary);
}

.asset-row h3 {
  margin: 4px 0 8px;
  font-size: 28px;
  font-weight: 600;
}

.asset-row p {
  max-width: 660px;
  margin: 0;
}

.asset-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
}

.asset-heading h3 {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 600;
}

.asset-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--color-divider);
  border-left: 1px solid var(--color-divider);
}

.asset-card {
  display: grid;
  grid-template-rows: 220px auto auto;
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.asset-card--default {
  box-shadow: inset 0 2px 0 var(--color-cobalt);
}

.asset-card__preview {
  display: grid;
  place-items: center;
  padding: 32px;
}

.asset-card__preview img {
  width: min(82%, 260px);
  max-height: 132px;
}

.asset-card__preview--light { background: var(--color-paper); }
.asset-card__preview--dark { background: var(--color-carbon); }
.asset-card__preview--symbol img { width: 84px; }
.asset-card__preview--tile { padding: 24px; background: var(--color-surface-secondary); }
.asset-card__preview--tile img { width: 132px; max-height: none; }

.asset-card__meta {
  display: grid;
  gap: 4px;
  padding: 20px;
  border-top: 1px solid var(--color-divider);
}

.asset-card__meta strong {
  font-size: 16px;
  font-weight: 600;
}

.asset-card__meta span {
  color: var(--color-metadata);
  font-size: 13px;
}

.asset-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--color-divider);
}

.asset-card__actions button,
.asset-card__actions a {
  display: grid;
  min-height: 40px;
  place-items: center;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--color-divider);
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.asset-card__actions a {
  border-right: 0;
}

.asset-card__actions button:hover,
.asset-card__actions a:hover {
  color: var(--color-paper);
  background: var(--color-cobalt);
}

.do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 64px;
  border-top: 1px solid var(--color-divider);
  border-left: 1px solid var(--color-divider);
}

.do-dont > div {
  padding: 28px;
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.do-dont ul {
  margin: 24px 0 0;
  padding-left: 20px;
}

.do-dont li + li {
  margin-top: 10px;
}

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

.colour-card {
  position: relative;
  min-width: 0;
}

.swatch {
  display: flex;
  width: 100%;
  aspect-ratio: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 0;
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  border-radius: 0;
  text-align: left;
  cursor: pointer;
}

.swatch small,
.semantic small {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.colour-card:hover .swatch small,
.colour-card:focus-within .swatch small,
.colour-card.is-open .swatch small,
.colour-card:hover .semantic small,
.colour-card:focus-within .semantic small,
.colour-card.is-open .semantic small {
  opacity: 1;
  transform: translateY(0);
}

.swatch span {
  font-size: 19px;
  font-weight: 600;
}

.swatch code {
  font-size: 13px;
  font-weight: 600;
}

.swatch--ink { color: var(--color-paper); background: var(--color-ink); }
.swatch--carbon { color: var(--color-paper); background: var(--color-carbon); }
.swatch--paper { color: var(--color-ink); background: var(--color-paper); border-top: 1px solid var(--color-divider); }
.swatch--linen { color: var(--color-ink); background: var(--color-linen); border-top: 1px solid var(--color-divider); }
.swatch--ash { color: var(--color-ink); background: var(--color-ash); }
.swatch--stone { color: var(--color-ink); background: var(--color-stone); }
.swatch--slate { color: var(--color-paper); background: var(--color-slate); }
.swatch--cobalt { color: var(--color-paper); background: var(--color-cobalt); }

.semantic-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--color-divider);
  border-left: 1px solid var(--color-divider);
}

.colour-card--semantic {
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.semantic {
  display: grid;
  width: 100%;
  min-height: 112px;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
}

.semantic i {
  width: 16px;
  height: 64px;
}

.semantic span {
  display: grid;
  gap: 3px;
}

.semantic strong { font-weight: 600; }
.semantic code { color: var(--color-metadata); font-size: 12px; font-weight: 600; }
.semantic--success i { background: var(--color-success); }
.semantic--warning i { background: var(--color-warning); }
.semantic--error i { background: var(--color-error); }

.colour-menu {
  position: absolute;
  z-index: 8;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  background: var(--color-carbon);
  border: 1px solid var(--color-slate);
  border-radius: var(--radius-overlay);
  visibility: hidden;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0ms linear 140ms;
}

.colour-card:hover .colour-menu,
.colour-card:focus-within .colour-menu,
.colour-card.is-open .colour-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}

.colour-menu button {
  min-height: 34px;
  padding: 0 8px;
  color: var(--color-paper);
  background: transparent;
  border: 0;
  border-radius: var(--radius-control);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.colour-menu button:hover,
.colour-menu button:focus-visible {
  color: var(--color-paper);
  background: var(--color-cobalt);
  outline: none;
}

.copy-hint {
  margin: 16px 0 0;
  color: var(--color-metadata);
}

.type-specimen {
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid var(--color-divider);
}

.type-specimen + .type-specimen {
  border-top: 0;
}

.type-specimen__meta {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  margin-bottom: 72px;
}

.type-specimen__meta span,
.type-specimen__meta code {
  color: var(--color-metadata);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.type-specimen__meta strong {
  font-size: 18px;
  font-weight: 600;
}

.type-specimen__display {
  font-size: clamp(42px, 7vw, 100px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.type-specimen__alphabet {
  margin-top: 48px;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.type-specimen--mono {
  background: var(--color-surface-secondary);
}

.type-specimen--mono .type-specimen__meta,
.mono-compare,
.mono-compare p,
.mono-compare span {
  font-family: var(--font-mono);
}

.mono-compare {
  display: grid;
  gap: 20px;
}

.mono-compare p {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  margin: 0;
  font-size: clamp(15px, 1.6vw, 21px);
  font-weight: 450;
}

.mono-compare p:last-child {
  font-weight: 600;
}

.mono-compare span {
  color: var(--color-cobalt);
  font-size: 12px;
  font-weight: 600;
}

.type-scale {
  margin-top: 64px;
  border-top: 1px solid var(--color-divider);
}

.type-scale > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-divider);
}

.type-scale p {
  margin: 0;
}

.scale-xl { font-size: clamp(54px, 8vw, 96px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.96; }
.scale-h1 { font-size: clamp(36px, 5vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.scale-body { max-width: 680px; font-size: 20px; font-weight: 500; line-height: 1.5; }

.grid-demo {
  position: relative;
  display: grid;
  min-height: 420px;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  overflow: hidden;
  border: 1px solid var(--color-divider);
  background: var(--color-surface-secondary);
}

.grid-demo__rail {
  background: var(--color-cobalt);
}

.grid-demo__label {
  position: absolute;
  right: 24px;
  bottom: 20px;
  padding: 6px 8px;
  color: var(--color-paper);
  background: var(--color-carbon);
}

.spacing-scale {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  margin-top: 64px;
  border-bottom: 1px solid var(--color-divider);
}

.spacing-scale > div {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.spacing-scale span {
  min-width: 4px;
  min-height: 4px;
  background: var(--color-cobalt);
}

.spacing-scale .measure-04 { width: 4px; height: 4px; }
.spacing-scale .measure-08 { width: 8px; height: 8px; }
.spacing-scale .measure-16 { width: 16px; height: 16px; }
.spacing-scale .measure-24 { width: 24px; height: 24px; }
.spacing-scale .measure-32 { width: 32px; height: 32px; }
.spacing-scale .measure-48 { width: 48px; height: 48px; }
.spacing-scale .measure-64 { width: 64px; height: 64px; }

.spacing-scale code {
  padding-bottom: 14px;
  color: var(--color-metadata);
  font-size: 12px;
  font-weight: 600;
}

.geometry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--color-divider);
  border-left: 1px solid var(--color-divider);
}

.geometry-grid > div {
  display: grid;
  min-height: 260px;
  align-content: end;
  padding: 24px;
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.geometry-grid i {
  display: block;
  width: 84px;
  height: 84px;
  margin-bottom: 56px;
  background: var(--color-cobalt);
}

.geometry-grid strong { font-family: var(--font-mono); font-size: 18px; font-weight: 600; }
.geometry-grid span { margin-top: 4px; color: var(--color-metadata); }
.radius-0 { border-radius: 0; }
.radius-2 { border-radius: 2px; }
.radius-4 { border-radius: 4px; }
.radius-8 { border-radius: 8px; }

.component-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--color-divider);
}

.component-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  font-weight: 600;
}

.component-summary p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--color-metadata);
}

.component-summary__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 20px;
}

.component-browser {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  margin-top: 24px;
  border: 1px solid var(--color-divider);
}

.component-browser__list {
  align-self: stretch;
  border-right: 1px solid var(--color-divider);
}

.component-browser__list button {
  display: grid;
  width: 100%;
  min-height: 42px;
  grid-template-columns: 28px 1fr;
  align-items: center;
  padding: 0 12px;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  cursor: pointer;
}

.component-browser__list button span {
  color: var(--color-metadata);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.component-browser__list button:hover {
  color: var(--color-cobalt);
  background: var(--color-surface-secondary);
}

.component-browser__list button[aria-selected="true"] {
  color: var(--color-cobalt);
  background: var(--color-surface-secondary);
  box-shadow: inset 2px 0 0 var(--color-cobalt);
}

.component-browser__list button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--color-cobalt);
  outline-offset: -3px;
}

.component-browser__panel {
  min-width: 0;
}

.component-browser__head {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--color-divider);
}

.component-browser__head h3 {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 600;
}

.component-browser__preview {
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: auto;
  padding: 40px;
  background: var(--color-surface-secondary);
  border-bottom: 1px solid var(--color-divider);
}

.component-browser__preview > * {
  max-width: 100%;
}

.component-browser__preview .neutral-page-header {
  width: 100%;
}

.component-browser__rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--color-divider);
}

.component-browser__rules > div {
  min-height: 180px;
  padding: 20px;
  border-right: 1px solid var(--color-divider);
}

.component-browser__rules > div:last-child {
  border-right: 0;
}

.component-browser__rules p {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.component-browser__code summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.component-browser__code summary::-webkit-details-marker {
  display: none;
}

.component-browser__code summary span {
  color: var(--color-metadata);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.component-browser__code pre {
  max-height: 320px;
  margin: 0;
  overflow: auto;
  padding: 24px;
  color: var(--color-paper);
  background: var(--color-carbon);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.component-browser__error {
  padding: 24px;
  color: var(--color-error);
  font-weight: 600;
}

.icon-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-divider);
  border-left: 1px solid var(--color-divider);
}

.icon-board > div {
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 24px;
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.icon-board img {
  width: 32px;
  height: 32px;
  filter: var(--icon-filter, none);
}

[data-theme="dark"] .icon-board img,
[data-theme="dark"] .motion-card img {
  filter: invert(1);
}

.icon-board code {
  align-self: end;
  color: var(--color-metadata);
  font-size: 11px;
  font-weight: 600;
}

.motion-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--color-divider);
  border-left: 1px solid var(--color-divider);
}

.motion-card {
  display: grid;
  min-height: 152px;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  padding: 24px;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  border-radius: 0;
  text-align: left;
  cursor: pointer;
}

.motion-card:hover {
  color: var(--color-cobalt);
  background: var(--color-surface-secondary);
}

.motion-card > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.motion-card strong { font-size: 16px; font-weight: 600; }
.motion-card code { color: var(--color-metadata); font-size: 11px; font-weight: 600; }
.motion-card em { grid-column: 2; color: var(--color-cobalt); font-size: 12px; font-style: normal; font-weight: 600; }

.section-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.text-link,
.text-button,
.implementation-grid a {
  color: var(--color-cobalt);
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 4px;
}

.text-button {
  justify-self: start;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}

.chart-card {
  padding: 28px;
  border: 1px solid var(--color-divider);
}

.chart-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.chart-card__head h3 {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 600;
}

.chart-card__metric {
  display: grid;
  justify-items: end;
}

.chart-card__metric strong {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
}

.chart-card__metric span {
  color: var(--color-metadata);
  font-size: 12px;
}

.range-control {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.range-control button {
  min-width: 44px;
  min-height: 32px;
  padding: 0 10px;
  color: var(--color-metadata);
  background: transparent;
  border: 1px solid var(--color-border);
  border-right: 0;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.range-control button:last-child {
  border-right: 1px solid var(--color-border);
}

.range-control button:hover,
.range-control button.is-selected {
  color: var(--color-paper);
  background: var(--color-cobalt);
  border-color: var(--color-cobalt);
}

.chart {
  position: relative;
  height: 340px;
  margin-top: 24px;
  outline: none;
}

.chart:focus-visible {
  outline: 2px solid var(--color-cobalt);
  outline-offset: 2px;
}

.chart svg {
  position: absolute;
  inset: 0 0 28px 0;
  width: 100%;
  height: calc(100% - 28px);
  overflow: visible;
}

.chart__grid line {
  stroke: var(--color-border);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart__threshold {
  stroke: var(--color-warning);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.chart__line {
  fill: none;
  stroke: var(--color-cobalt);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart__inspect {
  stroke: var(--color-text);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  visibility: hidden;
}

.chart__dot {
  fill: var(--color-canvas);
  stroke: var(--color-cobalt);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  visibility: hidden;
}

.chart.is-inspecting .chart__inspect,
.chart.is-inspecting .chart__dot {
  visibility: visible;
}

.chart__labels {
  position: absolute;
  right: 0;
  bottom: 28px;
  display: flex;
  height: calc(100% - 52px);
  flex-direction: column;
  justify-content: space-between;
  color: var(--color-metadata);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  pointer-events: none;
}

.chart__tooltip {
  position: absolute;
  top: 20px;
  left: 20px;
  min-width: 144px;
  padding: 10px 12px;
  color: var(--color-paper);
  background: var(--color-carbon);
  border-radius: var(--radius-overlay);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.chart-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  color: var(--color-metadata);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.chart-card__footer span:last-child {
  margin-left: auto;
}

.legend-line,
.legend-threshold {
  display: inline-block;
  width: 20px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--color-cobalt);
}

.legend-threshold {
  height: 1px;
  background: var(--color-warning);
}

.product-frame {
  border: 1px solid var(--color-divider);
  background: var(--color-surface-primary);
}

.product-frame__bar {
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--color-border);
}

.product-brand img {
  width: 92px;
}

.product-frame__layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 260px;
  min-height: 600px;
}

.product-nav {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 16px 12px;
  border-right: 1px solid var(--color-border);
}

.product-nav span {
  min-height: 36px;
  padding: 8px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 600;
}

.product-nav .is-current {
  color: var(--color-cobalt);
  background: var(--color-surface-secondary);
  box-shadow: inset 2px 0 0 var(--color-cobalt);
}

.incident {
  min-width: 0;
  padding: 28px;
}

.incident__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.incident__title h3 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 600;
}

.state-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-tag);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.state-chip i {
  width: 6px;
  height: 6px;
  background: var(--color-warning);
  border-radius: 50%;
}

.incident__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
  border-top: 1px solid var(--color-divider);
  border-left: 1px solid var(--color-divider);
}

.incident__stats > div {
  display: grid;
  min-height: 104px;
  align-content: space-between;
  padding: 16px;
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.incident__stats span { color: var(--color-metadata); font-size: 12px; }
.incident__stats strong { font-family: var(--font-mono); font-size: 22px; font-weight: 500; }

.evidence-sequence {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-divider);
}

.evidence-sequence li {
  display: grid;
  min-height: 64px;
  grid-template-columns: 112px 1fr auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--color-divider);
}

.evidence-sequence span { color: var(--color-metadata); font-size: 12px; font-weight: 600; }
.evidence-sequence strong { font-size: 13px; font-weight: 600; }
.evidence-sequence code { color: var(--color-metadata); font-size: 11px; font-weight: 600; }

.product-inspector {
  padding: 24px;
  border-left: 1px solid var(--color-border);
  background: var(--color-surface-secondary);
}

.product-inspector h4 {
  margin: 12px 0 28px;
  font-size: 18px;
  font-weight: 600;
}

.product-inspector dl {
  margin: 0 0 32px;
}

.product-inspector dl div {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-divider);
  font-size: 12px;
}

.product-inspector dt { color: var(--color-metadata); }
.product-inspector dd { margin: 0; font-family: var(--font-mono); font-weight: 600; }

.copy-comparison {
  margin-top: 64px;
  border: 1px solid var(--color-divider);
}

.copy-comparison__label,
.copy-comparison__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.copy-comparison__label span,
.copy-comparison__row p {
  padding: 20px 24px;
}

.copy-comparison__label span:first-child,
.copy-comparison__row p:first-child {
  border-right: 1px solid var(--color-divider);
}

.copy-comparison__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.copy-comparison__row {
  border-top: 1px solid var(--color-divider);
}

.copy-comparison__row p {
  min-height: 96px;
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.copy-comparison__row p:last-child {
  color: var(--color-metadata);
  text-decoration: line-through;
  text-decoration-color: var(--color-error);
}

.good-mark { color: var(--color-success); }
.bad-mark { color: var(--color-error); }

.claim-band {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  margin-top: 64px;
  padding: 36px;
  color: var(--color-paper);
  background: var(--color-carbon);
}

.claim-band strong {
  max-width: 760px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.presentation-resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  border-top: 1px solid var(--color-border);
}

.presentation-resources article {
  min-width: 0;
  padding-top: 24px;
}

.presentation-resources h3 {
  margin: 24px 0 16px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.presentation-resources p {
  max-width: 68ch;
  margin: 0 0 16px;
}

.presentation-resources__actions,
.presentation-kit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
}

.presentation-resources .presentation-resources__metadata {
  margin-top: 16px;
  color: var(--color-metadata);
  font-size: 14px;
}

.presentation-kit-actions {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.presentation-kit-actions p {
  flex-basis: 100%;
  max-width: 68ch;
  margin: 0;
}

@media (max-width: 767px) {
  .presentation-resources {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.chapter--implementation {
  max-width: none;
  color: var(--color-paper);
  background: var(--color-carbon);
}

.chapter--implementation .chapter__header,
.chapter--implementation > * {
  max-width: 1216px;
  margin-inline: auto;
}

.chapter--implementation .chapter__header {
  margin-bottom: clamp(52px, 7vw, 96px);
}

.chapter--implementation .chapter__header > p:last-child,
.chapter--implementation .type-technical-label {
  color: var(--color-stone);
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  padding: 36px;
  color: var(--color-paper);
  background: var(--color-cobalt);
}

.download-panel h3 {
  margin: 6px 0 8px;
  font-size: 32px;
  font-weight: 600;
}

.download-panel p {
  max-width: 560px;
  margin: 0;
}

.download-panel__meta {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 20px;
}

.download-panel__meta span { color: var(--color-stone); }
.download-panel__meta strong { color: var(--color-paper); font-weight: 600; }

.implementation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 48px;
  border-top: 1px solid var(--color-slate);
  border-left: 1px solid var(--color-slate);
}

.implementation-grid article {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border-right: 1px solid var(--color-slate);
  border-bottom: 1px solid var(--color-slate);
}

.implementation-grid h3 {
  margin: 48px 0 8px;
  font-size: 24px;
  font-weight: 600;
}

.implementation-grid p {
  max-width: 520px;
  margin: 0 0 24px;
  color: var(--color-stone);
}

.implementation-grid a,
.chapter--implementation .text-button {
  margin-top: auto;
  color: var(--color-paper);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
}

.inline-actions .text-button,
.inline-actions a {
  margin-top: 0;
}

.install-details {
  margin-top: 48px;
  border: 1px solid var(--color-slate);
}

.install-details summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.install-details summary::-webkit-details-marker { display: none; }
.install-details summary span { color: var(--color-stone); font-family: var(--font-mono); font-size: 11px; }
.install-details[open] summary { border-bottom: 1px solid var(--color-slate); }
.install-details pre { margin: 0; padding: 24px; overflow-x: auto; color: var(--color-paper); background: var(--color-ink); font-size: 13px; line-height: 1.65; }
.install-details .button { margin: 0 24px 24px; color: var(--color-paper); border-color: var(--color-slate); }

.site-footer {
  display: flex;
  min-height: 280px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 48px clamp(28px, 7vw, 112px);
  color: var(--color-paper);
  background: var(--color-cobalt);
}

.site-footer img {
  width: 180px;
}

.site-footer p {
  margin: 20px 0 0;
  font-size: 20px;
}

.site-footer__meta {
  display: flex;
  gap: 28px;
}

.site-footer__meta a {
  font-weight: 600;
}

.theme-art--dark {
  display: none;
}

[data-theme="dark"] .theme-art--light {
  display: none;
}

[data-theme="dark"] .theme-art--dark {
  display: block;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  padding: 10px 14px;
  color: var(--color-paper);
  background: var(--color-carbon);
  border-radius: var(--radius-control);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  visibility: hidden;
  transform: translateY(8px);
  transition: transform 160ms ease, visibility 0ms linear 160ms;
}

.toast.is-visible {
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0ms;
}

.reveal {
  transform: translateY(16px);
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  transform: translateY(0);
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.error-page main {
  max-width: 680px;
  text-align: center;
}

.error-page img {
  width: 140px;
  margin: 0 auto 72px;
}

.error-page h1 {
  margin: 16px 0 36px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 200px 1fr auto;
  }

  .topbar__brand {
    width: 200px;
  }

  .guide-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .chapter__header {
    grid-template-columns: 1fr 2fr;
  }

  .chapter__header > p:last-child {
    grid-column: 2;
  }

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

  .cover__mark {
    min-height: 420px;
  }

  .principles-grid,
  .voice-grid,
  .colour-grid,
  .icon-board {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .component-browser {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .component-browser__rules {
    grid-template-columns: 1fr;
  }

  .component-browser__rules > div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--color-divider);
  }

  .component-browser__rules > div:last-child {
    border-bottom: 0;
  }

  .product-frame__layout {
    grid-template-columns: 144px minmax(0, 1fr);
  }

  .product-inspector {
    grid-column: 2;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 57px;
  }

  .topbar {
    min-height: 56px;
    grid-template-columns: 1fr auto auto;
  }

  .topbar__brand {
    width: auto;
    height: 56px;
    padding: 0 16px;
    border-right: 0;
  }

  .topbar__brand img {
    width: 100px;
  }

  .topbar__meta,
  .topbar .button,
  .utility-control span {
    display: none;
  }

  .utility-control,
  .menu-control {
    display: block;
    min-width: 56px;
    min-height: 56px;
    padding: 0 12px;
  }

  .utility-control::before {
    content: "◐";
    font-size: 18px;
  }

  .guide-shell {
    display: block;
  }

  .guide-rail {
    position: fixed;
    z-index: 90;
    top: 56px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    border-right: 0;
    background: var(--color-canvas);
  }

  .guide-rail.is-open {
    display: block;
  }

  .guide-rail__inner {
    position: static;
    height: 100%;
    padding: 24px 16px;
  }

  .chapter-nav__link {
    min-height: 44px;
    font-size: 16px;
  }

  .cover {
    min-height: auto;
  }

  .cover__copy {
    min-height: calc(100svh - 56px);
    padding: 40px 20px;
  }

  .cover h1 {
    font-size: clamp(46px, 14vw, 72px);
  }

  .cover__description {
    margin-top: 32px;
    font-size: 18px;
  }

  .agent-starters__buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .agent-button {
    width: 100%;
  }

  .cover__mark {
    min-height: 100vw;
  }

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

  .overview a {
    min-height: 120px;
    padding: 18px;
    border-bottom: 1px solid var(--color-border);
  }

  .overview a:nth-child(2) {
    border-right: 0;
  }

  .chapter {
    padding: 88px 20px;
  }

  .chapter__header {
    display: block;
    margin-bottom: 52px;
  }

  .chapter__header h2 {
    font-size: 44px;
  }

  .chapter__header > p:last-child {
    margin-top: 24px;
    font-size: 17px;
  }

  .message-stack__row {
    display: block;
    padding: 24px 0;
  }

  .message-stack__row strong {
    display: block;
    margin-top: 16px;
    font-size: 27px;
  }

  .principles-grid,
  .voice-grid,
  .colour-grid,
  .icon-board,
  .geometry-grid,
  .implementation-grid,
  .logo-pair,
  .semantic-row,
  .motion-board,
    .do-dont {
    grid-template-columns: 1fr;
  }

  .asset-library {
    grid-template-columns: 1fr;
  }

  .asset-heading,
  .component-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .component-summary__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .component-browser {
    display: block;
  }

  .component-browser__list {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--color-divider);
  }

  .component-browser__list button {
    width: auto;
    min-width: max-content;
    grid-template-columns: 24px auto;
    border-right: 1px solid var(--color-border);
    border-bottom: 0;
  }

  .component-browser__head {
    align-items: stretch;
    flex-direction: column;
  }

  .component-browser__preview {
    min-height: 280px;
    place-items: start stretch;
    padding: 24px 16px;
  }

  .principles-grid article,
  .voice-grid article {
    min-height: 220px;
  }

  .strategy-note {
    grid-template-columns: 1fr;
  }

  .strategy-note__symbol {
    min-height: 100vw;
  }

  .logo-stage {
    min-height: 280px;
    padding: 28px;
  }

  .logo-stage img {
    width: 82%;
  }

  .logo-pair .logo-stage + .logo-stage {
    border-left: 1px solid var(--color-divider);
  }

  .asset-row {
    grid-template-columns: 96px 1fr;
    gap: 20px;
  }

  .asset-row .button {
    grid-column: 1 / -1;
  }

  .swatch {
    aspect-ratio: 1.6;
  }

  .type-specimen {
    padding: 28px 20px;
  }

  .type-specimen__meta {
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 48px;
  }

  .type-specimen__meta span {
    grid-column: 1 / -1;
  }

  .mono-compare p,
  .type-scale > div {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .grid-demo {
    min-height: 260px;
    gap: 8px;
  }

  .spacing-scale {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 32px;
  }

  .geometry-grid > div {
    min-height: 200px;
  }

  .icon-board > div {
    min-height: 160px;
  }

  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .chart-card {
    padding: 20px 14px;
  }

  .range-control {
    justify-content: stretch;
  }

  .range-control button {
    flex: 1;
    min-width: 0;
  }

  .chart {
    height: 280px;
  }

  .chart-card__footer span:last-child {
    width: 100%;
    margin-left: 0;
  }

  .product-frame__layout {
    grid-template-columns: 1fr;
  }

  .product-nav {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .product-nav span {
    white-space: nowrap;
  }

  .incident {
    padding: 20px;
  }

  .incident__title {
    display: grid;
  }

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

  .evidence-sequence li {
    grid-template-columns: 1fr auto;
    padding: 14px 0;
  }

  .evidence-sequence strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .product-inspector {
    grid-column: 1;
    border-left: 0;
  }

  .copy-comparison__label,
  .copy-comparison__row {
    grid-template-columns: 1fr;
  }

  .copy-comparison__label span:first-child,
  .copy-comparison__row p:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--color-divider);
  }

  .copy-comparison__label {
    display: none;
  }

  .copy-comparison__row p:first-child::before,
  .copy-comparison__row p:last-child::before {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
  }

  .copy-comparison__row p:first-child::before { content: "USE"; color: var(--color-success); }
  .copy-comparison__row p:last-child::before { content: "AVOID"; color: var(--color-error); }

  .claim-band {
    grid-template-columns: 1fr;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-panel__meta {
    grid-template-columns: 96px 1fr;
  }

  .site-footer {
    min-height: 360px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
  }

  .site-footer__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    transform: none;
  }
}
