:root {
  --paper: #f3f1e8;
  --ink: #18211d;
  --muted: #68716b;
  --line: #c9ccc2;
  --coral: #ff6247;
  --cobalt: #3155cc;
  --moss: #2d6b4d;
  --white: #fffefa;
  --surface: #fffefa;
  --surface-muted: #ecece5;
  --surface-soft: #eef0e9;
  --surface-raised: #ffffff;
  --hero-start: #f5f2e7;
  --hero-end: #e8e6dc;
  --hero-glow: rgba(91, 143, 249, 0.24);
  --hero-accent: #b7cdfd;
  --strong-bg: #18211d;
  --strong-fg: #fffefa;
  --strong-muted: #bdc6bf;
  --lab-bg: #0b1324;
  --lab-surface: #121f38;
  --lab-control: #101a2f;
  --lab-line: #3c5278;
  --lab-muted: #aebbd3;
  --lab-shadow: #050912;
  --lab-selected: #82a8ff;
  --lab-selected-fg: #08101f;
  --radius: 6px;
  font-family: 'Aptos', 'Trebuchet MS', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: light;
}

html[data-theme='dark'] {
  --paper: #0c1220;
  --ink: #edf3ff;
  --muted: #aab7cf;
  --line: #36445f;
  --surface: #121c30;
  --surface-muted: #192640;
  --surface-soft: #17243c;
  --surface-raised: #213150;
  --hero-start: #0c1220;
  --hero-end: #162746;
  --hero-glow: rgba(67, 115, 224, 0.36);
  --hero-accent: #5179dd;
  --strong-bg: #3155cc;
  --strong-fg: #f7f9ff;
  --strong-muted: #c4d0e8;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}
button,
input,
select {
  font: inherit;
}
a {
  color: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: -4rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--strong-fg);
  background: var(--strong-bg);
}
.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
}
.brand-mark {
  display: grid;
  width: 31px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--strong-fg);
  background: var(--strong-bg);
  font-family: Georgia, serif;
  font-size: 1.15rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.35rem);
  font-size: 0.85rem;
  font-weight: 700;
}
.site-nav a {
  text-decoration: none;
}
.site-nav a:not(.nav-cta):hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav-cta {
  padding: 0.72rem 1rem;
  color: var(--strong-fg);
  background: var(--strong-bg);
  border-radius: 3px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}
.theme-toggle:hover {
  background: var(--surface);
}
.theme-toggle-icon {
  width: 15px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transform: rotate(-25deg);
}
.theme-toggle[aria-pressed='true'] .theme-toggle-icon {
  color: #6f9cff;
  transform: rotate(25deg);
}
.menu-button {
  display: none;
  border: 0;
  background: transparent;
}

.hero {
  min-height: min(880px, 94vh);
  padding: 128px clamp(1.25rem, 5vw, 5.5rem) 80px;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(460px, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 30%, var(--hero-glow), transparent 28%),
    linear-gradient(145deg, var(--hero-start) 0 68%, var(--hero-end) 68%);
}
.hero-copy {
  max-width: 670px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  margin: 0 0 1.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  letter-spacing: 0;
}
h1,
h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
}
h1 {
  margin: 0;
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: 0.77;
}
.hero-lede {
  max-width: 620px;
  margin: 2.2rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.42;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.9rem 1.15rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
}
.button-primary {
  color: white;
  background: var(--coral);
}
.button-primary:hover {
  background: #e84831;
}
.text-link {
  font-weight: 800;
  text-underline-offset: 5px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  padding: 0;
  margin: 3rem 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}
.hero-proof li::before {
  content: '+';
  margin-right: 0.35rem;
  color: var(--coral);
}

.hero-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}
.stage-grid {
  position: absolute;
  inset: -15% -20%;
  opacity: 0.3;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: perspective(600px) rotateX(57deg) rotateZ(-12deg);
}
.stage-window {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  background: var(--surface);
  border: 1px solid var(--ink);
  box-shadow: 18px 20px 0 rgba(24, 33, 29, 0.13);
}
.window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font:
    700 0.68rem ui-monospace,
    monospace;
}
.window-bar i {
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--coral);
}
.window-bar i:nth-child(2) {
  background: #f5be43;
}
.window-bar i:nth-child(3) {
  background: #60b883;
}
.window-bar span {
  margin-left: 8px;
}
.window-body {
  min-height: 390px;
  display: grid;
  grid-template-columns: 108px 1fr 118px;
}
.stage-rail,
.stage-inspector {
  padding: 18px 12px;
  font-size: 0.67rem;
  background: var(--surface-muted);
}
.stage-rail {
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-right: 1px solid var(--line);
}
.stage-rail b,
.stage-inspector b {
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 0.59rem;
  letter-spacing: 0.1em;
}
.stage-rail span {
  padding: 7px;
}
.stage-rail .active {
  color: var(--strong-fg);
  background: var(--strong-bg);
}
.stage-canvas {
  padding: 22px;
  background-image: radial-gradient(#c6cbc5 1px, transparent 1px);
  background-size: 16px 16px;
}
.canvas-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  font:
    700 0.66rem ui-monospace,
    monospace;
}
.canvas-label small {
  color: var(--moss);
}
.mock-form {
  padding: 20px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(24, 33, 29, 0.1);
}
.mock-form label {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  font-size: 0.66rem;
  font-weight: 800;
}
.mock-input,
.mock-select {
  display: block;
  padding: 9px;
  border: 1px solid var(--line);
  font-weight: 500;
  color: var(--muted);
}
.mock-input.focus {
  outline: 2px solid var(--cobalt);
  outline-offset: 1px;
}
.mock-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.mock-button {
  padding: 9px 14px;
  color: white;
  background: var(--coral);
  font-size: 0.67rem;
  font-weight: 800;
}
.stage-inspector {
  border-left: 1px solid var(--line);
}
.stage-inspector dl {
  margin: 0;
}
.stage-inspector dt {
  color: var(--muted);
  margin-top: 12px;
}
.stage-inspector dd {
  margin: 3px 0 0;
  font-weight: 800;
}
.stage-inspector .pass {
  color: var(--moss);
}
.orbit {
  position: absolute;
  z-index: 3;
  padding: 0.55rem 0.75rem;
  font:
    800 0.68rem ui-monospace,
    monospace;
  color: var(--strong-fg);
  background: var(--strong-bg);
  box-shadow: 5px 5px 0 var(--hero-accent);
}
.orbit-a {
  top: 5%;
  right: 7%;
}
.orbit-b {
  bottom: 10%;
  left: -2%;
  background: var(--cobalt);
}
.orbit-c {
  right: -2%;
  bottom: 22%;
  color: #0b1730;
  background: var(--hero-accent);
  box-shadow: 5px 5px 0 var(--strong-bg);
}

.signal-strip {
  padding: 1.15rem clamp(1.25rem, 5vw, 5.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--strong-fg);
  background: var(--strong-bg);
  font-size: 0.78rem;
}
.signal-strip p {
  margin: 0;
}
.signal-strip div {
  display: flex;
  gap: 2rem;
  color: var(--strong-muted);
}
.section {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 5vw, 5.5rem);
}
.section-heading {
  max-width: 760px;
  margin-bottom: 4rem;
}
.section-heading h2,
.builders h2,
.closing h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.98;
}
.section-heading > p:last-child,
.builders-copy > p:last-child {
  max-width: 650px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}
.capability-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.capability {
  min-height: 310px;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.capability-wide {
  min-height: 390px;
}
.capability-dark {
  color: white;
  background: var(--cobalt);
}
.capability .index {
  font:
    700 0.7rem ui-monospace,
    monospace;
}
.capability h3 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}
.capability p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.6;
}
.capability-dark p {
  color: #dfe4ff;
}
.capability code {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem;
  background: var(--paper);
}
.anatomy-visual {
  max-width: 440px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  margin-top: 2.5rem;
  border: 1px solid var(--ink);
  font:
    700 0.68rem ui-monospace,
    monospace;
}
.anatomy-visual > * {
  padding: 0.8rem;
  border-right: 1px solid var(--ink);
  font-style: normal;
}
.anatomy-visual em {
  border: 0;
  color: #b42d22;
}
.framework-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.framework-list span {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
}
.adapter-line {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 2.6rem;
}
.adapter-line i {
  padding: 0.6rem;
  border: 1px solid var(--ink);
  font:
    700 0.68rem ui-monospace,
    monospace;
  font-style: normal;
}
.adapter-line b {
  width: 34px;
  height: 1px;
  background: var(--ink);
}

.lab-section {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 5vw, 5.5rem);
  color: white;
  background: var(--lab-bg);
}
.lab-heading > p:last-child {
  color: var(--lab-muted);
}
.lab {
  border: 1px solid var(--lab-line);
  background: var(--lab-surface);
  box-shadow: 16px 16px 0 var(--lab-shadow);
}
.lab-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--lab-line);
}
.component-tabs {
  display: flex;
  gap: 0.35rem;
}
.component-tabs button {
  padding: 0.6rem 0.8rem;
  border: 0;
  color: var(--lab-muted);
  background: transparent;
  cursor: pointer;
}
.component-tabs button[aria-selected='true'] {
  color: var(--lab-selected-fg);
  background: var(--lab-selected);
}
.theme-swatches {
  display: flex;
  gap: 0.55rem;
}
.swatch {
  width: 22px;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
}
.swatch.active {
  outline: 2px solid white;
  outline-offset: 2px;
}
.swatch-coral {
  background: var(--coral);
}
.swatch-cobalt {
  background: var(--cobalt);
}
.swatch-moss {
  background: #67a179;
}
.lab-workspace {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(280px, 1.25fr) minmax(
      250px,
      1fr
    );
}
.contract-panel,
.preview-panel,
.code-panel {
  min-width: 0;
  padding: 1.35rem;
}
.contract-panel,
.preview-panel {
  border-right: 1px solid var(--lab-line);
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  font:
    800 0.75rem ui-monospace,
    monospace;
}
.panel-title small {
  color: var(--lab-muted);
  font-weight: 500;
}
.contract-panel > label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--lab-muted);
  font-size: 0.76rem;
}
.contract-panel input,
.contract-panel select {
  min-width: 0;
  padding: 0.7rem;
  color: white;
  border: 1px solid var(--lab-line);
  border-radius: 2px;
  background: var(--lab-control);
}
.contract-panel fieldset {
  margin: 1.6rem 0;
  padding: 1rem;
  border: 1px solid var(--lab-line);
}
.contract-panel legend {
  padding: 0 0.5rem;
  color: var(--lab-muted);
  font-size: 0.7rem;
}
.contract-panel .check {
  display: flex;
  gap: 0.5rem;
  margin: 0.6rem 0;
  font-size: 0.76rem;
}
.a11y-score {
  padding-top: 1rem;
  border-top: 1px solid var(--lab-line);
  font-size: 0.72rem;
}
.a11y-score strong {
  display: block;
  margin-top: 0.6rem;
  color: #9ee6b5;
}
.a11y-score i {
  display: inline-block;
  width: 7px;
  aspect-ratio: 1;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: #9ee6b5;
}
.preview-panel {
  display: flex;
  flex-direction: column;
  background: var(--surface-soft);
  color: var(--ink);
}
.preview-panel[data-preview-theme='cobalt'] {
  --preview-accent: var(--cobalt);
}
.preview-panel[data-preview-theme='moss'] {
  --preview-accent: var(--moss);
}
.preview-panel[data-preview-theme='coral'] {
  --preview-accent: var(--coral);
}
.component-preview {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 17px 17px;
}
.preview-control {
  width: min(330px, 100%);
  padding: 1.5rem;
  background: var(--surface-raised);
  box-shadow: 0 10px 30px rgba(24, 33, 29, 0.14);
}
.preview-control label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
}
.preview-control input,
.preview-control select {
  width: 100%;
  padding: 0.75rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
}
.preview-control .is-focus {
  outline: 3px solid color-mix(in srgb, var(--preview-accent) 35%, transparent);
  border-color: var(--preview-accent);
}
.preview-control .is-invalid {
  border-color: #bb332a;
}
.preview-control small {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
}
.preview-control .error {
  color: #e66b62;
}
.preview-action {
  width: 100%;
  padding: 0.8rem;
  border: 0;
  color: white;
  background: var(--preview-accent);
  font-weight: 800;
}
.code-panel pre {
  max-width: 100%;
  margin: 0;
  overflow: auto;
  color: #d7f58a;
  font:
    0.74rem/1.8 ui-monospace,
    'Cascadia Code',
    monospace;
  white-space: pre-wrap;
}

.standards {
  overflow: hidden;
}
.standards .section-heading {
  margin-bottom: 3rem;
}
.standards-track {
  display: flex;
  width: max-content;
  gap: 1rem;
}
.standards-track span {
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--ink);
  font:
    800 0.85rem ui-monospace,
    monospace;
  background: var(--surface);
}
.builders {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 8vw, 8rem);
  background: var(--surface);
}
.builders-copy {
  position: sticky;
  top: 3rem;
  align-self: start;
}
.builder-list article {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 1.4rem;
  min-height: 140px;
  border-top: 1px solid var(--line);
}
.builder-list article:last-child {
  border-bottom: 1px solid var(--line);
}
.builder-list article > span {
  font:
    700 0.68rem ui-monospace,
    monospace;
}
.builder-list h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}
.builder-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.builder-list b {
  font-size: 1.4rem;
  color: var(--coral);
}
.definition-section {
  padding: 6.5rem clamp(1.25rem, 5vw, 5.5rem);
  background: var(--surface-soft);
}
.definition-browser {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(300px, 1.5fr) minmax(220px, 0.8fr);
  border: 1px solid var(--line);
  background: var(--surface);
}
.definition-list {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
}
.definition-list button {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  min-height: 58px;
  padding: 0.75rem;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.definition-list button[aria-selected='true'] {
  color: var(--strong-fg);
  background: var(--strong-bg);
  border-color: var(--strong-bg);
}
.definition-list small,
.definition-card small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}
.definition-list button[aria-selected='true'] small {
  color: var(--strong-muted);
}
.definition-card {
  min-height: 520px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.definition-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.definition-card h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
}
.definition-card-header > span {
  padding: 0.35rem 0.55rem;
  color: var(--strong-fg);
  background: var(--moss);
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.definition-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.definition-facts div {
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}
.definition-facts dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.definition-facts dd {
  margin: 0.3rem 0 0;
  font-weight: 800;
}
.definition-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.definition-tags span {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}
.definition-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.definition-columns h4 {
  margin: 0 0 0.6rem;
}
.definition-columns ul {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.definition-columns li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.definition-columns small {
  margin-left: 0.4rem;
  font-weight: 700;
}
.definition-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-weight: 700;
}
.definition-api {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem;
  border-left: 1px solid var(--line);
  background: var(--strong-bg);
  color: var(--strong-fg);
}
.definition-api .panel-title small {
  color: var(--strong-muted);
}
.definition-api code {
  display: block;
  padding: 0.8rem;
  overflow-wrap: anywhere;
  color: var(--strong-fg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}
.closing {
  padding: clamp(6rem, 12vw, 11rem) 1.25rem;
  text-align: center;
  color: white;
  background: var(--coral);
}
.closing h2 {
  max-width: 900px;
  margin: 0 auto 2.5rem;
}
.button-light {
  color: #18211d;
  background: var(--white);
}
.site-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.25rem, 5vw, 5.5rem);
  color: var(--strong-fg);
  background: var(--strong-bg);
  font-size: 0.78rem;
}
.site-footer p {
  color: var(--strong-muted);
}

.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .site-header {
    height: 68px;
  }
  .menu-button {
    z-index: 2;
    display: grid;
    gap: 4px;
    width: 42px;
    height: 42px;
    place-content: center;
  }
  .menu-button span:not(.sr-only) {
    width: 20px;
    height: 2px;
    background: var(--ink);
  }
  .site-nav {
    position: absolute;
    inset: 0 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 82px 1.25rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 0.7rem 0;
  }
  .nav-cta {
    padding: 0.85rem 1rem !important;
    text-align: center;
  }
  .theme-toggle {
    justify-content: center;
    min-height: 42px;
  }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 120px;
  }
  .hero-stage {
    min-height: 440px;
  }
  .signal-strip {
    align-items: flex-start;
  }
  .signal-strip div {
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }
  .lab-workspace {
    grid-template-columns: 1fr 1.4fr;
  }
  .code-panel {
    grid-column: 1 / -1;
    border-top: 1px solid var(--lab-line);
  }
  .preview-panel {
    border-right: 0;
  }
  .builders {
    grid-template-columns: 1fr;
  }
  .builders-copy {
    position: static;
  }
  .definition-browser {
    grid-template-columns: 1fr;
  }
  .definition-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .definition-api {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(4.4rem, 25vw, 7rem);
  }
  .hero {
    padding-inline: 1rem;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .text-link {
    text-align: center;
  }
  .hero-stage {
    min-height: 355px;
  }
  .stage-window {
    transform: scale(0.85);
    width: 116%;
  }
  .window-body {
    min-height: 330px;
    grid-template-columns: 82px 1fr;
  }
  .stage-inspector {
    display: none;
  }
  .stage-canvas {
    padding: 14px;
  }
  .canvas-label {
    margin-bottom: 24px;
  }
  .orbit {
    display: none;
  }
  .signal-strip {
    flex-direction: column;
  }
  .section,
  .lab-section,
  .definition-section {
    padding-inline: 1rem;
  }
  .section-heading {
    margin-bottom: 2.5rem;
  }
  .capability-grid {
    grid-template-columns: 1fr;
  }
  .capability,
  .capability-wide {
    min-height: 280px;
    padding: 1.5rem;
  }
  .capability h3 {
    margin-top: 2rem;
  }
  .lab-toolbar {
    align-items: flex-start;
    gap: 1rem;
    flex-direction: column;
  }
  .lab-workspace {
    grid-template-columns: 1fr;
  }
  .contract-panel,
  .preview-panel {
    border-right: 0;
    border-bottom: 1px solid var(--lab-line);
  }
  .component-preview {
    min-height: 330px;
    padding: 1rem;
  }
  .code-panel {
    grid-column: auto;
  }
  .builders {
    padding-inline: 1rem;
  }
  .builder-list article {
    grid-template-columns: 28px 1fr;
    padding: 1rem 0;
  }
  .builder-list article b {
    display: none;
  }
  .definition-list,
  .definition-facts,
  .definition-columns {
    grid-template-columns: 1fr;
  }
  .definition-card {
    min-height: auto;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
