  /* ===== Mobile-first corrective overrides (staging audit) ===== */
  html { -webkit-text-size-adjust: 100%; }
  body { min-width: 0; }
  .container, .courses, .why, .educators, .testimonials, .resources, .contact,
  .cta-section, footer { max-width: 100%; }
  img, video, iframe, canvas, svg { max-width: 100%; }
  button, a { touch-action: manipulation; }
  @media (max-width: 1100px) {
    .nav { position: relative; gap: 12px; }
    .nav-links { gap: 18px; }
    .hero-grid { gap: 18px; }
    .hero-visual { width: 100%; min-width: 0; }
    #globeCanvas { width: min(640px, 100vw); height: auto; aspect-ratio: 1; }
    .person-photo { max-width: min(400px, 78vw); }
    .fc-sbr { left: 0; }
    .fc-aaa { right: 0; }
    .fc-students { left: 0; }
    .fc-global { right: 0; }
  }
  @media (max-width: 768px) {
    html, body { max-width: 100%; overflow-x: clip; }
    :root { --pad-x: 20px; }
    .hero-wave { width: 100%; margin-left: 0; margin-right: 0; }
    .container { padding-left: var(--pad-x); padding-right: var(--pad-x); }
    .site-header-wrap { width: 100%; }
    .nav { padding: 12px var(--pad-x); flex-wrap: nowrap; }
    .logo { font-size: 19px; white-space: nowrap; }
    .nav-right { margin-left: auto; }
    .nav-links.mobile-open { z-index: 110; max-height: calc(100dvh - 70px); overflow-y: auto; }
    .hero-inner { padding-left: var(--pad-x); padding-right: var(--pad-x); }
    .hero-grid {
      grid-template-columns: minmax(0, 1fr);
      row-gap: 34px;
    }
    .hero-copy, .hero-grid > * { min-width: 0; }
    .hero h1 { font-size: clamp(32px, 8vw, 44px); overflow-wrap: anywhere; }
    .hero p { font-size: 15px; }
    .hero-visual {
      transform: none;
      min-height: 0;
      height: clamp(300px, 92vw, 420px);
      margin: 8px auto 0;
      overflow: visible;
    }
    #globeCanvas { width: min(112vw, 520px); height: auto; }
    .globe-glow { width: min(78vw, 360px); height: min(78vw, 360px); }
    .person-photo { width: min(78vw, 340px); margin-top: 42px; }
    .float-card { font-size: 11px; padding: 7px 9px; gap: 7px; max-width: 48%; }
    .float-card .ic-sq { width: 29px; height: 29px; }
    .fc-sbr { top: 4%; left: 0; }
    .fc-aaa { top: 2%; right: 0; }
    .fc-students { bottom: 23%; left: 0; }
    .fc-global { top: 54%; right: 0; }
    .fc-name {
      right: 3%;
      bottom: 1%;
      max-width: 62%;
      padding: 7px 10px 5px;
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(17,22,43,.88), rgba(17,22,43,.52));
      border: 1px solid rgba(199,210,255,.16);
      text-align: right;
      line-height: 1.25;
      gap: 2px;
    }
    .fc-name b { font-size: clamp(17px, 4.8vw, 20px); }
    .sig-arrow {
      display: block;
      width: 44px;
      height: 52px;
      right: 20%;
      bottom: 12%;
      color: #d7c8ff;
      opacity: 1;
      transform: rotate(7deg);
      filter: drop-shadow(0 2px 5px rgba(7,11,26,.65));
    }
    .hero-wave { margin-left: 0; margin-right: 0; }
    .courses { padding: 34px var(--pad-x) 56px; }
    .courses-head { gap: 14px; margin-bottom: 26px; }
    .courses-head h2, section h2 { overflow-wrap: anywhere; }
    .course-grid, .why-grid, .testi-grid, .video-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .course-card { min-width: 0; padding: 24px 20px; border-radius: 22px; }
    .seg-toggle { max-width: 100%; }
    .seg-toggle button { flex: 1 0 auto; padding: 9px 12px; }
    .feature-cards { grid-template-columns: minmax(0, 1fr); }
    .video-grid > *, .course-grid > *, .testi-grid > *, .footer-grid > * { min-width: 0; }
    .cta-banner { margin-left: 0; margin-right: 0; padding: 34px 22px; }
    .cta-banner h2 { font-size: clamp(26px, 7vw, 34px); }
    .promo-overlay { padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom)); overflow-y: auto; align-items: center; }
    .promo-modal { width: 100%; max-width: 520px; max-height: calc(100dvh - 20px); overflow-y: auto; padding: 26px 20px 22px; border-radius: 24px; }
    .promo-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .promo-visual { height: clamp(150px, 34vw, 220px); }
    .promo-card { padding: 9px 12px; gap: 8px; }
    .promo-card .p-ic { width: 34px; height: 34px; font-size: 16px; }
    .promo-card b { font-size: 17px; }
    .promo-card.p1 { left: 0; }
    .promo-card.p2 { right: 0; }
    .promo-content h3 { font-size: clamp(24px, 6vw, 32px); }
    .promo-close { top: 12px; right: 12px; width: 34px; height: 34px; }
    .promo-features { gap: 8px; flex-wrap: wrap; }
    .promo-orb { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
    .welcome-card { width: calc(100vw - 24px); max-width: 100%; max-height: calc(100dvh - 24px); overflow-y: auto; }
  }
  @media (max-width: 480px) {
    :root { --pad-x: 16px; }
    .nav { padding: 10px var(--pad-x); }
    .logo { font-size: 17px; }
    .nav-toggle { width: 38px; height: 38px; flex: 0 0 38px; }
    .hero-inner { padding-top: calc(var(--header-h, 76px) + 22px); padding-bottom: 32px; }
    .hero h1 { font-size: clamp(30px, 8.4vw, 36px); line-height: 1.12; letter-spacing: -.35px; }
    .eyebrow { max-width: 100%; white-space: normal; font-size: 10px; padding: 6px 10px; }
    .hero-ctas { gap: 10px; margin-bottom: 26px; }
    .hero-ctas .btn { width: 100%; white-space: normal; text-align: center; }
    .hero-feature-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
    .hero-feature-row .feat { min-width: 0; align-items: flex-start; font-size: 11.5px; }
    .hero-visual { height: 300px; }
    #globeCanvas { width: 115vw; }
    .float-card { max-width: 46%; font-size: 10px; }
    .float-card .sub { font-size: 9px; }
    .fc-global { top: 54%; }
    .fc-students { bottom: 18%; }
    .fc-name b { font-size: 18px; }
    .courses-head h2 { font-size: 29px; line-height: 1.15; }
    .course-card h3.big { font-size: 32px; }
    .footer-grid { grid-template-columns: minmax(0,1fr); }
    .promo-overlay {
      padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
      align-items: center;
    }
    .promo-modal {
      width: 100%;
      max-width: 440px;
      max-height: calc(100dvh - 16px);
      overflow: hidden;
      padding: 42px 14px 14px;
      border-radius: 22px;
    }
    .promo-close { top: 9px; right: 9px; width: 32px; height: 32px; }
    .promo-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .promo-visual { display: none; }
    .promo-content { min-width: 0; }
    .promo-badge { font-size: 9px; padding: 6px 9px; margin-bottom: 7px; }
    .promo-cap { font-size: 21px; margin-bottom: 2px; }
    .promo-content h3 { font-size: clamp(22px, 6.2vw, 28px); line-height: 1.08; margin-bottom: 5px; }
    .promo-content .promo-sub { font-size: 11px; line-height: 1.35; margin-bottom: 8px; }
    .promo-save { padding: 7px 11px; margin-bottom: 7px; gap: 8px; border-radius: 12px; }
    .promo-save .save-lbl { font-size: 13px; }
    .promo-save .save-num { font-size: 30px; }
    .promo-code { max-width: 100%; padding: 7px 10px; margin-bottom: 8px; gap: 6px; }
    .promo-code .code-label { font-size: 11px; gap: 5px; }
    .promo-code .code-value { font-size: 13px; }
    .promo-orb { z-index: 9999; }
  }
  /* Narrow-phone overflow fixes discovered by Playwright (320px viewport). */
  @media (max-width: 480px) {
    .cta-ctas { flex-wrap: wrap; min-width: 0; }
    .cta-ctas .btn { max-width: 100%; white-space: normal; }
    .why-glow-blob { max-width: 100vw; }
  }
  /* Fix actual 320px screenshot overflow: course selector and announcement bar. */
  @media (max-width: 480px) {
    .courses-head,
    .courses-head > div,
    .courses-head > div:last-child {
      min-width: 0;
      max-width: 100%;
      width: 100%;
    }
    .seg-toggle {
      width: 100%;
      min-width: 0;
      max-width: 100%;
      box-sizing: border-box;
      border-radius: 18px;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2px;
    }
    .seg-toggle button {
      flex: 1 1 0;
      width: 0;
      min-width: 0;
      max-width: 100%;
      box-sizing: border-box;
      padding: 9px 6px;
      white-space: normal;
      overflow-wrap: anywhere;
    }
    .announcement-bar {
      max-height: 80px;
      padding: 8px 42px 8px 12px;
      font-size: 10.5px;
    }
    .announcement-bar .ann-inner { gap: 5px; }
  }
  /* Keep decorative art and compact controls inside the viewport on very narrow phones. */
  @media (max-width: 480px) {
    html, body { max-width: 100%; overflow-x: clip; }
    .hero, .hero-inner, .hero-visual, .why, .educator, .testimonials, .resources, .cta-section,
    .hero-wave, .flow-blobs { max-width: 100%; }
    .hero-wave { width: 100%; left: 0; }
    .photo-ground-glow { max-width: 100vw; }
    .hero-ctas, .nav-right, .cta-ctas { min-width: 0; }
    .hero-ctas .btn, .nav-right .btn, .cta-ctas .btn { box-sizing: border-box; max-width: 100%; white-space: normal; }
    .announcement-bar, .ann-inner { min-width: 0; max-width: 100%; }
    .announcement-close { flex: 0 0 auto; }
    .promo-orb { max-width: calc(100vw - 16px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-sparkles, .shooting-star, .float-card, .promo-orb-ball, .promo-coin { animation: none !important; }
    *, *::before, *::after { scroll-behavior: auto !important; }
  }


  /* Hero: keep copy and globe side by side on tablets, and scale up on large screens. */
  @media (min-width: 961px) and (max-width: 1100px) {
    .hero-inner { min-height: min(100vh, 880px); }
    .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 20px; padding-bottom: 36px; }
    .hero h1 { font-size: clamp(36px, 4.7vw, 46px); }
    .hero-feature-row { margin-top: 26px; gap: 14px 12px; }
    .hero-feature-row .feat { font-size: 12.5px; }
    .hero-visual { min-height: 0; height: clamp(400px, 50vw, 500px); margin-top: 0; }
    #globeCanvas { width: clamp(400px, 50vw, 500px); }
    .globe-glow { width: clamp(300px, 38vw, 380px); height: clamp(300px, 38vw, 380px); }
    .globe-acronym { font-size: clamp(56px, 7.2vw, 72px); }
    .hero-visual .float-card { max-width: 48%; }
    .hero .hero-visual .fc-sbr, .hero .hero-visual .fc-students { left: 0; }
    .hero .hero-visual .fc-aaa, .hero .hero-visual .fc-global { right: 0; }
  }
  /* Stacked tablet range: keep the globe and its cards inside the column and clear of the copy above. */
  @media (min-width: 769px) and (max-width: 960px) {
    .hero-grid { row-gap: 48px; }
    .hero-visual { width: 100%; max-width: 640px; height: clamp(440px, 64vw, 540px); min-height: 0; margin: 0 auto; }
    #globeCanvas { width: clamp(420px, 62vw, 520px); }
    .globe-glow { width: clamp(300px, 46vw, 400px); height: clamp(300px, 46vw, 400px); }
    .globe-acronym { font-size: clamp(60px, 9vw, 80px); }
    .hero .hero-visual .float-card { max-width: 46%; }
    .hero .hero-visual .fc-sbr { top: 4%; left: 0; }
    .hero .hero-visual .fc-aaa { top: 4%; right: 0; }
    .hero .hero-visual .fc-students { top: auto; bottom: 6%; left: 0; }
    .hero .hero-visual .fc-global { top: auto; bottom: 6%; right: 0; }
  }
  @media (min-width: 1600px) {
    .hero-grid { max-width: 1560px; gap: 64px; }
    .hero h1 { font-size: 66px; margin-bottom: 26px; }
    .hero p { font-size: 19px; max-width: 560px; }
    .hero-ctas .btn { padding: 16px 32px; font-size: 16px; }
    .hero-social .label { font-size: 16px; }
    .hero-social .sub { font-size: 14px; }
    .avatars img { width: 44px; height: 44px; }
    .hero-feature-row .feat { font-size: 15.5px; }
    .hero-feature-row .feat .ic { width: 46px; height: 46px; }
    .hero-visual { min-height: 700px; }
    #globeCanvas { width: 720px; height: 720px; }
    .globe-glow { width: 520px; height: 520px; }
    .globe-acronym { font-size: 100px; }
  }

  /* Mentorship form: field-level validation, without a generic validation toast. */
  #mentorshipBooking .mentorship-field-invalid > input,
  #mentorshipBooking .mentorship-field-invalid .mentorship-phone-control input,
  #mentorshipBooking .mentorship-field-invalid select {
    border-color: #ff647c !important;
    box-shadow: 0 0 0 3px rgba(255, 100, 124, .16) !important;
  }
  #mentorshipBooking .mentorship-inline-error {
    display: block;
    margin-top: 5px;
    color: #ff8294;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
  }
  #mentorshipBooking .mentorship-field-invalid {
    color: #ffe0e5;
  }


  /* Mentorship booking completion state */
  #mentorshipBooking.booking-complete .mentorship-flow-kicker{color:#a7f3d0;}
  #mentorshipBooking.booking-complete .mentorship-flow-kicker > span{background:#34d399;box-shadow:0 0 0 5px rgba(52,211,153,.13);}
  #mentorshipBooking.booking-complete .mentorship-progress span{background:rgba(52,211,153,.25);}
  #mentorshipBooking.booking-complete .mentorship-progress span.active{background:#34d399;}
  #mentorshipBooking .mentorship-booking-success{
    margin-top:18px;padding:22px 18px;border:1px solid rgba(52,211,153,.34);
    border-radius:18px;background:linear-gradient(145deg,rgba(16,185,129,.14),rgba(99,102,241,.09));
    text-align:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 16px 36px rgba(0,0,0,.12);
  }
  #mentorshipBooking .mentorship-success-icon{
    display:flex;align-items:center;justify-content:center;width:58px;height:58px;margin:0 auto 14px;
    border-radius:50%;background:linear-gradient(135deg,#10b981,#34d399);color:#062b25;
    font-size:30px;font-weight:900;box-shadow:0 0 0 8px rgba(52,211,153,.10),0 10px 28px rgba(16,185,129,.24);
  }
  #mentorshipBooking .mentorship-booking-success strong{display:block;color:#f0fdf4;font-size:18px;margin-bottom:7px;}
  #mentorshipBooking .mentorship-booking-success p{margin:0;color:#c8d6ef;font-size:13px;line-height:1.65;}
  #mentorshipBooking .mentorship-success-pill{
    display:inline-flex;align-items:center;gap:6px;margin-top:14px;padding:7px 11px;border-radius:999px;
    border:1px solid rgba(52,211,153,.28);background:rgba(16,185,129,.10);color:#a7f3d0;
    font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  }


  @media(max-width:560px){
    .course-card{padding:24px 20px 20px;gap:16px;}
    .course-card h3.big{font-size:48px;}
    .course-card h4{font-size:18px;}
    .course-meta{font-size:12.5px;}
    .course-list{grid-template-columns:1fr;column-gap:0;}
    .course-actions{grid-template-columns:1fr;}
  }


  /* Globe callouts: capsule glass treatment and balanced corner placement. */
  .hero-visual .float-card{
    z-index:4;border-radius:40px;padding:11px 18px 11px 11px;gap:11px;
    background:linear-gradient(135deg,rgba(16,24,54,.94),rgba(8,13,34,.9));
    border:1px solid rgba(170,188,255,.25);
    -webkit-backdrop-filter:blur(18px) saturate(145%);backdrop-filter:blur(18px) saturate(145%);
    box-shadow:0 16px 38px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.1);
    font-family:'Nunito','Segoe UI',sans-serif;font-size:13px;
    animation:bob 5s ease-in-out infinite;
  }
  .hero-visual .float-card .ic-sq{
    width:46px;height:46px;border-radius:50%;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 0 0 5px rgba(101,133,255,.08),0 0 22px rgba(76,112,255,.34);
  }
  .hero-visual .float-card .ic-sq svg{width:23px;height:23px;stroke:currentColor;}
  .hero-visual .fc-sbr .ic-sq,.hero-visual .fc-students .ic-sq{color:#dce9ff;}
  .hero-visual .fc-aaa .ic-sq,.hero-visual .fc-global .ic-sq{color:#fff;}
  .hero-visual .fc-aaa .ic-sq svg,.hero-visual .fc-global .ic-sq svg{
    width:25px;height:25px;stroke-width:2.25;filter:drop-shadow(0 0 2px rgba(255,255,255,.7));
  }
  .hero-visual .float-card .sub{font-family:'Nunito','Segoe UI',sans-serif;font-size:11px;color:#b5bfd9;}
  .hero-visual .fc-sbr{top:9%;left:-2%;}
  .hero-visual .fc-aaa{top:9%;right:-2%;}
  .hero-visual .fc-students{top:auto;bottom:11%;left:-8%;max-width:calc(50% - 12px);}
  .hero-visual .fc-global{top:auto;bottom:11%;right:-8%;max-width:calc(50% - 12px);}
  .hero-visual .fc-sbr .ic-sq,.hero-visual .fc-students .ic-sq{background:linear-gradient(135deg,#2f80ff,#5874ff);}
  .hero-visual .fc-aaa .ic-sq,.hero-visual .fc-global .ic-sq{background:linear-gradient(135deg,#8a4cff,#ba68ff);box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 0 0 5px rgba(173,91,255,.09),0 0 22px rgba(173,91,255,.34);}
  @media(max-width:768px){
    .hero-visual .float-card{max-width:46%;padding:8px 10px 8px 8px;gap:8px;font-size:10.5px;border-radius:24px;}
    .hero-visual .float-card .ic-sq{width:34px;height:34px;}
    .hero-visual .float-card .ic-sq svg{width:17px;height:17px;}
    .hero-visual .float-card .sub{font-size:9.5px;}
    .hero-visual .fc-sbr{top:4%;left:0;}
    .hero-visual .fc-aaa{top:4%;right:0;}
    .hero-visual .fc-students{top:auto;bottom:5%;left:0;max-width:46%;}
    .hero-visual .fc-global{top:auto;bottom:5%;right:0;max-width:46%;}
  }
  @media(max-width:480px){
    .hero-visual .float-card{padding:7px 9px 7px 7px;font-size:10px;border-radius:20px;}
    .hero-visual .float-card .ic-sq{width:30px;height:30px;}
    .hero-visual .float-card .sub{font-size:9px;}
  }

  /* Underline the primary navigation item for the section in view. */
  .nav-links>a.active,.nav-dropdown.active>summary{position:relative;color:#fff;}
  .nav-links>a.active::after,.nav-dropdown.active>summary::before{
    content:"";position:absolute;left:0;right:0;bottom:-9px;height:2px;border-radius:2px;
    background:linear-gradient(90deg,#79a4ff,#b87cff);box-shadow:0 0 9px rgba(117,137,255,.4);
  }
  .nav-links.mobile-open>a.active::after,.nav-links.mobile-open .nav-dropdown.active>summary::before{display:none;}
  .nav-links.mobile-open>a.active,.nav-links.mobile-open .nav-dropdown.active>summary{background:rgba(116,134,255,.14);border-color:rgba(155,171,255,.2);}
