:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-2: #122139;
  --panel: rgba(13, 24, 43, 0.86);
  --text: #f4fbff;
  --muted: #a9bfd3;
  --cyan: #45f6ff;
  --pink: #ff5f93;
  --gold: #ffd166;
  --line: rgba(69, 246, 255, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(69, 246, 255, 0.2), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(255, 95, 147, 0.22), transparent 28rem),
    linear-gradient(135deg, var(--bg), var(--bg-2));
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.lab-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 112px);
}

.hero-copy,
.portrait-card,
.mission-card,
.birthday-card,
.manifesto,
.mini-card,
.pledge-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(69, 246, 255, 0.12);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: clamp(28px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 9ch;
  font-size: clamp(4rem, 13vw, 8.8rem);
  text-shadow:
    0 0 18px rgba(69, 246, 255, 0.3),
    3px 3px 0 rgba(255, 95, 147, 0.5);
}

h2 {
  font-size: clamp(2.3rem, 7vw, 5rem);
}

.lede,
.mission-card p:last-child {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #051018;
  background: var(--cyan);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(69, 246, 255, 0.22);
}

.button.ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.portrait-card {
  display: grid;
  min-height: 480px;
  margin: 0;
  padding: 18px;
  place-items: center;
  gap: 16px;
}

.portrait-card img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.image-fallback {
  display: grid;
  min-height: 360px;
  width: 100%;
  padding: 28px;
  border: 1px dashed rgba(69, 246, 255, 0.42);
  border-radius: 20px;
  place-items: center;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(69, 246, 255, 0.12), transparent),
    rgba(255, 255, 255, 0.04);
}

.image-fallback[hidden] {
  display: none;
}

.portrait-note {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

code {
  color: var(--cyan);
}

.mission-card,
.birthday-card,
.manifesto,
.pledge-card {
  margin-top: 32px;
  padding: clamp(28px, 5vw, 48px);
}

.birthday-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.birthday-card p:last-child,
.pledge-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

.manifesto h2 {
  max-width: 10ch;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.mini-card {
  padding: 24px;
  box-shadow: none;
  background:
    linear-gradient(145deg, rgba(69, 246, 255, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.045);
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 209, 102, 0.38);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.pledge-card {
  position: relative;
  overflow: hidden;
}

.pledge-card::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  content: "";
  background: radial-gradient(circle, rgba(255, 95, 147, 0.24), transparent 68%);
}

.signature {
  position: relative;
  margin-top: 22px !important;
  color: var(--gold) !important;
  font-weight: 900;
}

@media (max-width: 840px) {
  .lab-shell {
    padding: 24px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .birthday-card,
  .manifesto-grid {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    min-height: 320px;
  }
}

@media (max-width: 1080px) and (min-width: 841px) {
  .manifesto-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mothership-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 31, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
}

.mothership-strip a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.mothership-strip a:hover {
  color: var(--gold);
}

.mothership-strip span {
  color: var(--muted);
  letter-spacing: 0.04em;
}
