:root {
  --bg: #050505;
  --surface: #0b0b0b;
  --surface-2: #111;
  --fg: #f4f4f0;
  --muted: #a6a6a0;
  --line: rgba(244, 244, 240, 0.22);
  --line-strong: rgba(244, 244, 240, 0.62);
  --paper: #f1f1ec;
  --ink: #0a0a0a;
  --paper-muted: #5f5f5a;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --script: "Edwardian Script ITC", "Snell Roundhand", "Segoe Script", "Brush Script MT", "Apple Chancery", "URW Chancery L", cursive;
  --max: 1460px;
  --gutter: clamp(18px, 4vw, 64px);
  color-scheme: dark;
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.12em 0.38em;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 72% 14%, rgba(255,255,255,.07), transparent 30%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(100%, var(--max));
  min-height: 78px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 2.15rem;
  font-style: italic;
  line-height: 1;
}
.brand-name {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.06em;
}

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: currentColor;
  transition: right 180ms ease;
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--fg); }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { right: 0; }

.visit-mode {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
.visit-mode span { color: var(--muted); }
.visit-mode strong { border: 1px solid var(--line-strong); padding: 4px 8px; font-weight: 500; }
html.is-qr .visit-mode strong { background: var(--fg); color: var(--bg); }

.hero, .routes-section, .projects-section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.hero { min-height: calc(100svh - 78px); display: grid; align-items: center; padding-block: clamp(72px, 9vw, 138px); }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(250px, .75fr);
  gap: clamp(38px, 6vw, 108px);
  align-items: end;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5.7rem, 13.8vw, 14.5rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.095em;
  white-space: nowrap;
}
.hairline { height: 1px; margin: clamp(30px, 4vw, 56px) 0 22px; background: var(--line-strong); }
.integratio {
  margin: 0;
  max-width: 1060px;
  font-family: var(--script);
  font-size: clamp(1.34rem, 2.1vw, 2.2rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}
.integratio p { margin: 0; }
.integratio em { font-size: 1.12em; }

.hero-note {
  position: relative;
  padding: 26px 0 0 28px;
  border-left: 1px solid var(--line-strong);
}
.hero-note-index {
  margin-bottom: 42px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}
.hero-note > p { margin: 0 0 18px; font-size: 1.02rem; }
.hero-note .muted { color: var(--muted); font-size: 0.86rem; }
.primary-action {
  margin-top: 14px;
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}
.primary-action:hover, .primary-action:focus-visible { background: transparent; color: var(--fg); }
.qr-notice {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.55;
}
.qr-logout {
  margin-top: 14px;
  padding: 8px 10px;
  display: block;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font: inherit;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.qr-logout:hover, .qr-logout:focus-visible { background: var(--fg); color: var(--bg); }
.qr-logout:disabled { opacity: .5; cursor: wait; }
.pulse-dot, .status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
}
html.is-qr .pulse-dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .28; transform: scale(.72); } }

.routes-section { padding-block: clamp(80px, 9vw, 140px); border-top: 1px solid var(--line); }
.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
.section-heading h2, .intelligence-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 6vw, 6.4rem);
  line-height: .9;
  letter-spacing: -0.075em;
}
.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.route-board {
  position: relative;
  width: 100%;
  height: 650px;
  border-block: 1px solid var(--line-strong);
  overflow: hidden;
}
.route-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, transparent calc(25% - .5px), var(--line) 25%, transparent calc(25% + .5px)), linear-gradient(90deg, transparent calc(55% - .5px), var(--line) 55%, transparent calc(55% + .5px)), linear-gradient(90deg, transparent calc(82% - .5px), var(--line) 82%, transparent calc(82% + .5px));
  opacity: .36;
}
.route-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-path {
  fill: none;
  stroke: var(--fg);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  opacity: .27;
  transition: opacity 180ms ease, stroke-width 180ms ease;
}
.route-path--base { opacity: .8; }
.route-path.is-active { opacity: 1; stroke-width: 3.2; filter: drop-shadow(0 0 5px rgba(255,255,255,.5)); }
.route-path.is-muted { opacity: .1; }
.qr-route-line, .route-node.qr-only { display: none; }
html.is-qr .qr-route-line { display: block; }
html.is-qr .route-node.qr-only { display: flex; }

.origin-node {
  position: absolute;
  left: 1.8%;
  top: 160px;
  width: 15%;
  height: 330px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.origin-node span {
  font-family: var(--serif);
  font-size: 18rem;
  font-style: italic;
  font-weight: 400;
  line-height: .8;
}
.origin-node small {
  position: absolute;
  bottom: 0;
  left: 8%;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
}

.route-node {
  position: absolute;
  z-index: 2;
  min-height: 90px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(5,5,5,.94);
  color: var(--fg);
  text-decoration: none;
  box-shadow: 0 0 0 8px var(--bg);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.route-node:hover, .route-node:focus-visible, .route-node.is-active {
  z-index: 4;
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  transform: translateY(-2px);
  outline: none;
}
.route-node:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--fg); }
.route-icon {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  overflow: hidden;
}
.route-node:hover .route-icon, .route-node:focus-visible .route-icon, .route-node.is-active .route-icon { background: var(--bg); color: var(--fg); }
.route-icon svg { width: 28px; height: 28px; fill: currentColor; }
.route-icon--outline { color: var(--fg); border: 1px solid currentColor; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); }
.route-icon--letters { border-radius: 13px; font-family: var(--display); font-size: 1.18rem; font-weight: 700; letter-spacing: -0.08em; }
.route-icon--light { background: var(--fg); }
.route-icon--image { padding: 5px; background: var(--fg); }
.route-icon--image.route-icon--soft { background: rgba(255,255,255,.08); }
.route-icon--image img { width: 100%; height: 100%; object-fit: contain; filter: invert(1); }
.route-node:hover .route-icon--image img, .route-node:focus-visible .route-icon--image img, .route-node.is-active .route-icon--image img { filter: none; }
.route-icon--integral { font-family: var(--serif); font-size: 2.4rem; font-style: italic; }
.route-icon--interton { background: var(--bg); border: 1px solid var(--line-strong); }
.route-icon--interton img { width: 100%; height: 100%; object-fit: contain; filter: none; }
.route-node:hover .route-icon--interton, .route-node:focus-visible .route-icon--interton, .route-node.is-active .route-icon--interton { background: var(--bg); }
.route-copy { min-width: 0; display: grid; line-height: 1.15; }
.route-copy small { margin-bottom: 5px; color: var(--muted); font-family: var(--mono); font-size: .58rem; letter-spacing: .09em; }
.route-node:hover .route-copy small, .route-node:focus-visible .route-copy small, .route-node.is-active .route-copy small { color: rgba(0,0,0,.58); }
.route-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.route-copy em { margin-top: 6px; overflow: hidden; color: var(--muted); font-family: var(--mono); font-size: .65rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.route-node:hover .route-copy em, .route-node:focus-visible .route-copy em, .route-node.is-active .route-copy em { color: rgba(0,0,0,.58); }
.route-arrow { margin-left: auto; align-self: flex-start; font-family: var(--mono); font-size: .75rem; }

.node-bot, .node-direct, .node-vk, .node-email { left: 27.7%; width: 20.2%; }
.node-bot { top: 41px; }
.node-direct { top: 173px; }
.node-vk { top: 305px; }
.node-email { top: 437px; }
.node-github, .node-asmdl { left: 56.8%; width: 19.1%; }
.node-github { top: 109px; }
.node-asmdl { top: 359px; }
.node-interton { left: 83.7%; top: 263px; width: 15.2%; min-width: 170px; }

.route-live {
  position: absolute;
  z-index: 3;
  right: 1.4%;
  bottom: 24px;
  width: min(350px, 26%);
  padding: 16px 0 0;
  border-top: 1px solid var(--line-strong);
}
.route-live span { color: var(--muted); font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; }
.route-live strong { display: block; margin: 8px 0 6px; font-size: 1rem; }
.route-live p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.noscript-note { margin-top: 20px; padding: 14px; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .76rem; }

.projects-section { padding-block: clamp(80px, 9vw, 140px); }
.section-heading--projects { margin-bottom: 28px; }
.project-register { border-top: 1px solid var(--line-strong); }
.project-entry {
  display: grid;
  grid-template-columns: 74px minmax(300px, .85fr) minmax(320px, 1.15fr);
  min-height: 330px;
  border-bottom: 1px solid var(--line-strong);
}
.project-index {
  padding-top: 24px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
}
.project-visual {
  min-height: 330px;
  padding: 36px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.project-visual img { width: min(100%, 620px); height: auto; }
.project-body { padding: clamp(34px, 5vw, 74px); display: flex; flex-direction: column; justify-content: center; }
.status-line { color: var(--muted); font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; }
.project-body h3 { margin: 20px 0 13px; font-family: var(--display); font-size: clamp(2.4rem, 4.6vw, 5.2rem); line-height: .9; letter-spacing: -.07em; }
.project-body p { max-width: 650px; margin: 0 0 28px; color: var(--muted); }
.project-body a { width: max-content; padding-bottom: 3px; border-bottom: 1px solid currentColor; text-decoration: none; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.project-body a:hover, .project-body a:focus-visible { border-bottom-style: double; }
.project-visual--interton { background: var(--bg); color: var(--fg); }
.project-visual--interton img { width: min(100%, 310px); height: auto; display: block; filter: none; }
.project-visual--github { font-family: var(--display); font-size: clamp(8rem, 15vw, 16rem); line-height: .7; letter-spacing: -.12em; }

.intelligence-section {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(70px, 8vw, 126px) var(--gutter) clamp(100px, 11vw, 170px);
}
.intelligence-section ::selection { background: var(--ink); color: var(--paper); }
.intelligence-header, .intelligence-tools, .intelligence-layout {
  width: min(100%, var(--max));
  margin-inline: auto;
}
.intelligence-header {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 50px;
  align-items: end;
  padding-bottom: 42px;
  border-bottom: 2px solid var(--ink);
}
.intelligence-header .eyebrow { color: var(--paper-muted); }
.intelligence-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.intelligence-meta span { display: grid; gap: 6px; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; }
.intelligence-meta strong { font-size: .72rem; }

.intelligence-tools {
  position: sticky;
  top: 78px;
  z-index: 20;
  min-height: 76px;
  padding: 13px 0;
  display: grid;
  grid-template-columns: minmax(260px, 440px) 1fr;
  gap: 34px;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,.28);
  background: rgba(241,241,236,.93);
  backdrop-filter: blur(16px);
}
.document-search { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.document-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}
.document-search input:focus { background: var(--ink); color: var(--paper); }
.document-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 18px; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }
.document-actions a { text-underline-offset: 4px; }
.document-actions [data-search-result] { margin-right: auto; color: var(--paper-muted); }

.intelligence-layout { display: grid; grid-template-columns: 250px minmax(0, 860px); gap: clamp(50px, 8vw, 138px); align-items: start; padding-top: 60px; }
.document-toc { position: sticky; top: 174px; max-height: calc(100svh - 200px); overflow: auto; scrollbar-width: thin; }
.document-toc > p { margin: 0 0 17px; padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,.35); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; }
.document-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.document-toc li { counter-increment: toc; display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: baseline; margin: 0 0 8px; }
.document-toc li::before { content: counter(toc, decimal-leading-zero); color: var(--paper-muted); font-family: var(--mono); font-size: .58rem; }
.document-toc a { color: var(--paper-muted); text-decoration: none; font-size: .76rem; }
.document-toc a:hover, .document-toc a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.intelligence-document { min-width: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.72; }
.intelligence-document > h1:first-child { margin-top: 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.intelligence-document h1, .intelligence-document h2, .intelligence-document h3 { scroll-margin-top: 180px; }
.intelligence-document h2 {
  margin: 5rem 0 1.5rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--ink);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: .96;
  letter-spacing: -.055em;
}
.intelligence-document h3 { margin: 2.8rem 0 1rem; font-size: 1.28rem; line-height: 1.2; }
.intelligence-document p { margin: 0 0 1.2rem; }
.intelligence-document ul, .intelligence-document ol { margin: 0 0 1.5rem; padding-left: 1.4rem; }
.intelligence-document li { margin-bottom: .42rem; padding-left: .25rem; }
.intelligence-document blockquote { margin: 2rem 0 2.8rem; padding: 1.4rem 1.6rem; border: 1px solid var(--ink); font-family: var(--serif); font-size: 1.08rem; }
.intelligence-document blockquote p:last-child { margin-bottom: 0; }
.intelligence-document hr { margin: 3.4rem 0; border: 0; border-top: 1px solid rgba(0,0,0,.25); }
.intelligence-document a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.intelligence-document code { background: rgba(0,0,0,.055); }
.intelligence-document mark { padding: 0 .08em; background: var(--ink); color: var(--paper); }

.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 70px var(--gutter) 36px;
  display: grid;
  grid-template-columns: 1.1fr .9fr auto;
  gap: 38px;
  border-top: 1px solid var(--line-strong);
}
.brand--footer { margin-bottom: 20px; }
.site-footer p { max-width: 390px; margin: 0; color: var(--muted); font-size: .82rem; }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links a { width: max-content; color: var(--muted); font-family: var(--mono); font-size: .72rem; text-decoration: none; text-transform: uppercase; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--fg); text-decoration: underline; }
.footer-legal { display: grid; justify-items: end; align-content: start; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--fg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease, color 160ms ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { background: var(--fg); color: var(--bg); }

@media (max-width: 1120px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-note { max-width: 620px; }
  .route-board { height: auto; padding: 32px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; overflow: visible; }
  .route-board::before, .route-lines, .origin-node { display: none; }
  .route-node { position: relative; inset: auto !important; width: auto !important; min-width: 0; box-shadow: none; }
  .node-interton { grid-column: 1 / -1; }
  .route-live { position: relative; right: auto; bottom: auto; width: auto; grid-column: 1 / -1; margin-top: 14px; }
  .project-entry { grid-template-columns: 58px minmax(250px, .8fr) minmax(280px, 1.2fr); }
  .intelligence-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 58px; }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 66px; }
  .primary-nav { display: none; }
  .visit-mode { grid-column: 2; }
  .hero { min-height: auto; padding-top: 90px; }
  .hero h1 { font-size: clamp(4.4rem, 22vw, 8.2rem); white-space: normal; }
  .section-heading, .intelligence-header { grid-template-columns: 1fr; align-items: start; }
  .section-heading > p { max-width: 620px; }
  .route-board { grid-template-columns: 1fr; }
  .node-interton, .route-live { grid-column: auto; }
  .project-entry { grid-template-columns: 48px 1fr; }
  .project-index { grid-row: 1 / span 2; }
  .project-visual { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-body { padding: 36px; }
  .intelligence-meta { grid-template-columns: 1fr; }
  .intelligence-tools { position: relative; top: auto; grid-template-columns: 1fr; gap: 10px; padding-block: 18px; }
  .document-actions { justify-content: flex-start; }
  .document-actions [data-search-result] { width: 100%; }
  .intelligence-layout { grid-template-columns: 1fr; gap: 42px; padding-top: 38px; }
  .document-toc { position: relative; top: auto; max-height: none; overflow-x: auto; padding-bottom: 12px; }
  .document-toc ol { min-width: 760px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 20px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: start; gap: 20px; }
}

@media (max-width: 540px) {
  :root { --gutter: 16px; }
  .site-header { padding-inline: 16px; }
  .brand-name { font-size: 1.05rem; }
  .visit-mode span { display: none; }
  .hero { padding-block: 72px 90px; }
  .hero h1 { font-size: clamp(4rem, 23vw, 6.4rem); }
  .integratio { font-size: clamp(1.16rem, 6vw, 1.42rem); line-height: 1.12; }
  .hero-note { padding-left: 18px; }
  .section-heading h2, .intelligence-header h2 { font-size: clamp(2.5rem, 15vw, 4rem); }
  .route-node { min-height: 84px; padding: 10px; }
  .route-icon { flex-basis: 48px; width: 48px; height: 48px; }
  .route-copy em { max-width: 210px; }
  .project-entry { grid-template-columns: 36px 1fr; }
  .project-index { padding-top: 16px; }
  .project-visual { min-height: 200px; padding: 24px; }
  .project-body { padding: 28px 22px; }
  .intelligence-section { padding-inline: 16px; }
  .document-search { grid-template-columns: 1fr; gap: 6px; }
  .document-actions { gap: 12px; }
  .intelligence-document { font-size: .96rem; }
  .intelligence-document h2 { margin-top: 4rem; }
  .site-footer { grid-template-columns: 1fr; padding-inline: 16px; }
  .footer-legal { grid-column: auto; grid-auto-flow: row; }
  .to-top { right: 12px; bottom: 12px; }
}

@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; }
}

@media print {
  .site-header, .hero, .routes-section, .projects-section, .intelligence-tools, .document-toc, .site-footer, .to-top, .page-grid { display: none !important; }
  body { background: #fff; color: #000; }
  .intelligence-section { padding: 0; background: #fff; color: #000; }
  .intelligence-header { display: block; }
  .intelligence-layout { display: block; padding-top: 20px; }
  .intelligence-document h2 { break-after: avoid; }
  .intelligence-document a { color: #000; text-decoration: none; }
}

/* Protected QR bootstrap page */
.qr-bootstrap-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.qr-bootstrap {
  width: min(100%, 720px);
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid var(--line-strong);
  background: rgba(5,5,5,.96);
}
.qr-bootstrap-mark {
  margin: 24px 0 12px;
  font-family: var(--serif);
  font-size: clamp(7rem, 24vw, 13rem);
  font-style: italic;
  line-height: .7;
}
.qr-bootstrap h1 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: .88;
  letter-spacing: -.075em;
}
.qr-bootstrap > p:not(.eyebrow) {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--muted);
}
.qr-bootstrap [data-state="error"] { color: var(--fg); }
.qr-bootstrap a {
  color: var(--fg);
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  text-underline-offset: 4px;
}
