/* ============================================================
   ELARIS — HOME PAGE  (home-page.css)
   hero.css (3D globe hero) + all home sections in one file.
   ============================================================ */

/* ---- hero (3D globe) ---- */
/* ============================================================
   NEBRAS ANIMATED HERO — EXACT IMPLEMENTATION
   ============================================================ */

:root {
  --navy: #00296B;
  --gold: #FDC500;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

/* Premium editorial hero background */
.hero-wrapper {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: calc(100vh - var(--nav-h)); /* Fill the screen minus navbar */
  display: grid;
  place-items: center;
  padding: clamp(8px, 1.5vw, 20px) 24px; /* Tight top/bottom spacing — closer to navbar */
  background-color: #f0f4fa;
  
  /* Premium Architectural Grid */
  background-image: 
    linear-gradient(to right, rgba(0, 41, 107, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 41, 107, 0.1) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  background-position: center center;
  
  font-family: var(--font-body);
  overflow: hidden;
}

.hero-wrapper::before,
.hero-wrapper::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.hero-wrapper::before {
  width: 600px;
  height: 600px;
  top: -400px;
  right: -150px;
  background: rgba(253, 197, 0, 0.12);
}

.hero-wrapper::after {
  width: 500px;
  height: 500px;
  bottom: -350px;
  left: -180px;
  background: rgba(0, 41, 107, 0.07);
}

/* Premium floating hero card */
.hero {
  width: min(1280px, 100%);
  min-height: 640px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  padding: clamp(32px, 5vw, 76px);
  
  /* Solid white background to contrast against the grid */
  background-color: #ffffff;
  
  border: 1px solid rgba(0, 41, 107, 0.08);
  border-radius: 36px;
  box-shadow:
    0 35px 90px rgba(0, 41, 107, 0.12),
    0 5px 20px rgba(0, 41, 107, 0.04);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 7%;
  width: 100px;
  height: 4px;
  background: var(--gold);
  border-radius: 0 0 10px 10px;
}

/* ============================================================
   PREMIUM HERO CONTENT — LEFT SIDE
   ============================================================ */

.copy {
  position: relative;
  z-index: 3;
  max-width: 530px;
  padding-block: 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 28px;
  padding: 8px 15px 8px 9px;
  color: var(--navy);
  background: #f4f7fc;
  border: 1px solid rgba(0, 41, 107, 0.08);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.eyebrow-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 50%;
}

.eyebrow-icon i {
  font-size: 13px;
}

.hero .copy h1 {
  max-width: 560px;
  margin: 0 0 24px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 4.7rem);
  font-weight: 750;
  line-height: .99;
  letter-spacing: -.055em;
}

.hero .copy h1 span {
  display: block;
  position: relative;
  width: fit-content;
  margin-top: 9px;
  color: var(--navy);
  white-space: normal;
  z-index: 1;
}

.hero .copy h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 9px;
  border-radius: 10px;
  background: var(--gold);
  opacity: .75;
  z-index: -1;
}

.hero .hero-description {
  max-width: 450px;
  color: #647187;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.85;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 32px;
}

.hero .el-btn {
  min-height: 54px;
  padding: 14px 23px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition:
    transform .3s var(--ease),
    background .3s var(--ease),
    box-shadow .3s var(--ease),
    border-color .3s var(--ease);
}

.hero .hero-primary-btn {
  gap: 13px;
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(253, 197, 0, .19);
}

.hero .hero-primary-btn i {
  font-size: 12px;
  transition: transform .3s var(--ease);
}

.hero .hero-primary-btn:hover {
  background: #ffcf20;
  transform: translateY(-3px);
  box-shadow: 0 13px 28px rgba(253, 197, 0, .3);
}

.hero .hero-primary-btn:hover i {
  transform: translateX(4px);
}

.hero .hero-secondary-btn {
  gap: 10px;
  background: #fff;
  color: var(--navy);
  border: 1px solid rgba(0, 41, 107, .16);
}

.hero .hero-secondary-btn:hover {
  background: #f5f7fb;
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.hero .trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 41, 107, .09);
}

.hero .trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #526078;
  font-size: 11px;
  font-weight: 700;
}

.hero .trust i {
  color: #c69b00;
  font-size: 14px;
}
.visual {
  height: 500px;
  min-width: 0;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.visual:before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, #fdc50024, transparent 68%);
  z-index: -2;
}

/* Orbits */
.orbit {
  position: absolute;
  border: 1px solid #00296b22;
  border-radius: 50%;
}
.o1 {
  width: 390px;
  height: 190px;
  transform: rotate(-22deg);
  animation: spin 24s linear infinite;
}
.o2 {
  width: 460px;
  height: 250px;
  transform: rotate(55deg);
  border-style: dashed;
  animation: reverse 34s linear infinite;
}
.o3 {
  width: 320px;
  height: 320px;
  border-color: #fdc50070;
  animation: spin 42s linear infinite;
}

/* Globe */
.globeWrap {
  width: 230px;
  height: 230px;
  position: relative;
  display: grid;
  place-items: center;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 22px 22px #00296b29);
}
.globe {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffffcc;
  background: radial-gradient(circle at 32% 25%, #fff 0 3%, #dce8f8 18%, #6e91c1 55%, #00296b 100%);
  box-shadow: inset -18px -12px 30px #00143d61, inset 10px 8px 20px #ffffff8c, 0 0 0 9px #00296b09;
}
.globe:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 35% 38%, transparent 0 17%, #ffffff77 17.5% 18%, transparent 18.5% 31%, #ffffff59 31.5% 32%, transparent 32.5%), linear-gradient(90deg, transparent 48%, #ffffff70 49.5% 50.5%, transparent 52%), repeating-linear-gradient(0deg, transparent 0 27px, #ffffff38 28px 29px);
}
.globe:after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: linear-gradient(110deg, transparent 35%, #ffffff59 48%, transparent 60%);
  animation: shine 7s ease-in-out infinite;
}
.globeLabel {
  position: absolute;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  text-shadow: 0 1px 8px var(--navy);
}

/* Pins & Nodes */
.pin {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid white;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fdc50033, 0 0 16px var(--gold);
  z-index: 2;
}
.p1 { top: 38%; left: 32%; }
.p2 { top: 54%; left: 66%; }
.p3 { top: 68%; left: 43%; }

.node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px #fdc50020;
}
.n1 { left: 15%; top: 38%; }
.n2 { right: 13%; top: 48%; }
.n3 { left: 26%; bottom: 17%; }

/* Floating Cards */
.card {
  position: absolute;
  z-index: 4;
  min-width: 132px;
  padding: 13px 15px;
  border: 1px solid #e5ebf4;
  border-radius: 13px;
  background: #ffffffef;
  box-shadow: 0 14px 35px #00296b1f;
  color: var(--navy);
  animation: float 5s ease-in-out infinite;
}
.card small {
  display: block;
  color: #8290a6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 5px;
}
.card strong {
  font-size: 14px;
}
.fbise { top: 78px; left: 5%; }
.cambridge { right: 0; top: 142px; animation-delay: -1.8s; }
.live { left: 0; bottom: 105px; animation-delay: -2.7s; }
.progress { right: 1%; bottom: 70px; animation-delay: -.8s; }

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #24b47e;
  border-radius: 50%;
  margin-right: 6px;
}
.bar {
  height: 5px;
  background: #e9eef6;
  border-radius: 9px;
  margin-top: 9px;
  overflow: hidden;
}
.bar i {
  display: block;
  width: 78%;
  height: 100%;
  background: var(--gold);
}

.achievement {
  position: absolute;
  z-index: 4;
  top: 28px;
  right: 17%;
  padding: 9px 12px;
  background: var(--navy);
  color: white;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 750;
  box-shadow: 0 10px 24px #00296b33;
  animation: float 5.5s ease-in-out infinite;
}
.achievement b {
  color: var(--gold);
  margin-right: 5px;
}

.hint {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  color: #9aa7b9;
  font-size: 9px;
  letter-spacing: .12em;
  white-space: nowrap;
}

/* Keyframes */
@keyframes spin { to { rotate: 360deg; } }
@keyframes reverse { to { rotate: -360deg; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes shine { 0%, 100% { transform: translateX(-55%) rotate(15deg); } 50% { transform: translateX(55%) rotate(15deg); } }

/* ============================================================
   RESPONSIVE HERO
   ============================================================ */

@media(max-width: 1050px) {
  .hero {
    grid-template-columns: .95fr 1.05fr;
    padding: 42px;
    min-height: 590px;
  }

  .hero .copy h1 {
    font-size: clamp(2.8rem, 5vw, 3.8rem);
  }

  .hero .trust {
    gap: 12px;
  }
}

@media(max-width: 850px) {
  .hero-wrapper {
    min-height: auto;
    padding: 45px 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 45px 36px 25px;
    gap: 0;
    min-height: auto;
  }

  .copy {
    max-width: 650px;
  }

  .hero .copy h1 {
    max-width: 600px;
    font-size: clamp(3rem, 7vw, 4.4rem);
  }

  .hero .hero-description {
    max-width: 560px;
  }

  .visual {
    height: 450px;
  }
}

@media(max-width: 520px) {
  .hero-wrapper {
    padding: 18px 12px;
  }

  .hero {
    border-radius: 24px;
    padding: 34px 22px 16px;
  }

  .eyebrow {
    gap: 8px;
    margin-bottom: 23px;
    padding: 7px 12px 7px 7px;
    font-size: 8px;
    letter-spacing: .09em;
  }

  .eyebrow-icon {
    width: 27px;
    height: 27px;
  }

  .hero .copy h1 {
    font-size: clamp(2.65rem, 11vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -.055em;
  }

  .hero .copy h1 span {
    margin-top: 6px;
  }

  .hero .copy h1 span::after {
    height: 7px;
    bottom: 2px;
  }

  .hero .hero-description {
    font-size: 14px;
    line-height: 1.8;
  }

  .hero .actions {
    gap: 10px;
    margin-top: 25px;
  }

  .hero .el-btn {
    min-height: 49px;
    padding: 12px 17px;
    font-size: 12px;
  }

  .hero .trust {
    gap: 12px 15px;
    margin-top: 27px;
    padding-top: 20px;
  }

  .hero .trust span {
    font-size: 10px;
  }

  .visual {
    height: 365px;
    transform: scale(.88);
    transform-origin: top center;
    margin: 0 -20px -35px;
  }

  .o2 { width: 390px; height: 210px; }
  .o1 { width: 330px; height: 165px; }
  .globeWrap { transform: scale(.82); }

  .fbise { left: 0; top: 50px; }
  .cambridge { right: -5px; top: 100px; }
  .live { bottom: 75px; left: -3px; }
  .progress { bottom: 45px; right: -5px; }
  .achievement { right: 12%; top: 12px; }
  .hint { bottom: 0; }
}

@media(prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   FOUC PREVENTION: Hides hero LEAF elements (not containers)
   ============================================================ */
.js .hero-wrapper .copy .eyebrow,
.js .hero-wrapper .copy h1,
.js .hero-wrapper .copy .hero-description,
.js .hero-wrapper .copy .el-btn,
.js .hero-wrapper .copy .trust span,
.js .hero-wrapper .visual .orbit,
.js .hero-wrapper .visual .globeWrap,
.js .hero-wrapper .visual .card,
.js .hero-wrapper .visual .achievement,
.js .hero-wrapper .visual .node,
.js .hero-wrapper .visual .hint {
  opacity: 0;
}

/* If user prefers reduced motion, show immediately */
@media (prefers-reduced-motion: reduce) {
  .js .hero-wrapper .copy .eyebrow,
  .js .hero-wrapper .copy h1,
  .js .hero-wrapper .copy .hero-description,
  .js .hero-wrapper .copy .el-btn,
  .js .hero-wrapper .copy .trust span,
  .js .hero-wrapper .visual .orbit,
  .js .hero-wrapper .visual .globeWrap,
  .js .hero-wrapper .visual .card,
  .js .hero-wrapper .visual .achievement,
  .js .hero-wrapper .visual .node,
  .js .hero-wrapper .visual .hint {
    opacity: 1 !important;
  }
}

/* ---- home sections ---- */
/* ============================================================
   ELARIS — HOME PAGE SECTIONS  (home-v2.css)
   Loaded only by index.php, after hero.css.
   Prefix hx-  = home-only parts.  x-pw / x-bill = pathway deck (engine in fx.js)
   Layout rule: DESKTOP first, then a SEPARATE mobile design under @media (max-width: 820px)
   ============================================================ */

/* ---------------- HERO extras ---------------- */
.hero-wrapper .x-dust { z-index: 0; }
.hero-wrapper::after { /* soft light that follows the pointer (set by home-hero.js) */
  background: radial-gradient(520px 360px at var(--mx, 70%) var(--my, 40%), rgba(253, 197, 0, .16), transparent 70%) !important;
  transition: background .15s linear;
}
.hero .visual { transform-style: preserve-3d; }

/* ---------------- TRUST ---------------- */
.hx-trust { background: #fff; }
.hx-trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--x-gap); }
.hx-tcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 34px); overflow: hidden; min-height: 330px; }
.hx-tcard::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 170px; height: 170px; border-radius: 50%; background: var(--tc); opacity: .08; transition: scale .6s var(--x-ease); }
.hx-tcard:hover::after { scale: 1.5; }
.hx-tcard__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.hx-tcard__no { font: 800 13px/1 var(--font-heading); letter-spacing: .1em; color: var(--tc); opacity: .55; }
.hx-tcard__tag { font: 800 11.5px/1 var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--tc); }
.hx-tcard h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); letter-spacing: -.02em; color: var(--x-ink); }
.hx-tcard p { font-size: 15px; line-height: 1.7; color: var(--x-text); }
.hx-tcard__link { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--font-heading); color: var(--tc); }
.hx-tcard__link i { transition: translate .3s var(--x-ease); font-size: 12px; }
.hx-tcard:hover .hx-tcard__link i { translate: 5px 0; }
.hx-note { display: flex; gap: 12px; align-items: flex-start; max-width: 880px; margin: 34px auto 0; padding: 16px 20px; border-radius: 16px; background: var(--x-paper); border: 1px dashed var(--x-line); font-size: 13.5px; line-height: 1.65; color: var(--x-text); }
.hx-note i { color: var(--x-teal); margin-top: 3px; }

/* ---------------- PATHWAYS deck (desktop: left copy stays, right cards are flicked away) ---------------- */
.x-pw {
  padding: 0;
  height: calc((100svh - var(--x-nav)) + (var(--n) - 1) * 85svh);
  overflow: clip;
}
.x-pw__stage { position: sticky; top: var(--x-nav); height: calc(100svh - var(--x-nav)); display: flex; align-items: center; }
.x-pw__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.x-pw__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.x-pw__count { display: flex; align-items: baseline; gap: 8px; margin-top: 38px; color: #fff; max-width: 340px; }
.x-pw__count b { font: 800 clamp(2rem, 3.4vw, 2.8rem)/1 var(--font-heading); color: var(--x-gold); font-variant-numeric: tabular-nums; }
.x-pw__count span { font: 600 14px/1 var(--font-body); opacity: .6; }
.x-pw__count i { flex: 1; height: 2px; background: rgba(255, 255, 255, .18); position: relative; margin-left: 10px; align-self: center; border-radius: 2px; overflow: hidden; }
.x-pw__count u { position: absolute; inset: 0; background: var(--x-gold); transform-origin: 0 50%; transform: scaleX(.33); text-decoration: none; transition: transform .45s var(--x-ease); }

.x-pw__deck { position: relative; height: min(540px, calc(100svh - var(--x-nav) - 96px)); perspective: 1400px; }
.x-bill {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(24px, 3vw, 42px); border-radius: 30px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 34px 70px -26px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .04) inset;
  color: var(--x-text); will-change: transform;
}
.x-bill::before { /* engraved-note border like a bill */
  content: ""; position: absolute; inset: 10px; border-radius: 22px; border: 1.5px dashed color-mix(in srgb, var(--tc) 28%, transparent); pointer-events: none;
}
.x-bill__no { position: absolute; right: 30px; top: 18px; font: 800 clamp(4rem, 8vw, 7rem)/1 var(--font-heading); letter-spacing: -.05em; color: var(--tc); opacity: .1; }
.x-bill .x-ico { width: 56px; height: 56px; font-size: 22px; border-radius: 16px; margin-bottom: 8px; }
.x-bill__tag { font: 800 11.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--tc); }
.x-bill h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -.03em; color: var(--x-ink); line-height: 1.05; }
.x-bill p { font-size: clamp(14.5px, 1.2vw, 16px); line-height: 1.7; max-width: 46ch; }
.x-bill ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 9px; }
.x-bill li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14.5px; color: var(--x-ink-2); }
.x-bill li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: var(--tc); color: #fff; flex-shrink: 0; }
.x-bill__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 700 14.5px/1 var(--font-heading); color: var(--tc); }
.x-bill__link i { transition: translate .3s var(--x-ease); font-size: 12px; }
.x-bill:hover .x-bill__link i { translate: 5px 0; }

/* no motion / engine failed: plain readable list */
.x-static .x-pw { height: auto; padding-block: var(--x-sec); }
.x-static .x-pw__stage { position: static; height: auto; display: block; }
.x-static .x-pw__grid { display: block; }
.x-static .x-pw__count { display: none; }
.x-static .x-pw__deck { height: auto; display: grid; gap: 18px; margin-top: 32px; }
.x-static .x-bill { position: relative; inset: auto; }

/* ---------------- ROADMAP ---------------- */
.hx-road__track { position: relative; }
.hx-road__line { position: absolute; left: 4%; right: 4%; top: 27px; height: 2px; background: var(--x-line); }
.hx-road__line i { display: block; height: 100%; background: linear-gradient(90deg, var(--x-gold), var(--x-teal)); transform-origin: 0 50%; }
.hx-road__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--x-gap); position: relative; }
.hx-step { padding-right: 10px; }
.hx-step__dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 18px/1 var(--font-heading); background: #fff; color: var(--x-navy); border: 2px solid var(--x-gold); box-shadow: 0 0 0 7px var(--x-paper), 0 10px 22px -10px rgba(0, 41, 107, .4); margin-bottom: 20px; }
.hx-step small { display: block; font: 800 11px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--x-teal); margin-bottom: 8px; }
.hx-step h3 { font-size: 1.2rem; color: var(--x-ink); margin-bottom: 6px; letter-spacing: -.01em; }
.hx-step p { font-size: 14.5px; line-height: 1.65; }

/* ---------------- EXPERIENCE (dark bento) ---------------- */
.hx-bento { display: grid; grid-template-columns: 1.08fr 1fr; gap: var(--x-gap); }
.hx-big {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #123a7a, #08214a); border: 1px solid var(--x-line-d);
  transition: translate .4s var(--x-ease), border-color .3s;
}
.hx-big:hover { translate: 0 -5px; border-color: rgba(253, 197, 0, .4); }
.hx-big__art { position: relative; flex: 1; min-height: 270px; display: grid; place-items: center; padding: 28px 28px 8px; }
.hx-win { width: min(560px, 100%); border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid var(--x-line-d); backdrop-filter: blur(6px); overflow: hidden; box-shadow: 0 30px 60px -30px #000; }
.hx-win__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255, 255, 255, .06); font: 600 11.5px/1 var(--font-body); color: rgba(255, 255, 255, .7); }
.hx-win__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.hx-win__bar span { margin-left: 8px; }
.hx-win__bar em { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 800; letter-spacing: .1em; color: #fff; }
.hx-win__bar em b { width: 7px; height: 7px; border-radius: 50%; background: #ff5a5f; animation: hx-live 1.4s ease-in-out infinite; }
@keyframes hx-live { 50% { opacity: .25; } }
.hx-win__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 120px 70px; gap: 8px; padding: 12px; }
.hx-win__main { grid-column: 1 / -1; border-radius: 12px; background: linear-gradient(135deg, rgba(111, 224, 212, .18), rgba(253, 197, 0, .12)); padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.hx-win__main span { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .28); width: 80%; }
.hx-win__main span:nth-child(2) { width: 62%; } .hx-win__main span:nth-child(3) { width: 44%; }
.hx-win__tile { border-radius: 10px; background: rgba(255, 255, 255, .08); position: relative; animation: hx-speak 6s ease-in-out infinite; }
.hx-win__tile::after { content: ""; position: absolute; left: 50%; top: 42%; width: 26px; height: 26px; translate: -50% -50%; border-radius: 50%; background: rgba(255, 255, 255, .28); box-shadow: 0 22px 0 -4px rgba(255, 255, 255, .18); }
.hx-win__tile:nth-of-type(2) { animation-delay: 1.5s; } .hx-win__tile:nth-of-type(3) { animation-delay: 3s; } .hx-win__tile:nth-of-type(4) { animation-delay: 4.5s; }
@keyframes hx-speak { 0%, 18%, 100% { box-shadow: inset 0 0 0 0 transparent; } 6%, 12% { box-shadow: inset 0 0 0 2px var(--x-mint); } }
.hx-big__body { position: relative; padding: 8px clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hx-tag { display: inline-flex; align-items: center; gap: 8px; font: 800 11.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--x-gold); }
.hx-big h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: #fff; letter-spacing: -.025em; max-width: 18ch; line-height: 1.08; }
.hx-big p { color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.65; max-width: 44ch; }
.hx-big .x-btn { margin-top: 8px; }

.hx-smalls { display: grid; grid-template-columns: 1fr 1fr; gap: var(--x-gap); }
.hx-small { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, .05); border: 1px solid var(--x-line-d); overflow: hidden; transition: translate .4s var(--x-ease), background .3s, border-color .3s; }
.hx-small:hover { translate: 0 -5px; background: rgba(255, 255, 255, .09); border-color: rgba(253, 197, 0, .4); }
.hx-small__ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 17px; margin-bottom: 6px; }
.hx-small__tag { font: 800 11px/1 var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--x-mint); }
.hx-small h3 { font-size: 1.12rem; color: #fff; letter-spacing: -.01em; }
.hx-small p { font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .66); }
.hx-small__go { position: absolute; right: 18px; bottom: 18px; font-size: 12px; opacity: .35; transition: opacity .3s, translate .3s var(--x-ease); }
.hx-small:hover .hx-small__go { opacity: 1; translate: 3px -3px; color: var(--x-gold); }

.hx-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: var(--x-gap); }
.hx-chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--x-line-d); }
.hx-chip > i { color: var(--x-mint); font-size: 16px; width: 20px; text-align: center; }
.hx-chip b { display: block; font: 700 13.5px/1.2 var(--font-heading); color: #fff; }
.hx-chip small { display: block; font-size: 12px; color: rgba(255, 255, 255, .55); margin-top: 3px; }

/* ---------------- ABOUT ---------------- */
.hx-about { background: #fff; }
.hx-about__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.hx-about__media { position: relative; }
.hx-about__img { aspect-ratio: 4 / 4.6; border-radius: 30px; box-shadow: 0 40px 80px -36px rgba(0, 41, 107, .5); }
.hx-about__img img { transform: scale(1.12); }          /* room for the parallax drift */
.hx-badge { position: absolute; right: -18px; bottom: 34px; padding: 16px 22px; border-radius: 20px; background: var(--x-navy); color: #fff; display: flex; align-items: center; gap: 14px; box-shadow: 0 24px 44px -18px rgba(0, 41, 107, .6); }
.hx-badge b { font: 800 2rem/1 var(--font-heading); color: var(--x-gold); }
.hx-badge span { font-size: 12.5px; line-height: 1.35; opacity: .85; }
.hx-pillars { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 12px; }
.hx-pillar { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--x-line); background: #fff; transition: translate .35s var(--x-ease), box-shadow .35s var(--x-ease); }
.hx-pillar:hover { translate: 6px 0; box-shadow: 0 16px 30px -20px rgba(0, 41, 107, .4); }
.hx-pillar__ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: #e6f4f5; color: var(--x-teal); flex-shrink: 0; }
.hx-pillar b { display: block; font: 700 15px/1.2 var(--font-heading); color: var(--x-ink); }
.hx-pillar small { display: block; font-size: 13.5px; color: var(--x-text); margin-top: 3px; line-height: 1.5; }

.hx-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 80px); padding: 10px; border-radius: 26px; background: linear-gradient(150deg, #0a2f66, var(--x-ink)); box-shadow: 0 34px 60px -30px rgba(0, 41, 107, .6); }
.hx-stat { padding: 26px 24px; position: relative; }
.hx-stat + .hx-stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--x-line-d); }
.hx-stat strong { display: block; font: 800 clamp(1.7rem, 3vw, 2.5rem)/1 var(--font-heading); color: var(--x-gold); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hx-stat span { display: block; margin-top: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }

/* ---------------- VALUES (desktop grid) ---------------- */
.hx-val__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--x-gap); }
.hx-vwrap { transform-style: preserve-3d; }
.hx-vcard { position: relative; height: 100%; min-height: 250px; display: flex; flex-direction: column; gap: 10px; padding: 30px 28px; border-radius: 26px; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); border: 1px solid var(--x-line-d); overflow: hidden; transition: border-color .3s, background .3s; }
.hx-vwrap:hover .hx-vcard { border-color: rgba(253, 197, 0, .5); background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); }
.hx-vcard__no { position: absolute; right: 22px; top: 14px; font: 800 4.2rem/1 var(--font-heading); letter-spacing: -.05em; color: #fff; opacity: .06; }
.hx-vcard__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 21px; color: var(--x-navy); background: linear-gradient(135deg, var(--x-gold), #ffe27a); box-shadow: 0 14px 26px -12px rgba(253, 197, 0, .6); margin-bottom: 8px; }
.hx-vcard h3 { font-size: 1.28rem; color: #fff; letter-spacing: -.015em; }
.hx-vcard p { font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .7); }

/* ---------------- FAQ ---------------- */
.hx-faq__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.hx-faq__side { position: sticky; top: calc(var(--x-nav) + 28px); }
.hx-help { display: flex; gap: 16px; margin-top: 30px; align-items: flex-start; }
.hx-help h4 { font-size: 1.05rem; color: var(--x-ink); }
.hx-help p { font-size: 14px; margin: 4px 0 14px; }
.hx-help__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hx-help__btns .x-btn { min-height: 42px; padding: 10px 18px; font-size: 13.5px; }

.x-faq { display: grid; gap: 12px; }
.x-faq__item { background: #fff; border: 1px solid var(--x-line); border-radius: 20px; transition: border-color .3s, box-shadow .3s; }
.x-faq__item.is-open { border-color: rgba(0, 41, 107, .28); box-shadow: 0 22px 40px -28px rgba(0, 41, 107, .5); }
.x-faq__q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-align: left; color: var(--x-ink); font: 700 15.5px/1.4 var(--font-heading); }
.x-faq__no { font: 800 12px/1 var(--font-heading); color: var(--x-teal); letter-spacing: .08em; min-width: 22px; }
.x-faq__t { flex: 1; }
.x-faq__chev { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--x-paper); border: 1px solid var(--x-line); transition: rotate .4s var(--x-ease), background .3s, border-color .3s; }
.x-faq__item.is-open .x-faq__chev { rotate: 180deg; background: var(--x-gold); border-color: var(--x-gold); color: var(--x-navy); }
.x-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--x-ease); }
.x-faq__item.is-open .x-faq__a { grid-template-rows: 1fr; }
.x-faq__a > div { overflow: hidden; }
.x-faq__a p { padding: 0 20px 20px 58px; font-size: 15px; line-height: 1.75; color: var(--x-text); }

/* ---------------- CONTACT ---------------- */
.hx-contact { background: #fff; }
.hx-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.hx-rows { display: grid; gap: 12px; margin: 28px 0; }
.hx-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.hx-row b { display: block; font: 700 16px/1.2 var(--font-heading); color: var(--x-ink); word-break: break-word; }
.hx-row small { display: block; font-size: 12.5px; margin-top: 3px; color: var(--x-text); }
.hx-row__go { margin-left: auto; font-size: 12px; opacity: .4; }
.hx-form { padding: clamp(22px, 3vw, 36px); border-radius: 28px; box-shadow: 0 40px 70px -40px rgba(0, 41, 107, .5); }
.hx-form:hover { translate: 0 0; }
.hx-form__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.hx-form__head h3 { font-size: 1.4rem; letter-spacing: -.02em; color: var(--x-ink); }
.hx-form__head p { font-size: 14px; margin-top: 4px; }
.hx-form form { display: grid; gap: 14px; }
.hx-form label { display: grid; gap: 7px; font: 700 12.5px/1 var(--font-body); color: var(--x-navy); }
.hx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.x-field { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--x-line); background: #fbfcff; font: 500 15px/1.4 var(--font-body); color: var(--x-ink); transition: border-color .25s, box-shadow .25s; resize: vertical; }
.x-field::placeholder { color: #94a0b5; }
.x-field:focus { outline: none; border-color: var(--x-navy); box-shadow: 0 0 0 4px rgba(0, 41, 107, .1); background: #fff; }
.hx-form__note { font-size: 12.5px; text-align: center; color: var(--x-text); }
.hx-form__note.is-bad { color: #c0263c; font-weight: 700; }

/* ---------------- FINAL CTA ---------------- */
.hx-cta { background: #fff; padding-top: 0; }
.hx-cta__card { position: relative; isolation: isolate; overflow: hidden; border-radius: 36px; padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 72px); text-align: center; background: radial-gradient(900px 400px at 15% 0%, #0f3d82, transparent 60%), linear-gradient(160deg, var(--x-ink-2), var(--x-ink)); color: rgba(255, 255, 255, .8); box-shadow: 0 50px 90px -40px rgba(0, 41, 107, .7); }
.hx-cta__body { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.hx-cta__body .x-eyebrow { margin-bottom: 20px; }
.hx-cta__body .x-lead { margin-inline: auto; }
.hx-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ============================================================
   TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .hx-trust__grid { grid-template-columns: 1fr; }
  .hx-tcard { min-height: 0; }
  .hx-bento { grid-template-columns: 1fr; }
  .hx-big { min-height: 520px; }
  .hx-chips { grid-template-columns: repeat(2, 1fr); }
  .hx-road__list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .hx-road__line { display: none; }
}

/* ============================================================
   MOBILE — its own design (≤ 820px)
   ============================================================ */
@media (max-width: 820px) {
  :root { --x-sec: clamp(56px, 14vw, 80px); }

  /* hero: compact, thumb-friendly, chips scroll sideways */
  .hero-wrapper { padding: 12px 12px 26px; }
  .hero { border-radius: 28px; padding: 28px 20px 8px; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .el-btn { width: 100%; justify-content: center; }
  .hero .trust { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .hero .trust::-webkit-scrollbar { display: none; }
  .hero .trust span { white-space: nowrap; flex-shrink: 0; }
  .hero .visual .card.progress, .hero .visual .achievement, .hero .visual .hint { display: none; }

  .x-head { margin-bottom: 28px; }
  .x-head.is-center { text-align: left; margin-inline: 0; }
  .x-head.is-center .x-eyebrow { justify-content: flex-start; }
  .x-head.is-center .x-lead { margin-inline: 0; }

  /* trust: horizontal swipe cards */
  .hx-trust__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--x-pad) * -1); padding: 6px var(--x-pad) 22px; scrollbar-width: none; }
  .hx-trust__grid::-webkit-scrollbar { display: none; }
  .hx-tcard { flex: 0 0 84%; scroll-snap-align: center; }
  .hx-note { margin-top: 12px; }

  /* pathways: bills pile up as you scroll (sticky stack) */
  .x-pw { height: auto; padding-block: var(--x-sec); }
  .x-pw__stage { position: static; height: auto; display: block; }
  .x-pw__grid { display: block; }
  .x-pw__count { display: none; }
  .x-pw__actions { margin-bottom: 36px; }
  .x-pw__deck { height: auto; display: flex; flex-direction: column; gap: 18px; perspective: none; }
  .x-bill { position: sticky; inset: auto; top: calc(var(--x-nav) + 14px + var(--i) * 12px); min-height: min(440px, 68svh); padding: 26px 22px; }
  .x-bill__no { font-size: 5rem; right: 18px; top: 10px; }

  /* roadmap: vertical timeline */
  .hx-road__list { grid-template-columns: 1fr; row-gap: 0; padding-left: 4px; }
  .hx-road__line { display: block; left: 31px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .hx-road__line i { width: 100%; height: 100%; transform-origin: 50% 0; }
  .hx-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 0 0 30px; }
  .hx-step__dot { grid-row: 1 / span 3; margin: 0; }
  .hx-step small, .hx-step h3, .hx-step p { grid-column: 2; }

  /* experience: big card, then a swipeable row of small ones */
  .hx-big { min-height: 470px; border-radius: 24px; }
  .hx-big__art { min-height: 220px; padding: 18px 18px 4px; }
  .hx-win__grid { grid-template-rows: 90px 56px; }
  .hx-smalls { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--x-pad) * -1); padding: 4px var(--x-pad) 14px; scrollbar-width: none; }
  .hx-smalls::-webkit-scrollbar { display: none; }
  .hx-small { flex: 0 0 72%; scroll-snap-align: center; }
  .hx-chips { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hx-chip { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* about: image on top, badge tucked inside, stats 2x2 */
  .hx-about__grid { grid-template-columns: 1fr; gap: 32px; }
  .hx-about__img { aspect-ratio: 4 / 3.6; border-radius: 24px; }
  .hx-badge { right: 14px; bottom: 14px; padding: 12px 16px; }
  .hx-badge b { font-size: 1.5rem; }
  .hx-stats { grid-template-columns: 1fr 1fr; padding: 6px; border-radius: 22px; }
  .hx-stat { padding: 20px 16px; }
  .hx-stat:nth-child(odd)::before { display: none; }
  .hx-stat:nth-child(n+3) { border-top: 1px solid var(--x-line-d); }
  .hx-stat + .hx-stat::before { top: 22%; bottom: 22%; }

  /* values: cards stack on top of each other */
  .hx-val__grid { display: flex; flex-direction: column; gap: 16px; }
  .hx-vwrap { position: sticky; top: calc(var(--x-nav) + 14px + var(--i) * 12px); }
  .hx-vcard { min-height: 260px; padding: 28px 24px; border-radius: 26px; background: linear-gradient(160deg, #123a7a, #0a2350); box-shadow: 0 -12px 30px -14px rgba(0, 0, 0, .55); }
  .hx-vwrap:nth-child(3n+2) .hx-vcard { background: linear-gradient(160deg, #0d4a62, #08283f); }
  .hx-vwrap:nth-child(3n+3) .hx-vcard { background: linear-gradient(160deg, #3b2a74, #1b1544); }
  .hx-vcard__no { font-size: 5rem; opacity: .09; }

  /* faq + contact: single column, help card after list */
  .hx-faq__grid { grid-template-columns: 1fr; gap: 28px; }
  .hx-faq__side { position: static; display: contents; }
  .hx-faq__side > div:first-child { order: 0; }
  .hx-help { order: 3; margin-top: 8px; }
  .x-faq { order: 2; }
  .x-faq__q { padding: 16px; gap: 12px; font-size: 15px; }
  .x-faq__a p { padding: 0 16px 18px 16px; }
  .hx-contact__grid { grid-template-columns: 1fr; gap: 28px; }
  .hx-form { order: -1; margin-top: 4px; }
  .hx-form__row { grid-template-columns: 1fr; }
  .hx-cta__card { border-radius: 28px; text-align: left; }
  .hx-cta__body .x-eyebrow { justify-content: flex-start; }
  .hx-cta__btns { flex-direction: column; }
}

@media (max-width: 480px) {
  .hx-chips { grid-template-columns: 1fr; }
  .hx-tcard { flex-basis: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-win__tile, .hx-win__bar em b { animation: none; }
}

/* ============================================================
   HOME HERO v3 — live online classroom (3D)        prefix hd-
   Everything inside the art is sized in "em", so the whole scene scales with one font-size.
   ============================================================ */
.x-anim [data-intro] { opacity: 0; }
.x-static [data-intro] { opacity: 1 !important; }

.hd { position: relative; isolation: isolate; overflow: clip; background: #fff; padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.hd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 56px); align-items: center; min-height: min(700px, calc(100svh - var(--x-nav) - 30px)); }
.hd__badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: var(--x-paper); border: 1px solid var(--x-line); font: 800 11.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--x-navy); margin-bottom: 22px; }
.hd__live { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: hd-ping 1.8s infinite; }
@keyframes hd-ping { 70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.hd__h1 { font: 800 clamp(2.5rem, 4.8vw, 4.3rem)/1.04 var(--font-heading); letter-spacing: -.043em; color: var(--x-ink); margin: 0; }
.hd__h1 em { display: block; font-style: normal; color: var(--x-teal); position: relative; width: fit-content; }
.hd__h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .13em; border-radius: 4px; background: var(--x-gold); z-index: -1; }
.hd__lead { margin: 24px 0 0; max-width: 52ch; font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.75; color: var(--x-text); }
.hd__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hd__trust { list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px dashed var(--x-line); display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hd__trust li { display: inline-flex; align-items: center; gap: 9px; font: 700 14px/1 var(--font-body); color: var(--x-ink-2); }
.hd__trust i { color: var(--x-teal); }

/* ---- the 3D scene ---- */
.hd__art { display: grid; place-items: center; min-width: 0; }
.hd-scene { position: relative; font-size: clamp(7px, .95vw, 13px); width: 44em; max-width: 100%; height: 39em; perspective: 100em; }
.hd-glow { position: absolute; left: 50%; top: 46%; width: 40em; height: 40em; margin: -20em; border-radius: 50%; background: radial-gradient(circle, rgba(253, 197, 0, .22), rgba(11, 138, 150, .13) 48%, transparent 70%); }
.hd-orbit { position: absolute; left: 50%; top: 50%; width: 41em; height: 41em; margin: -20.5em; border-radius: 50%; border: .13em dashed rgba(0, 41, 107, .2); transform: rotateX(74deg); animation: hd-orbit 30s linear infinite; }
.hd-orbit::after { content: ""; position: absolute; left: 50%; top: -.7em; width: 1.3em; height: 1.3em; margin-left: -.65em; border-radius: 50%; background: var(--x-gold); box-shadow: 0 0 1.6em .4em rgba(253, 197, 0, .7); }
@keyframes hd-orbit { to { rotate: 360deg; } }
.hd-tilt { position: absolute; inset: 0; transform-style: preserve-3d; }

.hd-device { position: absolute; left: 50%; top: 45%; width: 33em; height: 21.6em; translate: -50% -50%; transform-style: preserve-3d; transform: rotateX(7deg) rotateY(-19deg) rotateZ(1deg); }
.hd-screen { position: absolute; inset: 0; padding: .8em; border-radius: 1.5em; background: #0b1d3d; box-shadow: 0 0 0 .2em #20345a, 3.4em 4.6em 5.4em -2em rgba(0, 41, 107, .5); transform-style: preserve-3d; }
.hd-screen::before { content: ""; position: absolute; inset: .3em; border-radius: 1.4em; background: #07142b; transform: translateZ(-1.1em); }
.hd-ui { position: relative; height: 100%; border-radius: .9em; background: #f3f7fc; overflow: hidden; display: flex; flex-direction: column; }
.hd-bar { display: flex; align-items: center; gap: .45em; padding: .55em .8em; background: #fff; border-bottom: .07em solid #e3eaf4; }
.hd-bar > i { width: .62em; height: .62em; border-radius: 50%; background: #d3dcea; }
.hd-title { margin-left: .8em; font: 700 .95em/1 var(--font-heading); color: var(--x-navy); }
.hd-livepill { margin-left: auto; display: inline-flex; align-items: center; gap: .45em; padding: .3em .7em; border-radius: 99px; background: #fee2e2; color: #b91c1c; font: 800 .75em/1 var(--font-body); font-style: normal; letter-spacing: .1em; }
.hd-livepill b { width: .6em; height: .6em; border-radius: 50%; background: #ef4444; animation: hd-blink 1.3s infinite; }
@keyframes hd-blink { 50% { opacity: .25; } }
.hd-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 7.4em; gap: .6em; padding: .6em; }
.hd-main { display: grid; grid-template-rows: 6.6em 1fr; gap: .6em; min-height: 0; }
.hd-teacher { position: relative; border-radius: .8em; overflow: hidden; background: linear-gradient(135deg, #0b4a8f, #0b8a96); }
.hd-teacher small { position: absolute; left: .7em; bottom: .6em; padding: .3em .7em; border-radius: 99px; background: rgba(4, 21, 47, .6); color: #fff; font: 700 .72em/1 var(--font-body); }
.hd-ava { position: absolute; left: 50%; top: 34%; width: 3em; height: 3em; margin-left: -1.5em; border-radius: 50%; background: #f3c9a5; box-shadow: 0 0 0 .22em rgba(255, 255, 255, .15); }
.hd-ava::after { content: ""; position: absolute; left: 50%; top: 3.25em; width: 6.2em; height: 4em; margin-left: -3.1em; border-radius: 3.1em 3.1em 0 0; background: #fff; opacity: .92; }
.hd-teacher .hd-ava { top: 22%; width: 3.1em; height: 3.1em; }
.hd-teacher .hd-ava::after { background: #fdc500; }
.hd-board { position: relative; border-radius: .8em; background: #fff; border: .07em solid #e3eaf4; padding: .8em 1em; overflow: hidden; background-image: linear-gradient(#eef3fa .07em, transparent .07em); background-size: 100% 1.5em; display: flex; flex-direction: column; gap: .55em; justify-content: center; }
.hd-eq { display: block; width: fit-content; font: 700 1.28em/1.2 var(--font-heading); color: var(--x-navy); letter-spacing: -.01em; clip-path: inset(0 100% 0 0); animation: hd-write 10s linear infinite; }
.hd-eq.e1 { animation-delay: .6s; } .hd-eq.e2 { animation-delay: 2.6s; color: var(--x-teal); } .hd-eq.e3 { animation-delay: 4.6s; color: #d0364f; }
@keyframes hd-write { 0% { clip-path: inset(0 100% 0 0); } 14%, 86% { clip-path: inset(0 0 0 0); } 94%, 100% { clip-path: inset(0 100% 0 0); } }
.hd-chat { position: absolute; right: .8em; bottom: .7em; padding: .5em .9em; border-radius: 1em 1em .2em 1em; background: var(--x-navy); color: #fff; font: 600 .8em/1 var(--font-body); opacity: 0; animation: hd-chat 10s ease-in-out infinite; animation-delay: 5.4s; }
@keyframes hd-chat { 0%, 100% { opacity: 0; translate: 0 .8em; } 10%, 70% { opacity: 1; translate: 0 0; } 80% { opacity: 0; } }
.hd-side { display: grid; grid-template-rows: repeat(4, 1fr); gap: .5em; min-height: 0; }
.hd-tile { position: relative; border-radius: .7em; overflow: hidden; border: .14em solid transparent; animation: hd-speak 8s linear infinite; }
.hd-tile .hd-ava { top: 20%; width: 1.9em; height: 1.9em; margin-left: -.95em; }
.hd-tile .hd-ava::after { top: 2.05em; width: 3.8em; height: 2.4em; margin-left: -1.9em; border-radius: 1.9em 1.9em 0 0; }
.hd-tile.k1 { background: linear-gradient(135deg, #8a56b8, #5b2f86); } .hd-tile.k2 { background: linear-gradient(135deg, #e0a800, #b07f00); animation-delay: -6s; }
.hd-tile.k3 { background: linear-gradient(135deg, #d0364f, #9d2339); animation-delay: -4s; } .hd-tile.k4 { background: linear-gradient(135deg, #1f9d55, #136b39); animation-delay: -2s; }
.hd-tile.k2 .hd-ava { background: #d9a77a; } .hd-tile.k3 .hd-ava { background: #f0c8a8; } .hd-tile.k4 .hd-ava { background: #c98f62; }
@keyframes hd-speak { 0%, 22%, 100% { border-color: transparent; } 4%, 18% { border-color: #6fe0d4; } }
.hd-hand { position: absolute; right: .35em; top: .3em; width: 1.7em; height: 1.7em; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #e0a800; font-size: .8em; animation: hd-hand 2.4s ease-in-out infinite; }
@keyframes hd-hand { 50% { transform: rotate(-16deg) scale(1.12); } }
.hd-ctl { display: flex; align-items: center; justify-content: center; gap: .6em; padding: .5em; background: #fff; border-top: .07em solid #e3eaf4; }
.hd-ctl i { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: #eaf0f8; color: var(--x-navy); font-size: .82em; }
.hd-leave { margin-left: .8em; padding: .5em 1.1em; border-radius: 99px; background: #ef4444; color: #fff; font: 800 .75em/1 var(--font-body); }
.hd-deck { position: absolute; left: -6%; right: -6%; top: 100%; height: 4.4em; margin-top: .1em; border-radius: .5em .5em 1.8em 1.8em; background: linear-gradient(180deg, #e9eef6, #b3c0d4); box-shadow: 0 2.6em 3em -1em rgba(0, 41, 107, .5); transform-origin: top; transform: rotateX(66deg); }
.hd-deck::after { content: ""; position: absolute; left: 50%; top: .25em; width: 22%; height: .45em; margin-left: -11%; border-radius: 0 0 .6em .6em; background: #98a8c0; }

/* floating cards (they sit in front of the screen, so the tilt moves them differently) */
.hd-fcard { position: absolute; display: flex; align-items: center; gap: .9em; padding: .95em 1.3em .95em 1em; border-radius: 1.3em; background: #fff; border: .07em solid var(--x-line); box-shadow: 0 1.8em 3em -1.2em rgba(0, 41, 107, .5); animation: hd-bob 6s ease-in-out infinite; }
.hd-fcard small { display: block; font: 800 .7em/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #7d8aa3; margin-bottom: .45em; }
.hd-fcard b { display: block; font: 800 1.15em/1 var(--font-heading); color: var(--x-navy); }
.hd-ico { width: 2.7em; height: 2.7em; border-radius: .9em; display: grid; place-items: center; background: var(--x-navy); color: var(--x-gold); font-size: 1em; }
.hd-fcard.b .hd-ico { background: var(--x-teal); color: #fff; }
.hd-dot { width: .9em; height: .9em; border-radius: 50%; background: #1fb855; box-shadow: 0 0 0 .35em rgba(31, 184, 85, .2); animation: hd-blink 1.6s infinite; }
.hd-fcard.a { left: 0; top: 5.5em; translate: 0 0 5em; } .hd-fcard.b { right: 0; top: 17em; translate: 0 0 7em; animation-delay: -2s; } .hd-fcard.c { left: 3em; bottom: 1.6em; translate: 0 0 6em; animation-delay: -4s; }
@keyframes hd-bob { 50% { margin-top: -.9em; } }
.hd-orb { position: absolute; width: 4.8em; height: 4.8em; border-radius: 50%; display: grid; place-items: center; font: 800 1.35em/1 var(--font-heading); color: #fff; box-shadow: 0 1.4em 2.2em -.8em rgba(0, 41, 107, .55); animation: hd-bob 7s ease-in-out infinite; }
.hd-orb.o1 { right: 6em; top: .6em; translate: 0 0 8em; background: radial-gradient(circle at 32% 28%, #ffe27a, #fdc500 60%, #c89400); color: var(--x-navy); }
.hd-orb.o2 { left: 1em; bottom: 9.5em; translate: 0 0 7em; background: radial-gradient(circle at 32% 28%, #a9bdf5, #4a5fd1 60%, #34439a); animation-delay: -3s; }
.hd-orb.o3 { right: 2em; bottom: 5.5em; translate: 0 0 9em; background: radial-gradient(circle at 32% 28%, #7be0e8, #0b8a96 60%, #075e67); animation-delay: -5s; }
.hd-ball { position: absolute; right: 8em; bottom: -1em; width: 6.4em; height: 6.4em; translate: 0 0 10em; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.5), transparent 40%), repeating-linear-gradient(90deg, transparent 0 1.1em, rgba(255,255,255,.28) 1.1em 1.18em), radial-gradient(circle at 40% 40%, #3b7ddd, #00296b 70%); background-size: 100% 100%, 8.8em 100%, 100% 100%; box-shadow: 0 1.6em 2.4em -.8em rgba(0, 41, 107, .6); animation: hd-spin 9s linear infinite, hd-bob 8s ease-in-out infinite; }
@keyframes hd-spin { to { background-position: 0 0, 8.8em 0, 0 0; } }

/* ---- tablet + phone: scene goes first and gets its own proportions ---- */
@media (max-width: 1024px) {
  .hd__grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hd__art { order: -1; }
  .hd { padding-top: 34px; }
  .hd-scene { font-size: clamp(9px, 1.55vw, 15px); }
  .hd__copy { max-width: 640px; margin-inline: auto; }
}
@media (max-width: 820px) {
  .hd { padding-top: 26px; }
  .hd-scene { font-size: calc((100vw - 28px) / 44); height: 35em; margin-block: 0 .5em; }
  .hd-orbit { display: none; }
  .hd-fcard.c, .hd-orb.o3 { display: none; }
  .hd-fcard.a, .hd-fcard.b, .hd-orb.o1, .hd-orb.o2, .hd-ball { translate: 0 0 2em; }
  .hd-fcard { padding: .7em 1em .7em .8em; } .hd-fcard.a { top: 2.4em; } .hd-fcard.b { top: auto; bottom: 1.2em; left: 0; right: auto; }
  .hd__h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hd__btns { flex-direction: column; }
  .hd__trust { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--x-pad) * -1); padding-inline: var(--x-pad); gap: 10px 22px; scrollbar-width: none; }
  .hd__trust::-webkit-scrollbar { display: none; } .hd__trust li { flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) { .hd-orbit, .hd-fcard, .hd-orb, .hd-ball, .hd-tile, .hd-hand, .hd-chat { animation: none; } .hd-eq { animation: none; clip-path: none; } .hd-chat { opacity: 1; } }
.x-static .hd-eq { animation: none; clip-path: none; } .x-static .hd-chat { animation: none; opacity: 1; }
.hd:not(.is-go) .hd-eq, .hd:not(.is-go) .hd-tile, .hd:not(.is-go) .hd-chat { animation-play-state: paused; }

/* ---- HERO mobile fix: fits column, flat (no 3D) on phones/tablets ---- */
@media (max-width: 820px) {
  .hd-scene { font-size: calc((100vw - 2 * var(--x-pad)) / 44); perspective: none; margin-inline: auto; }
  .hd-tilt, .hd-device, .hd-screen { transform-style: flat; }
  .hd-device { transform: rotate(-1.5deg); }
  .hd-screen::before { display: none; }
  .hd-deck { transform: none; height: 1.3em; border-radius: .4em .4em 1.2em 1.2em; box-shadow: 0 1.2em 1.6em -.8em rgba(0, 41, 107, .45); }
  .hd-fcard.a, .hd-fcard.b, .hd-orb.o1, .hd-orb.o2, .hd-ball { translate: none; }
  .hd-orb.o1 { right: 1.5em; top: -.8em; } .hd-orb.o2 { left: .5em; bottom: 7em; }
  .hd-ball { right: 2em; bottom: -.4em; }
}
@media (max-width: 1024px) { .hd__grid { grid-template-columns: minmax(0, 1fr); } .hd__copy { width: 100%; min-width: 0; } }

/* ---- HERO intro driven by CSS (no more GSAP vs 3D transform fight) ---- */
.x-anim .hd:not(.is-in) .hd-device { opacity: 0; scale: .82; }
.x-anim .hd:not(.is-in) .hd-fcard, .x-anim .hd:not(.is-in) .hd-orb, .x-anim .hd:not(.is-in) .hd-ball { opacity: 0; scale: .8; }
.x-anim .hd-device { transition: opacity .8s var(--x-ease), scale 1.1s cubic-bezier(.34, 1.4, .64, 1); }
.x-anim .hd-fcard, .x-anim .hd-orb, .x-anim .hd-ball { transition: opacity .6s var(--x-ease), scale .7s cubic-bezier(.34, 1.6, .64, 1); }
.hd-fcard.a { transition-delay: .55s; } .hd-fcard.b { transition-delay: .7s; } .hd-fcard.c { transition-delay: .85s; }
.hd-orb.o1 { transition-delay: .9s; } .hd-orb.o2 { transition-delay: 1s; } .hd-orb.o3 { transition-delay: 1.1s; } .hd-ball { transition-delay: 1.2s; }

/* ---- HERO: "find your child's class" chips ---- */
.hd__paths { margin-top: 26px; }
.hd__paths-t { display: block; font: 800 11.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--x-teal); margin-bottom: 12px; }
.hd__paths-l { display: flex; flex-wrap: wrap; gap: 8px; }
.hd__paths-l a { padding: 9px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--x-line); font: 700 13.5px/1 var(--font-body); color: var(--x-navy); transition: background .25s, color .25s, border-color .25s, translate .25s; }
.hd__paths-l a:hover { background: var(--x-navy); color: #fff; border-color: var(--x-navy); translate: 0 -2px; }
@media (max-width: 820px) {
  .hd__paths-l { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--x-pad) * -1); padding: 2px var(--x-pad); scrollbar-width: none; }
  .hd__paths-l::-webkit-scrollbar { display: none; } .hd__paths-l a { flex: none; }
}