*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

.scene {
  position: fixed;
  inset: 0;
  background: #f8f6f2;
  overflow: hidden;
}

/* Layer 1 — office illustration */
.bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url('images/light-mode-office-og.png') center / cover no-repeat;
}

.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/portrait_background.png') center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.7s ease;
}

/* Layer 2 — UI overlays */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Bio — centered within the white panel in the illustration */
.bio {
  position: absolute;
  left: 10%;
  top: 72%;
  width: 20%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
  /* single scaling knob: all children use em, so the whole block grows/shrinks together */
  font-size: clamp(8px, 1.8vw, 26px);
}

.bio-greeting {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.38em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.25em;
}

.bio-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.3em;
  font-weight: bold;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.35em;
}

.bio-tagline {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.5em;
  opacity: 0.75;
  margin-bottom: 1.4em;
}

.bio-social {
  display: flex;
  gap: 1.4em;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 0.3em;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
  color: #1a1a1a;
  text-decoration: none;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.social-link svg {
  /* em here is relative to .bio's font-size — scales with the whole block */
  width: 0.95em;
  height: 0.95em;
  display: block;
}

.social-link span {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.28em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.social-link:hover {
  opacity: 0.4;
}

/* ── Mobile / portrait ────────────────────────────────────── */
@media (max-width: 600px) {
  .bg::after        { opacity: 1; }

  .bio {
    left: 5%;
    top: auto;
    bottom: 7%;
    width: 88%;
    font-size: clamp(10px, 4.5vw, 22px);
  }

  .bio-social {
    gap: 1.8em;
  }
}
