@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/archivo-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Chivo Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/chivo-mono-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: #f9f9f9;
  --bg-elevated: #ffffff;
  --bg-well: #eceae7;
  --bg-pill: #efefef;
  --bg-dark: #111113;
  --bg-dark-panel: #0b0b0d;
  --bg-dark-elevated: #17171a;

  --ink: #050505;
  --ink-secondary: #4d4a47;
  --ink-muted: #635f5c;
  --ink-on-dark: #f3f3f1;
  --ink-muted-on-dark: #cac7c1;

  --border: #dad6d2;
  --border-strong: #a49d9a;
  --border-dark: #29292e;
  --border-dark-strong: #43434a;

  --status-pass-light: #047857;
  --status-pass-dark: #34d399;
  --status-gate-light: #b45309;
  --status-gate-dark: #fbbf24;
  --status-diff-add: #4ade80;
  --status-diff-del: #f87171;

  --font-sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Chivo Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 8px;

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  caret-color: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg);
}

::selection {
  background-color: var(--ink);
  color: var(--bg);
}

.dark-context {
  color-scheme: dark;
  caret-color: var(--status-pass-dark);
}

.dark-context ::selection {
  background-color: var(--ink-on-dark);
  color: var(--bg-dark-panel);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background-color: var(--border-strong);
  border: 2px solid var(--bg);
  border-radius: var(--radius-xs);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--ink-secondary);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

code,
pre,
.btn,
.menu-toggle,
.spec-copy-bar,
.workbench-meta,
.synthetic-tag,
.gate-pill,
.wb-tab,
.wb-tab-num,
.wb-file-header,
.wb-code-lines,
.wb-checks,
.wb-approve-btn,
.standard-code,
.card-meta-footer,
.workload-btn,
.model-tag,
.routing-note,
.stack-node span,
.protocol-deliverable,
.corporate-facts,
.field-group label,
.form-status,
.footer-meta,
.footer-links,
.track-stat {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.dark-context :focus-visible {
  outline: 2px solid var(--ink-on-dark);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.skip-link:focus {
  left: 16px;
}

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

/* ==========================================================================
   Header Navigation (72px Factory-aligned precision bar)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background-color: rgba(249, 249, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease-out-quart);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-mark-sm {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-nav a {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink);
  padding: 6px 2px;
  transition: color 150ms var(--ease-out-quart);
}

.primary-nav a:hover {
  color: var(--ink-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
}

/* ==========================================================================
   Buttons (3px architectural radius, single border declaration)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out-quart), color 160ms var(--ease-out-quart), border-color 160ms var(--ease-out-quart);
}

.btn-sm {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.75rem;
}

.btn-primary {
  background-color: #101010;
  color: #f9f9f9;
  border: 1px solid #101010;
}

.btn-primary:hover {
  background-color: #262626;
  border-color: #262626;
}

.btn-secondary {
  background-color: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-well);
  border-color: var(--ink);
}

.btn-light-on-dark {
  background-color: #f9f9f9;
  color: #050505;
  border: 1px solid #f9f9f9;
}

.btn-light-on-dark:hover {
  background-color: #e4e2df;
  border-color: #e4e2df;
}

.btn:disabled,
.wb-approve-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ==========================================================================
   Hero Opening & Interactive Workbench Stage
   ========================================================================== */

.hero-section {
  padding-top: clamp(30px, 3.6vw, 46px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.hero-thesis {
  max-width: 1180px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-emblem {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--ink);
  will-change: transform;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.15rem, 4.2vw, 3.75rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.036em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 22ch;
}

@media (min-width: 980px) {
  .hero-title {
    max-width: 1160px;
  }
  .hero-title-line {
    display: block;
  }
}

.hero-subtitle {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 1.15vw, 1.02rem);
  font-weight: 400;
  color: var(--ink-secondary);
  letter-spacing: -0.01em;
  max-width: 58ch;
}

.hero-cta-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.spec-copy-bar {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding: 10px 16px;
  background-color: var(--bg-pill);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  cursor: pointer;
  max-width: 100%;
  transition: background-color 150ms var(--ease-out-quart), border-color 150ms var(--ease-out-quart);
}

.spec-copy-bar:hover {
  background-color: #e6e4e0;
  border-color: var(--border-strong);
}

.spec-copy-prompt {
  color: var(--ink-secondary);
}

.spec-copy-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* Brushed Stone Architectural Stage Frame */
.stage-frame {
  position: relative;
  margin-top: clamp(30px, 3.4vw, 42px);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: clamp(16px, 3vw, 40px);
  background-color: #eae8e4;
}

.stage-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.workbench {
  position: relative;
  z-index: 1;
  background-color: var(--bg-dark);
  color: var(--ink-on-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.workbench-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background-color: var(--bg-dark-panel);
  border-bottom: 1px solid var(--border-dark);
}

.workbench-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted-on-dark);
}

.synthetic-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-dark-strong);
  color: var(--ink-on-dark);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gate-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: var(--status-gate-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.gate-pill.is-cleared {
  border-color: rgba(52, 211, 153, 0.5);
  color: var(--status-pass-dark);
}

.gate-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
}

.workbench-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border-dark);
  background-color: #131316;
}

.wb-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border-dark);
  border-bottom: 2px solid transparent;
  color: var(--ink-muted-on-dark);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out-quart), color 150ms var(--ease-out-quart);
}

.wb-tab:last-child {
  border-right: 0;
}

.wb-tab:hover {
  background-color: var(--bg-dark-elevated);
  color: var(--ink-on-dark);
}

.wb-tab[aria-selected="true"] {
  background-color: var(--bg-dark-elevated);
  color: var(--ink-on-dark);
  border-bottom-color: var(--ink-on-dark);
}

.wb-tab-num {
  color: var(--ink-muted-on-dark);
}

.wb-tab[aria-selected="true"] .wb-tab-num {
  color: var(--status-pass-dark);
}

.workbench-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: 332px;
}

.wb-pane-code {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--border-dark);
  background-color: var(--bg-dark-panel);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}

.wb-file-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted-on-dark);
}

.wb-code-lines {
  margin: 0;
  padding-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.72;
  color: #dedede;
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--border-dark-strong) var(--bg-dark-panel);
}

.wb-code-lines::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.wb-code-lines::-webkit-scrollbar-track {
  background: var(--bg-dark-panel);
}

.wb-code-lines::-webkit-scrollbar-thumb {
  background-color: var(--border-dark-strong);
  border: 2px solid var(--bg-dark-panel);
  border-radius: var(--radius-xs);
}

@keyframes wbMechanicalSnap {
  from {
    clip-path: inset(0 0 8% 0);
    transform: translateY(4px);
    opacity: 0.72;
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
    opacity: 1;
  }
}

.workbench-body.is-snapping .wb-code-lines,
.workbench-body.is-snapping .wb-pane-evidence > div:first-child,
.workbench-body.is-snapping .wb-checks {
  animation: wbMechanicalSnap 220ms var(--ease-out-quart);
}

.wb-line-add {
  color: var(--status-diff-add);
}

.wb-line-del {
  color: var(--status-diff-del);
}

.wb-line-muted {
  color: var(--ink-muted-on-dark);
}

.wb-pane-evidence {
  min-width: 0;
  padding: 24px;
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.wb-evidence-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-on-dark);
}

.wb-evidence-copy {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-muted-on-dark);
  line-height: 1.55;
}

.wb-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
}

.wb-checks li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-on-dark);
}

.wb-check-state {
  color: var(--status-pass-dark);
}

.wb-check-state.is-pending {
  color: var(--status-gate-dark);
}

.wb-gate-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
}

.wb-approve-btn {
  padding: 10px 14px;
  background-color: var(--bg-dark-elevated);
  color: var(--ink-on-dark);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out-quart), border-color 150ms var(--ease-out-quart);
}

.wb-approve-btn:hover {
  background-color: #25252b;
  border-color: var(--ink-on-dark);
}

/* ==========================================================================
   Institutional Fiduciary Standards Bar
   ========================================================================== */

.standards-strip {
  padding-block: 36px 72px;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.standard-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.standard-cell:first-child {
  padding-left: 0;
}

.standard-cell:last-child {
  border-right: 0;
  padding-right: 0;
}

.standard-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.standard-desc {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.52;
}

.standard-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   Foundation 3-Card Section
   ========================================================================== */

.foundation-section {
  padding-block: clamp(56px, 7vw, 96px);
}

.section-header-center {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-title-lg {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.section-lead {
  margin: 16px 0 0;
  font-size: 1.0625rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.foundation-card {
  background-color: transparent;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.foundation-card:first-child {
  padding-left: 0;
}

.foundation-card:last-child {
  border-right: 0;
  padding-right: 0;
}

.foundation-card.is-outcome-col {
  background-color: var(--bg-elevated);
  border-top: 2px solid var(--ink);
  margin-top: -1px;
  padding: 36px 32px;
}

.foundation-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.foundation-card p {
  margin: 12px 0 0;
  font-size: 0.96875rem;
  color: var(--ink-secondary);
  line-height: 1.58;
}

.card-meta-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.foundation-card.is-outcome-col .card-meta-footer {
  color: var(--ink);
  font-weight: 500;
  border-top-color: var(--border-strong);
}

/* ==========================================================================
   Recessed Mineral Well: Model & VPC Agnostic Routing
   ========================================================================== */

.routing-section {
  padding-block: clamp(32px, 5vw, 64px);
}

.routing-well {
  background-color: var(--bg-well);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.routing-title {
  margin: 0;
  font-size: clamp(1.75rem, 2.7vw, 2.35rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.routing-copy {
  margin: 16px 0 0;
  font-size: 1rem;
  color: var(--ink-secondary);
  line-height: 1.58;
}

.workload-filters {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workload-btn {
  padding: 10px 14px;
  background-color: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 150ms var(--ease-out-quart), color 150ms var(--ease-out-quart);
}

.workload-btn[aria-pressed="true"] {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.model-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);
  background-color: var(--bg);
}

.model-tile {
  background-color: transparent;
  border: 0;
  border-right: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  transition: background-color 160ms var(--ease-out-quart), opacity 160ms var(--ease-out-quart);
}

.model-tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.model-tile.is-dimmed {
  opacity: 0.36;
}

.model-tile.is-highlighted {
  background-color: var(--bg-elevated);
}

.model-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.model-tile.is-highlighted .model-tag {
  color: var(--ink);
}

.model-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}

.model-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.48;
  color: var(--ink-secondary);
}

.routing-note {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   8-Plate Dark Instrumentation Grid ("Engineer every stage of delivery")
   ========================================================================== */

.capabilities-section {
  padding-block: clamp(64px, 8vw, 112px);
}

.section-header-left {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-title-md {
  margin: 0;
  font-size: clamp(1.85rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.024em;
  color: var(--ink);
}

.plates-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 44px;
}

.plate-item {
  display: flex;
  flex-direction: column;
}

.plate-visual {
  aspect-ratio: 4 / 3;
  background-color: #121215;
  border: 1px solid #26262b;
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.plate-visual svg {
  width: 100%;
  height: 100%;
}

.plate-visual text {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.plate-title {
  margin: 18px 0 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.plate-desc {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Measured Practitioner Track Record & Stack Lattice
   ========================================================================== */

.track-section {
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--border);
}

.track-stat {
  font-size: clamp(1.75rem, 2.5vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 10px;
}

.stack-cta-wrap {
  margin-top: 28px;
}

.stack-section {
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--border);
}

.stack-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.stack-lattice {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.stack-node {
  padding: 22px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background-color: var(--bg);
}

.stack-node svg {
  width: 22px;
  height: 22px;
  color: var(--ink);
}

.stack-node span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-secondary);
}

/* Numbered Governance & Engagement Rows (Index in left column, zero kickers) */
.governance-section {
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--border);
}

.governance-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.governance-intro {
  position: sticky;
  top: 104px;
}

.protocol-list {
  border-top: 1px solid var(--border);
}

.protocol-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 24px;
  padding-block: 26px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.protocol-deliverable {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-secondary);
  text-align: right;
  text-transform: uppercase;
}

.protocol-content h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.protocol-content p {
  margin: 8px 0 0;
  font-size: 0.96875rem;
  color: var(--ink-secondary);
  line-height: 1.58;
}

/* ==========================================================================
   Closing Carbon Stage & Live Architecture Briefing Form
   ========================================================================== */

.briefing-section {
  padding-block: clamp(48px, 6vw, 88px);
}

.carbon-stage {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  background-color: var(--bg-dark);
  color: var(--ink-on-dark);
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
}

.carbon-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.carbon-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 86% 86% at 80% 82%,
    rgba(11, 11, 13, 0.88) 0%,
    rgba(11, 11, 13, 0.68) 46%,
    rgba(11, 11, 13, 0.34) 100%
  );
}

.briefing-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.briefing-emblem {
  width: 40px;
  height: 40px;
  color: var(--ink-on-dark);
  margin-bottom: 24px;
}

.briefing-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.026em;
  color: var(--ink-on-dark);
}

.briefing-lead {
  margin: 18px 0 0;
  font-size: 1rem;
  color: #d6d3cd;
  line-height: 1.6;
}

.corporate-facts {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark-strong);
  display: grid;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #d6d3cd;
}

.corporate-facts strong {
  color: var(--ink-on-dark);
  font-weight: 500;
}

.corporate-facts a {
  color: var(--ink-on-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(243, 243, 241, 0.72);
  transition: text-decoration-color 150ms var(--ease-out-quart);
}

.corporate-facts a:hover {
  text-decoration-color: var(--ink-on-dark);
}

.briefing-form {
  border-left: 1px solid var(--border-dark-strong);
  padding-left: clamp(24px, 4vw, 48px);
  display: grid;
  gap: 18px;
}

.form-row-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-on-dark);
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 12px 14px;
  background-color: #16161a;
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-xs);
  color: var(--ink-on-dark);
  font-size: 0.9375rem;
  transition: border-color 150ms var(--ease-out-quart);
}

.field-group input:hover,
.field-group select:hover,
.field-group textarea:hover {
  border-color: #63636e;
}

.field-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%23CAC7C1' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px;
}

.field-group textarea {
  resize: vertical;
  min-height: 112px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-dark-strong) #16161a;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #9e9b95;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--ink-on-dark);
}

.field-group input:focus-visible,
.field-group select:focus-visible,
.field-group textarea:focus-visible {
  border-color: var(--ink-on-dark);
  outline: 2px solid var(--ink-on-dark);
  outline-offset: 2px;
}

.hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.84375rem;
  color: #d6d3cd;
  line-height: 1.5;
}

.consent-row input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #f9f9f9;
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  min-height: 1.25rem;
}

.form-status.is-error {
  color: #fca5a5;
}

.form-status.is-success {
  color: var(--status-pass-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: 44px 56px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  color: var(--ink-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  color: var(--ink-secondary);
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Responsive Breakpoints (1024px Tablet, 768px Mobile)
   ========================================================================== */

@media (max-width: 1080px) {
  .plates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .standards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .standard-cell:nth-child(2) {
    border-right: 0;
    padding-right: 0;
  }
  .standard-cell:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--border);
  }
  .standard-cell:nth-child(4) {
    border-top: 1px solid var(--border);
  }
  .workbench-body,
  .routing-well,
  .stack-split,
  .governance-split,
  .briefing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .wb-pane-code {
    border-right: 0;
    border-bottom: 1px solid var(--border-dark);
  }
  .briefing-form {
    border-left: 0;
    border-top: 1px solid var(--border-dark-strong);
    padding-left: 0;
    padding-top: 32px;
  }
  .governance-intro {
    position: static;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }
  .nav-cluster {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px var(--gutter) 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .nav-cluster.is-open {
    display: flex;
  }
  .primary-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .workbench-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wb-tab:nth-child(2) {
    border-right: 0;
  }
  .wb-tab:nth-child(1),
  .wb-tab:nth-child(2) {
    border-bottom: 1px solid var(--border-dark);
  }
  .wb-tab[aria-selected="true"] {
    border-bottom: 2px solid var(--ink-on-dark);
  }
  .foundation-grid {
    grid-template-columns: 1fr;
  }
  .foundation-card,
  .foundation-card:first-child,
  .foundation-card:last-child {
    padding-inline: 0;
    border-right: 0;
    border-top: 1px solid var(--border);
  }
  .foundation-card:first-child {
    border-top: 0;
  }
  .foundation-card.is-outcome-col {
    padding: 28px 24px;
    margin-top: 0;
    border-top: 2px solid var(--ink);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
  .model-pills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stack-lattice {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .plates-grid,
  .standards-grid,
  .workbench-tabs,
  .model-pills-grid,
  .form-row-two {
    grid-template-columns: 1fr;
  }
  .wb-tab {
    border-right: 0;
    border-bottom: 1px solid var(--border-dark);
  }
  .wb-tab:last-child {
    border-bottom: 0;
  }
  .wb-tab[aria-selected="true"] {
    border-bottom: 2px solid var(--ink-on-dark);
  }
  .standard-cell,
  .standard-cell:nth-child(2),
  .standard-cell:nth-child(3),
  .standard-cell:nth-child(4) {
    padding-inline: 0;
    border-right: 0;
    border-top: 1px solid var(--border);
  }
  .standard-cell:first-child {
    border-top: 0;
  }
  .stack-lattice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spec-copy-bar {
    width: 100%;
    font-size: 0.75rem;
  }
  .stage-frame {
    padding: 12px;
  }
  .wb-pane-code,
  .wb-pane-evidence {
    padding: 16px;
  }
  .wb-code-lines {
    font-size: 0.675rem;
  }
  .protocol-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .protocol-deliverable {
    text-align: left;
  }
}
