/* Scoped graphics for hypergrwth — hero + section diagrams */

.hg-hero {
  --hg-bg: #0E1310;
  --hg-ink: #F3EBDD;
  --hg-muted: #B3AC9E;
  --hg-green: #7FB685;
  --hg-gold: #D9A441;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--hg-bg);
  color: var(--hg-ink);
}

.hg-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}

.hg-hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(14,19,16,.94) 0%, rgba(14,19,16,.7) 34%, rgba(14,19,16,0) 58%);
  z-index: 1;
}

.hg-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hg-hero-copy {
  max-width: min(36rem, 46vw);
  padding-top: 4.5rem;
  padding-bottom: 6.5rem;
}

.hg-hero-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hg-green);
  font-weight: 600;
}

.hg-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.1rem;
  max-width: 16ch;
  color: var(--hg-ink);
  text-wrap: balance;
}

.hg-hero-lede {
  margin: 0 0 1rem;
  max-width: 36rem;
  color: var(--hg-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hg-hero-role {
  margin: 0 0 1.5rem;
  color: var(--hg-ink);
  font-size: 1rem;
}

.hg-hero-role strong { font-weight: 600; }

.hg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.hg-hero .btn-primary {
  background: var(--hg-ink);
  color: var(--hg-bg);
  border: 1px solid var(--hg-ink);
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
}
.hg-hero .btn-primary:hover {
  background: #fff;
  color: var(--hg-bg);
  border-color: #fff;
}

.hg-hero .btn-secondary {
  background: transparent;
  color: var(--hg-ink);
  border: 1px solid rgba(243, 235, 221, 0.35);
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
}
.hg-hero .btn-secondary:hover {
  border-color: var(--hg-ink);
  color: var(--hg-ink);
}

.hg-hero-scope {
  position: absolute;
  left: clamp(16px, 4vw, 24px);
  right: clamp(16px, 4vw, 24px);
  bottom: 1.75rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--hg-muted);
  max-width: 1040px;
  margin: 0 auto;
  width: calc(100% - 2 * clamp(16px, 4vw, 24px));
  box-sizing: border-box;
}

.hg-hero-scope b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--hg-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.hg-hero-scope.hg-fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.hg-hero-scope.hg-fade.in {
  opacity: 1;
  transform: none;
}

.hg-hero-phase {
  position: absolute;
  z-index: 2;
  right: clamp(16px, 4vw, 48px);
  bottom: 2.1rem;
  display: flex;
  gap: 1.1rem;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 235, 221, 0.32);
}
.hg-hero-phase span { transition: color 0.4s; }
.hg-hero-phase span.on { color: var(--hg-gold); }
.hg-hero-replay {
  background: none;
  border: 1px solid rgba(243, 235, 221, 0.25);
  color: var(--hg-muted);
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-transform: uppercase;
}
.hg-hero-replay:hover { color: var(--hg-ink); border-color: rgba(243, 235, 221, 0.5); }


/* Brand film intro — full-bleed over hero, hands off to particles */
.hg-hero-film {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #0E1310;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.75s ease;
  pointer-events: auto;
}
.hg-hero-film.is-done {
  opacity: 0;
  pointer-events: none;
}
.hg-hero-film-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #0E1310;
  display: block;
}
.hg-hero-film-bar {
  position: absolute;
  z-index: 7;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hg-film-skip,
.hg-film-sound {
  appearance: none;
  border: 1px solid rgba(243, 235, 221, 0.35);
  background: rgba(14, 19, 16, 0.72);
  color: #F3EBDD;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: 600 0.8rem/1.2 "Source Sans 3", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.hg-film-skip:hover,
.hg-film-sound:hover,
.hg-film-skip:focus-visible,
.hg-film-sound:focus-visible {
  border-color: rgba(243, 235, 221, 0.7);
  background: rgba(14, 19, 16, 0.9);
  outline: none;
}
.hg-film-sound[aria-pressed="true"] {
  border-color: rgba(217, 164, 65, 0.7);
  color: #D9A441;
}

/* While intro plays, keep live copy/chrome invisible under the film */
.hg-hero--intro .hg-hero-inner,
.hg-hero--intro .hg-hero-scope,
.hg-hero--intro .hg-hero-phase {
  opacity: 0;
  pointer-events: none;
}
.hg-hero--live .hg-hero-inner {
  opacity: 1;
  transition: opacity 0.55s ease 0.15s;
  pointer-events: auto;
}
.hg-hero--live .hg-hero-scope,
.hg-hero--live .hg-hero-phase {
  pointer-events: auto;
}

@media (max-width: 760px) {
  .hg-hero-film-bar {
    left: clamp(12px, 4vw, 20px);
    right: clamp(12px, 4vw, 20px);
    bottom: clamp(10px, 3vw, 18px);
    justify-content: space-between;
  }
  .hg-film-skip,
  .hg-film-sound {
    padding: 0.6rem 0.85rem;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-hero-film {
    display: none !important;
  }
  .hg-hero--intro .hg-hero-inner,
  .hg-hero--intro .hg-hero-scope,
  .hg-hero--intro .hg-hero-phase {
    opacity: 1;
    pointer-events: auto;
  }
}


@media (max-width: 760px) {
  .hg-hero-shade {
    background: linear-gradient(0deg, rgba(14,19,16,.97) 0%, rgba(14,19,16,.8) 42%, rgba(14,19,16,0) 66%);
  }
  .hg-hero-inner {
    justify-content: flex-end;
  }
  .hg-hero-copy {
    padding-top: 0;
    padding-bottom: 7.5rem;
    max-width: none;
  }
  .hg-hero h1 { max-width: none; font-size: clamp(2.1rem, 9vw, 2.75rem); }
  .hg-hero-scope {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    bottom: 1.15rem;
    font-size: 0.7rem;
    line-height: 1.3;
  }
  .hg-hero-scope b { font-size: 1.05rem; }
  .hg-hero-phase { display: none; }
}

/* ---- 02 Sankey ---- */
.hg-sankey {
  --hg-ink: #F3EBDD;
  --hg-muted: #B3AC9E;
  --hg-green: #7FB685;
  --hg-clay: #C27A5A;
  margin: 0 0 2.75rem;
  background: #0E1310;
  color: #F3EBDD;
  border-radius: 16px;
  padding: clamp(20px, 3vw, 40px);
}
.hg-sankey .kicker { color: #7FB685; }
.hg-sankey .hg-graphic-head { margin-bottom: 1.25rem; }
.hg-sankey .hg-graphic-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  color: #F3EBDD;
}
.hg-sankey .hg-graphic-lede {
  margin: 0;
  max-width: 42rem;
  color: #B3AC9E;
  font-size: 1.02rem;
}
.hg-sankey-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.25rem;
}
.hg-sankey-wrap svg { min-width: 680px; max-width: 1100px; width: 100%; height: auto; display: block; overflow: visible; }
.hg-sankey .band { fill: none; stroke-opacity: 0.16; }
.hg-sankey .band.main { stroke: var(--hg-green); }
.hg-sankey .band.leak { stroke: var(--hg-clay); stroke-opacity: 0.26; }
.hg-sankey rect.main { fill: #F3EBDD; }
.hg-sankey rect.leak { fill: var(--hg-clay); }
.hg-sankey text {
  font-family: var(--sans);
  font-size: 14px;
  fill: #F3EBDD;
}
.hg-sankey text.leak { fill: var(--hg-clay); font-size: 13px; }
.hg-sankey text.sub { fill: var(--hg-muted); font-size: 12px; }
.hg-sankey .hg-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: #8a8478;
}

/* ---- 03 Close compression ---- */
.hg-close {
  --hg-ink: #1A1C1B;
  --hg-muted: #5E625D;
  --hg-green: #2F5D46;
  --hg-gold: #D9A441;
  --hg-line: rgba(26, 28, 27, 0.12);
  --hg-cream: #F7F4EF;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hg-close-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hg-close-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0.35rem 0 0.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hg-close-head .hg-graphic-lede {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-dim);
  font-size: 1.02rem;
}
.hg-daycount {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.hg-daycount small {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-dim);
  display: block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.hg-toggle {
  display: inline-flex;
  border: 1px solid var(--hg-line);
  border-radius: 999px;
  padding: 4px;
  background: #fff;
  margin-top: 0.75rem;
}
.hg-toggle button {
  border: 0;
  background: none;
  padding: 8px 16px;
  border-radius: 999px;
  font: 600 14px var(--sans);
  color: var(--hg-muted);
  cursor: pointer;
}
.hg-toggle button.on {
  background: var(--hg-ink);
  color: var(--hg-cream);
}
.hg-gantt { position: relative; margin-top: 1.5rem; }
.hg-g-row {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr;
  align-items: center;
  height: 44px;
  border-bottom: 1px solid var(--hg-line);
}
.hg-g-row .hg-task { font-size: 0.95rem; padding-right: 12px; color: var(--ink); }
.hg-g-track { position: relative; height: 100%; }
.hg-g-bar {
  position: absolute;
  top: 11px;
  height: 22px;
  border-radius: 4px;
  background: #C9BFAE;
  transition: left 0.9s cubic-bezier(.6,.05,.2,1), width 0.9s cubic-bezier(.6,.05,.2,1), background-color 0.9s;
}
.hg-gantt.after .hg-g-bar { background: var(--hg-green); }
.hg-g-axis {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr;
  font-size: 12px;
  color: var(--hg-muted);
  margin-top: 8px;
}
.hg-g-days { position: relative; height: 16px; }
.hg-g-days span {
  position: absolute;
  transform: translateX(-50%);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hg-g-days span:last-child { transform: translateX(-100%); }
.hg-g-grid { position: absolute; inset: 0; pointer-events: none; }
.hg-g-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hg-line);
}
.hg-g-finish {
  position: absolute;
  top: -8px;
  bottom: -4px;
  width: 2px;
  background: var(--hg-gold);
  transition: left 0.9s cubic-bezier(.6,.05,.2,1);
}
.hg-close .hg-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-dim);
}
@media (max-width: 600px) {
  .hg-g-row, .hg-g-axis { grid-template-columns: 104px 1fr; }
  .hg-g-row .hg-task { font-size: 0.8rem; }
}

/* ---- 04 Reconciliation ---- */
.hg-recon .kicker { color: #7FB685; }
.hg-recon {
  --hg-ink: #1A1C1B;
  --hg-muted: #5E625D;
  --hg-green: #7FB685;
  --hg-green-dark: #2F5D46;
  --hg-gold: #D9A441;
  --hg-clay: #C27A5A;
  --hg-cream: #F7F4EF;
  margin: 0 0 2.75rem;
  padding: clamp(20px, 3vw, 40px);
  background: #0E1310;
  color: #F3EBDD;
  border-radius: 16px;
}
.hg-recon .hg-graphic-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0.35rem 0 0.5rem;
  letter-spacing: -0.01em;
  color: #F3EBDD;
}
.hg-recon .hg-graphic-lede {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  color: #B3AC9E;
  font-size: 1.02rem;
}
.hg-recon-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.1fr;
  gap: 14px;
}
.hg-recon .hg-col h4 {
  font: 600 12px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B3AC9E;
  margin: 0 0 10px;
}
.hg-recon .hg-col.arr h4 { color: var(--hg-gold); }
.hg-recon .hg-rows { position: relative; }
.hg-pill {
  position: absolute;
  left: 0;
  right: 0;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(243, 235, 221, 0.14);
  background: rgba(243, 235, 221, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  color: #F3EBDD;
  transition: transform 1.1s cubic-bezier(.6,.05,.2,1), border-color 0.6s, background-color 0.6s;
}
.hg-pill .hg-id {
  font-variant-numeric: tabular-nums;
  color: #B3AC9E;
  font-size: 11px;
}
.hg-recon.aligned .hg-pill {
  border-color: rgba(127, 182, 133, 0.55);
  background: rgba(127, 182, 133, 0.08);
}
.hg-recon.aligned .hg-pill .hg-id { color: var(--hg-green); }
.hg-arrbar {
  position: absolute;
  left: 0;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #B3AC9E;
}
.hg-arrbar i {
  display: block;
  height: 10px;
  border-radius: 2px;
  background: var(--hg-gold);
  width: 0;
  transition: width 1s ease 0.5s;
  font-style: normal;
}
.hg-recon-status {
  margin-top: 18px;
  font-size: 14px;
  color: #B3AC9E;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hg-clay);
  transition: background 0.4s;
  flex-shrink: 0;
}
.hg-recon.aligned .hg-dot { background: var(--hg-green); }
.hg-recon .hg-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: #8a8478;
}
@media (max-width: 760px) {
  .hg-recon { padding: 1.25rem 1rem; }
  .hg-recon-grid { grid-template-columns: repeat(3, 1fr); }
  .hg-recon .hg-col.arr { display: none; }
  .hg-pill { font-size: 11px; padding: 0 6px; }
  .hg-pill .hg-id { display: none; }
}

/* ---- 05 Career trajectory ---- */
.hg-traj {
  --hg-ink: #1A1C1B;
  --hg-muted: #5E625D;
  --hg-green: #2F5D46;
  --hg-gold: #D9A441;
  --hg-cream: #F7F4EF;
  --hg-line: rgba(26, 28, 27, 0.12);
  margin: 0 0 2rem;
}
.hg-traj .hg-graphic-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0.35rem 0 0.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hg-traj .hg-graphic-lede {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-dim);
  font-size: 1.02rem;
}
.hg-traj-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.25rem;
}
.hg-traj-wrap svg { min-width: 700px; width: 100%; height: auto; display: block; overflow: visible; }
.hg-traj .curve {
  fill: none;
  stroke: var(--hg-green);
  stroke-width: 2.5;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 2.6s cubic-bezier(.5,0,.2,1);
}
.hg-traj .axis { stroke: var(--hg-line); }
.hg-traj text {
  font-family: var(--sans);
  fill: var(--hg-ink);
  font-size: 14px;
}
.hg-traj text.year { fill: var(--hg-muted); font-size: 12px; }
.hg-traj text.co {
  font-family: var(--serif);
  font-size: 19px;
}
.hg-traj text.what { fill: var(--hg-muted); font-size: 13px; }
.hg-traj .ms { opacity: 0; transition: opacity 0.6s ease; }
.hg-traj circle {
  fill: var(--hg-cream);
  stroke: var(--hg-green);
  stroke-width: 2.5;
}
.hg-traj circle.now { fill: var(--hg-gold); stroke: var(--hg-gold); }
.hg-traj.drawn .curve { stroke-dashoffset: 0; }
.hg-traj.drawn .ms { opacity: 1; }


/* Mobile horizontal scroll hint for 02 / 05 */
.hg-scroll-hint {
  display: none;
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #B3AC9E;
}
.hg-sankey .hg-scroll-hint { color: #B3AC9E; }
.hg-traj .hg-scroll-hint { color: var(--ink-dim); }
@media (max-width: 760px) {
  .hg-sankey-wrap::after,
  .hg-traj-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #0E1310);
  }
  .hg-traj-wrap::after {
    background: linear-gradient(90deg, transparent, var(--bg, #F7F4EF));
  }
  .hg-scroll-hint { display: block; }
  .hg-hero-copy { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hg-g-bar, .hg-g-finish, .hg-pill, .hg-arrbar i, .hg-traj .curve, .hg-traj .ms,
  .hg-hero-scope.hg-fade {
    transition: none;
  }
  .hg-hero-replay { display: none !important; }
}
