@import url('../../../assets/portfolio/depth.css');
.switchyard{--bg:#17191d!important;--fg:#e8e9e3!important;--surface:#25282d!important;--line:#41454d!important;--accent:#c6f061!important;--on-accent:#17191d!important}.switchyard .site-head{background:#17191d}.switchyard .brand{font:550 23px Mono}.yard-opening{background:radial-gradient(ellipse at 50% 70%,#3b4149,#17191d 70%);padding:20px 4vw 45px;overflow:hidden}.yard-topline{font:11px Mono;display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #444;padding-bottom:20px}.yard-title{text-align:center;margin-top:50px}.yard-title h1{font:500 clamp(4.5rem,12vw,12rem)/1 Geist;letter-spacing:-.07em}.yard-title p{font:14px Mono;color:#a9afb9;margin-top:20px}.yard-workbench{display:grid;grid-template-columns:130px minmax(0,1fr) 130px;align-items:center;gap:40px;max-width:1440px;margin:45px auto 20px}.yard-workbench aside{display:grid;gap:20px;font:10px Mono;color:#8c949e}.yard-workbench aside:last-child{text-align:right}.yard-workbench #home-keyboard{filter:drop-shadow(0 30px 25px #0009);transform:perspective(1000px) rotateX(14deg) rotateZ(-4deg);padding:45px 0}.yard-caption{display:flex;justify-content:space-between;align-items:center;gap:30px;max-width:1000px;margin:auto;font:13px Mono}.yard-materials{padding-block:90px}.yard-materials>div:first-child{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:end}.yard-materials p{font-size:19px;color:#a9afb9}.yard-material-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:45px}.material-block{height:220px;padding:25px;display:flex;flex-direction:column;justify-content:space-between;font:36px Mono;border:1px solid #555}.material-block span{font:11px Mono}.metal{color:#242627;background:repeating-linear-gradient(0deg,#bdc2c5 0,#a9afb2 1px,#bbc0c3 3px)}.brass{color:#42300c;background:linear-gradient(130deg,#dfc98a,#a9843e,#e4d29c)}.polymer{color:#b7c6bb;background:repeating-linear-gradient(45deg,#3a4840 0,#334139 2px,#3b4940 4px)}.switchyard #build>.split{grid-template-columns:1.1fr 1fr}.switchyard #build .panel{border:1px solid var(--line)}.switchyard .page-heading h1{font:550 clamp(3rem,7vw,6rem) Geist}.switchyard .large-number{color:#c6f061}@media(max-width:800px){.yard-workbench{grid-template-columns:1fr;margin-top:25px}.yard-workbench aside{display:none}.yard-caption{display:block;text-align:center}.yard-caption .button{margin-top:25px}.yard-materials>div:first-child{grid-template-columns:1fr;gap:24px}.yard-material-grid{grid-template-columns:1fr}.material-block{height:150px}.yard-topline{font-size:9px}.switchyard #build>.split{grid-template-columns:1fr}}
.switchyard{--font-mono:Mono,monospace;--font-sans:Geist,Arial,sans-serif;--ease-out:cubic-bezier(.22,1,.36,1)}.anatomy{display:grid;grid-template-columns:1fr 1.4fr;gap:80px;align-items:center;padding-block:60px 100px;border-top:1px solid var(--line)}.anatomy-intro h2{font-size:48px}.anatomy-intro p{font-size:18px;line-height:1.7;margin-top:25px}.anatomy-intro label{font:13px Mono;margin-top:35px}.anatomy-intro input{padding:0;accent-color:#c6f061}.anatomy-stage{position:relative;height:450px;perspective:1000px;overflow:hidden}.anatomy-layer{position:absolute;width:80%;height:170px;left:8%;top:190px;transform:rotateX(48deg) rotateZ(-18deg);border:1px solid #7c838d;border-radius:10px;box-shadow:0 20px 30px #0005}.anatomy-layer span{position:absolute;bottom:12px;left:20px;font:10px Mono}.layer-case{background:linear-gradient(130deg,#59616c,#292f37);transform:translateY(calc(var(--separation)*100px)) rotateX(48deg) rotateZ(-18deg)}.layer-pcb{background:repeating-linear-gradient(90deg,#305548 0,#305548 30px,#6c957f 30px,#6c957f 31px);transform:translateY(calc(var(--separation)*20px)) rotateX(48deg) rotateZ(-18deg)}.layer-plate{background:linear-gradient(130deg,#c9b16d,#81642f);color:#2a2317;transform:translateY(calc(var(--separation)*-65px)) rotateX(48deg) rotateZ(-18deg)}.layer-caps{background:repeating-linear-gradient(0deg,transparent 0,transparent 30px,#2c333d 30px,#2c333d 35px),repeating-linear-gradient(90deg,#e5e4d8 0,#e5e4d8 30px,#2c333d 30px,#2c333d 35px);color:#191d23;transform:translateY(calc(var(--separation)*-155px)) rotateX(48deg) rotateZ(-18deg)}.layer-caps span{background:#e5e4d8;padding:4px}@media(max-width:800px){.anatomy{grid-template-columns:1fr;gap:25px;padding-bottom:40px}.anatomy-intro h2{font-size:36px}.anatomy-stage{height:360px}.anatomy-layer{top:155px}}

/* ===== Switchyard redesign: keycap nav, tilting bench, spec sheet ===== */
.switchyard{--lime:#c6f061}
.switchyard .site-head{border-bottom:1px solid #2a2d33}
.switchyard .brand{display:flex;align-items:center;gap:10px}
.switchyard .brand::before{content:'';width:12px;height:12px;border-radius:3px;background:var(--lime);box-shadow:0 3px 0 #7f9e2f}
.switchyard .head-row nav{gap:10px}
.switchyard .head-row nav a,.switchyard .head-row nav button{font:12px/1 Mono,monospace;padding:11px 14px 13px;border-radius:7px;border:1px solid #3a3e45;background:linear-gradient(#2b2f35,#24272c);box-shadow:inset 0 1px 0 #ffffff14,0 4px 0 #0d0e10,0 5px 8px #0006;transition:transform .08s,box-shadow .08s,background .2s;text-decoration:none}
.switchyard .head-row nav a:hover,.switchyard .head-row nav button:hover{background:linear-gradient(#32363d,#2a2d33);color:var(--fg);text-decoration:none}
.switchyard .head-row nav a:active,.switchyard .head-row nav button:active{transform:translateY(3px);box-shadow:inset 0 1px 0 #ffffff14,0 1px 0 #0d0e10,0 2px 3px #0006}
.switchyard .head-row nav a[aria-current=page]{color:var(--lime);text-decoration:none}
.switchyard .head-row nav button{background:linear-gradient(#d3f57d,#b5e04f);color:#17191d;border-color:#9fc743;box-shadow:inset 0 1px 0 #ffffff60,0 4px 0 #6f8c27,0 5px 8px #0006}
.switchyard .head-row nav button:hover{background:linear-gradient(#ddf98f,#c0e95c);color:#17191d}
.switchyard .head-row nav button:active{box-shadow:inset 0 1px 0 #ffffff60,0 1px 0 #6f8c27}

.yard-workbench #home-keyboard{transform:perspective(1100px) rotateX(calc(14deg + var(--ty,0) * -10deg)) rotateY(calc(var(--tx,0) * 12deg)) rotateZ(-4deg);transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.yard-title h1{background:linear-gradient(180deg,#f4f5ef 30%,#9aa1a9);-webkit-background-clip:text;background-clip:text;color:transparent}
.yard-caption{position:relative;min-height:46px}
.yard-tape{position:absolute;left:0;top:50%;transform:translateY(-50%);max-width:60%;padding:9px 14px;background:#e8e9e3;color:#17191d;font:14px Mono,monospace;letter-spacing:.04em;white-space:pre;overflow:hidden;opacity:0;transition:opacity .25s;clip-path:polygon(0 0,100% 0,98% 50%,100% 100%,0 100%,2% 50%)}
.yard-tape::after{content:'▌';animation:yard-caret 1s steps(1) infinite;color:#6f8c27}
@keyframes yard-caret{50%{opacity:0}}
.yard-caption.is-typing .yard-tape{opacity:1}
.yard-caption.is-typing .yard-hint{opacity:0}
.yard-hint{transition:opacity .25s}
.yard-caption .button{border-radius:7px;box-shadow:0 4px 0 #6f8c27;font-family:Mono,monospace;transition:transform .08s,box-shadow .08s}
.yard-caption .button:active{transform:translateY(3px);box-shadow:0 1px 0 #6f8c27}

.material-block{position:relative;overflow:hidden;border-radius:6px;transition:transform .4s cubic-bezier(.2,.7,.2,1)}
.material-block::after{content:'';position:absolute;inset:-20%;background:linear-gradient(105deg,transparent 40%,#ffffff55 50%,transparent 60%);transform:translateX(-80%);transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.material-block:hover{transform:translateY(-6px)}
.material-block:hover::after{transform:translateX(80%)}
.material-block em{font:normal 12px Mono,monospace;opacity:0;transform:translateY(8px);transition:opacity .35s,transform .35s;margin-top:auto;margin-bottom:10px}
.material-block:hover em{opacity:.85;transform:none}
.yard-materials .text-link{display:inline-block;font-family:Mono,monospace;font-size:13px;text-decoration:none;border-bottom:1px solid var(--lime);padding-bottom:4px}

/* Spec sheet with layout bars */
.switchyard .yard-spec .content-heading h2{font-weight:500}
.switchyard .yard-spec table{border-top:1px solid var(--lime)}
.switchyard .yard-spec td:first-child{font:500 28px/1 Mono,monospace;color:var(--lime);padding-top:20px}
.switchyard .yard-spec td:first-child::after{content:'';display:block;height:14px;margin-top:12px;border-radius:2px;background:repeating-linear-gradient(90deg,#c6f06199 0 10px,transparent 10px 12px);box-shadow:0 0 0 1px #c6f06133}
.switchyard .yard-spec tbody tr:nth-child(1) td:first-child::after{width:60%}
.switchyard .yard-spec tbody tr:nth-child(2) td:first-child::after{width:65%}
.switchyard .yard-spec tbody tr:nth-child(3) td:first-child::after{width:75%}
.switchyard .yard-spec tbody tr:hover{background:#1e2126}
.switchyard .content-section{border-top-color:#2f3339}
.switchyard .content-prose .content-heading::before{content:'// note ' counter(section,decimal-leading-zero);display:block;font:12px Mono,monospace;color:var(--lime);margin-bottom:16px}
.switchyard .content-prose .content-body{border-left:1px solid #2f3339;padding-left:32px}
.switchyard .content-body .text-link{font-family:Mono,monospace;font-size:13px;text-decoration:none;border-bottom:1px solid var(--lime);padding-bottom:3px}
.switchyard .content-list li::before{border-radius:6px;color:var(--lime);border-color:#3a3e45;box-shadow:0 3px 0 #0d0e10}

/* Footer */
.switchyard .site-foot{border-top:1px solid #2f3339;margin-top:70px;padding-top:44px;background:linear-gradient(#17191d,#111214)}
.switchyard .yard-foot{grid-template-columns:1.5fr 1fr 1fr}
.switchyard .yard-foot .foot-sign{font:500 clamp(2.6rem,6vw,5.4rem)/1 Mono,monospace;letter-spacing:-.06em;color:#e8e9e3}
.switchyard .yard-foot .foot-sign span{display:block;font:11px Mono,monospace;letter-spacing:.1em;margin-top:18px;color:var(--lime)}
.switchyard .yard-foot a{font-family:Mono,monospace;font-size:13px;line-height:2}
.yard-foot-bar{height:6px;background:#2a2d33;border-radius:3px;margin:16px 0 10px!important;overflow:hidden}
.yard-foot-bar i{display:block;height:100%;background:var(--lime)}
.switchyard .site-foot .footer-links{font-family:Mono,monospace;font-size:12px;border-color:#2f3339}

@media(max-width:800px){.switchyard .yard-foot{grid-template-columns:1fr 1fr}.yard-tape{position:static;transform:none;display:none;max-width:100%}.yard-caption.is-typing .yard-tape{display:block;margin-bottom:14px}}
@media(max-width:600px){.switchyard .yard-foot{grid-template-columns:1fr}.switchyard .head-row nav{gap:8px}.switchyard .head-row nav a,.switchyard .head-row nav button{padding:9px 10px 11px;font-size:11px}.switchyard .content-prose .content-body{padding-left:18px}}

/* ===== Switchyard layout layer: spec tiles, switch cards, progress track, terminal ===== */
.switchyard [class*=" sy-"]{border-top:0;padding-block:80px}
.switchyard [class*=" sy-"] .content-heading{text-align:center;margin:0 auto 44px}
.switchyard [class*=" sy-"] .content-heading h2{margin-inline:auto;font-size:clamp(2.2rem,4.6vw,4rem);letter-spacing:-.05em}
.switchyard [class*=" sy-"] .content-heading::before{display:none}
.switchyard [class*=" sy-"] .content-body{max-width:none}
.switchyard [class*=" sy-"] .content-body>p:first-child{text-align:center;color:#a9afb9;max-width:60ch;margin:0 auto 34px}
.switchyard [class*=" sy-"] .content-body>.text-link{display:table;margin:30px auto 0}
/* Spec tiles */
.switchyard .sy-specs table,.switchyard .sy-specs tbody{display:block;min-width:0;border:0}
.switchyard .sy-specs thead{display:none}
.switchyard .sy-specs tbody{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.switchyard .sy-specs tr{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:14px;padding:24px;border:1px solid #2f3339;border-radius:16px;background:linear-gradient(180deg,#1f2227,#191b1f);min-height:150px;transition:border-color .3s,transform .3s}
.switchyard .sy-specs tr:hover{border-color:var(--lime);transform:translateY(-3px);background:linear-gradient(180deg,#1f2227,#191b1f)}
.switchyard .sy-specs tr:nth-child(1),.switchyard .sy-specs tr:nth-child(5){grid-column:span 2}
.switchyard .sy-specs tr:nth-child(6){background:var(--lime);color:#17191d;border-color:var(--lime)}
.switchyard .sy-specs td{border:0;padding:0;width:auto!important}
.switchyard .sy-specs td:first-child{font:11px Mono,monospace;letter-spacing:.1em;text-transform:uppercase;color:#8c949e;padding:0;margin-top:auto}
.switchyard .sy-specs tr:nth-child(6) td:first-child{color:#17191dcc}
.switchyard .sy-specs td:last-child{font:500 clamp(1.2rem,2vw,1.6rem)/1.2 Geist,sans-serif;letter-spacing:-.03em}
.switchyard .sy-specs tr:nth-child(6) td:last-child{font-size:clamp(3rem,5vw,4.4rem);letter-spacing:-.06em}
/* Switch cards with meters */
.switchyard .sy-switches table,.switchyard .sy-switches tbody{display:block;min-width:0;border:0}
.switchyard .sy-switches thead{display:none}
.switchyard .sy-switches tbody{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.switchyard .sy-switches tr{display:grid;grid-template-columns:1fr 1fr;gap:16px 14px;padding:28px;border:1px solid #2f3339;border-radius:20px;background:#1c1f23;position:relative}
.switchyard .sy-switches tr:hover{background:#1c1f23}
.switchyard .sy-switches tr::before{content:'';grid-column:1/-1;justify-self:center;width:110px;height:110px;margin:6px 0 10px;border-radius:14px;background:linear-gradient(#0000 44%,var(--stem,#8A94A8) 44% 56%,#0000 56%) center/34px 34px no-repeat,linear-gradient(90deg,#0000 44%,var(--stem,#8A94A8) 44% 56%,#0000 56%) center/34px 34px no-repeat,radial-gradient(circle,#0000 30%,#00000026 31% 33%,#0000 34%),linear-gradient(145deg,#e7e4dc,#c9c5bb);box-shadow:inset 0 -6px 0 #0000001f,0 14px 24px -10px #000a}
.switchyard .sy-switches tr:nth-child(2){--stem:#3550F5}
.switchyard .sy-switches tr:nth-child(3){--stem:#232323}
.switchyard .sy-switches td{border:0;padding:0;width:auto!important}
.switchyard .sy-switches td:nth-child(1){grid-column:1/-1;font:500 28px/1 Mono,monospace;letter-spacing:-.03em;color:#f4f5ef;text-align:center}
.switchyard .sy-switches td:nth-child(2){grid-column:1/-1;text-align:center;font:11px Mono,monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--lime)}
.switchyard .sy-switches td:nth-child(3),.switchyard .sy-switches td:nth-child(5){grid-column:1/-1;font:13px Mono,monospace;color:#c6c9cf;position:relative;padding-top:24px}
.switchyard .sy-switches td:nth-child(3)::before{content:'Усилие';position:absolute;top:0;left:0;color:#8c949e;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.switchyard .sy-switches td:nth-child(5)::before{content:'Громкость';position:absolute;top:0;left:0;color:#8c949e;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
html[lang=en] .switchyard .sy-switches td:nth-child(3)::before{content:'Force'}
html[lang=en] .switchyard .sy-switches td:nth-child(5)::before{content:'Loudness'}
.switchyard .sy-switches td:nth-child(3)::after,.switchyard .sy-switches td:nth-child(5)::after{content:'';display:block;height:6px;margin-top:10px;border-radius:3px;background:linear-gradient(90deg,var(--lime) calc(var(--force) / 70 * 100%),#2f3339 0)}
.switchyard .sy-switches td:nth-child(5)::after{background:linear-gradient(90deg,#f2a65a calc((var(--loud) - 30) / 32 * 100%),#2f3339 0)}
.switchyard .sy-switches td:nth-child(4){display:none}
.switchyard .sy-switches td.sy-listen{grid-column:1/-1;margin-top:8px}
.sy-listen button{width:100%;border:1px solid #3a3e45;border-radius:10px;padding:12px;font:13px Mono,monospace;background:#24272c;color:#e8e9e3;box-shadow:0 4px 0 #0d0e10;transition:transform .08s,box-shadow .08s,background .2s}
.sy-listen button:hover{background:#2d3137;color:var(--lime)}
.sy-listen button:active{transform:translateY(3px);box-shadow:0 1px 0 #0d0e10}
/* What's in the box */
.switchyard .sy-box .content-list{max-width:1100px;margin:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;border:1.5px dashed #4a4f57;border-radius:20px;padding:46px 18px 24px;position:relative}
.switchyard .sy-box .content-list::before{content:'RUN 07 · UNIT ___ / 240';position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:var(--bg);padding:2px 14px;font:12px Mono,monospace;color:var(--lime);letter-spacing:.06em}
.switchyard .sy-box .content-list li{border:0;border-left:1px solid #2f3339;padding:44px 18px 10px;font-size:14px;line-height:1.55;color:#c6c9cf}
.switchyard .sy-box .content-list li:first-child{border-left:0}
.switchyard .sy-box .content-list li::before{content:'0' counter(step);left:18px;top:0;width:auto;height:auto;border:0;border-radius:0;font:12px Mono,monospace;color:var(--lime);box-shadow:none}
/* Production track */
.switchyard .sy-timeline .content-body{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 4px;max-width:1100px;margin:auto}
.switchyard .sy-timeline .content-note{border-top:0;padding:0 22px 0 0;position:relative}
.switchyard .sy-timeline .content-note::before{content:'';display:block;height:8px;border-radius:4px;margin:0 0 26px;background:var(--lime);opacity:1}
.switchyard .sy-timeline .content-note:nth-child(2)::before{background:linear-gradient(90deg,var(--lime) 68%,#2f3339 68%)}
.switchyard .sy-timeline .content-note:nth-child(3)::before{background:#2f3339}
.switchyard .sy-timeline .content-note:nth-child(2)::after{content:'● сейчас · 68%';position:absolute;top:-30px;left:68%;transform:translateX(-50%);font:11px Mono,monospace;color:var(--lime);white-space:nowrap;animation:sy-blink 1.6s ease-in-out infinite}
html[lang=en] .switchyard .sy-timeline .content-note:nth-child(2)::after{content:'● now · 68%'}
@keyframes sy-blink{50%{opacity:.4}}
.switchyard .sy-timeline .content-note h3{font:500 20px Mono,monospace;letter-spacing:-.03em}
.switchyard .sy-timeline .content-note:nth-child(3) h3{color:#8c949e}
.switchyard .sy-timeline .content-note p{color:#a9afb9;font-size:15px}
.switchyard .sy-timeline .content-body>.text-link{grid-column:1/-1}
/* FAQ as a terminal */
.switchyard .sy-terminal .content-questions{max-width:900px;margin:auto;background:#0d0e10;border:1px solid #2f3339;border-radius:14px;overflow:hidden;font-family:Mono,monospace}
.switchyard .sy-terminal .content-questions::before{content:'switchyard — faq.log';display:block;padding:12px 16px 12px 70px;background:#1c1f23 radial-gradient(circle at 18px 50%,#ff5f57 0 5px,#0000 6px) no-repeat,radial-gradient(circle at 36px 50%,#febc2e 0 5px,#0000 6px) no-repeat;background-color:#1c1f23;font-size:12px;color:#8c949e;border-bottom:1px solid #2f3339;position:relative}
.switchyard .sy-terminal .content-questions::after{content:'';position:absolute}
.switchyard .sy-terminal details{border:0;padding:16px 24px 4px}
.switchyard .sy-terminal summary{cursor:default;font:15px/1.5 Mono,monospace;color:#e8e9e3}
.switchyard .sy-terminal summary::before{content:'$ ';color:var(--lime)}
.switchyard .sy-terminal summary::after{display:none}
.switchyard .sy-terminal details p{font:14px/1.7 Mono,monospace;color:#a9afb9;margin:6px 0 10px;padding-left:16px;border-left:1px solid #2f3339}
@media(max-width:900px){.switchyard .sy-specs tbody{grid-template-columns:1fr 1fr}.switchyard .sy-switches tbody{grid-template-columns:1fr}.switchyard .sy-box .content-list{grid-template-columns:1fr 1fr}.switchyard .sy-box .content-list li:nth-child(odd){border-left:0}.switchyard .sy-timeline .content-body{grid-template-columns:1fr;gap:40px}}
.switchyard .sy-specs tr:nth-child(7){grid-column:1/-1;min-height:120px}
.switchyard .sy-specs tr:nth-child(7) td:last-child{font-size:clamp(1.8rem,3.4vw,2.8rem);letter-spacing:-.05em}
.switchyard .sy-terminal summary{display:block}
.switchyard .sy-terminal .content-questions::before{content:'●  ●  ●     switchyard — faq.log';padding:12px 16px;background:#1c1f23;color:#5c626b;white-space:pre}
@media(max-width:900px){.switchyard .sy-specs tr:nth-child(7){grid-column:1/-1}}
