:root {
  color-scheme: dark;
  --ink: #08070b;
  --ink-2: #0d0b12;
  --paper: #f3f0e9;
  --muted: #918b9d;
  --line: rgba(255, 255, 255, .14);
  --violet: #a855f7;
  --violet-bright: #d8b4fe;
  --blue: #168bff;
  --cyan: #36d9ff;
  --lime: #c7ff3d;
  --danger: #ff5c35;
  --gutter: clamp(22px, 5vw, 84px);
  --max: 1500px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--ink); color: var(--paper); }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: "SFMono-Regular", "Roboto Mono", Consolas, monospace; }
::selection { background: var(--lime); color: var(--ink); }

.page-progress { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 2px; background: rgba(255,255,255,.04); }
.page-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--blue), var(--violet), var(--lime)); }

.site-header { position: fixed; z-index: 70; top: 2px; left: 0; right: 0; height: 76px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(8,7,11,.72); backdrop-filter: blur(24px) saturate(135%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 760; letter-spacing: -.02em; }
.brand img { display: block; }
.brand i { width: 1px; height: 17px; background: currentColor; opacity: .35; }
.brand small { color: var(--muted); font-size: 9px; font-weight: 720; letter-spacing: .16em; text-transform: uppercase; }
.header-status { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.55); font: 650 10px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.header-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 20px rgba(199,255,61,.7); }
.drawer-toggle { display: none; align-items: center; gap: 16px; padding: 11px 13px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; font-size: 11px; font-weight: 720; text-transform: uppercase; }
.drawer-toggle b { position: relative; width: 16px; height: 12px; border-top: 1px solid; border-bottom: 1px solid; }
.drawer-toggle b::after { content: ""; position: absolute; top: 5px; left: 0; width: 16px; border-top: 1px solid; }

.flow-drawer { position: fixed; z-index: 80; top: 100px; right: 18px; width: 76px; height: min(690px, calc(100svh - 124px)); display: grid; grid-template-columns: 76px 0; border: 1px solid rgba(255,255,255,.17); background: rgba(12,10,16,.9); box-shadow: 0 30px 90px rgba(0,0,0,.42); backdrop-filter: blur(24px) saturate(130%); transition: width .55s var(--ease), grid-template-columns .55s var(--ease); overflow: hidden; }
.flow-drawer.is-open { width: 344px; grid-template-columns: 76px 268px; }
.drawer-rail { position: relative; width: 76px; height: 100%; display: flex; flex-direction: column; align-items: center; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; }
.drawer-rail span { margin-top: 28px; color: var(--muted); font: 760 9px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .2em; writing-mode: vertical-rl; }
.drawer-rail b { margin: auto 0; font-family: "Arial Narrow", "Helvetica Neue", sans-serif; font-size: 45px; font-stretch: condensed; font-weight: 850; letter-spacing: -.08em; }
.drawer-rail i { position: relative; width: 1px; height: 110px; margin-bottom: 27px; background: rgba(255,255,255,.18); }
.drawer-rail i::after { content: ""; position: absolute; top: 0; left: -2px; width: 5px; height: 28%; background: var(--lime); box-shadow: 0 0 18px rgba(199,255,61,.55); transform: translateY(var(--drawer-progress, 0%)); transition: transform .45s var(--ease); }
.drawer-panel { min-width: 268px; padding: 22px 20px; opacity: 0; transform: translateX(20px); transition: opacity .3s ease, transform .5s var(--ease); }
.flow-drawer.is-open .drawer-panel { opacity: 1; transform: none; }
.drawer-heading { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-heading > span { color: var(--muted); font: 720 9px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .16em; }
.drawer-heading strong { font: 540 12px/1 "SFMono-Regular", Consolas, monospace; }
.drawer-heading strong b { color: var(--lime); font-size: 17px; }
.drawer-panel nav { margin-top: 10px; }
.drawer-panel nav a { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 11px; align-items: center; min-height: 63px; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.55); transition: color .25s ease, transform .35s var(--ease); }
.drawer-panel nav a:hover { color: var(--paper); transform: translateX(3px); }
.drawer-panel nav a i { position: relative; width: 9px; height: 9px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.drawer-panel nav a i::before { content: attr(data-step); }
.drawer-panel nav a.is-active { color: var(--paper); }
.drawer-panel nav a.is-active i { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 16px rgba(199,255,61,.5); }
.drawer-panel nav a span { font-size: 12px; font-weight: 650; letter-spacing: -.01em; }
.drawer-panel nav a small { display: block; margin-bottom: 4px; color: var(--muted); font: 680 8px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .13em; }
.drawer-panel nav a.is-active small { color: var(--lime); }
.drawer-rule { margin: 18px 0 0; color: rgba(255,255,255,.36); font: 530 9px/1.7 "SFMono-Regular", Consolas, monospace; }

main { position: relative; z-index: 1; }
.hero { position: relative; min-height: 100svh; padding: clamp(132px, 15vh, 190px) max(calc((100vw - var(--max)) / 2), var(--gutter)) 66px; display: grid; grid-template-columns: minmax(0, .86fr) minmax(530px, 1.14fr); gap: clamp(52px, 7vw, 130px); align-content: center; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 82% 26%, rgba(108,57,190,.22), transparent 30rem), radial-gradient(circle at 8% 88%, rgba(15,115,218,.17), transparent 30rem), linear-gradient(145deg,#08070b,#0b0910 58%,#07070a); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .13; background-image: radial-gradient(rgba(255,255,255,.5) .55px, transparent .7px); background-size: 7px 7px; mask-image: linear-gradient(#000, transparent 92%); }
.hero-grid { position: absolute; z-index: -1; inset: 77px 0 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 82px 82px; mask-image: radial-gradient(circle at 55% 45%, #000, transparent 72%); }
.eyebrow, .section-kicker { margin: 0; color: rgba(255,255,255,.48); font: 720 10px/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { color: var(--cyan); }
.hero h1 { max-width: 770px; margin: 26px 0 30px; font-family: "Arial Narrow", "SF Pro Display", "Helvetica Neue", sans-serif; font-size: clamp(70px, 9vw, 154px); font-stretch: condensed; font-weight: 900; letter-spacing: -.085em; line-height: .73; text-transform: uppercase; }
.hero h1 span { color: var(--paper); }
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px var(--violet-bright); text-shadow: 0 0 44px rgba(168,85,247,.18); }
.hero-intro { max-width: 560px; margin: 0; color: #b5afbc; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.52; }
.start-link { display: inline-flex; align-items: center; gap: 28px; margin-top: 38px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.35); font: 720 11px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.start-link span { color: var(--lime); font-size: 18px; transition: transform .3s var(--ease); }
.start-link:hover span { transform: translateY(5px); }
.branch-map { position: relative; min-height: 570px; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 22px; padding: 24px; border: 1px solid var(--line); background: rgba(8,7,11,.54); box-shadow: 0 35px 110px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.05); backdrop-filter: blur(18px); }
.branch-map::before { content: "BRANCH_MAP / LIVE"; position: absolute; top: -25px; right: 0; color: rgba(255,255,255,.33); font: 640 8px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .18em; }
.branch { position: relative; min-height: 238px; padding: 24px 22px; overflow: hidden; border-top: 2px solid currentColor; background: linear-gradient(180deg, color-mix(in srgb, currentColor 13%, transparent), transparent 75%); }
.branch::after { content: ""; position: absolute; right: -54px; bottom: -54px; width: 150px; height: 150px; border: 1px solid currentColor; border-radius: 50%; opacity: .22; box-shadow: 0 0 80px currentColor; }
.branch--main { color: var(--blue); }
.branch--develop { color: var(--violet); }
.branch > span { color: currentColor; font: 700 8px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; }
.branch strong { display: block; margin-top: 45px; color: var(--paper); font-family: "Arial Narrow", "Helvetica Neue", sans-serif; font-size: clamp(42px, 4vw, 68px); font-stretch: condensed; font-weight: 900; letter-spacing: -.07em; }
.branch p { margin: 8px 0 0; color: rgba(255,255,255,.56); font-size: 12px; }
.flow-arrow { position: absolute; left: 14%; right: 14%; height: 76px; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 24px 0 40px; color: var(--ink); clip-path: polygon(0 30%, 82% 30%, 82% 0, 100% 50%, 82% 100%, 82% 70%, 0 70%, 12% 50%); }
.flow-arrow i { position: absolute; inset: 0; background: currentColor; opacity: .14; }
.flow-arrow span, .flow-arrow strong { position: relative; z-index: 1; }
.flow-arrow span { font-family: "Arial Narrow", "Helvetica Neue", sans-serif; font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
.flow-arrow strong { font: 800 9px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.flow-arrow--ship { top: 282px; color: var(--ink); background: var(--lime); transform: rotate(180deg); }
.flow-arrow--ship span, .flow-arrow--ship strong { transform: rotate(180deg); }
.flow-arrow--fix { top: 365px; background: var(--cyan); }
.hero-rule { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, .38fr) 1fr; gap: 32px; align-items: baseline; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-rule > span { color: var(--lime); font: 700 9px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .15em; }
.hero-rule p { margin: 0; font-size: clamp(18px, 2vw, 30px); font-weight: 470; letter-spacing: -.035em; }
.hero-rule b:first-child { color: var(--lime); }
.hero-rule b:last-child { color: var(--cyan); }

.doc-section { position: relative; max-width: var(--max); min-height: 86svh; margin: 0 auto; padding: clamp(110px, 14vw, 210px) var(--gutter); display: grid; grid-template-columns: 120px minmax(280px, .75fr) minmax(470px, 1.25fr); gap: clamp(28px, 5vw, 90px); align-items: center; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.doc-section::before { content: ""; position: absolute; z-index: -1; width: 42vw; height: 42vw; border-radius: 50%; filter: blur(110px); opacity: .09; pointer-events: none; }
.doc-section:nth-of-type(odd)::before { left: -35vw; top: 8%; background: var(--violet); }
.doc-section:nth-of-type(even)::before { right: -35vw; bottom: 0; background: var(--blue); }
.section-marker { align-self: start; padding-top: 8px; }
.section-marker span { display: block; font-family: "Arial Narrow", "Helvetica Neue", sans-serif; font-size: 66px; font-weight: 900; letter-spacing: -.08em; line-height: .8; }
.section-marker small { display: block; margin-top: 13px; color: var(--muted); font: 700 8px/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: .16em; }
.section-copy h2 { max-width: 620px; margin: 15px 0 24px; font-family: "SF Pro Display", "Helvetica Neue", Arial, sans-serif; font-size: clamp(48px, 5vw, 84px); font-weight: 540; letter-spacing: -.065em; line-height: .94; }
.section-copy > p:not(.section-kicker) { max-width: 570px; margin: 0; color: #aaa4b0; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.58; }
.section-copy code { padding: .12em .3em; background: rgba(255,255,255,.07); color: var(--violet-bright); font-size: .86em; }
.section-copy aside { max-width: 560px; margin-top: 31px; padding: 20px 0 0 24px; border-top: 1px solid var(--line); border-left: 2px solid var(--violet); color: #8f8997; font-size: 13px; line-height: 1.6; }
.section-copy aside strong { display: block; margin-bottom: 3px; color: var(--paper); }
.section-copy aside.warning { border-left-color: var(--danger); }
.branch-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; padding: 11px 15px; border: 1px solid currentColor; color: var(--violet-bright); font: 700 9px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; }
.branch-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 16px currentColor; }
.direction { display: flex; align-items: center; gap: 17px; margin-top: 42px; font-family: "Arial Narrow", "Helvetica Neue", sans-serif; font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.direction i { position: relative; width: 130px; height: 2px; background: currentColor; }
.direction i::after { content: ""; position: absolute; top: -5px; right: -1px; width: 10px; height: 10px; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
.direction--ship { color: var(--lime); }
.direction--fix { color: var(--cyan); }
.terminal { position: relative; min-width: 0; border: 1px solid rgba(255,255,255,.18); background: #0b0910; box-shadow: 0 34px 110px rgba(0,0,0,.32); }
.terminal::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .11; background-image: linear-gradient(transparent 50%, rgba(255,255,255,.12) 50%); background-size: 100% 4px; }
.terminal-bar { position: relative; z-index: 1; min-height: 50px; padding: 0 15px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.terminal-bar > span { display: flex; gap: 6px; }
.terminal-bar > span i { width: 7px; height: 7px; border-radius: 50%; background: #403a48; }
.terminal-bar > span i:first-child { background: var(--danger); }
.terminal-bar > span i:nth-child(2) { background: var(--lime); }
.terminal-bar b { color: #77717f; font: 650 8px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .15em; }
.terminal-bar button { justify-self: end; padding: 8px 11px; border: 1px solid var(--line); background: transparent; color: #b9b3bf; cursor: pointer; font: 680 9px/1 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.terminal-bar button:hover, .terminal-bar button.is-copied { border-color: var(--lime); background: rgba(199,255,61,.08); color: var(--lime); }
.terminal pre { position: relative; z-index: 1; margin: 0; padding: clamp(24px, 3vw, 42px); overflow-x: auto; color: #e9e5ec; font-size: clamp(12px, 1.05vw, 16px); line-height: 1.85; tab-size: 2; }
.terminal code { font: inherit; }
.terminal .comment { color: #706a78; }
.terminal-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; min-height: 45px; padding: 0 clamp(24px, 3vw, 42px); border-top: 1px solid rgba(199,255,61,.24); color: var(--lime); font: 700 8px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .15em; }
.terminal-note span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 15px currentColor; }
.terminal-note--danger { border-color: rgba(255,92,53,.3); color: var(--danger); }
.terminal-note--cyan { border-color: rgba(54,217,255,.28); color: var(--cyan); }
.terminal-stack { min-width: 0; display: grid; gap: 18px; }
.edit-pause { min-height: 104px; padding: 22px 25px; display: grid; grid-template-columns: auto 1fr; gap: 8px 17px; align-items: center; border: 1px solid rgba(255,92,53,.5); background: linear-gradient(90deg, rgba(255,92,53,.12), rgba(255,92,53,.025)); }
.edit-pause > span { grid-row: 1 / 3; display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; background: var(--danger); color: var(--ink); font: 900 11px/1 "SFMono-Regular", Consolas, monospace; box-shadow: 0 0 30px rgba(255,92,53,.24); }
.edit-pause strong { align-self: end; font-size: 14px; letter-spacing: -.01em; }
.edit-pause i { align-self: start; color: #9f8790; font-size: 11px; font-style: normal; }
.line-guide { position: relative; z-index: 1; border-top: 1px solid var(--line); background: #0e0c13; }
.line-guide summary { min-height: 62px; padding: 0 clamp(20px, 3vw, 34px); display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; cursor: pointer; list-style: none; }
.line-guide summary::-webkit-details-marker { display: none; }
.line-guide summary span { color: var(--lime); font: 720 8px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; }
.line-guide summary strong { font-size: 12px; font-weight: 650; }
.line-guide summary i { position: relative; width: 14px; height: 14px; }
.line-guide summary i::before, .line-guide summary i::after { content: ""; position: absolute; top: 6px; left: 1px; width: 12px; border-top: 1px solid #89828f; transition: transform .25s ease; }
.line-guide:not([open]) summary i::after { transform: rotate(90deg); }
.line-list { border-top: 1px solid rgba(255,255,255,.08); }
.line-list > div { padding: 18px clamp(20px, 3vw, 34px); display: grid; grid-template-columns: minmax(210px, .75fr) 1fr; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.07); }
.line-list code { align-self: start; color: #e9e5ec; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.line-list p { margin: 0; color: #8f8996; font-size: 12px; line-height: 1.55; }
.line-list p code { padding: .08em .25em; background: rgba(255,255,255,.06); color: var(--violet-bright); font-size: .9em; }
.copy-safe { margin: 0; padding: 15px clamp(20px, 3vw, 34px); display: flex; align-items: center; gap: 9px; color: #716b78; font: 650 8px/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.copy-safe span { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(199,255,61,.5); }
.doc-section--signal .section-marker span, .doc-section--signal .section-kicker { color: var(--lime); }
.doc-section--danger .section-marker span, .doc-section--danger .section-kicker { color: var(--danger); }
.doc-section--cyan .section-marker span, .doc-section--cyan .section-kicker { color: var(--cyan); }
.doc-section--final .section-marker span, .doc-section--final .section-kicker { color: var(--violet-bright); }

.final-rule { min-height: 85svh; padding: 120px var(--gutter); display: grid; place-content: center; text-align: center; background: var(--paper); color: var(--ink); }
.final-rule .section-kicker { color: rgba(8,7,11,.5); }
.final-rule h2 { max-width: 1200px; margin: 24px auto 45px; font-family: "Arial Narrow", "Helvetica Neue", sans-serif; font-size: clamp(54px, 8vw, 128px); font-weight: 900; letter-spacing: -.07em; line-height: .82; text-transform: uppercase; }
.final-rule h2 span { color: #649600; }
.final-rule h2 em { color: #0787a8; font-style: normal; }
.final-rule a { justify-self: center; display: inline-flex; align-items: center; gap: 24px; padding-bottom: 8px; border-bottom: 1px solid; font: 750 10px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }

footer { min-height: 180px; padding: 50px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); }
footer p, footer > a:last-child { color: var(--muted); font: 620 9px/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.copy-toast { position: fixed; z-index: 120; left: 50%; bottom: 28px; padding: 13px 18px; border: 1px solid rgba(199,255,61,.5); background: #10120b; color: var(--lime); box-shadow: 0 18px 60px rgba(0,0,0,.4); font: 700 10px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; transform: translate(-50%, 25px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .4s var(--ease); }
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; padding-right: calc(var(--gutter) + 58px); }
  .hero-copy { max-width: 880px; }
  .branch-map { width: min(840px, 100%); }
  .hero-rule { grid-column: auto; }
  .doc-section { grid-template-columns: 78px minmax(0, 1fr); }
  .doc-section > .terminal, .doc-section > .terminal-stack { grid-column: 2; }
}

@media (max-width: 1020px) {
  .drawer-toggle { display: flex; }
  .flow-drawer { top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; height: 70px; grid-template-columns: 0 1fr; overflow: visible; transform: translateY(calc(100% + 18px)); transition: transform .45s var(--ease), height .45s var(--ease); }
  .flow-drawer.is-open { width: auto; height: min(650px, calc(100svh - 95px)); grid-template-columns: 0 1fr; transform: none; }
  .drawer-rail { display: none; }
  .drawer-panel { grid-column: 2; min-width: 0; padding: 22px; opacity: 1; transform: none; overflow-y: auto; }
  .drawer-panel nav a { min-height: 62px; }
  .drawer-toggle[aria-expanded="true"] b { border-color: transparent; }
  .drawer-toggle[aria-expanded="true"] b::before,
  .drawer-toggle[aria-expanded="true"] b::after { content: ""; position: absolute; top: 5px; left: 0; width: 16px; border-top: 1px solid; transform: rotate(45deg); }
  .drawer-toggle[aria-expanded="true"] b::after { transform: rotate(-45deg); }
}

@media (max-width: 760px) {
  .site-header { height: 68px; }
  .brand small, .brand i, .header-status { display: none; }
  .hero { min-height: auto; padding: 118px var(--gutter) 70px; gap: 60px; }
  .hero h1 { font-size: clamp(66px, 23vw, 102px); }
  .hero-rule { grid-template-columns: 1fr; gap: 13px; }
  .branch-map { min-height: 560px; padding: 14px; gap: 10px; }
  .branch { min-height: 205px; padding: 17px 13px; }
  .branch strong { margin-top: 54px; font-size: clamp(31px, 10vw, 50px); }
  .branch p { font-size: 9px; }
  .flow-arrow { left: 8%; right: 8%; padding: 0 18px 0 34px; }
  .flow-arrow--ship { top: 248px; }
  .flow-arrow--fix { top: 330px; }
  .flow-arrow span { font-size: 20px; }
  .flow-arrow strong { font-size: 7px; }
  .doc-section { min-height: auto; padding: 110px var(--gutter); grid-template-columns: 1fr; gap: 35px; }
  .section-marker { display: flex; align-items: flex-end; gap: 16px; }
  .section-marker span { font-size: 52px; }
  .section-marker small { margin: 0 0 5px; }
  .doc-section > .terminal { grid-column: 1; }
  .doc-section > .terminal-stack { grid-column: 1; }
  .terminal pre { font-size: 11px; line-height: 1.9; }
  .line-list > div { grid-template-columns: 1fr; gap: 7px; }
  .line-guide summary { grid-template-columns: 1fr auto; gap: 5px 12px; padding-block: 14px; }
  .line-guide summary span { grid-column: 1 / -1; }
  .edit-pause { grid-template-columns: auto 1fr; }
  .direction { font-size: 21px; }
  .direction i { width: 82px; }
  footer { align-items: flex-start; flex-direction: column; }
}

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