/* Wave-11 (2026-10-12): president portrait. The img width/height attrs (1206x1485) gave it a definite
   1485px height above 480px, so it rendered as a giant strip. Show the full-body photo uncropped at its
   natural ratio, sized to sit beside the bio. */
.portrait { width: min(470px, 100%); }
.portrait img, .portrait__trigger img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1206 / 1485;
  object-fit: contain;
  object-position: 50% 50%;
}
.portrait__trigger:hover img, .portrait__trigger:focus-visible img { transform: none; }
.portrait__trigger { border-color: rgba(0, 229, 255, 0.22); border-radius: 22px; }
.portrait__trigger img { border-radius: 21px; }
.portrait__glow {
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.28), 0 24px 56px rgba(0, 0, 0, 0.55), 0 0 44px rgba(0, 150, 255, 0.22), 0 0 90px rgba(0, 229, 255, 0.08);
}
@media (max-width: 1023px) { .portrait { width: min(420px, 100%); } }
@media (max-width: 480px) {
  .leadership .leadership__portrait .portrait { width: min(300px, 80vw); }
  .leadership .leadership__portrait .portrait img,
  .leadership .leadership__portrait .portrait__trigger img {
    width: 100%; height: auto; max-height: none;
    aspect-ratio: 1206 / 1485; object-fit: contain; object-position: 50% 50%;
  }
}

/* Wave-11 overnight (2026-10-13): About photo — same HTML width/height attr trap as the president
   portrait. Above 480px the 720px height attribute won, so the frame rendered ~720px tall (tablet/
   desktop) instead of a 4:3 card. Phone rules in phone.css already set height:auto. */
@media (min-width: 481px) {
  .about__frame img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center top;
  }
}

/* Wave-11 overnight: Back to top — soft chrome only (no copy/layout). Helps long-page exploration.
   Lifts above the mobile sticky CTA when that bar is visible. */
.back-to-top {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 48;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 180, 255, 0.35);
  background: rgba(10, 14, 22, 0.72);
  color: var(--cyan, #00d2ff);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 180, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.2s ease, color 0.2s ease;
}
.back-to-top[hidden] { display: none !important; }
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: rgba(0, 229, 255, 0.65);
  color: #fff;
}
.back-to-top:focus-visible {
  outline: 2px solid var(--cyan, #00d2ff);
  outline-offset: 3px;
}
.back-to-top__label { font-family: inherit; }
@media (max-width: 959px) {
  body.has-mobile-cta .back-to-top {
    bottom: calc(72px + env(safe-area-inset-bottom) + 10px);
  }
  .back-to-top__label {
    position: absolute;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
  }
  .back-to-top {
    width: 44px;
    padding: 0;
    font-size: 1.05rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; transform: none; }
  .back-to-top.is-visible { transform: none; }
}
