.block-edan-hero {
  position: relative;
  height: 100vh;
  color: #ffffff;
  margin-bottom: 0;
  overflow: hidden;
}

.block-edan-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.block-edan-hero__bg-video,
.block-edan-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 240ms ease;
}

.block-edan-hero.is-pillar-active .block-edan-hero__bg-video,
.block-edan-hero.is-pillar-active .block-edan-hero__bg img {
  opacity: 0.1;
  filter: brightness(0) saturate(0);
}

.block-edan-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--edan-hero-overlay, 0.48));
}

.block-edan-hero__inner {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(160px, 20vh, 240px);
}

.block-edan-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  transition: opacity 260ms ease, transform 260ms ease;
  z-index: 3;
}

.block-edan-hero.is-pillar-active .block-edan-hero__content {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

.block-edan-hero__logo {
  margin-bottom: 18px;
}

.block-edan-hero__logo img {
  display: block;
  width: min(220px, 34vw);
  max-width: 100%;
  height: auto;
}

@media (max-width: 1600px) {
  .block-edan-hero__logo img {
    width: min(180px, 28vw);
  }
}

.block-edan-hero__title {
  margin: 0;
  font-size: clamp(3.45rem, 5.2vw, 5rem);
  line-height: 1.04;
  font-weight: 600;
  text-wrap: balance;
}

.block-edan-hero__title p,
.block-edan-hero__text p {
  margin: 0;
}

.block-edan-hero__title strong,
.block-edan-hero__title b,
.block-edan-hero__title em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: #e30613;
  text-decoration-thickness: 8px;

  .block-edan-hero__logo img {
    width: auto;
    height: 100px;
    max-width: 100%;
  }
  text-underline-offset: 7px;
}

.block-edan-hero__text {
  margin-top: 24px;
  max-width: min(860px, 95%);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.5;
}

.block-edan-hero__buttons {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.block-edan-hero__pillars {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  height: 100%;
}

.block-edan-hero__pillar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: background-color 240ms ease, opacity 240ms ease;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.block-edan-hero__pillar:last-child {
  border-right: 0;
}

.block-edan-hero__pillar-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 240ms ease;
}

.block-edan-hero__pillar-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.block-edan-hero__pillar-bg video,
.block-edan-hero__pillar-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0);
}

.block-edan-hero__pillar-diagonal {
  position: absolute;
  inset: -50% auto -50% 50%;
  width: 300px;
  transform: translateX(-50%) rotate(18deg);
  background: var(--pillar-accent, #e30613);
  opacity: 0;
  z-index: 2;
  transition: opacity 260ms ease;
  pointer-events: none;
  mix-blend-mode: lighten;
}

.block-edan-hero__pillar-car {
  position: absolute;
  left: 100%;
  bottom: 0;
  z-index: 2;
  width: 100%;
  opacity: 0;
  transform: translateX(0);
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.3, 1), opacity 240ms ease;
  pointer-events: none;
}

.block-edan-hero__pillar-car img {
  width: 100%;
  height: auto;
  display: block;
}

.block-edan-hero__pillar-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  text-align: center;
  padding: clamp(20px, 2.8vw, 34px) clamp(14px, 2vw, 26px) clamp(26px, 3.2vw, 38px);
  transition: inset 260ms ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.block-edan-hero__pillar-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 80px;
  margin: 0 auto 16px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 260ms ease;
}

.block-edan-hero__pillar.is-active .block-edan-hero__pillar-flag {
  opacity: 1;
}

.block-edan-hero__pillar-flag img {
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

.block-edan-hero__pillar-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 1.875rem);
  line-height: 1.08;
  font-weight: 500;
}

.block-edan-hero__pillar-description {
  margin: 16px auto 0;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.94rem, 1.3vw, 1.125rem);
  line-height: 1.45;
}

.block-edan-hero__pillar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.block-edan-hero__pillar-button {
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 30px;
  background: rgba(0, 0, 0, 0.34);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 100px;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 500;
  width: fit-content;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  pointer-events: none;
  text-decoration: none;
}

.block-edan-hero__pillar-button:hover {
  transform: translateY(7px);
}

.block-edan-hero__pillar.is-active {
  background: rgba(0, 0, 0, 0.36);
}

.block-edan-hero__pillar.is-active .block-edan-hero__pillar-bg,
.block-edan-hero__pillar.is-active .block-edan-hero__pillar-diagonal,
.block-edan-hero__pillar.is-active .block-edan-hero__pillar-car,
.block-edan-hero__pillar.is-active .block-edan-hero__pillar-link,
.block-edan-hero__pillar.is-active .block-edan-hero__pillar-button {
  opacity: 1;
}

.block-edan-hero__pillar.is-active .block-edan-hero__pillar-car {
  transform: translateX(-100%);
}

.block-edan-hero__pillar.is-active .block-edan-hero__pillar-content {
  inset: 0;
  justify-content: center;
}

.block-edan-hero__pillar.is-active .block-edan-hero__pillar-link,
.block-edan-hero__pillar.is-active .block-edan-hero__pillar-button {
  visibility: visible;
  transform: translateY(0);
}

.block-edan-hero.is-pillar-active .block-edan-hero__pillar.is-dimmed {
  opacity: 0.38;
}

/* Hide scroll indicator on desktop */
.block-edan-hero__scroll-indicator {
  display: none;
}

.block-edan-hero__pillar-scroll-indicator {
  display: none;
}

@media (max-width: 1200px) {
  .block-edan-hero__title {
    font-size: clamp(2rem, 5.1vw, 3.4rem);
  }

  .block-edan-hero__pillar-title {
    font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  }
}

@media (max-width: 900px) {
  /* Vertical Swiper Layout */
  .block-edan-hero {
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }

  .block-edan-hero::-webkit-scrollbar {
    display: none;
  }

  .block-edan-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .block-edan-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .block-edan-hero__inner {
    position: relative;
    height: auto;
    width: 100%;
    padding: 0;
    flex-direction: column;
    z-index: 2;
    display: flex;
  }

  .block-edan-hero__content {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2;
    position: relative;
    max-width: 100%;
    text-align: center;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(40px, 8vh, 60px) clamp(16px, 4vw, 24px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .block-edan-hero__title {
    font-size: clamp(40px, 4vw, 1.5rem);
    margin: clamp(12px, 2vh, 16px) 0;
    line-height: 1.2;
  }

  .block-edan-hero__text {
    font-size: clamp(0.85rem, 3vw, 1rem);
    line-height: 1.4;
    margin: clamp(12px, 2vh, 16px) 0;
  }

  .block-edan-hero__buttons {
    margin-top: clamp(12px, 2vh, 20px);
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    justify-content: center;
    align-items: center;
  }

  /* Vertical Scroll Snap Container */
  .block-edan-hero__pillars {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    z-index: auto;
  }

  /* Every pillar is always active on mobile */
  .block-edan-hero__pillar {
    flex-shrink: 0;
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(40px, 8vh, 60px) clamp(16px, 4vw, 24px);
    z-index: 2;
    overflow: hidden;
  }

  /* Show background media on mobile */
  .block-edan-hero__pillar-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
  }

  .block-edan-hero__pillar-bg video,
  .block-edan-hero__pillar-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0);
  }

  /* Show overlay on pillar */
  .block-edan-hero__pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 1;
    pointer-events: none;
  }

  /* Show diagonal on mobile - always visible */
  .block-edan-hero__pillar-diagonal {
    display: block;
    position: absolute;
    inset: -50% auto -50% 50%;
    width: 150px;
    rotate: 18deg;
    background: var(--pillar-accent);
    opacity: 0.8;
    z-index: 2;
    mix-blend-mode: lighten;
  }

  .block-edan-hero__pillar-car {
    position: absolute;
    left: 50%;
    bottom: 50px;
    z-index: 2;
    width: min(90%, 520px);
    height: auto;
    opacity: 0;
    transform: translateX(70%) translateY(20px);
    pointer-events: none;
    display: block;
  }

  .block-edan-hero__pillar.is-active .block-edan-hero__pillar-car {
    animation: pillar-car-enter-mobile 600ms cubic-bezier(0.2, 0.75, 0.3, 1) forwards;
  }

  .block-edan-hero__pillar-content {
    position: relative;
    transform: none;
    opacity: 1;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    text-decoration: none;
    color: inherit;
    z-index: 3;
    text-align: center;
  }

  .block-edan-hero__pillar-flag {
    height: clamp(50px, 8vh, 70px);
    width: auto;
    margin: clamp(12px, 2vh, 16px) auto;
    opacity: 1;
  }

  .block-edan-hero__pillar-title {
    font-size: clamp(40px, 4vw, 1.5rem);
    margin: clamp(12px, 2vh, 16px) 0;
    line-height: 1.2;
  }

  .block-edan-hero__pillar-description {
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    line-height: 1.4;
    margin: clamp(8px, 1vh, 12px) 0;
  }

  .block-edan-hero__pillar-button {
    display: inline-flex;
    margin-top: clamp(12px, 2vh, 16px);
    padding: clamp(8px, 1.5vh, 10px) clamp(20px, 4vw, 30px);
    background: rgba(0, 0, 0, 0.34);
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 100px;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: #ffffff;
    font-weight: 500;
    width: fit-content;
    opacity: 1;
    visibility: visible;
    transition: opacity 260ms ease;
    text-decoration: none;
  }

  /* Scroll indicator arrow on mobile */
  .block-edan-hero__scroll-indicator {
    position: absolute;
    bottom: clamp(20px, 3vh, 30px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    animation: bounce 2s infinite;
  }

  .block-edan-hero__scroll-text {
    font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.9;
  }

  .block-edan-hero__scroll-indicator::after {
    content: '↓';
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #ffffff;
    font-weight: 300;
  }

  /* Pillar scroll indicator */
  .block-edan-hero__pillar-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 50px;
    opacity: 0.85;
    animation: bounce-centered 2s infinite;
  }

  .block-edan-hero__pillar-scroll-text {
    font-size: clamp(0.6rem, 1.3vw, 0.75rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.95;
  }

  .block-edan-hero__pillar-scroll-indicator::after {
    content: '↓';
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #ffffff;
    font-weight: 300;
  }

  @keyframes pillar-car-enter-mobile {
    0% {
      opacity: 0;
      transform: translateX(70%) translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }

  @keyframes bounce {
    0%, 100% {
      transform: translateX(-50%) translateY(0);
    }
    50% {
      transform: translateX(-50%) translateY(8px);
    }
  }

  @keyframes bounce-centered {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(8px);
    }
  }

  /* Disable hover styles on mobile */
  .block-edan-hero.is-pillar-active {
    /* No effect on mobile */
  }

  .block-edan-hero__pillar.is-active,
  .block-edan-hero__pillar.is-dimmed {
    /* No changes to appearance on mobile */
  }
}
