/* Human Page Styles */
.human-page {
  background: #10110f;
  min-height: 100vh;
}

.human-split {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: calc(100svh - 80px);
}

/* Left Visual Column with Circular Frame */
.human-visual-col {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(235, 68, 0, 0.09) 0%, rgba(10, 11, 9, 1) 75%);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px;
}

.circular-stage {
  position: sticky;
  top: max(85px, calc(50svh - 240px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 440px;
}

/* Subtle glowing aura behind portrait */
.portrait-glow-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: clamp(240px, 26vw, 360px);
  height: clamp(240px, 26vw, 360px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 68, 0, 0.22) 0%, rgba(235, 68, 0, 0.05) 55%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

/* Outer Orbit Ring */
.portrait-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: calc(clamp(240px, 26vw, 360px) + 32px);
  height: calc(clamp(240px, 26vw, 360px) + 32px);
  border-radius: 50%;
  border: 1px dashed rgba(242, 230, 189, 0.16);
  pointer-events: none;
  z-index: 1;
  animation: orbitSpin 120s linear infinite;
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -55%) rotate(0deg); }
  to { transform: translate(-50%, -55%) rotate(360deg); }
}

/* Portrait 2.5D Depth Card Container */
.portrait-depth-card {
  position: relative;
  z-index: 2;
  width: clamp(260px, 28vw, 390px);
  aspect-ratio: 1 / 1;
  perspective: 1000px;
  transform-style: preserve-3d;
  cursor: grab;
}

.portrait-depth-card:active {
  cursor: grabbing;
}

/* Circular Background Frame Rim (passes behind the extended peace hands) */
.circular-frame-rim {
  position: absolute;
  top: 7.2%;
  left: 7.2%;
  width: 85.6%;
  height: 85.6%;
  border-radius: 50%;
  border: 3px solid rgba(242, 230, 189, 0.32);
  background: radial-gradient(circle at 50% 50%, #171815 0%, #090a08 85%);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.88),
    0 0 45px rgba(235, 68, 0, 0.22),
    inset 0 0 25px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 1;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.3s ease, box-shadow 0.4s ease;
}

.portrait-depth-card:hover .circular-frame-rim {
  border-color: var(--orange);
  box-shadow: 
    0 30px 75px rgba(0, 0, 0, 0.92),
    0 0 55px rgba(235, 68, 0, 0.4),
    inset 0 0 25px rgba(0, 0, 0, 0.9);
}

/* Circular Portrait Frame (overflow: visible so hands pop forward past the circular rim!) */
.circular-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-style: preserve-3d;
  will-change: transform;
}

/* WebGL Depth Canvas */
.depth-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  will-change: transform;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.85));
}

/* Fallback image when WebGL is active */
.depth-active .fallback-picture {
  display: none;
}

.fallback-picture {
  width: 100%;
  height: 100%;
  display: block;
}

.circular-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.85));
}

/* Depth Toggle Button (like the GUI on reference monitor) */
.depth-toggle-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(18, 19, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(242, 230, 189, 0.22);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--nunito);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateZ(52px);
}

.depth-toggle-btn:hover {
  background: rgba(235, 68, 0, 0.92);
  border-color: var(--orange);
  color: #fff;
  transform: translateZ(56px) scale(1.05);
  box-shadow: 0 6px 22px rgba(235, 68, 0, 0.45);
}

.depth-btn-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(242, 230, 189, 0.4);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.depth-toggle-btn[aria-pressed="true"] {
  background: rgba(235, 68, 0, 0.92);
  border-color: var(--orange);
  color: #fff;
}

.depth-toggle-btn[aria-pressed="true"] .depth-btn-indicator {
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

/* Portrait Badge Pill */
.portrait-badge {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(18, 19, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(242, 230, 189, 0.18);
  border-radius: 100px;
  padding: 8px 18px;
  font-family: var(--nunito);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* Right Text Column */
.human-text-col {
  padding: 70px max(28px, 9%) 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio-content {
  max-width: 620px;
}

.bio-heading {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.2vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.bio-heading em {
  color: var(--orange);
}

.bio-paragraphs {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--sans);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
}

.lead-p {
  font-size: 1.22rem;
  color: var(--cream);
}

.lead-p strong {
  color: #fff4ca;
}

.punchline-p {
  color: var(--orange);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.3;
}

/* Facts Card */
.facts-card {
  margin-top: 40px;
  background: rgba(28, 29, 27, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fact-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 0.95rem;
}

.fact-num {
  font-family: var(--nunito);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.05em;
}

.fact-item p {
  color: var(--cream);
  line-height: 1.45;
}

.fact-item strong {
  color: #fff6da;
}

/* Actions */
.bio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 900px) {
  .human-split {
    grid-template-columns: 1fr;
  }
  .human-visual-col {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 60px 20px 40px;
    min-height: auto;
  }
  .circular-stage {
    position: relative;
    top: 0;
    gap: 20px;
  }
  .circular-frame {
    width: 250px;
  }
  .portrait-orbit-ring {
    width: 284px;
    height: 284px;
  }
  .portrait-glow-aura {
    width: 250px;
    height: 250px;
  }
  .human-text-col {
    padding: 50px 24px 70px;
  }
}
