/* About Diako — scoped to .ec-page--about. Palette from the building: navy, gold, cream. */
.ec-page--about {
  --about-navy: #0b1220;
  --about-navy-2: #141c2e;
  --about-ink: #1a2236;
  --about-gold: #c9a227;
  --about-gold-soft: #e8c96a;
  --about-cream: #f6f1e6;
  --about-muted: #5c6578;
  --ec-orange: #c9a227;
  --ec-orange-deep: #b45309;
  --wp-section-max: var(--ec-max, 1120px);
  --wp-max: var(--ec-max, 1120px);
}

.ec-page--about .ec-section .ec-wrap,
.ec-page--about .wp-sec .ec-wrap,
.ec-page--about .about-prose .ec-wrap,
.ec-page--about .about-closing .ec-wrap {
  max-width: var(--ec-max, 1120px) !important;
  width: min(var(--ec-max, 1120px), calc(100% - (var(--ec-pad, 1.5rem) * 2)));
}

.ec-page--about .wp-sec__head,
.ec-page--about .wp-faq-layout__head {
  max-width: none;
}

.ec-page--about .ec-kicker,
.ec-page--about .wp-typo-sub {
  color: var(--about-gold);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: none;
}

.ec-page--about .ec-h1,
.ec-page--about .ec-h2,
.ec-page--about .wp-typo-heading {
  letter-spacing: -0.02em;
  font-weight: var(--wp-heading-weight, 800);
  font-size: var(--wp-heading-size, clamp(1.55rem, 2.8vw, 2.15rem));
  color: var(--wp-heading-color, inherit);
}

.ec-page--about .ec-lead,
.ec-page--about .wp-typo-desc,
.ec-page--about .ec-lead p,
.ec-page--about .wp-typo-desc p {
  max-width: none;
  line-height: 2;
}

.ec-page--about .ec-section .ec-lead p + p,
.ec-page--about .wp-typo-desc p + p {
  margin-top: 1rem;
}

/* ── Cinematic hero ── */
.ec-page--about .ec-hero.wp-designed.wp-hero--panoramic {
  min-height: min(78vh, 720px);
  --wp-hero-height: min(78vh, 720px);
}

.ec-page--about .ec-hero.wp-designed.wp-hero--panoramic::before {
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.18) 0%, rgba(11, 18, 32, 0.22) 42%, rgba(11, 18, 32, 0.78) 100%),
    var(--wp-hero-overlay, rgba(11, 18, 32, 0.28));
}

.ec-page--about .wp-hero-pano__copy {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.ec-page--about .ec-hero .ec-h1 {
  max-width: none;
  color: var(--wp-heading-color, #fff);
  font-weight: var(--wp-heading-weight, 800);
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.ec-page--about .ec-hero .ec-hero__brand,
.ec-page--about .ec-hero .wp-typo-sub {
  color: var(--about-gold-soft);
}

.ec-page--about .ec-hero .ec-lead,
.ec-page--about .ec-hero .wp-typo-desc {
  color: rgba(255, 255, 255, 0.88);
}

.ec-page--about .ec-btn--primary {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  border-color: transparent;
  color: #1a1408;
  box-shadow: 0 10px 28px rgba(201, 162, 39, 0.28);
}

.ec-page--about .ec-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(201, 162, 39, 0.36);
}

.ec-page--about .ec-btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ── Leaders: video + photos ── */
.about-leaders {
  background:
    radial-gradient(900px 320px at 10% 0%, rgba(201, 162, 39, 0.12), transparent 60%),
    radial-gradient(700px 280px at 100% 80%, rgba(201, 162, 39, 0.08), transparent 55%),
    var(--about-navy);
  color: #fff;
}

.about-leaders .ec-kicker,
.about-leaders .wp-typo-sub { color: var(--about-gold-soft); }
.about-leaders .ec-lead,
.about-leaders .wp-typo-desc { color: rgba(255, 255, 255, 0.78); }

.about-leaders__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
  margin-top: 1.75rem;
}

.about-leaders__video {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #070b14;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(232, 201, 106, 0.16);
}

.about-leaders__video video,
.about-leaders__video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-leaders__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 50% 40%, rgba(201, 162, 39, 0.16), transparent 55%),
    #0d1524;
}

.about-leaders__ph-icon {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 201, 106, 0.45);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--about-gold-soft);
}

.about-leaders__ph strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.about-leaders__ph span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.58);
}

.about-leaders__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.about-leader {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #10182a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 0;
}

.about-leader__media {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(180deg, #1a2438 0%, #0d1524 100%);
  position: relative;
}

.about-leader__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-leader__media--empty::after {
  content: "";
  position: absolute;
  inset: 22% 28% 38%;
  border-radius: 50%;
  background: rgba(232, 201, 106, 0.16);
}

.about-leader__media--empty::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 12%;
  height: 28%;
  border-radius: 40% 40% 0 0;
  background: rgba(232, 201, 106, 0.12);
}

.about-leader figcaption {
  padding: 0.7rem 0.8rem 0.85rem;
}

.about-leader__name {
  display: block;
  font-weight: 800;
  font-size: 0.92rem;
}

.about-leader__role {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

/* ── Stats ── */
.about-stats {
  background:
    radial-gradient(800px 240px at 80% 0%, rgba(201, 162, 39, 0.08), transparent 60%),
    #f7f4ee;
}

.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.35rem);
  margin-top: 2rem;
}

.about-stat {
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 18px;
  padding: 1.35rem 1.15rem 1.25rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.about-stat__num {
  display: block;
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
  font-weight: 900;
  color: var(--about-navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.about-stat__num em {
  font-style: normal;
  color: var(--about-gold);
}

.about-stat__title {
  display: block;
  margin-top: 0.45rem;
  font-weight: 800;
  font-size: 1rem;
}

.about-stat p {
  margin: 0.45rem 0 0;
  color: var(--about-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ── Story / prose ── */
.ec-page--about .about-prose .ec-h2 {
  position: relative;
  padding-bottom: 0.85rem;
}

.ec-page--about .about-prose .ec-h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--about-gold), transparent);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.ec-page--about .about-prose.is-in .ec-h2::after,
.ec-page--about .ec-section.is-in .about-prose .ec-h2::after,
.ec-page--about .ec-section.is-in.about-prose .ec-h2::after {
  width: 3.2rem;
}

.about-closing {
  background: var(--about-navy);
  color: #fff;
  text-align: center;
}

.about-closing .ec-kicker { color: var(--about-gold-soft); }
.about-closing .ec-lead,
.about-closing .wp-typo-desc {
  color: rgba(255, 255, 255, 0.8);
}

.about-closing__quote {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(232, 201, 106, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--about-gold-soft);
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.85;
}

/* ── FAQ accordion (gold / cream, not course-blue) ── */
.ec-page--about .wp-faq__item,
.ec-page--about .wp-sec--faq .wp-faq__item,
.ec-page--about details.wp-faq__item {
  border: 1px solid rgba(201, 162, 39, 0.28) !important;
  background: #fffdf8 !important;
  background-color: #fffdf8 !important;
  border-radius: 14px !important;
}

.ec-page--about .wp-faq__item[open],
.ec-page--about details.wp-faq__item[open] {
  background: #fff8e8 !important;
  background-color: #fff8e8 !important;
  border-color: rgba(201, 162, 39, 0.5) !important;
}

.ec-page--about .wp-faq__num {
  background: var(--about-navy);
}

.ec-page--about .wp-faq__icon {
  border-color: rgba(201, 162, 39, 0.45);
  color: #8a6d12;
}

.ec-page--about .wp-faq__item[open] .wp-faq__icon {
  background: var(--about-gold);
  border-color: var(--about-gold);
  color: #1a1408;
}

.ec-page--about .wp-faq__summary:hover .wp-faq__icon {
  border-color: var(--about-gold);
}

.ec-page--about .wp-faq__body {
  border-top-color: rgba(201, 162, 39, 0.22);
}

.ec-page--about .wp-faq-layout__head {
  max-width: none;
}

/* ── Scroll motion (about page only) ── */
.ec-page--about .ec-section:not(.ec-hero) {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.ec-page--about .ec-section.is-in,
.ec-page--about .ec-section.ec-hero {
  opacity: 1;
  transform: none;
}

.ec-page--about .about-stat {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.ec-page--about .ec-section.is-in .about-stat {
  opacity: 1;
  transform: none;
}

.ec-page--about .ec-section.is-in .about-stat:nth-child(1) { transition-delay: 0.05s; }
.ec-page--about .ec-section.is-in .about-stat:nth-child(2) { transition-delay: 0.14s; }
.ec-page--about .ec-section.is-in .about-stat:nth-child(3) { transition-delay: 0.23s; }

.ec-page--about .about-stat__num em {
  display: inline-block;
  background: linear-gradient(120deg, #b8860b, #e8c96a, #b8860b);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ec-page--about .ec-section.is-in .about-stat__num em {
  animation: about-gold-shift 2.8s ease-in-out infinite;
}

.ec-page--about .about-stat:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
}

.ec-page--about .about-leaders__video,
.ec-page--about .about-leader {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ec-page--about .ec-section.is-in .about-leaders__video {
  opacity: 1;
  transform: none;
}

.ec-page--about .ec-section.is-in .about-leader {
  opacity: 1;
  transform: none;
}

.ec-page--about .ec-section.is-in .about-leader:nth-child(1) { transition-delay: 0.08s; }
.ec-page--about .ec-section.is-in .about-leader:nth-child(2) { transition-delay: 0.16s; }
.ec-page--about .ec-section.is-in .about-leader:nth-child(3) { transition-delay: 0.24s; }

.ec-page--about .about-leader {
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.ec-page--about .about-leader:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.ec-page--about .about-hl {
  color: inherit;
  background: none;
  background-image: none;
  padding: 0;
}

.ec-page--about .about-closing__quote {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s, box-shadow 0.4s ease;
}

.ec-page--about .ec-section.is-in .about-closing__quote {
  opacity: 1;
  transform: none;
  box-shadow: 0 0 0 1px rgba(232, 201, 106, 0.2), 0 12px 40px rgba(201, 162, 39, 0.08);
}

.ec-page--about .wp-faq__item {
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease !important;
}

.ec-page--about .wp-faq__item[open] {
  transform: translateY(-2px);
}

@keyframes about-gold-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .ec-page--about .ec-section:not(.ec-hero),
  .ec-page--about .about-stat,
  .ec-page--about .about-leaders__video,
  .ec-page--about .about-leader,
  .ec-page--about .about-closing__quote,
  .ec-page--about .about-hl,
  .ec-page--about .about-prose .ec-h2::after {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    width: 3.2rem;
    background-size: 100% 100%;
  }
}

@media (max-width: 900px) {
  .ec-page--about .ec-hero.wp-designed.wp-hero--panoramic {
    min-height: min(62vh, 520px);
  }

  .about-leaders__grid {
    grid-template-columns: 1fr;
  }

  .about-stats__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-leaders__photos {
    grid-template-columns: 1fr 1fr;
  }
}
