/* Shared soft depth for the hero's floating glass surfaces. */
#home .hero-video-pill-wrap,
#home .hero-rotating-word-box,
#home .hero-music-player .music-card,
#home .hero-connect-bar,
#home .btn-contact-slide,
#projects .project-gallery-flow.flow-download {
  box-shadow: 0 10px 26px rgba(31, 46, 68, .13), 0 2px 8px rgba(31, 46, 68, .06) !important;
}

/* Let the coordinated GSAP fade-and-rise be the pill's only entrance. */
#home .hero-video-pill-wrap {
  position: relative !important;
  z-index: 3 !important;
  opacity: 1;
  filter: none;
  transform: none;
  animation: none !important;
  border-color: rgba(255, 255, 255, .34) !important;
}

/* Keep only the two compact CGPA and location pills in each milestone. */
#education .edu-story-stage-details .edu-tl-detail-row {
  width: max-content;
  max-width: 100%;
  gap: 6px;
}

#education .edu-story-stage-details .edu-tl-chip {
  min-height: 25px;
  gap: 5px;
  padding: 5px 8px;
  font-size: .69rem;
  line-height: 1;
  white-space: nowrap;
}

#education .edu-story-stage-details .edu-tl-chip .edu-ui-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

/* Keep the timeline markers while removing the date pills and Final Year badge. */
#education .edu-story-step-date {
  display: none !important;
}

#education .edu-story-progress-nav {
  gap: 8px;
}

#education .edu-story-step {
  gap: 2px;
}

#education .edu-story-step-dot {
  width: 7px;
  height: 7px;
  margin-left: 2px;
}

#education .edu-story-step-title {
  padding-top: 0;
  font-size: .72rem;
}

@media (max-width: 760px) {
  /* Keep the preview, milestone story and progress line in one tight rhythm. */
  #education .edu-story-pin {
    grid-template-rows: clamp(150px, 25vh, 190px) auto 42px !important;
    gap: 22px !important;
    height: auto !important;
    min-height: 0 !important;
  }

  #education .edu-story-visual-column,
  #education .edu-story-content-column {
    align-self: stretch !important;
    height: 100% !important;
  }

  #education .edu-story-visual-frame {
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  #education .edu-story-copy-stack {
    height: auto !important;
    min-height: 0 !important;
  }

  #education .edu-story-copy {
    align-self: start;
    padding-top: 0;
  }

  #education .edu-story-progress-track {
    top: 3px;
  }

  #education .edu-story-step {
    grid-template-rows: 7px auto;
    gap: 6px;
  }

  #education .edu-story-step-dot {
    width: 7px;
    height: 7px;
    margin: 0;
  }

  #education .edu-story-step-title {
    padding-top: 0;
  }

  #education .edu-story-stage-details .edu-tl-detail-row {
    gap: 5px;
  }

  #education .edu-story-stage-details .edu-tl-chip {
    min-height: 23px;
    padding: 4px 7px;
    font-size: .65rem;
  }

  #education .edu-story-step-title { font-size: .67rem; }

  #education .edu-story-stage-details {
    gap: 12px !important;
    margin-top: 18px !important;
  }
}

/* Keep the hamburger control and its drawer rows clean, with depth from shadow. */
.menu-burger,
.menu-burger:hover,
.menu-burger:focus-visible {
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(17, 38, 72, .1) !important;
}

@media (max-width: 768px) {
  #siteNavigation .nav-link,
  #siteNavigation .nav-item:hover .nav-link,
  #siteNavigation .nav-item.active .nav-link,
  #siteNavigation .nav-item:focus-within .nav-link {
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(17, 38, 72, .1) !important;
  }

}

@supports (height: 1svh) {
  @media (max-width: 760px) {
    #education .edu-story-pin {
      grid-template-rows: clamp(150px, 25svh, 190px) auto 42px !important;
    }
  }
}

/* Match the hero word pill, Connect control, and project Gallery buttons to
   the borderless, softly-shadowed Download CV surface. */
#home .hero-rotating-word-box,
#home .hero-connect-bar,
#home .hero-connect-bar.active,
#projects .project-gallery-flow.flow-download {
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(17, 38, 72, .1) !important;
}

#home .hero-connect-bar:hover,
#home .hero-connect-bar.active:hover,
#projects .project-gallery-flow.flow-download:hover,
#projects .project-gallery-flow.flow-download:focus-visible {
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(17, 38, 72, .1) !important;
}

/* Give the two-stage education timeline clear separation after hiding dates. */
#education .edu-story-progress-track {
  top: 4px;
}

#education .edu-story-progress-nav {
  gap: clamp(16px, 3vw, 28px);
}

#education .edu-story-step {
  gap: 8px;
}

#education .edu-story-step-dot {
  width: 9px;
  height: 9px;
  margin-left: 1px;
}

#education .edu-story-step-title {
  padding-top: 2px;
  font-size: .76rem;
}

@media (max-width: 760px) {
  #education .edu-story-progress-track {
    top: 4px;
  }

  #education .edu-story-step {
    grid-template-rows: 9px auto;
    gap: 8px;
  }

  #education .edu-story-step-dot {
    width: 9px;
    height: 9px;
    margin: 0;
  }

  #education .edu-story-step-title {
    padding-top: 0;
    font-size: .7rem;
  }
}

/* Give Professional Experience a distinct, measured break after the timeline. */
#education .experience-section-inner {
  margin-top: 5.25rem !important;
}
