/* =========================================================================
   04 · Founders — rebuilt from the Framer "DirectorsReveal" component
   Two portrait panels; the active one widens and shows name, role, bio.
   Scroll (pinned) or hover switches the director.
   ========================================================================= */
.sec.sec-white { background: #FFFFFF; }
.sec-heading { width: min(1280px, 100%); margin: 0; font-size: 48px; font-weight: 400; line-height: 1.2; color: #011E41; }

.dr { position: relative; width: min(1280px, 100%); min-width: 280px; height: 900px; } /* 600 panel + 300 scroll per director */
.dr-pin { position: sticky; top: 120px; }
.dr-row { display: flex; flex-direction: row; gap: 16px; }
.dr-panel {
  position: relative; flex: 1 1 0%; min-width: 0; height: 600px; border-radius: 22px; overflow: hidden; cursor: pointer; background: #0B1B3F; outline: none;
  transition: flex .9s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .6s ease;
}
.dr-panel.is-on { flex: 2.4 1 0%; cursor: default; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.dr-panel:focus-visible { box-shadow: 0 0 0 2px #C8A96A; }
.dr-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); filter: grayscale(.45) brightness(.55);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), filter .8s ease;
}
.is-on .dr-photo { transform: scale(1.02); filter: none; }
.dr-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 11, 24, .92) 0%, rgba(5, 11, 24, .92) 18%, transparent 68%); opacity: .7; transition: opacity .6s ease; pointer-events: none; }
.is-on .dr-shade { opacity: 1; }

/* closed panel: name standing up on the left */
.dr-fold {
  position: absolute; left: 26px; bottom: 30px; writing-mode: vertical-rl; transform: rotate(180deg); font-style: italic; font-weight: 400; font-size: 30px;
  letter-spacing: .5px; color: #FFFFFF; white-space: nowrap; opacity: 1; transition: opacity .4s ease .35s; pointer-events: none;
}
.is-on .dr-fold { opacity: 0; transition-delay: 0s; }
.dr-fold-m { display: none; }

/* open panel: name, gold line, role, bio, button */
.dr-info {
  position: absolute; left: 45px; right: 45px; bottom: 45px; max-width: 400px; display: flex; flex-direction: column; justify-content: flex-end; color: #FFFFFF;
  opacity: 0; transform: translateY(24px); transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.is-on .dr-info { opacity: 1; transform: none; pointer-events: auto; transition: opacity .6s ease .35s, transform .8s cubic-bezier(0.22, 1, 0.36, 1) .35s; }
.dr-name { font-style: italic; font-weight: 600; font-size: 40px; line-height: 1.1; letter-spacing: -.3px; }
.dr-line { height: 2px; width: 0; background: #C8A96A; margin: 18px 0; transition: width .8s cubic-bezier(0.22, 1, 0.36, 1) 0s; }
.is-on .dr-line { width: 56px; transition-delay: .55s; }
.dr-role { font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #C8A96A; }
.dr-bio { margin-top: 12px; font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, .78); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dr-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 10px 20px; border-radius: 999px; border: 1px solid #C8A96A; background: transparent; color: #FFFFFF;
  font-size: 12.5px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; text-decoration: none; align-self: flex-start;
  transition: background .3s ease, color .3s ease;
}
.dr-link:hover { background: #C8A96A; color: #0F1B3D; }
.dr-link span { display: inline-block; transition: transform .25s ease; }
.dr-link:hover span { transform: translateX(4px); }

.dr-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dr-dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(128, 128, 128, .3); transition: width .5s cubic-bezier(0.22, 1, 0.36, 1), background .5s ease; }
.dr-dots span.is-on { width: 22px; background: #C8A96A; }

@media (max-width: 899.98px) { .sec-heading { font-size: 40px; } }

/* phone / small tablet: panels stack, the open one is tall, the other folds to a 96px strip */
@media (max-width: 767.98px) {
  .sec-heading { font-size: 34px; }
  .dr { height: 892px; } /* (480 + 96 + 16) + 300 */
  .dr-pin { top: 90px; }
  .dr-row { flex-direction: column; }
  .dr-panel, .dr-panel.is-on { flex: none; width: 100%; height: 96px; transition: height .8s cubic-bezier(0.22, 1, 0.36, 1); }
  .dr-panel.is-on { height: 480px; }
  .dr-fold { display: none; }
  .dr-fold-m {
    position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: center; justify-content: space-between;
    opacity: 1; transition: opacity .4s ease; pointer-events: none;
  }
  .dr-fold-m b { font-style: italic; font-weight: 400; font-size: 22px; color: #FFFFFF; }
  .dr-fold-m i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #C8A96A; color: #C8A96A; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 18px; line-height: 1; }
  .is-on .dr-fold-m { opacity: 0; }
  .dr-info { left: 20px; right: 20px; bottom: 22px; }
  .dr-name { font-size: 32px; }
  .dr-line { margin: 14px 0; }
  .dr-bio { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .dr-panel, .dr-photo, .dr-info, .dr-line, .dr-fold { transition: none !important; }
}
