/* ===== Hero: profile + orbiting keywords ===== */
.about-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--space-xl) var(--space-md);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-hair) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: gridDrift 18s linear infinite;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 75%);
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 44px 44px; }
}

.profile-orbit-wrap {
  position: relative;
  width: 460px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.profile-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,184,77,0.18), transparent 70%);
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

.profile-photo {
  position: relative;
  width: 200px;
  height: 200px;
  object-fit: contain;
  z-index: 2;
  animation: floatPhoto 5s ease-in-out infinite, fadeInPhoto 1s ease-out;
}
@keyframes floatPhoto {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes fadeInPhoto {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 8 fixed slots evenly spaced in a wide ring — safely outside the photo */
.orbit-keyword {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border-hair);
  border-radius: 20px;
  background: rgba(10,14,23,0.75);
  backdrop-filter: blur(4px);
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.orbit-keyword.visible { opacity: 1; }
.orbit-keyword.group-research { color: var(--accent-gold); border-color: rgba(255,184,77,0.3); }
.orbit-keyword.group-personal { color: var(--accent-teal); border-color: rgba(94,234,212,0.3); }

/* 8 positions in a circle, radius 44% from center — never overlaps the photo */
.orbit-keyword[data-slot="0"] { top: 6%;    left: 50%; }
.orbit-keyword[data-slot="1"] { top: 18.9%; left: 81.1%; }
.orbit-keyword[data-slot="2"] { top: 50%;   left: 94%; }
.orbit-keyword[data-slot="3"] { top: 81.1%; left: 81.1%; }
.orbit-keyword[data-slot="4"] { top: 94%;   left: 50%; }
.orbit-keyword[data-slot="5"] { top: 81.1%; left: 18.9%; }
.orbit-keyword[data-slot="6"] { top: 50%;   left: 6%; }
.orbit-keyword[data-slot="7"] { top: 18.9%; left: 18.9%; }


@media (max-width: 700px) {
  .profile-orbit-wrap { width: 300px; height: 300px; }
  .profile-photo { width: 140px; height: 140px; }
  .orbit-keyword { font-size: 0.65rem; padding: 0.25rem 0.6rem; }
}

@keyframes fadeKeyword {
  0%, 5%   { opacity: 0; transform: translateY(6px) scale(0.95); }
  10%, 40% { opacity: 1; transform: translateY(0) scale(1); }
  48%, 100% { opacity: 0; transform: translateY(-6px) scale(0.95); }
}

.profile-name { font-size: 1.6rem; margin-top: var(--space-sm); }
.profile-title { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85rem; margin-top: 0.3rem; }

/* ===== Author's Note ===== */
.authors-note {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}
.authors-note h2 {
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
  text-align: center;
}
.note-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
  margin-bottom: var(--space-md);
}

/* ===== Gallery ===== */
.gallery-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}
.gallery-section h2 { font-size: 1.6rem; margin-bottom: var(--space-md); text-align: center; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.gallery-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: none;
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-card:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,23,0.9), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 { color: #fff; font-size: 0.95rem; }
.gallery-overlay p { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.2rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,14,23,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: var(--space-md);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 75vh; border-radius: 8px; }
.lightbox-caption { text-align: center; margin-top: var(--space-md); max-width: 600px; }
.lightbox-caption h3 { color: #fff; margin-bottom: 0.3rem; }
.lightbox-caption p { color: var(--text-muted); font-size: 0.9rem; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: 1px solid var(--border-hair);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ===== Quotes (shared visual language) ===== */
.quote-section {
  max-width: 800px;
  margin: var(--space-xl) auto;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}
.quote-mark { font-family: var(--font-heading); font-size: 3rem; color: var(--accent-gold); display: block; margin-bottom: 1rem; line-height: 0.5; }
.quote-text { font-size: 1.3rem; min-height: 3.5rem; margin-bottom: 0.8rem; }
.quote-author { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.typing-cursor { display: inline-block; color: var(--accent-gold); animation: blink 0.9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===== Join Me ===== */
.join-me-section {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}
.join-me-section h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.join-me-section > p { color: var(--text-muted); margin-bottom: var(--space-md); }

.social-icons-row { display: flex; justify-content: center; gap: 1rem; margin-bottom: var(--space-lg); }
.social-icon-btn {
  width: 46px; height: 46px;
  border: 1px solid var(--border-hair);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.social-icon-btn:hover {
  color: var(--bg-deep);
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

.page-newsletter-form { display: flex; gap: 0.6rem; }
.page-newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-hair);
  border-radius: 4px;
  color: var(--text-main);
}
.page-newsletter-form input:focus { outline: none; border-color: var(--accent-gold); }
.page-newsletter-form button {
  padding: 0.8rem 1.4rem;
  background: var(--accent-gold);
  border: none;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
}
.hp-field { position: absolute; left: -9999px; }
.newsletter-msg { font-size: 0.85rem; margin-top: 0.6rem; color: var(--accent-teal); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .profile-orbit-wrap { width: 240px; height: 240px; }
  .profile-photo { width: 170px; height: 170px; }

  /* On mobile, orbiting keywords get too cramped — collapse to a simpler flow list below the photo instead */
  .orbit-keyword {
    position: static;
    display: inline-block;
    opacity: 1;
    animation: none;
    margin: 4px;
    transform: none !important;
  }
  .profile-orbit-wrap {
    flex-wrap: wrap;
    height: auto;
    padding-top: 260px; /* clears space for photo which is positioned via order below */
  }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .page-newsletter-form { flex-direction: column; }
}