.pillars .section-inner {
  margin-top: 0;
  padding-top: clamp(0.75rem, 2vw, 1.5rem);
}

.pillars {
  position: relative;
  overflow: hidden;
  --pillars-wave-background: linear-gradient(
    170deg,
    #074f4f 0%,
    #0c8a8b 40%,
    #11c5c6 72%,
    #a0e8e8 100%
  );
  --pillars-wave-shadow: rgba(207, 243, 244, 0.8);
  --pillars-wave-color-1: rgba(231, 249, 249, 0.45);
  --pillars-wave-color-2: rgba(207, 243, 244, 0.32);
  --pillars-wave-color-3: rgba(160, 232, 232, 0.2);
  --pillars-wave-blend-mode: lighter;
}

.pillars__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--pillars-wave-background);
}

.pillars__wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: blur(4px);
  transform: translateZ(0);
}

@media (max-width: 1100px) {
  .pillars__wave-canvas {
    display: none;
  }
}

[data-theme="dark"] .pillars,
body.dark .pillars {
  --pillars-wave-background: linear-gradient(
    170deg,
    #0b1516 0%,
    #111f22 35%,
    #182c31 68%,
    #213940 100%
  );
  --pillars-wave-shadow: rgba(65, 209, 209, 0.6);
  --pillars-wave-color-1: rgba(65, 209, 209, 0.4);
  --pillars-wave-color-2: rgba(17, 197, 198, 0.27);
  --pillars-wave-color-3: rgba(112, 220, 221, 0.18);
}

.pillars__inner {
  position: relative;
  z-index: 1;
  padding-block-start: clamp(3.25rem, 7vw, 6rem);
  padding-block-end: clamp(0.75rem, 4vw, 2rem);
  display: grid;
  gap: clamp(2.25rem, 4.5vw, 3.5rem);
}

.pillars__header {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  color: var(--pillars-header-fg);
}

.pillars__header :is(.eyebrow, h2, p) {
  color: var(--pillars-header-fg);
}

.pillars__carousel {
  position: relative;
  width: min(100%, 880px);
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 0.5rem;
}

.pillars__viewport {
  width: min(100%, 640px);
  perspective: 1400px;
  overflow: visible;
}

.pillars__track {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 60vw, 520px);
}

.pillars-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 540px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(231, 249, 249, 0.38) 50%,
    rgba(207, 243, 244, 0.32) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: clamp(2rem, 4.5vw, 2.75rem);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.45s ease,
    background 0.45s ease;
}

.pillars-card.is-active {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  filter: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(231, 249, 249, 0.46) 50%,
    rgba(207, 243, 244, 0.40) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
  z-index: 3;
}

.pillars-card.is-left {
  opacity: 0.72;
  transform: translate(-130%, -50%) scale(0.86) rotateY(16deg);
  z-index: 2;
  filter: blur(0.75px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(231, 249, 249, 0.28) 50%,
    rgba(207, 243, 244, 0.24) 100%
  );
  box-shadow: none;
}

.pillars-card.is-right {
  opacity: 0.72;
  transform: translate(30%, -50%) scale(0.86) rotateY(-16deg);
  z-index: 2;
  filter: blur(0.75px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(231, 249, 249, 0.28) 50%,
    rgba(207, 243, 244, 0.24) 100%
  );
  box-shadow: none;
}

.pillars-card.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%);
  filter: blur(1px);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .pillars-card {
    transition: none;
  }
}

.pillars-card__avatar {
  width: clamp(112px, 22vw, 150px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(207, 243, 244, 0.15));
}

.pillars-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pillars-card__body {
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 2.5vw, 0.95rem);
  flex-grow: 1;
  height: 100%;
  justify-content: space-around;
}

.pillars-card__intro {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: clamp(1rem, 3vw, 1.75rem);
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.pillars-card__name {
  display: flex;
  flex-direction: column;
  gap: clamp(0.1rem, 1vw, 0.3rem);
  font-family: var(--ff-montserrat);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 500;
  font-size: clamp(1.15rem, 3.2vw, 1.7rem);
  line-height: 1.15;
  color: #053d3d;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.35);
}

.pillars-card__name-line {
  display: block;
}

.pillars-card__name-line--last {
  margin-left: clamp(0.4rem, 1.6vw, 1rem);
}

.pillars-card__bio {
  color: rgba(4, 32, 32, 0.88);
  line-height: 1.65;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.pillars-card__bio--secondary {
  color: rgba(4, 32, 32, 0.78);
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.25);
}

.pillars-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: currentColor;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
  margin-top: auto;
  padding-top: clamp(0.4rem, 1.8vw, 0.85rem);
  margin-bottom: clamp(0.1rem, 0.5vw, 0.4rem);
}

.pillars-card__link-icon {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.pillars-card__link-text {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pillars-card__link:hover,
.pillars-card__link:focus-visible {
  color: var(--color-teal-900, #074f4f);
}

.pillars__nav {
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(231, 249, 249, 0.48) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-teal-900, #074f4f);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow:
    0 8px 24px rgba(7, 79, 79, 0.15),
    0 0 0 1px rgba(17, 197, 198, 0.1) inset;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.pillars__nav:hover,
.pillars__nav:focus-visible {
  background: linear-gradient(
    135deg,
    rgba(17, 197, 198, 0.75) 0%,
    rgba(160, 232, 232, 0.68) 100%
  );
  border-color: rgba(255, 255, 255, 0.6);
  color: #041f20;
  transform: translateY(calc(-50% - 2px));
  box-shadow:
    0 12px 28px rgba(7, 79, 79, 0.2),
    0 0 0 1px rgba(17, 197, 198, 0.2) inset,
    0 0 20px -4px rgba(17, 197, 198, 0.25);
}

.pillars__nav:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.pillars__nav:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pillars__nav-icon {
  display: block;
  width: 28px;
  height: 28px;
}

.pillars__swipe-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s ease;
}

[data-theme="dark"] .pillars__swipe-hint,
body.dark .pillars__swipe-hint {
  color: rgba(255, 255, 255, 0.76);
}

.pillars__swipe-icon {
  width: 26px;
  height: 16px;
  display: block;
}

.pillars__swipe-text {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pillars__swipe-icon--inline {
  width: 22px;
  height: 12px;
  flex-shrink: 0;
}

.pillars__nav--prev {
  left: clamp(-0.25rem, 4vw, 1.75rem);
}

.pillars__nav--next {
  right: clamp(-0.25rem, 4vw, 1.75rem);
}

@media (max-width: 820px) {
  .pillars__carousel {
    width: min(100%, 760px);
    padding-inline: clamp(0.5rem, 4vw, 1.5rem);
  }

  .pillars__viewport {
    width: min(100%, 520px);
  }

  .pillars-card {
    width: min(100%, 480px);
  }

  .pillars-card.is-left {
    transform: translate(-120%, -50%) scale(0.85) rotateY(12deg);
  }

  .pillars-card.is-right {
    transform: translate(20%, -50%) scale(0.85) rotateY(-12deg);
  }
}

@media (max-width: 768px) {
  .pillars__inner {
    padding-block-end: 0;
  }

  .pillars__carousel {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .pillars__viewport {
    width: 100%;
    order: 1;
  }

  .pillars__nav {
    display: none;
  }

  .pillars__swipe-hint {
    display: inline-flex;
    opacity: 0.75;
    order: 0;
    margin-top: 0;
    margin-bottom: 0.5rem;
  }

  .pillars__swipe-hint:focus-visible,
  .pillars__swipe-hint:hover {
    opacity: 1;
  }

  .pillars__swipe-hint.is-hidden {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .pillars__inner {
    padding-block-start: clamp(3rem, 12vw, 4rem);
    padding-block-end: 0;
  }

  .pillars__carousel {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }

  .pillars__viewport {
    width: 100%;
    order: 1;
  }

  .pillars-card {
    width: min(92vw, 440px);
    padding: clamp(1.75rem, 6vw, 2.25rem);
  }

  .pillars-card__link {
    padding-top: 0;
    margin-top: auto;
  }

  .pillars-card__name {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
  }

  .pillars-card__bio,
  .pillars-card__bio--secondary {
    line-height: 1.5;
  }

  .pillars-card.is-left {
    transform: translate(-105%, -50%) scale(0.82) rotateY(4deg);
    opacity: 0.45;
  }

  .pillars-card.is-right {
    transform: translate(5%, -50%) scale(0.82) rotateY(-4deg);
    opacity: 0.45;
  }
}

[data-theme="dark"] .pillars-card,
body.dark .pillars-card {
  background: linear-gradient(
    135deg,
    rgba(18, 42, 48, 0.65) 0%,
    rgba(24, 56, 62, 0.58) 50%,
    rgba(32, 72, 80, 0.52) 100%
  );
  border: 1px solid rgba(65, 209, 209, 0.18);
  box-shadow: none;
}

[data-theme="dark"] .pillars-card.is-active,
body.dark .pillars-card.is-active {
  background: linear-gradient(
    135deg,
    rgba(18, 42, 48, 0.75) 0%,
    rgba(24, 56, 62, 0.68) 50%,
    rgba(32, 72, 80, 0.62) 100%
  );
  border: 1px solid rgba(65, 209, 209, 0.28);
  box-shadow: none;
}

[data-theme="dark"] .pillars-card.is-left,
[data-theme="dark"] .pillars-card.is-right,
body.dark .pillars-card.is-left,
body.dark .pillars-card.is-right {
  background: linear-gradient(
    135deg,
    rgba(18, 42, 48, 0.45) 0%,
    rgba(24, 56, 62, 0.40) 50%,
    rgba(32, 72, 80, 0.35) 100%
  );
  border: 1px solid rgba(65, 209, 209, 0.10);
  box-shadow: none;
}

[data-theme="dark"] .pillars-card__bio,
body.dark .pillars-card__bio {
  color: rgba(229, 245, 246, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .pillars-card__bio--secondary,
body.dark .pillars-card__bio--secondary {
  color: rgba(229, 245, 246, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .pillars-card__link,
body.dark .pillars-card__link {
  color: var(--color-teal-400, #11c5c6);
}

[data-theme="dark"] .pillars-card__link-icon,
body.dark .pillars-card__link-icon {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .pillars-card__name,
body.dark .pillars-card__name {
  color: var(--color-teal-200, #a0e8e8);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .pillars-card__avatar,
body.dark .pillars-card__avatar {
  border: 3px solid rgba(65, 209, 209, 0.35);
  box-shadow: none;
  background: linear-gradient(135deg, rgba(32, 72, 80, 0.3), rgba(24, 56, 62, 0.2));
}

[data-theme="dark"] .pillars-card__link:hover,
[data-theme="dark"] .pillars-card__link:focus-visible,
body.dark .pillars-card__link:hover,
body.dark .pillars-card__link:focus-visible {
  color: var(--color-teal-200, #a0e8e8);
}

[data-theme="dark"] .pillars__nav,
body.dark .pillars__nav {
  background: linear-gradient(
    135deg,
    rgba(18, 42, 48, 0.72) 0%,
    rgba(24, 56, 62, 0.65) 100%
  );
  border: 1px solid rgba(65, 209, 209, 0.22);
  color: var(--color-teal-200, #a0e8e8);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(65, 209, 209, 0.08) inset;
}

[data-theme="dark"] .pillars__nav:hover,
[data-theme="dark"] .pillars__nav:focus-visible,
body.dark .pillars__nav:hover,
body.dark .pillars__nav:focus-visible {
  background: linear-gradient(
    135deg,
    rgba(65, 209, 209, 0.45) 0%,
    rgba(112, 220, 221, 0.38) 100%
  );
  border-color: rgba(65, 209, 209, 0.35);
  color: #e5f5f6;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(65, 209, 209, 0.15) inset,
    0 0 20px -4px rgba(65, 209, 209, 0.2);
}
