/* ==========================================================================
   Home hero — reference design of 25 Oct 2026 (sections/di-home-hero.php, hz-)

   Loaded on "/" only, after home-di.css. Measurements are taken from the
   owner's 1647 × 927 reference and scale with the viewport (clamp / %), so
   1440–1680 px desktops match it closely and smaller screens reflow.

   Layers (z-index inside the hero):
     0 atmosphere (glow, beam)  ·  1 dusk band photo  ·  2 hero photograph
     3 rail, mission line  ·  4 copy  ·  5 glass cards
   The header, results strip and floating buttons sit above the hero as
   before (shell.css, shell-plus.css).
   ========================================================================== */
.hz {
  --hz-navy-950: #00101f;
  --hz-navy-900: #001a32;
  --hz-blue-500: #0784c8;
  --hz-cyan-400: #4bcaff;
  --hz-gold-700: #b88618;
  --hz-gold-500: #f4c542;
  --hz-gold-400: #ffd968;
  --hz-gold-300: #ffe9a6;
  --hz-muted: #d6e4f4;
  --hz-border: rgb(58 166 230 / 0.45);
  --hz-glass: rgb(0 25 48 / 0.82);
  --hz-gold-grad: linear-gradient(180deg, #ffe9a6 0%, #f4c542 42%, #d9a12c 70%, #b88618 100%);
  --hz-pad-x: clamp(1.25rem, 8.2vw, 8.5rem);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(min(100svh, 60rem), 46rem);
  padding-top: calc(4.5rem + clamp(1.25rem, 2.6vw, 2.75rem));
  padding-bottom: clamp(7rem, 11vw, 8.25rem);
  background:
    radial-gradient(48% 60% at 18% 42%, rgb(10 46 86 / 0.75), transparent 72%),
    radial-gradient(40% 55% at 84% 30%, rgb(7 132 200 / 0.22), transparent 70%),
    linear-gradient(180deg, #000d1b 0%, var(--hz-navy-950) 30%, var(--hz-navy-900) 70%, #001426 100%);
  color: #fff;
}
.shell-header.has-ticker ~ main .hz { padding-top: calc(4.5rem + 3.75rem + clamp(1.25rem, 2.6vw, 2.75rem)); }
.shell-header ~ main .hz--second { padding-top: clamp(3.5rem, 6vw, 5rem); }

/* --- Atmosphere --------------------------------------------------------- */
.hz-atmos { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hz-glow { position: absolute; left: -10%; top: 10%; width: 60%; height: 80%; background: radial-gradient(closest-side, rgb(75 202 255 / 0.10), transparent); }
.hz-beam {
  position: absolute; top: -18%; left: 48%; width: 7rem; height: 85%;
  transform: rotate(32deg); transform-origin: top center;
  background: linear-gradient(180deg, rgb(255 233 166 / 0.22), rgb(255 233 166 / 0.05) 45%, transparent 80%);
  filter: blur(22px);
}

/* A faint photograph of the GTO ground behind the left column (the
   reference's low-opacity training scene), fading into the navy. */
.hz-scene { position: absolute; left: 0; bottom: 0; width: 55%; height: 75%; opacity: 0.16; filter: saturate(0.3) contrast(1.1);
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 85%), linear-gradient(90deg, #000 30%, transparent 95%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(0deg, #000 10%, transparent 85%); mix-blend-mode: luminosity; }
.hz-scene picture, .hz-scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }

/* --- Left rail ------------------------------------------------------------- */
.hz-rail {
  position: absolute; z-index: 3; left: clamp(1.1rem, 4.8vw, 5.2rem); top: calc(4.5rem + 3.75rem + 2.5rem); bottom: 8.5rem;
  display: none; flex-direction: column; align-items: center; gap: 0.9rem;
}
.hz-rail-line { flex: 1; width: 1px; background: linear-gradient(180deg, transparent, rgb(244 197 66 / 0.75)); }
.hz-rail-line--low { background: linear-gradient(180deg, rgb(244 197 66 / 0.75), transparent); }
.hz-rail-diamond { width: 7px; height: 7px; border: 1px solid var(--hz-gold-500); transform: rotate(45deg); }
.hz-rail span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: rgb(214 228 244 / 0.82); white-space: nowrap;
}
@media (min-width: 1440px) { .hz-rail { display: flex; } }

/* --- Layout ------------------------------------------------------------------- */
.hz-inner { position: relative; z-index: 4; display: grid; gap: 2rem; padding-inline: var(--hz-pad-x); }
@media (min-width: 1024px) {
  .hz-inner { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: 0; padding-right: 0; min-height: clamp(32rem, 36vw, 37rem); }
}

/* --- Copy ---------------------------------------------------------------- */
.hz-copy { position: relative; z-index: 4; max-width: 38rem; }
.hz-eyebrow {
  display: flex; align-items: center; gap: 1rem; margin: 0 0 clamp(1rem, 1.6vw, 1.5rem);
  font-family: var(--font-sans, Inter, sans-serif); font-size: clamp(0.66rem, 0.55rem + 0.25vw, 0.8rem); font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--hz-gold-500); white-space: nowrap;
}
.hz-eyebrow-rule { flex: none; width: 2.75rem; height: 2px; background: var(--hz-gold-500); }
.hz-title {
  margin: 0; font-family: var(--font-display, Manrope, sans-serif);
  font-size: clamp(2.9rem, 1rem + 3.6vw, 4.85rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.045em;
}
.hz-line { display: block; overflow: hidden; padding-bottom: 0.04em; white-space: nowrap; }
.hz-line > span { display: inline-block; color: #fff; text-shadow: 0 2px 30px rgb(0 0 0 / 0.35); }
.hz-gold > span {
  background: var(--hz-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 6px 18px rgb(184 134 24 / 0.28));
}
.hz-lead {
  max-width: 33.5rem; margin: clamp(0.9rem, 1.4vw, 1.35rem) 0 0;
  font-size: clamp(0.98rem, 0.9rem + 0.22vw, 1.08rem); line-height: 1.6; color: var(--hz-muted);
}

/* Principles strip */
.hz-points {
  display: flex; align-items: center; margin: clamp(1.1rem, 1.7vw, 1.6rem) 0 0; padding: 0.7rem 0.55rem; list-style: none;
  width: fit-content; max-width: 100%;
  border: 1px solid var(--hz-border); border-radius: 12px;
  background: linear-gradient(180deg, rgb(0 36 64 / 0.55), rgb(0 26 50 / 0.35));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
}
.hz-points li { display: flex; align-items: center; gap: 0.75rem; padding: 0 1.05rem; font-size: 0.84rem; font-weight: 600; line-height: 1.3; color: #fff; white-space: nowrap; }
.hz-points li + li { border-left: 1px solid rgb(58 166 230 / 0.32); }
.hz-points-more a { display: grid; place-items: center; border-radius: 50%; color: inherit; }
.hz-points-more a:hover .hz-icon { background: rgb(244 197 66 / 0.16); }
.hz-points-more a:focus-visible { outline: 2px solid var(--hz-gold-400); outline-offset: 3px; }
.hz-icon {
  display: inline-grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1.5px solid rgb(244 197 66 / 0.85); color: var(--hz-gold-400);
  background: radial-gradient(circle, rgb(244 197 66 / 0.08), transparent 70%);
  box-shadow: 0 0 14px rgb(244 197 66 / 0.14);
}
.hz-icon--lg { width: 3rem; height: 3rem; }

/* Buttons */
.hz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: clamp(1.1rem, 1.7vw, 1.6rem); }
.hz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.05rem; padding: 0 1.65rem;
  border-radius: 999px; font-size: 1.02rem; font-weight: 800; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast, 150ms) ease, box-shadow var(--dur-base, 250ms) ease, background var(--dur-base, 250ms) ease;
}
.hz-btn svg { transition: transform var(--dur-fast, 150ms) ease; }
.hz-btn:hover { transform: translateY(-2px); }
.hz-btn:hover svg { transform: translateX(3px); }
.hz-btn--gold { background: linear-gradient(180deg, #ffe08a, #f4c542 55%, #d9a12c); color: var(--hz-navy-950); box-shadow: 0 0 0 1px rgb(255 233 166 / 0.6) inset, 0 12px 30px -10px rgb(244 197 66 / 0.65); }
.hz-btn--line { border: 1.5px solid rgb(255 233 166 / 0.85); color: #fff; background: rgb(0 16 31 / 0.4); }
.hz-btn--line:hover { background: rgb(244 197 66 / 0.1); }
.hz-btn:focus-visible { outline: 3px solid var(--hz-gold-300); outline-offset: 3px; }
.hz-more { margin: 0; }
.hz .hz-brochure, .hz .pf-brochure > summary.hz-brochure {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0; background: none; border: 0;
  font-size: 0.86rem; font-weight: 700; color: var(--hz-gold-300); text-decoration: underline; text-decoration-color: rgb(255 233 166 / 0.35); text-underline-offset: 4px; cursor: pointer;
}
.hz .hz-brochure .pf-brochure-meta { color: rgb(214 228 244 / 0.7); font-weight: 600; text-decoration: none; }
.hz .pf-brochure-menu { left: 0; right: auto; }

/* --- Photograph -------------------------------------------------------- */
.hz-visual { position: relative; z-index: 2; min-height: 22rem; }
.hz-frame-wrap { position: relative; }
.hz-frame {
  position: relative; height: clamp(18rem, 70vw, 26rem); border-radius: 22px; overflow: hidden;
  border: 2px solid rgb(244 197 66 / 0.9);
  box-shadow: 0 0 0 1px rgb(255 233 166 / 0.25), 0 0 26px rgb(244 197 66 / 0.35), -6px 10px 40px rgb(75 202 255 / 0.18), 0 40px 80px -30px rgb(0 0 0 / 0.8);
}
.hz-frame-in { position: absolute; inset: 0; }
.hz-frame-in picture, .hz-frame-in > img { display: block; width: 100%; height: 100%; }
.hz-photo { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.hz-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(0 16 31 / 0.35), transparent 35%), linear-gradient(0deg, rgb(0 16 31 / 0.35), transparent 30%); }
@media (min-width: 1024px) {
  .hz-visual { position: absolute; z-index: 2; inset: calc(-1 * clamp(0.75rem, 1.6vw, 1.6rem)) 0 clamp(0.5rem, 1.6vw, 1.5rem) auto; width: 57.5%; min-height: 0; }
  .hz-frame-wrap { position: absolute; inset: 0; }
  /* An angled panel: rotated and skewed, so its rounded corners and its gold
     edge follow the slanted silhouette; the photograph is counter-transformed
     so the trainee stays upright and undistorted. */
  .hz-frame {
    position: absolute; left: 5%; top: 6%; right: -12%; bottom: 3%; height: auto;
    border-radius: 34px; transform: rotate(-2.5deg) skewX(-12deg); transform-origin: 0 100%;
    border-right: 0;
  }
  .hz-frame-in { inset: -6% -6% -6% -22%; transform: skewX(12deg) rotate(2.5deg); }
}

/* Mission line */
.hz-mission {
  position: absolute; z-index: 3; right: 2.4%; top: 5%; margin: 0; transform: rotate(-9deg);
  font-family: "Caveat", "Segoe Script", cursive; font-size: clamp(1.1rem, 0.55rem + 0.9vw, 1.6rem); font-weight: 600; line-height: 1.05; text-align: right; color: #fff;
  text-shadow: 0 2px 12px rgb(0 16 31 / 0.85);
}
.hz-mission::after { content: ""; display: block; width: 72%; height: 3px; margin: 0.35rem 0 0 auto; border-radius: 3px; background: var(--hz-gold-grad); transform: rotate(-4deg); }
@media (max-width: 1023px) { .hz-mission { top: 0.75rem; right: 1rem; font-size: 1.05rem; } }

/* --- Glass cards ----------------------------------------------------------- */
.hz-card {
  position: absolute; z-index: 5; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.9rem;
  padding: 0.85rem 0.95rem; border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, rgb(0 36 64 / 0.9), var(--hz-glass));
  border: 1px solid var(--hz-border);
  box-shadow: 0 0 22px rgb(75 202 255 / 0.16), 0 18px 40px -18px rgb(0 0 0 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform var(--dur-base, 250ms) ease, border-color var(--dur-base, 250ms) ease, box-shadow var(--dur-base, 250ms) ease;
}
.hz-card:hover { transform: translateY(-3px); border-color: rgb(75 202 255 / 0.75); box-shadow: 0 0 28px rgb(75 202 255 / 0.28), 0 22px 44px -18px rgb(0 0 0 / 0.8); }
.hz-card:focus-visible { outline: 3px solid var(--hz-gold-400); outline-offset: 3px; }
.hz-card-text { display: grid; gap: 0.12rem; min-width: 0; }
.hz-card-num { font-family: var(--font-display, Manrope, sans-serif); font-size: 0.95rem; font-weight: 800; line-height: 1; color: var(--hz-gold-400); }
.hz-card-title { font-family: var(--font-display, Manrope, sans-serif); font-size: 1.08rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.hz-card--one .hz-card-title, .hz-card--two .hz-card-title, .hz-card-sub { white-space: nowrap; }
.hz-card-sub { margin-top: 0.25rem; font-size: 0.76rem; line-height: 1.35; color: rgb(214 228 244 / 0.82); }
.hz-card-go { color: #fff; }
.hz-card--one { left: 7%; top: 5%; width: min(19.5rem, 34%); }
.hz-card--path { right: 3%; top: 33%; width: min(15.25rem, 28%); }
.hz-card--path .hz-card-title { font-size: 1.05rem; }
.hz-card--two { right: 19%; top: 72%; width: auto; }
@media (max-width: 1023px) {
  .hz-visual { display: grid; gap: 0.75rem; }
  .hz-card { position: static; width: auto; }
}

/* --- Bottom band: approved figures over the GTO ground at dusk --------------- */
.hz-band { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: clamp(7.5rem, 11vw, 9.5rem); }
.hz-band-photo { position: absolute; inset: 0; overflow: hidden; }
.hz-band-photo picture, .hz-band-photo img { display: block; width: 100%; height: 100%; }
.hz-band-photo img { object-fit: cover; object-position: 50% 62%; opacity: 0.55; }
.hz-band::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, var(--hz-navy-900) 0%, rgb(0 26 50 / 0.55) 35%, rgb(0 16 31 / 0.72) 100%),
    linear-gradient(90deg, rgb(0 16 31 / 0.85), rgb(0 16 31 / 0.2) 55%, rgb(0 16 31 / 0.6));
}
.hz-band-inner {
  position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-inline: calc(var(--hz-pad-x) + clamp(0rem, 10vw, 11rem)) var(--hz-pad-x);
}
.hz-stats {
  display: flex; align-items: center; margin: 0; padding: 0.8rem 1.25rem; list-style: none;
  border-radius: 14px; background: rgb(0 20 40 / 0.62); border: 1px solid rgb(58 166 230 / 0.28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hz-stats li { display: flex; align-items: center; gap: 0.85rem; padding: 0 clamp(1rem, 2.4vw, 2.6rem); }
.hz-stats li + li { border-left: 1px solid rgb(58 166 230 / 0.32); }
.hz-stat { display: grid; gap: 0.1rem; }
.hz-stat strong { font-family: var(--font-display, Manrope, sans-serif); font-size: clamp(1.35rem, 1rem + 0.9vw, 1.8rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.hz-stat > span { font-size: 0.82rem; color: rgb(214 228 244 / 0.85); white-space: nowrap; }
.hz-motto { display: grid; gap: 0.35rem; margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.32em; text-transform: uppercase; color: var(--hz-gold-400); }
.hz-motto i { display: block; width: 7.5rem; height: 3px; margin-top: 0.35rem; border-radius: 3px; background: linear-gradient(90deg, #ff9933 0 33%, #fff 33% 66%, #138808 66%); opacity: 0.9; }

/* --- Laptop ---------------------------------------------------------------- */
@media (min-width: 1024px) and (max-width: 1439px) {
  .hz-points li { min-width: 0; white-space: normal; }
  .hz-points li.hz-points-more { flex: none; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .hz { --hz-pad-x: clamp(1.5rem, 4vw, 3rem); }
  .hz-points li { padding: 0 0.55rem; font-size: 0.74rem; gap: 0.45rem; }
  .hz-points li.hz-points-more { padding-right: 0.2rem; }
  .hz-icon { width: 2.2rem; height: 2.2rem; }
  .hz-icon--lg { width: 2.5rem; height: 2.5rem; }
  .hz-card { padding: 0.7rem 0.8rem; gap: 0.6rem; }
  .hz-card-title { font-size: 0.95rem; }
  .hz-card--one .hz-card-title, .hz-card--two .hz-card-title { white-space: normal; }
  .hz-card--one { width: 42%; }
  .hz-card--path { width: 33%; }
  .hz-card--two { width: 34%; right: 6%; }
  .hz-band-inner { padding-inline: var(--hz-pad-x); }
}
@media (min-width: 1024px) and (max-width: 1279px) { .hz-motto { display: none; } }

/* --- Tablet and phone ---------------------------------------------------------- */
@media (max-width: 1023px) {
  .hz-scene { display: none; }
  .hz { min-height: 0; padding-bottom: 0; }
  .hz-inner { padding-bottom: 2rem; }
  .hz-copy { max-width: 40rem; }
  .hz-band { position: relative; height: auto; }
  .hz-band-inner { flex-direction: column; align-items: stretch; padding: 1.5rem var(--hz-pad-x) 1.75rem; }
  .hz-stats { flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 0; padding: 0.9rem; }
  .hz-stats li { padding: 0 0.5rem; flex: 1 1 9rem; }
  .hz-motto { align-self: flex-start; }
}
@media (max-width: 640px) {
  .hz-title { font-size: clamp(2.65rem, 1.3rem + 7vw, 3.4rem); }
  .hz-eyebrow { white-space: normal; letter-spacing: 0.22em; line-height: 1.5; }
  .hz-points { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 0.85rem 0; padding: 0.9rem 0.25rem; }
  .hz-points li { padding: 0 0.6rem; white-space: normal; }
  .hz-points li + li { border-left: 0; }
  .hz-points li:nth-child(even) { border-left: 1px solid rgb(58 166 230 / 0.32); }
  .hz-points-more { justify-content: flex-start; }
  .hz-actions { gap: 0.75rem; }
  .hz-btn { flex: 1 1 100%; }
  .hz-stats li { flex: 1 1 100%; }
  .hz-stats li + li { border-left: 0; border-top: 1px solid rgb(58 166 230 / 0.25); padding-top: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hz-btn, .hz-btn svg, .hz-card { transition: none; }
  .hz-btn:hover, .hz-card:hover { transform: none; }
}

/* Download Brochure (2026-10-29, client corrections §7): a real button in the
   hero's button row. With several brochures its menu opens in the page, as a
   solid card, so the hero's edge can never clip it. */
.hz .hz-btn--ghost, .hz .pf-brochure > summary.hz-btn--ghost {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 3.05rem; padding: 0 1.4rem; text-decoration: none;
  border: 1.5px solid rgb(214 228 244 / 0.4); color: #fff; background: rgb(255 255 255 / 0.06); font-size: 1rem;
}
.hz .hz-btn--ghost:hover, .hz .pf-brochure[open] > summary.hz-btn--ghost { background: rgb(255 255 255 / 0.12); border-color: rgb(255 233 166 / 0.8); }
.hz .hz-btn--ghost .pf-brochure-meta { display: none; }
.hz .pf-brochure { display: inline-block; }
.hz .pf-brochure-menu { position: static; margin-top: 0.6rem; min-width: min(21rem, 100%); background: #fff; box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.6); }
@media (max-width: 639px) {
  .hz .pf-brochure, .hz .pf-brochure > summary.hz-btn--ghost, .hz a.hz-btn--ghost { width: 100%; justify-content: center; }
}

/* --- Right side: students on a stage (2026-11-02) ------------------------------
   sections/di-home-hero.php + assets/js/hero-stage.js. The students stand on a
   lit stage; one at the front, the others behind, smaller and dimmer, and every
   few seconds the next one steps forward while the glowing badge below changes
   to their name and result. Navy and gold, as the rest of the hero. Transforms,
   opacity and filters only; still for visitors who prefer reduced motion. */
.hz-stage { position: relative; height: clamp(24rem, 92vw, 30rem); isolation: isolate; container-type: inline-size; }
.hz-stage-light {
  position: absolute; z-index: 0; left: 50%; bottom: 12%; width: 92%; height: 88%; transform: translateX(-50%);
  background:
    radial-gradient(42% 46% at 50% 44%, rgb(75 202 255 / 0.22), transparent 70%),
    radial-gradient(60% 55% at 50% 60%, rgb(7 132 200 / 0.28), transparent 72%),
    radial-gradient(30% 30% at 50% 30%, rgb(255 233 166 / 0.12), transparent 70%);
  filter: blur(6px); animation: hz-stage-breath 7s ease-in-out infinite;
}
.hz-stage-floor {
  position: absolute; z-index: 0; left: 50%; bottom: 9%; width: 86%; height: 16%; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgb(0 6 14 / 0.75), transparent);
}
.hz-stage-people { position: absolute; z-index: 1; inset: 0; margin: 0; padding: 0; list-style: none; }
/* A soft navy fade across the foot of the stage, behind the badge: every
   photograph's lower edge melts into the hero, whatever its crop. */
.hz-stage::after {
  content: ""; position: absolute; z-index: 5; left: -6%; right: -6%; bottom: 0; height: 40%; pointer-events: none;
  background: radial-gradient(ellipse 52% 100% at 50% 100%, rgb(0 21 41 / 0.95) 0%, rgb(0 21 41 / 0.75) 45%, rgb(0 21 41 / 0) 100%);
}
.hz-person {
  --x: 0cqi; --s: 1; --o: 1; --b: 1; --blur: 0px;
  /* Sized so the cut-outs (about 260-370 px wide) are never blown up past sharp. */
  position: absolute; left: 50%; bottom: 2%; height: min(88%, 34rem);
  transform: translateX(-50%) translateX(var(--x)) scale(var(--s)); transform-origin: 50% 100%;
  opacity: var(--o); filter: brightness(var(--b)) saturate(calc(0.6 + var(--b) * 0.4)) blur(var(--blur));
  transition: transform 1.5s cubic-bezier(.22, .8, .2, 1), opacity 1.2s ease, filter 1.2s ease;
  will-change: transform, opacity;
}
.hz-person picture { display: block; height: 100%; }
.hz-person-img {
  display: block; height: 100%; width: auto; max-width: none;
  /* Soft top and bottom edges: some source portraits are cropped flat above the head. */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 3%, #000 70%, transparent 98%); mask-image: linear-gradient(180deg, transparent 0, #000 3%, #000 70%, transparent 98%);
  filter: drop-shadow(0 22px 26px rgb(0 0 0 / 0.55));
}
.hz-person[data-pos="front"] { z-index: 5; }
/* A centred pyramid: the front student; one row behind, left and right; a
   second row further out, left and right, smaller. Distances are shares of
   the stage's width (cqi), so every row sits evenly whatever each photo's
   shape. All in full colour. */
.hz-person[data-pos="r1"]   { --x: 20cqi;  --s: 0.74; --o: 1;   --b: 0.97; z-index: 4; }
.hz-person[data-pos="l1"]   { --x: -20cqi; --s: 0.74; --o: 1;   --b: 0.97; z-index: 4; }
.hz-person[data-pos="r2"]   { --x: 36cqi;  --s: 0.6;  --o: 1;   --b: 0.92; z-index: 3; }
.hz-person[data-pos="l2"]   { --x: -36cqi; --s: 0.6;  --o: 1;   --b: 0.92; z-index: 3; }
.hz-person[data-pos="off"]  { --x: 0cqi;   --s: 0.45; --o: 0;   --b: 0.9;  z-index: 1; }
.hz-person[data-pos="front"] .hz-person-img { animation: hz-stage-float 6s ease-in-out infinite; }

/* The badge: a bright royal-blue oval with a soft glowing edge and a thin inner ring. */
/* The nameplate (2026-11-16): a clear, professional plate under the front
   student — dark glass with a gold accent, the name in sentence case that
   wraps rather than spilling out, the result in gold, the stage in small
   capitals. Every item shares one grid cell, so the plate is as tall as the
   longest name and nothing is ever cut off. */
.hz-badge {
  position: absolute; z-index: 6; left: 50%; bottom: 7%; transform: translateX(-50%);
  width: min(86%, 25rem); display: grid; text-align: center; container-type: inline-size;
  padding: clamp(0.7rem, 3.5cqi, 1.05rem) clamp(0.9rem, 5cqi, 1.5rem) clamp(0.75rem, 3.6cqi, 1.1rem);
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, rgb(10 33 64 / 0.92), rgb(4 16 33 / 0.94));
  border: 1px solid rgb(150 190 240 / 0.28);
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.75), 0 0 0 1px rgb(0 0 0 / 0.2), inset 0 1px 0 rgb(255 255 255 / 0.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
}
.hz-badge::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--hz-gold-500) 20%, var(--hz-gold-300) 50%, var(--hz-gold-500) 80%, transparent);
}
.hz-badge::after { content: none; }
.hz-badge-ring { display: none; }
.hz-badge-item {
  grid-area: 1 / 1; display: grid; justify-items: center; align-content: center; gap: 0.15rem; margin: 0; min-width: 0;
  opacity: 0; transform: translateY(8px); transition: opacity 0.6s ease, transform 0.6s ease; pointer-events: none;
}
.hz-badge-item.is-active { opacity: 1; transform: none; transition-delay: 0.35s; }
.hz-badge-name {
  /* One line, sized to the name (2026-11-16): --len (the name's length, set
     in the markup) scales the type down for long names before any script
     runs; assets/js/hero-stage.js then measures and trims it to fit exactly. */
  display: block; max-width: 100%; font-family: var(--font-display, Manrope, sans-serif); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15;
  font-size: clamp(0.8rem, min(7.2cqi, calc(150cqi / var(--len, 12))), 1.7rem); color: #fff; text-transform: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hz-badge-name.is-wrapped { white-space: normal; overflow: visible; text-wrap: balance; overflow-wrap: anywhere; font-size: clamp(0.85rem, 5.6cqi, 1.15rem); line-height: 1.2; }
.hz-badge-rule { display: block; width: 2.25rem; height: 2px; margin: 0.4rem 0 0.35rem; border-radius: 2px; background: var(--hz-gold-500); }
.hz-badge-line {
  max-width: 100%; font-family: var(--font-display, Manrope, sans-serif); font-weight: 800; letter-spacing: 0.01em; line-height: 1.3;
  font-size: clamp(0.9rem, 5.2cqi, 1.2rem); color: var(--hz-gold-400); text-transform: none; overflow-wrap: anywhere;
}
.hz-badge-line--sub {
  font-family: var(--font-sans, Inter, sans-serif); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  font-size: clamp(0.62rem, 3.2cqi, 0.74rem); color: #b9cbe2;
}

.hz-stage-dots { position: absolute; z-index: 7; left: 50%; bottom: -0.4rem; transform: translateX(-50%); display: flex; gap: 0.45rem; }
.hz-stage-dot { width: 0.55rem; height: 0.55rem; padding: 0; border-radius: 999px; border: 1px solid rgb(255 233 166 / 0.6); background: transparent; cursor: pointer; transition: width 0.3s ease, background-color 0.3s ease; }
.hz-stage-dot[aria-pressed="true"] { width: 1.6rem; background: var(--hz-gold-500); border-color: var(--hz-gold-500); }
.hz-stage-dot:focus-visible { outline: 2px solid var(--hz-gold-300); outline-offset: 3px; }

@keyframes hz-stage-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hz-stage-breath { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }

@media (min-width: 1024px) {
  /* The stage takes the left of the visual; the cards stack on the right. */
  /* The cards: a fixed, compact column on the right; the stage has the rest. */
  .hz-visual--stage { --hz-cardcol: 15.5rem; }
  .hz-visual--stage .hz-stage { position: absolute; left: 7%; right: calc(var(--hz-cardcol) + clamp(1rem, 2.5vw, 2.5rem)); top: 0; bottom: 4%; height: auto; }
  .hz-visual--stage .hz-card { left: auto; right: clamp(0.75rem, 1.6vw, 1.75rem); width: var(--hz-cardcol); padding: 0.8rem 0.95rem; gap: 0.75rem; }
  .hz-visual--stage .hz-card .hz-icon--lg { width: 2.6rem; height: 2.6rem; flex: none; }
  .hz-visual--stage .hz-card-title { font-size: 0.98rem; white-space: normal; }
  .hz-visual--stage .hz-card-sub { font-size: 0.74rem; white-space: normal; }
  .hz-visual--stage .hz-card--one { top: 12%; }
  .hz-visual--stage .hz-card--path { top: 38%; }
  .hz-visual--stage .hz-card--two { top: 64%; }
  .hz-visual--stage .hz-card--one .hz-card-title, .hz-visual--stage .hz-card--two .hz-card-title { white-space: normal; }
  .hz-visual--stage .hz-mission { left: auto; right: calc(var(--hz-cardcol) + 2.5rem); top: 4%; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hz-visual--stage .hz-stage { right: 0; }
  .hz-visual--stage .hz-card { display: none; }
}
@media (max-width: 1023px) {
  .hz-visual--stage .hz-mission { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hz-person { transition: none; }
  .hz-person[data-pos="front"] .hz-person-img, .hz-stage-light, .hz-badge::before, .hz-badge::after { animation: none; }
  .hz-badge-item { transition: none; }
}

/* The students alone on the right (the approved design), unless Website
   settings → Home page asks for the cards beside them. */
@media (min-width: 1024px) {
  .hz-visual--solo .hz-stage { left: 2%; right: 0; }
  .hz-visual--solo .hz-card { display: none; }
  .hz-visual--solo .hz-mission { right: 2.4%; }
}
