:root, :root[data-theme="light"] {
  --paper: #F7F6F2;
  --surface: #FFFFFF;
  --ink: #14161A;
  --muted: #5B6470;
  --cobalt: #2447D8;
  --cobalt-deep: #1A35A8;
  --cobalt-soft: rgba(36, 71, 216, .08);
  --rule: #DDDFDA;
  --rule-strong: #C8CBC4;
  --grain-opacity: .045;
  --terminal-bg: #14161A;
  --terminal-ink: #F2F4F7;
  --terminal-muted: #98A2B3;
  --terminal-rule: #343A44;
  --terminal-accent: #8CA3FF;
  --panel-note: #DDE4FF;
  --panel-shadow: rgba(36, 71, 216, .55);
  --header-bg: color-mix(in srgb, var(--paper) 82%, transparent);
  --hover-tint: rgba(36, 71, 216, .045);
  --gutter: clamp(24px, 5vw, 72px);
  --sans: 'IBM Plex Sans', sans-serif;
  --serif: 'IBM Plex Serif', serif;
  --mono: 'IBM Plex Mono', monospace;
}

:root[data-theme="dark"] {
  --paper: #0D0F13;
  --surface: #161922;
  --ink: #E8EAF0;
  --muted: #9AA3B2;
  --cobalt: #5B7CFF;
  --cobalt-deep: #8CA3FF;
  --cobalt-soft: rgba(91, 124, 255, .14);
  --rule: #262B36;
  --rule-strong: #333A48;
  --grain-opacity: .06;
  --terminal-bg: #0A0C10;
  --terminal-ink: #EDF0F6;
  --terminal-muted: #8B94A5;
  --terminal-rule: #232936;
  --terminal-accent: #8CA3FF;
  --panel-note: #DDE4FF;
  --panel-shadow: rgba(0, 0, 0, .6);
  --header-bg: color-mix(in srgb, var(--paper) 78%, transparent);
  --hover-tint: rgba(91, 124, 255, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease-out, color .35s ease-out;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
code, pre { font-family: var(--mono); }
code { font-size: .9em; }
p { max-width: 68ch; }
svg { display: block; }
::selection { background: var(--cobalt); color: var(--surface); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; border-radius: 2px; }

#progress { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 3px; transform-origin: 0 50%; transform: scaleX(0); background: var(--cobalt); }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 70; padding: 10px 14px; background: var(--ink); color: var(--surface); font-size: 14px; transform: translateY(-200%); transition: transform .15s ease-out; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  min-height: 76px; padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: .16em; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; color: var(--cobalt); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.primary-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.primary-nav a { position: relative; text-decoration: none; padding: 4px 0; }
.primary-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .22s ease-out; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.primary-nav a:hover { color: var(--cobalt); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--rule-strong); border-radius: 50%; background: transparent; color: var(--ink);
  cursor: pointer; transition: color .18s ease-out, border-color .18s ease-out, transform .3s cubic-bezier(.2,.7,.2,1), background-color .18s ease-out;
}
.theme-toggle:hover { color: var(--cobalt); border-color: var(--cobalt); transform: rotate(18deg); }
.theme-toggle svg { width: 19px; height: 19px; grid-area: 1 / 1; transition: opacity .25s ease-out, transform .35s cubic-bezier(.2,.7,.2,1); }
.theme-toggle { display: inline-grid; place-items: center; }
.icon-moon { opacity: 1; transform: rotate(0) scale(1); }
.icon-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="light"] .icon-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
:root[data-theme="light"] .icon-sun { opacity: 1; transform: rotate(0) scale(1); }

.hero { padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(64px, 8vw, 104px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: clamp(48px, 7vw, 112px); align-items: center; }
.manual-label { margin: 0 0 28px; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.manual-label::before { content: ''; display: inline-block; width: 34px; height: 1px; margin-right: 12px; background: var(--cobalt); vertical-align: middle; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.05; }
h1 { max-width: 850px; font-size: clamp(3rem, 6.6vw, 6.75rem); letter-spacing: -.03em; line-height: 1; }
h1 em { font-style: italic; color: var(--cobalt); }
.hero-lede { margin: 32px 0 0; max-width: 560px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; }
.hero-note { margin: 18px 0 0; color: var(--cobalt); font-family: var(--mono); font-size: 14px; }
.hero-actions { margin-top: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.button, .install-action button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 24px;
  border: 1px solid var(--cobalt); border-radius: 999px; background: var(--cobalt); color: var(--surface);
  font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease-out, border-color .18s ease-out, color .18s ease-out, transform .18s ease-out;
}
.button:hover, .install-action button:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.button:active, .install-action button:active { transform: translateY(0); }
.text-link { color: var(--cobalt); font-weight: 500; }

.terminal {
  margin: 0; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--terminal-bg); color: var(--terminal-ink);
  font-family: var(--mono); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55);
  transform: rotate(.4deg); will-change: transform;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.terminal:hover { transform: rotate(0deg) translateY(-4px); }
.terminal-head { padding: 13px 18px; border-bottom: 1px solid var(--terminal-rule); border-radius: 12px 12px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--terminal-muted); font-size: 11px; letter-spacing: .1em; }
.terminal-dots { display: inline-flex; gap: 6px; }
.terminal-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--terminal-rule); }
.terminal-dots i:first-child { background: var(--cobalt); }
.terminal-body { padding: 26px 24px 30px; font-size: 13px; line-height: 1.9; border-radius: 0 0 12px 12px; }
.terminal-body p { margin: 0 0 12px; }
.terminal-muted { color: var(--terminal-muted); }
.terminal-output { margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--terminal-rule); border-bottom: 1px solid var(--terminal-rule); }
.terminal-output p { margin: 0; }
.terminal-mark { color: var(--terminal-accent); display: inline-block; width: 20px; }
.terminal-caret { display: inline-block; width: 8px; height: 15px; margin-left: 3px; background: var(--terminal-accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
.terminal-fade { opacity: 0; transition: opacity .4s ease-out; }
.terminal-fade.shown { opacity: 1; }
@keyframes blink { 50% { opacity: 0; } }

.marquee { overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }
.marquee-group span { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee-group span::after { content: '·'; margin: 0 24px; color: var(--cobalt); }
@keyframes marquee { to { transform: translateX(-50%); } }

.route-section, .commands-section, .artifacts-section, .runtimes-section { padding: clamp(64px, 8vw, 104px) var(--gutter); border-top: 1px solid var(--rule); }
.section-intro { margin-bottom: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 460px); gap: 48px; align-items: end; }
.section-intro h2 { position: relative; max-width: 720px; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.025em; }
.section-intro h2::after { content: ''; display: block; width: 84px; height: 4px; margin-top: 20px; background: var(--cobalt); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s cubic-bezier(.2,.7,.2,1) .15s; }
.section-intro h2.in-view::after, h2[data-reveal].in-view::after { transform: scaleX(1); }
.section-intro p { margin: 0; color: var(--muted); font-size: 18px; }

.route { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 2px solid var(--rule-strong); }
.route-progress { position: absolute; top: -2px; left: 0; height: 2px; width: 100%; background: var(--cobalt); box-shadow: 0 0 12px var(--cobalt-soft); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.route-step { position: relative; min-width: 0; padding: 36px 18px 16px 0; transition: transform .3s cubic-bezier(.2,.7,.2,1); --lit: 0; }
.route-step:hover { transform: translateY(-4px); }
.route-step::before {
  content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--rule-strong); background: var(--paper);
  transition: background-color .25s ease-out, border-color .25s ease-out, box-shadow .25s ease-out;
}
.route-step.in-view::before {
  background: color-mix(in srgb, var(--cobalt) calc(var(--lit, 1) * 100%), var(--paper));
  border-color: color-mix(in srgb, var(--cobalt) calc(var(--lit, 1) * 100%), var(--rule-strong));
  box-shadow: 0 0 0 calc(var(--lit, 0) * 5px) var(--cobalt-soft);
}
.route-step code { transition: color .25s ease-out; }
.route-step.in-view code { color: color-mix(in srgb, var(--ink) calc(45% + var(--lit, 0) * 55%), var(--muted)); }
.step-number { display: block; margin-bottom: 20px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.route-step code { display: block; min-height: 52px; font-size: clamp(11px, 1.05vw, 14px); font-weight: 500; overflow-wrap: anywhere; }
.artifact-node { display: inline-block; margin-top: 20px; padding-top: 8px; border-top: 1px solid var(--rule-strong); color: var(--muted); font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; }

.command-list { border-bottom: 1px solid var(--ink); }
.command-list details { border-top: 1px solid var(--ink); transition: background-color .18s ease-out; }
.command-list details:hover { background: var(--hover-tint); }
.command-list details[open] { background: var(--hover-tint); }
.command-list summary { position: relative; padding: 26px 8px 26px 0; display: grid; grid-template-columns: 56px minmax(0, 1fr) 32px; align-items: center; cursor: pointer; list-style: none; }
.command-list summary::before { content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.command-list details[open] summary::before { transform: scaleX(1); }
.command-list summary::-webkit-details-marker { display: none; }
.command-list summary:hover code { color: var(--cobalt); }
.command-list summary code { font-size: clamp(16px, 2vw, 24px); transition: color .18s ease-out, transform .3s cubic-bezier(.2,.7,.2,1); }
.command-list details[open] summary code { color: var(--cobalt); }
.command-index { color: var(--muted); font-family: var(--mono); font-size: 12px; transition: color .2s ease-out; }
.command-list details[open] .command-index { color: var(--cobalt); }
.detail-marker {
  justify-self: end; display: inline-grid; place-items: center; width: 34px; height: 34px;
  color: var(--cobalt); font-family: var(--mono); font-size: 24px; line-height: 1;
  border: 1px solid var(--rule-strong); border-radius: 50%;
  transition: transform .35s cubic-bezier(.34,1.4,.4,1), background-color .25s ease-out, color .25s ease-out, border-color .25s ease-out;
}
.command-list summary:hover .detail-marker { border-color: var(--cobalt); }
.command-list details[open] .detail-marker { transform: rotate(225deg); background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.command-detail { padding: 4px 0 34px 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 48px; }
.command-detail.open-anim { animation: detail-in .45s cubic-bezier(.2,.7,.2,1) both; }
.command-detail.open-anim > * { animation: detail-child .5s cubic-bezier(.2,.7,.2,1) both; }
.command-detail.open-anim > *:nth-child(2) { animation-delay: .07s; }
@keyframes detail-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 -10% 0); } }
@keyframes detail-child { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.command-detail > p { margin: 0; }
.command-detail dl { margin: 0; }
.command-detail dl div { padding: 10px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 72px 1fr; gap: 16px; }
.command-detail dt { color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.command-detail dd { margin: 0; font-size: 14px; }

.artifact-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.code-panel { min-width: 0; background: var(--terminal-bg); color: var(--terminal-ink); border-radius: 10px; overflow: hidden; border: 1px solid var(--rule-strong); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease-out; }
.code-panel:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.6); }
.code-panel pre { margin: 0; padding: 28px; overflow-x: auto; font-size: 13px; line-height: 1.85; }
.trace { margin: 0; padding: 0; list-style: none; }
.trace li { position: relative; min-height: 76px; padding: 0 0 28px 40px; opacity: 0; transform: translateX(18px); transition: opacity .5s ease-out, transform .5s cubic-bezier(.2,.7,.2,1); }
.trace li.in-view { opacity: 1; transform: translateX(0); }
.trace li::before { content: ''; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cobalt); background: var(--paper); transition: background-color .3s ease-out, box-shadow .3s ease-out; }
.trace li.in-view::before { background: var(--cobalt); box-shadow: 0 0 0 5px var(--cobalt-soft); }
.trace li:not(:last-child)::after { content: ''; position: absolute; left: 5px; top: 19px; bottom: 0; width: 1px; background: var(--cobalt); opacity: .5; transform: scaleY(0); transform-origin: 0 0; transition: transform .6s ease-out .2s; }
.trace li.in-view:not(:last-child)::after { transform: scaleY(1); }
.trace span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.trace code { font-size: 15px; }

.table-scroll { max-width: 100%; overflow-x: auto; border-radius: 8px; }
.runtime-table { width: 100%; border-collapse: collapse; text-align: left; }
.runtime-table th { padding: 12px 24px 12px 0; border-bottom: 2px solid var(--ink); color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.runtime-table td { padding: 20px 24px 20px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.runtime-table tbody tr { opacity: 0; transform: translateY(14px); transition: opacity .45s ease-out, transform .45s cubic-bezier(.2,.7,.2,1), background-color .15s ease-out; }
.runtime-table tbody tr.in-view { opacity: 1; transform: translateY(0); }
.runtime-table tbody tr.in-view:hover { background: var(--hover-tint); }
.runtime-table td:first-child { font-weight: 600; }
.runtime-table code { white-space: nowrap; background: var(--cobalt-soft); color: var(--cobalt-deep); padding: 3px 7px; border-radius: 5px; font-size: .85em; }
:root[data-theme="dark"] .runtime-table code { color: var(--cobalt); }

.install-section { padding: 0 var(--gutter) clamp(64px, 8vw, 104px); scroll-margin-top: 90px; }
.install-panel { padding: clamp(32px, 5vw, 64px); background: var(--cobalt); color: #fff; border-radius: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 48px; align-items: center; box-shadow: 0 32px 64px -32px var(--panel-shadow); }
.install-panel h2 { max-width: 560px; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.025em; }
.install-panel p { margin: 18px 0 0; color: var(--panel-note); }
.install-action { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.install-action > code { display: block; width: 100%; padding: 18px 20px; background: var(--surface); color: var(--ink); border-radius: 8px; overflow-wrap: anywhere; }
.install-action button { border-color: var(--surface); background: var(--surface); color: var(--cobalt-deep); align-self: flex-start; }
.install-action button:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.install-action button:focus-visible { outline-color: var(--surface); }
.install-action button.copied { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.install-note { font-size: 14px; }
.install-panel .install-note { color: var(--panel-note); }
.install-note code, .docs-install + .install-note code { background: var(--cobalt-soft); color: var(--cobalt-deep); padding: 2px 6px; border-radius: 4px; }
.install-panel .install-note code { background: rgba(255,255,255,.16); color: inherit; }
.site-footer { padding: 36px var(--gutter); border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; }
.site-footer p { margin: 0; color: var(--muted); }

.docs-main { max-width: 1440px; margin: 0 auto; }
.docs-hero { padding: clamp(56px, 8vw, 96px) var(--gutter) 56px; }
.docs-hero h1 { font-size: clamp(48px, 7vw, 96px); letter-spacing: -.03em; }
.docs-hero h1::after { content: ''; display: block; width: 72px; height: 4px; margin-top: 28px; background: var(--cobalt); }
.docs-hero > p:not(.manual-label) { margin: 28px 0 0; max-width: 650px; font-size: 20px; }
.docs-toc { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-family: var(--mono); font-size: 12px; }
.docs-toc a { color: var(--cobalt); text-decoration: none; border-bottom: 1px solid transparent; }
.docs-toc a:hover { border-bottom-color: var(--cobalt); }
.docs-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding: 0 var(--gutter); }
.docs-rail { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 4px; padding-bottom: 64px; border-right: 1px solid var(--rule); }
.rail-label { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.docs-rail a { position: relative; padding: 7px 0 7px 16px; font-size: 14px; text-decoration: none; color: var(--muted); border-left: 2px solid transparent; margin-left: -1px; transition: color .15s ease-out, border-color .15s ease-out; }
.docs-rail a:hover { color: var(--ink); }
.docs-rail a.active { color: var(--cobalt); border-left-color: var(--cobalt); font-weight: 500; }
.docs-content { min-width: 0; }
.docs-section { padding: 56px 0; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.docs-section:first-child { border-top: 0; padding-top: 8px; }
.docs-section h2 { position: relative; margin-bottom: 28px; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.025em; }
.docs-section h2::after { content: ''; display: block; width: 64px; height: 4px; margin-top: 16px; background: var(--cobalt); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s cubic-bezier(.2,.7,.2,1) .1s; }
.docs-section h2.in-view::after { transform: scaleX(1); }
.docs-section h3 { margin: 40px 0 20px; font-size: 26px; }
.docs-section > p { max-width: 850px; }
.docs-section .code-panel { margin: 28px 0; max-width: 1000px; }
.docs-install { margin: 32px 0; max-width: 820px; padding: 24px; background: var(--cobalt); border-radius: 12px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.docs-install > code { background: var(--surface); color: var(--ink); border-radius: 8px; padding: 16px 18px; }
.docs-install button { border-color: var(--surface); background: var(--surface); color: var(--cobalt-deep); align-self: flex-start; border-radius: 999px; min-height: 44px; padding: 10px 20px; cursor: pointer; }
.docs-install button:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.docs-install button:focus-visible { outline-color: var(--surface); }
.docs-install + .install-note code { background: var(--cobalt-soft); color: var(--cobalt-deep); padding: 2px 6px; border-radius: 4px; }
.artifact-definitions { max-width: 1000px; margin: 32px 0 0; }
.artifact-definitions div { padding: 16px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.artifact-definitions dt { font-family: var(--mono); font-size: 13px; padding-top: 2px; }
.artifact-definitions dd { margin: 0; }
.manual-steps { max-width: 850px; padding-left: 24px; }
.manual-steps li { padding: 8px 0 8px 12px; }
.manual-steps li::marker { color: var(--cobalt); font-family: var(--mono); font-weight: 500; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
.install-panel[data-reveal] { transform: translateY(28px) scale(.985); }
.install-panel[data-reveal].in-view { transform: translateY(0) scale(1); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .terminal { max-width: 680px; transform: none; }
  .route { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .route-step code { font-size: 13px; }
  .command-detail, .artifact-layout, .install-panel { grid-template-columns: 1fr; }
  .docs-body { grid-template-columns: 1fr; }
  .docs-rail { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { min-height: 68px; padding-top: 12px; padding-bottom: 12px; }
  .brand { letter-spacing: .1em; }
  .primary-nav { gap: 18px; font-size: 13px; }
  .hero { padding-top: 56px; padding-bottom: 64px; gap: 44px; }
  h1 { font-size: clamp(44px, 12.5vw, 72px); }
  .hero-lede { margin-top: 24px; }
  .route-section, .commands-section, .artifacts-section, .runtimes-section { padding-top: 60px; padding-bottom: 60px; }
  .section-intro { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .route { display: block; border-top: 0; border-left: 2px solid var(--rule-strong); }
  .route-progress { top: 0; left: -2px; width: 2px; height: 100%; transform: scaleY(0); transform-origin: 0 0; }
  .route-step { padding: 0 0 32px 28px; }
  .route-step::before { top: 4px; left: -7px; }
  .route-step code { min-height: 0; }
  .step-number { margin-bottom: 8px; }
  .artifact-node { margin-top: 8px; }
  .command-list summary { grid-template-columns: 36px minmax(0, 1fr) 24px; padding: 22px 4px 22px 0; }
  .command-detail { padding-left: 36px; gap: 24px; }
  .command-detail dl div { grid-template-columns: 60px 1fr; }
  .install-section { padding-bottom: 64px; }
  .install-panel { gap: 32px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .artifact-definitions div { grid-template-columns: 1fr; gap: 4px; }
  .docs-hero { padding-top: 48px; }
  .docs-section { padding: 44px 0; }
}

@media (max-width: 380px) {
  .primary-nav a:first-child { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  [data-reveal], .trace li, .runtime-table tbody tr { opacity: 1 !important; transform: none !important; }
  .section-intro h2::after, .docs-section h2::after, .trace li::after { transform: scaleX(1) scaleY(1) !important; }
  .terminal-caret { animation: none; }
  .marquee-track { animation: none; }
  body { transition: none; }
}

/* Self-hosted IBM Plex (SIL OFL 1.1) — latin subset only. */
@font-face {
font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/plex-mono-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/plex-mono-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/plex-sans-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/plex-sans-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/plex-sans-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'IBM Plex Serif';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/plex-serif-500-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/plex-serif-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/plex-serif-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
