@charset "UTF-8";

:root {
  --paper: #fbfcf9;
  --white: #fff;
  --ink: #172018;
  --text: #3e473f;
  --muted: #626c61;
  --line: #d9ded4;
  --faint: #edf1e8;
  --accent: #415d3e;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(22px, 5.5vw, 104px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
::selection { color: var(--ink); background: #dce8d2; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 1px; }
[tabindex="-1"]:focus { outline: none; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
p { margin: 0 0 1.2em; color: var(--text); font-size: 17px; line-height: 1.8; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 em, h2 em { font-weight: 400; }
h2 { font-size: clamp(36px, 3.5vw, 54px); line-height: 1.1; letter-spacing: -.045em; }
h3 { font-size: 19px; font-weight: 500; line-height: 1.45; letter-spacing: -.025em; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: var(--ink); color: white; padding: 14px 22px; }
.skip-link:focus { top: 12px; }
.eyebrow, .small-label, .section-kind, .hero-footnote, .figure-note, figcaption, .phase-state, .document-stamp, .footer-bottom, .hero-status, .social-caption { font-family: var(--mono); }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 10px; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; }
.tiny-square { width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251,252,249,.96); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; flex-shrink: 0; gap: 10px; align-items: center; font-size: 29px; font-weight: 650; letter-spacing: -.06em; line-height: 1; }
.brand-dot { color: var(--accent); }
.brand-mark { position: relative; display: inline-block; width: 35px; height: 35px; overflow: hidden; border-radius: 50%; mix-blend-mode: multiply; flex-shrink: 0; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { font-size: 13px; color: var(--text); padding: 9px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); border-color: var(--ink); }
.header-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 10px; border-left: 1px solid var(--line); padding-left: 28px; white-space: nowrap; }
.nav-toggle { border: 0; background: transparent; align-items: center; gap: 13px; padding: 12px 0 12px 12px; font-size: 13px; }
.menu-lines { display: inline-block; position: relative; width: 19px; height: 12px; border-top: 1px solid; border-bottom: 1px solid; }
.menu-lines::after { content: ""; width: 19px; position: absolute; left: 0; top: 5px; border-top: 1px solid; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); column-gap: 32px; align-items: center; padding-top: clamp(66px, 6.7vw, 112px); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin-top: 27px; margin-bottom: 30px; font-size: clamp(48px, 5.35vw, 83px); line-height: 1.03; letter-spacing: -.065em; }
.hero h1 em { color: var(--accent); }
.hero-intro { max-width: 550px; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 35px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 12px; padding: 16px 21px; border: 1px solid var(--ink); transition: background-color .15s, color .15s; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--accent); border-color: var(--accent); }
.button span, .text-link span { font-size: 17px; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 18px; background: none; border: none; border-bottom: 1px solid var(--line); padding: 7px 0; cursor: pointer; font-size: 12px; line-height: 1.5; transition: border-color .15s; }
.text-link:hover { border-color: var(--ink); }
.hero-status { display: flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.hero-identity { align-self: center; position: relative; margin-top: 24px; }
.hero-identity img { width: min(78%, 330px); margin-inline: auto; mix-blend-mode: multiply; }
.hero-identity figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: -8px; color: var(--muted); font-size: 8px; line-height: 1.7; letter-spacing: .015em; padding-inline: 12px; }
.hero-footnote { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; margin-top: clamp(62px, 6vw, 94px); padding-block: 19px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; line-height: 1.7; letter-spacing: .015em; }

.paper-section { display: grid; grid-template-columns: 150px minmax(0,1fr); column-gap: 26px; padding-top: 88px; padding-bottom: 86px; border-bottom: 1px solid var(--line); }
.section-rail { display: flex; align-items: flex-start; flex-direction: column; gap: 17px; padding-top: 9px; }
.section-number { font-size: 12px; font-family: var(--mono); color: var(--accent); }
.section-kind { color: var(--muted); font-size: 9px; letter-spacing: .025em; max-width: 110px; line-height: 1.8; }
.section-body { min-width: 0; }
.section-heading { display: flex; justify-content: space-between; gap: 34px; align-items: flex-start; margin-bottom: 30px; }
.section-heading h2 { max-width: 780px; }
.section-aside { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.small-label { display: inline-block; margin-top: 9px; padding: 7px 9px; border: 1px solid var(--line); font-size: 8px; line-height: 1.6; letter-spacing: .025em; color: var(--muted); white-space: nowrap; }
.reading-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 42px; }
.reading-columns p { margin: 0; }
.principle-line { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 9px; color: var(--accent); }
.project-objective { border-left: 1px solid var(--accent); padding-left: 25px; margin-top: 34px; }
.project-objective > .note-marker { display: inline-block; margin-bottom: 10px; }
.project-objective p { font-size: 15px; line-height: 1.9; }
.section-lead { max-width: 690px; font-size: 20px; line-height: 1.7; letter-spacing: -.015em; margin-bottom: 27px; }
.research-row { display: grid; grid-template-columns: minmax(170px,.7fr) minmax(0,1.3fr); gap: 42px; border-top: 1px solid var(--line); padding-top: 37px; margin-top: 40px; }
.research-row-label { display: flex; align-items: flex-start; gap: 20px; }
.row-index { color: var(--accent); font-family: var(--mono); font-size: 10px; line-height: 2.7; }
.research-row-content p { font-size: 15px; line-height: 1.85; }
.equation { display: flex; position: relative; align-items: center; justify-content: center; gap: 24px; min-height: 100px; padding: 20px 36px 20px 20px; margin-top: 25px; margin-bottom: 12px; border-block: 1px solid var(--line); background: #f7f9f3; overflow-x: auto; }
math { font-family: "Cambria Math", "STIX Two Math", "Latin Modern Math", serif; font-size: 25px; color: var(--ink); }
.equation-number { position: absolute; right: 6px; font-family: var(--mono); font-size: 9px; color: var(--muted); }
.figure-note, .research-row-content .figure-note { font-size: 9px; line-height: 1.95; color: var(--muted); }
.research-row-content .figure-note { margin-top: 13px; }
.compact-equation { min-height: 89px; }
.security-stack { margin: 28px 0; }
.security-stack > div { display: grid; grid-template-columns: 24px minmax(0,1fr) minmax(0,1fr); align-items: baseline; gap: 17px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.security-stack > div:first-child { border-top: 1px solid var(--line); }
.security-stack span { font-family: var(--mono); font-size: 8px; color: var(--muted); }
.security-stack strong { font-weight: 500; font-size: 13px; }
.security-stack small { font-size: 11px; color: var(--muted); text-align: right; }

.crypto-inset { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.inset-heading { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; }
.inset-heading h3 { margin-top: 12px; font-size: 23px; font-family: var(--serif); font-weight: 400; }
.inset-intro { max-width: 760px; margin-top: 17px; font-size: 14px; }
.crypto-notes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; margin-top: 28px; }
.crypto-note { min-width: 0; padding-top: 17px; border-top: 1px solid var(--accent); }
.technical-index { color: var(--accent); font: 8px/1.8 var(--mono); }
.crypto-note h4 { font-size: 15px; font-weight: 500; margin: 14px 0 13px; line-height: 1.6; letter-spacing: -.02em; }
.crypto-note p { font-size: 12px; line-height: 1.9; }
.notebook-equation { min-height: 112px; padding: 20px 28px 20px 10px; }
.notebook-equation math { font-size: 21px; }
.crypto-note .technical-definition { font-size: 10px; line-height: 1.95; }
.reference-link { color: var(--accent); font: 8px/1.9 var(--mono); }
a.reference-link { text-decoration: underline; }
.adapter-model { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; margin-top: 31px; }
.adapter-model h3 { margin-bottom: 15px; font-size: 19px; }
.adapter-model p { font-size: 14px; line-height: 1.9; }
.adapter-model .equation { margin-top: 0; }
.adapter-model .figure-note { font-size: 9px; }
.mining-section > .section-body > p:not(.section-lead):not(.figure-note) { font-size: 15px; }
.role-register { margin: 25px 0 19px; border-top: 1px solid var(--line); }
.role-register > div { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 25px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.role-register span { font: 10px/1.9 var(--mono); color: var(--accent); }
.role-register p { font-size: 12px; line-height: 1.9; margin: 0; }
.figure-note a { text-decoration: underline; }
.mining-figure img { aspect-ratio: 1080 / 360; }

.aegis-section { margin-top: -1px; background: #f0f3eb; border-block: 1px solid #dce3d4; padding-block: 77px; }
.aegis-heading { display: grid; grid-template-columns: 1.35fr 1fr; gap: 90px; align-items: end; }
.aegis-heading h2 { margin-top: 24px; font-size: clamp(38px,4.1vw,63px); }
.aegis-intro .small-label { border-color: #cbd6c1; margin-bottom: 17px; }
.aegis-intro p { font-size: 16px; line-height: 1.8; }
.protocol-figure { margin-top: 42px; }
.protocol-figure img { width: 100%; }
.protocol-figure picture { display: block; }
.protocol-figure figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid #cbd6c1; padding-top: 17px; color: var(--muted); font-size: 8px; line-height: 1.8; }
.aegis-explanation { max-width: 870px; margin-top: 28px; }
.aegis-explanation p { margin: 0; font-size: 14px; line-height: 1.9; }
.aegis-method { margin-top: 40px; padding-top: 31px; border-top: 1px solid #cbd6c1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 65px; }
.aegis-method > *, .adapter-model > * { min-width: 0; }
.protocol-steps { margin: 20px 0 0; padding-left: 22px; }
.protocol-steps li { padding-left: 6px; margin-bottom: 12px; font-size: 13px; line-height: 1.9; color: var(--text); }
.protocol-steps li::marker { font: 10px var(--mono); color: var(--accent); }
.protocol-steps strong { font-weight: 600; color: var(--ink); }
.latency-note h3 { font-size: 19px; }
.latency-note > p { font-size: 13px; line-height: 1.9; }
.latency-note > .figure-note { font-size: 9px; }
.latency-note .equation { background: transparent; border-color: #cbd6c1; }

.safe-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: 48px; }
.safe-layout p { font-size: 15px; line-height: 1.9; }
.safe-layout .section-lead { font-size: 20px; line-height: 1.7; }
.safe-rule { display: flex; gap: 17px; border-top: 1px solid var(--line); padding-block: 13px; }
.safe-rule:first-of-type { margin-top: 27px; }
.safe-rule > span { font-size: 8px; color: var(--accent); font-family: var(--mono); padding-top: 5px; }
.safe-rule > p { font-size: 12px; line-height: 1.8; margin: 0; }
.safe-figure img { width: 100%; }
.safe-figure figcaption { padding-top: 13px; color: var(--muted); font-size: 8px; line-height: 1.9; }
.safe-note { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 27px; }
.application-list { display: flex; flex-wrap: wrap; gap: 0; border-block: 1px solid var(--line); margin-top: 31px; margin-bottom: 18px; }
.application-list span { font-family: var(--mono); font-size: 9px; padding: 16px 22px 16px 0; margin-right: 22px; }
.application-list span:not(:last-child) { border-right: 1px solid var(--line); }

.development-list { margin-top: 39px; }
.development-list article { display: grid; grid-template-columns: 30px minmax(0,1fr) 140px; gap: 22px; padding-block: 28px; border-top: 1px solid var(--line); }
.development-list article:last-child { border-bottom: 1px solid var(--line); }
.phase-number { font-size: 12px; font-family: var(--serif); color: var(--accent); line-height: 2.4; }
.development-list h3 { font-size: 16px; }
.development-list p { margin-top: 9px; margin-bottom: 0; max-width: 620px; font-size: 13px; line-height: 1.9; }
.phase-state { display: inline-block; align-self: start; font-size: 8px; color: var(--muted); line-height: 1.8; padding-top: 4px; text-align: right; }
.phase-state.current { color: var(--accent); }
.phase-state.current::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 1px; }
.research-note { display: grid; grid-template-columns: 45px minmax(0,1fr); gap: 22px; padding: 24px 0; }
.note-marker { color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.8; }
.research-note p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.technical-notes { border-top: 1px solid var(--line); margin-top: 23px; }
.technical-notes details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.technical-notes summary { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 23px 0; font-size: 13px; line-height: 1.7; }
.technical-notes summary > span { font-weight: 300; font-size: 20px; line-height: 1; color: var(--muted); }
.technical-notes details[open] summary > span { transform: rotate(45deg); }
.details-content { max-width: 760px; padding-bottom: 27px; padding-right: 30px; }
.details-content p { font-size: 13px; line-height: 1.95; }
.details-content a { text-decoration: underline; }
.research-bottom { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 36px; }
.document-stamp { color: var(--muted); font-size: 8px; line-height: 1.8; }
.research-attribution { padding-top: 28px; color: var(--text); font-size: 12px; line-height: 1.9; }
.research-attribution a { text-decoration: underline; }
.mechanics { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.mechanics h3 { font-family: var(--serif); font-size: 27px; font-weight: 400; margin-bottom: 15px; }
.mechanics > p { font-size: 13px; line-height: 1.9; }
.mechanics-figure { margin-top: 28px; }
.mechanics-figure img { aspect-ratio: 1080 / 330; }
.mechanism-records { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin: 28px 0 20px; }
.mechanism-records article { border-top: 1px solid var(--line); padding-top: 18px; min-width: 0; }
.mechanism-records h4 { font-size: 14px; font-weight: 500; line-height: 1.6; margin: 12px 0; }
.mechanism-records p { font-size: 12px; line-height: 1.9; }
.print-link { font-size: 10px; }
.closing { padding-block: 93px 98px; text-align: center; }
.closing .eyebrow { justify-content: center; }
.closing h2 { margin-top: 24px; font-size: clamp(48px,6vw,85px); letter-spacing: -.055em; line-height: 1.03; }
.closing h2 em { color: var(--accent); }
.closing p { margin-top: 23px; margin-bottom: 20px; font-size: 15px; line-height: 1.8; }
.closing > .text-link { font-size: 10px; margin-top: 10px; }
.error-title { font-family: var(--serif); font-size: clamp(48px,8vw,90px); font-weight: 400; letter-spacing: -.05em; }

.site-footer { border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 35px; padding-block: 39px; }
.footer-main > p { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 0; text-align: center; white-space: nowrap; }
.footer-brand { font-size: 31px; }
.socials { display: flex; position: relative; gap: 21px; justify-content: flex-end; align-items: center; padding-bottom: 20px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; border: 1px solid transparent; }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }
.social-link[aria-disabled] { color: #687264; cursor: default; }
.social-link[href]:hover { color: var(--accent); border-color: var(--line); }
.social-caption { position: absolute; right: 0; bottom: 0; font-size: 8px; line-height: 1.7; color: var(--muted); white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); padding-block: 18px; color: var(--muted); font-size: 8px; line-height: 1.8; }
.privacy-link { text-decoration: underline; }
.site-privacy { padding-bottom: 20px; }
.site-privacy details { max-width: 660px; font-size: 10px; color: var(--muted); }
.site-privacy summary { font-size: 9px; }
.site-privacy:not(:target) details:not([open]) { display: none; }
.site-privacy p { margin-top: 12px; font-size: 11px; line-height: 1.9; }

@media (min-width: 861px) {
  .nav-toggle { display: none; }
}

@media (min-width: 1800px) {
  .hero { padding-top: 110px; }
}

@media (max-width: 1100px) {
  .header-inner { gap: 30px; }
  .main-nav { gap: 23px; }
  .header-note { padding-left: 21px; }
  .paper-section { grid-template-columns: 110px minmax(0,1fr); }
  .section-heading { gap: 20px; }
  .section-aside { font-size: 10px; }
  .section-heading .small-label { font-size: 7px; }
  .research-row { grid-template-columns: 1fr 1.65fr; gap: 25px; }
  .research-row-label { gap: 13px; }
  .aegis-heading { gap: 45px; }
  .safe-layout { gap: 30px; }
  .hero-identity figcaption { font-size: 7px; }
}

@media (max-width: 860px) {
  .header-inner { min-height: 75px; position: relative; flex-wrap: wrap; gap: 0; }
  .brand { font-size: 27px; }
  .brand-mark { width: 32px; height: 32px; }
  .header-note { margin-left: auto; margin-right: 24px; padding-left: 0; border: none; font-size: 8px; }
  .enhanced .nav-toggle { display: inline-flex; order: 3; }
  .main-nav { width: 100%; order: 4; justify-content: flex-start; flex-wrap: wrap; padding: 18px 0; margin: 0; gap: 6px 24px; }
  .enhanced .main-nav { display: none; }
  .nav-open .main-nav { display: flex; }
  .main-nav a { font-size: 12px; }
  .hero { grid-template-columns: minmax(0,1fr); padding-top: 65px; }
  .hero-copy { max-width: 670px; }
  .hero h1 { font-size: clamp(47px,8.5vw,73px); }
  .hero-intro { max-width: 580px; }
  .hero-identity { display: none; }
  .hero-footnote { margin-top: 55px; }
  .paper-section { grid-template-columns: 1fr; padding-top: 57px; padding-bottom: 57px; }
  .section-rail { flex-direction: row; align-items: center; gap: 14px; padding-top: 0; margin-bottom: 26px; }
  .section-kind { max-width: none; font-size: 9px; }
  .section-number { font-size: 10px; }
  h2 { font-size: clamp(35px,5.6vw,47px); }
  .section-heading { margin-bottom: 26px; }
  .section-heading .small-label { font-size: 8px; }
  .reading-columns { gap: 30px; }
  .reading-columns p { font-size: 15px; }
  .research-row { grid-template-columns: minmax(0,.8fr) minmax(0,1.4fr); gap: 35px; }
  .aegis-section { padding-block: 57px; }
  .aegis-heading { gap: 30px; grid-template-columns: 1fr 1fr; }
  .aegis-heading h2 { font-size: 39px; }
  .aegis-intro p { font-size: 14px; }
  .aegis-explanation { gap: 30px; }
  .aegis-explanation p { font-size: 13px; }
  .safe-layout { grid-template-columns: 1.2fr 1fr; gap: 30px; }
  .safe-layout p { font-size: 14px; }
  .safe-layout .section-lead { font-size: 18px; }
  .safe-rule > p { font-size: 11px; }
  .safe-figure { margin-top: 6px; }
  .closing { padding-block: 70px; }
  .footer-main { gap: 25px; grid-template-columns: 1fr 1fr; }
  .footer-main > p { display: block; grid-column: 1 / -1; grid-row: 2; font-size: clamp(10px, 2.3vw, 12px); }
  .footer-bottom { gap: 15px; }
}

@media (max-width: 900px) {
  .protocol-figure img { max-width: 440px; margin-inline: auto; }
  .protocol-figure img { aspect-ratio: 360 / 620; }
  .mining-figure img { aspect-ratio: 360 / 570; }
  .mechanics-figure img { aspect-ratio: 1080 / 330; max-width: none; }
  .crypto-notes { grid-template-columns: 1fr; gap: 26px; }
  .crypto-note { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7px 25px; }
  .crypto-note .technical-index, .crypto-note h4, .crypto-note > p:first-of-type { grid-column: 1; }
  .crypto-note .equation { grid-column: 2; grid-row: 1 / 4; margin-top: 0; }
  .crypto-note .technical-definition, .crypto-note .reference-link { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .inset-heading { flex-direction: column; gap: 15px; }
  .inset-heading h3 { font-size: 25px; }
  .inset-intro { font-size: 13px; }
  .crypto-note { display: block; }
  .crypto-note h4 { font-size: 17px; }
  .crypto-note > p { font-size: 13px; }
  .crypto-note .technical-definition { font-size: 11px; }
  .notebook-equation math { font-size: 20px; }
  .crypto-note .equation { margin-top: 20px; }
  .reference-link { font-size: 9px; }
  .adapter-model, .aegis-method { grid-template-columns: 1fr; gap: 25px; }
  .adapter-model p { font-size: 13px; }
  .role-register > div { grid-template-columns: 1fr; gap: 4px; }
  .role-register p { font-size: 12px; }
  .aegis-method { margin-top: 28px; padding-top: 26px; }
  .protocol-steps { padding-left: 18px; }
  .protocol-steps li { font-size: 12px; }
  .mechanics h3 { font-size: 25px; }
  .mechanism-records { grid-template-columns: 1fr; gap: 22px; }
  .mechanism-records h4 { font-size: 16px; }
  .mechanism-records p { font-size: 13px; }
  .mechanics-figure img { aspect-ratio: 360 / 640; }

}

@media (max-width: 650px) {
  :root { --gutter: 25px; }
  .hero { padding-top: 53px; }
  .hero h1 { margin-top: 24px; margin-bottom: 27px; font-size: clamp(45px,8.9vw,58px); letter-spacing: -.06em; }
  .hero-intro { font-size: 16px; line-height: 1.85; max-width: 450px; }
  .eyebrow { font-size: 8px; letter-spacing: .07em; }
  .hero-actions { gap: 22px; margin-top: 28px; }
  .button { gap: 23px; padding: 14px 17px; font-size: 11px; }
  .text-link { gap: 12px; font-size: 11px; }
  .hero-status { font-size: 8px; margin-top: 24px; }
  .hero-footnote { flex-direction: column; gap: 4px; padding-block: 15px; font-size: 8px; margin-top: 43px; }
  .paper-section { padding-block: 48px; }
  .section-rail { margin-bottom: 22px; }
  .section-heading { flex-direction: column; gap: 15px; margin-bottom: 25px; }
  h2 { font-size: clamp(33px,7.2vw,43px); }
  .section-aside { display: none; }
  .small-label, .section-heading .small-label { margin-top: 0; font-size: 7px; padding: 5px 7px; }
  .reading-columns { grid-template-columns: 1fr; gap: 19px; }
  .reading-columns p { font-size: 15px; line-height: 1.85; }
  .principle-line { justify-content: flex-start; gap: 13px 23px; font-size: 8px; margin-top: 28px; padding-top: 20px; }
  .section-lead { font-size: 18px; line-height: 1.75; }
  .research-row { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; padding-top: 26px; }
  .research-row-label { gap: 17px; }
  .research-row-label h3 { font-size: 20px; }
  .research-row-label h3 br { display: none; }
  .research-row-content p { font-size: 14px; }
  .equation { min-height: 94px; padding-inline: 13px 32px; }
  math { font-size: 24px; }
  .figure-note, .research-row-content .figure-note { font-size: 8px; line-height: 1.95; }
  .security-stack { margin-block: 23px; }
  .security-stack strong { font-size: 13px; }
  .security-stack small { font-size: 10px; }
  .aegis-section { padding-block: 48px; }
  .aegis-heading { grid-template-columns: 1fr; gap: 25px; }
  .aegis-heading h2 { font-size: clamp(33px,7.2vw,43px); margin-top: 22px; }
  .aegis-intro .small-label { margin-bottom: 14px; }
  .aegis-intro p { font-size: 15px; }
  .protocol-figure { margin-top: 25px; }
  .protocol-figure img { width: 100%; height: auto; }
  .protocol-figure figcaption { font-size: 7px; gap: 6px; padding-top: 13px; }
  .aegis-explanation { grid-template-columns: 1fr; gap: 17px; margin-top: 23px; }
  .aegis-explanation p { font-size: 13px; }
  .safe-layout { grid-template-columns: 1fr; gap: 26px; }
  .safe-layout p { font-size: 14px; }
  .safe-figure { max-width: 390px; margin: 0 auto; width: 100%; }
  .safe-rule > p { font-size: 12px; }
  .safe-rule { gap: 18px; }
  .safe-note { margin-top: 25px; }
  .application-list { flex-direction: column; margin-top: 23px; }
  .application-list span { padding-block: 13px; margin: 0; }
  .application-list span:not(:last-child) { border-right: none; border-bottom: 1px solid var(--line); }
  .development-list article { grid-template-columns: 24px minmax(0,1fr); gap: 9px 15px; padding-block: 22px; }
  .development-list h3 { font-size: 16px; }
  .development-list p { font-size: 12px; line-height: 1.9; }
  .phase-state { grid-column: 2; text-align: left; padding-top: 2px; }
  .research-note { gap: 12px; grid-template-columns: 33px minmax(0,1fr); padding-block: 22px; }
  .research-note p { font-size: 11px; }
  .technical-notes { margin-top: 8px; }
  .technical-notes summary { font-size: 12px; padding-block: 20px; gap: 18px; }
  .details-content { padding-right: 0; padding-bottom: 22px; }
  .details-content p { font-size: 12px; }
  .research-bottom { flex-direction: column; align-items: flex-start; gap: 15px; margin-top: 27px; }
  .document-stamp { font-size: 7px; }
  .print-link { font-size: 10px; }
  .closing { padding-block: 57px; }
  .closing h2 { font-size: clamp(46px,10vw,60px); }
  .closing p { font-size: 14px; }
  .footer-main { gap: 20px; padding-block: 29px; }
  .footer-brand { font-size: 27px; }
  .socials { gap: 10px; padding-bottom: 23px; }
  .social-link { min-width: 32px; min-height: 36px; }
  .social-link svg { width: 16px; height: 16px; }
  .social-caption { font-size: 6px; }
  .footer-bottom { flex-wrap: wrap; font-size: 7px; gap: 6px 20px; padding-block: 15px; }
  .footer-bottom > span:nth-child(2) { order: 3; flex-basis: 100%; }
  .footer-bottom > .privacy-link { margin-left: auto; }
  .site-privacy { padding-bottom: 8px; }
}

@media (max-width: 360px) {
  :root { --gutter: 21px; }
  .header-note { margin-right: 14px; font-size: 7px; }
  .brand { font-size: 25px; gap: 8px; }
  .nav-toggle { font-size: 11px; gap: 9px; padding-left: 7px; }
  .hero h1 { font-size: 44px; }
  .hero-actions { gap: 17px; }
  .hero-actions .text-link { font-size: 10px; }
  .main-nav { flex-wrap: wrap; justify-content: flex-start; gap: 3px 24px; }
  .main-nav a { font-size: 11px; }
  .section-heading h2, .aegis-heading h2 { font-size: 32px; }
  .socials { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  :root { --paper: white; --ink: black; --text: #222; --muted: #444; --gutter: 0px; }
  @page { size: A4; margin: 18mm; }
  html { scroll-behavior: auto; }
  .site-header, .hero-actions, .hero-status, .header-note, .socials, .closing, .print-link, .privacy-link, .site-privacy { display: none !important; }
  .wrap { width: 100%; max-width: none; }
  .hero { padding-top: 0; grid-template-columns: 1fr; }
  .hero h1 { font-size: 43px; }
  .hero-identity { display: none; }
  .hero-footnote { margin-top: 24px; }
  .paper-section { display: block; padding-block: 28px; }
  .section-rail { display: flex; flex-direction: row; margin-bottom: 14px; }
  h2, .aegis-heading h2 { font-size: 29px; }
  p, .reading-columns p, .research-row-content p, .safe-layout p { font-size: 10pt; }
  p { orphans: 3; widows: 3; }
  .section-heading { break-after: avoid; }
  .reading-columns, .research-row, .safe-layout, .aegis-heading, .aegis-explanation { display: block; }
  .reading-columns p + p { margin-top: 14px; }
  .research-row { padding-top: 20px; margin-top: 22px; }
  .research-row-label { margin-bottom: 15px; }
  .equation, .security-stack, .protocol-figure, .safe-figure { break-inside: avoid; }
  .aegis-section { padding-block: 28px; background: none; }
  .aegis-intro { margin-top: 20px; }
  .aegis-explanation p + p { margin-top: 14px; }
  .safe-figure { max-width: 300px; margin: 20px auto; }
  .crypto-notes { grid-template-columns: 1fr; }
  .crypto-note, .mechanism-records article { break-inside: avoid; }
  .mechanism-records { display: block; }
  .mechanism-records article { margin-top: 20px; }
  .mechanics-figure img { aspect-ratio: 1080 / 330; }
  .adapter-model, .aegis-method { display: block; }
  .latency-note { margin-top: 24px; }
  .development-list article { break-inside: avoid; }
  .technical-notes details { display: block; }
  .technical-notes details > .details-content { display: block; }
  .technical-notes details::details-content { content-visibility: visible; display: block; }
  .technical-notes summary { padding-block: 15px; font-weight: 600; }
  .technical-notes summary > span { display: none; }
  .footer-main { display: block; padding-top: 25px; }
  .footer-main > p { display: none; }
  .footer-bottom { font-size: 8px; }
}
