.td-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  background: #111;
}
.td-hero video,
.td-hero img.td-hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.td-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.td-intro-section {
  background: #ffffff;
  padding: 84px 24px 56px;
  text-align: center;
}
.td-intro-inner {
  max-width: 720px;
  margin: 0 auto;
}
.td-intro-title {
  font-family: var(--sobha-serif);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: #1c1c1c;
  margin: 0 0 20px;
}
.td-intro-desc {
  font-size: 13px;
  line-height: 1.85;
  color: #555;
  margin: 0;
}

.td-pillars-section {
  background: #ffffff;
  padding: 12px 24px 100px;
}
.td-pillars-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.td-pillar-card {
  cursor: pointer;
  transition: transform 0.35s ease;
}
.td-pillar-card:nth-child(2) {
  margin-top: 90px;
}
.td-pillar-media {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f2ef;
  transition: height 0.85s cubic-bezier(0.22, 1, 0.36, 1), margin-top 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.td-pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.85s ease;
  display: block;
}
.td-pillar-card:hover .td-pillar-media img,
.td-pillar-card.is-active .td-pillar-media img {
  transform: scale(1.03);
  filter: grayscale(35%);
}

.td-pillar-overlay-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  text-align: center;
  font-family: var(--sobha-serif);
  font-style: italic;
  font-size: 24px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.td-pillar-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  padding-top: 0;
  padding-left: 16px;
  border-left: 1px solid #d8d2c9;
  margin-top: 0;
  transition: max-height 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.75s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), padding-top 0.85s ease, margin-top 0.85s ease;
}
.td-pillar-body-title {
  font-family: var(--sobha-serif);
  font-style: italic;
  font-size: 22px;
  color: #1c1c1c;
  margin: 0 0 10px;
}
.td-pillar-body-desc {
  font-size: 12.5px;
  line-height: 1.75;
  color: #5a5a5a;
  margin: 0;
}

.td-pillar-card.is-active .td-pillar-media {
  height: 310px;
  margin-top: 44px;
}
.td-pillar-card.is-active .td-pillar-overlay-title {
  opacity: 0;
}
.td-pillar-card.is-active .td-pillar-body {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 22px;
  margin-top: 6px;
}

@keyframes tdFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .td-pillars-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .td-pillar-card:nth-child(2) {
    margin-top: 0;
  }
  .td-pillar-media,
  .td-pillar-card.is-active .td-pillar-media {
    height: 320px;
    margin-top: 0;
  }
  .td-pillar-overlay-title {
    opacity: 0;
  }
  .td-pillar-body {
    display: block;
  }
}
