/* =====================================================================
   Soul Surfer — the Laboratory (Brand Book Addendum A)
   Loaded after console.css. The instruments, the conditions, the engine room, the
   terminal, hacker mode, power-on, radio, rooms, and the layout polish that keeps the
   whole panel symmetrical: one rail, one screen, panels on a shared grid.
   Tokens live in site.css.
   ===================================================================== */

/* ---------- Layout polish: a symmetrical front panel ---------- */

/* The front panel runs the full height of the window, like an amplifier face beside its screen. */
@media (min-width: 901px) {
  .rail {
    height: calc(100vh - 24px);
  }

  .knob-nav {
    margin-block: auto;
  }
}

/* Panels in a row share one height and one baseline */
.panel-row {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

.panel-row.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Inside a half-width panel the three readings stack, each one a full row */
.panel-row .condition-cells {
  grid-template-columns: 1fr;
}

.panel-row .condition {
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto;
}

.panel-row .condition .condition-value {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  font-size: 1.35rem;
}

.panel-row .condition small {
  grid-column: 1 / -1;
}

.panel-row > .panel,
.panel-row > .glass {
  display: flex;
  flex-direction: column;
}

/* A dark glass face inside a section (the screen's own panels) */
.glass {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, rgba(5, 14, 22, 0.96), rgba(2, 8, 14, 0.99));
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.glass-title {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.section-head.is-centred {
  text-align: center;
  margin-inline: auto;
}

/* Home: the missions take the full width now that the fake scope is gone */
.mission-deck.is-full {
  grid-template-columns: 1fr;
}

.missions.is-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Footer: centred, like the badge row under a faceplate */
.site-footer .footer-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.site-footer .footer-brand {
  justify-content: center;
}

.site-footer .footer-nav {
  justify-content: center;
}

.site-footer .footer-motto {
  justify-content: center;
}

/* ---------- The instrument row: two counters, the meter, two counters ---------- */

.instrument-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.meter-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 22px 16px 18px;
}

.meter-panel h3 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.meter-foot {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1.45;
}

.counted {
  margin: 10px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* The blue glass meter (Addendum A, L2) */
.glass-meter {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  padding: 6px;
  background: linear-gradient(180deg, #0c0b09, #050504);
  box-shadow: inset 0 0 0 2px #2a261e, inset 0 0 0 3px #5a4a2e, 0 0 28px rgba(0, 116, 255, 0.18);
}

.glass-meter svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
}

.gm-scale {
  fill: none;
  stroke: #cfeaff;
  stroke-width: 1.4;
  filter: drop-shadow(0 0 3px rgba(92, 198, 255, 0.9));
}

.gm-red {
  fill: none;
  stroke: var(--redline);
  stroke-width: 3;
}

.gm-tick {
  stroke: #e8f5ff;
  stroke-width: 1;
}

.gm-tick.is-big {
  stroke-width: 1.8;
}

.gm-num,
.gm-caption {
  fill: #e8f5ff;
  font-family: var(--display);
  font-size: 10px;
  text-anchor: middle;
  letter-spacing: 0.05em;
}

.gm-caption {
  font-size: 9px;
  letter-spacing: 0.3em;
  fill: #9fd8ff;
}

.gm-needle {
  stroke: #fff4e0;
  stroke-width: 1.6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6));
}

.gm-hub {
  fill: #0b0b0b;
  stroke: #57524a;
  stroke-width: 1.5;
}

/* Lit digit counters */
.counter-digits {
  display: inline-flex;
  gap: 3px;
  padding: 8px 9px;
  border-radius: 6px;
  background: #020406;
  box-shadow: inset 0 0 0 1px #2c2820, inset 0 0 14px rgba(0, 0, 0, 0.9);
}

.counter-digits i {
  display: grid;
  place-items: center;
  min-width: 1.15em;
  padding: 4px 1px;
  border-radius: 3px;
  background: linear-gradient(180deg, #071624, #030a12);
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  line-height: 1;
  color: var(--blue-neon);
  text-shadow: 0 0 8px rgba(0, 168, 255, 0.85);
}

.counter-digits i.is-off {
  color: #10324a;
  text-shadow: none;
}

.meter-panel.is-green .counter-digits i:not(.is-off) {
  color: var(--green);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.75);
}

/* ---------- Lamps ---------- */

.lamp.is-idle {
  background: radial-gradient(circle at 40% 35%, #6b6252, #2d2a24 60%, #151411);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
}

.lamp.is-green {
  background: radial-gradient(circle at 40% 35%, #d6ffc9, var(--green) 45%, #0b5a1a 80%);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
}

/* ---------- North Shore conditions (Surf check) ---------- */

.condition-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.condition {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 8px;
  background: #020406;
  box-shadow: inset 0 0 0 1px #1f2a33, inset 0 0 18px rgba(0, 0, 0, 0.9);
}

.condition .lamp {
  width: 10px;
  height: 10px;
}

.condition b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.condition-value {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  color: var(--blue-neon);
  text-shadow: 0 0 10px rgba(0, 168, 255, 0.6);
}

.condition small {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.condition.is-off .condition-value {
  color: #2a4256;
  text-shadow: none;
}

.conditions .stamp,
.conditions-foot {
  margin: 12px 0 0;
}

.conditions-foot {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- Storm watch ---------- */

.storm-out {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.storm-sat {
  margin: 0;
}

.storm-sat img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.storm-sat figcaption,
.storm-row span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.storm-row {
  display: grid;
  gap: 2px;
  margin: 0;
}

.storm-row b {
  font-family: var(--mono);
  font-weight: 400;
  color: var(--amber);
}

.storm-none {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Engine room ---------- */

.engine-room {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.engine-room > .stamp {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
}

.rack {
  border-radius: 8px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #17160f, #0b0a08);
  box-shadow: inset 0 0 0 1px #3b362d, inset 0 0 26px rgba(0, 0, 0, 0.7);
}

.rack-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #3b362d;
}

.rack-head h3 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
}

.rack-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.rack-units {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
}

.rack-unit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 4px;
  background: #050505;
  box-shadow: inset 0 0 0 1px #2a261e;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #cfe3f2;
}

.rack-unit .lamp {
  width: 9px;
  height: 9px;
}

/* ---------- Project plates (control room: words, not invented percentages) ---------- */

.plates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.plate {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  gap: 8px;
  text-align: center;
  padding: 22px 16px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 14, 22, 0.95), rgba(2, 8, 14, 0.98));
}

.plate img {
  width: 64px;
  height: 64px;
}

.plate h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--blue-neon);
}

.plate p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* ---------- Lab radio + On Air lamp ---------- */

.radio-face {
  position: relative;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 6px;
  background: linear-gradient(180deg, #04223e, #021120);
  box-shadow: inset 0 0 0 1px #0b4c80, inset 0 0 20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.radio-scale {
  position: absolute;
  inset: 8px 14px auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-size: 0.8rem;
  color: #bfe6ff;
  text-shadow: 0 0 6px rgba(0, 168, 255, 0.8);
}

.radio-scale::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 10px;
  background: repeating-linear-gradient(90deg, rgba(191, 230, 255, 0.7) 0 1px, transparent 1px 10px);
}

.radio-pointer {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 30%;
  width: 2px;
  background: var(--redline);
  box-shadow: 0 0 6px var(--redline);
}

.is-on-air .radio-pointer {
  left: 61%;
  transition: left 1.2s ease;
}

.radio-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.radio-controls p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.setlist h4 {
  margin: 16px 0 8px;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.setlist ol {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 6px;
}

.setlist li span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.amp-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
}

.on-air {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 4px;
  border: 1px solid #3a352b;
  background: #070605;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b6252;
}

.on-air .lamp {
  width: 9px;
  height: 9px;
  background: radial-gradient(circle at 40% 35%, #5a2a26, #2a1210 70%);
  box-shadow: none;
}

.on-air.is-lit {
  color: var(--redline);
  border-color: rgba(255, 107, 94, 0.5);
}

.on-air.is-lit .lamp {
  background: radial-gradient(circle at 40% 35%, #ffd6d0, var(--redline) 45%, #7a1d14 85%);
  box-shadow: 0 0 10px rgba(255, 107, 94, 0.9);
}

/* ---------- World knob ---------- */

.world-knob {
  display: grid;
  grid-template-columns: 34px auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.world-knob img {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.world-knob.is-turning img {
  transform: rotate(60deg);
}

.world-knob span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.world-knob small {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--blue-soft);
}

/* ---------- Day, night and weather (F14, F15): the screen's light follows the real sky ---------- */

:root[data-shift='dawn'] canvas.world,
:root[data-shift='dusk'] canvas.world {
  filter: saturate(1.15) hue-rotate(-12deg);
}

:root[data-shift='day'] canvas.world {
  filter: brightness(1.12) saturate(1.05);
}

:root[data-shift='night'] canvas.world {
  filter: brightness(0.82) saturate(1.1);
}

:root[data-weather='rain'] canvas.world,
:root[data-weather='fog'] canvas.world {
  filter: saturate(0.7) brightness(0.9) contrast(0.95);
}

:root[data-weather='storm'] canvas.world {
  filter: saturate(0.55) contrast(1.15) brightness(0.85);
}

/* ---------- Ask the Lab ---------- */

.ask form {
  display: grid;
  gap: 10px;
}

.ask label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}

.ask textarea {
  width: 100%;
  resize: vertical;
  min-height: 84px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #020406;
  color: var(--text);
  font: inherit;
}

.ask button {
  justify-self: start;
}

.ask-out {
  margin: 12px 0 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* ---------- Partner rooms + patch bay ---------- */

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.patch-bay {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 14px;
}

.patch-jack {
  align-content: start;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 6px;
  border: 1px solid #3a352b;
  background: #070605;
  color: var(--cream);
  font: inherit;
  cursor: pointer;
}

.patch-jack i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, #000 0 5px, #8a8478 6px 9px, #2b2923 10px 13px, #57524a 14px);
}

.patch-jack b {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.patch-jack span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.patch-jack.is-patched {
  border-color: var(--green);
  box-shadow: 0 0 14px var(--green-glow);
}

.patch-jack.is-patched i {
  background: radial-gradient(circle, var(--green) 0 5px, #8a8478 6px 9px, #2b2923 10px 13px, #57524a 14px);
}

/* ---------- Co-contributors ---------- */

.cocontributors ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  color: var(--blue-soft);
}

.cocontributors [data-cocontributors-empty] {
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Odometer ---------- */

.odometer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}

.odometer .counter-digits i {
  font-size: 1rem;
  color: var(--amber);
  text-shadow: 0 0 6px rgba(255, 154, 24, 0.7);
}

/* ---------- Footer terminal (F12) ---------- */

.terminal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
}

.terminal .ticker-line {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal .ticker-sign {
  grid-column: 2;
  grid-row: 1;
}

.terminal-out {
  grid-column: 1 / -1;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px 0;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--green);
}

.terminal-out p {
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
}

.terminal-in {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #1d1a15;
}

.terminal-in label {
  color: var(--green);
}

.terminal-in input {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  text-transform: none;
  letter-spacing: 0.06em;
  caret-color: var(--green);
}

.terminal-in input::placeholder {
  color: #2f6b2a;
  text-transform: uppercase;
}

.terminal-in input:focus {
  outline: none;
}

.terminal-in:focus-within {
  border-top-color: rgba(57, 255, 20, 0.45);
}

/* ---------- Hacker mode (F13) ---------- */

.hacker {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  padding: 24px clamp(16px, 4vw, 48px) 80px;
  background: #000;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.86rem;
  cursor: text;
}

.hacker-code {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.55);
}

.hacker-hint {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2f6b2a;
}

.hacker-close {
  position: fixed;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border: 1px solid #2f6b2a;
  border-radius: 4px;
  background: #000;
  color: var(--green);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.hacker-granted {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 18px 34px;
  border: 2px solid var(--green);
  background: #000;
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: 0.2em;
  color: var(--green);
  box-shadow: 0 0 40px var(--green-glow);
}

/* ---------- Power-on (F8) ---------- */

.power-on {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity 0.6s ease;
}

.power-on.is-off {
  opacity: 0;
  pointer-events: none;
}

.power-screen {
  width: min(680px, 90vw);
  font-family: var(--display);
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  letter-spacing: 0.1em;
  color: var(--blue-neon);
  text-shadow: 0 0 10px rgba(0, 168, 255, 0.8);
}

.power-screen p {
  margin: 0 0 10px;
}

.power-screen .is-greeting {
  margin-top: 22px;
  color: var(--green);
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.8);
}

.power-skip {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 6px 14px;
  border: 1px solid #1e3b52;
  border-radius: 4px;
  background: transparent;
  color: var(--blue-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Tuning dial (F20): phones only ---------- */

.tuning-dial {
  display: none;
}

@media (max-width: 900px) {
  .tuning-dial:not([hidden]) {
    grid-column: 1 / -1;
    position: relative;
    display: block;
    border-radius: 6px;
    background: linear-gradient(180deg, #04223e, #021120);
    box-shadow: inset 0 0 0 1px #0b4c80, inset 0 0 16px rgba(0, 0, 0, 0.8);
  }

  .tuning-strip {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 8px calc(50% - 50px) 10px;
    background: repeating-linear-gradient(90deg, rgba(191, 230, 255, 0.35) 0 1px, transparent 1px 8px) bottom / 100% 6px no-repeat;
  }

  .tuning-strip::-webkit-scrollbar {
    display: none;
  }

  .tuning-station {
    flex: none;
    width: 100px;
    display: grid;
    justify-items: center;
    scroll-snap-align: center;
    text-decoration: none;
    font-family: var(--mono);
    color: #8ccdf5;
  }

  .tuning-station small {
    font-family: var(--display);
    font-size: 0.68rem;
    opacity: 0.7;
  }

  .tuning-station span {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .tuning-station[aria-current='page'] {
    color: #e8f5ff;
    text-shadow: 0 0 8px rgba(0, 168, 255, 0.9);
  }

  .tuning-needle {
    position: absolute;
    height: 16px;
    bottom: 2px;
    left: 50%;
    width: 2px;
    background: var(--redline);
    box-shadow: 0 0 6px var(--redline);
    pointer-events: none;
  }

  .amp-extras {
    display: none;
  }
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1280px) {
  .instrument-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .instrument-row > .is-primary {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .missions.is-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .instrument-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-row.is-two,
  .engine-room,
  .rooms-grid,
  .condition-cells {
    grid-template-columns: 1fr;
  }

  .missions.is-five {
    grid-template-columns: 1fr;
  }

  .terminal {
    grid-template-columns: 1fr;
  }

  .terminal .ticker-sign {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .plates,
  .patch-bay {
    grid-template-columns: 1fr;
  }

  .counter-digits i {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-knob img,
  .is-on-air .radio-pointer,
  .power-on {
    transition: none;
  }
}

/* ---------- Small helpers ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero-tag {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.conditions .panel-title {
  margin-bottom: 14px;
}

.conditions {
  display: grid;
  gap: 0;
}

.lab-note.is-full {
  max-width: none;
}

/* Anything marked hidden stays hidden, whatever display a component sets */
[hidden] {
  display: none !important;
}

/* Every meter's foot holds two lines, so the counters sit on one centre line */
.meter-foot {
  min-height: 2.9em;
  display: grid;
  align-items: start;
}

.meter-panel h3 {
  min-height: 1.4em;
}

/* Digits size themselves to their panel, so five digits always fit */
.meter-panel {
  container-type: inline-size;
  min-width: 0;
}

.meter-panel .counter-digits {
  gap: 2px;
  padding: 6px;
}

.meter-panel .counter-digits i {
  min-width: 1.05em;
  font-size: clamp(0.95rem, 13cqi, 1.7rem);
}

.meter-panel.is-primary .glass-meter {
  max-width: 100%;
}

.amp-extras:has(.world-knob[hidden]) {
  justify-content: center;
}

.on-air,
.world-knob small {
  white-space: nowrap;
}

/* ---------- Graphics library (assets/img/library): framed like a small screen ---------- */

.art {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 65%, rgba(0, 116, 255, 0.12), transparent 70%), #02060a;
  box-shadow: inset 0 0 0 1px rgba(0, 168, 255, 0.18), inset 0 0 30px rgba(0, 0, 0, 0.85);
}

.art img {
  display: block;
  width: 100%;
  height: auto;
}

.art.is-bare {
  padding: 0;
  background: none;
  box-shadow: none;
}

.art.is-centred {
  max-width: 420px;
  margin: 0 auto 28px;
}

.neon-panel > .art:first-child {
  margin: 0 0 22px;
}

.product:has(> .art) {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.section-head.has-art {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: none;
}

.section-head.has-art > :not(.art) {
  grid-column: 1;
}

.section-head.has-art > .art {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.note > .art,
.card > .art {
  margin: 0 0 14px;
  max-width: 260px;
}

@media (prefers-reduced-motion: no-preference) {
  .art img {
    transition: filter 0.4s ease;
  }

  .art:hover img {
    filter: drop-shadow(0 0 6px rgba(0, 168, 255, 0.45));
  }
}

@media (max-width: 900px) {
  .section-head.has-art {
    grid-template-columns: 1fr;
  }

  .section-head.has-art > .art {
    grid-column: 1;
    grid-row: auto;
    max-width: 360px;
    margin-top: 18px;
  }

  .product:has(> .art) {
    grid-template-columns: 1fr;
  }

  .product > .art {
    max-width: 420px;
  }
}

.cta-band .art.is-centred,
.cocontributors .art.is-centred {
  justify-self: center;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}

/* =====================================================================
   Interim site (November 2026)
   The home page as seven short sections, and a few small parts shared by the
   Platforms, Incubator and Our Story pages. Colours and type come from the
   tokens at the top of site.css; nothing here changes an existing component.
   ===================================================================== */

/* ---------- Home hero ---------- */

/* Headline: one line across the screen. It may wrap on narrow screens. */
.is-home .hero-title {
  /* cqi = a percentage of the hero's own width, so the line fits whatever the screen size */
  font-size: clamp(2.1rem, 7cqi, 4.6rem);
  letter-spacing: 0.05em;
  line-height: 1.02;
  margin-bottom: 0.35em;
  text-shadow: 0 0 22px rgba(0, 168, 255, 0.55), 0 0 60px rgba(0, 116, 255, 0.35);
}

.is-home .hero-title span {
  white-space: nowrap;
}

.is-home .hero-title em {
  font-style: normal;
  text-shadow: 0 0 22px var(--green-glow), 0 0 60px rgba(57, 255, 20, 0.3);
}

.is-home .hero-tag {
  margin: 0 0 18px;
  font-size: 0.95rem;
}

/* The headline is wider than the paragraph should be, so the paragraph gets its own measure */
.is-home .hero-copy {
  width: auto;
  /* never wider than the hero, so the tagline wraps instead of being cut off */
  max-width: 100%;
  flex: none;
}

.is-home .hero-copy .lede {
  width: auto;
  min-width: 0;
  max-width: 29em;
  font-size: 1.12rem;
  line-height: 1.55;
}

/* Text sits over the art, the pyramid sits on the horizon at the right */
.is-home > .container {
  position: relative;
  container-type: inline-size;
}

.is-home .hero-mark {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translateY(46%);
}

.is-home .hero-mark .ss-logo {
  --logo: clamp(260px, 27vw, 400px);
}

/* A pool of light under the pyramid, so it reads as lit, not pasted on */
.is-home .hero-mark::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 150%;
  aspect-ratio: 3 / 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(57, 255, 20, 0.28), rgba(0, 168, 255, 0.16) 55%, transparent 100%);
  filter: blur(18px);
  z-index: -1;
}

.is-home.world-hero {
  min-height: clamp(480px, 74vh, 700px);
}

/* ---------- Home sections ---------- */

.home-panel {
  padding: 30px 28px 30px;
  margin-top: 14px;
}

/* The small label above each section, with a hairline running to the panel's edge */
.home-panel > .panel-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
}

.home-panel > .panel-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(57, 255, 20, 0.5), transparent);
}

.home-headline {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: 0.04em;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--blue-neon);
  text-shadow: 0 0 16px rgba(0, 168, 255, 0.35);
}

.home-lede {
  margin: 0 0 22px;
  max-width: 44em;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cfe3f2;
}

.home-panel > .actions,
.story-grid .actions {
  margin-top: 22px;
}

/* ---------- Tiles: a label, a short headline, one line of copy ---------- */

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.tiles.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tiles.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tile,
.platform-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #03101b, #020810);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

/* A lit edge along the top of each tile, in the tile's own colour */
.tile::before,
.platform-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-neon), transparent 80%);
  box-shadow: 0 0 14px var(--blue-neon);
}

.tile.is-green::before,
.platform-card.is-green::before {
  background: linear-gradient(90deg, var(--green), transparent 80%);
  box-shadow: 0 0 14px var(--green);
}

.tile-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.tile h3,
.platform-card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--blue-neon);
}

.tile.is-green h3,
.platform-card.is-green h3 {
  color: var(--green);
}

.tile p,
.platform-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- Platform cards: two large, one quiet ---------- */

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.platform-card {
  text-decoration: none;
  padding: 24px 24px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.platform-card:hover,
.platform-card:focus-visible {
  border-color: var(--blue-neon);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.8), 0 0 18px rgba(0, 168, 255, 0.25);
  transform: translateY(-3px);
}

.platform-card.is-green:hover,
.platform-card.is-green:focus-visible {
  border-color: var(--green);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.8), 0 0 18px var(--green-glow);
}

.platform-card figure {
  margin: 0 0 6px;
}

.platform-card figure img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
}

.platform-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 1.9rem;
}

.platform-card .pill {
  font-family: var(--font);
  font-size: 0.68rem;
  text-shadow: none;
}

.platform-card .platform-tag {
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.platform-card .more {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-neon);
}

.platform-card.is-green .more {
  color: var(--green);
}

/* On hold: full width, smaller, no picture, no lit edge */
.platform-card.is-quiet {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 24px;
  padding: 18px 24px;
  background: #020810;
}

.platform-card.is-quiet::before {
  display: none;
}

.platform-card.is-quiet > * {
  grid-column: 1;
}

.platform-card.is-quiet h3 {
  font-size: 1.3rem;
  color: var(--text-muted);
}

.platform-card.is-quiet .more {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Ideas, engines, enterprises ---------- */

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.flow li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #03101b, #020810);
}

.flow li + li::before {
  content: '→';
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--green);
  text-shadow: 0 0 10px var(--green-glow);
}

.flow b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.flow span {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* The same diagram on a content page, where it sits on the page background */
.section .flow {
  margin-top: 8px;
}

/* ---------- Our story ---------- */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.story-art {
  margin: 0;
}

.story-art img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
}

/* A photograph, when one is supplied: framed like a screen */
.story-art.is-photo img,
.founder-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 0 24px rgba(0, 168, 255, 0.18);
}

.home-panel.is-connect {
  text-align: center;
}

.home-panel.is-connect .home-lede {
  margin-inline: auto;
}

.home-panel.is-connect .actions {
  justify-content: center;
}

/* ---------- Small parts used on the content pages ---------- */

/* The supporting pages, in a quieter second row of the footer */
.footer-nav.is-secondary {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* A status word beside a list item: In development, Planned */
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--blue-neon);
}

.tag.is-planned {
  color: var(--text-muted);
}

/* A simple list for things that are aims or areas, where a tick would wrongly say "done" */
.plain-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.plain-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.plain-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--blue-neon);
  box-shadow: 0 0 8px var(--blue-neon);
}

/* Four cards read better two by two */
.cards.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .cards.is-two {
    grid-template-columns: 1fr;
  }
}

/* A plain, honest note about where something stands */
.status-note {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-left: 2px solid var(--amber);
  background: rgba(255, 154, 24, 0.06);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}

/* A product that is on hold sits quieter than the others */
.product.is-quiet h2 {
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .platform-card {
    transition: none;
  }

  .platform-card:hover,
  .platform-card:focus-visible {
    transform: none;
  }
}

/* ---------- Narrower screens ---------- */

/* Mid-size screens: a smaller pyramid, so it never sits on the buttons */
@media (max-width: 1280px) {
  .is-home .hero-mark .ss-logo {
    --logo: 190px;
  }

  .tiles.is-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet-landscape screens: beside the rail the hero is too narrow for text and pyramid side by side,
   so the pyramid sits under the buttons instead of on top of them */
@media (min-width: 901px) and (max-width: 1100px) {
  .is-home > .container {
    flex-direction: column;
    align-items: stretch;
  }

  .is-home .hero-mark {
    position: static;
    transform: none;
    align-items: center;
    margin-top: 8px;
  }
}

/* Narrow screens: the pyramid goes back under the text, and everything stacks */
@media (max-width: 900px) {
  .is-home .hero-mark {
    position: static;
    transform: none;
  }

  .is-home .hero-mark .ss-logo {
    --logo: 220px;
  }

  .is-home .hero-copy .lede {
    font-size: 1.02rem;
  }

  .home-panel {
    padding: 24px 18px;
  }

  .tiles.is-three,
  .tiles.is-four,
  .platforms,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .flow li + li::before {
    content: '↓';
    left: 50%;
    top: -26px;
    transform: translateX(-50%);
  }

  .platform-card.is-quiet {
    grid-template-columns: 1fr;
  }

  .platform-card.is-quiet .more {
    grid-column: 1;
    grid-row: auto;
  }

  .story-art img {
    max-width: 260px;
  }
}
