:root {
  --void: #070908;
  --ink: #11150f;
  --panel: rgba(15, 19, 15, 0.78);
  --panel-strong: rgba(20, 25, 19, 0.94);
  --paper: #f3efe1;
  --muted: #9b9f8e;
  --dim: #646c5c;
  --line: rgba(243, 239, 225, 0.16);
  --line-strong: rgba(243, 239, 225, 0.28);
  --signal: #d8ff6e;
  --amber: #ffb454;
  --danger: #ff675f;
  --sky: #9fd6ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  font-family: "IBM Plex Mono", Consolas, monospace;
  background:
    radial-gradient(circle at 18% 8%, rgba(216, 255, 110, 0.16), transparent 27rem),
    radial-gradient(circle at 82% 18%, rgba(255, 180, 84, 0.12), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(159, 214, 255, 0.08), transparent 34rem),
    linear-gradient(90deg, rgba(243, 239, 225, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(243, 239, 225, 0.035) 1px, transparent 1px),
    var(--void);
  background-size: auto, auto, auto, 42px 42px, 42px 42px, auto;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(243, 239, 225, 0.025) 50%, transparent 50%),
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.54));
  background-size: 100% 4px, auto;
}

a,
button,
select {
  font: inherit;
}

a {
  color: inherit;
}

button,
select {
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

img {
  max-width: 100%;
  display: block;
}

main,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

main {
  position: relative;
}


.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: -4.5rem;
  top: -4rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(216, 255, 110, 0.2);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(216, 255, 110, 0.14) 0 1px, transparent 1px 18px);
  opacity: 0.58;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rec-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 18px rgba(255, 103, 95, 0.8);
  animation: blink 1.7s steps(2, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.34;
  }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(5.4rem, 18vw, 13.8rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.subtitle {
  max-width: 800px;
  margin-bottom: 1rem;
  color: var(--paper);
  font-size: clamp(1.24rem, 3vw, 2.1rem);
  line-height: 1.25;
}

.viewer-subtitle {
  max-width: 860px;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.5;
}

.intro,
.archive-head > p,
.site-footer p {
  max-width: 740px;
  color: var(--muted);
}

.hero-actions,
.viewer-actions,
.record-links,
.tag-list,
.risk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.hero-actions {
  margin-top: 1.5rem;
}

.viewer-actions {
  justify-content: flex-end;
}

.viewer-controls {
  display: grid;
  gap: 0.7rem;
  justify-items: end;
}

.inline-filters {
  display: grid;
  grid-template-columns: auto;
  row-gap: 0.38rem;
  justify-items: end;
}

.inline-filters label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inline-filter-label {
  color: var(--signal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(216, 255, 110, 0.26);
}

.inline-filters select {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: rgba(7, 9, 8, 0.52);
  color: var(--paper);
}

.button,
.record-links a,
.record-links button,
.risk-filters button,
.tag-list button {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.64rem 0.92rem;
  background: rgba(243, 239, 225, 0.06);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.button-primary {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 0 30px rgba(216, 255, 110, 0.16);
}

.button-ghost {
  color: var(--signal);
}

.button-quiet {
  color: var(--muted);
}

.button:hover,
.record-links a:hover,
.record-links button:hover,
.risk-filters button:hover,
.tag-list button:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.button-primary:hover {
  color: var(--ink);
  filter: brightness(1.08);
}

.hero-panel,
.viewer-card,
.methodology {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 1rem;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0.2rem;
}

.panel-row:first-child {
  padding-top: 0.2rem;
}

.panel-row span {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.panel-row strong {
  color: var(--signal);
  font-size: 0.86rem;
  text-align: right;
}

.scope-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle, rgba(216, 255, 110, 0.16), transparent 36%),
    repeating-radial-gradient(circle, rgba(243, 239, 225, 0.14) 0 1px, transparent 1px 26px);
}

.scope-mark::before,
.scope-mark::after,
.scope-mark span {
  content: "";
  position: absolute;
  border: 1px solid rgba(216, 255, 110, 0.42);
  border-radius: 50%;
}

.scope-mark::before {
  width: 66%;
  height: 66%;
}

.scope-mark::after {
  width: 34%;
  height: 34%;
  border-color: rgba(159, 214, 255, 0.34);
}

.scope-mark span {
  width: 0.82rem;
  height: 0.82rem;
  background: var(--signal);
  box-shadow: 0 0 22px rgba(216, 255, 110, 0.8);
}

.viewer-shell,
.methodology {
  scroll-margin-top: 96px;
}

.viewer-shell {
  padding: 2rem 0 5.5rem;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.viewer-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.75fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(243, 239, 225, 0.12);
}

.media-frame {
  position: relative;
  min-height: 540px;
  background:
    linear-gradient(135deg, rgba(7, 9, 8, 0.1), rgba(7, 9, 8, 0.78)),
    var(--ink);
  isolation: isolate;
}

.media-frame::before {
  content: "REC";
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  border: 1px solid rgba(255, 103, 95, 0.44);
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
  color: var(--danger);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(243, 239, 225, 0.18);
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(243, 239, 225, 0.14) calc(50% - 1px), rgba(243, 239, 225, 0.14) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(transparent calc(50% - 1px), rgba(243, 239, 225, 0.14) calc(50% - 1px), rgba(243, 239, 225, 0.14) calc(50% + 1px), transparent calc(50% + 1px));
  opacity: 0.7;
}

.media-frame[data-viewer="player"]::before,
.media-frame[data-viewer="player"]::after {
  display: none;
}

.media-frame img,
.media-frame iframe,
.youtube-player-host {
  width: 100%;
  height: 100%;
  min-height: 540px;
  border: 0;
  object-fit: cover;
}

.media-frame iframe {
  display: block;
}

.youtube-player-host {
  position: absolute;
  inset: 0;
}

.standby-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  min-height: 540px;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #10150f;
  color: var(--paper);
  text-align: left;
}

.standby-frame img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  opacity: 0.78;
  filter: grayscale(0.18) contrast(1.08);
}

.standby-label,
.tuning-overlay {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.standby-label {
  left: 1rem;
  bottom: 1rem;
  border: 1px solid rgba(216, 255, 110, 0.42);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: rgba(7, 9, 8, 0.62);
  color: var(--signal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.thumbnail-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: rgba(243, 239, 225, 0.26);
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  text-align: center;
}

.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 6.2rem;
  height: 6.2rem;
  border: 1px solid rgba(216, 255, 110, 0.78);
  border-radius: 999px;
  background: rgba(7, 9, 8, 0.62);
  color: var(--signal);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.generated-thumbnail {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 0.8rem;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  background:
    linear-gradient(transparent 0 38%, rgba(7, 9, 8, 0.88)),
    radial-gradient(circle at 72% 22%, rgba(216, 255, 110, 0.2), transparent 13rem),
    radial-gradient(circle at 24% 58%, rgba(159, 214, 255, 0.12), transparent 16rem),
    linear-gradient(90deg, rgba(243, 239, 225, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(243, 239, 225, 0.08) 1px, transparent 1px),
    #10150f;
  background-size: auto, auto, auto, 36px 36px, 36px 36px, auto;
}

.generated-thumbnail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(42vw, 24rem);
  height: min(42vw, 24rem);
  border: 1px solid rgba(216, 255, 110, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 48px rgba(216, 255, 110, 0.07);
}

.generated-thumbnail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 24px rgba(216, 255, 110, 0.9);
  transform: translate(-50%, -50%);
}

.generated-thumbnail[data-risk="high"]::after {
  background: var(--danger);
  box-shadow: 0 0 24px rgba(255, 103, 95, 0.9);
}

.generated-thumbnail[data-risk="medium"]::after {
  background: var(--amber);
  box-shadow: 0 0 24px rgba(255, 180, 84, 0.86);
}

.generated-thumbnail strong,
.generated-thumbnail p,
.generated-thumbnail small,
.thumbnail-hud {
  position: relative;
  z-index: 2;
}

.generated-thumbnail strong {
  color: rgba(243, 239, 225, 0.92);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(4rem, 11vw, 8rem);
  letter-spacing: -0.08em;
  line-height: 0.78;
}

.generated-thumbnail p {
  max-width: 34rem;
  margin: 0;
  color: var(--paper);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.generated-thumbnail small {
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.thumbnail-hud {
  position: absolute;
  left: clamp(1.2rem, 4vw, 2.2rem);
  right: clamp(1.2rem, 4vw, 2.2rem);
  top: clamp(1.2rem, 4vw, 2.2rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--signal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--panel-strong);
}

.record-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

#record-query {
  display: block;
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-pill,
.risk-pill {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-pill {
  color: var(--paper);
}

.risk-pill {
  color: var(--amber);
}

.risk-pill[data-risk="low"] {
  color: var(--signal);
}

.risk-pill[data-risk="medium"] {
  color: var(--amber);
}

.risk-pill[data-risk="high"] {
  color: var(--danger);
}

.risk-pill[data-risk="unknown"] {
  color: var(--sky);
}

.record-note {
  margin-bottom: 1.25rem;
  color: var(--paper);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.22;
}

.record-note:empty,
.record-note[hidden] {
  display: none;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 1.2rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.metadata-grid div {
  min-height: 86px;
  padding: 0.8rem;
  background: rgba(7, 9, 8, 0.44);
}

.metadata-grid dt {
  margin-bottom: 0.35rem;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.metadata-grid dd {
  margin: 0;
  color: var(--paper);
  font-size: 0.92rem;
}

.tag-list {
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  background: rgba(243, 239, 225, 0.04);
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: lowercase;
}

.record-links {
  align-items: stretch;
}

.record-links button {
  color: var(--muted);
}

.risk-filters button {
  min-height: 40px;
  border-color: rgba(216, 255, 110, 0.34);
  background: rgba(216, 255, 110, 0.08);
  padding: 0.52rem 0.8rem;
  color: rgba(243, 239, 225, 0.92);
  font-size: 0.74rem;
}

.risk-filters button.is-active {
  border-color: var(--signal);
  background: rgba(216, 255, 110, 0.26);
  color: #0f130c;
  box-shadow: 0 0 18px rgba(216, 255, 110, 0.2);
}

.risk-filters button[data-risk="high"] {
  border-color: rgba(255, 103, 95, 0.42);
}

.risk-filters button[data-risk="medium"] {
  border-color: rgba(255, 180, 84, 0.42);
}

.risk-filters button[data-risk="low"] {
  border-color: rgba(159, 214, 255, 0.42);
}

.risk-filters button[data-risk="high"].is-active {
  background: rgba(255, 103, 95, 0.3);
  color: #190c0b;
  box-shadow: 0 0 18px rgba(255, 103, 95, 0.22);
}

.risk-filters button[data-risk="medium"].is-active {
  background: rgba(255, 180, 84, 0.3);
  color: #1d1308;
  box-shadow: 0 0 18px rgba(255, 180, 84, 0.22);
}

.risk-filters button[data-risk="low"].is-active {
  background: rgba(159, 214, 255, 0.3);
  color: #08131d;
  box-shadow: 0 0 18px rgba(159, 214, 255, 0.22);
}

.risk-help {
  margin: 0.1rem 0 0;
  width: 100%;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
  letter-spacing: 0.05em;
  text-align: right;
}

.record-filters {
  margin: 1rem 0 1.1rem;
  justify-items: start;
}

.record-filters .risk-help,
.record-filters .filter-count {
  text-align: left;
}

.filter-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.methodology {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
  border-radius: 28px;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.signal-tunnel {
  margin: 0 0 5rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 13, 11, 0.5);
  box-shadow: var(--shadow);
}

.signal-tunnel.is-hidden {
  display: none;
}

.signal-tunnel-head p {
  max-width: 48rem;
  color: var(--muted);
}

.run-status {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: rgba(7, 9, 8, 0.55);
}

.run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
}

.tunnel-wrap {
  margin-top: 1rem;
  border: 1px solid rgba(216, 255, 110, 0.16);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(216, 255, 110, 0.04), transparent 28%, rgba(159, 214, 255, 0.04)),
    rgba(7, 9, 8, 0.72);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.26);
}

#signal-tunnel-canvas {
  display: block;
  width: 100%;
  height: 220px;
}

.method-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.method-cards article {
  min-height: 230px;
  padding: 1rem;
  background: rgba(7, 9, 8, 0.5);
}

.method-cards span {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--signal);
  font-weight: 700;
}

.method-cards h3 {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.method-cards p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.method-cards code {
  color: var(--paper);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}

#drone-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.drone-ops {
  position: fixed;
  right: 16px;
  top: calc(max(14px, 12vh) + 56px);
  z-index: 41;
  display: flex;
  gap: 0.45rem;
}

.drone-ops button {
  min-height: 30px;
  border: 1px solid rgba(216, 255, 110, 0.36);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  background: rgba(7, 9, 8, 0.7);
  color: rgba(216, 255, 110, 0.9);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.drone-ops button:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.signal-portal {
  position: fixed;
  right: 18px;
  bottom: 32px;
  z-index: 39;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(216, 255, 110, 0.56);
  background:
    linear-gradient(0deg, rgba(216, 255, 110, 0.06), rgba(216, 255, 110, 0.06)),
    rgba(7, 9, 8, 0.8);
  box-shadow:
    0 0 0 1px rgba(216, 255, 110, 0.1) inset,
    0 0 28px rgba(216, 255, 110, 0.2);
  pointer-events: auto;
}

.signal-portal::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(216, 255, 110, 0.36);
}

.signal-portal::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(216, 255, 110, 0.28);
}

.portal-pad {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(216, 255, 110, 0.7);
  color: rgba(216, 255, 110, 0.86);
  font-size: 0.54rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 14px rgba(216, 255, 110, 0.42);
}

.portal-hint {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 3;
  border: 1px solid rgba(216, 255, 110, 0.44);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: rgba(7, 9, 8, 0.82);
  color: rgba(216, 255, 110, 0.9);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.portal-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.signal-portal.is-hidden {
  display: none;
}


@media (max-width: 1040px) {
  .hero,
  .viewer-card,
  .methodology,
  .section-head {
    grid-template-columns: 1fr;
  }

  .viewer-actions {
    justify-content: flex-start;
  }

  .viewer-controls,
  .inline-filters {
    justify-items: start;
    justify-content: flex-start;
  }

  .filter-count {
    text-align: left;
  }

}

@media (max-width: 680px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 3.2rem 0;
  }

  h1 {
    font-size: clamp(4.2rem, 24vw, 6.4rem);
  }

  .media-frame,
  .media-frame img,
  .media-frame iframe,
  .youtube-player-host,
  .standby-frame,
  .standby-frame img {
    min-height: 360px;
  }

  .metadata-grid,
  .method-cards {
    grid-template-columns: 1fr;
  }

  #signal-tunnel-canvas {
    height: 180px;
  }

}
