@font-face {
  font-family: "Matrix Code NFI";
  src: url("./matrix%20code%20nfi.ttf") format("truetype");
  font-display: block;
}

:root {
  --bg: #020402;
  --bg-soft: rgba(10, 18, 10, 0.9);
  --panel: rgba(5, 12, 7, 0.92);
  --panel-border: rgba(82, 255, 122, 0.18);
  --text: #ecffee;
  --muted: rgba(210, 255, 222, 0.68);
  --acid: #38ff63;
  --tibbir-acid: #0dda08;
  --acid-soft: rgba(56, 255, 99, 0.18);
  --grid: rgba(56, 255, 99, 0.1);
  --shadow: rgba(40, 255, 110, 0.3);
  --font-matrix: "Matrix Code NFI", monospace;
  --font-ui: "IBM Plex Mono", "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(56, 255, 99, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(56, 255, 99, 0.12), transparent 22%),
    linear-gradient(180deg, #040704 0%, #010201 100%);
  color: var(--text);
  font-family: var(--font-ui);
}

body {
  min-height: 100vh;
}

.page-shell {
  position: relative;
  width: min(1880px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 18px 0 24px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 2px 6px 18px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.site-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.site-mark {
  color: var(--acid);
}

.corner-logo {
  position: absolute;
  top: 16px;
  right: 0;
  z-index: 4;
  pointer-events: none;
}

.corner-logo img {
  display: block;
  width: min(9vw, 108px);
  height: auto;
  opacity: 0.92;
}

.transport-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.transport-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(56, 255, 99, 0.2);
  background:
    linear-gradient(180deg, rgba(12, 28, 15, 0.96), rgba(4, 10, 5, 0.98)),
    linear-gradient(90deg, rgba(56, 255, 99, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(56, 255, 99, 0.08) 1px, transparent 1px);
  background-size: auto, 8px 8px, 8px 8px;
  color: rgba(210, 255, 222, 0.68);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    background 140ms ease;
}

.transport-button svg {
  width: 13px;
  height: 13px;
  display: block;
  fill: currentColor;
}

.transport-button:disabled {
  cursor: default;
  opacity: 0.34;
  border-color: rgba(56, 255, 99, 0.12);
  color: rgba(210, 255, 222, 0.28);
  box-shadow: none;
}

.transport-button-demo {
  width: auto;
  min-width: 58px;
  padding: 0 10px;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.transport-button:hover,
.transport-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(120, 255, 156, 0.46);
  color: rgba(236, 255, 241, 0.92);
  outline: none;
}

.transport-button:disabled:hover,
.transport-button:disabled:focus-visible {
  transform: none;
  border-color: rgba(56, 255, 99, 0.12);
  color: rgba(210, 255, 222, 0.28);
  outline: none;
}

.transport-button[data-active="true"] {
  border-color: rgba(188, 255, 206, 0.62);
  background:
    linear-gradient(180deg, rgba(28, 72, 35, 0.98), rgba(7, 18, 9, 0.99)),
    linear-gradient(90deg, rgba(56, 255, 99, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(56, 255, 99, 0.14) 1px, transparent 1px);
  background-size: auto, 8px 8px, 8px 8px;
  color: var(--acid);
  box-shadow:
    inset 0 0 0 1px rgba(196, 255, 214, 0.08),
    0 0 18px rgba(56, 255, 99, 0.18);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(360px, 430px);
  gap: 28px;
  align-items: start;
}

.stage-panel,
.control-panel {
  background: linear-gradient(180deg, rgba(4, 12, 6, 0.96), rgba(1, 4, 2, 0.98));
  border: 0;
  box-shadow: none;
}

.stage-panel {
  position: relative;
  padding: 22px 22px 20px;
  min-height: auto;
  border-style: solid;
  overflow: hidden;
}

.stage-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(56, 255, 99, 0.08), transparent 28%),
    radial-gradient(circle at 78% 24%, rgba(56, 255, 99, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 24%);
  pointer-events: none;
}

.panel-label,
.stat-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.study-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.stage-copy {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 3;
  align-self: start;
  justify-self: start;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 34px 0 0 18px;
  min-width: 0;
  max-width: 440px;
  pointer-events: none;
}

.stage-copy h1 {
  margin: 0;
  margin-left: 26px;
  max-width: 4.9ch;
  font-size: clamp(4.4rem, 8.6vw, 7.3rem);
  line-height: 0.86;
  letter-spacing: -4px;
  text-transform: uppercase;
  color: rgba(245, 255, 245, 0.98);
  text-shadow: 0 0 30px rgba(56, 255, 99, 0.05);
}

.mirrored-word {
  display: inline-block;
  white-space: nowrap;
}

.mirrored-letter {
  display: inline-block;
  transform: scaleX(-1);
  transform-origin: center;
  margin-left: 4px;
  margin-right: -6px;
}

.intro,
.notes p {
  display: none;
}

.intro-rain {
  display: none;
}

.intro-rain::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(236, 255, 238, 0.06), transparent 22%),
    repeating-linear-gradient(180deg, rgba(56, 255, 99, 0.045) 0 1px, transparent 1px 6px);
  pointer-events: none;
}

.intro-rain::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  height: 36px;
  background: linear-gradient(180deg, rgba(56, 255, 99, 0), rgba(56, 255, 99, 0.08), rgba(56, 255, 99, 0));
  filter: blur(12px);
  opacity: 0.7;
  pointer-events: none;
  animation: intro-rain-scan 7s linear infinite;
}

.intro-rain-line {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-matrix);
  font-size: clamp(0.76rem, 0.84vw, 0.92rem);
  line-height: 1.08;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: rgba(56, 255, 99, 0.2);
  text-shadow: 0 0 12px rgba(56, 255, 99, 0.14);
  animation: intro-rain-flicker 4.8s steps(2, end) infinite;
}

.intro-rain-line + .intro-rain-line {
  margin-top: 7px;
}

.intro-rain-line:nth-child(2n) {
  margin-left: 12px;
  color: rgba(56, 255, 99, 0.29);
}

.intro-rain-line:nth-child(3n) {
  margin-left: 28px;
  color: rgba(122, 255, 154, 0.34);
}

.intro-rain-line:nth-child(4n) {
  margin-left: 6px;
}

@keyframes intro-rain-flicker {
  0%,
  100% {
    opacity: 0.72;
  }

  18% {
    opacity: 0.46;
  }

  44% {
    opacity: 0.84;
  }

  68% {
    opacity: 0.38;
  }

  82% {
    opacity: 0.78;
  }
}

@keyframes intro-rain-scan {
  0% {
    transform: translateY(-72px);
  }

  100% {
    transform: translateY(140px);
  }
}

.study-visual {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
}

.stage-frame {
  position: relative;
  margin-top: 0;
  aspect-ratio: 1 / 0.98;
  width: 100%;
  min-height: 760px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 10, 5, 0.25), rgba(1, 4, 2, 0.84)),
    linear-gradient(90deg, rgba(56, 255, 99, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(56, 255, 99, 0.05) 1px, transparent 1px);
  background-size: auto, 18px 18px, 18px 18px;
  border: 1px solid rgba(56, 255, 99, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(196, 255, 214, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.22);
}

.stage-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(56, 255, 99, 0.05) 48%, transparent),
    radial-gradient(circle at center, transparent 58%, rgba(56, 255, 99, 0.08));
  mix-blend-mode: screen;
}

.stage-underlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
  z-index: 0;
}

.stage-frame:hover .stage-underlay,
.stage-frame[data-pointer-active="true"] .stage-underlay {
  opacity: 0.28;
  transform: scale(1.003);
  filter: contrast(1.08);
}

.stage-underlay canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  image-rendering: pixelated;
}

#rebel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  image-rendering: pixelated;
}

.stage-hud {
  position: absolute;
  left: 60px;
  right: 18px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(245, 255, 245, 0.98);
  text-shadow: 0 0 22px rgba(56, 255, 99, 0.05);
  pointer-events: none;
  z-index: 2;
}

#hud-founder {
  font-size: clamp(1.85rem, 2.75vw, 2.95rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.06em;
  opacity: 0.98;
}

#hud-company {
  font-size: clamp(0.95rem, 1.15vw, 1.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.control-panel {
  display: grid;
  gap: 22px;
  padding: 0;
  position: sticky;
  top: 14px;
  align-self: start;
  min-height: max(720px, calc(100vh - 112px));
}

.panel-block {
  padding: 18px;
  border: 1px solid rgba(56, 255, 99, 0.12);
  background: rgba(4, 10, 5, 0.68);
}

.rebel-directory {
  display: grid;
  gap: 14px;
}

.rebel-directory-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 10px;
  margin: -6px -6px 0;
  padding: 6px 6px 10px;
  background:
    linear-gradient(180deg, rgba(5, 12, 7, 0.98) 0%, rgba(5, 12, 7, 0.94) 72%, rgba(5, 12, 7, 0));
  backdrop-filter: blur(10px);
}

.rebel-search {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(56, 255, 99, 0.18);
  background:
    linear-gradient(180deg, rgba(9, 22, 11, 0.96), rgba(4, 9, 5, 0.98)),
    linear-gradient(90deg, rgba(56, 255, 99, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(56, 255, 99, 0.08) 1px, transparent 1px);
  background-size: auto, 8px 8px, 8px 8px;
  color: rgba(236, 255, 241, 0.92);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  caret-color: var(--acid);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.rebel-search::placeholder {
  color: rgba(210, 255, 222, 0.4);
}

.rebel-search:hover,
.rebel-search:focus-visible {
  outline: none;
  border-color: rgba(56, 255, 99, 0.4);
  box-shadow:
    inset 0 0 0 1px rgba(56, 255, 99, 0.08),
    0 0 18px rgba(56, 255, 99, 0.08);
}

.rebel-search[data-match="true"] {
  border-color: rgba(56, 255, 99, 0.34);
}

.rebel-search[data-match="false"] {
  border-color: rgba(255, 110, 110, 0.22);
}

.rebel-scroll-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: stretch;
}

.rebel-scroll-area {
  max-height: min(72vh, 880px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.rebel-scroll-area::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.rebel-list {
  display: grid;
  gap: 8px;
}

.matrix-scrollbar {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(56, 255, 99, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 24, 13, 0.96), rgba(3, 8, 4, 0.98)),
    linear-gradient(90deg, rgba(56, 255, 99, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(56, 255, 99, 0.08) 1px, transparent 1px);
  background-size: auto, 10px 10px, 10px 10px;
  overflow: hidden;
}

.matrix-scrollbar[hidden] {
  display: none;
}

.matrix-scroll-track {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(56, 255, 99, 0.08), transparent 16%, transparent 84%, rgba(56, 255, 99, 0.08)),
    repeating-linear-gradient(
      180deg,
      rgba(56, 255, 99, 0.06) 0,
      rgba(56, 255, 99, 0.06) 1px,
      transparent 1px,
      transparent 12px
    );
  pointer-events: none;
}

.matrix-scroll-thumb {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 0;
  height: 96px;
  border: 1px solid rgba(88, 255, 132, 0.34);
  background:
    linear-gradient(180deg, rgba(28, 60, 31, 0.96), rgba(10, 24, 12, 0.98)),
    linear-gradient(90deg, rgba(56, 255, 99, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(56, 255, 99, 0.16) 1px, transparent 1px);
  background-size: auto, 8px 8px, 8px 8px;
  box-shadow:
    inset 0 0 0 1px rgba(56, 255, 99, 0.06),
    0 0 0 1px rgba(56, 255, 99, 0.04),
    0 0 18px rgba(16, 255, 83, 0.12);
  overflow: hidden;
  user-select: none;
  cursor: grab;
  transition:
    box-shadow 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.matrix-scroll-thumb[data-active="true"] {
  border-color: rgba(196, 255, 214, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(210, 255, 221, 0.2),
    0 0 0 1px rgba(56, 255, 99, 0.14),
    0 0 30px rgba(56, 255, 99, 0.28);
  background:
    linear-gradient(180deg, rgba(36, 96, 42, 0.98), rgba(9, 28, 12, 0.99)),
    linear-gradient(90deg, rgba(56, 255, 99, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(56, 255, 99, 0.22) 1px, transparent 1px);
  background-size: auto, 8px 8px, 8px 8px;
}

.matrix-scroll-thumb:active {
  cursor: grabbing;
}

.matrix-scroll-core {
  position: absolute;
  inset: 4px 1px;
  display: block;
  overflow: hidden;
  white-space: pre;
  text-align: center;
  font-family: var(--font-matrix);
  font-size: 8px;
  line-height: 0.7;
  letter-spacing: 0.05em;
  color: rgba(96, 255, 148, 0.74);
  text-shadow: 0 0 10px rgba(56, 255, 99, 0.22);
  pointer-events: none;
}

.matrix-scroll-thumb[data-active="true"] .matrix-scroll-core {
  color: rgba(234, 255, 241, 0.96);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.5),
    0 0 16px rgba(56, 255, 99, 0.45);
}

.sidebar-original {
  margin: 0;
}

.sidebar-original img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f2f4ef;
  border: 1px solid rgba(196, 255, 214, 0.4);
}

.source-panel {
  position: relative;
  z-index: 5;
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  margin: 46px 36px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-source-panel {
  width: min(27vw, 300px);
  max-width: 100%;
  height: fit-content;
}

.rebel-button {
  position: relative;
  width: 100%;
  min-height: 88px;
  padding: 18px 50px 16px 16px;
  border: 1px solid rgba(56, 255, 99, 0.16);
  background: rgba(4, 10, 5, 0.9);
  color: var(--text);
  text-align: left;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.rebel-button::before,
.rebel-button::after {
  content: "";
  position: absolute;
  top: 50%;
  opacity: 0;
  transition:
    opacity 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
  pointer-events: none;
}

.rebel-button::before {
  right: 12px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(13, 218, 8, 0.2);
  background:
    linear-gradient(180deg, rgba(10, 24, 12, 0.98), rgba(3, 8, 4, 0.98)),
    linear-gradient(90deg, rgba(13, 218, 8, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(13, 218, 8, 0.1) 1px, transparent 1px);
  background-size: auto, 6px 6px, 6px 6px;
  transform: translateY(-50%);
}

.rebel-button::after {
  right: 18px;
  width: 7px;
  height: 12px;
  border-right: 2px solid rgba(212, 255, 224, 0.92);
  border-bottom: 2px solid rgba(212, 255, 224, 0.92);
  transform: translateY(-62%) rotate(40deg);
}

.rebel-button:hover,
.rebel-button:focus-visible {
  border-color: rgba(56, 255, 99, 0.4);
  background: rgba(8, 22, 10, 0.94);
  outline: none;
}

.rebel-button[data-active="true"] {
  background: rgba(56, 255, 99, 0.1);
  border-color: rgba(56, 255, 99, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(56, 255, 99, 0.14),
    0 0 26px rgba(56, 255, 99, 0.06);
}

.rebel-button[data-demo-visited="true"] {
  background: rgba(13, 218, 8, 0.06);
  border-color: rgba(13, 218, 8, 0.24);
  box-shadow: inset 0 0 0 1px rgba(13, 218, 8, 0.08);
}

.rebel-button[data-demo-visited="true"]::before,
.rebel-button[data-demo-visited="true"]::after {
  opacity: 1;
}

.rebel-button[data-demo-visited="true"]::before {
  box-shadow:
    inset 0 0 0 1px rgba(13, 218, 8, 0.08),
    0 0 14px rgba(13, 218, 8, 0.08);
}

.rebel-button[data-active="true"][data-demo-visited="true"] {
  background: rgba(56, 255, 99, 0.13);
  border-color: rgba(56, 255, 99, 0.5);
}

.rebel-button .company {
  display: block;
  font-size: 16px;
  line-height: 1.15;
  color: rgba(240, 255, 243, 0.96);
}

.rebel-button .founder {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.stat-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(132px, 18vh, 196px);
  padding: 0;
}

.stat-grid-card {
  display: grid;
  place-items: center;
  gap: 12px;
  width: min(100%, 280px);
  padding: 28px 18px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.stat-grid-card:hover,
.stat-grid-card:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(13, 218, 8, 0.18),
    0 0 24px rgba(13, 218, 8, 0.1);
}

.stat-grid-card[data-active="true"] {
  background: rgba(13, 218, 8, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(13, 218, 8, 0.2),
    0 0 30px rgba(13, 218, 8, 0.12);
}

.stat-grid .stat-label,
.stat-grid strong {
  width: 100%;
  text-align: center;
}

.stat-grid strong {
  display: block;
  margin-top: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.55rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--tibbir-acid);
}

@media (max-width: 1480px) {
  .hero-source-panel {
    width: min(28vw, 260px);
  }

  .source-panel {
    margin-right: 24px;
  }
}

@media (max-width: 1080px) {
  .corner-logo {
    top: 14px;
    right: 0;
  }

  .corner-logo img {
    width: min(20vw, 96px);
  }

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

  .stage-panel {
    min-height: auto;
  }

  .study-grid {
    gap: 22px;
  }

  .stage-copy {
    grid-column: auto;
    grid-row: auto;
    padding-top: 0;
    padding-left: 0;
    max-width: none;
    pointer-events: auto;
  }

  .stage-copy h1 {
    max-width: 8ch;
    font-size: clamp(3.4rem, 12vw, 5.8rem);
  }

  .intro {
    display: block;
    margin: 0;
    max-width: 36ch;
    font-size: 14px;
    line-height: 1.72;
    color: rgba(210, 255, 222, 0.74);
  }

  .study-visual,
  .source-panel,
  .hero-source-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .source-panel {
    justify-self: start;
    margin: 0;
  }

  .hero-source-panel {
    width: min(100%, 420px);
  }

  .study-visual {
    padding-top: 0;
  }

  .stage-frame {
    margin-top: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .control-panel {
    position: static;
    min-height: auto;
  }

  .rebel-scroll-area {
    max-height: 54vh;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 12px;
  }

  .corner-logo {
    top: 10px;
    right: 0;
  }

  .corner-logo img {
    width: min(24vw, 82px);
  }

  .site-header {
    padding-bottom: 16px;
  }

  .site-title-group {
    gap: 8px;
  }

  .transport-button {
    width: 28px;
    height: 28px;
  }

  .stage-panel,
  .control-panel {
    padding: 18px;
  }

  .rebel-scroll-shell {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 10px;
  }

  .rebel-button {
    min-height: 78px;
    padding: 14px;
  }

  .rebel-button .company {
    font-size: 14px;
  }

  .rebel-button .founder {
    margin-top: 8px;
    font-size: 11px;
  }

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

  .stage-hud {
    right: 12px;
  }
}
