/* ═══════════════════════════════════════════════
   Dreamcache Interactive — the studio page (studio.html)

   The set is switched off. This page is the room the TV sits in: the
   same dark ground, the same panels with the pale-blue edge, the same
   green on-screen-display labels in VT323 and the same hard-shadowed
   display face as the channels on index.html, laid out as a page that
   scrolls instead of a picture that flips.
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body.studio{
  --ground:#05070c;
  --panel:rgba(5,7,12,.86);
  --panel-edge:rgba(92,158,184,.3);
  --ink:#d6dbe4;
  --dim:#8b95a5;
  --osd:#8fe3a0;
  --osd-dim:#3c6b47;
  --snow:#5c9eb8;
  --rec:#e0343a;
  --font-osd:'VT323','Courier New',monospace;
  --bg-page:var(--ground);--bg:var(--ground);--bg-alt:#0d1119;--text:var(--ink);--muted:var(--dim);
  --surface:#0d1119;--border:#1b2330;--hover:#161c27;--header-bg:#05070c;--shadow:rgba(0,0,0,.5);
  --maxw:1040px;
  background:var(--ground);color:var(--ink);
}
html:has(body.studio){background:#05070c}
body.studio header#site-header{position:relative;z-index:5;backdrop-filter:none;border-bottom:1px solid #12161f}
body.studio footer#site-footer{padding-top:96px;border-top:1px solid var(--border)}

/* The room: a faint static grain and the tube's scanlines over everything, so the page reads as the same set */
body.studio main{position:relative;overflow:hidden}
body.studio main::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%,rgba(92,158,184,.10),transparent 70%),
    repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0 1px,transparent 1px 3px);
}
body.studio main > *{position:relative;z-index:1}

/* ── Shared: OSD labels, display titles ── */
.studio .osd{font-family:var(--font-osd);color:var(--osd);text-shadow:0 0 6px rgba(143,227,160,.5),2px 0 0 rgba(0,0,0,.7);letter-spacing:.04em;line-height:1;margin:0;font-size:20px}
.studio .osd.dim{color:var(--osd-dim);text-shadow:2px 0 0 rgba(0,0,0,.7)}
.studio .osd .blink{animation:osd-blink 1.2s steps(1) infinite}
@keyframes osd-blink{50%{opacity:0}}
.studio .display{font-family:var(--font-display);font-weight:400;line-height:1;color:#fff;text-shadow:3px 3px 0 rgba(0,0,0,.6);margin:0;text-wrap:balance}
.studio .panel{position:relative;background:var(--panel);border:1px solid var(--panel-edge);box-shadow:0 0 0 1px rgba(0,0,0,.6),0 10px 30px rgba(0,0,0,.5)}
.studio .wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gap)}

/* ── The studio card ── */
.studio-card-section{padding:64px 0 0}
.studio-card{padding:30px 34px 32px}
.studio-card .topline{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.studio-card h1{font-size:clamp(28px,6.2vw,64px);letter-spacing:.02em;text-transform:uppercase;margin:0 0 18px}
.studio-card h1 small{display:block;font-size:.42em;color:var(--snow);text-shadow:2px 2px 0 rgba(0,0,0,.6);margin-top:.35em;letter-spacing:.08em}
.studio-card .pitch{font-size:17px;line-height:1.65;max-width:66ch;margin:0 0 .9em}
.studio-card .pitch:last-of-type{margin-bottom:0}
.studio-card .pitch strong{color:#fff}
.studio-card .contact{margin:20px 0 0;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;font-family:var(--font-osd);font-size:20px;letter-spacing:.04em}
.studio-card .contact .osd{font-size:16px}
.studio-card .contact a{color:var(--osd);text-shadow:0 0 6px rgba(143,227,160,.5),2px 0 0 rgba(0,0,0,.7);border-bottom:1px dashed var(--osd-dim)}
.studio-card .contact a:hover{color:#fff;border-bottom-color:var(--snow);filter:none}
.studio-card .hook{font-family:var(--font-display);font-size:22px;line-height:1.25;color:#fff;text-shadow:2px 2px 0 rgba(0,0,0,.6);margin:18px 0 0;max-width:40ch}

/* The readout strip under the card: the deck's spec sheet as a row of OSD counters */
.readout{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--panel-edge);border-top:0;background:rgba(5,7,12,.7)}
.readout > div{padding:12px 16px;border-right:1px solid var(--panel-edge);min-width:0}
.readout > div:last-child{border-right:0}
.readout .k{font-family:var(--font-osd);font-size:15px;color:var(--osd-dim);letter-spacing:.06em;margin:0 0 3px;text-shadow:2px 0 0 rgba(0,0,0,.7)}
.readout .v{font-family:var(--font-osd);font-size:24px;color:var(--osd);text-shadow:0 0 6px rgba(143,227,160,.5),2px 0 0 rgba(0,0,0,.7);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ── Now playing: the flagship, framed like the picture window with the deck's text bar under it ── */
.nowplaying-section{padding:56px 0 0}
.nowplaying .picture{position:relative;display:block;overflow:hidden;background:#000;aspect-ratio:1600/516}
.nowplaying .picture img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.9) contrast(1.05);transition:transform .5s ease}
@media (hover:hover){.nowplaying .picture:hover img{transform:scale(1.03)}}
.nowplaying .picture::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(0,0,0,.10) 0 1px,transparent 1px 3px)}
.nowplaying .picture .osd{position:absolute;left:18px;top:14px;z-index:2;font-size:22px}
.nowplaying .picture .osd.right{left:auto;right:18px}
.nowplaying .side{padding:20px 28px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 28px;align-items:center;border-top:1px solid var(--panel-edge)}
.nowplaying .side .osd{grid-column:1 / -1}
.nowplaying .side h2{font-size:26px;text-transform:uppercase;letter-spacing:.02em;margin-bottom:6px}
.nowplaying .side p{margin:0;font-size:15px;line-height:1.6;color:var(--ink);max-width:62ch}
.nowplaying .cta{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
/* Phones: the side bar stacks. With the buttons in their own auto column the paragraph was squeezed to one word per line (Ryan, 16 Sep 2026). */
@media (max-width:640px){
  .nowplaying .side{grid-template-columns:minmax(0,1fr);padding:18px 18px 20px}
  .nowplaying .cta{justify-content:flex-start}
  .nowplaying .picture .osd{font-size:18px;left:12px;top:10px}
  .nowplaying .picture .osd.right{right:12px}
  .studio-card{padding:24px 18px 26px}
  .readout{grid-template-columns:repeat(2,minmax(0,1fr))}
  .readout > div:nth-child(2){border-right:0}
  .readout > div:nth-child(-n+2){border-bottom:1px solid var(--panel-edge)}
}

/* REC and ghost buttons, at page size */
.studio .btn-rec{display:inline-flex;align-items:center;gap:.6em;background:var(--rec);color:#fff;text-decoration:none;font-weight:700;font-size:13px;letter-spacing:.08em;text-transform:uppercase;padding:.7em 1.15em .7em .95em;border:0;border-bottom:3px solid #8f1c22;cursor:pointer;font-family:var(--font-body);transition:transform .12s,border-bottom-width .12s;white-space:nowrap}
.studio .btn-rec i{width:.65em;height:.65em;border-radius:50%;background:#fff;box-shadow:0 0 8px #fff;animation:osd-blink 1.2s steps(1) infinite}
.studio .btn-rec:hover{transform:translateY(-1px);filter:none}
.studio .btn-rec:active{transform:translateY(2px);border-bottom-width:1px}
.studio .btn-ghost-tape{display:inline-flex;align-items:center;font-weight:700;font-size:12px;letter-spacing:.08em;text-transform:uppercase;padding:.8em 1.2em;border:1px solid var(--panel-edge);color:var(--ink);background:rgba(0,0,0,.3)}
.studio .btn-ghost-tape:hover{border-color:var(--snow);color:#fff;filter:none}

/* ── The crew ── */
.crew-section{padding:64px 0 0}
.crew-head{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid var(--panel-edge)}
.crew-head h2{font-size:clamp(28px,4.5vw,40px);text-transform:uppercase;letter-spacing:.03em}
.crew-head .osd{font-size:18px}
#team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.crew-card{--tape:#4a5568;position:relative;display:flex;flex-direction:column;gap:6px;padding:16px 16px 14px;color:inherit;text-decoration:none;transition:transform .16s cubic-bezier(.2,.9,.3,1.3),border-color .16s}
/* the cassette's label band, colored by department, runs across the top of every card */
.crew-card::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:var(--tape);opacity:.9}
.crew-card:hover{transform:translateY(-3px);border-color:var(--snow);filter:none}
.crew-card .no{font-family:var(--font-osd);font-size:15px;color:var(--osd-dim);letter-spacing:.06em;text-shadow:2px 0 0 rgba(0,0,0,.7)}
.crew-card .name{font-family:var(--font-display);font-size:24px;line-height:1;color:#fff;text-shadow:2px 2px 0 rgba(0,0,0,.6);margin:2px 0 0;text-transform:uppercase;letter-spacing:.02em}
.crew-card .role{font-family:var(--font-osd);font-size:19px;color:var(--osd);text-shadow:0 0 6px rgba(143,227,160,.5),2px 0 0 rgba(0,0,0,.7);letter-spacing:.04em;line-height:1.1}
.crew-card .socials{display:flex;gap:6px;margin-top:8px;min-height:22px}
.crew-card .socials a{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;color:var(--dim);border:1px solid var(--border)}
.crew-card .socials a:hover{color:#fff;border-color:var(--snow);filter:none}
.crew-card .socials svg{width:12px;height:12px;fill:currentColor}
.crew-legend{display:flex;gap:14px 22px;flex-wrap:wrap;margin-top:18px}
.crew-legend span{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-osd);font-size:16px;color:var(--dim);letter-spacing:.05em}
.crew-legend i{width:18px;height:6px;background:var(--tape);display:inline-block}
/* ── Text editor: E or ?edit (assets/js/studio-editor.js) ──
   The tape page's panel, docked on the right; the page shrinks to make room. */
.editor{position:fixed;right:0;top:0;bottom:0;z-index:60;width:min(340px,100vw);overflow:auto;background:#0d1119;border-left:1px solid #2a3442;box-shadow:-12px 0 40px rgba(0,0,0,.5);font-size:13px;color:var(--ink);display:flex;flex-direction:column;gap:10px;padding:12px 14px 14px;font-family:var(--font-body)}
.editor[hidden]{display:none}
body.ed-open{padding-right:min(340px,100vw)}
.editor h3{margin:0;font-family:var(--font-osd);font-weight:400;font-size:20px;color:var(--osd);letter-spacing:.06em;display:flex;justify-content:space-between;align-items:center}
.editor h3 .hbtns{display:flex;gap:2px}
.editor h3 button{background:none;border:1px solid transparent;color:var(--dim);font-size:17px;cursor:pointer;width:26px;height:26px;line-height:1}
.editor h3 button:hover{color:var(--ink);border-color:#2a3442;filter:none}
.editor .row{display:flex;gap:8px}
.editor .row button{flex:1;padding:7px 10px;background:#161c27;color:var(--ink);border:1px solid #2a3442;border-bottom-width:3px;cursor:pointer;font:inherit;font-weight:700;letter-spacing:.05em;text-transform:uppercase;font-size:12px}
.editor .row button:hover{filter:none;color:#fff}
.editor .row button:active{border-bottom-width:1px;transform:translateY(2px)}
.editor #ed-toggle[aria-pressed="true"]{background:var(--rec);border-color:#8f1c22;color:#fff}
.editor #ed-save{background:var(--osd);color:#05070c;border-color:#2f7a48}
.editor .ed-help{margin:0;color:var(--dim);font-size:11px;line-height:1.45}
.editor .ed-help b{color:var(--ink)}
.editor .ed-sel{margin:0;font-family:var(--font-osd);font-size:15px;color:var(--osd);background:#05070c;padding:5px 8px;border:1px solid #2a3442;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.editor .ed-status{margin:0;font-family:var(--font-osd);font-size:14px;color:var(--osd-dim);letter-spacing:.05em}
/* Editing on: every line you can rewrite lights up on hover, the picked one is outlined, the one being typed in is dashed */
body.editing main .osd:hover,body.editing main .display:hover,body.editing main h1 small:hover,body.editing main .pitch:hover,body.editing main .hook:hover,body.editing main .readout .k:hover,body.editing main .readout .v:hover,body.editing main .side p:hover,body.editing main .btn-rec:hover,body.editing main .btn-ghost-tape:hover{outline:1px dashed rgba(92,158,184,.7);outline-offset:3px;cursor:text}
body.editing main #crew-count:hover,body.editing .crew-card *:hover{outline:none;cursor:default}
body.editing .ed-selected{outline:2px solid var(--snow) !important;outline-offset:3px}
body.editing .ed-editing{outline:2px dashed var(--osd) !important;outline-offset:3px;cursor:text;text-shadow:none}
body.editing main a,body.editing main button{cursor:text}
body.editing .nowplaying .picture:hover img{transform:none}
