/* ====================================================
   EXECUTIA — Execution Integrity Infrastructure
   style.css — Archival-Institutional Edition
   ==================================================== */

/* ── Custom Properties ──────────────────────────── */
:root {
  --bg:           #ffffff;
  --bg-ruled:     #f9f9f8;
  --bg-core:      #f4f3f0;
  --text:         #1f2a37;
  --text-mid:     #445060;
  --text-muted:   #7a8898;
  --accent:       #1e3a5f;
  --accent-deep:  #152c4a;
  --accent-light: #e8edf3;
  --ink:          #0c1824;
  --rule:         #d0d6dc;
  --rule-light:   #e8eaec;
  --pass:         #1a5c38;
  --pass-bg:      #eef7f2;

  --serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --mono:    'Inconsolata', 'Courier New', monospace;

  --max-w:      1100px;
  --pad-h:      40px;
  --sec-v:      108px;
  --sec-v-sm:   68px;
  --nav-h:      58px;
  --trans:      0.22s ease;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: var(--serif); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }
img, svg { display: block; }
sup { font-size: 0.5em; vertical-align: super; }

/* ── Utilities ──────────────────────────────────── */
.label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Page vertical rule ─────────────────────────── */
.page-rule-v {
  position: fixed;
  top: 0; bottom: 0;
  left: max(calc(50% - var(--max-w)/2), 0px);
  width: 1px;
  background: var(--rule-light);
  z-index: 0;
  pointer-events: none;
}

/* ── Section base ───────────────────────────────── */
.section {
  position: relative;
  border-top: 1px solid var(--rule);
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sec-v) var(--pad-h);
}

.section__head {
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 24px;
  align-items: start;
}

.section__index {
  padding-top: 8px;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 14px;
  grid-column: 2;
}

.section__lead {
  grid-column: 2;
  font-size: 1.0625rem;
  color: var(--text-mid);
  max-width: 580px;
  line-height: 1.75;
}

/* ── Navigation ─────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--trans);
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(30, 58, 95, 0.06);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav__wordmark-main {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  line-height: 1;
}

.nav__wordmark-sub {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color var(--trans);
}

.nav__links a:hover { color: var(--text); }

.nav__cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 7px 18px;
  transition: background var(--trans), color var(--trans) !important;
}

.nav__cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform var(--trans), opacity var(--trans);
}

/* ── Mobile Drawer ──────────────────────────────── */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  z-index: 190;
  padding: 24px var(--pad-h) 32px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.mobile-drawer.open {
  transform: none;
  opacity: 1;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-drawer nav a {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--bg);
  border-top: 3px solid var(--accent);
}

.hero__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px var(--pad-h) 80px;
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  gap: 0 24px;
  align-items: start;
}

.hero__label-col {
  padding-top: 8px;
}

.hero__content {
  max-width: 860px;
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__headline {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 11vw, 9.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 0.92;
  margin-bottom: 56px;
}

/* Pipeline */
.hero__pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  border: 1px solid var(--rule);
  background: var(--bg-ruled);
}

.pipeline__node {
  flex: 0 0 auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pipeline__name {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pipeline__node--core {
  background: var(--accent);
}

.pipeline__node--core .pipeline__name {
  color: rgba(255,255,255,0.6);
}

.pipeline__node--core .pipeline__desc {
  color: rgba(255,255,255,0.85);
}

.pipeline__desc {
  font-size: 0.8125rem;
  color: var(--text-mid);
  font-style: italic;
}

.pipeline__track {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 8px;
  min-width: 48px;
}

.pipeline__track svg {
  flex: 1;
  color: var(--rule);
}

.pipeline__arrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-ruled);
  padding: 0 4px;
}

.hero__thesis {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.4;
}

.hero__marginalia {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 110px;
  text-align: right;
}

.marginalia__line {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--rule);
  text-transform: uppercase;
  writing-mode: horizontal-tb;
}

.hero__rule-foot {
  height: 1px;
  background: var(--rule);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Execution Chain ────────────────────────────── */
.chain-section {
  background: var(--bg);
}

.chain {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  border: 1px solid var(--rule);
}

.chain__step {
  padding: 36px 28px 40px;
  position: relative;
  transition: background var(--trans);
}

.chain__step:hover { background: var(--bg-ruled); }

.chain__step--core {
  background: var(--accent);
}

.chain__step--core:hover { background: var(--accent-deep); }

.chain__step--core .chain__step-index,
.chain__step--core .chain__step-title,
.chain__step--core .chain__step-body { color: rgba(255,255,255,0.85); }

.chain__step--core .chain__step-index { color: rgba(255,255,255,0.35); }

.chain__step--core .chain__step-rule {
  background: rgba(255,255,255,0.2);
}

.chain__step-index {
  display: block;
  margin-bottom: 20px;
  font-size: 0.625rem;
}

.chain__step-rule {
  width: 24px;
  height: 1px;
  background: var(--rule);
  margin-bottom: 16px;
}

.chain__step-title {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.chain__step-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.chain__step-badge {
  position: absolute;
  bottom: 16px;
  left: 28px;
  font-size: 0.5625rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.12em;
}

.chain__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--bg-ruled);
  flex-shrink: 0;
}

.chain__connector-glyph {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--accent);
}

/* ── Architecture ───────────────────────────────── */
.arch-section {
  background: var(--bg-core);
}

.arch {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--rule);
}

.arch__layer {
  display: grid;
  grid-template-columns: 56px 1fr 80px;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  transition: background var(--trans);
}

.arch__layer:last-child { border-bottom: none; }
.arch__layer:hover { background: var(--accent-light); }

.arch__layer--primary {
  background: var(--accent);
  border-color: var(--accent-deep);
}

.arch__layer--primary:hover { background: var(--accent-deep); }

.arch__layer--primary .arch__layer-index,
.arch__layer--primary h3,
.arch__layer--primary p { color: rgba(255,255,255,0.85); }

.arch__layer--primary .arch__layer-index { color: rgba(255,255,255,0.3); }

.arch__layer--primary .arch__layer-status { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.15); }

.arch__layer-index {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--rule);
  padding: 36px 0 36px 28px;
  display: flex;
  align-items: flex-start;
  border-right: 1px solid var(--rule);
}

.arch__layer-body {
  padding: 36px 36px;
}

.arch__layer-body h3 {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.arch__layer-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 660px;
}

.arch__layer-status {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 36px 28px 36px 0;
  font-size: 0.5625rem;
  color: var(--rule);
  letter-spacing: 0.12em;
  border-left: 1px solid var(--rule);
}

/* ── Gap Stats ──────────────────────────────────── */
.gap-section {
  background: var(--bg);
}

.stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--rule);
}

.stat {
  flex: 1;
  padding: 56px 44px;
}

.stat__figure {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 20px;
}

.stat__rule {
  width: 32px;
  height: 1px;
  background: var(--rule);
  margin-bottom: 20px;
}

.stat__label {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.stat__source {
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--rule);
}

.stat__divider {
  width: 1px;
  background: var(--rule);
  flex-shrink: 0;
}

/* ── Principles ─────────────────────────────────── */
.principles-section {
  background: var(--bg-core);
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.principle {
  background: var(--bg);
  margin: 0;
  padding: 44px 40px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  border: 1px solid transparent;
  transition: background var(--trans);
}

/* Grid gap via outline trick */
.principles {
  gap: 1px;
}

.principle:hover { background: var(--accent-light); }

.principle__num {
  flex-shrink: 0;
  font-size: 0.625rem;
  color: var(--rule);
  padding-top: 4px;
}

.principle__body h3 {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.principle__body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Use Case ───────────────────────────────────── */
.usecase-section {
  background: var(--bg);
}

.usecase {
  border: 1px solid var(--rule);
}

.usecase__step {
  display: grid;
  grid-template-columns: 200px 1fr 120px;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  transition: background var(--trans);
}

.usecase__step:last-child { border-bottom: none; }
.usecase__step:hover { background: var(--bg-ruled); }

.usecase__step-left {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.usecase__step-num {
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
}

.usecase__step-title {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
}

.usecase__step-body {
  padding: 32px 36px;
}

.usecase__step-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.usecase__step-right {
  padding: 32px 28px;
  border-left: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.badge {
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  padding: 5px 10px;
}

.badge--pass {
  color: var(--pass);
  background: var(--pass-bg);
  border: 1px solid rgba(26, 92, 56, 0.15);
}

/* ── Protocol ───────────────────────────────────── */
.protocol-section {
  background: var(--accent);
  border-top: 1px solid var(--accent-deep);
}

.protocol-section .section__title { color: #fff; }

.protocol-section .section__index { color: rgba(255,255,255,0.3); }

.protocol-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.protocol-section .section__inner {
  padding-top: calc(var(--sec-v) - 0px);
}

.protocol__left p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.protocol__right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  flex-shrink: 0;
}

.protocol__doc {
  width: 240px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  padding: 24px;
}

.protocol__doc-header {
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  line-height: 1.6;
}

.protocol__doc-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.protocol__doc-line {
  height: 1px;
  background: rgba(255,255,255,0.12);
  width: 100%;
}

.protocol__doc-line--short { width: 55%; }
.protocol__doc-line--mid  { width: 75%; }

.protocol__doc-footer {
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
  border: 1px solid;
}

.btn span { display: block; line-height: 1; }

.btn__sub {
  font-size: 0.5rem !important;
  letter-spacing: 0.08em !important;
  opacity: 0.55;
  text-transform: none !important;
  margin-top: 2px;
}

.btn--primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.btn--primary:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn--primary .btn__sub { color: var(--accent); }
.btn--primary:hover .btn__sub { color: rgba(255,255,255,0.5); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Contact ────────────────────────────────────── */
.contact-section {
  background: var(--bg);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-inner .section__index {
  margin-bottom: 20px;
}

.contact__headline {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.contact__sub {
  font-size: 1.0625rem;
  color: var(--text-mid);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact__action {
  margin-bottom: 40px;
}

.contact__credentials {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--rule);
}

/* ── Footer ─────────────────────────────────────── */
.footer {
  background: var(--ink);
  border-top: 3px solid var(--accent);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--pad-h) 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__name {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #fff;
  margin-bottom: 6px;
}

.footer__tagline {
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-style: italic;
  color: rgba(255,255,255,0.35);
}

.footer__cols {
  display: flex;
  gap: 48px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.footer__col-label {
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.25);
  margin-bottom: 4px;
}

.footer__col-value {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.footer__col-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.15);
  transition: color var(--trans);
}

.footer__col-link:hover { color: #fff; }

.footer__base {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px var(--pad-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__base .label {
  font-size: 0.5625rem;
  color: rgba(255,255,255,0.2);
}

.footer__base-right {
  font-style: italic;
}

/* ── Modal ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 24, 36, 0.6);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay:not([hidden]) { opacity: 1; }

.modal {
  background: var(--bg);
  border: 1px solid var(--rule);
  max-width: 480px;
  width: 100%;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal-overlay:not([hidden]) .modal { transform: none; }

.modal__header {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.modal__body {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.modal__cta {
  align-self: flex-start;
}

.modal__close {
  align-self: flex-start;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0;
  transition: color var(--trans);
  cursor: pointer;
  margin-top: 4px;
}

.modal__close:hover { color: var(--text); }

/* ── Scroll reveal ──────────────────────────────── */
[data-sr] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-sr].sr-visible {
  opacity: 1;
  transform: none;
}
[data-sr-delay="1"] { transition-delay: 0.1s; }
[data-sr-delay="2"] { transition-delay: 0.2s; }
[data-sr-delay="3"] { transition-delay: 0.3s; }
[data-sr-delay="4"] { transition-delay: 0.4s; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 960px) {
  :root { --sec-v: 72px; --pad-h: 28px; }

  .hero__grid { grid-template-columns: 56px 1fr; padding: 72px var(--pad-h) 60px; }
  .hero__marginalia { display: none; }

  .chain { grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
  .chain__step { border-top: none; border-bottom: 1px solid var(--rule); }
  .chain__step:last-child { border-bottom: none; }
  .chain__connector { width: 100%; height: 36px; border-left: none; border-right: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg-ruled); }

  .arch__layer { grid-template-columns: 40px 1fr; }
  .arch__layer-status { display: none; }

  .stats { flex-direction: column; }
  .stat__divider { width: 100%; height: 1px; }

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

  .usecase__step { grid-template-columns: 1fr; }
  .usecase__step-left { border-right: none; border-bottom: 1px solid var(--rule); }
  .usecase__step-right { border-left: none; border-top: 1px solid var(--rule); justify-content: flex-start; }

  .protocol-inner { grid-template-columns: 1fr; }
  .protocol__right { align-items: flex-start; }
  .protocol__doc { width: 100%; max-width: 320px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__cols { justify-content: flex-start; flex-wrap: wrap; gap: 32px; }
  .footer__col { text-align: left; }

  .section__head { grid-template-columns: 56px 1fr; }
}

@media (max-width: 640px) {
  :root { --sec-v: 56px; --pad-h: 20px; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .mobile-drawer { display: block; }

  .hero__grid { grid-template-columns: 1fr; padding: 60px var(--pad-h) 48px; }
  .hero__label-col { display: none; }
  .hero__pipeline { flex-direction: column; align-items: stretch; }
  .pipeline__track { height: 36px; width: 100%; justify-content: center; }
  .pipeline__track svg { display: none; }

  .section__head { grid-template-columns: 1fr; }
  .section__index { margin-bottom: 8px; }
  .section__title { grid-column: 1; }
  .section__lead { grid-column: 1; }

  .chain__step { padding: 28px 20px; }
  .arch__layer { grid-template-columns: 32px 1fr; }
  .arch__layer-body { padding: 28px 20px; }
  .stat { padding: 40px 28px; }
  .principle { padding: 32px 24px; }
  .usecase__step-left, .usecase__step-body, .usecase__step-right { padding: 24px 20px; }

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