/* ================================================================
   HERO - Left Anchor, Right Cinema
================================================================ */

.hs-hero {
  position: relative;
  background-color: transparent;
  height: 400vh;
}

/* Note: .hs-hero::after (the old static radial glow) has been removed.
   The .hs-sky mesh gradient now handles all background ambiance natively. */

.hs-hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 55fr 45fr;
  z-index: var(--hs-z-raised);
}

.hs-hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Extra top padding ensures the transparent nav never obscures the headline or eyebrow */
  padding-top: calc(var(--hs-nav-height) + var(--hs-space-16));
  padding-bottom: var(--hs-space-12);
  padding-right: var(--hs-space-14);
  padding-left: clamp(var(--hs-space-10), 5.5vw, var(--hs-space-24));
}

.hs-hero__eyebrow {
  margin-bottom: var(--hs-space-6);
  margin-inline: 0;
  align-self: flex-start;
}

.hs-hero__headline {
  display: flex;
  flex-direction: column;
  color: var(--hs-palette-navy-800);
  margin-bottom: var(--hs-space-6);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: var(--hs-tracking-tighter);
}

.hs-hero__hl-line {
  display: block;
}

.hs-hero__sub {
  font-size: var(--hs-text-md);
  color: var(--hs-color-text-secondary);
  line-height: var(--hs-leading-relaxed);
  max-width: 48ch;
  margin-bottom: 0;
}

.hs-hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--hs-space-4);
  margin-top: var(--hs-space-8);
  margin-bottom: var(--hs-space-6);
}

.hs-hero__avatars {
  display: flex;
  align-items: center;
  gap: var(--hs-space-3);
  margin-bottom: var(--hs-space-4);
}

.hs-hero__avatars-cluster {
  display: flex;
  align-items: center;
}

.hs-hero__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--hs-palette-grey-000);
  box-shadow: 0 2px 4px rgba(10, 31, 68, 0.08);
  margin-left: -12px;
  position: relative;
  z-index: 1;
}

.hs-hero__avatar:first-child {
  margin-left: 0;
  z-index: 3;
}

.hs-hero__avatar:nth-child(2) {
  z-index: 2;
}

.hs-hero__avatars-label {
  font-size: var(--hs-text-sm);
  color: var(--hs-color-text-secondary);
  font-weight: var(--hs-font-medium);
}

.hs-hero__trust {
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-2);
  margin-top: var(--hs-space-6);
  list-style: none;
}

.hs-hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--hs-space-2);
  font-size: var(--hs-text-sm);
  color: var(--hs-color-text-tertiary);
}

.hs-hero__right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--hs-nav-height) + var(--hs-space-16));
  padding-bottom: var(--hs-space-12);
  padding-inline: var(--hs-space-12);
  background-color: transparent;
  /* sky shows through */
  position: relative;
  /* Perspective context for the 3D card tilt parallax.            */
  /* The vanishing point lives here; .hs-hero__cards is the plane. */
  perspective: 1200px;
  perspective-origin: center center;
}

.hs-hero__cards {
  --_card-w: 400px;
  --_card-h: 560px;
  /* Increased slightly to ensure content fits without flexing */
  --_offset: var(--hs-space-6);
  position: relative;
  width: calc(var(--_card-w) + var(--_offset));
  height: calc(var(--_card-h) + var(--_offset));
  /* Changed from min-height */
  z-index: var(--hs-z-raised);
  /* perspective removed — now inherited from .hs-hero__right     */
  /* preserve-3d propagates so card rotateX animations stay in    */
  /* the same 3D space as the container's parallax tilt.          */
  transform-style: preserve-3d;
  will-change: transform;
}

.hs-hero__card {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--_card-w);
  height: var(--_card-h);
  /* Changed from min-height for perfectly consistent cards */

  /* ── Glass surface ────────────────────────────────────────── */
  background: var(--hs-glass-bg);
  backdrop-filter: var(--hs-glass-blur);
  -webkit-backdrop-filter: var(--hs-glass-blur);

  border-radius: var(--hs-card-radius);
  /* Hairline border gives the glass a defined physical edge       */
  border: var(--hs-border-1) solid var(--hs-glass-border);

  padding: var(--hs-space-10);
  transform-origin: bottom center;
  will-change: transform;
  display: flex;
  flex-direction: column;

  /* Smooth glass transitions on hover                             */
  transition:
    background var(--hs-duration-slow) var(--hs-ease-out),
    box-shadow var(--hs-duration-slow) var(--hs-ease-out),
    border-color var(--hs-duration-slow) var(--hs-ease-out),
    backdrop-filter var(--hs-duration-slow) var(--hs-ease-out),
    transform var(--hs-duration-normal) var(--hs-ease-out);
}

/* ── Edge-light: ambient illumination from above-left ────────── */
/* A ::before pseudo overlays a gradient that simulates light     */
/* hitting the top-left rim of the glass panel. The gradient is   */
/* constrained to 1-2px at each edge via the background-position. */
.hs-hero__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    /* top edge: bright white highlight                           */
    linear-gradient(to bottom,
      var(--hs-glass-edge-top) 0px,
      transparent 3px),
    /* left edge: slightly dimmer side highlight                  */
    linear-gradient(to right,
      var(--hs-glass-edge-left) 0px,
      transparent 2px);
  z-index: 1;
}

/* Ensure card content sits above the edge-light pseudo            */
.hs-hero__card>* {
  position: relative;
  z-index: 2;
}

.hs-hero__card[data-card="1"] {
  z-index: 1;
  opacity: 0;
  box-shadow: var(--hs-glass-shadow);
}

.hs-hero__card[data-card="2"] {
  z-index: 2;
  opacity: 0;
  box-shadow: var(--hs-glass-shadow);
}

.hs-hero__card[data-card="3"] {
  z-index: 3;
  opacity: 0;
  box-shadow: var(--hs-glass-shadow);
}

.hs-hero__card[data-card="4"] {
  z-index: 4;
  opacity: 0;
  box-shadow: var(--hs-glass-shadow);
}

/* ── Portrait card — full-bleed image with frosted gradient overlay ── */

.hs-hero__card.hs-hero__card--portrait {
  padding: 0;
  overflow: hidden;
}

.hs-hero__card.hs-hero__card--portrait>* {
  position: absolute;
}

.hs-hero__card-portrait-img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}

.hs-hero__card-portrait-overlay {
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--hs-space-10);
  background: linear-gradient(to top,
      rgba(6, 15, 34, 0.92) 0%,
      rgba(6, 15, 34, 0.50) 42%,
      transparent 68%);
}

.hs-hero__card-portrait-caption {
  font-family: var(--hs-font-display);
  font-size: var(--hs-text-xl);
  font-weight: var(--hs-font-bold);
  color: var(--hs-color-text-inverse);
  line-height: var(--hs-leading-snug);
  margin-bottom: var(--hs-space-5);
  letter-spacing: var(--hs-tracking-tight);
}

.hs-hero__card-portrait-trust {
  margin-top: var(--hs-space-3);
  font-size: var(--hs-text-xs);
  color: var(--hs-color-text-inverse-muted);
  text-align: center;
}

.hs-hero__card-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--hs-space-2);
  font-family: var(--hs-font-body);
  font-size: var(--hs-text-xs);
  font-weight: var(--hs-font-semibold);
  letter-spacing: var(--hs-tracking-wider);
  text-transform: uppercase;
  color: var(--hs-palette-navy-500);
  background: var(--hs-palette-navy-050);
  border: var(--hs-border-1) solid var(--hs-palette-navy-100);
  border-radius: var(--hs-radius-full);
  padding: var(--hs-space-1-5) var(--hs-space-3-5);
  width: fit-content;
  margin-bottom: var(--hs-space-5);
  flex-shrink: 0;
}

.hs-hero__card-title {
  font-family: var(--hs-font-display);
  font-size: var(--hs-text-3xl);
  font-weight: var(--hs-font-extrabold);
  line-height: var(--hs-leading-tight);
  color: var(--hs-palette-navy-800);
  letter-spacing: var(--hs-tracking-tight);
  margin-bottom: var(--hs-space-3);
  text-wrap: balance;
}

.hs-hero__card-sub {
  font-size: var(--hs-text-sm);
  color: var(--hs-color-text-secondary);
  line-height: var(--hs-leading-normal);
  margin-bottom: var(--hs-space-5);
}

.hs-hero__card-divider {
  border: none;
  border-top: var(--hs-border-1) solid var(--hs-color-border-subtle);
  margin-bottom: var(--hs-space-5);
  flex-shrink: 0;
}

.hs-hero__card-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-3);
  margin-bottom: var(--hs-space-6);
  flex-shrink: 0;
}

.hs-hero__card-points li {
  display: flex;
  align-items: flex-start;
  gap: var(--hs-space-2-5);
  font-size: var(--hs-text-sm);
  color: var(--hs-color-text-primary);
  line-height: var(--hs-leading-snug);
}

.hs-hero__card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hs-space-3);
  padding-block: var(--hs-space-5);
  border-top: var(--hs-border-1) solid var(--hs-color-border-subtle);
  border-bottom: var(--hs-border-1) solid var(--hs-color-border-subtle);
  margin-bottom: var(--hs-space-5);
  flex-shrink: 0;
}

.hs-hero__card-stat {
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-1);
}

.hs-hero__card-stat strong {
  font-family: var(--hs-font-display);
  font-size: var(--hs-text-xl);
  font-weight: var(--hs-font-extrabold);
  color: var(--hs-palette-navy-800);
  line-height: 1;
}

.hs-hero__card-stat span {
  font-size: var(--hs-text-xs);
  color: var(--hs-color-text-tertiary);
  line-height: var(--hs-leading-snug);
}

.hs-hero__card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--hs-space-2);
  font-size: var(--hs-text-sm);
  font-weight: var(--hs-font-semibold);
  color: var(--hs-palette-navy-500);
  text-decoration: none;
  transition: var(--hs-transition-colors), gap var(--hs-duration-normal) var(--hs-ease-out);
  margin-top: auto;
}

.hs-hero__card-link:hover {
  color: var(--hs-palette-navy-800);
  gap: var(--hs-space-3);
}

.hs-hero__card-pillars {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-4);
  flex-grow: 1;
}

.hs-hero__card-pillar {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--hs-space-3);
  align-items: start;
}

.hs-hero__card-pillar-num {
  font-family: var(--hs-font-mono);
  font-size: var(--hs-text-xs);
  font-weight: var(--hs-font-bold);
  color: var(--hs-palette-navy-300);
  letter-spacing: var(--hs-tracking-wider);
  line-height: 1.7;
}

.hs-hero__card-pillar-title {
  font-size: var(--hs-text-sm);
  font-weight: var(--hs-font-semibold);
  color: var(--hs-palette-navy-800);
  line-height: var(--hs-leading-snug);
  display: block;
  margin-bottom: var(--hs-space-1);
}

.hs-hero__card-pillar-brief {
  font-size: var(--hs-text-xs);
  color: var(--hs-color-text-secondary);
  line-height: var(--hs-leading-normal);
}

.hs-hero__card-specs {
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-4);
  margin-bottom: var(--hs-space-6);
  flex-grow: 1;
}

.hs-hero__card-spec-label {
  font-size: var(--hs-text-xs);
  font-weight: var(--hs-font-semibold);
  letter-spacing: var(--hs-tracking-wider);
  text-transform: uppercase;
  color: var(--hs-palette-navy-500);
  margin-bottom: var(--hs-space-2-5);
}

.hs-hero__card-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hs-space-1-5);
}


/* ================================================================
   PHASE 3 — Living Headline: Accent + Underline
   The accent wrapper is inline-block so the underline can be
   absolutely positioned relative to the text width exactly.
================================================================ */

/* Wrapper: creates the positioning context for the underline      */
.hs-hero__hl-accent-wrap {
  position: relative;
  display: inline-block;
}

/* The "DHA Exam" words rendered in Hesse accent blue              */
.hs-hero__hl-accent {
  color: var(--hs-hero-underline-color);
}

/* The animated underline — starts collapsed (scaleX: 0) and is    */
/* drawn out left-to-right by GSAP after the headline settles.     */
.hs-hero__hl-underline {
  position: absolute;
  bottom: calc(-1 * var(--hs-hero-underline-offset));
  left: 0;
  width: 100%;
  height: var(--hs-hero-underline-height);
  background: var(--hs-hero-underline-color);
  border-radius: var(--hs-hero-underline-radius);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  /* will-change registered so the browser promotes to its own      */
  /* compositing layer before GSAP fires — zero jank on draw.       */
  will-change: transform;
}

/* ================================================================
   RESPONSIVE LAYOUT
================================================================ */

@media (max-width: 1024px) {

  /* Temporary: Hide other sections so we can focus on Hero and Urgency */
  /* #hs-root>section:not(.hs-sky):not(.hs-hero):not(.hs-urgency):not(.hs-problem):not(.hs-method):not(.hs-spec):not(.hs-outcome):not(.hs-flexibility):not(.hs-wif):not(.hs-pap):not(.hs-wa) {
    display: none !important;
  } */

  /* Tablet (1024px down to 481px) */
  .hs-hero__sticky {
    grid-template-columns: 1fr 1fr;
  }

  .hs-hero__left {
    padding-right: var(--hs-space-4);
    padding-left: clamp(var(--hs-space-4), 3vw, var(--hs-space-8));
  }

  .hs-hero__right {
    padding-inline: var(--hs-space-4);
  }

  .hs-hero__cards {
    --_card-w: 100%;
    max-width: 360px;
    --_card-h: 540px;
  }

  .hs-hero__card {
    width: 100%;
    padding: var(--hs-space-6);
  }

  .hs-hero__card-title {
    font-size: var(--hs-text-2xl);
  }
}

@media (max-width: 480px) {

  /* Mobile (480px and below) */
  .hs-hero {
    height: auto;
    min-height: 100vh;
  }

  .hs-hero__sticky {
    position: relative;
    height: auto;
    grid-template-columns: 1fr;
    padding-bottom: var(--hs-space-12);
  }

  .hs-hero__left {
    padding-top: calc(var(--hs-nav-height) + var(--hs-space-6));
    padding-right: var(--hs-container-pad-x);
    padding-left: var(--hs-container-pad-x);
    padding-bottom: var(--hs-space-4);
  }

  .hs-hero__headline {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hs-hero__right {
    padding-top: var(--hs-space-4);
    padding-bottom: var(--hs-space-12);
    padding-inline: var(--hs-container-pad-x);
    min-height: 520px;
  }

  .hs-hero__cards {
    --_card-w: 100%;
    max-width: 340px;
    --_card-h: auto;
    height: auto;
    min-height: 480px;
  }

  .hs-hero__card {
    height: auto;
    min-height: 480px;
    padding: var(--hs-space-5);
  }

  .hs-hero__card-title {
    font-size: var(--hs-text-xl);
  }

  .hs-hero__card-sub,
  .hs-hero__card-points li,
  .hs-hero__card-pillar-title,
  .hs-hero__card-spec-label {
    font-size: var(--hs-text-xs);
  }

  .hs-hero__card-pillars {
    gap: var(--hs-space-2);
  }

  .hs-hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hs-hero__ctas .hs-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ================================================================
   HEIGHT RESPONSIVE
   Scoped to min-width: 481px so the mobile portrait layout
   (handled by max-width: 480px above) is never touched.
   The 1920 × 1080 design baseline is unaffected — 1080px > 900px.

   Strategy per threshold:
     Left  — compress vertical margins and font sizes so trust
             signals remain visible without being clipped.
     Right — reduce padding-top aggressively to move the card
             upward rather than shrinking the card height, keeping
             portrait proportions intact.
================================================================ */

/* ── Threshold 1: 900px — Gentle compression ─────────────────── */
/* 15" MacBook, ~980px physical screens with browser chrome       */
@media (max-height: 900px) and (min-width: 481px) {

  .hs-hero__left {
    padding-top: calc(var(--hs-nav-height) + var(--hs-space-10));
    padding-bottom: var(--hs-space-8);
  }

  /* Right panel: pull card up more than left — card is taller     */
  .hs-hero__right {
    padding-top: calc(var(--hs-nav-height) + var(--hs-space-6));
    padding-bottom: var(--hs-space-8);
  }

  .hs-hero__eyebrow {
    margin-bottom: var(--hs-space-4);
  }

  .hs-hero__headline {
    font-size: clamp(2rem, 4vw, 3.75rem);
    margin-bottom: var(--hs-space-4);
  }

  .hs-hero__ctas {
    margin-top: var(--hs-space-5);
    margin-bottom: var(--hs-space-4);
  }

  .hs-hero__avatars {
    margin-bottom: var(--hs-space-3);
  }

  .hs-hero__trust {
    margin-top: var(--hs-space-3);
    gap: var(--hs-space-1-5);
  }

  .hs-hero__trust-item {
    font-size: var(--hs-text-xs);
  }

  /* Card: minimal height reduction, portrait ratio preserved       */
  .hs-hero__cards {
    --_card-h: 530px;
  }
}

/* ── Threshold 2: 780px — Moderate compression ───────────────── */
/* 13" MacBook at full height, 768px physical screen + chrome     */
@media (max-height: 780px) and (min-width: 481px) {

  .hs-hero__left {
    padding-top: calc(var(--hs-nav-height) + var(--hs-space-6));
    padding-bottom: var(--hs-space-6);
  }

  /* Right panel: pull card high — this is the primary fix for     */
  /* card visibility, not shrinking the card itself                */
  .hs-hero__right {
    padding-top: calc(var(--hs-nav-height) + var(--hs-space-3));
    padding-bottom: var(--hs-space-6);
  }

  .hs-hero__eyebrow {
    margin-bottom: var(--hs-space-3);
  }

  .hs-hero__headline {
    font-size: clamp(1.875rem, 3.5vw, 3.25rem);
    margin-bottom: var(--hs-space-3);
  }

  .hs-hero__sub {
    font-size: var(--hs-text-sm);
  }

  .hs-hero__ctas {
    margin-top: var(--hs-space-4);
    margin-bottom: var(--hs-space-3);
  }

  /* Hide avatars at this threshold to reclaim ~56px for trust     */
  .hs-hero__avatars {
    display: none;
  }

  .hs-hero__trust {
    margin-top: var(--hs-space-2);
    gap: var(--hs-space-1);
  }

  .hs-hero__trust-item {
    font-size: var(--hs-text-xs);
  }

  /* Card: still clearly portrait (400 × 500 = 1 : 1.25)          */
  .hs-hero__cards {
    --_card-h: 500px;
  }

  .hs-hero__card {
    padding: var(--hs-space-7);
  }

  .hs-hero__card-tag {
    margin-bottom: var(--hs-space-3);
  }

  .hs-hero__card-title {
    margin-bottom: var(--hs-space-2);
  }

  .hs-hero__card-sub {
    margin-bottom: var(--hs-space-3);
  }

  .hs-hero__card-divider {
    margin-bottom: var(--hs-space-3);
  }

  .hs-hero__card-points {
    gap: var(--hs-space-2);
    margin-bottom: var(--hs-space-4);
  }

  .hs-hero__card-stats {
    padding-block: var(--hs-space-3);
    margin-bottom: var(--hs-space-3);
  }

  .hs-hero__card-pillars {
    gap: var(--hs-space-3);
  }

  .hs-hero__card-specs {
    gap: var(--hs-space-3);
    margin-bottom: var(--hs-space-3);
  }
}

/* ── Threshold 3: 680px — Aggressive compression ─────────────── */
/* Very short windows, browser zoom, landscape phones             */
@media (max-height: 680px) and (min-width: 481px) {

  .hs-hero__left {
    padding-top: calc(var(--hs-nav-height) + var(--hs-space-4));
    padding-bottom: var(--hs-space-4);
  }

  /* Right: minimal top padding — card pushed as high as possible  */
  .hs-hero__right {
    padding-top: calc(var(--hs-nav-height) + var(--hs-space-2));
    padding-bottom: var(--hs-space-4);
  }

  .hs-hero__eyebrow {
    margin-bottom: var(--hs-space-2);
  }

  .hs-hero__headline {
    font-size: clamp(1.625rem, 3vw, 2.75rem);
    margin-bottom: var(--hs-space-2);
  }

  .hs-hero__sub {
    font-size: var(--hs-text-xs);
  }

  .hs-hero__ctas {
    margin-top: var(--hs-space-3);
    margin-bottom: var(--hs-space-2);
  }

  /* Trust hidden only at this most aggressive threshold           */
  .hs-hero__trust {
    display: none;
  }

  /* Card: 400 × 460 = 1 : 1.15, still reads as portrait          */
  .hs-hero__cards {
    --_card-h: 460px;
  }

  .hs-hero__card {
    padding: var(--hs-space-5);
  }

  .hs-hero__card-tag {
    margin-bottom: var(--hs-space-2);
  }

  .hs-hero__card-title {
    font-size: var(--hs-text-2xl);
    margin-bottom: var(--hs-space-1-5);
  }

  .hs-hero__card-sub {
    font-size: var(--hs-text-xs);
    margin-bottom: var(--hs-space-2);
  }

  .hs-hero__card-divider {
    margin-bottom: var(--hs-space-2);
  }

  .hs-hero__card-points {
    gap: var(--hs-space-1-5);
    margin-bottom: var(--hs-space-3);
  }

  .hs-hero__card-stats {
    padding-block: var(--hs-space-2);
    margin-bottom: var(--hs-space-2);
  }

  .hs-hero__card-stat strong {
    font-size: var(--hs-text-lg);
  }

  .hs-hero__card-pillars {
    gap: var(--hs-space-2);
  }

  .hs-hero__card-specs {
    gap: var(--hs-space-2);
    margin-bottom: var(--hs-space-3);
  }
}