/* =====================================================
   globe.css – Interactive 3D globe section
   ===================================================== */

/* ─────────────── GLOBE SECTION ─────────────── */
#globe-section {
  padding: var(--section-gap) 0 0;
  max-width: calc(var(--content-width) + 120px);
  margin: 0 auto;
  overflow: hidden;
}

#globe-section h2 {
  padding: 0 var(--content-pad);
  margin-bottom: 0.5rem;
}

#globe-subtitle {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--c-grey-4);
  text-align: center;
  text-transform: uppercase;
  padding: 0 var(--content-pad);
  margin-bottom: 1.5rem;
}

#globe-canvas {
  display: block;
  width: 100%;
  touch-action: none;
  cursor: grab;
}
#globe-canvas:active { cursor: grabbing; }

/* ─────────────── ABBU QUOTE ─────────────── */
#abbu-quote {
  text-align: center;
  padding: 1.5rem var(--content-pad) 0;
  margin-bottom: calc(var(--section-gap) * 0.6);
}

#abbu-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--c-grey-6);
  letter-spacing: 0.04em;
  line-height: 1.7;
  position: relative;
  display: inline-block;
  padding: 0 1.5rem;
}

#abbu-quote blockquote::before,
#abbu-quote blockquote::after {
  content: '"';
  font-size: 3rem;
  color: rgba(77,184,255,0.18);
  font-family: Georgia, serif;
  line-height: 0;
  position: absolute;
}
#abbu-quote blockquote::before { top: 0.6rem; left: -0.2rem; }
#abbu-quote blockquote::after  { bottom: -0.8rem; right: -0.2rem; }

#abbu-quote cite {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--c-grey-4);
  text-transform: uppercase;
  font-style: normal;
  margin-top: 0.8rem;
}

/* ─────────────── MEMORY CARD ─────────────── */
#globe-card {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background 0.4s var(--ease-smooth);
}
#globe-card.hidden  { display: none !important; }
#globe-card.visible {
  background: rgba(0,0,0,0.7);
  pointer-events: auto;
}

#globe-card-inner {
  width: 100%;
  max-width: 420px;
  background: var(--c-grey-2);
  border: 1px solid var(--c-grey-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.45s var(--ease-spring), opacity 0.35s var(--ease-smooth);
  box-shadow: 0 -8px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
}
#globe-card.visible #globe-card-inner {
  transform: translateY(0);
  opacity: 1;
}

#globe-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #0a0a1a;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

#globe-card-img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s var(--ease-smooth);
}
#globe-card.visible #globe-card-img { transform: scale(1.03); }

/* Scroll hint – shown briefly, only when the photo is taller than its frame */
#globe-card-img-wrap::after {
  content: '↕ scroll';
  position: absolute;
  bottom: 0.6rem;
  right: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.55);
  color: var(--c-grey-6);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
}
#globe-card-img-wrap.scrollable::after {
  animation: scrollHintFade 3.2s var(--ease-smooth) 0.6s forwards;
}
@keyframes scrollHintFade {
  0%   { opacity: 0; transform: translateY(4px); }
  15%  { opacity: 1; transform: translateY(0); }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}

#globe-card-body {
  padding: 1.2rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#globe-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

#globe-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

#globe-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--c-white);
  letter-spacing: 0.06em;
}

#globe-card-cap {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--c-grey-5);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

#globe-card-close {
  align-self: flex-end;
  margin-top: 0.4rem;
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--c-grey-3);
  color: var(--c-grey-5);
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  min-height: 40px;
  touch-action: manipulation;
  transition: color 0.2s, border-color 0.2s;
}
#globe-card-close:hover,
#globe-card-close:active {
  color: var(--c-white);
  border-color: var(--c-white);
}

@media (min-width: 480px) {
  #globe-card { align-items: center; padding: 2rem; }
  #globe-card-inner { border-radius: var(--radius-lg); }
}
