/* ==========================================================================
   1. PHASE 4 PAGE BASE LAYOUT TOKENS
   ========================================================================== */
.ed-h4-projects-main {
  padding-top: 140px;
  background-color: var(--ed-h1-bg-dark);
  min-height: 100vh;
}

.ed-h4-section-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 24px;
}

/* Intersection Observer Animation States */
.ed-h4-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-h4-reveal-el.ed-h4-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Shared Section Headers */
.ed-h4-center-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 64px auto;
}

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

.ed-h4-main-heading,
.ed-h4-sub-heading {
  font-family: var(--ed-h1-font-title);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.ed-h4-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-h4-section-desc {
  color: var(--ed-h1-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ==========================================================================
   2. HERO PORTAL — .ed-h4-hero-portal (project-home section)
   ========================================================================== */
.ed-h4-hero-portal {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 80px 24px;
  overflow: hidden;
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.852),
      rgba(0, 0, 0, 0.774),
      rgba(0, 0, 0, 0.752)
    ),
    url(/images/project.hero.jpg);
  background-position: center;
  background-repeat: no-repeat;
}

.ed-h4-hero-glow-field {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(197, 160, 89, 0.03) 0%,
    transparent 80%
  );
  pointer-events: none;
  filter: blur(40px);
}

.ed-h4-hero-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}

.ed-h4-hero-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--ed-h1-gold-accent);
  display: inline-block;
  margin-bottom: 24px;
}

.ed-h4-hero-title {
  font-family: var(--ed-h1-font-title);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.ed-h4-manifesto-badge {
  background: rgba(255, 255, 255, 0.01);
  border-left: 3px solid var(--ed-h1-teal-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px 32px;
  max-width: 720px;
  margin: 0 auto 36px auto;
  text-align: left;
  border-radius: 0 16px 16px 0;
}

.ed-h4-hero-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ed-h1-text-light);
  font-style: italic;
  font-weight: 300;
}

.ed-h4-hero-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--ed-h1-text-muted);
  max-width: 780px;
  margin: 0 auto 48px auto;
  font-weight: 300;
}

.ed-h4-action-strip {
  display: flex;
  justify-content: center;
}

.ed-h4-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--ed-h1-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ed-h1-text-light);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-h4-explore-btn svg {
  transition: transform 0.3s ease;
}

.ed-h4-explore-btn:hover {
  background: rgba(20, 184, 166, 0.05);
  border-color: var(--ed-h1-teal-primary);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.15);
  transform: translateY(-2px);
}

.ed-h4-explore-btn:hover svg {
  transform: translateY(4px);
}

/* ==========================================================================
   3. MEDIA HUB — #ed-h4-media-hub
   ========================================================================== */
.ed-h4-media-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-bottom: 60px;
}

.ed-h4-console-card {
  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: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Streaming Pulse Animation */
.ed-h4-pulse-indicator {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.ed-h4-ping {
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
  position: relative;
}
.ed-h4-ping::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  animation: ed-h4-sonar 1.8s infinite ease-in-out;
}

@keyframes ed-h4-sonar {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.ed-h4-console-card h3 {
  font-family: var(--ed-h1-font-title);
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.ed-h4-console-meta {
  font-size: 0.8rem;
  color: var(--ed-h1-gold-accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.ed-h4-console-text {
  color: var(--ed-h1-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 300;
}

.ed-h4-audio-interface {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ed-h4-stream-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ed-h1-text-light);
  color: var(--ed-h1-bg-dark);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.ed-h4-stream-btn:hover {
  background: var(--ed-h1-teal-primary);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
  transform: translateY(-2px);
}

.ed-h4-alt-link {
  font-size: 0.85rem;
  color: var(--ed-h1-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.ed-h4-alt-link:hover {
  color: var(--ed-h1-text-light);
}

.ed-h4-social-link-tree {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ed-h4-social-brick {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--ed-h1-glass-border);
  padding: 16px 24px;
  border-radius: 14px;
  color: var(--ed-h1-text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.ed-h4-social-brick:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--ed-h1-teal-primary);
  padding-left: 28px;
  transform: translateX(4px);
}

/* ==========================================================================
   4. PROJECT PORTFOLIO — #ed-h4-project-portfolio
   ========================================================================== */
#ed-h4-project-portfolio {
  background:
    linear-gradient(rgba(0, 0, 0, 0.917), rgba(0, 0, 0, 0.898), black),
    url(https://i.pinimg.com/1200x/35/ef/fa/35effa8afa6b54110bfa1ac44e522c4d.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.ed-h4-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.ed-h4-portfolio-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.21) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-h4-portfolio-card.ed-h4-card-wide {
  grid-column: span 2;
  background: var(--ed-h1-glass-bg);
  border: 1px solid var(--ed-h1-glass-border);
}

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

.ed-h4-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.06);
  border: 1px solid rgba(20, 184, 166, 0.15);
  color: var(--ed-h1-teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.ed-h4-portfolio-status {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ed-h1-gold-accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.ed-h4-portfolio-card h3 {
  font-family: var(--ed-h1-font-title);
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--ed-h1-text-light);
}

.ed-h4-portfolio-text {
  color: var(--ed-h1-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ==========================================================================
   5. INSTITUTIONS — #ed-h4-institutions
   ========================================================================== */
.ed-h4-split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.ed-h4-pillar-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.ed-h4-pillar-accent-glow {
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(20, 184, 166, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.ed-h4-year-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ed-h1-teal-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 16px;
}

.ed-h4-pillar-card h3 {
  font-family: var(--ed-h1-font-title);
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.ed-h4-pillar-type {
  font-size: 0.85rem;
  color: var(--ed-h1-gold-accent);
  margin-bottom: 24px;
  font-weight: 600;
}

.ed-h4-pillar-body {
  color: var(--ed-h1-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 28px;
}

.ed-h4-pillar-link {
  display: inline-block;
  color: var(--ed-h1-text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--ed-h1-teal-primary);
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.ed-h4-pillar-link:hover {
  color: var(--ed-h1-teal-primary);
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .ed-h4-hero-portal {
    min-height: auto;
    padding-top: 20px;
  }
  .ed-h4-manifesto-badge {
    padding: 16px 20px;
  }
  .ed-h4-hero-quote {
    font-size: 0.95rem;
  }
}

@media (max-width: 960px) {
  .ed-h4-media-grid,
  .ed-h4-split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ed-h4-console-card,
  .ed-h4-pillar-card {
    padding: 32px;
  }
  .ed-h4-portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ed-h4-portfolio-card.ed-h4-card-wide {
    grid-column: span 1;
  }
  .ed-h4-portfolio-card {
    padding: 32px;
  }
}