/* Reference-derived instrumentation. Scoped to content, never the approved intro. */
.instrument-deck,.profile-instruments,.file-scan,.folder-register,.asset-register{--instrument-line:#e5cd714d;color:var(--yellow);font:9px/1.5 Mono,monospace;letter-spacing:.06em}
.home-page .home-bio{grid-column:span 9}.profile-instruments{grid-column:span 3;align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-width:0}.instrument-panel{min-width:0;border:1px solid var(--instrument-line);position:relative;background:linear-gradient(#e5cd7103,#e5cd7107)}.instrument-title{display:flex;justify-content:space-between;align-items:center;padding:5px 8px;background:var(--yellow);color:var(--black);font-size:9px;letter-spacing:.06em}.instrument-title>span:last-child{font-size:13px;line-height:1}.instrument-globe{display:block;width:100%;height:204px;fill:none;stroke:currentColor;stroke-width:.65}.instrument-globe text{stroke:none;fill:currentColor;font:6px Mono,monospace;letter-spacing:0}.orb-axis{opacity:.45}.orb-turn{transform-origin:120px 104px;animation:orb-turn 32s linear infinite}.instrument-bottom{display:flex;justify-content:space-between;gap:8px;margin:0 8px;padding:6px 0;border-top:1px solid var(--instrument-line);font-size:7px}.profile-signal{border:1px solid var(--instrument-line);padding:6px 8px;margin-top:8px}.profile-signal svg{width:100%;height:30px}.profile-signal>span{display:block;font-size:7px;letter-spacing:.08em}.scope-grid{fill:none;stroke:currentColor;stroke-width:.4;opacity:.25}.scope-trace{fill:none;stroke:currentColor;stroke-width:1;stroke-dasharray:1100;animation:signal-trace 5s linear infinite}
.file-scan{display:flex;align-items:center;gap:20px;min-height:40px;padding:7px 18px;border-top:1px solid var(--instrument-line);border-bottom:1px solid var(--instrument-line);overflow:hidden;font-size:8px}.file-scan-line{flex:1;min-width:40px;height:24px}.file-scan-line svg{width:100%;height:100%}.scan-segments{display:flex;gap:3px}.scan-segments i{height:10px;width:4px;background:currentColor;opacity:.4}.scan-segments i:nth-child(3n){opacity:.9}.home-feature>.file-scan{border-bottom:0}.home-profile>.file-scan{border-bottom:0}
.instrument-deck{margin:30px 0 44px}.instrument-deck-label{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--instrument-line);font-size:8px}.instrument-deck-label>span:last-child{color:#a79f7e;font-size:7px}.instrument-deck-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px}.instrument-orbit{grid-column:span 3}.instrument-spectrum{grid-column:span 4}.instrument-nodes{grid-column:span 3}.instrument-scanner{grid-column:span 2}.instrument-deck .instrument-globe{height:166px}.instrument-bars{height:105px;display:flex;align-items:end;gap:4px;padding:13px 10px 0;background:repeating-linear-gradient(0deg,transparent 0 20px,#e5cd7110 20px 21px)}.instrument-bars i{height:var(--bar);flex:1;background:currentColor;opacity:.75;transform-origin:bottom;animation:spectrum 3s ease-in-out infinite alternate;animation-delay:var(--delay)}.instrument-bars i:nth-child(3n){opacity:.35}.instrument-scope{height:61px;padding:10px}.instrument-scope svg{width:100%;height:100%}.instrument-matrix{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:15px;height:166px;background-image:linear-gradient(#e5cd710a 1px,transparent 1px),linear-gradient(90deg,#e5cd710a 1px,transparent 1px);background-size:18px 18px}.instrument-matrix span{border:1px solid currentColor;display:grid;place-items:center;font-size:8px;animation:node-pulse 7s steps(1,end) infinite;animation-delay:var(--delay)}.instrument-radar{height:166px;width:100%;display:block;fill:none;stroke:currentColor;stroke-width:.6;padding:5px}.radar-arm{transform-origin:80px 80px;animation:radar-sweep 12s linear infinite}.instrument-log{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:9px 10px;border:1px solid var(--instrument-line);border-top:0;font-size:7px;color:#aaa17a}.instrument-log span:last-child{color:var(--yellow)}
.folder-register{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding-top:11px;margin-top:18px;border-top:1px solid var(--instrument-line);font-size:7px}.register-bars{letter-spacing:2px;font-size:13px;opacity:.65}.category-project-image{position:relative}.asset-register{position:absolute;inset:auto 10px 10px;display:flex;justify-content:space-between;padding:5px 7px;background:#10120feb;border:1px solid #e5cd7170;font-size:7px;pointer-events:none}.category-file>.file-scan{margin-bottom:28px}.instrument-compact .instrument-orbit{display:none}.instrument-compact .instrument-spectrum{grid-column:span 6}.instrument-compact .instrument-nodes{grid-column:span 4}.instrument-compact .instrument-scanner{grid-column:span 2}.case-page>.instrument-deck,.rentals-case>.instrument-deck,.work-page>.instrument-deck{margin-top:40px}
.about-page>.instrument-deck,.about-page>.file-scan{grid-column:1/-1}
@keyframes orb-turn{to{transform:rotate(360deg)}}@keyframes radar-sweep{to{transform:rotate(360deg)}}@keyframes spectrum{to{transform:scaleY(.45)}}@keyframes node-pulse{0%,70%,100%{background:transparent;color:var(--yellow)}75%,90%{background:var(--yellow);color:var(--black)}}@keyframes signal-trace{0%{stroke-dashoffset:1100}65%,100%{stroke-dashoffset:0}}
@media(min-width:901px){.home-page .home-profile-grid{gap:24px}.home-page .home-bio h1{font-size:clamp(34px,3.4vw,48px)}.home-page .home-description{font-size:14px}.home-page .home-profile-links{margin-top:18px}.home-page .home-socials{gap:8px 16px}}
@media(max-width:1119px){.instrument-deck-grid{gap:8px}.instrument-matrix{gap:5px;padding:10px}.instrument-title{font-size:7px}.instrument-bottom{font-size:6px}.instrument-log{font-size:6px}.instrument-globe{height:170px}}
@media(max-width:900px){.home-page .home-bio{grid-column:span 8}.profile-instruments{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:18px}.profile-instruments .instrument-panel{display:flex;align-items:center}.profile-instruments .instrument-title{writing-mode:vertical-rl;align-self:stretch;min-width:28px;justify-content:space-around}.profile-instruments .instrument-globe{height:110px}.profile-instruments .instrument-bottom{display:none}.profile-signal{margin:0;display:flex;flex-direction:column;justify-content:center}.profile-signal svg{height:55px}.profile-signal>span{font-size:8px}.instrument-deck-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.instrument-deck-grid>.instrument-panel{grid-column:auto}.instrument-compact .instrument-spectrum{grid-column:1/-1}.instrument-deck .instrument-title{font-size:9px}.instrument-bottom{font-size:7px}.instrument-log{font-size:7px}}
@media(max-width:600px){.profile-instruments{margin-top:24px;gap:10px;grid-template-columns:1.2fr 1fr}.profile-instruments .instrument-globe{height:100px}.profile-signal>span{font-size:6px}.profile-instruments .instrument-title{font-size:6px;min-width:20px}.file-scan{gap:9px;padding:7px 10px;font-size:6px}.file-scan>span:nth-of-type(2),.scan-segments{display:none}.instrument-deck-label{flex-direction:column;gap:2px;font-size:8px}.instrument-deck-label>span:last-child{font-size:6px}.instrument-deck{margin:26px 0 34px}.instrument-deck .instrument-title{font-size:7px}.instrument-deck .instrument-globe,.instrument-radar,.instrument-matrix{height:145px}.instrument-bars{height:90px;gap:3px}.instrument-scope{height:55px}.instrument-bottom{font-size:5px;gap:4px}.instrument-matrix{gap:7px;padding:12px}.instrument-log{font-size:6px;display:grid;grid-template-columns:1fr 1fr;gap:6px}.instrument-compact .instrument-bars{height:75px}.home-page .home-profile-grid{padding-bottom:24px}.category-file>.file-scan{margin-bottom:22px}}
@media(prefers-reduced-motion:reduce){.orb-turn,.radar-arm,.instrument-bars i,.instrument-matrix span,.scope-trace{animation:none!important}}

/* Ambient structure lives behind the files, keeping their interiors readable. */
.terminal-ambient{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1;color:var(--yellow);background-image:linear-gradient(#e5cd7105 1px,transparent 1px),linear-gradient(90deg,#e5cd7105 1px,transparent 1px);background-size:48px 48px}.ambient-map{position:absolute;top:80px;right:-120px;width:620px;opacity:.07}.ambient-map .instrument-globe{height:540px}.ambient-radar{position:absolute;left:-140px;top:620px;width:470px;opacity:.07}.ambient-radar .instrument-radar{height:470px}.ambient-log{position:absolute;right:7px;top:450px;font:6px/2 Mono,monospace;writing-mode:vertical-rl;letter-spacing:3px;opacity:.3}.ambient-track{position:absolute;left:0;right:0;top:1350px;height:120px;opacity:.06}.ambient-track svg{width:100%;height:100%}.instrument-deck{opacity:.78}.instrument-deck .instrument-title{background:#e5cd7120;color:var(--yellow);border-bottom:1px solid var(--instrument-line)}.home-page .home-file,.home-page .category-project{background:var(--black)}.home-page .home-profile-grid{gap:var(--home-gutter)}.home-page .home-bio h1{font-size:clamp(38px,4.1vw,58px)}.home-page .home-description{font-size:16px}.home-page .home-profile-links{margin-top:24px}.case-page .case-details,.rentals-case .rental-overview{background:var(--black)}
@media(max-width:900px){.home-page .home-bio{grid-column:span 8}.ambient-map{right:-260px}.home-page .home-bio h1{font-size:35px}.home-page .home-description{font-size:14px}}
@media(max-width:600px){.home-page .home-bio h1{font-size:clamp(31px,8.5vw,41px)}.ambient-log{right:3px;font-size:5px}.ambient-map{top:440px;right:-280px}.ambient-radar{top:1200px;left:-240px}.home-page .home-profile-links{margin-top:18px}}

/* V23: files lead the reading order; moving instruments stay peripheral. */
.home-page .home-profile,.home-page .home-feature,.home-page .home-folder{border-width:2px}
.home-page .home-profile>.home-tab,.home-page .home-feature>.home-tab,.home-page .home-folder-tab{border-width:2px;left:-2px;bottom:calc(100% - 2px);max-width:calc(100% + 4px)}
.home-page>.home-library+.instrument-deck{margin-top:44px;opacity:.64}
.signal-counter{display:inline-flex;vertical-align:middle;gap:1px;font-variant-numeric:tabular-nums;font-size:inherit;line-height:1.5}
.counter-window{display:block;height:1.5em;width:.7em;overflow:hidden}
.counter-reel{display:block;animation:counter-roll var(--duration) steps(10,end) infinite;animation-delay:var(--delay)}
.counter-reel b{display:block;height:1.5em;line-height:1.5;font-weight:400}
.scan-segments i{transform-origin:bottom;animation:edge-meter 3.8s ease-in-out infinite alternate;animation-delay:var(--delay)}
.register-bars{display:block;width:66px;letter-spacing:0;opacity:.6}
.register-bars .instrument-bars{height:13px;padding:0;gap:2px;background:none}
.register-bars .instrument-bars i:nth-child(n+15){display:none}
.ambient-spectrum{position:absolute;right:-35px;top:980px;width:290px;opacity:.07;transform:rotate(180deg)}
.ambient-spectrum .instrument-bars{height:160px;gap:5px}
.ambient-figures{position:absolute;left:8px;top:360px;display:grid;gap:10px;color:var(--yellow);opacity:.22;font:6px/1.5 Mono,monospace;letter-spacing:.08em}
.ambient-figures .signal-counter{font-size:12px;gap:2px}
@keyframes counter-roll{to{transform:translateY(calc(-100% * 10 / 11))}}
@keyframes edge-meter{0%{transform:scaleY(.25);opacity:.3}60%{transform:scaleY(1);opacity:.75}100%{transform:scaleY(.5);opacity:.45}}
@media(max-width:600px){.home-page>.home-library+.instrument-deck{margin-top:34px}.ambient-figures{left:2px;top:1050px;font-size:5px;opacity:.13}.ambient-figures .signal-counter{font-size:8px}.ambient-spectrum{top:1800px;right:-160px}.file-scan .scan-counter{display:inline-flex;gap:4px;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.counter-reel,.scan-segments i{animation:none!important}}
