#route-intro {
  font-family: var(--font-secondary);
  color: var(--color-text);
}

/* Intro splash vs menu states */
body[data-intro-state="splash"] .landing-gallery {
  opacity: 0;
  pointer-events: none;
}

body[data-intro-state="menu"] .landing-gallery {
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* Splash: full-screen hero, transparent background */
body[data-intro-state="splash"] .menu-bar.cyan-menu-bar {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  background: transparent;
  border-bottom-color: transparent;
}

body[data-intro-state="splash"] .intro-hero-glitch-title {
  font-size: calc(32px + 6vw);
  padding: 0;
  white-space:wrap;
}

/* During splash, hide the small header logo entirely so only the hero shows */
body[data-intro-state="splash"] .eda-logo-small.small-glitch-title {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

/* In menu (and non-splash) state, the hero title is not used at all. */
body[data-intro-state="menu"] .intro-hero-glitch-title {
  display: none;
}

/* App Container */
.app-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background-color: #000;
}

/* Background Video */
.background-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  opacity: 0.9;
}

/* Scale video for smaller screens */
@media (max-width: 1400px) {
  .background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .background-video {
    width: 100vw;
    height: 100vh;
    min-width: auto;
    min-height: auto;
    object-fit: cover;
    object-position: center center;
  }
}

@media (max-width: 480px) {
  .background-video {
    object-fit: cover;
    object-position: center center;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Video Overlay */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-gradient);
  z-index: 1;
}

/* Menu Bar: unified cyan header */

.menu-bar,
.cyan-menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px; /* predictable header height */
  /* background: rgba(0, 188, 212, 0.06); */
  padding: 0 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out, background 0.25s ease-in-out;
  /* border-bottom: 2px solid cyan; */
}

.menu-bar.visible {
  transform: translateY(0);
}

/* Non-dev: remove cyan outline from menu bar */
body:not([data-dev-mode="true"]) .cyan-menu-bar {
  border-bottom-color: transparent;
}

.menu-title {
  position: relative;
  font-family: var(--font-display);
  font-size: calc(20px + 2.5vw);
  font-weight: 700;
  /* color: #fff; */
  margin: 0;
  padding: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 0.18em #888;
  user-select: none;
  white-space: nowrap;
  text-align: center;
  border: none;
}

/* Shared glitch effect base class */
.glitch-effect {
  filter: blur(0.007em);
  animation: shake 2.5s linear forwards;
}

.intro-hero-glitch-title {
  /* Inherits glitch effect */
}

.small-glitch-title {
  /* Inherits glitch effect */
}


.intro-hero-glitch-title span,
.small-glitch-title span {
  position: absolute;
  top: 0;
  left: 30%;
  transform: translate(-50%, -50%);
  clip-path: polygon(10% 0%, 44% 0%, 70% 100%, 55% 100%);
}


.intro-hero-glitch-title::before,
.intro-hero-glitch-title::after,
.small-glitch-title::before,
.small-glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 30%;
}


.intro-hero-glitch-title::before,
.small-glitch-title::before {
  animation: crack1 2.5s linear forwards;
  clip-path: polygon(0% 0%, 10% 0%, 55% 100%, 0% 100%);
}


.intro-hero-glitch-title::after,
.small-glitch-title::after {
  animation: crack2 2.5s linear forwards;
  clip-path: polygon(44% 0%, 100% 0%, 100% 100%, 70% 100%);
}

.eda-logo-small.small-glitch-title {
  /* position: relative; */
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #ffffffdd;
  text-decoration: none;
  padding: 0.25rem 1.75rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
   font-size: clamp(1.4rem, 1.8vw, 1.9rem); /* a bit larger than before */
  white-space: nowrap;                      /* keep all characters on one line */
}

.eda-logo-text {
  white-space: nowrap;
}

/* Hover reveal behavior: desktop (no background tint on hover) */
@media (min-width: 769px) {
  .menu-bar:hover .eda-logo-small.small-glitch-title {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Always-visible header contents on mobile */
@media (max-width: 768px) {
  .eda-logo-small.small-glitch-title {
    opacity: 1;
    transform: translateY(0);
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    padding-inline: 1.25rem;
  }
}

/* Content */
.content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(2rem + 64px) 2rem 2rem; /* account for fixed header height */
  background: none;
  border: none;
}

/* Splash Screen */
.splash-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
}

/* Landing Gallery */
.landing-gallery {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  min-height: 70vh;
  padding: 3.5rem 3rem;
  border-radius: var(--glass-radius);
  /* border: 1px solid var(--glass-border); */
  background: none;
  /* background: var(--glass-bg);
  box-shadow: var(--glass-shadow); */
  /* backdrop-filter: blur(var(--glass-blur-strength)); */
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.landing-tagline {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.landing-card {
  position: relative;
  /* border: 1px solid var(--glass-border); */
  border-radius: var(--glass-radius);
  padding: 1.5rem;
  /* background: var(--glass-card-bg); */
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  /* transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform, box-shadow; */
}

/* .landing-card--letters {
  cursor: pointer;
  border-color: var(--glass-border-strong);
  box-shadow: var(--glass-shadow);
}

.landing-card--letters:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--glass-border-strong);
  box-shadow: var(--glass-hover-shadow);
} */

/* .landing-card--glass,
.landing-card--measure {
  cursor: default;
  opacity: 0.9;
} */

.landing-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--glass-radius);
 
  /* background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.6));
  */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.landing-image-wrap img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  z-index: 2;
}

/* .landing-card--glass .landing-image-wrap {
  isolation: isolate;
}

.glass-blur {
  position: absolute;
  width: 62%;
  aspect-ratio: 1 / 1;
  left: 19%;
  top: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.2);
  z-index: 1;
  pointer-events: none;
} */

.landing-card-caption {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.9;
}

/* Drop shadows for letters + measure cards (user request) */
.landing-card img {
  filter: drop-shadow(20px 21px 21px rgba(0, 0, 0, 0.85));
}

@media (max-width: 768px) {
  .landing-gallery {
    padding: 2.5rem 1.5rem;
  }

  .landing-tagline {
    letter-spacing: 0.3em;
  }
}

@media (max-width: 480px) {
  .landing-grid {
    grid-template-columns: 1fr;
  }
}

/* Fade in animation for main content */
.fade-in-content {
  animation: fadeInMain 1s ease-in;
}

@keyframes fadeInMain {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

