:root {
  --bg-ink: #09151f;
  --bg-slate: #0f2433;
  --accent: #f2b705;
  --accent-soft: #ffd878;
  --paper: #f7f6f2;
  --text: #f3f5f8;
  --muted: #b8c5d3;
  --success: #89d19c;
  --danger: #f58f8f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(242, 183, 5, 0.16), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(79, 148, 193, 0.25), transparent 35%),
    linear-gradient(120deg, var(--bg-ink), var(--bg-slate));
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

.ambient-a {
  width: 320px;
  height: 320px;
  background: rgba(242, 183, 5, 0.28);
  border-radius: 32% 68% 60% 40%;
  top: -80px;
  right: -60px;
  animation: drift 10s ease-in-out infinite alternate;
}

.ambient-b {
  width: 240px;
  height: 240px;
  background: rgba(66, 128, 168, 0.4);
  border-radius: 65% 35% 45% 55%;
  bottom: -70px;
  left: -50px;
  animation: drift 8s ease-in-out infinite alternate-reverse;
}

.page {
  width: min(980px, 92vw);
  margin: 2.2rem auto;
  display: grid;
  gap: 1rem;
}

.card-shell {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(5px);
  animation: rise 500ms ease-out;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-soft);
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.identity-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr;
  gap: 1.4rem;
}

.photo-wrap {
  align-self: start;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.45rem;
}

.photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.identity-copy h1 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.08;
}

.subtitle {
  margin-top: 0.2rem;
  margin-bottom: 1rem;
  color: var(--accent-soft);
}

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

.facts div {
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.facts dd {
  margin: 0.3rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.body-copy {
  margin-top: 1rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.9rem;
  color: #e4eaf0;
  line-height: 1.5;
}

.footer {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.error {
  background: rgba(245, 143, 143, 0.15);
  border: 1px solid rgba(245, 143, 143, 0.45);
  border-radius: 12px;
  padding: 1rem;
}

.error h2 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

@keyframes drift {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(20px) rotate(15deg); }
}

@keyframes rise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 800px) {
  .identity-grid {
    grid-template-columns: 1fr;
  }

  .photo-wrap {
    max-width: 220px;
  }

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

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