:root {
  --bg: #050816;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-strong: rgba(17, 24, 39, 0.92);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --line: rgba(148, 163, 184, 0.22);
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --green: #34d399;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(96, 165, 250, 0.18), transparent 32%),
    radial-gradient(circle at 82% 80%, rgba(167, 139, 250, 0.2), transparent 34%),
    linear-gradient(135deg, #050816 0%, #07111f 46%, #020617 100%);
}

a { color: inherit; text-decoration: none; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}

.orb {
  position: fixed;
  width: 32vw;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.52;
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}

.orb-one {
  top: -14vh;
  left: -10vw;
  background: rgba(34, 211, 238, 0.55);
}

.orb-two {
  right: -12vw;
  bottom: -16vh;
  background: rgba(124, 58, 237, 0.58);
  animation-delay: -5s;
}

.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.16), transparent 62%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100dvh;
  padding: clamp(14px, 2vw, 30px);
  display: grid;
  place-items: center;
}

.hero-card {
  width: min(1180px, 100%);
  height: min(720px, calc(100dvh - clamp(28px, 4vw, 60px)));
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(18px, 2.4vw, 34px);
  padding: clamp(18px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 3vw, 40px);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.62));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.photo-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: clamp(22px, 2.4vw, 34px);
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.16), transparent 44%),
    rgba(15, 23, 42, 0.58);
  display: grid;
  place-items: center;
  padding: clamp(18px, 2.4vw, 30px);
  overflow: hidden;
}

.photo-panel::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--cyan), var(--violet), var(--blue), var(--cyan));
  filter: blur(34px);
  opacity: 0.26;
  animation: spin 10s linear infinite;
}

.photo-ring {
  position: relative;
  width: min(30vw, 310px);
  min-width: 210px;
  aspect-ratio: 1;
  border-radius: 42px;
  padding: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--blue));
  box-shadow: 0 28px 70px rgba(37, 99, 235, 0.32);
  animation: floatPhoto 5.5s ease-in-out infinite;
}

.profile-photo,
.photo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 34px;
}

.profile-photo {
  display: block;
  object-fit: cover;
  background: #0f172a;
  position: relative;
  z-index: 2;
}

.photo-fallback {
  position: absolute;
  inset: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #111827, #0f172a);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: -0.08em;
  z-index: 1;
}

.status-pill {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 2vw, 28px);
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 28px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.32);
  background: rgba(2, 6, 23, 0.72);
  color: #d1fae5;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 700;
  white-space: nowrap;
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.content-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.8vh, 20px);
}

.eyebrow {
  margin: 0;
  color: #bfdbfe;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(11px, 1.3vw, 13px);
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(35px, 5vw, 70px);
  line-height: 0.92;
  letter-spacing: -0.075em;
  background: linear-gradient(95deg, #fff 0%, #bfdbfe 34%, #67e8f9 68%, #c4b5fd 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientText 6s ease-in-out infinite alternate;
}

.summary {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(14px, 1.75vw, 19px);
  line-height: 1.55;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 12px);
}

.answer-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(12px, 1.5vw, 16px);
  background: rgba(15, 23, 42, 0.56);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.answer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(30, 41, 59, 0.72);
}

.answer-card span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.answer-card h2 {
  margin: 4px 0 4px;
  font-size: clamp(13px, 1.45vw, 17px);
  letter-spacing: -0.04em;
}

.answer-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: clamp(11px, 1.2vw, 13px);
}

.highlight-card {
  border-color: rgba(34, 211, 238, 0.38);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.64));
}

.links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 12px);
}

.link-btn {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(42px, 5.6vh, 52px);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.68);
  color: #e2e8f0;
  font-weight: 850;
  font-size: clamp(12px, 1.35vw, 15px);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.link-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.18);
}

.link-btn.primary {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border-color: transparent;
  color: white;
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: reveal 0.75s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes drift {
  to { transform: translate3d(8vw, 5vh, 0) scale(1.08); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes floatPhoto {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes gradientText {
  to { background-position: 100% center; }
}

@media (max-width: 900px) {
  .page-shell { padding: 12px; }

  .hero-card {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 14px;
    min-height: 0;
    height: calc(100dvh - 24px);
    padding: 14px;
    border-radius: 28px;
  }

  .photo-ring {
    width: min(32vw, 230px);
    min-width: 150px;
    border-radius: 32px;
  }

  .profile-photo,
  .photo-fallback { border-radius: 25px; }

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

@media (max-width: 680px) {
  .hero-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    text-align: center;
    align-items: center;
  }

  .photo-panel {
    min-height: 0;
    padding: 12px;
  }

  .photo-ring {
    width: min(42vw, 172px);
    min-width: 124px;
    border-radius: 28px;
  }

  .status-pill {
    display: none;
  }

  .content-panel {
    align-items: center;
    justify-content: start;
    gap: 10px;
  }

  h1 { font-size: clamp(31px, 9.5vw, 46px); }
  .summary { font-size: 13.5px; line-height: 1.42; }

  .answer-grid {
    width: 100%;
    gap: 8px;
  }

  .answer-card {
    padding: 10px;
    border-radius: 16px;
  }

  .answer-card p { font-size: 11px; }

  .links {
    width: 100%;
    gap: 8px;
  }

  .link-btn { height: 40px; }
}

@media (max-width: 390px), (max-height: 620px) {
  .hero-card { padding: 10px; gap: 8px; }
  .photo-ring { width: min(34vw, 130px); min-width: 104px; padding: 5px; }
  .profile-photo, .photo-fallback { border-radius: 22px; }
  .eyebrow { font-size: 10px; }
  h1 { font-size: clamp(26px, 8vw, 36px); }
  .summary { font-size: 12px; }
  .answer-card { padding: 8px; }
  .answer-card h2 { font-size: 12px; margin: 2px 0; }
  .answer-card p { font-size: 10px; line-height: 1.22; }
  .link-btn { height: 34px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
