/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:            #0e0820;
  --surface:       rgba(255,255,255,0.04);
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(255,255,255,0.15);
  --text:          #f0ecfa;
  --text-muted:    rgba(240,236,250,0.52);
  --text-dim:      rgba(240,236,250,0.35);
  --accent:        #a78bfa;
  --btn-bg:        #7c3aed;
  --btn-hover:     #6d28d9;
  --radius-lg:     22px;
  --radius-sm:     10px;
  --transition:    0.25s ease;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Ambient glow orbs ── */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.22) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: drift1 20s ease-in-out infinite alternate;
}
.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.15) 0%, transparent 70%);
  bottom: 20%; right: -100px;
  animation: drift2 25s ease-in-out infinite alternate;
}
.glow-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(109,40,217,0.18) 0%, transparent 70%);
  top: 60%; left: 5%;
  animation: drift1 30s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 {
  from { transform: translate(0,0); }
  to   { transform: translate(70px, 90px); }
}
@keyframes drift2 {
  from { transform: translate(0,0); }
  to   { transform: translate(-60px,-70px); }
}

/* ── Card ── */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  display: grid;
  grid-template-columns: 280px 1fr;
  width: min(760px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55);
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) both;
}

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

/* Photo column */
.photo-col {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #2d1b6e 0%, #130a30 100%);
  min-height: 340px;
}
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
}

/* Info column */
.info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.5;
}

.name {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--text);
  margin-top: -0.5rem;
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.2rem;
  transition: background var(--transition), box-shadow var(--transition),
              transform var(--transition), border-color var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: var(--btn-bg);
  color: #fff;
  border-color: var(--btn-bg);
  box-shadow: 0 4px 20px rgba(124,58,237,0.38);
}
.btn-primary:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  box-shadow: 0 6px 28px rgba(124,58,237,0.6);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* Location */
.location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  body { overflow: auto; align-items: stretch; }

  .wrap { padding: 0; }

  /* Stack photo and info into the same grid cell so info overlays the photo */
  .card {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    border-radius: 0;
    box-shadow: none;
    min-height: 100dvh;
    position: relative;
  }

  /* Photo fills the full card as a background */
  .photo-col {
    grid-area: 1 / 1;
    min-height: 100dvh;
    position: relative;
  }
  .photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 8%;
    mask-image: none;
    -webkit-mask-image: none;
  }
  /* Gradient fade from transparent at top to dark at bottom */
  .photo-col::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(14,8,32,0.05) 25%,
      rgba(14,8,32,0.65) 62%,
      rgba(14,8,32,0.97) 85%
    );
  }

  /* Info sits at the bottom, above the gradient */
  .info-col {
    grid-area: 1 / 1;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.25rem;
    padding: 2rem 1.5rem 2.5rem;
  }

  .actions { flex-direction: column; }
  .btn { justify-content: center; }

  .glow { display: none; }
}
