/* ==========================================================================
   GLYPH PORTAL — SCROLL-DRIVEN CAMERA THROUGH LIVE TYPE
   Clean, Responsive & Accessible Details Portal
   ========================================================================== */
.glyph-portal-section {
  --gp-paper: #FFFFFF;
  --gp-ink: #0F172A;
  --gp-field: #0F172A;
  --gp-foreground: #F8FAFC;
  position: relative;
  isolation: isolate;
  background: var(--gp-paper);
  color: var(--gp-ink);
  font-family: var(--font-sans, Arial, sans-serif);
  min-height: calc(var(--gp-length, 2.2) * var(--gp-height, 100vh));
}

.glyph-portal-section [data-gp-pin] {
  position: sticky;
  top: 0;
  height: var(--gp-height, 100vh);
  overflow: clip;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.glyph-portal-section [data-gp-field] {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #1E293B 0%, #0F172A 70%, #0B1120 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.glyph-portal-section[data-gp-ready] [data-gp-field] {
  opacity: 1;
}

.glyph-portal-section [data-gp-art] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.glyph-portal-section .gp-glyph {
  font-family: 'Syne', 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 100px;
  fill: #0F172A;
  letter-spacing: -0.01em;
}

/* Foreground Header and Swipe Down Indicator */
.glyph-portal-section [data-gp-front] {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 5.5rem 1.5rem 2rem; /* Clear floating pill nav */
  pointer-events: none;
  opacity: var(--gp-caption, 1);
  transition: opacity 0.2s ease;
  z-index: 10;
}

.gp-portal-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  max-width: 600px;
}

.gp-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563EB;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.gp-portal-eyebrow {
  font-family: var(--font-tech, 'Syne', sans-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.gp-portal-sub {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.4;
}

/* ==========================================================================
   UNMISSABLE SWIPE DOWN INDICATOR
   ========================================================================== */
.gp-swipe-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  pointer-events: auto;
  margin-bottom: 0.5rem;
}

.gp-swipe-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.35rem 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1.5px solid #CBD5E1;
  border-radius: 9999px;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gp-swipe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.18);
  border-color: #2563EB;
}

/* Animated Mouse Icon with Scrolling Wheel */
.gp-mouse-icon {
  width: 22px;
  height: 34px;
  border: 2px solid #0F172A;
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.gp-mouse-wheel {
  width: 3px;
  height: 6px;
  background: #2563EB;
  border-radius: 2px;
  animation: mouseScroll 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes mouseScroll {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  80% {
    opacity: 1;
    transform: translateY(12px);
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

.gp-swipe-text-box {
  display: flex;
  flex-direction: column;
}

.gp-swipe-headline {
  font-family: var(--font-tech, 'Syne', sans-serif);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gp-swipe-chevron {
  display: inline-block;
  color: #2563EB;
  font-size: 0.95rem;
  animation: bounceChevron 1.6s ease-in-out infinite;
}

@keyframes bounceChevron {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(4px); }
}

.gp-swipe-tagline {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 500;
}

/* Secondary Quick Jump Button */
.gp-enter-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: #0F172A;
  color: #FFFFFF !important;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: all 0.2s ease;
}

.gp-enter-link:hover {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   REVEALED DETAILS CONTENT (Inside the dark letter scene)
   ========================================================================== */
.glyph-portal-section [data-gp-content] {
  position: absolute;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6.5rem 1.5rem 3.5rem; /* Clear top floating pill nav */
  box-sizing: border-box;
  color: #FFFFFF !important;
  opacity: var(--gp-reveal, 0);
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.glyph-portal-section[data-gp-entered="true"] [data-gp-content] {
  pointer-events: auto;
}

.glyph-portal-section [data-gp-content] .container {
  width: 100%;
  max-width: 1140px;
  margin: auto 0;
  padding: 1rem 0;
}

.glyph-portal-section [data-gp-content] .section-header {
  margin-bottom: 2rem !important;
  text-align: center;
}

.glyph-portal-section [data-gp-content] .section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: #60A5FA !important;
  background: rgba(96, 165, 250, 0.12);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.glyph-portal-section [data-gp-content] .section-title {
  font-family: var(--font-tech, 'Syne', sans-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.35rem) !important;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #FFFFFF !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.glyph-portal-section [data-gp-content] .section-subtitle {
  font-size: 0.95rem;
  color: #94A3B8 !important;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

.glyph-portal-section [data-gp-content] .contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.glyph-portal-section [data-gp-content] .contact-cards-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.glyph-portal-section [data-gp-content] .contact-info-card {
  padding: 1.25rem 1.25rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.glyph-portal-section [data-gp-content] .contact-info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.4);
}

.glyph-portal-section [data-gp-content] .contact-card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.75rem;
  background: rgba(37, 99, 235, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.glyph-portal-section [data-gp-content] .contact-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8 !important;
  margin-bottom: 4px;
}

.glyph-portal-section [data-gp-content] .contact-card-value,
.glyph-portal-section [data-gp-content] .contact-card-value a {
  font-family: var(--font-tech, 'Syne', sans-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: #FFFFFF !important;
  letter-spacing: 0.01em;
}

.glyph-portal-section [data-gp-content] .contact-card-sub {
  font-size: 0.8125rem;
  color: #CBD5E1 !important;
  margin-top: 6px;
  line-height: 1.4;
}

.glyph-portal-section [data-gp-content] .contact-card-sub a {
  color: #22C55E !important;
}

.glyph-portal-section [data-gp-content] .contact-map-column {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  color: #FFFFFF !important;
}

.glyph-portal-section [data-gp-content] .contact-map-column h3,
.glyph-portal-section [data-gp-content] .contact-map-column p {
  color: #FFFFFF !important;
}

.glyph-portal-section [data-gp-content] .map-placeholder-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 1.5rem 1.25rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 1rem;
  color: #FFFFFF !important;
}

.glyph-portal-section [data-gp-content] .map-placeholder-text {
  color: #CBD5E1 !important;
  opacity: 0.95;
}

@media (max-width: 992px) {
  .glyph-portal-section [data-gp-content] .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .glyph-portal-section [data-gp-front] {
    padding-top: 5rem;
  }
  .gp-portal-eyebrow {
    font-size: 1.1rem;
  }
  .gp-swipe-card {
    padding: 0.5rem 1rem;
  }
  .glyph-portal-section [data-gp-content] {
    padding: 5.5rem 1rem 2.5rem;
  }
  .glyph-portal-section [data-gp-content] .contact-cards-column {
    grid-template-columns: 1fr;
  }
}
