:root {
  color-scheme: light;

  /* ===== Brand palette — "Brand Colors" set from Canva (Ladies Let's Talk) =====
     pastel red:    #f48a89
     light crimson: #fceff2
     turquoise:     #26bcae
     light red:     #fac7c4
     vivid red:     #f0514e
     dark blue:     #091146
     white:         #ffffff
     light red 2:   #ffa9a4
  ============================================================================== */
  --pastel-red: #f48a89;
  --light-crimson: #fceff2;
  --turquoise: #26bcae;
  --light-red: #fac7c4;
  --vivid-red: #f0514e;
  --dark-blue: #091146;
  --white: #ffffff;
  --light-red-2: #ffa9a4;

  /* Semantic tokens mapped onto the brand palette above */
  --paper: var(--white);
  --ivory: var(--light-crimson);
  --sage: var(--light-red);
  --green: var(--dark-blue); /* primary dark — headings, buttons */
  --ink: var(--dark-blue); /* body text */
  --rose: var(--vivid-red); /* eyebrow / kicker accent */
  --gold: var(--turquoise); /* accent — borders, dots, seal */
  --muted: #5b6079; /* muted navy-grey for secondary text */
  --line: rgba(9, 17, 70, 0.16);
  --shadow: 0 22px 70px rgba(9, 17, 70, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(42% 34% at 10% 4%, rgba(244, 138, 137, 0.24), transparent 70%),
    radial-gradient(38% 30% at 90% 10%, rgba(38, 188, 174, 0.16), transparent 70%),
    radial-gradient(48% 42% at 82% 86%, rgba(244, 138, 137, 0.18), transparent 70%),
    radial-gradient(40% 38% at 18% 78%, rgba(38, 188, 174, 0.1), transparent 72%),
    linear-gradient(135deg, #ffffff 0%, #fceff2 46%, #fac7c4 100%);
  background-attachment: fixed;
  font-family: Inter, system-ui, sans-serif;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 54px;
}

.brand-bar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.brand-logo {
  width: auto;
  height: 56px;
  /* Drop the logo's baked-in white background onto the pink page */
  mix-blend-mode: multiply;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 28px;
  align-items: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8px 0 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  color: var(--green);
  font-size: clamp(2.45rem, 7vw, 5.6rem);
  line-height: 1.02;
}

#journey-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.journey-name {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.journey-label {
  color: var(--muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
}

.summary {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.65;
}

.download-button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 22px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(9, 17, 70, 0.16);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease,
    box-shadow 180ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(9, 17, 70, 0.22);
}

.download-button {
  color: #ffffff;
  background: var(--green);
}

.delivery-note {
  width: fit-content;
  margin: 28px 0 0;
  border-left: 4px solid var(--gold);
  padding: 10px 14px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 600;
}

.impact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
  padding: 0;
}

/* Independent floating cards (no wrapping frame → not a table) */
.metric {
  position: relative;
  padding: 14px 16px 14px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(9, 17, 70, 0.07);
}

/* Rounded accent bar, tinted to match each card's icon */
.metric::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: var(--gold);
}

.metric:has(.metric-icon--rose)::before {
  background: var(--vivid-red);
}

.metric:has(.metric-icon--green)::before {
  background: var(--turquoise);
}

.metric:has(.metric-icon--gold)::before {
  background: var(--dark-blue);
}

.metric:has(.metric-icon--pink)::before {
  background: var(--pastel-red);
}

.metric-icon {
  display: block;
  margin-bottom: 7px;
}

.metric-icon svg {
  display: block;
  width: 23px;
  height: 23px;
}

.metric-icon--rose {
  color: var(--vivid-red);
}

.metric-icon--green {
  color: var(--turquoise);
}

.metric-icon--gold {
  color: var(--dark-blue);
}

.metric-icon--pink {
  color: var(--pastel-red);
}

.metric strong {
  display: block;
  color: var(--green);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.95rem;
  line-height: 1;
}

.metric > span:not(.metric-icon) {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 600;
}

/* Hover lift on the impact cards */
.metric {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
}

.metric:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(9, 17, 70, 0.1);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 28px;
}

.map-stage,
.certificate-wrap {
  border: 1px solid rgba(9, 17, 70, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: var(--shadow);
}

.map-stage {
  padding: 26px;
  overflow: hidden;
}

.section-heading h2 {
  color: var(--green);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.world-map {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  margin: 18px auto 0;
}

.land {
  fill: rgba(9, 17, 70, 0.10);
  stroke: rgba(9, 17, 70, 0.22);
  stroke-width: 2;
}

.connection {
  fill: none;
  stroke: url("#connectionGradient");
  stroke-linecap: round;
  stroke-width: 3.5;
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  filter: drop-shadow(0 4px 10px rgba(240, 81, 78, 0.28));
}

.connection.draw {
  animation: drawLine 1300ms ease forwards;
}

.home-dot,
.place-dot {
  fill: var(--gold);
  stroke: var(--paper);
  stroke-width: 4;
}

.home-dot {
  fill: var(--green);
}

.country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.country-list span {
  border: 1px solid rgba(38, 188, 174, 0.40);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--green);
  background: rgba(38, 188, 174, 0.12);
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease,
    border-color 180ms ease;
}

.country-list span:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 188, 174, 0.75);
  background: rgba(38, 188, 174, 0.2);
}

.country-list span.country-more {
  border-style: dashed;
  color: var(--muted);
  background: transparent;
}

.certificate-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  padding: 22px;
}

.hero-certificate {
  align-self: start;
  margin-top: -68px;
}

.certificate {
  /* min-height (not a fixed aspect-ratio) keeps short names looking
     substantial while letting the box grow for long/wrapping names instead
     of clipping the signature row at the bottom. display:flex + the single
     .certificate-border child stretching to fill (see below) means that
     growth is automatic — no fragile percentage-height math. */
  display: flex;
  min-height: 460px;
  width: 100%;
  padding: 18px;
  background: linear-gradient(145deg, #ffffff, #fceff2);
  border: 1px solid rgba(38, 188, 174, 0.40);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms ease;
}

/* Light sweep across the certificate on hover (invisible at rest → clean PDF) */
.certificate::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.certificate-wrap:hover .certificate {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 22px 42px rgba(9, 17, 70, 0.14);
}

.certificate-wrap:hover .certificate::after {
  opacity: 1;
  animation: certShine 900ms ease forwards;
}

@keyframes certShine {
  from {
    left: -70%;
  }
  to {
    left: 140%;
  }
}

.certificate-border {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1; /* stretch to fill .certificate's real height, whatever it grows to */
  padding: 12px 22px 30px;
  border: 2px solid rgba(38, 188, 174, 0.70);
  border-radius: 8px;
  text-align: center;
}

.certificate-kicker {
  /* gold foil title — real gold (the --gold token is turquoise in this palette) */
  margin: 0 0 64px;
  color: #f0c24b;
  -webkit-text-stroke: 0.5px #c9962b;
  text-stroke: 0.5px #c9962b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.certificate h2 {
  margin-top: 14px;
  color: var(--green);
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1.16;
}

.certificate p {
  max-width: 335px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

/* highlight the session / hour numbers in the certificate body:
   serif display figure + soft turquoise "highlighter" marker */
.cert-stat {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: 1.12em;
  color: var(--green);
  padding: 0 4px;
  background-image: linear-gradient(transparent 60%, rgba(38, 188, 174, 0.38) 0);
}

/* program year — light emphasis only (serif italic, brand navy, no marker) */
.cert-year {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-style: italic;
  color: var(--green);
}

.seal {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-top: 14px;
}

.seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.signature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin-top: auto;
  padding-top: 28px;
  color: var(--muted);
  font-size: 0.74rem;
}

.signature-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.signature-image {
  height: 42px;
  width: auto;
  margin-bottom: 2px;
}

.signature-line {
  width: 140px;
  height: 1px;
  margin-bottom: 6px;
  background: rgba(9, 17, 70, 0.3);
}

.signature-name {
  font-weight: 600;
  color: var(--ink);
}

.program-year {
  line-height: 1.6;
}

.program-year .cert-year {
  font-size: 0.95rem;
  font-weight: 400;
}

.download-button {
  width: 100%;
}

.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid rgba(38, 188, 174, 0.45);
  border-radius: 999px;
  padding: 0 14px 0 16px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(9, 17, 70, 0.2);
  cursor: pointer;
  transform: translateX(-50%);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  backdrop-filter: blur(10px);
}

.scroll-cue span {
  font-size: 0.82rem;
  font-weight: 800;
}

.scroll-cue svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  animation: cueBounce 1400ms ease-in-out infinite;
}

.scroll-cue svg {
  color: var(--green);
}

.scroll-cue.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 18px);
  opacity: 0;
  border-radius: 6px;
  padding: 12px 16px;
  color: #ffffff;
  background: var(--green);
  box-shadow: var(--shadow);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes cueBounce {
  0%,
  100% {
    transform: translateY(-1px);
  }

  50% {
    transform: translateY(4px);
  }
}

/* ===== Role-aware Global Connection map ===== */
.connection-stage {
  padding: 26px;
}

.connection-lede {
  max-width: 900px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: balance;
}

/* Highlight the country / city count, matching the certificate figures */
.conn-stat {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: 1.2em;
  color: var(--green);
  padding: 0 4px;
  background-image: linear-gradient(transparent 60%, rgba(38, 188, 174, 0.38) 0);
}

/* Two-lens toggle: "Across the country" (US map) / "Across the world".
   Centered pill track with a solid turquoise pill that SLIDES beneath the
   active tab (the indicator is positioned by connections.js). */
.connection-tabs {
  position: relative;
  display: flex;
  gap: 6px;
  width: fit-content;
  margin: 22px auto 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(9, 17, 70, 0.06);
  box-shadow: inset 0 1px 2px rgba(9, 17, 70, 0.06);
}

/* The sliding fill. left/width/height are set in JS; only transition when the
   `is-anim` class is present so it doesn't animate in from 0,0 on first paint. */
.connection-tab-indicator {
  position: absolute;
  left: 0;
  top: 5px;
  z-index: 0;
  border-radius: 999px;
  background: var(--turquoise);
  box-shadow: 0 8px 20px rgba(38, 188, 174, 0.4);
  pointer-events: none;
}

/* "Across the world" tab takes the world-map's hot accent (brand red). */
.connection-tab-indicator.is-world {
  background: var(--vivid-red);
  box-shadow: 0 8px 20px rgba(240, 81, 78, 0.4);
}

.connection-tab-indicator.is-anim {
  transition: left 380ms cubic-bezier(0.22, 1, 0.36, 1),
    width 380ms cubic-bezier(0.22, 1, 0.36, 1),
    background 380ms ease, box-shadow 380ms ease;
}

.connection-tab {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  background: transparent;
  transition: color 260ms ease;
}

.conn-tab-icon {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.85;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
}

.connection-tab:hover:not(.is-active) {
  color: var(--green);
}

.connection-tab:hover .conn-tab-icon {
  transform: scale(1.12);
}

.connection-tab:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 3px;
}

/* Active tab: text/icon go white to sit on the turquoise fill. */
.connection-tab.is-active {
  color: var(--white);
}

.connection-tab.is-active .conn-tab-icon {
  color: var(--white);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .connection-tab-indicator.is-anim {
    transition: none;
  }
}

.connection-map {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 10px auto 0;
}

.connection-origin-card {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(38, 188, 174, 0.35);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(9, 17, 70, 0.12);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.connection-origin-card .origin-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
}

.connection-origin-card strong {
  font-weight: 800;
}

.connection-origin-card .origin-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.connection-svg {
  display: block;
  height: auto;
}

.conn-arc {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  /* opacity is per-stop in the gradient itself (homeFadeGradient in
     connections.js), not set flat here */
  filter: drop-shadow(0 3px 8px rgba(9, 17, 70, 0.16));
  pointer-events: none;
}

.conn-origin-arc {
  fill: none;
  stroke: var(--turquoise);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 6;
  opacity: 0.75;
  pointer-events: none;
}

.conn-place-dot {
  fill: var(--turquoise);
  stroke: #ffffff;
  stroke-width: 2;
}

/* Popped by hovering its country/city chip — stays brand turquoise so it never
   competes with the red "home hub" marker; size bounce + glow do the emphasis */
.conn-place-dot.conn-dot-active {
  fill: var(--turquoise);
  stroke-width: 3;
  filter: drop-shadow(0 4px 10px rgba(38, 188, 174, 0.5));
}

.conn-home-dot {
  fill: var(--pastel-red);
  stroke: #ffffff;
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: connHomeThrob 3000ms ease-in-out infinite;
}

.conn-home-pulse {
  fill: var(--pastel-red);
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: none;
  animation: connHomePulse 3000ms ease-out infinite;
}

.conn-home-pulse-2 {
  animation-delay: 1500ms;
}

@keyframes connHomePulse {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes connHomeThrob {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .conn-home-pulse {
    animation: none;
    opacity: 0;
  }
  .conn-home-dot {
    animation: none;
  }
}

.conn-place-label {
  fill: var(--green);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3px;
}

.conn-origin-kicker {
  fill: var(--rose);
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.conn-origin-country {
  fill: var(--green);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.conn-origin-dot {
  fill: var(--rose);
  stroke: #ffffff;
  stroke-width: 2;
}

.conn-tooltip {
  position: absolute;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(9, 17, 70, 0.92);
  box-shadow: 0 10px 26px rgba(9, 17, 70, 0.28);
  font-size: 0.85rem;
  line-height: 1.3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease;
}

.conn-tooltip strong {
  font-weight: 700;
}

.conn-tooltip span {
  color: rgba(255, 255, 255, 0.78);
}

/* ===== Interactive learner globe ===== */
.globe-stage {
  padding: 26px;
}

.globe-lede {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.globe-map {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 12px auto 0;
}

.globe-map svg {
  display: block;
  height: auto;
  cursor: grab;
}

.globe-map svg:active {
  cursor: grabbing;
}

.globe-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 10px;
}

.globe-metric {
  text-align: center;
}

.globe-metric strong {
  display: block;
  color: var(--green);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.globe-metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.globe-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.globe-legend-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.globe-legend-bar {
  width: 160px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9fe3dc 0%, var(--vivid-red) 100%);
}

.globe-drag-hint {
  position: absolute;
  left: 50%;
  bottom: 6%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(9, 17, 70, 0.82);
  box-shadow: 0 8px 22px rgba(9, 17, 70, 0.28);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  animation: globeHintPulse 2200ms ease-in-out infinite;
  transition: opacity 400ms ease, transform 400ms ease;
  backdrop-filter: blur(6px);
}

.globe-drag-hint svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--turquoise);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.globe-drag-hint.is-dismissed {
  opacity: 0;
  transform: translate(-50%, 8px);
  animation: none;
}

@keyframes globeHintPulse {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .globe-drag-hint {
    animation: none;
  }
}

.globe-tooltip {
  position: absolute;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(9, 17, 70, 0.92);
  box-shadow: 0 10px 26px rgba(9, 17, 70, 0.28);
  font-size: 0.85rem;
  line-height: 1.3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease;
}

.globe-tooltip strong {
  font-weight: 700;
}

.globe-tooltip span {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 22px, 720px);
    padding-top: 24px;
  }

  .hero,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 18px 0 6px;
  }

  .hero-certificate {
    margin-top: 0px;
  }

  .metric {
    padding: 15px 12px 15px 22px;
  }

  .metric strong {
    font-size: 1.75rem;
  }

  .metric span {
    font-size: 0.82rem;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.55rem;
  }

  .impact-panel {
    grid-template-columns: 1fr;
  }

  .world-map {
    min-height: 250px;
  }

  .signature-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .signature-block {
    align-items: center;
  }
}

/* ===== Scroll-in reveal + staggered entrances =====
   Animation (not transition) is used so each element's own hover transition
   stays intact; `backwards` fill hides it during its stagger delay, then hands
   the resting state back to the element (so :hover transforms still work). */
[data-reveal] {
  opacity: 0;
}

[data-reveal].is-visible {
  opacity: 1;
  animation: revealUp 640ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--reveal-i, 0) * 180ms);
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Stagger the three impact cards as they reveal */
.impact-panel .metric:nth-child(1) {
  --reveal-i: 0;
}
.impact-panel .metric:nth-child(2) {
  --reveal-i: 1;
}
.impact-panel .metric:nth-child(3) {
  --reveal-i: 2;
}
.impact-panel .metric:nth-child(4) {
  --reveal-i: 3;
}

/* Country chips pop in one after another once the list reveals */
.country-list[data-reveal-children] span {
  opacity: 0;
}

.country-list[data-reveal-children].is-visible span {
  opacity: 1;
  animation: chipIn 460ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal].is-visible,
  .country-list[data-reveal-children] span,
  .country-list[data-reveal-children].is-visible span {
    opacity: 1;
    animation: none;
  }

  .metric,
  .country-list span,
  .certificate,
  .certificate-wrap:hover .certificate {
    transition: none;
    transform: none;
  }
}
