/* =========================================================
   LIVE & ON-SITE DEPLOYMENTS — broadcast-console page
   SANDBOX / TRIAL. Deliberately departs from the editorial post-cover
   template used by projects.html and the partner pages — this one
   leans into the actual subject (a broadcast control room): a
   multiview-style hero, an animated signal-chain diagram, a VU meter,
   LCD-style stat readouts, and a system-status panel for the
   redundancy roadmap. Loads after style.css (reuses its color/type
   variables and the .post-lightbox component from projects.css —
   nothing here redefines either).
   ========================================================= */

/* ---------------- hero copy (background is now .post-cover, see
   projects.css — both live.html and broadcasts.html moved off the
   multiview-mosaic hero to the single full-bleed-photo pattern already
   proven on the partner pages; the retired mosaic markup + CSS is kept
   for reference at sandbox/_archive-multiview-mosaic-hero.html in case
   it's wanted again later) ---------------- */
.mv-tile{
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #14141a, #07070a);
}
.mv-tile img, .mv-tile video{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.35) contrast(1.05) brightness(.5);
  opacity: .8;
}
.mv-tile-label{
  position: absolute; top: 8px; left: 8px;
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: rgba(5,5,8,.55);
  padding: 3px 7px;
  border-radius: 2px;
  z-index: 1;
}
.console-hero-copy{
  position: relative;
  z-index: 1;
  /* Matches .hero's confirmed mobile value (style.css) exactly, so the
     readout lands the same distance off the bottom of the screen in
     Safari as the lede on index/studio/services/work/contact. */
  padding: 0 max(28px, env(safe-area-inset-right)) 105px max(28px, env(safe-area-inset-left));
}
@media(min-width: 900px){
  .console-hero-copy{ padding: 0 56px 70px; }
}
.console-title{
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 7.6vw, 6rem);
  line-height: .98;
  max-width: 22ch;
  color: var(--fg);
  text-transform: uppercase;
}
.console-title .thin{ color: var(--fg-muted); }
.console-lede{
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--fg-dim);
  margin-top: 22px;
}
.console-readout{
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  font-family: var(--f-body);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.console-readout .rec{ color: var(--accent); display: flex; align-items: center; gap: 6px; }
.console-readout .rec::before{
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: consoleBlink 1s steps(2, end) infinite;
}
@keyframes consoleBlink{ 50%{ opacity: .15; } }
.console-dot-sep{ color: var(--fg-muted); }

/* ---------------- section rhythm ---------------- */
.console-section{ padding: 56px 0; border-top: 1px solid var(--line); }
.console-section:first-of-type{ border-top: none; }
.console-label{
  display: block; margin-bottom: 16px;
  font-family: var(--f-display); font-size: 14px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.console-prose p{ font-size: 1rem; color: var(--fg-dim); line-height: 1.75; max-width: 68ch; }
.console-prose p + p{ margin-top: 16px; }

/* Two console-prose blocks sharing one section — side by side by default
   (smaller body copy so two columns stay comfortable at typical laptop/
   desktop widths), only dropping to a single stacked column on genuine
   phone-width screens. */
.console-pair{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.console-pair .console-prose p{ font-size: .9rem; line-height: 1.7; }
@media(min-width: 1000px){
  .console-pair{ gap: 64px; }
}
@media(max-width: 600px){
  .console-pair{ grid-template-columns: 1fr; gap: 40px; }
  .console-pair .console-prose p{ font-size: 1rem; line-height: 1.75; }
}

/* ---------------- signal chain diagram ---------------- */
.signal-chain{ display: flex; flex-direction: column; }
@media(min-width: 800px){ .signal-chain{ flex-direction: row; align-items: stretch; } }
.signal-node{
  flex: 1;
  position: relative;
  padding: 22px 22px 26px;
  border: 1px solid var(--line);
}
.signal-node + .signal-node{ border-top: none; }
@media(min-width: 800px){
  .signal-node + .signal-node{ border-top: 1px solid var(--line); border-left: none; }
}
.signal-node .k{
  font-family: var(--f-display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 8px;
}
.signal-node h4{
  font-family: var(--f-display); font-size: 1.05rem; margin: 0 0 6px;
  text-transform: none; letter-spacing: 0; color: var(--fg);
}
.signal-node p{ font-size: .85rem; color: var(--fg-dim); margin: 0; line-height: 1.5; }
.signal-node::after{
  content: "↓";
  position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%);
  color: var(--accent); font-size: 1.1rem; background: var(--bg); padding: 0 6px; z-index: 1;
}
.signal-node:last-child::after{ display: none; }
@media(min-width: 800px){
  .signal-node::after{
    content: "→";
    bottom: 50%; left: auto; right: -12px; transform: translateY(50%);
  }
}

/* ---------------- console tag-cloud (LED dot) ---------------- */
.console-tags .tag{
  font-family: var(--f-body);
  display: inline-flex; align-items: center; gap: 8px;
}
.console-tags .tag::before{
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--fg-muted);
  flex-shrink: 0;
}

/* ---------------- VU meter ---------------- */
.vu-meter{ display: flex; align-items: flex-end; gap: 4px; height: 60px; margin-top: 24px; }
.vu-bar{
  width: 6px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(0deg, #3ddc74 0%, #3ddc74 55%, #ffd23d 55%, #ffd23d 80%, var(--accent) 80%, var(--accent) 100%);
  animation: vuBounce 1.4s ease-in-out infinite;
  transform-origin: bottom;
}
.vu-bar:nth-child(1){ animation-delay: -.1s; }
.vu-bar:nth-child(2){ animation-delay: -.9s; }
.vu-bar:nth-child(3){ animation-delay: -.4s; }
.vu-bar:nth-child(4){ animation-delay: -1.2s; }
.vu-bar:nth-child(5){ animation-delay: -.2s; }
.vu-bar:nth-child(6){ animation-delay: -.7s; }
.vu-bar:nth-child(7){ animation-delay: -1s; }
.vu-bar:nth-child(8){ animation-delay: -.5s; }
.vu-bar:nth-child(9){ animation-delay: -1.3s; }
.vu-bar:nth-child(10){ animation-delay: -.15s; }
@keyframes vuBounce{
  0%, 100%{ transform: scaleY(.18); }
  50%{ transform: scaleY(1); }
}

/* ---------------- LCD-style stats ---------------- */
/* No border of its own — the .console-section it always sits alone
   inside already draws the top divider, and the next section's own
   border-top draws the bottom one. Giving this its own top+bottom
   border on top of that produced two close-together lines on both
   sides instead of the one every other section boundary gets. */
.console-stats{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}
.console-stat .num{
  display: block;
  font-family: var(--f-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255,61,26,.35);
  line-height: 1;
}
.console-stat .label{
  display: block; margin-top: 8px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted);
}

/* ---------------- gallery, same tile language as the hero ---------------- */
.console-gallery{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
@media(min-width: 700px){ .console-gallery{ grid-template-columns: repeat(3, 1fr); } }
.console-gallery .mv-tile{ aspect-ratio: 4/3; cursor: pointer; border: 0; padding: 0; background-clip: padding-box; }
.console-gallery .mv-tile img, .console-gallery .mv-tile video{
  opacity: 1;
  filter: grayscale(.15) contrast(1.05) brightness(.85);
  transition: filter .3s var(--ease), transform .5s var(--ease);
}
.console-gallery .mv-tile:hover img, .console-gallery .mv-tile:hover video{
  filter: none; transform: scale(1.045);
}

/* ---------------- redundancy: system status panel ---------------- */
.status-panel{ display: flex; flex-direction: column; gap: 14px; }
.status-row{
  display: flex; align-items: flex-start; gap: 14px;
  border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px;
}
.status-dot{ width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.status-row--online .status-dot{ background: #3ddc74; box-shadow: 0 0 10px rgba(61,220,116,.5); }
.status-row--planned .status-dot{ background: var(--fg-muted); }
.status-row .status-k{
  font-family: var(--f-display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-muted); display: block; margin-bottom: 4px;
}
.status-row--online .status-k{ color: #3ddc74; }
.status-row p{ margin: 4px 0 0; font-size: .88rem; color: var(--fg-dim); }

@media (prefers-reduced-motion: reduce){
  .console-readout .rec::before,
  .vu-bar{ animation: none; }
  .vu-bar{ transform: scaleY(.5); }
}
