:root {
  --ink: #240F22;
  --muted: #5f6980;
  --paper: #fbfcff;
  --line: rgba(24, 32, 51, 0.12);
  --red: #AE1203;
  --blue: #6849fe;
  --cyan: #41df82;
  --green: #41df82;
  --yellow: #ffe500;
  --orange: #ff5501;
  --pink: #ff7fec;
  --shadow: 0 24px 70px rgba(27, 39, 71, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

#science-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 200, 61, 0.28), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(18, 184, 215, 0.22), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #fff9f1 48%, #f8fcff 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(251, 252, 255, 0.82);
  border-bottom: 1px solid rgba(24, 32, 51, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: conic-gradient(from 140deg, var(--blue), var(--cyan), var(--yellow), var(--orange), var(--blue));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #3b4358;
  font-size: 0.92rem;
  font-weight: 600;
}

.desktop-nav a:hover,
.footer-links a:hover {
  color: var(--yellow);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.header-cta,
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.25);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.desktop-nav a[aria-current="page"] {
  color: var(--blue);
}

.text-link {
  display: inline-flex;
  width: max-content;
  margin-top: 22px;
  color: var(--red);
  font-weight: 900;
  border-bottom: 2px solid rgba(174, 18, 3, 0.5);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.page-hero {
  padding: 92px 0 42px;
}

.page-hero h1 {
  max-width: 1030px;
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  letter-spacing: -0.02em;
}

.page-hero p:last-child {
  max-width: 820px;
  color: #3f4a63;
  font-size: 1.12rem;
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 44px;
  align-items: center;
  padding: 62px 0 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  color: var(--ink);
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-lead {
  max-width: 680px;
  color: #3f4a63;
  font-size: clamp(1.04rem, 1.5vw, 1.25rem);
}

.hero-actions,
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.hero-proof {
  margin-top: 28px;
  color: var(--muted);
}

.hero-proof span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(24, 32, 51, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-proof strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.hero-orbit {
  position: relative;
  min-height: 560px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.45) 43%, transparent 72%),
    linear-gradient(135deg, rgba(255, 200, 61, 0.18), rgba(18, 184, 215, 0.16));
  overflow: hidden;
}

.orbit-ring,
.orbit-core,
.orbit-node,
.formula-chip,
.sticky-note {
  position: absolute;
}

.orbit-ring {
  inset: 15%;
  border: 2px dashed rgba(37, 99, 235, 0.25);
  border-radius: 50%;
  animation: spin 28s linear infinite;
}

.ring-two {
  inset: 25% 7%;
  border-color: rgba(32, 182, 111, 0.25);
  animation-duration: 36s;
  animation-direction: reverse;
}

.orbit-core {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 184px;
  height: 184px;
  padding: 22px;
  color: #fff;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.4), transparent 28%),
    linear-gradient(145deg, var(--red), #ec0700) !important;
  box-shadow: 0 24px 70px rgba(174, 18, 3, 0.55) !important;
  transform: translate(-50%, -50%);
}

.orbit-core-logo {
  width: 78%;
  height: auto;
  object-fit: contain;
}

.orbit-core span {
  font-size: 0.9rem;
  font-weight: 700;
}

.orbit-core strong {
  font-size: 1.55rem;
  line-height: 1.1;
}

.orbit-node {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 30px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 22px 48px rgba(27, 39, 71, 0.18);
  animation: float 5s ease-in-out infinite;
}

.math {
  top: 48px;
  left: 48px;
  background: linear-gradient(145deg, var(--yellow), var(--orange)) !important;
}

.science {
  right: 12px;
  top: 188px;
  background: linear-gradient(145deg, var(--green), var(--yellow)) !important;
  animation-delay: -1.6s;
}

.english {
  left: 80px;
  bottom: 44px;
  background: linear-gradient(145deg, var(--pink), var(--blue)) !important;
  animation-delay: -3s;
}

.formula-chip {
  padding: 10px 14px;
  border: 1px solid rgba(24, 32, 51, 0.1);
  border-radius: 999px;
  color: #384258;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(27, 39, 71, 0.1);
}

.chip-a {
  right: 60px;
  top: 96px;
}

.chip-b {
  left: 50%;
  bottom: 110px;
  transform: translateX(-10%);
}

.chip-c {
  left: 14px;
  top: 160px;
}

.sticky-note {
  display: grid;
  place-items: center;
  width: 108px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid rgba(24, 32, 51, 0.08);
  color: #263047;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  box-shadow: 0 16px 32px rgba(27, 39, 71, 0.14);
  transform: rotate(-4deg);
}

.note-one {
  left: 34px;
  top: 38px;
  background: #66f47a;
}

.note-two {
  right: 34px;
  bottom: 36px;
  background: #78ddec;
  transform: rotate(5deg);
}

.note-three {
  right: 94px;
  top: 34px;
  background: #ff6da8;
  transform: rotate(-2deg);
}

.context-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 82px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--line);
  box-shadow: 0 18px 56px rgba(27, 39, 71, 0.08);
}

.context-strip article {
  min-height: 148px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.context-strip span {
  color: var(--orange);
  font-weight: 900;
}

.context-strip p {
  margin: 12px 0 0;
  font-weight: 700;
}

.intro-grid,
.learning-loop,
.evidence,
.contact,
.story-grid,
.values-band,
.route-band,
.article-index {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
  padding: 78px 0;
}

.intro-text,
.loop-copy,
.contact-copy {
  color: #3d465d;
  font-size: 1.05rem;
}

.source-link {
  color: var(--red) !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.source-link:hover {
  color: #918790 !important;
  text-decoration: underline !important;
}

.contact-copy h2 {
  color: var(--ink);
}

.story-panel,
.featured-article,
.article-list article,
.library-grid article,
.value-list article,
.route-steps article {
  border: 1px solid rgba(24, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 50px rgba(27, 39, 71, 0.08);
}

.story-panel {
  min-height: 390px;
  padding: 28px;
  border-radius: 28px;
}

/* Interactive story panel link */
.story-panel-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.story-panel.interactive-panel {
  transition:
    background 0.38s cubic-bezier(0.25, 0.8, 0.25, 1),
    color 0.38s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.38s ease,
    transform 260ms ease,
    box-shadow 220ms ease;
  cursor: pointer;
}

/* Hover: White-to-Red background and White text swap */
.story-panel-link:hover .interactive-panel {
  background: var(--red) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.story-panel-link:hover .interactive-panel h2 {
  color: #ffffff !important;
  transition: color 0.38s ease;
}

.story-panel-link:hover .interactive-panel p {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: color 0.38s ease;
}

.story-panel-link:hover .interactive-panel .panel-num {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.38s ease;
}

/* Swipe-in Badge Animation */
.panel-badge-container {
  position: relative;
  display: block;
  height: 20px;
  margin-bottom: 32px;
  overflow: hidden;
}

.panel-num {
  display: inline-flex;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.38s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.38s ease;
}

.panel-action {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  color: var(--yellow) !important;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateX(40px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.38s ease;
  white-space: nowrap;
}

/* Swipe triggers on hover */
.story-panel-link:hover .panel-num {
  transform: translateX(-40px);
  opacity: 0;
}

.story-panel-link:hover .panel-action {
  transform: translateX(0);
  opacity: 1;
}

.story-panel span,
.featured-article span,
.article-list span,
.library-grid span {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-panel.lime-panel {
  color: #240F22 !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(145deg, #41df82, #ffe500) !important;
  border-color: transparent !important;
}

.story-panel.lime-panel h2,
.story-panel.lime-panel p {
  color: #240F22 !important;
  transition: color 0.38s ease;
}

.story-panel.lime-panel .panel-num {
  color: #240F22 !important;
  transition: color 0.38s ease, transform 0.38s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.38s ease;
}

.accent-panel {
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(145deg, #2563eb, #12b8d7 58%, #20b66f);
}

.accent-panel p,
.accent-panel h2,
.accent-panel span {
  color: #fff;
}

.values-band,
.route-band {
  align-items: start;
}

.value-list,
.route-steps,
.article-list {
  display: grid;
  gap: 14px;
}

.value-list article,
.route-steps article {
  padding: 20px;
  border-radius: 20px;
}

.route-steps article {
  display: flex;
  gap: 16px;
  align-items: center;
}

.route-steps span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(145deg, #240F22, #c41000);
}

.route-steps p,
.value-list p {
  margin: 0;
  color: #46516a;
}

.section-heading {
  max-width: 790px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.pillars,
.courses,
.resource-lab,
.articles {
  padding: 78px 0;
}

.pillar-grid,
.course-grid,
.article-grid,
.lab-grid {
  display: grid;
  gap: 18px;
}

.pillar-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pillar-card,
.course-card,
.article-grid article,
.lead-form {
  border: 1px solid rgba(24, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 50px rgba(27, 39, 71, 0.08);
}

.pillar-card {
  min-height: 250px;
  padding: 24px;
  border-radius: 22px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  border-radius: 18px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.card-icon.atom {
  background: linear-gradient(135deg, var(--green), var(--yellow));
}

.course-grid {
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 2.4fr) minmax(0, 2.4fr) minmax(0, 2.8fr);
}

.page-courses {
  padding-top: 28px;
}

.course-card {
  position: relative;
  min-height: 380px;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
}

.home .course-card {
  display: flex;
  flex-direction: column;
}

.course-card::before {
  display: none;
}

.course-card span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home .course-card:not(.corestem) span {
  color: #46516a;
}

.course-card.corestem .course-link {
  color: var(--yellow);
}

.course-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  position: relative;
  z-index: 2;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Make the entire course card show pointer cursor */
.course-card {
  cursor: pointer;
}

.home .course-link {
  margin-top: auto;
  padding-top: 16px;
}

.course-link:hover,
.course-card:hover .course-link {
  opacity: 0.8;
  transform: translateX(3px);
}

/* Home page course card color themes */
.home .course-card h3,
.home .course-link {
  width: fit-content;
}

/* Card 1: Primary Math (Reading Lab theme - Orange/Yellow) */
.home .course-card:nth-child(1) h3,
.home .course-card:nth-child(1) .course-link {
  color: #ff5501;
  background: linear-gradient(145deg, #ff5501, #ffe500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card 2: Inspiring Science (Series Lab theme - Lime Green/Yellow) */
.home .course-card:nth-child(2) h3,
.home .course-card:nth-child(2) .course-link {
  color: #10b981;
  background: linear-gradient(145deg, #41df82, #ffe500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card 3: Global English (Activity Lab theme - Purple/Pink) */
.home .course-card:nth-child(3) h3,
.home .course-card:nth-child(3) .course-link {
  color: #6849fe;
  background: linear-gradient(145deg, #6849fe, #ff7fec);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.course-card.yellow {
  color: #da7b00;
}

.course-card.green {
  color: #0d9360;
}

.course-card.blue {
  color: #2563eb;
}

.course-card.corestem {
  background: linear-gradient(145deg, #240F22, #c41000);
  color: #fff;
  isolation: isolate;
}

/* Glowing circular particle moving inside the box close to the border */
.course-card.corestem::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 338px;
  height: 338px;
  display: block;
  background: radial-gradient(circle, rgba(255, 85, 1, 0.5) 0%, rgba(255, 85, 1, 0.25) 30%, rgba(255, 85, 1, 0.08) 60%, rgba(255, 85, 1, 0) 80%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: particleMove 12s linear infinite;
}

/* Text overrides for readability on dark card background */
.course-card.corestem h3 {
  color: var(--yellow);
}

.course-card.corestem p,
.course-card.corestem li {
  color: rgba(255, 255, 255, 0.85);
}

.course-card.corestem span {
  color: #fff;
}

@keyframes particleMove {
  0% {
    top: 24px;
    left: 24px;
  }

  20% {
    top: 24px;
    left: calc(100% - 24px);
  }

  50% {
    top: calc(100% - 24px);
    left: calc(100% - 24px);
  }

  70% {
    top: calc(100% - 24px);
    left: 24px;
  }

  100% {
    top: 24px;
    left: 24px;
  }
}

.course-card h3,
.course-card p,
.course-card li,
.course-top {
  position: relative;
  color: var(--ink);
}

.course-card p,
.course-card li {
  color: #46516a;
}

.course-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 42px;
}

.course-top span {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.course-top small {
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  color: currentColor;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.82);
}

.course-card ul {
  position: relative;
  margin: 24px 0 0;
  padding-left: 18px;
}

.course-card li+li {
  margin-top: 10px;
}

.learning-loop {
  align-items: center;
}

.loop-visual {
  position: relative;
  min-height: 420px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent),
    rgba(255, 255, 255, 0.64);
}

.loop-visual::before {
  content: "";
  position: absolute;
  inset: 76px;
  border: 2px solid rgba(37, 99, 235, 0.22);
  border-radius: 50%;
}

.loop-step {
  position: absolute;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 34px;
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.resource-lab .section-heading {
  margin-bottom: 28px;
}

.resource-lab .section-heading p:last-child {
  max-width: 780px;
  color: #46516a;
  font-size: 1.05rem;
}

.lab-board {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: stretch;
}

.lab-feature {
  position: relative;
  min-height: 560px;
  padding: 34px;
  border: 1px solid rgba(24, 32, 51, 0.14);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(0, 50, 36, 0) 55%, rgba(0, 50, 36, 0.5)),
    linear-gradient(135deg, #d3cbb2, #7d856f 50%, #25372f);
  box-shadow: var(--shadow);
  overflow: visible;
}

.lab-feature::before {
  content: "";
  position: absolute;
  inset: 24px 32px auto;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a45 0 32%, #27d4d0 32% 68%, #ffc83d 68%);
  opacity: 0.9;
}

.lab-feature::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 74%;
  height: 78px;
  border-radius: 12px 12px 24px 24px;
  background:
    repeating-linear-gradient(90deg, rgba(24, 32, 51, 0.5) 0 18px, rgba(255, 255, 255, 0.22) 18px 30px),
    #bfc4ae;
  box-shadow: inset 0 12px 18px rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
}

.crt-screen {
  position: absolute;
  left: 50%;
  top: 53%;
  z-index: 2;
  display: grid;
  align-content: center;
  width: min(78%, 430px);
  min-height: 320px;
  padding: 34px;
  color: #f7fff8;
  border: 16px solid #ded6bd;
  border-radius: 34px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 7px),
    radial-gradient(circle at 50% 45%, rgba(44, 255, 83, 0.12), transparent 42%),
    #17201d;
  box-shadow:
    inset 0 0 0 6px rgba(0, 0, 0, 0.38),
    0 24px 64px rgba(0, 0, 0, 0.26);
  transform: translate(-50%, -50%);
}

.screen-badge {
  display: inline-flex;
  width: max-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #142014;
  font-weight: 900;
  background: #66f47a;
}

.crt-screen h3 {
  max-width: 330px;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
}

.crt-screen p {
  max-width: 260px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.play-button {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  color: #240F22;
  background: #ffe500;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(255, 229, 0, 0.28);
  transition: scale 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.play-button:hover {
  scale: 1.08;
  color: #fff;
  background: #ff5501;
  box-shadow: 0 14px 32px rgba(255, 85, 1, 0.44);
}

.desk-note {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 118px;
  min-height: 106px;
  padding: 12px;
  color: #142014;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.green-note {
  left: 46px;
  top: 80px;
  background: #41df82;
  transform: rotate(-5deg);
}

.yellow-note {
  right: 18px;
  top: 180px;
  background: #ffe500;
  transform: rotate(4deg);
}

.pink-note {
  left: 60px;
  bottom: 20px;
  background: #ff7fec;
  transform: rotate(8deg);
}

.lab-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lab-card {
  min-height: 270px;
  padding: 24px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 18px 48px rgba(27, 39, 71, 0.12);
}

.lab-card span {
  display: inline-flex;
  margin-bottom: 56px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #172033;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.82);
}

.lab-card h3 {
  max-width: 330px;
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
}

.lab-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.orange-card {
  background:
    radial-gradient(circle at 95% 8%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(145deg, #ff5501, #ffe500);
}

.purple-card {
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(145deg, #6849fe, #ff7fec);
}

.pink-card {
  background:
    radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.36), transparent 32%),
    linear-gradient(145deg, #ff7fec, #ec0700);
}

.lime-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(145deg, #41df82, #ffe500);
}

.step-one {
  left: 48px;
  top: 46px;
  background: var(--orange);
}

.step-two {
  right: 50px;
  top: 58px;
  background: var(--green);
}

.step-three {
  right: 68px;
  bottom: 56px;
  background: var(--blue);
}

.step-four {
  left: 62px;
  bottom: 58px;
  background: var(--pink);
}

.article-grid {
  grid-template-columns: repeat(4, 1fr);
}

.article-index {
  grid-template-columns: 0.95fr 1.05fr;
}

.featured-article,
.article-list article,
.library-grid article {
  padding: 24px;
  border-radius: 24px;
}

.featured-article {
  min-height: 440px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.25), transparent 28%),
    linear-gradient(145deg, #ff7a45, #e959a5);
}

.featured-article h2,
.featured-article p,
.featured-article span {
  color: #fff;
}

.featured-article .button {
  margin-top: 24px;
}

.article-list article {
  min-height: 138px;
}

.article-list span,
.library-grid span {
  margin-bottom: 18px;
  color: var(--red);
}

.article-list p,
.library-grid p {
  margin-bottom: 0;
  color: #4a556d;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 52px 0 90px;
}

.lab-page {
  padding-top: 24px;
}

.contact-page {
  padding-top: 28px;
}

.articles .section-heading p:last-child {
  max-width: 780px;
  color: #46516a;
  font-size: 1.05rem;
}

.article-grid article {
  min-height: 270px;
  padding: 22px;
  border-radius: 22px;
}

.article-grid span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-grid p,
.pillar-card p {
  margin-bottom: 0;
  color: #4a556d;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.evidence {
  align-items: center;
}

.source-list {
  display: grid;
  gap: 12px;
}

.source-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 18px;
  color: #24406f;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.74);
}

.source-list a:hover {
  border-color: rgba(37, 99, 235, 0.32);
  background: #fff;
}

.contact {
  padding-bottom: 100px;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #384258;
  font-size: 0.9rem;
  font-weight: 800;
}

.lead-form .wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(24, 32, 51, 0.14);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
  resize: vertical;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 24px;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 64px);
  color: #46516a;
  border-top: 1px solid rgba(24, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 800;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-16px) rotate(2deg);
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hero,
  .intro-grid,
  .learning-loop,
  .evidence,
  .contact,
  .story-grid,
  .values-band,
  .route-band,
  .article-index {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 85px;
  }

  .hero-orbit {
    min-height: 470px;
  }

  .context-strip,
  .pillar-grid,
  .course-grid,
  .article-grid,
  .lab-board,
  .lab-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: auto;
  }

  .article-grid article {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .section,
  .context-strip {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.4rem);
    line-height: 1.18;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-orbit {
    min-height: 390px;
    border-radius: 24px;
  }

  .orbit-core {
    width: 136px;
    height: 136px;
  }

  .orbit-core strong {
    font-size: 1.1rem;
  }

  .orbit-node {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    font-size: 0.82rem;
  }

  .math {
    left: 24px;
    top: 58px;
  }

  .science {
    right: 22px;
    top: 132px;
  }

  .english {
    left: 52px;
    bottom: 52px;
  }

  .formula-chip {
    display: none;
  }

  .sticky-note {
    width: 82px;
    min-height: 72px;
    font-size: 0.72rem;
  }

  .note-one {
    left: 14px;
    top: 16px;
  }

  .note-two {
    right: 16px;
    bottom: 16px;
  }

  .note-three {
    right: 24px;
    top: 18px;
  }

  .intro-grid,
  .learning-loop,
  .evidence,
  .contact,
  .story-grid,
  .values-band,
  .route-band,
  .article-index,
  .pillars,
  .courses,
  .resource-lab,
  .articles {
    padding: 54px 0;
  }

  .page-hero {
    padding: 54px 0 28px;
  }

  .page-hero h1 {
    font-size: clamp(1.9rem, 10vw, 3rem);
    line-height: 1.18;
  }

  .lab-feature {
    min-height: 480px;
    padding: 18px;
    border-radius: 24px;
  }

  .crt-screen {
    width: min(84%, 360px);
    min-height: 290px;
    padding: 24px;
    border-width: 12px;
  }

  .crt-screen h3 {
    font-size: 2rem;
  }

  .desk-note {
    width: 88px;
    min-height: 78px;
    font-size: 0.72rem;
  }

  .green-note {
    left: 8px;
    top: 80px;
  }

  .yellow-note {
    right: 8px;
    top: 130px;
  }

  .pink-note {
    left: 22px;
    bottom: 60px;
  }

  .lab-card {
    min-height: 230px;
  }

  .loop-visual {
    min-height: 350px;
  }

  .loop-visual::before {
    inset: 60px;
  }

  .loop-step {
    width: 94px;
    height: 94px;
    border-radius: 26px;
    font-size: 0.9rem;
  }

  .step-one {
    left: 26px;
    top: 34px;
  }

  .step-two {
    right: 28px;
    top: 46px;
  }

  .step-three {
    right: 34px;
    bottom: 40px;
  }

  .step-four {
    left: 28px;
    bottom: 44px;
  }

  .lead-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .site-footer,
  .footer-links {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* Neon campaign redesign */
body {
  background: #fff;
}

#science-field {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 20, 147, 0.08), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(23, 196, 255, 0.1), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.site-header {
  background: rgba(12, 8, 52, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(12, 8, 52, 0.18);
}

.brand {
  min-width: 168px;
}

.brand img {
  display: block;
  width: 158px;
  height: auto;
}

.desktop-nav {
  color: rgba(255, 255, 255, 0.82);
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--yellow);
}

.button.primary {
  color: #fff;
  background: linear-gradient(145deg, #240F22, #c41000);
  box-shadow: 0 14px 34px rgba(196, 16, 0, 0.34);
}

.header-cta {
  color: #fff;
  background: linear-gradient(145deg, #240F22, #c41000);
  box-shadow: 0 14px 34px rgba(196, 16, 0, 0.34);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 74px);
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  padding: 90px clamp(18px, 4vw, 64px) 54px;
  overflow: hidden;
  color: #fff;
  background: #AE1203;
}

.hero::before {
  content: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 56px;
  background: #fff;
  clip-path: ellipse(74% 100% at 50% 100%);
  z-index: 4;
}

.hero-pattern-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-pattern-overlay svg {
  position: absolute;
  width: clamp(320px, 45vw, 680px);
  height: auto;
  opacity: 0.2;
  transition: transform 0.5s ease;
}

.hero-pattern-overlay .pat-1 {
  top: -10%;
  left: -8%;
  transform: rotate(18deg) scale(1.1);
}

.hero-pattern-overlay .pat-2 {
  bottom: -15%;
  right: -10%;
  transform: rotate(-30deg) scale(1.25);
}

.hero-pattern-overlay .pat-3 {
  top: 35%;
  left: 28%;
  transform: rotate(45deg) scale(0.8);
  opacity: 0.14;
}

.hero-copy {
  position: relative;
  z-index: 5;
}

.hero-image-wrapper {
  z-index: 2;
}

.hero .hero-image-wrapper {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}

.hero .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  transition: none;
}

.hero .hero-image-wrapper:hover .hero-image {
  transform: none;
}

@media (min-width: 981px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .hero .hero-image-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 52.5%;
    height: 100%;
    width: auto;
  }

  .hero .hero-image-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 500px;
    background: linear-gradient(to right, #AE1203 0%, rgba(174, 18, 3, 0.85) 100px, rgba(174, 18, 3, 0.35) 280px, rgba(174, 18, 3, 0) 500px);
    pointer-events: none;
    z-index: 2;
  }

  .hero-pattern-overlay {
    z-index: 3;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 52.5%, rgba(0, 0, 0, 0.85) calc(52.5% + 100px), rgba(0, 0, 0, 0.35) calc(52.5% + 280px), rgba(0, 0, 0, 0) calc(52.5% + 500px));
    mask-image: linear-gradient(to right, #000 0%, #000 52.5%, rgba(0, 0, 0, 0.85) calc(52.5% + 100px), rgba(0, 0, 0, 0.35) calc(52.5% + 280px), rgba(0, 0, 0, 0) calc(52.5% + 500px));
  }
}

@media (max-width: 980px) {
  .hero .hero-image-wrapper {
    position: relative;
    left: auto;
    width: 100%;
    height: 420px;
    margin-top: 32px;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .hero .hero-image-wrapper {
    height: 280px;
    margin-top: 24px;
    border-radius: 16px;
  }
}

.hero-logo {
  display: block;
  width: min(260px, 58vw);
  margin-bottom: 30px;
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero .button.primary {
  background: var(--yellow);
  color: #130840;
  box-shadow: 0 14px 34px rgba(255, 229, 0, 0.35);
}

.hero .button.primary:hover {
  background: #fff;
  color: #AE1203;
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.4);
}

.hero h1 {
  color: #fff;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.24);
  max-width: 820px;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.84);
  max-width: 740px;
}

.hero-proof {
  color: rgba(255, 255, 255, 0.9);
  gap: 24px;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.9);
  border: none;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  min-height: auto;
  align-items: center;
  gap: 8px;
}

.hero-proof strong {
  color: var(--green);
  font-size: 1.25rem;
}

.proof-tick {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hero-orbit {
  min-height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.16), transparent 26%),
    radial-gradient(circle at 70% 18%, rgba(255, 232, 53, 0.36), transparent 18%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 0 70px rgba(255, 255, 255, 0.12),
    0 40px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.neon-ribbon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  height: 86px;
  border-radius: 999px;
  filter: blur(0.2px);
  opacity: 0.84;
  transform-origin: center;
}

.ribbon-one {
  background: linear-gradient(90deg, transparent, #41df82 18%, #ff7fec 52%, #ffe500 82%, transparent);
  transform: translate(-50%, -50%) rotate(-14deg);
  animation: pulseRibbon 4s ease-in-out infinite;
}

.ribbon-two {
  width: 104%;
  height: 44px;
  background: linear-gradient(90deg, transparent, #ff5501 20%, #ff7fec 54%, #41df82 86%, transparent);
  transform: translate(-50%, -50%) rotate(18deg);
  animation: pulseRibbon 5.2s ease-in-out infinite reverse;
}

.ribbon-three {
  width: 96%;
  height: 22px;
  background: linear-gradient(90deg, transparent, #ffffff 24%, #ffe500 48%, #ffffff 70%, transparent);
  transform: translate(-50%, -50%) rotate(4deg);
  opacity: 0.58;
}

.orbit-ring {
  border-color: rgba(255, 255, 255, 0.32);
}

.ring-two {
  border-color: rgba(65, 223, 130, 0.36);
}



.formula-chip {
  color: #130840;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.sticky-note {
  border: 0;
  border-radius: 20px;
  color: #130840;
}

.note-one {
  background: #2ad17a;
}

.note-two {
  background: #ffd300;
}

.note-three {
  background: #ff75e3;
}

.context-strip {
  margin-top: 60px;
  border: 0;
  border-radius: 34px;
  background: #AE1203;
  box-shadow: 0 30px 70px rgba(14, 7, 53, 0.16);
}

.context-strip article {
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.16), transparent 28%),
    transparent;
}

.context-strip span {
  color: #ffe835;
}

.pillar-card,
.course-card,
.article-grid article,
.lead-form,
.story-panel,
.featured-article,
.article-list article,
.library-grid article,
.value-list article,
.route-steps article {
  border: 0;
  border-radius: 30px;
  box-shadow: 0 24px 64px rgba(12, 8, 52, 0.12);
}

.pillar-card:nth-child(1),
.course-card.yellow {
  background: linear-gradient(145deg, #ff2aa6, #ff7a00);
}

.pillar-card:nth-child(2),
.course-card.green {
  background: linear-gradient(145deg, #22d3ee, #26db7c);
}

.pillar-card:nth-child(3),
.course-card.blue {
  background: linear-gradient(145deg, #6b25ff, #b86bff);
}

.pillar-card h3,
.pillar-card p,
.pillar-card li,
.course-top {
  color: #fff;
}

.card-icon,
.card-icon.atom {
  color: #130840;
  background: rgba(255, 255, 255, 0.82);
}

.course-top small {
  color: #130840;
}

.resource-lab {
  width: 100%;
  max-width: none;
  padding-inline: clamp(18px, 4vw, 64px);
  background: linear-gradient(180deg, #fff 0%, #f5f7ff 100%);
}

.lab-feature {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 85, 1, 0.58), transparent 22%),
    radial-gradient(circle at 22% 48%, rgba(255, 127, 236, 0.44), transparent 26%),
    linear-gradient(145deg, #240F22, #c41000);
  box-shadow: 0 32px 80px rgba(196, 16, 0, 0.22);
}

.lab-feature::before {
  background: linear-gradient(90deg, #6849fe 0 20%, #ff7fec 20% 40%, #ff5501 40% 60%, #41df82 60% 80%, #ffe500 80%);
}

.lab-feature::after {
  background:
    repeating-linear-gradient(90deg, rgba(36, 15, 34, 0.78) 0 18px, rgba(251, 252, 255, 0.38) 18px 30px),
    var(--paper);
}

.crt-screen {
  border-color: rgba(255, 255, 255, 0.72);
  padding: 34px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 7px),
    radial-gradient(circle at 50% 45%, rgba(174, 18, 3, 0.38), transparent 45%),
    #140813;
}

.screen-badge {
  color: #130840;
  background: #ffe500;
}

.orange-card {
  background: linear-gradient(145deg, #ff5501, #ffe500);
}

.purple-card {
  background: linear-gradient(145deg, #6849fe, #ff7fec);
}

.pink-card {
  background: linear-gradient(145deg, #ff7fec, #ec0700);
}

.lime-card {
  background: linear-gradient(145deg, #41df82, #ffe500);
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  border-top: 0;
  background: #AE1203;
}

.site-footer strong,
.footer-links {
  color: #fff;
}

@keyframes pulseRibbon {

  0%,
  100% {
    opacity: 0.62;
    filter: blur(0);
  }

  50% {
    opacity: 0.98;
    filter: blur(2px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-orbit {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 128px;
  }

  .brand img {
    width: 128px;
  }

  .hero {
    padding-top: 85px;
  }

  .hero-logo {
    width: 190px;
  }

  .hero-orbit {
    min-height: 410px;
  }

  .neon-ribbon {
    height: 50px;
  }
}

/* Header + interaction refinement */
#science-field {
  display: none;
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    backdrop-filter 220ms ease,
    padding 220ms ease;
}

.site-header.is-scrolled,
.subpage .site-header,
.menu-open .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(24, 32, 51, 0.1);
  box-shadow: 0 18px 46px rgba(12, 8, 52, 0.12);
  backdrop-filter: blur(18px);
}

/* Visibility scroll logic for the header CTA button */
.site-header .header-cta {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 300ms ease,
    transform 300ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled .header-cta,
.subpage .site-header .header-cta,
.menu-open .site-header .header-cta {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header.is-scrolled .header-cta:hover,
.subpage .site-header .header-cta:hover,
.menu-open .site-header .header-cta:hover {
  transform: translateY(-2px);
}

.site-header.is-scrolled .desktop-nav,
.subpage .site-header .desktop-nav,
.menu-open .site-header .desktop-nav {
  color: #240F22;
}

.site-header.is-scrolled .desktop-nav a:hover,
.site-header.is-scrolled .desktop-nav a[aria-current="page"],
.subpage .site-header .desktop-nav a:hover,
.subpage .site-header .desktop-nav a[aria-current="page"],
.menu-open .site-header .desktop-nav a:hover {
  color: #AE1203;
}

.site-header.is-scrolled .brand,
.subpage .site-header .brand,
.menu-open .site-header .brand {
  width: max-content;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.site-header.is-scrolled .brand img,
.subpage .site-header .brand img,
.menu-open .site-header .brand img {
  width: 128px;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background 180ms ease;
}

.menu-toggle span+span {
  margin-top: 5px;
}

.site-header.is-scrolled .menu-toggle,
.subpage .site-header .menu-toggle,
.menu-open .menu-toggle {
  border-color: rgba(24, 32, 51, 0.16);
  background: rgba(24, 32, 51, 0.06);
}

.site-header.is-scrolled .menu-toggle span,
.subpage .site-header .menu-toggle span,
.menu-open .menu-toggle span {
  background: #240F22;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  left: 14px;
  right: 14px;
  top: 78px;
  z-index: 19;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(12, 8, 52, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.menu-open .mobile-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
}

.mobile-panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  color: #240F22;
  font-weight: 900;
  background: #f4f6ff;
}

.mobile-panel a:hover {
  color: #fff;
  background: linear-gradient(135deg, #6b25ff, #ff2aa6);
}

.page-hero {
  padding-top: 132px;
}

.hero-orbit,
.pillar-card,
.course-card,
.lab-card,
.story-panel {
  transform: translateY(var(--scroll-y, 0)) rotate(var(--scroll-rotate, 0));
  transition:
    transform 260ms ease,
    box-shadow 220ms ease;
}

.hero-orbit:hover,
.pillar-card:hover,
.course-card:hover,
.lab-card:hover,
.story-panel:hover {
  box-shadow: 0 34px 86px rgba(12, 8, 52, 0.2);
  transform: translateY(calc(var(--scroll-y, 0) - 8px)) rotate(var(--scroll-rotate, 0));
}

.orbit-node,
.sticky-note {
  transition:
    scale 180ms ease,
    filter 180ms ease;
}

.orbit-node:hover,
.sticky-note:hover {
  scale: 1.06;
  filter: saturate(1.2) brightness(1.05);
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 18px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }
}

@media (max-width: 640px) {

  .site-header.is-scrolled .brand img,
  .menu-open .site-header .brand img,
  .brand img {
    width: 122px;
  }

  .hero {
    padding-top: 85px;
  }

  .page-hero {
    padding-top: 118px;
  }
}

/* Hero Image custom container */
.hero-image-wrapper {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(12, 8, 52, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  height: 560px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.04);
}

/* Restructured 2-column Pillars section */
.pillars-two-col {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
}

.pillars-text-col {
  display: flex;
  flex-direction: column;
}

.pillars-subtexts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.subtext-item {
  display: flex;
  gap: 16px;
  align-items: start;
}

.subtext-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.subtext-icon.math-icon {
  background: rgba(255, 85, 1, 0.1);
  color: var(--orange);
}

.subtext-icon.science-icon {
  background: rgba(65, 223, 130, 0.15);
  color: #10b981;
}

.subtext-icon.english-icon {
  background: rgba(104, 73, 254, 0.1);
  color: var(--blue);
}

.subtext-content h3 {
  font-size: 1.15rem;
  margin: 0 0 6px 0;
  color: var(--ink);
  font-weight: 800;
}

.subtext-content p {
  font-size: 0.96rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

/* Scaling the orbit animation to fit the Pillars section perfectly with rich contrast */
.pillars-orbit-sizing {
  min-height: 480px !important;
  scale: 0.9;
  transform-origin: center center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 1) 0%, rgba(246, 244, 255, 0.94) 58%, rgba(234, 230, 255, 0.9) 100%) !important;
  border: 2px solid rgba(104, 73, 254, 0.18) !important;
  box-shadow:
    0 24px 60px rgba(104, 73, 254, 0.12),
    inset 0 0 40px rgba(255, 255, 255, 0.6) !important;
}

/* Higher contrast for dashed orbital paths */
.pillars-orbit-sizing .orbit-ring {
  border-width: 2.5px !important;
  border-color: rgba(104, 73, 254, 0.45) !important;
}

.pillars-orbit-sizing .ring-two {
  border-color: rgba(65, 223, 130, 0.45) !important;
}

/* Color-coded high-contrast formula chips */
.pillars-orbit-sizing .formula-chip {
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(104, 73, 254, 0.08) !important;
  border-width: 1px !important;
}

.pillars-orbit-sizing .chip-a {
  border-color: var(--orange) !important;
  color: var(--orange) !important;
}

.pillars-orbit-sizing .chip-b {
  border-color: var(--blue) !important;
  color: var(--blue) !important;
}

.pillars-orbit-sizing .chip-c {
  border-color: var(--green) !important;
  color: var(--green) !important;
}

/* Responsive styles for restructured sections */
@media (max-width: 980px) {
  .pillars-two-col {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 36px 0;
  }

  .pillars-orbit-sizing {
    min-height: 440px !important;
    scale: 0.95;
  }
}

/* Subpage Courses Layout Board */
.subpage .page-hero {
  padding-bottom: 0px;
}

.subpage .page-courses {
  padding-top: 0px;
}

.subpage .courses-board {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: stretch;
  margin-top: 8px;
  background: transparent;
}

/* Column 1: Stacked Bars */
.subpage .course-tabs-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
}

.subpage .course-tab-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 32, 51, 0.1);
  box-shadow: 0 10px 30px rgba(27, 39, 71, 0.05);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}

/* Hover effects for tabs */
.subpage .course-tab-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(27, 39, 71, 0.12);
}

.subpage .course-tab-bar[data-course="corestem"]:not(.active):hover {
  border-color: rgba(196, 16, 0, 0.3);
}

.subpage .course-tab-bar[data-course="math"]:not(.active):hover {
  border-color: rgba(255, 85, 1, 0.3);
}

.subpage .course-tab-bar[data-course="science"]:not(.active):hover {
  border-color: rgba(16, 185, 129, 0.35);
}

.subpage .course-tab-bar[data-course="english"]:not(.active):hover {
  border-color: rgba(104, 73, 254, 0.3);
}

/* Custom indicator bullet in tab (using CorEdu SVG pattern) */
.subpage .tab-bullet {
  width: 22px;
  height: 17px;
  border-radius: 0;
  background: var(--blue);

  /* Mask using CorEdu_pattern.svg so the color is easily changed via background */
  -webkit-mask-image: url('assets/CorEdu_pattern.svg');
  mask-image: url('assets/CorEdu_pattern.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;

  transition: background 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

/* Hover effect on tab bar triggers micro-scale on the SVG pattern */
.subpage .course-tab-bar:hover .tab-bullet {
  transform: scale(1.15);
}

/* Inactive pattern colors matched to each course theme */
.subpage .course-tab-bar[data-course="corestem"] .tab-bullet {
  background: #c41000;
}

.subpage .course-tab-bar[data-course="math"] .tab-bullet {
  background: #ff5501;
}

.subpage .course-tab-bar[data-course="science"] .tab-bullet {
  background: #10b981;
}

.subpage .course-tab-bar[data-course="english"] .tab-bullet {
  background: #6849fe;
}

/* Different active states for each tab matching their colors */
.subpage .course-tab-bar[data-course="corestem"].active {
  background: linear-gradient(145deg, #240F22, #c41000);
  color: #fff;
  border: 0;
  padding: 21px 25px;
  box-shadow: 0 16px 44px rgba(196, 16, 0, 0.3);
}

.subpage .course-tab-bar[data-course="corestem"].active .tab-bullet {
  background: var(--yellow);
}

.subpage .course-tab-bar[data-course="math"].active {
  background: linear-gradient(145deg, #ff5501, #ffe500);
  color: #fff;
  border: 0;
  padding: 21px 25px;
  box-shadow: 0 16px 44px rgba(255, 85, 1, 0.24);
}

.subpage .course-tab-bar[data-course="math"].active .tab-bullet {
  background: #fff;
}

.subpage .course-tab-bar[data-course="science"].active {
  background: linear-gradient(145deg, #41df82, #ffe500);
  color: #fff;
  border: 0;
  padding: 21px 25px;
  box-shadow: 0 16px 44px rgba(65, 223, 130, 0.24);
}

.subpage .course-tab-bar[data-course="science"].active .tab-bullet {
  background: #fff;
}

.subpage .course-tab-bar[data-course="english"].active {
  background: linear-gradient(145deg, #6849fe, #ff7fec);
  color: #fff;
  border: 0;
  padding: 21px 25px;
  box-shadow: 0 16px 44px rgba(104, 73, 254, 0.24);
}

.subpage .course-tab-bar[data-course="english"].active .tab-bullet {
  background: #fff;
}

/* Columns 2 & 3: Class Slider Wrapper */
.subpage .class-slider-wrapper {
  position: relative;
  width: 100%;
  min-width: 0;
  background: transparent;
}

.subpage .class-slider-container {
  overflow: hidden;
  width: calc(100% + 60px);
  padding: 60px 40px 30px 20px;
  margin: -60px -40px -30px -20px;
  min-width: 0;
  background: transparent;
}

.subpage .class-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--card-width, calc((100% - 24px) / 2));
  gap: 24px;
  width: max-content;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.subpage .class-display-card {
  /* width handled by grid-auto-columns above */
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(24, 32, 51, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.subpage .class-display-card.visible {
  opacity: 1;
  pointer-events: auto;
}

.subpage .class-display-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 28px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Smooth color transitions for internal elements */
.subpage .class-level,
.subpage .class-card-header,
.subpage .class-card-header h3,
.subpage .class-card-body p,
.subpage .class-card-body li {
  transition: all 0.3s ease;
}

.subpage .class-display-card.switching {
  opacity: 0;
  transform: translateY(12px);
}

.subpage .class-display-card:hover {
  background: rgba(255, 255, 255, 0);
  border-color: transparent;
}

.subpage .class-display-card:hover::before {
  opacity: 1;
}

.subpage .class-display-card:hover h3,
.subpage .class-display-card:hover .class-card-body p,
.subpage .class-display-card:hover .class-card-body li {
  color: #fff !important;
}

.subpage .class-display-card:hover .class-card-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.subpage .class-display-card:hover .class-level {
  background: #fff !important;
}

.subpage .class-card-body {
  flex-grow: 1;
}

.subpage .class-card-footer {
  margin-top: 24px;
  width: 100%;
}

.subpage .class-register-btn {
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.3s ease;
}

.subpage .class-display-card:hover .class-register-btn {
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

/* Floating Sticky Notes on Hover */
.subpage .card-sticky-note {
  position: absolute;
  top: -26px;
  right: -12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  padding: 10px;
  box-sizing: border-box;
  font-weight: 900;
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  color: #130840;
  box-shadow: 2px 10px 24px rgba(12, 8, 52, 0.22);
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.4) rotate(15deg);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Semi-transparent matte tape holding the sticky note */
.subpage .card-sticky-note::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 44px;
  height: 16px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(1px);
  border-radius: 1px;
}

/* Sticky note theme colors */
.subpage .card-sticky-note.color-yellow {
  background: var(--yellow);
}

.subpage .card-sticky-note.color-pink {
  background: var(--pink);
}

.subpage .card-sticky-note.color-green {
  background: var(--green);
}

/* Trigger Pop Up on Card Hover */
.subpage .class-display-card:hover .card-sticky-note {
  opacity: 1;
  transform: scale(1) rotate(-8deg);
}

.subpage .class-card-header {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(24, 32, 51, 0.08);
  padding-bottom: 16px;
}

.subpage .class-level {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.subpage .class-card-header h3 {
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0;
  color: #240F22;
}

.subpage .class-card-body p {
  color: #46516a;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.subpage .class-card-body ul {
  padding-left: 20px;
  margin: 0;
}

.subpage .class-card-body li {
  color: #46516a;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

/* Premium Floating Arrows */
.subpage .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(24, 32, 51, 0.12);
  color: #240F22;
  box-shadow: 0 10px 30px rgba(27, 39, 71, 0.18);
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.subpage .slider-arrow.prev {
  left: -24px;
}

.subpage .slider-arrow.next {
  right: -24px;
}

.subpage .slider-arrow:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 14px 36px rgba(27, 39, 71, 0.24);
}

.subpage .slider-arrow:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

.subpage .slider-arrow:disabled {
  opacity: 0;
  pointer-events: none;
  cursor: default;
}

/* Course Theme Styling for dynamic level badges, card hovers & arrow hovers */
.subpage .class-slider-wrapper.theme-corestem .class-level {
  background: rgba(196, 16, 0, 0.1);
  color: #c41000;
}

.subpage .class-slider-wrapper.theme-corestem .class-display-card::before {
  background: linear-gradient(145deg, #240F22, #c41000);
}

.subpage .class-slider-wrapper.theme-corestem .class-register-btn {
  background: linear-gradient(145deg, #240F22, #c41000);
  color: #fff;
  box-shadow: 0 10px 24px rgba(196, 16, 0, 0.2);
}

.subpage .class-slider-wrapper.theme-corestem .class-display-card:hover .class-level,
.subpage .class-slider-wrapper.theme-corestem .class-display-card:hover .class-register-btn {
  color: #c41000 !important;
}

.subpage .class-slider-wrapper.theme-corestem .slider-arrow:hover:not(:disabled) {
  color: #c41000;
  border-color: rgba(196, 16, 0, 0.35);
}

.subpage .class-slider-wrapper.theme-math .class-level {
  background: rgba(255, 85, 1, 0.1);
  color: #ff5501;
}

.subpage .class-slider-wrapper.theme-math .class-display-card::before {
  background: linear-gradient(145deg, #ff5501, #ffe500);
}

.subpage .class-slider-wrapper.theme-math .class-register-btn {
  background: linear-gradient(145deg, #ff5501, #ffe500);
  color: #130840;
  box-shadow: 0 10px 24px rgba(255, 85, 1, 0.25);
}

.subpage .class-slider-wrapper.theme-math .class-display-card:hover .class-level,
.subpage .class-slider-wrapper.theme-math .class-display-card:hover .class-register-btn {
  color: #ff5501 !important;
}

.subpage .class-slider-wrapper.theme-math .slider-arrow:hover:not(:disabled) {
  color: #ff5501;
  border-color: rgba(255, 85, 1, 0.35);
}

.subpage .class-slider-wrapper.theme-science .class-level {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.subpage .class-slider-wrapper.theme-science .class-display-card::before {
  background: linear-gradient(145deg, #41df82, #ffe500);
}

.subpage .class-slider-wrapper.theme-science .class-register-btn {
  background: linear-gradient(145deg, #10b981, #ffe500);
  color: #130840;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.25);
}

.subpage .class-slider-wrapper.theme-science .class-display-card:hover .class-level,
.subpage .class-slider-wrapper.theme-science .class-display-card:hover .class-register-btn {
  color: #10b981 !important;
}

.subpage .class-slider-wrapper.theme-science .slider-arrow:hover:not(:disabled) {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.35);
}

.subpage .class-slider-wrapper.theme-english .class-level {
  background: rgba(104, 73, 254, 0.1);
  color: #6849fe;
}

.subpage .class-slider-wrapper.theme-english .class-display-card::before {
  background: linear-gradient(145deg, #6849fe, #ff7fec);
}

.subpage .class-slider-wrapper.theme-english .class-register-btn {
  background: linear-gradient(145deg, #6849fe, #ff7fec);
  color: #fff;
  box-shadow: 0 10px 24px rgba(104, 73, 254, 0.25);
}

.subpage .class-slider-wrapper.theme-english .class-display-card:hover .class-level,
.subpage .class-slider-wrapper.theme-english .class-display-card:hover .class-register-btn {
  color: #6849fe !important;
}

.subpage .class-slider-wrapper.theme-english .slider-arrow:hover:not(:disabled) {
  color: #6849fe;
  border-color: rgba(104, 73, 254, 0.35);
}

/* Responsiveness for Subpage Courses Board */
@media (max-width: 980px) {
  .subpage .courses-board {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .subpage .course-tabs-column {
    gap: 12px;
  }

  .subpage .class-slider-wrapper {
    grid-column: auto;
    width: 100%;
  }

  .subpage .class-slider-track {
    grid-auto-columns: 100%;
    /* single card full width on mobile */
  }

  .subpage .class-slider-container {
    width: calc(100% + 24px);
    padding: 30px 12px;
    margin: -30px -12px;
  }

  .subpage .card-sticky-note {
    width: 80px;
    height: 80px;
    top: -22px;
    right: -8px;
    font-size: 0.62rem;
    padding: 8px;
  }

  .subpage .card-sticky-note::after {
    width: 36px;
    height: 12px;
    top: -8px;
  }

  .subpage .slider-arrow.prev {
    left: -12px;
  }

  .subpage .slider-arrow.next {
    right: -12px;
  }
}