/* Workstation directory */
html { scroll-padding-top: 84px; }
#mast { position:sticky; top:0; z-index:20; pointer-events:none; }
#mast .nav { pointer-events:auto; position:relative; gap:18px; background:#0c1722; border-color:#3d5364; box-shadow:0 3px 14px #182b1c12; }
.navlocal,.peeklabel,.menupeek time,.schead,.mechanism span,.inlet,.outlet,.schematicnote small { font:12px/1.5 var(--mono); }
.navlocal { padding-left:14px; border-left:1px solid var(--line); color:var(--muted); }
#directoryNav { display:flex; align-items:center; gap:3px; margin-left:auto; }
.groupbtn,#exploreMenu,.navfaq { color:var(--ink); font-weight:700; font-size:14px; border:0; border-radius:7px; background:transparent; padding:10px 12px; }
.groupbtn,#exploreMenu { display:flex; align-items:center; gap:9px; }
.groupbtn i,#exploreMenu i { width:7px; height:7px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:translateY(-2px) rotate(45deg); transition:transform .2s; }
.groupbtn[aria-expanded=true] i,#exploreMenu[aria-expanded=true] i { transform:translateY(2px) rotate(225deg); }
.groupbtn:hover,.groupbtn[aria-expanded=true],.navfaq:hover,#exploreMenu:hover { background:#182937; }
#exploreMenu { display:none; }
.megapanel { position:absolute; inset:calc(100% + 5px) -1px auto; display:grid; grid-template-columns:.8fr 1.6fr 1fr; gap:19px; padding:20px; background:#0c1722; border:1px solid #3d5364; border-radius:12px; box-shadow:0 18px 42px #14261929; animation:unfold .2s ease-out; max-height:calc(100dvh - 85px); overflow:auto; }
@keyframes unfold { from { opacity:.2; transform:translateY(-4px); } }
.menucopy { padding:8px 6px; }
.menucopy h2 { font:italic clamp(23px,2.3vw,37px)/1.04 Instrument,Georgia,serif; letter-spacing:-.03em; }
.menucopy p,.menupeek small { display:block; margin-top:9px; font-size:14px; line-height:1.4; color:var(--muted); }
.menulinks { display:grid; grid-template-columns:1fr 1fr; align-content:center; gap:3px 12px; }
#directoryNav .menulinks a { position:relative; display:block; padding:11px 17px 11px 5px; border-bottom:1px solid var(--line); text-decoration:none; }
#directoryNav .menulinks a::after { content:'↗'; position:absolute; top:11px; right:2px; color:#adbfca; }
#directoryNav .menulinks a:hover,#directoryNav .menulinks a:focus-visible { background:#0c1722; }
.menulinks strong,.menulinks small { display:block; }
.menulinks small { font-size:13px; font-weight:500; line-height:1.4; color:var(--muted); margin-top:2px; }
.menupeek { border-radius:8px; padding:17px; background:#0c1722; display:flex; flex-direction:column; justify-content:center; min-width:0; }
.peeklabel,.schead,.schematicnote small { text-transform:uppercase; letter-spacing:.08em; }
.menupeek b { display:block; font-size:clamp(19px,1.6vw,26px); line-height:1.12; margin:8px 0; }
.menupeek time { font-size:11px; color:#adbfca; margin-top:4px; }
.menupeek.build { background:#121e29; color:white; }
.menupeek.build code { color:#e2edf5; font-size:13px; margin-top:8px; }
.menupeek.build small { color:#e2edf5; margin:0; }
.menupeek.proof { background:#0c1722; }
.peekshift { display:grid; grid-template-columns:repeat(24,1fr); gap:2px; margin-top:4px; }
.peekshift i { height:11px; border:1px solid #3d5364; border-radius:2px; }
.peekshift i.on { background:#476975; }
@media(max-width:900px) {
  #mast .nav { gap:8px; }
  .navlocal { display:none; }
  .megapanel { grid-template-columns:1.35fr 1fr; gap:6px 20px; padding:14px; }
  .menucopy { grid-column:1/-1; }
  .menucopy p { margin:3px 0; }
}
@media(max-width:740px) {
  #mast .nav { justify-content:space-between; }
  #exploreMenu { display:flex; margin-left:auto; padding-inline:8px; min-height:40px; }
  #directoryNav { display:none; }
  #mast.expanded #directoryNav { display:grid; position:absolute; inset:calc(100% + 4px) -1px auto; background:#0c1722; border:1px solid var(--line); border-radius:12px; padding:10px; grid-template-columns:1.25fr .8fr 1.1fr auto; gap:0; max-height:calc(100dvh - 75px); overflow:auto; box-shadow:0 16px 30px #182b1b24; }
  .directory { display:contents; }
  .directory>.groupbtn,.navfaq { grid-row:1; min-height:40px; padding:7px; justify-content:center; }
  .groupbtn i { display:none; }
  .navfaq { grid-column:4; text-align:center; }
  .megapanel { position:static; grid-row:2; grid-column:1/-1; display:block; padding:9px 2px 0; border:0; border-radius:0; box-shadow:none; max-height:none; overflow:visible; }
  .menucopy { padding:5px; }
  .menucopy h2 { font-size:26px; }
  .menucopy p,.menulinks small { font-size:13px; }
  .menupeek { margin-top:10px; padding:12px; }
  .menupeek b { margin:3px 0; }
}
/* A sectional drawing of the compute loop. */
.routegrid { grid-template-columns:minmax(230px,.7fr) minmax(0,1.35fr); gap:clamp(24px,5vw,76px); }
.routebuttons { grid-template-columns:1fr; gap:2px; }
.routebuttons button { display:grid; grid-template-columns:29px 1fr; align-items:baseline; padding:13px 15px; border-radius:0 5px 5px 0; font-size:17px; }
.routebuttons button::before { font-size:11px; padding:0; }
.routebuttons small { display:none; grid-column:2; font-size:14px; line-height:1.45; font-weight:500; color:#e2edf5; }
.routebuttons button[aria-pressed=true] small { display:block; margin-top:4px; }
#sequenceToggle { margin-top:17px; border:1px solid #3d5364; border-radius:18px; padding:7px 15px; font:13px var(--mono); background:transparent; color:#e2edf5; }
#sequenceToggle:hover { background:#2b424f; }
.routeboard { position:relative; isolation:isolate; display:flex; flex-direction:column; align-items:stretch; justify-content:space-between; gap:15px; overflow:hidden; padding:23px 26px 19px; color:#e2edf5; background:radial-gradient(ellipse at 30% 27%,#2b424f,transparent 62%),#121e29; }
.schead { display:flex; justify-content:space-between; gap:12px; color:#e2edf5; align-items:center; }
.schead>span:last-child { text-transform:none; letter-spacing:0; color:#adbfca; }
.circuit { display:grid; grid-template-columns:auto 1fr minmax(102px,38%) 1fr auto; align-items:center; position:relative; min-height:178px; background-image:radial-gradient(#354c5b40 .85px,transparent 1px); background-size:13px 13px; }
.inlet,.outlet { color:#e2edf5; border:1px solid #3d5364; border-radius:20px; background:#2b424f; padding:5px 9px; }
.conduit { position:relative; height:1px; background:#476975; overflow:visible; }
.conduit i { position:absolute; height:5px; width:5px; border-radius:50%; top:-2px; left:0; background:#182937; box-shadow:0 0 8px #c8f19b; animation:signal 1.9s ease-in-out infinite; }
.conduit.last i { animation-delay:-.7s; }
@keyframes signal { 0% {left:0;opacity:0} 22%,78% {opacity:1} 100% {left:100%;opacity:0} }
.processor { position:relative; height:158px; border:1px solid #3d5364; border-radius:14px; background:linear-gradient(150deg,#2b424f,#121e29); box-shadow:inset 0 0 0 5px #24372b,0 9px 16px #14201966; }
.mechanism { position:absolute; inset:8px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; opacity:0; transform:translateY(7px) scale(.97); transition:opacity .24s ease,transform .38s ease; pointer-events:none; }
.routeboard[data-route="0"] .sheetinput,.routeboard[data-route="1"] .sheetgpu,.routeboard[data-route="2"] .sheetcheck,.routeboard[data-route="3"] .sheetfile { opacity:1; transform:none; transition-delay:.07s; }
.mechanism span { color:#e2edf5; font-size:11px; }
.sensor { position:relative; width:80px; height:80px; background:repeating-linear-gradient(0deg,#2b424f 0 1px,transparent 1px 6px),#121e29; border:1px solid #3d5364; }
.sensor canvas { width:100%; height:100%; display:block; image-rendering:pixelated; }
.sensor i { position:absolute; left:0; right:0; top:0; height:2px; background:#0c1722; animation:scan 2.4s ease-in-out infinite alternate; }
@keyframes scan { to { transform:translateY(75px); } }
.sheetgpu img { width:90%; height:96px; object-fit:contain; }
.channels { display:grid; gap:8px; width:72%; }
.channels i { color:#e2edf5; font:12px/1.5 var(--mono); border:1px solid #3d5364; border-radius:4px; padding:4px; background:linear-gradient(90deg,#2b424f 75%,#121e29 75%); }
.paperstack { position:relative; width:75px; height:80px; }
.paperstack>* { position:absolute; inset:2px 8px 3px; border:1px solid #3d5364; background:#476975; transform:rotate(-9deg); border-radius:3px; }
.paperstack i:nth-child(2) { transform:rotate(-3deg); background:#354c5b; }
.paperstack b { display:grid; align-content:center; color:#e2edf5; background:repeating-linear-gradient(0deg,#182937 0 7px,#354c5b 7px 8px); transform:rotate(4deg); font:12px var(--mono); text-align:center; }
.routeboard:not([data-playing="true"]) :is(.conduit i,.sensor i) { animation-play-state:paused; }
.schematicnote { border-top:1px solid #29404e; padding-top:12px; min-height:109px; }
.schematicnote small { color:#e2edf5; font-size:11px; }
.schematicnote strong { display:block; color:#e2edf5; font-size:clamp(20px,2vw,29px); letter-spacing:-.035em; line-height:1.2; margin:3px 0 4px; }
.schematicnote p { color:#e2edf5; font-size:14px; line-height:1.45; max-width:62ch; }
.seqtrack { display:flex; gap:4px; }
.seqtrack i { height:2px; flex:1; background:#2b424f; }
.routeboard[data-route="0"] .seqtrack i:first-child,.routeboard[data-route="1"] .seqtrack i:nth-child(2),.routeboard[data-route="2"] .seqtrack i:nth-child(3),.routeboard[data-route="3"] .seqtrack i:last-child { background:#182937; }
@media(max-width:740px) {
  .routegrid { grid-template-columns:1fr; gap:15px; }
  .routebuttons { grid-template-columns:1fr 1fr; }
  .routebuttons button { grid-template-columns:18px 1fr; padding:8px 7px; min-height:46px; font-size:14px; }
  .routebuttons button[aria-pressed=true] small { display:none; }
  #sequenceToggle { margin-top:10px; }
  .routeboard { padding:16px; gap:9px; }
  .schead { font-size:11px; }
  .circuit { min-height:152px; }
  .processor { height:137px; }
  .schematicnote { min-height:102px; }
}
@media(prefers-reduced-motion:reduce) {
  #mast *,#routeSequence * { animation:none!important; transition:none!important; }
}

@media(min-width:901px) {
  #directoryNav { margin-inline:auto; }
}
.channels i { display:flex; justify-content:space-between; align-items:center; padding:5px 8px; background:#2b424f; }
.channels i::after { content:""; width:55%; height:10px; background:repeating-linear-gradient(90deg,#182937 0 3px,transparent 3px 6px); clip-path:polygon(0 74%,17% 74%,17% 32%,30% 32%,30% 58%,43% 58%,43% 78%,68% 78%,68% 0,79% 0,79% 85%,100% 85%,100% 100%,0 100%); }
.routeboard[data-route="2"][data-playing="true"] .channels i { animation:alignChannels .7s ease-out both; }
.routeboard[data-route="2"] .channels i:last-child { animation-delay:.18s; }
@keyframes alignChannels { from { opacity:.2; transform:translateX(-9px); } }
.routeboard[data-route="3"][data-playing="true"] .paperstack b { animation:fileSheet .8s cubic-bezier(.2,.7,.3,1) both; }
@keyframes fileSheet { from { transform:translateY(-13px) rotate(0deg); opacity:.3; } }


.workshopFoot { display:block; border:0; padding:clamp(22px,3.6vw,64px) 0 0; background:#0c1722; color:#e2edf5; }
.footDesk { display:grid; grid-template-columns:minmax(210px,.8fr) minmax(0,1.65fr); gap:4%; align-items:center; padding-bottom:26px; }
.footIdentity>a:first-child { display:inline-flex; flex-direction:column; align-items:start; gap:16px; font-weight:700; font-size:clamp(72px,7.3vw,115px); line-height:.92; letter-spacing:-.082em; text-decoration:none; }
.footIdentity img { width:46px; height:auto; }
.footIdentity p { margin:12px 0 25px; max-width:24ch; font-size:clamp(17px,1.4vw,22px); color:#adbfca; }
.footStudio,.footBase a { display:inline-flex; align-items:center; gap:16px; min-height:44px; text-decoration:none; }
.footStudio { padding:0 16px; border-radius:5px; background:#121e29; color:#e2edf5; font-weight:700; }
.footStudio span { color:#e2edf5; }
.footStudio:hover { background:#2b424f; }
.footCooler { margin:0; min-width:0; }
.coolingView { position:relative; aspect-ratio:16/9; }
.coolingView img,.coolingView video { width:100%; height:100%; position:absolute; inset:0; display:block; }
.coolingView video { opacity:0; pointer-events:none; }
.coolingView video.showFrame { opacity:1; }
.footCooler figcaption { display:flex; align-items:center; justify-content:space-between; min-height:44px; padding:0; border-top:1px solid #3d5364; color:#adbfca; font:13px/1.5 var(--mono); }
.footCooler button { min-height:44px; border:0; background:none; font:inherit; color:inherit; }
.footCooler button span { font-size:18px; }
.footCooler button:hover,.footBase a:hover,.footIndex a:hover { text-decoration:underline; }
.footIndex { border-block:1px solid #3d5364; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; padding:19px 0 22px; }
.footIndex h2 { margin:0 0 6px; font:700 17px/1.35 Satoshi,Arial,sans-serif; }
.footIndex a { display:table; padding:6px 0; text-decoration:none; }
.footBase { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:58px; font:12px/1.4 var(--mono); }
@media(max-width:650px) {
  .footDesk { grid-template-columns:1fr; gap:8px; padding-bottom:14px; }
  .footIdentity>a:first-child { flex-direction:row; align-items:center; gap:8px; font-size:53px; }
  .footIdentity img { width:32px; }
  .footIdentity p { margin:6px 0 13px; max-width:none; }
  .footIndex { gap:9px; }
  .footIndex a { display:flex; align-items:center; min-height:44px; padding:4px 0; font-size:14px; }
  .footBase { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { .coolingView video,#replayCooling { display:none; } }
