:root {
  color-scheme: dark;
  --ink: #f4fbff;
  --muted: #aab8d6;
  --paper: #060814;
  --paper-strong: rgba(255, 255, 255, 0.92);
  --charcoal: #08101f;
  --line: rgba(170, 221, 255, 0.18);
  --teal: #61f4ff;
  --teal-dark: #21c6d9;
  --spring: #c7ff5b;
  --coral: #a76cff;
  --blue: #7c8dff;
  --violet: #a76cff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(97, 244, 255, 0.14), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(167, 108, 255, 0.16), transparent 32%),
    radial-gradient(circle at 55% 88%, rgba(167, 108, 255, 0.12), transparent 26%),
    #050711;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(97, 244, 255, 0.5) 0 1px, transparent 1.4px);
  background-position: 0 0, 38px 70px;
  background-size: 110px 110px, 170px 170px;
  opacity: 0.35;
  animation: starDrift 32s linear infinite;
}

@keyframes starDrift {
  from {
    background-position: 0 0, 38px 70px;
  }

  to {
    background-position: 220px 160px, -132px 260px;
  }
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.section-shell {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(1248px, calc(100% - 28px));
  margin: 8px auto 0;
  padding: 7px 12px;
  border: 1px solid rgba(97, 244, 255, 0.42);
  border-radius: 14px;
  background: rgba(5, 7, 18, 0.9);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(167, 108, 255, 0.18), 0 18px 46px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  min-width: min(400px, 34vw);
  text-decoration: none;
  font-weight: 800;
}

.window-dots {
  display: inline-flex;
  gap: 6px;
  flex: 0 0 auto;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 14px currentColor;
}

.window-dots span:nth-child(1) {
  background: #a76cff;
  color: #a76cff;
}

.window-dots span:nth-child(2) {
  background: #f7b84b;
  color: #f7b84b;
}

.window-dots span:nth-child(3) {
  background: #c7ff5b;
  color: #c7ff5b;
}

.browser-url {
  display: block;
  min-width: 0;
  width: min(350px, 100%);
  overflow: hidden;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.82);
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-links a {
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.82rem;
}

.nav-links a:first-child,
.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(167, 108, 255, 0.42);
  color: #fff;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  padding: clamp(44px, 8vw, 96px) 0;
}

.hero-copy {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.sandbox-stage .eyebrow {
  color: var(--spring);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.65rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.58rem, 3vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
}

.hero-actions,
.stage-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-actions {
  margin-top: 20px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(16, 19, 18, 0.32);
}

.button.primary {
  border-color: var(--spring);
  background: var(--spring);
}

.button.ghost {
  background: transparent;
  color: currentColor;
}

.button.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.signal-strip span {
  display: grid;
  gap: 4px;
  min-height: 68px;
  align-content: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.signal-strip strong {
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
}

.identity-panel {
  display: grid;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.portrait {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
  filter: saturate(1.05) contrast(1.02);
}

.panel-kicker {
  margin: 0;
  font-weight: 800;
  font-size: 0.92rem;
}

.contact-points {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.contact-points a {
  color: var(--teal-dark);
  font-weight: 800;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(220px, 0.65fr));
  gap: 12px;
  padding: 24px 0 58px;
}

.intro-card,
.skill-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.intro-card p:last-child,
.skill-grid p:last-child,
.section-heading p:last-child,
.cv-copy p:last-child,
.contact-section p:last-child {
  margin-bottom: 0;
}

.intro-card.compact {
  align-content: end;
}

.theatre-section,
.skill-section,
.sap-section,
.badge-section,
.cv-section,
.contact-section {
  padding: 58px 0;
}

#projects,
#skills,
#sap-certs,
#badges,
#cv,
#contact {
  scroll-margin-top: 92px;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 18px;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.92rem;
}

.theatre-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.5fr) auto auto;
  gap: 9px;
  align-items: end;
  margin-bottom: 14px;
}

.search-box {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.search-box input {
  min-height: 36px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-box input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 166, 166, 0.14);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.filter-chip[aria-pressed="true"] {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #fff;
}

.theatre-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
  min-height: 245px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent, var(--teal));
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent, var(--teal)) 26%, transparent), transparent 32%),
    rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, var(--accent, var(--teal)), transparent);
  opacity: 0.72;
}

.project-card:hover,
.project-card:focus-within,
.project-card.active {
  transform: translateY(-2px);
  border-color: rgba(16, 19, 18, 0.32);
  box-shadow: 0 14px 34px rgba(16, 19, 18, 0.15);
}

.project-card.active {
  background: #fff;
}

.project-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  line-height: 1.14;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.project-card .stage-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
}

.project-card .launch-button {
  grid-column: 1 / -1;
  border-color: rgba(199, 255, 91, 0.92);
  background: #c7ff5b;
  color: #061018;
  text-shadow: none;
  box-shadow: 0 8px 18px rgba(199, 255, 91, 0.18);
}

.project-card .launch-button:hover,
.project-card .launch-button:focus-visible {
  border-color: #ffffff;
  background: #d6ff7a;
  color: #061018;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 19, 18, 0.04);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.featured-pill {
  border-color: var(--coral);
  background: rgba(255, 107, 74, 0.12);
  color: #9c331b;
}

.sandbox-preload {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.sandbox-stage {
  position: relative;
  top: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.browser-bar span:nth-child(1) {
  background: var(--coral);
}

.browser-bar span:nth-child(2) {
  background: #ffbd4a;
}

.browser-bar span:nth-child(3) {
  background: var(--spring);
}

.browser-bar p {
  margin: 0 0 0 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sandbox-stage iframe {
  width: 100%;
  height: min(62vh, 620px);
  min-height: 430px;
  border: 0;
  background: #fff;
}

.stage-copy {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.stage-copy h3,
.stage-copy p {
  margin: 0;
}

.stage-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.skill-grid article {
  min-height: 170px;
  border-top: 4px solid var(--teal);
}

.skill-grid article:nth-child(2) {
  border-top-color: var(--blue);
}

.skill-grid article:nth-child(3) {
  border-top-color: var(--coral);
}

.skill-grid article:nth-child(4) {
  border-top-color: var(--spring);
}

.skill-grid article:nth-child(5) {
  border-top-color: var(--teal-dark);
}

.skill-grid article:nth-child(6) {
  border-top-color: var(--charcoal);
}

.skill-grid p {
  margin: 0;
  color: var(--muted);
}

.sap-section {
  border-top: 1px solid var(--line);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.credential-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.credential-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.credential-feature {
  grid-column: span 3;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  grid-template-rows: auto;
  background:
    linear-gradient(135deg, rgba(0, 166, 166, 0.12), transparent 46%),
    #fff;
}

.credential-preview {
  display: block;
  min-height: 210px;
  overflow: hidden;
  background: #fff;
}

.credential-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.credential-card > div {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
}

.credential-card span {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 166, 166, 0.1);
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 850;
}

.credential-card h3,
.credential-card p {
  margin: 0;
}

.credential-card p {
  color: var(--muted);
}

.credential-card a:not(.button):not(.credential-preview) {
  color: var(--teal-dark);
  font-weight: 850;
}

.cert-card {
  display: grid;
  gap: 7px;
  min-height: 176px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(199, 255, 91, 0.16), transparent 46%),
    rgba(255, 255, 255, 0.9);
}

.cert-card span {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--charcoal);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 850;
}

.cert-card p {
  margin: 0;
  color: var(--muted);
}

.cert-card a {
  align-self: end;
  color: var(--teal-dark);
  font-weight: 850;
}

.feature-cert {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(47, 107, 255, 0.14), transparent 42%),
    var(--charcoal);
  color: #fff;
}

.feature-cert p {
  color: rgba(255, 255, 255, 0.74);
}

.feature-cert a {
  color: var(--spring);
}

.badge-section {
  border-top: 1px solid var(--line);
}

.badge-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.badge-tile {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 190px;
  align-content: start;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.badge-tile::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 98px;
  height: 98px;
  border: 1px solid rgba(16, 19, 18, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 166, 166, 0.18), transparent 68%);
}

.badge-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--spring);
  box-shadow: 0 8px 20px rgba(16, 19, 18, 0.14);
  font-size: 0.72rem;
  font-weight: 950;
}

.badge-tile h3,
.badge-tile p {
  margin: 0;
  overflow-wrap: anywhere;
}

.badge-tile p {
  color: var(--muted);
}

.badge-tile small {
  width: fit-content;
  margin-top: auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 166, 166, 0.1);
  color: var(--teal-dark);
  font-weight: 850;
}

.sap-badge {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(199, 255, 91, 0.18), transparent 45%),
    var(--charcoal);
  color: #fff;
}

.sap-badge .badge-icon {
  background: var(--spring);
  color: var(--charcoal);
}

.sap-badge p {
  color: rgba(255, 255, 255, 0.76);
}

.sap-badge small {
  background: rgba(255, 255, 255, 0.12);
  color: var(--spring);
}

.cv-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  gap: 28px;
  align-items: center;
}

.cv-copy {
  display: grid;
  gap: 14px;
}

.cv-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.cv-preview {
  display: block;
  max-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cv-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact-section p {
  color: var(--muted);
  font-size: 1.04rem;
}

.contact-actions {
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 42px);
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.76);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .intro-grid,
  .theatre-layout,
  .cv-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .theatre-tools {
    grid-template-columns: 1fr;
  }

  .project-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .sandbox-stage {
    position: relative;
    top: auto;
  }

  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credential-showcase {
    grid-template-columns: 1fr;
  }

  .credential-feature {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .badge-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .section-shell {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy {
    padding: 24px;
  }

  .signal-strip,
  .skill-grid,
  .cert-grid,
  .badge-board {
    grid-template-columns: 1fr;
  }

  .feature-cert,
  .sap-badge {
    grid-column: auto;
  }

  .sandbox-stage iframe {
    min-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  background: rgba(5, 8, 19, 0.72);
  border-bottom: 1px solid rgba(97, 244, 255, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

main {
  overflow: hidden;
}

.button {
  border-color: rgba(97, 244, 255, 0.58);
  background: linear-gradient(135deg, rgba(7, 16, 34, 0.96), rgba(24, 42, 86, 0.92));
  color: #f7fbff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 1px rgba(97, 244, 255, 0.16), 0 12px 30px rgba(0, 0, 0, 0.3);
}

.button.primary {
  border-color: rgba(199, 255, 91, 0.65);
  background: linear-gradient(135deg, #c7ff5b, #61f4ff);
  color: #061018;
  text-shadow: none;
}

.button.ghost {
  border-color: rgba(97, 244, 255, 0.3);
  background: rgba(7, 16, 34, 0.52);
  color: #eaf9ff;
}

#autoPilot {
  border-color: rgba(255, 225, 106, 0.98);
  background: linear-gradient(135deg, #ffe16a, #a76cff);
  color: #071018;
  font-weight: 950;
  text-shadow: none;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 0 26px rgba(255, 225, 106, 0.34),
    0 14px 32px rgba(0, 0, 0, 0.36);
}

#autoPilot:hover,
#autoPilot:focus-visible {
  border-color: #ffffff;
  background: linear-gradient(135deg, #fff07d, #61f4ff);
  color: #061018;
}

#autoPilot[aria-pressed="false"] {
  border-color: rgba(167, 108, 255, 0.94);
  background: linear-gradient(135deg, #25134b, #5b2f8c);
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.62);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 0 24px rgba(167, 108, 255, 0.32),
    0 14px 32px rgba(0, 0, 0, 0.36);
}

:is(.stage-actions, .credential-card, .project-card, .hologram-panel, .cv-section, .contact-actions)
  .button:not(.primary):not(.ghost) {
  border-color: rgba(97, 244, 255, 0.82);
  background: linear-gradient(135deg, #07172d, #123a68);
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 18px rgba(97, 244, 255, 0.22),
    0 14px 28px rgba(0, 0, 0, 0.34);
}

:is(.stage-actions, .credential-card, .project-card, .hologram-panel, .cv-section, .contact-actions)
  .button:not(.primary):not(.ghost):is(:hover, :focus-visible) {
  border-color: #c7ff5b;
  background: linear-gradient(135deg, #0d284a, #155b92);
  color: #ffffff;
}

.mission-control {
  position: relative;
  min-height: 100svh;
  padding: 96px clamp(16px, 4vw, 44px) 28px;
  isolation: isolate;
}

#galaxyCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
  background: #03040d;
  cursor: grab;
  filter: saturate(1.25) brightness(1.14);
  touch-action: none;
}

body.manual-flight #galaxyCanvas {
  cursor: grabbing;
}

.cosmic-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 8, 19, 0.82), rgba(5, 8, 19, 0.26) 42%, rgba(5, 8, 19, 0.78)),
    linear-gradient(0deg, rgba(5, 8, 19, 0.96), transparent 32%, rgba(5, 8, 19, 0.7));
  pointer-events: none;
}

.launch-sequence {
  position: absolute;
  left: 50%;
  top: 24%;
  z-index: 8;
  width: min(420px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid rgba(255, 225, 106, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 225, 106, 0.13), rgba(97, 244, 255, 0.11)),
    rgba(5, 8, 19, 0.88);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 42px rgba(255, 225, 106, 0.2);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(0.98);
  transition: opacity 240ms ease, transform 240ms ease;
}

.launch-sequence.active {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.launch-sequence span,
.mission-hud span {
  color: rgba(234, 249, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.launch-sequence strong,
.mission-hud strong {
  display: block;
  margin-top: 5px;
}

.launch-meter,
.hud-meter {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.launch-meter span,
.hud-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe16a, #61f4ff, #a76cff);
  box-shadow: 0 0 18px rgba(97, 244, 255, 0.36);
  transition: width 320ms ease;
}

.mission-hud {
  position: absolute;
  top: 96px;
  right: clamp(16px, 4vw, 44px);
  z-index: 6;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  width: min(360px, calc(100% - 32px));
  padding: 14px;
  border: 1px solid rgba(97, 244, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(97, 244, 255, 0.1), rgba(167, 108, 255, 0.08)),
    rgba(5, 8, 19, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 34px rgba(97, 244, 255, 0.14);
  backdrop-filter: blur(18px);
}

.hud-light {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 999px;
  background: #ffe16a;
  box-shadow: 0 0 18px rgba(255, 225, 106, 0.72);
}

.mission-hud .hud-meter {
  grid-column: 1 / -1;
  margin-top: 0;
}

.mission-overlay {
  display: grid;
  grid-template-columns: minmax(320px, 650px);
  width: min(650px, 100%);
  gap: 18px;
  align-items: start;
}

.mission-card,
.commander-card,
.hologram-panel,
.flight-deck,
.quick-destinations,
.project-card,
.sandbox-stage,
.intro-card,
.skill-grid article,
.cert-card,
.credential-card,
.badge-tile,
.cv-preview {
  border: 1px solid rgba(97, 244, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(97, 244, 255, 0.1), rgba(167, 108, 255, 0.08)),
    rgba(7, 14, 31, 0.76);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), var(--shadow);
  backdrop-filter: blur(18px);
}

.mission-card {
  max-width: 650px;
  padding: clamp(24px, 5vw, 46px);
  border-radius: 8px;
}

.mission-card h1 {
  font-size: clamp(2.45rem, 7vw, 6rem);
  max-width: 760px;
  text-shadow: 0 0 28px rgba(97, 244, 255, 0.16);
}

.mission-card .hero-text {
  color: rgba(234, 249, 255, 0.76);
}

.eyebrow {
  color: var(--teal);
  letter-spacing: 0.08em;
}

.commander-card {
  display: grid;
  grid-template-columns: minmax(132px, 158px) 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: 8px;
  max-width: 650px;
}

.commander-card .portrait {
  width: 100%;
  max-height: none;
  align-self: start;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 40px rgba(97, 244, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.commander-card .panel-kicker,
.contact-points,
.contact-points a {
  color: #eaf9ff;
}

.signal-strip span {
  border-color: rgba(97, 244, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.hologram-panel {
  position: absolute;
  right: clamp(16px, 4vw, 44px);
  top: 52%;
  z-index: 4;
  width: min(370px, calc(100% - 32px));
  max-height: min(72svh, 720px);
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  transform: translateY(-38%);
}

.hologram-panel h2 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.hologram-panel p {
  color: rgba(234, 249, 255, 0.76);
  font-size: 0.84rem;
}

.holo-preview {
  min-height: 126px;
  margin: 10px 0;
  overflow: hidden;
  border: 1px solid rgba(97, 244, 255, 0.22);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(97, 244, 255, 0.08) 0 8px, rgba(167, 108, 255, 0.08) 8px 16px),
    rgba(255, 255, 255, 0.92);
}

.holo-preview iframe {
  width: 125%;
  height: 168px;
  border: 0;
  transform: scale(0.8);
  transform-origin: top left;
  background: #fff;
}

.flight-deck {
  position: absolute;
  left: clamp(16px, 4vw, 44px);
  right: clamp(16px, 4vw, 44px);
  bottom: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 8px;
}

.flight-deck strong,
.flight-readout span {
  display: block;
}

.flight-deck span {
  color: rgba(234, 249, 255, 0.72);
  font-size: 0.78rem;
}

.flight-readout {
  text-align: right;
}

.mobile-flight-pad {
  position: absolute;
  right: clamp(16px, 4vw, 44px);
  bottom: 104px;
  z-index: 6;
  display: none;
  grid-template-columns: repeat(3, 48px);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(97, 244, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 8, 19, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 30px rgba(97, 244, 255, 0.14);
  backdrop-filter: blur(16px);
}

.mobile-flight-pad button {
  min-height: 44px;
  border: 1px solid rgba(97, 244, 255, 0.54);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(7, 23, 45, 0.95), rgba(18, 58, 104, 0.94));
  color: #ffffff;
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 0 16px rgba(97, 244, 255, 0.12);
}

.mobile-flight-pad button:nth-child(1) {
  grid-column: 2;
}

.mobile-flight-pad button:nth-child(2) {
  grid-column: 1;
}

.mobile-flight-pad button:nth-child(3) {
  grid-column: 2;
}

.mobile-flight-pad button:nth-child(4) {
  grid-column: 3;
}

.mobile-flight-pad button[data-dock] {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #ffe16a, #a76cff);
  color: #071018;
}

.quick-destinations {
  position: relative;
  z-index: 5;
  width: min(420px, 100%);
  margin-top: 12px;
  border-radius: 8px;
}

.quick-toggle {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(97, 244, 255, 0.28);
  border-radius: 8px;
  background: rgba(7, 14, 31, 0.82);
  color: #eaf9ff;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 850;
  text-align: left;
}

#quickDestinationList {
  display: none;
  position: static;
  width: auto;
  max-height: 46svh;
  overflow: auto;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(97, 244, 255, 0.2);
  border-radius: 8px;
  background: rgba(7, 14, 31, 0.86);
  backdrop-filter: blur(16px);
}

.quick-destinations.open #quickDestinationList {
  display: grid;
  gap: 6px;
}

.quick-destination {
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #eaf9ff;
  cursor: pointer;
  text-align: left;
}

.quick-destination:hover,
.quick-destination:focus-visible,
.quick-destination.active {
  border-color: rgba(97, 244, 255, 0.32);
  background: rgba(97, 244, 255, 0.1);
}

.quick-destination span {
  color: rgba(234, 249, 255, 0.62);
  font-size: 0.68rem;
}

@media (hover: none) and (pointer: coarse) {
  .mobile-flight-pad {
    display: grid;
  }
}

.log-profile-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.log-profile-card img {
  width: 76px;
  max-height: 104px;
  border: 1px solid rgba(97, 244, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  object-fit: contain;
  box-shadow: 0 0 26px rgba(97, 244, 255, 0.14);
}

.theatre-section,
.logbook-section,
.skill-section,
.sap-section,
.badge-section,
.cv-section,
.contact-section {
  position: relative;
  padding-block: 58px;
}

.theatre-section::before,
.logbook-section::before,
.skill-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    radial-gradient(circle at 22% 10%, rgba(97, 244, 255, 0.09), transparent 25%),
    radial-gradient(circle at 78% 40%, rgba(167, 108, 255, 0.1), transparent 26%);
}

.section-heading h2,
.cv-copy h2,
.contact-section h2 {
  color: #f4fbff;
}

.section-heading p,
.cv-copy p,
.contact-section p,
.project-card p,
.skill-grid p,
.cert-card p,
.badge-tile p,
.credential-card p {
  color: rgba(234, 249, 255, 0.72);
}

.theatre-tools {
  padding: 10px;
  border: 1px solid rgba(97, 244, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 14, 31, 0.54);
}

.search-box {
  color: #eaf9ff;
}

.search-box input,
.filter-chip {
  border-color: rgba(97, 244, 255, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #07101f;
}

.filter-chip[aria-pressed="true"] {
  background: linear-gradient(135deg, #c7ff5b, #61f4ff);
  color: #061018;
}

.project-card {
  color: #f4fbff;
}

.project-card.active {
  background:
    linear-gradient(135deg, rgba(199, 255, 91, 0.12), rgba(97, 244, 255, 0.1)),
    rgba(7, 14, 31, 0.9);
}

.pill {
  border-color: rgba(97, 244, 255, 0.22);
  background: rgba(97, 244, 255, 0.08);
  color: #dffaff;
}

.featured-pill {
  border-color: rgba(167, 108, 255, 0.5);
  background: rgba(167, 108, 255, 0.13);
  color: #eadcff;
}

.sandbox-stage {
  background: rgba(4, 8, 19, 0.9);
}

.browser-bar {
  background: rgba(255, 255, 255, 0.04);
}

.log-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.log-grid article {
  min-height: 152px;
  padding: 16px;
  border: 1px solid rgba(97, 244, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(97, 244, 255, 0.1), rgba(199, 255, 91, 0.06)),
    rgba(7, 14, 31, 0.72);
}

.log-grid p {
  color: rgba(234, 249, 255, 0.72);
}

.constellation-grid {
  position: relative;
}

.constellation-grid article {
  min-height: 168px;
  background:
    radial-gradient(circle at 18px 18px, var(--node, var(--teal)) 0 6px, transparent 7px),
    linear-gradient(135deg, rgba(97, 244, 255, 0.09), rgba(167, 108, 255, 0.08)),
    rgba(7, 14, 31, 0.72);
  padding-top: 30px;
}

.constellation-grid article:nth-child(1) { --node: var(--teal); }
.constellation-grid article:nth-child(2) { --node: var(--blue); }
.constellation-grid article:nth-child(3) { --node: var(--coral); }
.constellation-grid article:nth-child(4) { --node: var(--spring); }
.constellation-grid article:nth-child(5) { --node: var(--violet); }
.constellation-grid article:nth-child(6) { --node: #ffffff; }

.sap-section,
.badge-section,
.contact-section {
  border-top-color: rgba(97, 244, 255, 0.16);
}

.credential-card,
.cert-card,
.badge-tile,
.cv-preview {
  color: #f4fbff;
}

.credential-card span,
.cert-card span,
.badge-tile small {
  background: rgba(97, 244, 255, 0.12);
  color: #bffaff;
}

.feature-cert,
.sap-badge {
  background:
    linear-gradient(135deg, rgba(199, 255, 91, 0.18), rgba(97, 244, 255, 0.08)),
    rgba(7, 14, 31, 0.9);
}

.contact-section {
  border-top: 1px solid rgba(97, 244, 255, 0.16);
}

.site-footer {
  background: rgba(5, 8, 19, 0.96);
  border-top: 1px solid rgba(97, 244, 255, 0.18);
}

.mission-control {
  height: max(660px, 100svh);
  overflow: hidden;
  padding-top: 64px;
  background:
    radial-gradient(circle at 28% 26%, rgba(167, 108, 255, 0.18), transparent 28%),
    radial-gradient(circle at 84% 28%, rgba(97, 244, 255, 0.12), transparent 34%),
    linear-gradient(120deg, rgba(55, 22, 88, 0.56), rgba(3, 18, 37, 0.62));
  cursor: grab;
}

body.manual-flight .mission-control {
  cursor: grabbing;
}

.mission-control::after {
  content: "";
  position: absolute;
  inset: 58px -8% 14px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
  background:
    radial-gradient(ellipse at 54% 50%, transparent 0 36%, rgba(255, 255, 255, 0.72) 36.2% 36.45%, transparent 36.7%),
    radial-gradient(ellipse at 54% 50%, transparent 0 48%, rgba(255, 255, 255, 0.48) 48.2% 48.45%, transparent 48.7%),
    radial-gradient(ellipse at 54% 50%, transparent 0 60%, rgba(255, 255, 255, 0.38) 60.2% 60.45%, transparent 60.7%),
    repeating-linear-gradient(78deg, transparent 0 64px, rgba(255, 255, 255, 0.3) 65px 66px, transparent 67px 120px);
  mix-blend-mode: screen;
}

.mission-overlay,
.quick-destinations {
  position: relative;
  z-index: 3;
}

.mission-overlay {
  grid-template-columns: minmax(290px, 520px);
  width: min(520px, 100%);
}

.mission-card,
.hologram-panel,
.flight-deck,
.quick-destinations,
.mobile-flight-pad,
.project-card,
.sandbox-stage,
.credential-card,
.cert-card,
.badge-tile {
  border-color: rgba(97, 244, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(7, 14, 31, 0.94), rgba(5, 8, 19, 0.9)),
    #050711;
  box-shadow:
    0 0 0 2px rgba(5, 8, 19, 0.82),
    0 0 0 4px rgba(167, 108, 255, 0.34),
    0 20px 70px rgba(0, 0, 0, 0.42);
}

.mission-card {
  max-width: 520px;
  padding: clamp(20px, 3vw, 28px);
}

.mission-card h1 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.mission-card .hero-text {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.88rem, 1.18vw, 0.98rem);
}

.mission-control .commander-card {
  display: none;
}

body.mission-launched .mission-card {
  opacity: 0.26;
  transform: translateX(-22px) scale(0.985);
}

body.mission-launched .mission-card:is(:hover, :focus-within) {
  opacity: 0.84;
}

.button.primary {
  border-color: rgba(167, 108, 255, 0.95);
  background: #a76cff;
  color: #fff;
  text-shadow: none;
  box-shadow: 0 8px 22px rgba(167, 108, 255, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: #ffffff;
  background: #b893ff;
  color: #fff;
}

.project-card .launch-button {
  border-color: rgba(199, 255, 91, 0.92);
  background: #c7ff5b;
  color: #061018;
  text-shadow: none;
  box-shadow: 0 8px 18px rgba(199, 255, 91, 0.18);
}

.project-card .launch-button:hover,
.project-card .launch-button:focus-visible {
  border-color: #ffffff;
  background: #d6ff7a;
  color: #061018;
}

#autoPilot {
  border-color: rgba(97, 244, 255, 0.9);
  background: rgba(5, 8, 19, 0.88);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(97, 244, 255, 0.28), 0 0 26px rgba(97, 244, 255, 0.16);
}

#autoPilot:hover,
#autoPilot:focus-visible {
  background: rgba(13, 40, 74, 0.95);
  color: #ffffff;
}

.signal-strip {
  position: absolute;
  top: 92px;
  right: clamp(34px, 5vw, 58px);
  z-index: 4;
  display: flex;
  gap: 10px;
  margin: 0;
}

.signal-strip span {
  width: clamp(78px, 8vw, 100px);
  min-height: 72px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: rgba(5, 8, 19, 0.64);
  text-align: center;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.signal-strip strong {
  color: #c7ff5b;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.signal-strip span:nth-child(2) strong,
.signal-strip span:nth-child(3) strong {
  color: #a76cff;
}

.hologram-panel {
  position: absolute;
  top: 300px;
  right: clamp(34px, 5vw, 58px);
  z-index: 5;
  width: min(320px, calc(100% - 32px));
  max-height: min(48svh, 340px);
  transform: none;
  scrollbar-gutter: stable;
  padding: 14px;
}

.hologram-panel .stage-actions,
.stage-actions {
  gap: 10px;
}

.hologram-panel .stage-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  position: sticky;
  bottom: -14px;
  margin-inline: -2px;
  padding: 8px 0 0;
  background: linear-gradient(180deg, rgba(5, 8, 19, 0), rgba(5, 8, 19, 0.96) 32%);
}

.hologram-panel .button,
.stage-actions .button,
.contact-actions .button,
.hero-actions .button {
  min-width: 104px;
}

.hologram-panel .button {
  min-width: 0;
  padding-inline: 8px;
  font-size: 0.74rem;
}

.quick-destination,
.mobile-flight-pad button,
:is(.stage-actions, .credential-card, .project-card, .hologram-panel, .cv-section, .contact-actions)
  .button:not(.primary):not(.ghost) {
  border-color: rgba(97, 244, 255, 0.94);
  background: #2d70ff;
  color: #ffffff;
  text-shadow: none;
}

.button.ghost {
  border-color: rgba(97, 244, 255, 0.66);
  background: rgba(5, 8, 19, 0.86);
  color: #ffffff;
}

.mission-hud {
  position: absolute;
  top: 176px;
  right: clamp(34px, 5vw, 58px);
  left: auto;
  z-index: 6;
  width: min(350px, calc(100% - 32px));
  border-color: rgba(97, 244, 255, 0.72);
  background: rgba(5, 8, 19, 0.86);
}

body.manual-flight .mission-hud {
  border-color: rgba(167, 108, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 34px rgba(167, 108, 255, 0.18);
}

.flight-deck {
  left: clamp(236px, 20vw, 270px);
  right: clamp(380px, 35vw, 470px);
  bottom: 14px;
  z-index: 7;
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(136px, 0.8fr) minmax(224px, 1fr) minmax(132px, 0.75fr);
  gap: 8px;
  padding: 10px 38px 10px 12px;
}

.control-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(167, 108, 255, 0.22);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 950;
}

.game-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(106px, 1fr));
  gap: 6px;
  align-self: center;
}

.game-actions .button {
  min-width: 0;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.74rem;
  white-space: nowrap;
}

.flight-copy,
.flight-readout {
  align-self: center;
}

.flight-copy {
  grid-column: auto;
}

.flight-readout {
  text-align: left;
}

.controls-reopen {
  position: absolute;
  left: clamp(34px, 5vw, 58px);
  bottom: 64px;
  z-index: 8;
}

body.controls-hidden .flight-deck {
  display: none;
}

body.controls-hidden .quick-destinations {
  bottom: 22px;
}

body.docking-active .mission-control {
  cursor: progress;
}

.launch-sequence.docking-sequence {
  border-color: rgba(167, 108, 255, 0.82);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 52px rgba(167, 108, 255, 0.28);
}

body.project-docked .sandbox-stage {
  border-color: rgba(199, 255, 91, 0.8);
  box-shadow:
    0 0 0 2px rgba(199, 255, 91, 0.18),
    0 28px 90px rgba(0, 0, 0, 0.5);
}

.quick-destinations {
  position: absolute;
  left: clamp(34px, 5vw, 58px);
  bottom: 14px;
  z-index: 6;
  width: min(190px, calc(100% - 32px));
}

.quick-destinations.open #quickDestinationList {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  max-height: 42svh;
}

.launch-sequence {
  border-color: rgba(97, 244, 255, 0.72);
  background: rgba(5, 8, 19, 0.9);
}

@media (max-width: 1100px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .mission-control {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .brand {
    width: 100%;
    min-width: 0;
  }

  .browser-url {
    width: 100%;
  }

  .signal-strip {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
  }

  .signal-strip span {
    width: auto;
  }

  .mission-hud {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 650px);
    margin-bottom: 18px;
  }

  .mission-overlay {
    grid-template-columns: 1fr;
    padding-bottom: 360px;
  }

  .commander-card {
    max-width: 360px;
    grid-template-columns: 1fr;
  }

  .hologram-panel {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: min(100%, 680px);
    margin-top: -330px;
  }

  .flight-deck,
  .mobile-flight-pad {
    position: relative;
    inset: auto;
    width: min(100%, 680px);
    margin-top: 12px;
  }

  .flight-deck {
    grid-template-columns: 1fr;
    padding: 16px 46px 16px 16px;
  }

  .game-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .controls-reopen {
    position: relative;
    inset: auto;
    width: fit-content;
    margin-top: 12px;
  }

  .quick-destinations {
    position: relative;
    inset: auto;
    width: min(100%, 680px);
    margin-top: 12px;
    top: auto;
  }

  .quick-destinations.open #quickDestinationList {
    position: static;
    max-height: 46svh;
  }

  .mobile-flight-pad {
    width: min(240px, 100%);
  }
}

@media (max-width: 980px) {
  .mission-control {
    min-height: auto;
    padding-bottom: 28px;
  }

  .mission-overlay {
    padding-bottom: 0;
  }

  .hologram-panel {
    max-height: 330px;
    margin-top: 10px;
    padding: 12px;
  }

  .holo-preview {
    display: none;
  }

  .flight-deck,
  .mobile-flight-pad,
  .quick-destinations {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 8px;
  }

  .flight-deck {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-actions {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-flight-pad {
    display: grid;
    width: min(240px, 100%);
    grid-template-columns: repeat(3, minmax(44px, 1fr));
  }

  .flight-readout {
    text-align: left;
  }

  .log-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .mission-control {
    height: max(640px, 100svh);
    min-height: 640px;
    overflow: hidden;
    padding: 58px 16px 14px;
  }

  .mission-overlay {
    width: min(410px, 45vw);
    padding-bottom: 0;
  }

  .mission-card {
    max-width: 410px;
    padding: 16px;
  }

  .mission-card h1 {
    font-size: clamp(1.55rem, 3vw, 2.05rem);
  }

  .mission-card .hero-text {
    font-size: 0.82rem;
  }

  .signal-strip {
    position: absolute;
    top: 66px;
    right: 16px;
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    width: auto;
    margin: 0;
  }

  .signal-strip span {
    width: 68px;
    min-height: 54px;
    padding: 7px;
    font-size: 0.68rem;
  }

  .signal-strip strong {
    font-size: 1.25rem;
  }

  .mission-hud {
    position: absolute;
    top: 132px;
    right: 16px;
    width: 300px;
    margin: 0;
    padding: 10px;
  }

  .hologram-panel {
    position: absolute;
    top: 244px;
    right: 16px;
    width: 300px;
    max-height: 234px;
    margin: 0;
    padding: 12px;
  }

  .hologram-panel h2 {
    font-size: 1.25rem;
  }

  .hologram-panel p {
    font-size: 0.78rem;
  }

  .hologram-panel .pill-row,
  .holo-preview,
  .mobile-flight-pad {
    display: none;
  }

  .hologram-panel .stage-actions {
    display: grid;
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px 0 0;
    background: transparent;
  }

  .hologram-panel .button {
    min-width: 0;
    padding-inline: 6px;
    font-size: 0.72rem;
  }

  .flight-deck {
    position: absolute;
    right: 330px;
    bottom: 14px;
    left: 220px;
    width: auto;
    margin: 0;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 36px 10px 12px;
  }

  .flight-copy {
    grid-column: 1 / -1;
  }

  .controls-reopen {
    position: absolute;
    bottom: 58px;
    left: 16px;
    margin: 0;
    min-height: 30px;
    padding: 6px 10px;
  }

  .quick-destinations {
    position: absolute;
    bottom: 14px;
    left: 16px;
    width: 190px;
    margin: 0;
  }

  .quick-destinations.open #quickDestinationList {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    left: 0;
    max-height: 38svh;
  }

  body.controls-hidden .quick-destinations {
    bottom: 14px;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: sticky;
    width: min(100% - 24px, 420px);
    gap: 8px;
    overflow: hidden;
    padding: 8px;
  }

  .mission-control {
    padding-top: 24px;
  }

  .mission-card,
  .hologram-panel,
  .commander-card {
    padding: 12px;
  }

  .flight-deck {
    gap: 8px;
    padding: 12px 12px 12px;
  }

  .control-close {
    top: 8px;
    right: 8px;
  }

  .game-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sandbox-stage iframe {
    min-height: 360px;
    height: 58vh;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .holo-preview iframe {
    height: 150px;
  }

  .quick-destinations.open #quickDestinationList {
    max-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #galaxyCanvas {
    opacity: 0.72;
  }
}
