/* Homepage hero options (Oct 29): four treatments of the same copy, built around Temple's
   "Hardy Williams at microphone" (Evening Bulletin, May 18, 1971). Team page only (hero-lab-3.html).
   Brand kit colors only: navy #011F5B, Commonwealth Yellow #FFCE00 (fill), Royal Purple #6D2077. */

.hx-lab { background: #011F5B; color: #fff; }
.hx-lab .wrap { padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; }
.hx-lab h1 { font: 700 22px/1.2 var(--serif); margin: 0; color: #fff; }
.hx-lab p { margin: 0; font: 400 16px/1.5 var(--sans); color: #E9E4D8; }
.hx-lab nav { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-lab nav a { color: #011F5B; background: #FFCE00; font: 700 15px/1 var(--sans); padding: 9px 12px; border-radius: 999px; text-decoration: none; }
.hx-lab nav a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.hx-label { background: #111; color: #FFCE00; font: 700 14px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.hx-label .wrap { padding-block: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.hx-label span { color: #E9E4D8; letter-spacing: 0; text-transform: none; font-weight: 500; }

/* shared hero type */
.hx { position: relative; overflow: hidden; color: #fff; background: #0c0d10; isolation: isolate; }
.hx__eyebrow { margin: 0 0 14px; font: 700 15px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #FFCE00; }
.hx__title { margin: 0 0 18px; font: 700 clamp(38px, 5.4vw, 74px)/1.04 var(--serif); color: #fff; text-wrap: balance; max-width: 12em; }
.hx__roles { margin: 0 0 28px; font: 500 clamp(18px, 1.6vw, 22px)/1.5 var(--sans); color: #E9E4D8; max-width: 30em; }
.hx__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hx .btn--outline { background: transparent; color: #fff; border-color: #fff; }
.hx .btn--outline:hover, .hx .btn--outline:focus-visible { background: #FFCE00; color: #011F5B; border-color: #FFCE00; }
.hx .btn--gold { background: #FFCE00; color: #011F5B; border-color: #FFCE00; }
.hx a:focus-visible, .hx button:focus-visible { outline: 3px solid #FFCE00; outline-offset: 3px; }
.hx__credit { position: absolute; right: max(16px, var(--gutter)); bottom: 12px; z-index: 3; margin: 0; max-width: 34em; text-align: right;
  font: 400 13px/1.4 var(--sans); color: rgba(255,255,255,.82); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.hx__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }

/* ---------- A: full photo, gentle parallax ---------- */
.hx-a { min-height: min(88vh, 860px); display: flex; align-items: center; background: #011F5B; }
.hx-a .hx__img { width: 66%; height: 118%; top: -9%; object-position: 50% 30%; will-change: transform; }   /* Hardy is centered in the print, so he gets the left two-thirds */
.hx-a::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(1,31,91,0) 42%, rgba(1,31,91,.85) 60%, #011F5B 66%); }
.hx-a .wrap { width: 100%; display: flex; justify-content: flex-end; padding-block: 72px; }
.hx-a .hx__copy { max-width: 600px; }

/* ---------- B: full photo, slow zoom (pausable) ---------- */
.hx-b { min-height: min(88vh, 860px); display: flex; align-items: flex-end; }
.hx-b .hx__img { object-position: 50% 68%; transform-origin: 50% 20%; animation: hx-zoom 24s ease-in-out infinite alternate; }
.hx-b.is-paused .hx__img { animation-play-state: paused; }
@keyframes hx-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.hx-b::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(10,10,12,.94) 0, rgba(10,10,12,.82) 34%, rgba(10,10,12,0) 58%); }
.hx-b .wrap { width: 100%; padding-block: 0 84px; }
.hx-b .hx__title { max-width: 21em; font-size: clamp(36px, 4.4vw, 62px); }
.hx-b .wrap { padding-block: 0 64px; }

.hx-pause { position: absolute; z-index: 4; top: 18px; right: max(16px, var(--gutter)); display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 2px solid #fff; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff;
  font: 700 15px/1 var(--sans); cursor: pointer; }
.hx-pause:hover { background: #FFCE00; color: #011F5B; border-color: #FFCE00; }

/* ---------- C: slider (crossfade, pausable, no autoplay for reduced motion) ---------- */
.hx-c { min-height: min(88vh, 860px); display: flex; align-items: center; background: #6D2077; }
.hx-c .hx__slide { position: absolute; top: 0; bottom: 0; right: 0; width: 66%; z-index: -2; opacity: 0; transition: opacity 1.2s ease; }
.hx-c .hx__slide.is-on { opacity: 1; }
.hx-c .hx__slide img { width: 100%; height: 100%; object-fit: cover; }
.hx-c::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #6D2077 34%, rgba(109,32,119,.85) 40%, rgba(109,32,119,0) 58%); }
.hx-c .wrap { width: 100%; padding-block: 72px 96px; }
.hx-c .hx__copy { max-width: 600px; }
.hx-dots { position: absolute; z-index: 4; left: max(16px, var(--gutter)); bottom: 22px; display: flex; gap: 10px; align-items: center; }
.hx-dots button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; padding: 0; }
.hx-dots button span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: transparent; }
.hx-dots button[aria-current="true"] span { background: #FFCE00; border-color: #FFCE00; }
.hx-c .hx__credit { bottom: 28px; }
.hx-c .hx__cap { position: absolute; z-index: 3; right: max(16px, var(--gutter)); bottom: 80px; margin: 0; max-width: 26em; text-align: right;
  font: 600 15px/1.4 var(--sans); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }

/* ---------- D: split ---------- */
.hx-d { background: #011F5B; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: min(80vh, 760px); }
.hx-d .hx__copy { padding: 72px var(--gutter) 72px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); align-self: center; }
.hx-d .hx__photo { position: relative; min-height: 420px; }
.hx-d .hx__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hx-d .hx__photo::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: #FFCE00; }
.hx-d .hx__credit { position: static; text-align: left; margin-top: 26px; color: #C9D3E8; text-shadow: none; }

/* phones: photo first, words below, so the face is never covered */
@media (max-width: 760px) {
  .hx-a, .hx-b, .hx-c { min-height: 0; display: block; }
  .hx-a .hx__img, .hx-b .hx__img { position: relative; width: 100%; height: 58vh; min-height: 300px; top: 0; transform: none !important; animation: none; }
  .hx-c .hx__slide { position: absolute; inset: 0 0 auto; width: 100%; height: 58vh; min-height: 300px; }
  .hx-c { padding-top: max(58vh, 300px); }
  .hx-a::before, .hx-b::before, .hx-c::before { background: linear-gradient(0deg, #0c0d10 0, rgba(12,13,16,0) 30%); height: max(58vh, 300px); bottom: auto; }
  .hx-a .wrap, .hx-b .wrap, .hx-c .wrap { padding-block: 26px 64px; display: block; }
  .hx-a { background: #011F5B; } .hx-c { background: #6D2077; }
  .hx-c .hx__cap { position: static; text-align: left; margin: 0 0 6px; padding: 0 var(--gutter); }
  .hx-dots { top: calc(max(58vh, 300px) - 58px); bottom: auto; }
  .hx-d { grid-template-columns: 1fr; }
  .hx-d .hx__photo { order: -1; min-height: 52vh; }
  .hx-d .hx__photo::after { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 10px; }
  .hx-d .hx__copy { padding: 30px var(--gutter) 48px; }
  .hx__credit { position: static; text-align: left; padding: 0 var(--gutter) 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-b .hx__img { animation: none; }
  .hx-c .hx__slide { transition: none; }
}

/* Oct 29: on the homepage slider the caption and credit sit on a dark backing, so they read over any photo */
.hx-c .hx__cap, .hx-c .hx__credit { background: rgba(10,10,12,.72); padding: 6px 10px; border-radius: 4px; text-shadow: none; }
.hx-c .hx__credit { color: #E9E4D8; }
@media (max-width: 760px) { .hx-c .hx__cap, .hx-c .hx__credit { background: none; padding-left: var(--gutter); padding-right: var(--gutter); } }

/* Oct 29: homepage slides for three times in his life. The 1952 yearbook scan is small, so it is shown
   as a mounted print on the purple instead of being stretched; the family photo is centered on Hardy. */
.hx-c .hx__slide--print { display: grid; place-items: center; }
.hx-c .hx__slide--print img { width: auto; height: auto; max-height: 70%; max-width: 70%; object-fit: contain;
  border: 12px solid #FBF8F1; box-shadow: 0 24px 50px rgba(0,0,0,.45); transform: rotate(-2deg); }
.hx-c .hx__slide--family img { object-position: 62% 30%; }
@media (max-width: 760px) { .hx-c .hx__slide--print img { max-height: 82%; border-width: 8px; } }

/* Oct 29 (later): no text pill. Pause/play is a small icon at the end of the dots, and the caption reads as a
   photo caption: light text on a soft shade at the foot of the photo (desktop), a line right under it (phones). */
.hx-c .hx__slide::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(0deg, rgba(10,10,12,.6), rgba(10,10,12,0)); pointer-events: none; }
.hx-c .hx__cap { background: none; padding: 0; border-radius: 0; bottom: 34px; max-width: 30em; font: 500 13px/1.45 var(--sans); color: #F3EFE6; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.hx-dots__pause { margin-left: 6px; }
.hx-dots .hx-dots__pause span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center;
  background: no-repeat center / 10px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='%23fff' d='M1.5 0h2.5v10H1.5zM6 0h2.5v10H6z'/%3E%3C/svg%3E"); }
.hx-dots .hx-dots__pause.is-paused span { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='%23fff' d='M2 0l8 5-8 5z'/%3E%3C/svg%3E"); background-position: 55% center; }
.hx-dots .hx-dots__pause:hover span, .hx-dots .hx-dots__pause:focus-visible span { border-color: #FFCE00; }
@media (max-width: 760px) {
  .hx-c .hx__slide::after { height: 40%; }
  .hx-c .hx__slide--print img { max-height: calc(max(58vh, 300px) * .8); }
  .hx-c .hx__cap { position: static; text-align: left; max-width: none; padding: 12px var(--gutter) 0; font-size: 13px; color: #E6D6EA; text-shadow: none; }
}
