/* Home page: hero with the decorative globe. Loaded after site.css. */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 56px;
  overflow: hidden;
}

#globe-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform, opacity;
}

/* Shown only if WebGL or the globe script fails. All text stays readable. */
.globe-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.globe-fallback::before {
  content: '';
  width: min(400px, 80vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}
.no-hero-globe #globe-canvas { display: none; }
.no-hero-globe .globe-fallback { display: flex; }

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  text-align: center;
  /* Keeps text readable where it crosses the globe's lines. */
  text-shadow: 0 0 14px #000, 0 0 28px rgba(0, 0, 0, 0.9);
}

.hero-photo-wrap {
  width: clamp(140px, 24vh, 280px);
  aspect-ratio: 42 / 52;
  margin-bottom: 20px;
}
.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.1) brightness(0.85);
  /* Soft dissolve on all four edges so the portrait melts into the globe. */
  -webkit-mask-image:
    radial-gradient(ellipse 62% 70% at 50% 42%, #000 45%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.15) 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in, source-in;
  mask-image:
    radial-gradient(ellipse 62% 70% at 50% 42%, #000 45%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.15) 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect, intersect;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 5.5rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
}

.hero-badge {
  margin-top: 16px;
  color: #c4c4c4;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  line-height: 1.7;
  text-transform: uppercase;
}

.hero-hook {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-wrap: balance;
  text-shadow: 0 0 60px rgba(160, 0, 0, 0.4);
}

.hero-support {
  max-width: 56ch;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-availability {
  margin-top: 22px;
  color: var(--green);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.hero-availability::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}

/* Short screens: tighten spacing so the whole intro stays together. */
@media (max-height: 820px) {
  .hero-hook { margin-top: 14px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
  .hero-support { margin-top: 10px; }
  .hero-actions { margin-top: 20px; }
  .hero-availability { margin-top: 16px; }
}

@media (max-width: 640px) {
  .hero-photo-wrap { width: clamp(130px, 22vh, 170px); margin-bottom: 14px; }
  .hero-name { font-size: 3rem; }
  .hero-badge { font-size: 0.68rem; letter-spacing: 0.14em; }
  .hero-hook { font-size: 1.9rem; }
  .hero-support { font-size: 0.95rem; }
  .hero-actions .btn { padding: 11px 22px; font-size: 1.05rem; }
}

.hero-content .btn { text-shadow: none; }

/* Brief personal context on the home page */
.about-brief .prose { margin-bottom: 28px; }
