:root {
  color-scheme: dark;
  --ink: #f8f1e7;
  --muted: #b9b3a8;
  --quiet: #747b84;
  --bg: #07080b;
  --surface: rgba(15, 17, 22, 0.92);
  --panel: rgba(20, 23, 30, 0.86);
  --panel-strong: rgba(28, 31, 40, 0.94);
  --line: rgba(248, 241, 231, 0.14);
  --line-strong: rgba(248, 241, 231, 0.22);
  --cyan: #4bd7ff;
  --lime: #d0fb44;
  --ember: #ff4b18;
  --gold: #f1c15a;
  --rose: #ff6fae;
  --violet: #a98bff;
  --max: 1440px;
  --rail: 14.5rem;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(248, 241, 231, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 241, 231, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(75, 215, 255, 0.13), transparent 24rem),
    radial-gradient(circle at 84% 12%, rgba(255, 75, 24, 0.14), transparent 28rem),
    radial-gradient(circle at 72% 82%, rgba(208, 251, 68, 0.08), transparent 24rem),
    #07080b;
  background-size: 18px 18px, 18px 18px, auto, auto, auto, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.76);
  backdrop-filter: blur(18px);
}

.app-brand,
.side-rail nav a,
.button,
.text-link,
.room-link {
  text-decoration: none;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-glyph {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border: 1px solid rgba(208, 251, 68, 0.48);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(75, 215, 255, 0.18), rgba(255, 75, 24, 0.16));
  box-shadow: 0 0 22px rgba(75, 215, 255, 0.2);
}

.brand-glyph img {
  height: 100%;
  object-fit: cover;
}

.app-brand strong,
.app-brand small {
  display: block;
}

.app-brand strong {
  font-size: 1rem;
}

.app-brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.global-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0.85rem;
  background: rgba(20, 23, 30, 0.72);
}

.global-search span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.global-search input,
.ask-form input,
.mini-runner input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.global-search input::placeholder,
.ask-form input::placeholder {
  color: var(--quiet);
}

.top-actions,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.button,
.icon-link {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.95rem;
  color: var(--ink);
  font-weight: 950;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.icon-link:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: rgba(208, 251, 68, 0.72);
  background: var(--lime);
  color: #101217;
}

.button.ghost,
.button.slim,
.icon-link {
  background: rgba(248, 241, 231, 0.07);
}

.button.slim,
.icon-link {
  min-height: 2.45rem;
  padding: 0.55rem 0.78rem;
}

.icon-link {
  width: 2.45rem;
  border-radius: 50%;
  color: var(--lime);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.side-rail {
  position: sticky;
  top: 4.5rem;
  align-self: start;
  min-width: 0;
  height: calc(100vh - 4.5rem);
  padding: 1rem;
  border-right: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.34);
}

.side-rail nav {
  display: grid;
  gap: 0.35rem;
}

.side-rail nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.side-rail nav a span {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 950;
}

.side-rail nav a:hover,
.side-rail nav a.active {
  border-color: rgba(75, 215, 255, 0.28);
  background: rgba(75, 215, 255, 0.08);
  color: var(--ink);
}

.rail-card {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem;
  background:
    linear-gradient(145deg, rgba(75, 215, 255, 0.1), rgba(208, 251, 68, 0.06)),
    rgba(20, 23, 30, 0.7);
}

.rail-card span,
.room-meta,
.eyebrow,
.console-label {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rail-card strong {
  display: block;
  margin-top: 0.35rem;
}

.rail-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.studio-main {
  min-width: 0;
  padding: clamp(0.8rem, 2vw, 1.35rem);
}

.hero-board,
.section,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-board {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.76fr) minmax(280px, 0.8fr);
  gap: 1rem;
  min-height: 34rem;
  overflow: hidden;
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.6rem, 2vw, 1.4rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 6.2rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

p {
  overflow-wrap: anywhere;
}

.hero-copy p:not(.eyebrow) {
  max-width: 62ch;
  color: rgba(248, 241, 231, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

.hero-portrait {
  position: relative;
  min-height: 26rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1015;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(7, 8, 11, 0.72) 100%),
    radial-gradient(circle at 50% 10%, rgba(208, 251, 68, 0.13), transparent 15rem);
}

.hero-portrait img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.portrait-stats {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.portrait-stats div {
  border: 1px solid rgba(248, 241, 231, 0.16);
  border-radius: 8px;
  padding: 0.6rem;
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: blur(12px);
}

.portrait-stats span,
.result-chip,
.map-detail span:first-child,
.frame-top,
.mini-card-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.portrait-stats strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
}

.ask-panel,
.map-detail,
.lab-console,
.preview-frame,
.intelligence-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.ask-panel {
  display: flex;
  flex-direction: column;
  min-height: 28rem;
  padding: 1rem;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.status-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(208, 251, 68, 0.55);
}

.ask-panel p {
  color: var(--muted);
}

.prompt-stack {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.prompt-stack button,
.atlas-toolbar button,
.mode-buttons button {
  min-height: 2.45rem;
  border: 1px solid rgba(248, 241, 231, 0.14);
  border-radius: 8px;
  background: rgba(7, 8, 11, 0.38);
  color: var(--muted);
  font-weight: 900;
}

.prompt-stack button:hover,
.atlas-toolbar button:hover,
.mode-buttons button:hover,
.atlas-toolbar button.active,
.mode-buttons button.active {
  border-color: rgba(208, 251, 68, 0.46);
  background: rgba(208, 251, 68, 0.1);
  color: var(--ink);
}

.ask-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem;
  background: rgba(7, 8, 11, 0.48);
}

.ask-form button,
.mini-runner button {
  border: 1px solid rgba(208, 251, 68, 0.48);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  background: var(--lime);
  color: #101217;
  font-weight: 950;
}

.section {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 1rem;
}

.section-heading.split,
.contact-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading p:not(.eyebrow),
.contact-panel p {
  color: var(--muted);
}

.result-chip {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.75rem;
  background: rgba(248, 241, 231, 0.06);
}

.result-chip span {
  color: var(--lime);
}

.atlas-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.atlas-toolbar button {
  padding: 0 0.85rem;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(220px, 1fr));
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scroll-snap-type: x proximity;
}

.room-card {
  min-height: 19rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(75, 215, 255, 0.08), rgba(255, 75, 24, 0.06)),
    var(--panel);
  scroll-snap-align: start;
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.room-card.hidden {
  display: none;
}

.room-card:hover {
  border-color: var(--line-strong);
}

.room-card.flagship {
  border-color: rgba(255, 75, 24, 0.45);
}

.room-link {
  display: grid;
  align-content: start;
  min-height: 13.5rem;
  padding: 1rem;
}

.room-icon {
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(75, 215, 255, 0.42);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 950;
  background: rgba(75, 215, 255, 0.1);
}

.training .room-icon {
  border-color: rgba(255, 75, 24, 0.46);
  color: var(--ember);
  background: rgba(255, 75, 24, 0.1);
}

.diagrams .room-icon,
.notes .room-icon {
  border-color: rgba(241, 193, 90, 0.42);
  color: var(--gold);
  background: rgba(241, 193, 90, 0.1);
}

.artwork .room-icon {
  border-color: rgba(255, 111, 174, 0.42);
  color: var(--rose);
  background: rgba(255, 111, 174, 0.1);
}

.ai .room-icon {
  border-color: rgba(169, 139, 255, 0.46);
  color: var(--violet);
  background: rgba(169, 139, 255, 0.12);
}

.war .room-icon {
  border-color: rgba(241, 193, 90, 0.5);
  color: var(--gold);
  background: rgba(255, 75, 24, 0.12);
}

.room-card h3 {
  margin-top: 0.35rem;
}

.room-card p {
  color: var(--muted);
}

.domain-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  margin: 0 1rem 1rem;
  border: 1px solid rgba(248, 241, 231, 0.12);
  border-radius: 8px;
  padding: 0.55rem;
  background: rgba(7, 8, 11, 0.46);
}

code {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.domain-row button {
  border: 1px solid rgba(208, 251, 68, 0.42);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  background: rgba(208, 251, 68, 0.1);
  color: var(--ink);
  font-weight: 950;
}

.map-layout,
.intelligence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 1rem;
}

.constellation {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(75, 215, 255, 0.14), transparent 18rem),
    rgba(7, 8, 11, 0.42);
}

.constellation svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.constellation path {
  fill: none;
  stroke: rgba(75, 215, 255, 0.32);
  stroke-width: 1.5;
}

.map-node {
  position: absolute;
  min-width: 5.8rem;
  min-height: 5.8rem;
  border: 1px solid rgba(75, 215, 255, 0.44);
  border-radius: 50%;
  background: rgba(7, 8, 11, 0.78);
  color: var(--ink);
  font-weight: 950;
  box-shadow: 0 0 24px rgba(75, 215, 255, 0.16);
}

.map-node.active {
  border-color: rgba(208, 251, 68, 0.75);
  background: rgba(208, 251, 68, 0.12);
}

.map-node.center {
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url("assets/brand/ashwin-shonen-doctor-avatar.png");
  background-size: cover;
  color: transparent;
}

.map-node.medicine {
  top: 12%;
  left: 28%;
}

.map-node.cardio {
  top: 15%;
  right: 14%;
  border-color: rgba(255, 75, 24, 0.5);
}

.map-node.diagrams {
  top: 44%;
  left: 13%;
  border-color: rgba(208, 251, 68, 0.5);
}

.map-node.notes {
  top: 47%;
  right: 10%;
  border-color: rgba(241, 193, 90, 0.55);
}

.map-node.art {
  bottom: 13%;
  left: 22%;
  border-color: rgba(255, 111, 174, 0.5);
}

.map-node.ai {
  right: 26%;
  bottom: 8%;
  border-color: rgba(169, 139, 255, 0.55);
}

.map-detail,
.lab-console {
  padding: 1rem;
}

.map-detail h3,
.lab-console h3 {
  margin-top: 0.45rem;
}

.map-detail p,
.lab-console p {
  color: var(--muted);
}

.connection-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.connection-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.62rem;
  background: rgba(248, 241, 231, 0.06);
  color: var(--ink);
  font-size: 0.78rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.preview-frame {
  min-height: 23rem;
  padding: 0.85rem;
  background:
    linear-gradient(180deg, rgba(75, 215, 255, 0.07), transparent 42%),
    var(--panel);
}

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

.frame-top span {
  color: var(--ink);
  font-size: 0.88rem;
}

.frame-top a,
.frame-action,
.text-link {
  color: var(--cyan);
  font-weight: 900;
  text-underline-offset: 0.18em;
}

.mini-search {
  height: 2.2rem;
  margin: 0.8rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 8, 11, 0.5);
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.mini-card-grid div {
  min-height: 7.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem;
  background:
    radial-gradient(circle at 60% 10%, rgba(75, 215, 255, 0.12), transparent 4rem),
    rgba(7, 8, 11, 0.42);
  font-weight: 900;
}

.mini-card-grid span {
  display: block;
  margin-top: 0.35rem;
}

.image-like div {
  background:
    linear-gradient(135deg, rgba(248, 241, 231, 0.78), rgba(241, 193, 90, 0.3)),
    rgba(7, 8, 11, 0.42);
  color: #111318;
}

.image-like span {
  color: rgba(17, 19, 24, 0.62);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.metric-strip strong {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.6rem;
  background: rgba(7, 8, 11, 0.44);
  text-align: center;
}

.art-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.art-strip img {
  height: 13rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.mini-runner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem;
  background: rgba(7, 8, 11, 0.48);
}

.chess-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(16rem, 100%);
  aspect-ratio: 1;
  margin: 1rem auto;
  overflow: hidden;
  border: 1px solid rgba(241, 193, 90, 0.42);
  border-radius: 8px;
}

.chess-board span:nth-child(odd) {
  background: rgba(241, 193, 90, 0.72);
}

.chess-board span:nth-child(even) {
  background: rgba(7, 8, 11, 0.86);
}

.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.intelligence-grid article {
  min-height: 13rem;
  padding: 1rem;
}

.intelligence-grid article span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.intelligence-grid article:nth-child(2) span {
  color: var(--gold);
}

.intelligence-grid article:nth-child(3) span {
  color: var(--rose);
}

.intelligence-grid article:nth-child(4) span {
  color: var(--lime);
}

.intelligence-grid article h3 {
  margin-top: 1.8rem;
}

.intelligence-grid article p {
  color: var(--muted);
}

.mode-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mode-buttons button {
  padding: 0 0.8rem;
}

.route-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 8, 11, 0.38);
}

.route-table [role="row"] {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(210px, 0.9fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.route-table [role="row"]:first-child {
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
}

.route-table [role="row"]:last-child {
  border-bottom: 0;
}

.route-table span {
  color: var(--muted);
}

.contact-panel {
  align-items: center;
}

.contact-panel p {
  max-width: 74ch;
}

#copyStatus {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
  color: var(--lime);
  font-weight: 950;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 2rem) 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--ink);
}

@media (max-width: 1220px) {
  .hero-board {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  }

  .ask-panel {
    grid-column: 1 / -1;
    min-height: auto;
  }

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

@media (max-width: 980px) {
  .app-topbar {
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    overflow: hidden;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-rail nav {
    display: flex;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
  }

  .side-rail nav a {
    flex: 0 0 auto;
  }

  .rail-card {
    display: none;
  }

  .map-layout,
  .intelligence-layout,
  .hero-board {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    min-height: 22rem;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .section-heading.split,
  .contact-panel,
  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-grid,
  .intelligence-grid,
  .mini-card-grid {
    grid-template-columns: 1fr;
  }

  .constellation {
    min-height: 27rem;
  }

  .map-node {
    min-width: 4.7rem;
    min-height: 4.7rem;
    font-size: 0.78rem;
  }

  .route-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .room-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }
}
