/* =====================================================================
   HERO IMPACT — cinematic personal-brand banner
   GSAP-driven mouse parallax + scroll choreography
   Brand: #FFD80C  ·  Ink: #111111  ·  Paper: warm light
   ===================================================================== */

.hero-impact {
  --hi-paper-1: #ece9e1;
  --hi-paper-2: #e2ded3;
  --hi-ink: #111111;
  --hi-muted: #6c685e;
  --hi-yellow: #ffd80c;

  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 72% 18%, var(--hi-paper-1) 0%, var(--hi-paper-2) 70%, #d9d4c8 100%);
  isolation: isolate;
  opacity: 0;                 /* revealed by JS once positioned (anti-FOUC) */
}
.hero-impact.is-ready { opacity: 1; }

.hero-impact__inner {
  position: relative;
  width: 100%;
  max-width: 1850px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(90px, 12vh, 160px) clamp(20px, 5vw, 90px) clamp(40px, 7vh, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- BACK LAYER ---------- */
.hero-impact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* faint engineering grid */
.hi-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 100%);
          mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 100%);
}

/* soft warm light that follows the cursor */
.hi-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;      /* center on its origin */
  border-radius: 50%;
  background: radial-gradient(circle at center,
              rgba(255, 216, 12, 0.55) 0%,
              rgba(255, 216, 12, 0.18) 38%,
              rgba(255, 216, 12, 0) 70%);
  mix-blend-mode: multiply;
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

/* giant ghost wordmark behind everything */
.hi-megaword {
  position: absolute;
  left: 50%;
  bottom: clamp(-2vw, 1vh, 40px);
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font_bdogrotesk), sans-serif;
  font-weight: 600;
  font-size: clamp(7rem, 27vw, 26rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(17, 17, 17, 0.10);
  user-select: none;
}
.hi-megaword span { display: inline-block; will-change: transform; }

/* brand-yellow halo glowing behind the figure */
.hi-halo {
  position: absolute;
  top: 38%;
  left: 56%;
  width: clamp(440px, 48vw, 820px);
  aspect-ratio: 1;
  transform: translate(-50%, -52%);
  background: radial-gradient(circle at 50% 45%,
              var(--hi-yellow) 0%,
              var(--hi-yellow) 30%,
              rgba(255, 216, 12, 0.92) 46%,
              rgba(255, 216, 12, 0.0) 72%);
  border-radius: 50%;
  filter: saturate(1.08);
  will-change: transform;
}

/* thin orbiting ring accent */
.hi-ring {
  position: absolute;
  top: 38%;
  left: 56%;
  width: clamp(540px, 54vw, 940px);
  aspect-ratio: 1;
  transform: translate(-50%, -52%);
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 50%;
  will-change: transform;
}

/* ---------- PORTRAIT (transparent cut-out) ---------- */
.hero-impact__portrait {
  position: absolute;
  right: clamp(-20px, 4vw, 130px);
  top: clamp(92px, 10vh, 140px); /* drop the head clear of the 80px header */
  bottom: 0;
  z-index: 1;
  width: clamp(360px, 42vw, 720px);
  perspective: 1400px;        /* 3D field for cursor tilt */
  will-change: transform;
  pointer-events: none;
}
.hi-portrait-tilt {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}
.hi-portrait-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  will-change: transform;
}
.hi-portrait-img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 44px 66px rgba(17, 17, 17, 0.30));
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
/* soft contact shadow grounding the figure */
.hi-portrait-shadow {
  position: absolute;
  bottom: 1.5%;
  left: 50%;
  width: 62%;
  height: 42px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
              rgba(17, 17, 17, 0.30) 0%, rgba(17, 17, 17, 0) 70%);
  filter: blur(6px);
  z-index: -1;
}

/* ---------- FOREGROUND CONTENT ---------- */
.hero-impact__content {
  position: relative;
  z-index: 3;
  max-width: min(58ch, 56vw);
  will-change: transform, opacity;
}

.hi-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font_bdogrotesk), sans-serif;
  font-size: clamp(0.75rem, 0.95vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hi-ink);
  margin-bottom: clamp(18px, 3vh, 34px);
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.hi-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hi-yellow);
  box-shadow: 0 0 0 4px rgba(255, 216, 12, 0.28);
  animation: hi-pulse 2.4s ease-in-out infinite;
}
@keyframes hi-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.7; }
}

.hi-title {
  margin: 0;
  max-width: none;             /* allow the name to break past the text column */
  font-family: var(--font_bdogrotesk), sans-serif;
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.hi-line {
  display: block;
  width: max-content;          /* box hugs the text → no horizontal clipping */
  max-width: 92vw;
  overflow: hidden;            /* vertical mask for char rise-in */
  font-size: clamp(3.2rem, 10.5vw, 11rem);
}
.hi-line--solid   { color: var(--hi-ink); }
.hi-line--outline {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--hi-ink);
  position: relative;
}
/* yellow accent swipe under the name */
.hi-title::after {
  content: "";
  display: block;
  width: clamp(120px, 18vw, 260px);
  height: clamp(6px, 0.8vw, 11px);
  margin-top: clamp(16px, 2.4vh, 30px);
  background: var(--hi-yellow);
  border-radius: 100px;
  transform-origin: left center;
}

.hi-role {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 3vh, 36px);
  font-family: var(--font_ppeditorialnewregular), serif;
  font-size: clamp(1.25rem, 2.6vw, 2.4rem);
  color: var(--hi-ink);
}
.hi-role__static { opacity: 0.7; }
.hi-role__rotate {
  position: relative;
  font-family: var(--font_ppeditor), serif;
  font-style: italic;
  color: #000;
  padding: 0 2px 4px;
  border-bottom: 2px solid var(--hi-yellow);
  min-width: 2ch;
  will-change: transform, opacity, filter;
}

.hi-tagline {
  margin-top: clamp(20px, 3vh, 34px);
  max-width: 46ch;
  font-family: var(--font_dmsans), sans-serif;
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  line-height: 1.6;
  color: var(--hi-muted);
}

/* ---------- CREDENTIAL CHIPS ---------- */
.hero-impact__creds {
  position: absolute;
  inset: 0;
  z-index: 4;
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
/* MBA + PMP sit BEHIND the portrait (z:0 < portrait z:1, above the bg);
   CSM + LSSGB keep the base z:4 (in front). Depth as they parallax past the figure. */
.hero-impact__creds--back { z-index: 0; }
.hi-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  font-family: var(--font_bdogrotesk), sans-serif;
  font-weight: 600;
  font-size: clamp(0.8rem, 1vw, 1rem);
  letter-spacing: 0.04em;
  color: var(--hi-ink);
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 100px;
  /* layered shadow = more lift / depth (reads as floating above the scene) */
  box-shadow: 0 4px 10px -6px rgba(17, 17, 17, 0.22),
              0 26px 52px -20px rgba(17, 17, 17, 0.5);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  will-change: transform;
}
.hi-chip sup { font-size: 0.6em; top: -0.5em; }
/* MBA + PMP overlap the portrait edges so, sitting behind it (z:0), they tuck
   partly behind the figure and peek out as they parallax. */
.hi-chip--1 { top: 19%;  right: 31%; }
.hi-chip--2 { top: 33%;  right: 13%; }
/* CSM sits on the portrait's lower-left (near the yellow glow) instead of far-left
   over the tagline, so it never covers "Strategic Leader..." and frames the figure. */
.hi-chip--3 { top: 62%;  right: 30%; left: auto; }
.hi-chip--4 { top: 74%;  right: 11%; }

/* ---------- SCROLL CUE ---------- */
.hero-impact__scroll {
  position: absolute;
  left: clamp(20px, 5vw, 90px);
  bottom: clamp(24px, 4vh, 48px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font_bdogrotesk), sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hi-muted);
}
.hi-scroll-line {
  position: relative;
  width: 64px;
  height: 1px;
  background: rgba(17, 17, 17, 0.25);
  overflow: hidden;
}
.hi-scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--hi-ink);
  animation: hi-scroll-run 1.9s ease-in-out infinite;
}
@keyframes hi-scroll-run {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .hi-chip--1 { right: 38%; }
  /* keep CSM on the portrait side, clear of the tagline */
  .hi-chip--3 { top: 60%; right: 27%; left: auto; }
}

@media (max-width: 991px) {
  .hero-impact__inner { justify-content: flex-start; }
  /* portrait is centred/in-flow below this width; keep all chips in front so none hide behind it */
  .hero-impact__creds--back { z-index: 4; }
  .hero-impact__portrait {
    width: 78vw;
    height: 70%;
    right: -8vw;
    opacity: 0.92;
  }
  .hero-impact__content { max-width: 100%; }
  .hi-halo, .hi-ring { left: 70%; top: 42%; }
  .hi-chip--1 { top: 10%; right: 6%; }
  .hi-chip--2 { top: 24%; right: 40%; }
  .hi-chip--3 { display: none; }
  .hi-chip--4 { top: 40%; right: 8%; }
}

@media (max-width: 767px) {
  .hero-impact { min-height: auto; padding-bottom: 0; }
  .hero-impact__inner {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 0;
  }
  /* in flow, centred, feet grounded at the section's bottom edge */
  .hero-impact__portrait {
    position: relative;
    top: auto;                 /* reset desktop header-clearance offset */
    right: auto;
    width: 80%;
    max-width: 340px;
    height: auto;
    margin: 18px auto 0;
    order: 2;
    opacity: 1;
  }
  .hi-portrait-tilt,
  .hi-portrait-inner {
    height: auto;
    display: block;
  }
  .hi-portrait-img {
    height: auto;
    width: 100%;
    display: block;
  }
  .hi-portrait-shadow { bottom: 0; }
  .hero-impact__content { order: 1; }
  .hi-line { font-size: clamp(2.1rem, 12.5vw, 4.5rem); }
  .hi-megaword { bottom: 18%; font-size: 36vw; }
  .hi-halo  { width: 70vw; left: 60%; top: 64%; }
  .hi-ring  { display: none; }
  .hero-impact__scroll { display: none; }

  /* credential chips — float them around the portrait in the lower half */
  .hero-impact__creds { display: block; }
  .hi-chip {
    font-size: 0.72rem;
    padding: 9px 14px;
  }
  .hi-chip--1 { display: inline-flex; top: 47%; left: 3%;  right: auto; }  /* MBA   – upper left  */
  .hi-chip--2 { display: inline-flex; top: 53%; right: 3%; left: auto; }   /* PMP   – upper right */
  .hi-chip--3 { display: inline-flex; top: 74%; left: 3%;  right: auto; }  /* CSM   – lower left  */
  .hi-chip--4 { display: inline-flex; top: 80%; right: 3%; left: auto; }   /* LSSGB – lower right */
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .hi-dot,
  .hi-scroll-line::after { animation: none; }
}

/* =====================================================================
   SCROLLING MARQUEE — two rotated tickers (replaces client logos)
   GSAP-driven in hero-banner.js; classes scoped with `sm-`
   ===================================================================== */
.sm-marquee {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vw, 44px);
  padding: clamp(56px, 9vh, 120px) 0;
  overflow: hidden;
}
.sm-ticker {
  width: 100%;
  padding: clamp(8px, 1vw, 16px) 0;
  white-space: nowrap;
  scale: 1.08;                 /* overshoot so rotated bar edges fill the width */
}
.sm-ticker--accent {
  background-color: #ffd80c;
  transform: rotate(-2deg);
}
.sm-ticker--dark {
  background-color: #111111;
  transform: rotate(2deg);
}
.sm-ticker-wrap {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
}
.sm-ticker-text {
  display: inline-block;
  color: #111111;
  font-family: var(--font_bdogrotesk), sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.sm-ticker--dark .sm-ticker-text { color: #ffffff; }
.sm-accent {
  font-family: var(--font_ppeditor), serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: rgba(17, 17, 17, 0.5);
}
.sm-ticker--dark .sm-accent { color: #ffd80c; }
