/* ==========================================================================
   1. GLOBAL VARIABLES, RESET & CORE BASE
   ========================================================================== */
:root {
  --ed-h1-bg-dark: #0a1424;
  --ed-h1-teal-primary: #14b8a6;
  --ed-h1-teal-glow: rgba(20, 184, 166, 0.15);
  --ed-h1-gold-accent: #f59e0b;
  --ed-h1-text-light: #f8fafc;
  --ed-h1-text-muted: #94a3b8;
  --ed-h1-glass-bg: rgba(255, 255, 255, 0.02);
  --ed-h1-glass-border: rgba(255, 255, 255, 0.07);
  --ed-h1-font-title: "Cinzel", serif;
  --ed-h1-font-body: "Plus Jakarta Sans", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--ed-h1-bg-dark);
  font-family: var(--ed-h1-font-body);
  color: var(--ed-h1-text-light);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.ed-h1-reveal-el {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-h1-reveal-el.ed-h1-visible {
  opacity: 1;
  transform: translateY(0);
}

.ed-h1-ambient-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}
.ed-h1-glow-1 {
  top: -10%;
  left: -10%;
  background: var(--ed-h1-teal-glow);
}
.ed-h1-glow-2 {
  top: 20%;
  right: -10%;
  background: rgba(245, 158, 11, 0.06);
}

/* ==========================================================================
   2. HEADER DOCK NAVIGATION SYSTEM & MOBILE HAMBURGER OVERLAY
   ========================================================================== */
#ed-h1-header-dock {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  background: var(--ed-h1-glass-bg);
  border: 1px solid var(--ed-h1-glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 100px;
  padding: 14px 32px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.ed-h1-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ed-h1-nav-logo {
  font-family: var(--ed-h1-font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ed-h1-text-light);
  text-decoration: none;
  letter-spacing: 2px;
}

.ed-h1-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ed-h1-link {
  color: var(--ed-h1-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.ed-h1-link:hover,
.ed-h1-link.active {
  color: var(--ed-h1-teal-primary);
}

.ed-h1-btn-cta {
  background: linear-gradient(135deg, var(--ed-h1-teal-primary), #0d9488);
  color: var(--ed-h1-bg-dark);
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.ed-h1-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
}

/* Close button is injected by JS into .ed-h1-nav-links for the mobile
   overlay only — hide it entirely on larger screens so it never appears
   inline next to the desktop nav links. */
.ed-nav-close-btn {
  display: none;
}

/* HAMBURGER TOGGLE BUTTON */
.ed-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ed-h1-glass-border);
  border-radius: 12px;
  cursor: pointer;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 1100;
}

.ed-nav-toggle:hover {
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.3);
}

/* Works for both <span> children and .ed-nav-toggle-line class */
.ed-nav-toggle span,
.ed-nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ed-h1-text-light);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s ease;
  will-change: transform, opacity;
  pointer-events: none;
}

.ed-nav-toggle.active span:nth-child(1),
.ed-nav-toggle.active .ed-nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--ed-h1-teal-primary);
}
.ed-nav-toggle.active span:nth-child(2),
.ed-nav-toggle.active .ed-nav-toggle-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.ed-nav-toggle.active span:nth-child(3),
.ed-nav-toggle.active .ed-nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--ed-h1-teal-primary);
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
#ed-h1-hero-section {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.577),
      rgba(0, 0, 0, 0.751),
      rgba(0, 0, 0, 0.562)
    ),
    url(/images/edanso.profile.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px 24px;
}

.ed-h1-hero-wrapper {
  max-width: 850px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ed-h1-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ed-h1-text-muted);
  margin-bottom: 28px;
}

.ed-h1-badge-pulse {
  width: 6px;
  height: 6px;
  background-color: var(--ed-h1-teal-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7);
  animation: ed-h1-pulse 2s infinite;
}

@keyframes ed-h1-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(20, 184, 166, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
  }
}

.ed-h1-main-title {
  font-family: var(--ed-h1-font-title);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
}

.ed-h1-gradient-text {
  background: linear-gradient(
    to right,
    #ffffff,
    var(--ed-h1-teal-primary),
    #ffffff
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ed-h1-manifesto-card {
  background: var(--ed-h1-glass-bg);
  border: 1px solid var(--ed-h1-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 48px;
  text-align: left;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
}

.ed-h1-card-accent-line {
  position: absolute;
  top: 0;
  left: 48px;
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--ed-h1-teal-primary),
    var(--ed-h1-gold-accent)
  );
}

.ed-h1-manifesto-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ed-h1-text-muted);
  font-weight: 300;
  margin-bottom: 32px;
}

.ed-h1-manifesto-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
}

.ed-h1-highlight-quote {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ed-h1-text-light);
  font-weight: 600;
  border-left: 3px solid var(--ed-h1-gold-accent);
  padding-left: 16px;
  margin-bottom: 24px;
}

.ed-h1-author-signature {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ed-h1-author-name {
  font-family: var(--ed-h1-font-title);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ed-h1-text-light);
}

.ed-h1-author-title {
  font-size: 0.8rem;
  color: var(--ed-h1-teal-primary);
  margin-top: 4px;
  font-weight: 600;
}

.ed-h1-action-group {
  display: flex;
  gap: 20px;
}

.ed-h1-btn-primary {
  background: transparent;
  border: 1px solid var(--ed-h1-teal-primary);
  color: var(--ed-h1-text-light);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.ed-h1-btn-primary:hover {
  background: var(--ed-h1-teal-primary);
  color: var(--ed-h1-bg-dark);
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
}

.ed-h1-btn-secondary {
  background: rgba(255, 255, 255, 0.365);
  border: 1px solid var(--ed-h1-glass-border);
  color: black;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.ed-h1-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ed-h1-text-light);
}

/* ==========================================================================
   4a. MAIN SECTION — PHASE 2: MEDICAL MATRIX
   ========================================================================== */
.ed-h2-reveal-el {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.ed-h2-reveal-el.ed-h2-visible {
  opacity: 1;
  transform: translateY(0);
}

#ed-h2-matrix-section {
  padding: 100px 24px;
  position: relative;
  background-color: #0303036b;
  display: flex;
  justify-content: center;
}

.ed-h2-matrix-wrapper {
  max-width: 1200px;
  width: 100%;
}

.ed-h2-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.ed-h2-section-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ed-h1-teal-primary);
  display: block;
  margin-bottom: 12px;
}

.ed-h2-section-title {
  font-family: var(--ed-h1-font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  line-height: 1.3;
}

.ed-h2-gradient-text {
  background: linear-gradient(to right, #ffffff, var(--ed-h1-teal-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ed-h2-section-desc {
  color: var(--ed-h1-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
}

.ed-h2-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 50px;
}

.ed-h2-matrix-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.ed-h2-matrix-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 184, 166, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ed-h2-card-glow {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
  opacity: 0.3;
}
.ed-h2-western-card .ed-h2-card-glow {
  background: rgba(148, 163, 184, 0.1);
}
.ed-h2-regenerative-card .ed-h2-card-glow {
  background: rgba(20, 184, 166, 0.15);
}
.ed-h2-matrix-card:hover .ed-h2-card-glow {
  opacity: 0.6;
}

.ed-h2-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.ed-h2-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ed-h1-text-light);
}
.ed-h2-regenerative-card .ed-h2-icon-wrap {
  color: var(--ed-h1-teal-primary);
  background: rgba(20, 184, 166, 0.05);
  border-color: rgba(20, 184, 166, 0.15);
}

.ed-h2-card-header h3 {
  font-family: var(--ed-h1-font-title);
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.ed-h2-card-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ed-h1-text-light);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.ed-h2-card-list {
  list-style: none;
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}

.ed-h2-card-list li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ed-h1-text-muted);
  margin-bottom: 16px;
  padding-left: 20px;
  position: relative;
}

.ed-h2-card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.2rem;
  top: -2px;
}
.ed-h2-regenerative-card .ed-h2-card-list li::before {
  color: var(--ed-h1-teal-primary);
}

.ed-h2-card-footer-quote {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ed-h1-text-muted);
  position: relative;
  z-index: 1;
}

.ed-h2-summary-callout {
  background: linear-gradient(
    90deg,
    rgba(20, 184, 166, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  border-left: 3px solid var(--ed-h1-teal-primary);
  padding: 24px 32px;
  border-radius: 0 16px 16px 0;
}

.ed-h2-summary-callout p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ed-h1-text-light);
}

/* ==========================================================================
   4b. MAIN SECTION — PHASE 5: IMPACT PILLARS & METRICS
   ========================================================================== */
.ed-h5-reveal-el {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.ed-h5-reveal-el.ed-h5-visible {
  opacity: 1;
  transform: translateY(0);
}

#ed-h5-impact-section {
  padding: 100px 24px;
  position: relative;
  background-color: var(--ed-h1-bg-dark);
}

.ed-h5-impact-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.ed-h5-section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 72px auto;
}

.ed-h5-section-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ed-h1-teal-primary);
  display: block;
  margin-bottom: 12px;
}

.ed-h5-section-title {
  font-family: var(--ed-h1-font-title);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}

.ed-h5-gradient-text {
  background: linear-gradient(to right, #ffffff, var(--ed-h1-teal-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ed-h5-section-desc {
  color: var(--ed-h1-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}

.ed-h5-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.ed-h5-pillar-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-h5-pillar-item:hover {
  border-color: rgba(20, 184, 166, 0.2);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-4px);
}

.ed-h5-badge-num {
  font-family: var(--ed-h1-font-title);
  font-size: 1.2rem;
  color: var(--ed-h1-gold-accent);
  margin-bottom: 20px;
  font-weight: 700;
}

.ed-h5-pillar-item h3 {
  font-family: var(--ed-h1-font-title);
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--ed-h1-text-light);
}

.ed-h5-pillar-item p {
  color: var(--ed-h1-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}

.ed-h5-metrics-dashboard {
  background: var(--ed-h1-glass-bg);
  border: 1px solid var(--ed-h1-glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
}

.ed-h5-metric-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ed-h5-number {
  font-family: var(--ed-h1-font-title);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--ed-h1-text-light);
  font-weight: 700;
}

.ed-h5-label {
  font-size: 0.85rem;
  color: var(--ed-h1-text-muted);
  letter-spacing: 0.5px;
  font-weight: 400;
}

.ed-h5-metric-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--ed-h1-glass-border),
    transparent
  );
}

/* ==========================================================================
   5. GLOBAL MASONRY GALLERY COMPONENT
   ========================================================================== */
.ed-gallery-section {
  padding: 100px 24px;
  background-color: var(--ed-h1-bg-dark);
  position: relative;
}

.ed-gallery-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.ed-gallery-center-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 64px auto;
}

.ed-gallery-pretitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--ed-h1-teal-primary);
  display: block;
  margin-bottom: 12px;
}

.ed-gallery-main-heading {
  font-family: var(--ed-h1-font-title);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 20px;
  color: var(--ed-h1-text-light);
}

.ed-gallery-gradient {
  background: linear-gradient(to right, #ffffff, var(--ed-h1-teal-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ed-gallery-section-desc {
  color: var(--ed-h1-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}

.ed-gallery-masonry-grid {
  column-count: 3;
  column-gap: 24px;
  width: 100%;
}

.ed-gallery-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 24px;
  break-inside: avoid;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.ed-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-gallery-item-hover {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.ed-gallery-item-hover span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ed-h1-text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.2);
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-gallery-item:hover img {
  transform: scale(1.04);
}

.ed-gallery-item:hover .ed-gallery-item-hover {
  opacity: 1;
}

.ed-gallery-item:hover .ed-gallery-item-hover span {
  transform: translateY(0);
}

.ed-gallery-reveal-el {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.ed-gallery-reveal-el.ed-gallery-visible {
  opacity: 1;
  transform: translateY(0);
}

.ed-glass-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.ed-glass-modal.active {
  opacity: 1;
  pointer-events: all;
}

.ed-modal-content-wrapper {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ed-modal-glass-frame {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 16px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-glass-modal.active .ed-modal-glass-frame {
  transform: scale(1);
}

.ed-modal-glass-frame img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  object-fit: contain;
}

.ed-modal-caption-text {
  color: var(--ed-h1-text-muted);
  font-size: 0.95rem;
  font-weight: 300;
  text-align: center;
  max-width: 600px;
  line-height: 1.5;
}

.ed-modal-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ed-h1-text-light);
  font-size: 2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.3s ease;
}

.ed-modal-close:hover {
  background: var(--ed-h1-teal-primary);
  color: #ffffff;
  transform: rotate(90deg);
}

/* ==========================================================================
   6. GLOBAL GLASSMORPHIC FOOTER
   ========================================================================== */
#ed-global-footer {
  position: relative;
  width: 100%;
  background-color: #0b0f19;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 80px 0 0 0;
  overflow: hidden;
}

.ed-footer-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(20, 184, 165, 0.043) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

.ed-footer-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 60px 24px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  position: relative;
  z-index: 2;
}

.ed-footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ed-footer-logo {
  font-family: var(--ed-h1-font-title, "Cinzel", serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-decoration: none;
}

.ed-footer-manifesto {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  font-style: italic;
  font-weight: 300;
}

.ed-footer-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #c5a059;
  text-transform: uppercase;
}

.ed-footer-links-col h4 {
  font-family: var(--ed-h1-font-title, "Cinzel", serif);
  font-size: 0.9rem;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 24px;
  font-weight: 600;
}

.ed-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ed-footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 300;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  display: inline-block;
}

.ed-footer-links a:hover {
  color: #14b8a6;
  transform: translateX(4px);
}

.ed-footer-utility-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(0, 0, 0, 0.2);
  padding: 24px 0;
  position: relative;
  z-index: 2;
}

.ed-footer-utility-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ed-footer-utility-container p {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 300;
}

.ed-footer-dev-signature {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.75rem !important;
}

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES — ALL BREAKPOINTS
   ========================================================================== */

/* Header & Hamburger Nav */
@media (max-width: 768px) {
  #ed-h1-header-dock {
    padding: 12px 20px;
    border-radius: 20px;
  }

  /* Remove the rogue padding that was pushing the toggle button off-center */
  .ed-h1-nav-container {
    padding-right: 0;
  }

  .ed-nav-toggle {
    display: flex;
  }

  /* ── Full-screen white mobile nav overlay ──
     NOTE: #ed-h1-header-dock has `transform: translateX(-50%)`, which makes
     it the containing block for any `position: fixed` descendants. Using
     `inset: 0` here would size/position this overlay relative to the small
     header pill instead of the viewport. We instead use 100vw/100vh sized
     from the header dock's own centered containing block (which shares the
     viewport's horizontal center) and a top offset that cancels the dock's
     24px offset, so the overlay reliably covers the entire screen. */
  .ed-h1-nav-links {
    position: fixed;
    top: -24px;
    left: 50%;
    transform: translateX(-50%) scale(0.97) translateY(-8px);
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .ed-h1-nav-links.is-open {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) scale(1) translateY(0);
  }

  /* Brand watermark at top of overlay */
  .ed-h1-nav-links::before {
    content: "DR. EDWARD DANSO";
    font-family: var(--ed-h1-font-title);
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: rgba(10, 20, 36, 0.12);
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  /* Decorative teal glow orb in the center background */
  .ed-h1-nav-links::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 65%);
    pointer-events: none;
  }

  /* Each nav link item — stacked, perfectly centered */
  .ed-h1-nav-links .ed-h1-link {
    font-family: var(--ed-h1-font-title);
    font-size: 1.75rem;
    letter-spacing: 2px;
    color: rgba(10, 20, 36, 0.75);
    text-align: center;
    padding: 22px 48px;
    width: 100%;
    max-width: 420px;
    display: block;
    border-bottom: 1px solid rgba(10, 20, 36, 0.06);
    transition: color 0.3s ease, background 0.3s ease, letter-spacing 0.3s ease;
    position: relative;
    z-index: 1;
  }

  .ed-h1-nav-links .ed-h1-link:first-child {
    border-top: 1px solid rgba(10, 20, 36, 0.06);
  }

  .ed-h1-nav-links .ed-h1-link:hover,
  .ed-h1-nav-links .ed-h1-link.active {
    color: var(--ed-h1-teal-primary);
    background: rgba(20, 184, 166, 0.06);
    letter-spacing: 3px;
  }

  .ed-h1-nav-links .ed-h1-btn-cta {
    margin-top: 40px;
    font-size: 1rem;
    padding: 16px 48px;
    border-radius: 50px;
    position: relative;
    z-index: 1;
  }

  /* Close button inside the overlay — top right */
  .ed-nav-close-btn {
    display: flex;
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(10, 20, 36, 0.04);
    border: 1px solid rgba(10, 20, 36, 0.1);
    border-radius: 50%;
    color: var(--ed-h1-bg-dark);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1060;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .ed-nav-close-btn:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: var(--ed-h1-teal-primary);
    color: var(--ed-h1-teal-primary);
    transform: rotate(90deg);
  }

  /* Hero */
  .ed-h1-manifesto-card {
    padding: 28px;
  }
  .ed-h1-card-accent-line {
    left: 28px;
  }
  .ed-h1-action-group {
    flex-direction: column;
    width: 100%;
  }
  .ed-h1-btn-primary,
  .ed-h1-btn-secondary {
    text-align: center;
    width: 100%;
  }
}

/* Phase 2 Matrix */
@media (max-width: 900px) {
  .ed-h2-grid-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ed-h2-matrix-card {
    padding: 28px;
  }
}

/* Phase 5 Impact */
@media (max-width: 960px) {
  .ed-h5-pillars-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ed-h5-metrics-dashboard {
    flex-direction: column;
    gap: 40px;
    padding: 40px 24px;
  }
  .ed-h5-metric-divider {
    width: 80%;
    height: 1px;
  }
}

/* Gallery */
@media (max-width: 960px) {
  .ed-gallery-masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .ed-gallery-masonry-grid {
    column-count: 1;
  }
  .ed-modal-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
}

/* Footer */
@media (max-width: 960px) {
  .ed-footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .ed-footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ed-footer-utility-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}