@font-face {
  font-family: Tomorrow;
  src: url('/assets/tomorrow-black.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Share Tech Mono';
  src: url('/assets/monitor-mono.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #03090b;
  --panel: #071214;
  --line: #295354;
  --white: #e4eeeb;
  --soft: #a2bcba;
  --cyan: #24f0df;
  --aqua: #8bd6cb;
  --amber: #f2ad85;
  --red: #c34c63;
  --mono: 'Share Tech Mono', Consolas, monospace;
  --body: var(--mono);
  --display: Tomorrow, 'Arial Black', system-ui, sans-serif;
  --pad: clamp(1.15rem, 4vw, 5.2rem);
  --mast: 3.9rem;
  --max: 116rem;
  --route: 0%;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: var(--mast);
}
body {
  margin: 0;
  min-width: 0;
  color: var(--white);
  background: transparent;
  isolation: isolate;
  font: 1rem/1.5 var(--body);
}
h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #ffc5a0;
  outline-offset: 4px;
}
::selection {
  color: #00120e;
  background: #69ffe8;
}
.symbols {
  width: 0;
  height: 0;
  position: absolute;
  pointer-events: none;
}
.icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  flex: none;
}
.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.skip,
.noscript {
  position: fixed;
  z-index: 12;
  padding: 0.75rem 1rem;
  background: var(--cyan);
  color: var(--ink);
}
.skip {
  left: 0.7rem;
  top: -5rem;
}
.skip:focus {
  top: 0.6rem;
}
.noscript {
  left: 0;
  bottom: 0;
}
.broadcast {
  position: fixed;
  inset: var(--mast) 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #02080a;
}
.broadcast video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.12) saturate(0.74) brightness(0.88);
}
.video-mask,
.scanlines {
  position: absolute;
  inset: 0;
}
.video-mask {
  background:
    linear-gradient(
      90deg,
      rgba(1, 9, 11, 0.89),
      rgba(2, 13, 15, 0.79) 16%,
      rgba(2, 13, 15, 0.47) 30%,
      rgba(1, 19, 21, 0.06) 47%,
      rgba(2, 18, 20, 0.05) 70%,
      rgba(1, 13, 16, 0.55) 89%,
      rgba(1, 10, 12, 0.79)
    ),
    linear-gradient(0deg, rgba(0, 8, 11, 0.8), transparent 28%, transparent 83%, rgba(0, 10, 13, 0.34));
}
.scanlines {
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(2, 12, 15, 0.17) 2px 3px);
  opacity: 0.75;
}
.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/oxide.png');
  opacity: 0.16;
}
.mast {
  position: sticky;
  top: 0;
  height: var(--mast);
  background: rgba(3, 10, 12, 0.98);
  border-bottom: 1px solid #214445;
  z-index: 5;
}
.mast::after {
  content: '';
  pointer-events: none;
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 21%;
  height: 2px;
  background: linear-gradient(
    90deg,
    #942d42,
    transparent 6%,
    #227777 27%,
    transparent 69%,
    #37656a 88%,
    transparent
  );
}
.mast-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.45rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  color: var(--white);
}
.brand svg {
  width: 2.6rem;
  height: 2.5rem;
  color: var(--cyan);
  filter: drop-shadow(0 0 5px #0bdcca42);
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font: 400 1.02rem/1.2 var(--mono);
  letter-spacing: 0.25em;
}
.brand i {
  font-style: normal;
  color: var(--cyan);
  letter-spacing: -0.09em;
  margin-left: 0.1em;
}
.brand small {
  font-size: 0.53rem;
  letter-spacing: 0.25em;
  margin-top: 0.2rem;
  text-transform: uppercase;
  color: #80b5ad;
}
.mast nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3.5rem);
  margin-left: auto;
  margin-right: clamp(0.1rem, 3vw, 4rem);
}
.mast nav a {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: #c4d4cf;
  min-height: 40px;
  letter-spacing: 0.03em;
}
.mast nav a::before {
  content: '//';
  color: #658581;
}
.mast nav a[aria-current] {
  color: var(--cyan);
  text-shadow: 0 0 9px #19d4cd72;
}
.mast nav a[aria-current]::before {
  content: '[';
  color: inherit;
}
.mast nav a[aria-current]::after {
  content: ']';
}
.mast nav a:hover {
  color: var(--cyan);
}
.sound,
.nav-toggle,
.viewer-exit,
.viewer-dock button,
.isolate,
.playback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #c6e8e3;
  min-height: 35px;
  padding: 0.37rem 0.75rem;
  font: 400 0.72rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.035em;
  border: 1px solid #3c6867;
  background: #051112bd;
}
.sound {
  min-width: 8rem;
}
.sound .icon,
.isolate .icon,
.viewer-dock .icon {
  color: var(--cyan);
  width: 0.95rem;
  height: 0.95rem;
}
.sound:hover,
.nav-toggle:hover,
.viewer-exit:hover,
.viewer-dock button:hover,
.isolate:hover,
.playback:hover {
  color: #e7fffa;
  border-color: var(--cyan);
  background: #123030;
}
.nav-toggle {
  display: none;
  width: 38px;
  padding: 0;
}
.hero {
  position: relative;
  min-height: calc(100svh - var(--mast));
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.fringe {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.fringe::before,
.fringe::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(110px, 21vw, 375px);
  background: url('/assets/tape-wear.svg') left center / 100% 100% no-repeat;
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.72) 50%, transparent);
  opacity: 0.82;
  animation: tracking-wear 7.9s steps(1, end) infinite;
}
.fringe::before {
  left: 0;
}
.fringe::after {
  right: 0;
  scale: -1 1;
  animation-delay: -4.6s;
}
@keyframes tracking-wear {
  0%,
  63%,
  69%,
  100% {
    transform: translate(0, 0);
    opacity: 0.77;
  }
  65% {
    transform: translate(6px, -3px);
    opacity: 0.96;
  }
  67% {
    transform: translate(-4px, 3px);
    opacity: 0.53;
  }
}
.hero-stage {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) clamp(165px, 16vw, 246px);
  grid-template-rows: 1fr auto;
  column-gap: 1.2rem;
  min-height: 32rem;
}
.film-slot,
.diagnostics-toggle {
  display: none;
}
.hero-copy {
  grid-area: 1/1;
  align-self: start;
  padding-top: clamp(3.35rem, 10.5svh, 8.4rem);
  position: relative;
}
.eyebrow,
.access-line,
.section-code,
.feed-signature,
.panel-cap,
.map-legend,
.transport-inner,
.drawing-head,
.diagram-index,
.diagram-scale,
.scan-id,
.schematic figcaption > span,
.proto-index,
.proto-title small,
.proto-status,
.foot-inner > span,
.ghost-frequency,
.dialog-bar,
.input-label,
.packet-meta {
  font: 400 0.72rem/1.35 var(--mono);
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.eyebrow,
.feed-signature,
.panel-cap,
.map-legend,
.section-code,
.drawing-head,
.transport-inner {
  display: flex;
  align-items: center;
}
.eyebrow {
  color: var(--cyan);
  gap: 0.58rem;
}
.access-line {
  font-size: clamp(0.68rem, 0.86vw, 0.83rem);
  letter-spacing: 0.1em;
  text-shadow: 0 1px 5px #000;
}
.access-line i {
  font-style: normal;
  color: #a6b9b5;
}
.led,
.rec-dot {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 8px #26f8db90;
}
.rec-dot {
  width: 6px;
  height: 6px;
  background: #ff977d;
  box-shadow: 0 0 7px #e34f565d;
}
h1,
h2 {
  font: 800 1rem/1 var(--display);
}
.hero h1 {
  margin: 1.05rem 0 0.9rem;
  font-size: clamp(2.3rem, 3.75vw, 4.7rem);
  line-height: 1.035;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.torn-type {
  display: block;
  position: relative;
  width: max-content;
  max-width: 100%;
  color: #edf2ee;
  text-shadow:
    1px 0 #60bfc1,
    -1px 0 #7f5157;
}
.torn-type,
.ink-type {
  mask-image: url('/assets/flaked-ink.svg');
  mask-size: 180px 51px;
  mask-repeat: repeat;
}
.torn-type::before,
.torn-type::after {
  content: attr(data-copy);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.torn-type::before {
  color: #e7fffb;
  clip-path: polygon(0 33%, 100% 33%, 100% 38%, 0 38%);
  transform: translateX(3px);
}
.torn-type::after {
  color: #ff899a;
  clip-path: inset(69% 0 26%);
  transform: translateX(-3px);
  animation: type-drift 6.7s steps(1, end) infinite;
}
.cyan-type {
  color: var(--cyan);
  text-shadow:
    -1px 0 #006a70,
    2px 1px #26605e;
}
.cyan-type::before {
  color: #7ffff4;
}
.cyan-type::after {
  color: #4bbcdb;
  animation-delay: -2.6s;
}
.cursor {
  color: #71fff2;
}
@keyframes type-drift {
  0%,
  79%,
  86%,
  100% {
    transform: translateX(-3px);
    clip-path: inset(69% 0 26%);
  }
  81% {
    transform: translateX(6px);
    clip-path: inset(45% 0 43%);
  }
  84% {
    transform: translateX(-7px);
    clip-path: inset(18% 0 76%);
  }
}
.hero-copy > p {
  font: 400 clamp(0.94rem, 1.15vw, 1.12rem) / 1.5 var(--mono);
  color: #d0dcd5;
  letter-spacing: 0.012em;
  text-shadow: 0 1px 4px #000;
}
.hero-copy > p b {
  font-weight: 400;
  color: #f0f4ec;
}
.hero-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-actions {
  margin-top: 1.4rem;
}
.action {
  min-height: 42px;
  padding: 0.65rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid transparent;
  font: 400 0.82rem/1.25 var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.action.primary {
  background: var(--cyan);
  color: #041514;
  border-color: #4affeb;
  box-shadow:
    0 0 17px #0ac4bf42,
    1px 2px 0 #1a5957;
}
.action.primary:hover {
  background: #a1fff2;
  box-shadow:
    -2px 1px #cf6976,
    2px -1px #488f9d;
}
.action.secondary {
  border-color: #829a95;
  background: #041113bc;
  color: #e2e9e4;
}
.action.secondary:hover:not(:disabled) {
  border-color: var(--cyan);
  box-shadow: 2px 1px #256666;
  color: var(--cyan);
}
.action .icon {
  width: 1rem;
  height: 1rem;
}
.feed-signature {
  gap: 0.7rem;
  margin-top: 1.2rem;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: #bbd1c9;
  text-shadow: 0 1px 4px #000;
}
.feed-signature i {
  width: 1px;
  height: 0.7rem;
  background: #66867e;
}
.instruments {
  grid-area: 1/3;
  align-self: start;
  margin-top: clamp(1.65rem, 4.5svh, 3.6rem);
  display: grid;
  gap: clamp(0.8rem, 2.8svh, 1.6rem);
}
.instrument,
.field-tabs a,
.schematic {
  position: relative;
  border: 1px solid #377372;
  background: rgba(3, 13, 16, 0.82);
  box-shadow: inset 0 0 18px #0624263d;
}
.instrument::before,
.field-tabs a::before,
.schematic::before {
  content: '';
  position: absolute;
  left: -1px;
  top: -1px;
  width: 12px;
  height: 6px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  pointer-events: none;
}
.instrument::after,
.field-tabs a::after,
.schematic::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 7px;
  border-bottom: 1px solid #69d8cc;
  border-right: 2px solid #69d8cc;
  pointer-events: none;
}
.panel-cap,
.drawing-head {
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid #2c5757;
  font-size: clamp(0.59rem, 0.74vw, 0.74rem);
  color: #a7ddd4;
  text-align: left;
}
.status-box dl {
  display: grid;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem 0.8rem;
}
.status-box dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: clamp(0.61rem, 0.74vw, 0.74rem);
  text-transform: uppercase;
  line-height: 1.25;
}
.status-box dt {
  color: #becdc7;
}
.status-box dt::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--cyan);
  margin-right: 0.55rem;
  vertical-align: 0.12rem;
}
.status-box dd {
  color: var(--cyan);
}
.map-box {
  padding: 0;
  text-align: left;
  width: 100%;
  display: block;
}
.map-box img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.2rem 0.4rem 0;
}
.map-box:hover,
.field-tabs a:hover {
  background: #071d20e8;
  border-color: var(--cyan);
}
.map-legend {
  padding: 0 0.65rem 0.4rem;
  gap: 0.4rem;
  font-size: 0.54rem;
  color: #92b6ad;
}
.map-legend i {
  width: 4px;
  height: 4px;
  background: var(--cyan);
}
.map-legend b {
  margin-left: auto;
  color: #83cfc7;
  font-weight: 400;
}
.log-window {
  grid-area: 2/1;
  align-self: end;
  width: min(100%, 18.6rem);
  margin-bottom: clamp(1.35rem, 4svh, 3rem);
}
.log-body {
  padding: 0.65rem 0.8rem;
  font: 0.7rem/1.55 var(--mono);
  color: #b4c9c1;
}
.log-body span,
.log-body strong {
  display: block;
}
.log-body i {
  color: #65c1b3;
  font-style: normal;
}
.log-body strong {
  color: var(--cyan);
  font-weight: 400;
}
.log-body .block-cursor {
  display: inline-block;
  margin-left: 0.3em;
  color: var(--cyan);
  animation: cursor 1.5s steps(1, end) infinite;
}
@keyframes cursor {
  0%,
  70%,
  100% {
    opacity: 1;
  }
  71%,
  99% {
    opacity: 0.16;
  }
}
.field-tabs {
  grid-area: 2/2/3/4;
  align-self: end;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-bottom: clamp(1.35rem, 4svh, 3rem);
}
.field-tabs a {
  display: flex;
  align-items: center;
  padding: 0.72rem 0.85rem;
  gap: 0.7rem;
  min-height: 3.8rem;
  min-width: 0;
  flex: 1;
  max-width: 14rem;
  color: #dce9e2;
  font-size: 0.82rem;
  line-height: 1.25;
}
.field-tabs small {
  display: block;
  font-size: 0.58rem;
  color: #82bdb4;
  letter-spacing: 0.09em;
  margin-bottom: 0.2rem;
}
.field-tabs .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--cyan);
}
.field-tabs b {
  font-weight: 400;
  color: var(--cyan);
  margin-left: auto;
}
.transport {
  background: #040c0fed;
  border-top: 1px solid #2c5352;
  border-bottom: 1px solid #1d3b3b;
}
.transport-inner {
  min-height: 47px;
  gap: 1rem;
  color: #a9c9c0;
  font-size: 0.69rem;
}
.transport-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.transport-label > span {
  font-size: 0.62rem;
  color: #85a6a0;
}
.wave {
  position: relative;
  width: clamp(6rem, 18vw, 20rem);
  height: 17px;
  background: url('/assets/waveform.svg') center/100% 100% no-repeat;
}
.wave-done {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--route)) 0 0);
  background: var(--cyan);
  mask: url('/assets/waveform.svg') center/100% 100% no-repeat;
}
#playhead {
  position: absolute;
  left: var(--route);
  height: 100%;
  width: 1px;
  background: var(--cyan);
}
.deck-time {
  margin-left: auto;
  white-space: nowrap;
  font: 400 0.76rem var(--mono);
  color: #9fb4ae;
}
.deck-time b {
  color: #e0eae3;
  font-weight: 400;
}
.deck-time i {
  font-style: normal;
  color: var(--cyan);
  margin-left: 0.35rem;
}
.playback,
.isolate {
  min-height: 32px;
}
.playback {
  width: 32px;
  padding: 0;
  color: var(--cyan);
}
.playback svg {
  width: 0.72rem;
  height: 0.72rem;
}
.isolate {
  font-size: 0.67rem;
}

.dialog-bar,
.dialog-body {
  position: relative;
}
dialog {
  padding: 0;
  background: #0b1519;
  color: var(--white);
  border: 1px solid #52737a;
  width: min(35rem, calc(100% - 2rem));
  max-height: 88dvh;
  overflow: auto;
  box-shadow: 0 20px 100px #000a;
}
dialog::backdrop {
  background: rgba(0, 7, 10, 0.81);
}
body.modal-open {
  overflow: hidden;
}
.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem 0.4rem 1.25rem;
  min-height: 3rem;
  color: #a6c3c7;
  border-bottom: 1px solid #345057;
  background: #101e23;
  font-size: 0.6rem;
}
.dialog-bar > span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--cyan);
}
.close:hover {
  background: #20363b;
}
.dialog-body {
  padding: clamp(1.1rem, 4vw, 2rem);
}
.dialog-body h2 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  text-transform: uppercase;
  margin: 0.9rem 0 1.1rem;
}
.dialog-body p {
  color: #b7cbd0;
  line-height: 1.5;
}
.dialog-body .eyebrow {
  font-size: 0.62rem;
}
.module {
  margin: 1.15rem 0;
  background: #081114;
  border: 1px solid var(--line);
  padding: 1rem;
}
.module-output {
  font: 600 clamp(2.3rem, 8vw, 4rem) / 1 var(--display);
  letter-spacing: 0.09em;
  color: var(--cyan);
  display: block;
  margin: 0.4rem 0;
}
.module-output small {
  font: normal 0.8rem var(--mono);
  letter-spacing: 0;
  color: #aec6c9;
}
.input-label,
.packet-meta {
  display: block;
  color: var(--aqua);
  font-size: 0.62rem;
}
.module label {
  display: block;
}
.module input[type='range'] {
  accent-color: var(--cyan);
  width: 100%;
  margin: 1.1rem 0 0.6rem;
}
.range-ends,
.module-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font: 0.67rem var(--mono);
  color: var(--soft);
}
.module-nav {
  justify-content: flex-start;
  margin: 1rem 0 0.25rem;
}
.module-nav button,
.small-control,
.hint {
  min-height: 34px;
  padding: 0.4rem 0.65rem;
  font: 600 0.7rem var(--mono);
  border: 1px solid #3a5960;
  color: var(--cyan);
  background: #112327;
}
.module-nav button:hover,
.small-control:hover,
.hint:hover {
  border-color: var(--cyan);
}
.button-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.feedback,
.hint-text {
  margin-top: 0.7rem;
  font: 0.78rem/1.5 var(--mono);
  min-height: 1.2em;
}
.feedback:empty,
.hint-text:empty {
  display: none;
}
.dialog-body .feedback {
  color: var(--amber);
}
.dialog-body .feedback.good,
.dialog-body .success {
  color: var(--cyan);
}
.found-note {
  margin: 0.9rem 0;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--cyan);
  background: #102327;
}
.found-note small {
  color: var(--cyan);
  font: 0.65rem var(--mono);
  letter-spacing: 0.12em;
}
.found-note p {
  margin: 0.5rem 0 0;
}
.tty-log {
  height: clamp(11rem, 34vh, 20rem);
  overflow: auto;
  background: #070f12;
  border: 1px solid #30484e;
  padding: 0.8rem;
  font: 0.8rem/1.55 var(--mono);
  scrollbar-color: #39585d #101c20;
}
.tty-log div {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding-bottom: 0.25rem;
}
.tty-log .echo {
  color: var(--cyan);
  margin-top: 0.45rem;
}
.tty-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.tty-form label {
  font: 0.8rem var(--mono);
  color: var(--cyan);
}
.tty-form input {
  min-width: 0;
  flex: 1;
  color: var(--white);
  border: 1px solid #3b575e;
  background: #081115;
  padding: 0.6rem;
  font: 0.83rem var(--mono);
}
.terminal-help {
  margin: 0.6rem 0 0;
  color: var(--soft);
  font: 0.69rem/1.4 var(--mono);
}
.packet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: min(100%, 14rem);
  margin: 0.7rem auto;
}
.packet-grid button {
  padding: 0;
  aspect-ratio: 1;
  background: #102025;
  border: 1px solid #36535b;
  display: grid;
  place-items: center;
}
.packet-grid svg {
  width: 100%;
  height: 100%;
  stroke: #a0b7bc;
  fill: none;
  stroke-width: 4;
}
.packet-grid .linked {
  background: #123033;
  border-color: #438a89;
}
.packet-grid .linked svg {
  stroke: var(--cyan);
}
.packet-grid button:hover {
  border-color: var(--cyan);
}
.packet-meta {
  text-align: center;
}
.final-choices {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}
.final-choices button {
  justify-content: space-between;
}
.clock-label {
  font: 0.75rem var(--mono);
  color: var(--amber);
}

.chapter {
  position: relative;
  border-top: 1px solid #345756;
  isolation: isolate;
  background: rgba(4, 12, 14, 0.94);
}
.chapter::before {
  content: '';
  z-index: -1;
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: url('/assets/oxide.png');
  opacity: 0.16;
}
.chapter::after {
  content: '';
  z-index: -1;
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: url('/assets/tape-wear.svg') left top / 14% 640px repeat-y;
  opacity: 0.17;
  mask-image: linear-gradient(90deg, #000, transparent 32%);
}
.hardware {
  min-height: 166svh;
}
.hardware-sticky {
  position: sticky;
  top: var(--mast);
  padding-block: clamp(1.5rem, 4.8svh, 4rem);
}
.section-code {
  gap: 1rem;
  color: #94aaa4;
  font-size: 0.66rem;
}
.section-code > span:first-child {
  color: var(--cyan);
}
.section-code i {
  height: 1px;
  background: linear-gradient(90deg, #476e68, transparent 45%, #304b48 77%, transparent 79%, #56726c);
  flex: 1;
}
.hardware-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(2.5rem, 6.4vw, 8rem);
  margin-top: clamp(1.5rem, 4.5svh, 4rem);
}
.chapter h2,
.dialog-body h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.01;
  color: var(--white);
  text-transform: uppercase;
}
.chapter h2 {
  font-size: clamp(2.6rem, 4.45vw, 5.5rem);
  margin: 0.85rem 0 1.1rem;
  text-shadow:
    -2px 1px #844957,
    2px 0 #347e7c;
}
.chapter h2 em {
  color: var(--cyan);
  font-style: normal;
}
.slash {
  color: var(--cyan);
}
.intro {
  max-width: 35rem;
  font: 400 clamp(0.95rem, 1.1vw, 1.09rem) / 1.55 var(--mono);
  color: #c0d1c9;
}
.layer-select {
  display: flex;
  flex-direction: column;
  max-width: 27rem;
  margin: 1.25rem 0 0.35rem;
}
.layer-select button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px dashed #3e5854;
  text-align: left;
  padding: 0.57rem 0.65rem;
  min-height: 39px;
  color: #b9cdc5;
  font: 0.91rem var(--mono);
}
.layer-select button span {
  color: #86aaa0;
  font: 0.72rem var(--mono);
}
.layer-select button b {
  margin-left: auto;
  font-weight: 400;
}
.layer-select button[aria-pressed='true'],
.layer-select button:hover {
  color: var(--cyan);
  background: #12322ed1;
}
.layer-select button[aria-pressed='true']::before {
  content: '';
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 2px;
  background: var(--cyan);
  box-shadow: 2px 1px #7a4e56;
}
.text-link {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0;
  color: var(--cyan);
  font: 0.77rem var(--mono);
  text-transform: uppercase;
}
.text-link .icon {
  width: 0.9rem;
  height: 0.9rem;
}
.text-link:hover {
  text-decoration: underline;
}
.schematic {
  min-width: 0;
  isolation: isolate;
  background: #071214;
  border-color: #487571;
  box-shadow:
    3px 2px #1d3737,
    -1px 1px #5e444c;
}
.drawing-head {
  padding: 0.62rem 0.85rem;
  color: #b1c6bd;
  font-size: 0.66rem;
  background: repeating-linear-gradient(0deg, #061314 0 2px, #0c1a19 2.5px 3px);
}
.drawing-head i {
  font-style: normal;
  color: var(--cyan);
}
.tracking-status {
  color: var(--amber);
}
.tracking-status::before {
  content: '× ';
  color: #f07979;
}
.drawing-grid {
  height: clamp(16.5rem, 46svh, 33rem);
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 52% 50%, #183532 0, #0b1a1b 45%, #030a0d 100%);
}
.drawing-grid::before,
.drawing-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.drawing-grid::before {
  background-image:
    url('/assets/oxide.png'), repeating-linear-gradient(90deg, transparent 0 51px, #3c555622 52px 53px);
  opacity: 0.64;
}
.drawing-grid::after {
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, #02050640 2px 3px),
    url('/assets/tape-wear.svg') left center / 100% 100% no-repeat;
  opacity: 0.45;
}
.rack {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(-1px 0 #ac53605e) drop-shadow(1px 0.4px #3fcdbf90);
}
.rack-guides {
  stroke: #69998c;
  opacity: 0.38;
}
.part {
  transform-origin: 245px 140px;
}
.rack-echo {
  opacity: 0.4;
  animation: raster-echo 5.9s steps(1, end) infinite;
}
@keyframes raster-echo {
  0%,
  78%,
  85%,
  100% {
    transform: translateX(0);
    opacity: 0.3;
  }
  80% {
    transform: translateX(-13px);
    opacity: 0.86;
  }
  83% {
    transform: translateX(4px);
    opacity: 0.58;
  }
}
.shearing .rack-echo {
  animation: none;
  opacity: 1;
  transform: translateX(-16px);
}
.tear-line {
  position: absolute;
  top: 34%;
  left: 0;
  right: 0;
  height: 4px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 3%,
    #c25e6f7d 17%,
    transparent 23%,
    #22ccbe40 66%,
    transparent 90%
  );
  opacity: 0.6;
  animation: sync-roll 8.2s steps(1, end) infinite;
}
@keyframes sync-roll {
  0%,
  66%,
  100% {
    top: 34%;
    opacity: 0.35;
  }
  67% {
    top: 60%;
    opacity: 0.85;
  }
  70% {
    top: 61%;
    opacity: 0.6;
  }
  74% {
    top: 25%;
    opacity: 0.25;
  }
}
.shearing .tear-line {
  top: 58%;
  height: 9px;
  opacity: 0.9;
}
.scan-id,
.diagram-index,
.diagram-scale {
  position: absolute;
  z-index: 1;
  color: #90b4a7;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}
.scan-id {
  top: 0.7rem;
  left: 0.8rem;
}
.diagram-index {
  left: 0.8rem;
  bottom: 0.6rem;
  color: var(--cyan);
}
.diagram-scale {
  right: 0.8rem;
  bottom: 0.6rem;
}
.schematic figcaption {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-top: 1px dashed #55776d;
  padding: 0.8rem 1rem;
  min-height: 5.25rem;
  background: #091515;
}
.schematic figcaption > span {
  padding-top: 0.15rem;
  color: var(--cyan);
  font-size: 0.67rem;
}
.schematic figcaption strong {
  font: 400 1rem/1.2 var(--mono);
  color: #edf3e8;
  text-transform: uppercase;
}
.schematic figcaption p {
  font: 0.86rem/1.45 var(--mono);
  margin-top: 0.25rem;
  color: #b2c5bc;
}
.recovery {
  padding-block: clamp(2.2rem, 6.2vw, 6.7rem);
  background-color: rgba(3, 10, 13, 0.94);
}
.recovery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: clamp(1.6rem, 4vw, 4.5rem) 0 1.8rem;
}
.recovery-head h2 {
  margin-bottom: 0;
}
.recovery-head .intro {
  max-width: 23rem;
}
.protocol-list {
  border-top: 1px solid #55726a;
}
.protocol {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 3rem 4.5rem minmax(0, 1fr) auto 1.2rem;
  align-items: center;
  gap: 1.6rem;
  text-align: left;
  min-height: 5.5rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px dashed #48625c;
  background: linear-gradient(92deg, #111e1c88, #03100f88);
}
.protocol:hover,
.protocol:focus-visible {
  background: #0e2625;
  box-shadow:
    inset 2px 0 var(--cyan),
    inset -1px 0 #a55663;
}
.proto-index,
.proto-title small {
  color: #a1b7ae;
  font-size: 0.66rem;
}
.proto-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 2.8rem;
  border: 1px solid #3a615a;
  color: var(--cyan);
  background: repeating-linear-gradient(0deg, #203531 0 1px, transparent 1px 6px);
  box-shadow: -1px 1px #593d48;
}
.proto-art svg {
  width: 84%;
  height: 84%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.cipher-art {
  display: block;
  text-align: center;
  padding-top: 0.28rem;
  font: 0.81rem/1.25 var(--mono);
  letter-spacing: 0.1em;
}
.cipher-art i {
  font-style: normal;
  opacity: 0.6;
}
.proto-title small,
.proto-title strong {
  display: block;
}
.proto-title strong {
  font: 800 clamp(1.1rem, 1.8vw, 2rem) / 1.15 var(--display);
  letter-spacing: -0.045em;
  margin-top: 0.22rem;
}
.proto-status {
  font-size: 0.65rem;
  color: #d6af87;
}
.proto-status::before {
  content: '[×] ';
  color: #efa480;
}
.protocol.done .proto-status {
  color: var(--cyan);
}
.protocol.done .proto-status::before {
  content: '[+] ';
  color: inherit;
}
.proto-arrow {
  color: var(--cyan);
}
.return-channel {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px dashed #425c55;
  background: #091210a6;
}
.return-channel .eyebrow {
  font-size: 0.67rem;
}
.return-channel p {
  color: #bdcbbf;
  font-size: 0.91rem;
  margin-top: 0.35rem;
}
.return-channel .action:disabled {
  opacity: 0.67;
}
#count {
  color: #b5c7bc;
}
footer {
  background: #040b0d;
  border-top: 1px solid #254745;
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
}
.foot-inner .brand strong {
  font-size: 0.85rem;
}
.foot-inner .brand svg {
  width: 2rem;
}
.foot-inner > span,
.ghost-frequency {
  color: #9cb5a9;
  font-size: 0.65rem;
}
.foot-inner > span b,
.ghost-frequency:hover {
  color: var(--cyan);
}
.ghost-frequency {
  padding: 0.6rem 0.25rem;
}
.dialog-body h2 {
  font-size: clamp(1.75rem, 5.4vw, 3rem);
  text-shadow:
    1px 0 #65ac9e,
    -1px 0 #ad6974;
}
.dialog-bar,
.dialog-body {
  background-image: linear-gradient(#061113ed, #081417ed), url('/assets/oxide.png');
}
.tty-log {
  background-image: repeating-linear-gradient(0deg, #13232344 0 1px, transparent 1px 4px);
}
.clean-feed {
  overflow: hidden;
  background: transparent;
}
.clean-feed .mast,
.clean-feed main,
.clean-feed footer {
  visibility: hidden;
}
.clean-feed .broadcast {
  inset: 0;
  background: #000;
}
.clean-feed .broadcast video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
}
.clean-feed .video-mask,
.clean-feed .scanlines {
  display: none;
}
#viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
}
#viewer::backdrop {
  background: transparent;
}
.viewer-exit,
.viewer-dock {
  position: absolute;
  color: var(--white);
  background: #040d10e6;
}
.viewer-exit {
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
}
.viewer-exit .icon {
  width: 0.9rem;
  height: 0.9rem;
}
.viewer-dock {
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.35rem;
  border: 1px solid #406663;
}
.viewer-dock button {
  min-height: 38px;
  border-color: transparent;
  background: transparent;
  white-space: nowrap;
}
.viewer-dock b {
  white-space: nowrap;
  font: 0.76rem var(--mono);
  color: #c0d6ca;
}
#viewer.idle {
  cursor: none;
}
#viewer.idle .viewer-exit:not(:focus-visible),
#viewer.idle .viewer-dock:not(:focus-within) {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1050px) {
  .hero-stage {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr) 175px;
  }
  .mast nav {
    gap: 1.5rem;
    margin-right: 0.4rem;
  }
  .field-tabs a {
    padding: 0.6rem;
    min-height: 3.6rem;
    font-size: 0.73rem;
  }
  .field-tabs .icon {
    width: 1.1rem;
  }
  .hardware-grid {
    gap: 2.2rem;
  }
  .recovery-head {
    align-items: start;
  }
  .recovery-head .intro {
    max-width: 18rem;
  }
  .section-code {
    font-size: 0.63rem;
  }
}
@media (max-width: 800px), (max-height: 535px) and (orientation: landscape) {
  :root {
    --mast: 3.55rem;
    --pad: clamp(1.1rem, 4.5vw, 2.1rem);
  }
  .mast-inner {
    gap: 0.5rem;
  }
  .brand {
    gap: 0.48rem;
  }
  .brand svg {
    width: 2.1rem;
    height: 2rem;
  }
  .brand strong {
    font-size: 0.88rem;
    letter-spacing: 0.15em;
  }
  .brand small {
    font-size: 0.47rem;
    letter-spacing: 0.18em;
  }
  .mast nav {
    display: none;
  }
  .mast nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--pad);
    margin: 0;
    background: #071214;
    border-bottom: 1px solid var(--line);
  }
  .mast nav a {
    min-height: 44px;
    border-top: 1px solid #213a39;
  }
  .mast nav a[aria-current]::after {
    margin-left: 0;
  }
  .sound {
    min-width: 0;
    min-height: 38px;
    margin-left: auto;
    padding: 0.4rem 0.55rem;
    font-size: 0.65rem;
    gap: 0.4rem;
  }
  .nav-toggle {
    display: grid;
    min-height: 38px;
  }
  .broadcast {
    inset: var(--mast) 0 0;
  }
  .broadcast video {
    object-position: 50% 0;
    filter: contrast(1.07) saturate(0.86) brightness(0.98);
  }
  .video-mask {
    background: none;
  }
  .scanlines {
    opacity: 0.31;
  }
  .past-film .broadcast video {
    object-fit: cover;
    object-position: center;
  }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'film' 'transport' 'copy' 'toggle' 'diagnostics';
    grid-template-rows: auto auto 1fr auto auto;
    min-height: 0;
  }
  .hero-stage {
    display: contents;
  }
  .film-slot {
    display: block;
    grid-area: film;
    width: 100%;
    aspect-ratio: 16/9;
    pointer-events: none;
  }
  .fringe {
    top: calc(100vw * 9 / 16);
    z-index: 0;
  }
  .fringe::before,
  .fringe::after {
    width: 28%;
    opacity: 0.42;
  }
  .hero-copy {
    position: relative;
    isolation: isolate;
    grid-area: copy;
    padding: clamp(1.5rem, 5.8vw, 2.4rem) var(--pad) 1.3rem;
    align-self: stretch;
    background: #061014f7;
  }
  .hero-copy::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      url('/assets/tape-wear.svg') right center / 37% 130% no-repeat,
      url('/assets/oxide.png');
    opacity: 0.23;
    pointer-events: none;
  }
  .access-line {
    font-size: 0.66rem;
  }
  .hero h1 {
    font-size: clamp(1.95rem, 7.9vw, 3.9rem);
    margin: 0.75rem 0 0.7rem;
  }
  .hero-copy > p {
    font-size: 0.96rem;
  }
  .hero-actions {
    margin-top: 1.05rem;
    gap: 0.55rem;
  }
  .hero-actions .action {
    min-height: 42px;
    padding: 0.55rem 0.7rem;
    font-size: 0.76rem;
  }
  .feed-signature {
    font-size: 0.57rem;
    margin-top: 0.9rem;
    gap: 0.55rem;
  }
  .log-window,
  .field-tabs {
    display: none;
  }
  .diagnostics-toggle {
    position: relative;
    z-index: 1;
    grid-area: toggle;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem var(--pad);
    min-height: 40px;
    border-top: 1px dashed #31504e;
    background: #081417;
    color: #a9cec2;
    font: 0.7rem var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .diagnostics-toggle b {
    color: var(--cyan);
    font-size: 1.1rem;
    font-weight: 400;
  }
  .instruments {
    display: none;
    grid-area: diagnostics;
    margin: 0;
    background: #071214;
    padding: 0.65rem var(--pad) 1.2rem;
    gap: 0.65rem;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .diagnostics-toggle[aria-expanded='true'] + .instruments {
    display: grid;
  }
  .instruments .panel-cap {
    font-size: 0.58rem;
  }
  .status-box dl {
    padding: 0.55rem;
    gap: 0.4rem;
  }
  .status-box dl > div {
    font-size: 0.63rem;
  }
  .transport {
    position: relative;
    grid-area: transport;
    background: #040d10;
  }
  .transport-inner {
    gap: 0.55rem;
    min-height: 43px;
  }
  .transport-label {
    font-size: 0.63rem;
    gap: 0.33rem;
  }
  .transport-label > span {
    display: none;
  }
  .wave {
    flex: 1;
    min-width: 12px;
    max-width: 15rem;
    height: 15px;
  }
  .deck-time {
    font-size: 0.67rem;
  }
  .deck-time i {
    display: none;
  }
  .isolate,
  .playback {
    min-height: 34px;
  }
  .playback {
    width: 29px;
  }
  .isolate {
    font-size: 0.64rem;
    gap: 0.33rem;
    padding: 0.35rem 0.46rem;
  }
  .hardware {
    min-height: auto;
  }
  .hardware-sticky {
    position: relative;
    top: auto;
    padding-block: 2rem 3rem;
  }
  .hardware-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 1.6rem;
  }
  .chapter h2 {
    font-size: clamp(2.1rem, 7vw, 3.9rem);
    margin: 0.7rem 0 0.85rem;
  }
  .hardware h2 br {
    display: none;
  }
  .hardware h2 em::before {
    content: ' ';
  }
  .intro {
    font-size: 0.96rem;
  }
  .layer-select {
    flex-direction: row;
    max-width: none;
    gap: 0.3rem;
    margin: 1rem 0 0.15rem;
  }
  .layer-select button {
    display: block;
    flex: 1;
    font-size: 0.76rem;
    min-height: 45px;
    padding: 0.4rem;
    border: 1px dashed #3c5f56;
  }
  .layer-select button span {
    display: block;
    font-size: 0.63rem;
  }
  .layer-select button b {
    display: none;
  }
  .text-link {
    font-size: 0.7rem;
  }
  .drawing-grid {
    height: clamp(15rem, 66vw, 24rem);
  }
  .drawing-head {
    font-size: 0.59rem;
    padding: 0.5rem 0.65rem;
  }
  .schematic figcaption {
    gap: 0.7rem;
    padding: 0.7rem 0.75rem;
    min-height: 4.8rem;
  }
  .schematic figcaption > span {
    font-size: 0.59rem;
  }
  .recovery {
    padding: 2.2rem 0 3rem;
  }
  .recovery-head {
    display: block;
    margin: 1.6rem 0 1.15rem;
  }
  .recovery-head .intro {
    margin-top: 0.7rem;
    max-width: 34rem;
  }
  .protocol {
    grid-template-columns: 1.8rem 2.8rem 1fr auto 12px;
    gap: 0.5rem;
    padding: 0.8rem 0.3rem;
    min-height: 4.5rem;
  }
  .proto-index,
  .proto-status {
    font-size: 0.56rem;
  }
  .proto-title small {
    font-size: 0.54rem;
  }
  .proto-title strong {
    font-size: clamp(0.98rem, 3.5vw, 1.4rem);
  }
  .proto-art {
    width: 2.65rem;
    height: 2.15rem;
  }
  .cipher-art {
    font-size: 0.63rem;
    padding-top: 0.19rem;
  }
  .proto-arrow {
    width: 12px;
    height: 12px;
  }
  .return-channel {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem;
  }
  .foot-inner {
    gap: 0.5rem;
    min-height: 4rem;
  }
  .foot-inner .brand strong {
    font-size: 0.72rem;
  }
  .foot-inner .brand svg {
    width: 1.48rem;
  }
  .foot-inner > span,
  .ghost-frequency {
    font-size: 0.56rem;
  }
}
@media (max-width: 370px) {
  .brand strong {
    font-size: 0.76rem;
    letter-spacing: 0.11em;
  }
  .brand svg {
    width: 1.85rem;
  }
  .mast-inner {
    gap: 0.4rem;
  }
  .sound {
    font-size: 0.58rem;
    padding: 0.3rem 0.43rem;
  }
  .nav-toggle {
    width: 33px;
  }
  .transport-inner {
    gap: 0.38rem;
  }
  .transport-label {
    font-size: 0.56rem;
  }
  .isolate {
    padding: 0.3rem;
    font-size: 0.58rem;
  }
  .deck-time {
    font-size: 0.62rem;
  }
  .proto-index {
    display: none;
  }
  .protocol {
    grid-template-columns: 2.65rem 1fr auto 12px;
  }
  .foot-inner > span {
    display: none;
  }
}
@media (min-width: 801px) and (max-height: 680px) {
  .hero-stage {
    min-height: 28rem;
  }
  .hero-copy {
    padding-top: 2.6rem;
  }
  .hardware {
    min-height: auto;
  }
  .hardware-sticky {
    position: relative;
    top: 0;
  }
  .drawing-grid {
    height: 19rem;
  }
}
@media (max-height: 535px) and (orientation: landscape) {
  .film-slot {
    height: calc(100svh - var(--mast) - 43px);
    aspect-ratio: auto;
  }
  .broadcast video {
    height: calc(100svh - var(--mast) - 43px);
  }
  .past-film .broadcast video,
  .clean-feed .broadcast video {
    height: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (min-width: 801px) and (min-height: 536px) {
  body:not(.clean-feed):not(.past-film) .broadcast {
    bottom: 47px;
  }
  body:not(.clean-feed) .broadcast::before {
    content: '';
    position: absolute;
    inset: -22px;
    background:
      linear-gradient(#051316bc, #041012df),
      url('/assets/relay-poster.webp') center / cover;
    filter: blur(16px);
  }
  body:not(.clean-feed):not(.past-film) .broadcast video {
    position: relative;
    width: min(100%, calc((100dvh - var(--mast) - 47px) * 16 / 9));
    height: 100%;
    margin-inline: auto;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 94%, transparent);
  }
  body.past-film:not(.clean-feed) .broadcast video {
    position: relative;
  }
}
