/* ==========================================================================
   Nexus STEM Workshop — Design System
   Dark-mode first. Merges Meta commerce-system geometry with Nexus brand.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette (Nexus) */
  --nx-blue:        #0B2961;
  --nx-blue-light:  #4D7CDB;
  --nx-orange:      #F0801C;
  --nx-orange-deep: #C46412;
  --nx-green:       #85B931;
  --nx-green-deep:  #5F8A1F;
  --nx-cyan:        #149CCD;

  /* Surface (dark mode default) */
  --bg:             #0A0C12;
  --bg-elevated:    #12141C;
  --bg-card:        #161922;
  --bg-card-hover:  #1C1F2A;
  --surface-soft:   #1A1D27;
  --hairline:       rgba(255, 255, 255, 0.08);
  --hairline-strong:rgba(255, 255, 255, 0.14);

  /* Text */
  --ink:            #F2EEE3;       /* warm white — primary */
  --ink-soft:       #C9CCD4;       /* body */
  --ink-mute:       #8A8E99;       /* tertiary */
  --ink-faint:      #5A5E68;       /* disabled / captions */

  /* Accent aliases */
  --primary:        #4361EE;
  --primary-deep:   #2A4BD0;
  --on-primary:     #FFFFFF;
  --accent:         var(--nx-orange);
  --accent-deep:    var(--nx-orange-deep);
  --success:        var(--nx-green);
  --info:           var(--nx-cyan);
  --hl-teal:        #4CC9F0;
  --hl-pink:        #F72585;

  /* Radius scale (matches design guide) */
  --r-xs:   2px;
  --r-sm:   4px;
  --r-md:   6px;
  --r-lg:   8px;
  --r-xl:   16px;
  --r-xxl:  24px;
  --r-xxxl: 32px;
  --r-feat: 40px;
  --r-pill: 999px;

  /* Spacing (4px base) */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  10px;
  --s-4:  12px;
  --s-5:  16px;
  --s-6:  20px;
  --s-7:  24px;
  --s-8:  32px;
  --s-9:  40px;
  --s-10: 48px;
  --s-11: 64px;
  --s-12: 80px;
  --s-13: 120px;

  /* Typography */
  --font-display: "Bricolage Grotesque", "Optimistic VF", "Inter", system-ui, -apple-system, sans-serif;
  --font-body:    "Outfit", "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif:   "Fraunces", "Source Serif Pro", Georgia, serif;

  /* Typography scale */
  --t-hero:    clamp(2.75rem, 6vw + 1rem, 5rem);     /* 44–80 */
  --t-display: clamp(2.25rem, 4vw + 1rem, 3.5rem);   /* 36–56 */
  --t-h-lg:    clamp(1.75rem, 2.5vw + 0.75rem, 2.5rem); /* 28–40 */
  --t-h-md:    1.75rem;       /* 28 */
  --t-h-sm:    1.5rem;        /* 24 */
  --t-sub-lg:  1.125rem;      /* 18 / 700 */
  --t-sub-md:  1.125rem;      /* 18 / 400 */
  --t-body:    1rem;          /* 16 */
  --t-body-sm: 0.875rem;      /* 14 */
  --t-cap:     0.75rem;       /* 12 */

  /* Effects */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-1: 0 1px 0 0 rgba(0,0,0,0.4);
  --shadow-2: 0 2px 16px 0 rgba(0, 0, 0, 0.5);
  --glow-orange: 0 0 0 1px rgba(240,128,28,0.25), 0 12px 40px -12px rgba(240,128,28,0.35);
  --glow-blue:   0 0 0 1px rgba(67,97,238,0.25), 0 12px 40px -12px rgba(67,97,238,0.35);
  --glow-teal:   0 0 0 1px rgba(76,201,240,0.25), 0 12px 40px -12px rgba(76,201,240,0.25);
  --glow-pink:   0 0 0 1px rgba(247,37,133,0.25), 0 12px 40px -12px rgba(247,37,133,0.2);
  --glass-bg:    rgba(22, 25, 34, 0.85);
}

/* ---------- Light theme (toggled) ---------- */
[data-theme="light"] {
  --bg:             #F7F5EF;
  --bg-elevated:    #FFFFFF;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #FAFAF7;
  --surface-soft:   #F0EDE4;
  --hairline:       rgba(10, 19, 23, 0.10);
  --hairline-strong:rgba(10, 19, 23, 0.18);

  --ink:            #0A0C12;
  --ink-soft:       #2A2D36;
  --ink-mute:       #3D414A;
  --ink-faint:      #6B6E78;

  --primary:        #0B2961;
  --primary-deep:   #061845;
  --shadow-2: 0 1px 4px 0 rgba(10, 19, 23, 0.10);
  --glass-bg: rgba(255, 255, 255, 0.85);
}

/* Keep enroll CTA text light on its always-dark background */
[data-theme="light"] .enroll h2 { color: #F2EEE3; }
[data-theme="light"] .enroll p { color: #C9CCD4; }
[data-theme="light"] .enroll-contact-text .lbl { color: #8A8E99; }
[data-theme="light"] .enroll-contact-text .val { color: #F2EEE3; }

/* Gallery labels — always-dark background, always-light text */
[data-theme="light"] .gallery .g-item .g-label { color: #F2EEE3; }

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11";
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 500;
  font-feature-settings: "ss01", "ss02";
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--nx-orange); color: #0A0C12; }

/* Subtle grain texture for atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Decorative ambient gradient — slow animated shift */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 700px at 10% -10%, rgba(67, 97, 238, 0.12), transparent 55%),
    radial-gradient(700px 500px at 90% 20%, rgba(240, 128, 28, 0.07), transparent 60%),
    radial-gradient(600px 500px at 50% 80%, rgba(76, 201, 240, 0.06), transparent 60%);
  animation: gradientShift 14s ease-in-out infinite alternate;
}

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-7);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--s-9); }
}

.section {
  padding: var(--s-12) 0;
  position: relative;
}
@media (min-width: 1024px) {
  .section { padding: var(--s-13) 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-orange);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.section-title {
  font-size: var(--t-display);
  font-weight: 500;
  max-width: 22ch;
  margin: var(--s-5) 0 var(--s-5);
  text-shadow: 0 0 40px rgba(76,201,240,0.08);
}
.section-lede {
  font-size: var(--t-sub-md);
  color: var(--ink-mute);
  max-width: 58ch;
  line-height: 1.55;
}

.section-solution {
  background: var(--surface-soft);
  border-radius: 24px;
  margin: 0 24px;
}

/* ---------- 4. Top navigation ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--hairline);
  transition: margin-top 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-wrap.nav-hidden {
  margin-top: -200px;
  opacity: 0;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--s-7);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-brand img {
  height: 36px;
  width: auto;
}
.nav-brand-text { display: none; }
@media (min-width: 640px) {
  .nav-brand-text { display: inline; }
}
.nav-brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: none;
  gap: var(--s-2);
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}
.nav-link {
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  font-size: var(--t-body-sm);
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}
.nav-link[data-accent="cyan"]::after     { background: var(--nx-cyan); box-shadow: 0 0 8px rgba(20,156,205,0.5); }
.nav-link[data-accent="orange"]::after   { background: var(--nx-orange); box-shadow: 0 0 8px rgba(240,128,28,0.5); }
.nav-link[data-accent="green"]::after    { background: var(--nx-green); box-shadow: 0 0 8px rgba(133,185,49,0.5); }
.nav-link[data-accent="blue"]::after     { background: var(--nx-blue-light); box-shadow: 0 0 8px rgba(77,124,219,0.5); }
.nav-link[data-accent="orange-deep"]::after { background: var(--nx-orange-deep); box-shadow: 0 0 8px rgba(196,100,18,0.5); }
.nav-link:hover { color: var(--ink); background: color-mix(in oklab, var(--surface-soft) 70%, transparent); }

.nav-actions { display: flex; align-items: center; gap: var(--s-3); }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--ink); background: var(--surface-soft); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { width: 18px; height: 18px; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-cta { display: none; }
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }

/* Mobile menu */
.nav-toggle { display: grid; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 3px 0;
  transition: all 0.3s var(--ease);
  border-radius: 1px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-drawer {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg);
  padding: var(--s-8) var(--s-7);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: var(--s-3);
  border-bottom: 1px solid var(--hairline);
}
.mobile-drawer[data-open="true"] { display: flex; }
.mobile-drawer .nav-link {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
}
@media (min-width: 1024px) { .mobile-drawer { display: none; } }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}

.btn-primary {
  background: linear-gradient(135deg, var(--nx-orange), #FF8C30);
  color: #0A0C12;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FF8C30, var(--hl-pink));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: -1;
  border-radius: var(--r-pill);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--glow-orange);
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:active { transform: translateY(0) scale(1); }

.btn-ink {
  background: var(--ink);
  color: var(--bg);
  transition: all 0.3s var(--ease);
}
.btn-ink:hover { background: #FFFFFF; transform: translateY(-2px) scale(1.03); box-shadow: 0 4px 20px rgba(255,255,255,0.15); }
[data-theme="light"] .btn-ink:hover { background: var(--nx-blue); color: #FFF; box-shadow: 0 4px 20px rgba(11,41,97,0.2); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
  transition: all 0.3s var(--ease);
}
.btn-secondary:hover { background: var(--surface-soft); border-color: color-mix(in oklab, var(--hl-teal) 50%, transparent); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(76,201,240,0.1); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--hairline);
  padding: 10px 22px;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-mute); }

.btn-sm { padding: 10px 18px; font-size: var(--t-body-sm); }
.btn-lg { padding: 18px 36px; font-size: 1rem; }

.btn-icon-trailing::after {
  content: "→";
  font-family: var(--font-mono);
  font-weight: 400;
  transition: transform 0.25s var(--ease);
  display: inline-block;
}
.btn-icon-trailing:hover::after { transform: translateX(4px); }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  padding: var(--s-11) 0 var(--s-12);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: var(--s-9);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: var(--s-12); }
}

.hero-eyebrow { margin-bottom: var(--s-7); }
.hero-title {
  font-size: var(--t-hero);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 var(--s-6);
  color: var(--ink);
  text-shadow: 0 0 80px rgba(76,201,240,0.15), 0 0 120px rgba(67,97,238,0.08);
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--nx-orange);
  letter-spacing: -0.02em;
}
.hero-title .underline-mark {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, var(--nx-orange), #FFD700, var(--nx-green), var(--nx-blue-light), var(--nx-orange));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: methodShift 5s linear infinite;
}
.hero-title .underline-mark::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.04em;
  height: 0.32em;
  background: linear-gradient(90deg, var(--nx-orange), #FFD700, var(--nx-green), var(--nx-blue-light));
  opacity: 0.35;
  z-index: -1;
  border-radius: 4px;
}
.hero-title .beyond {
  color: var(--nx-green);
  background: linear-gradient(135deg, var(--nx-green), #C4E86A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px rgba(133,185,49,0.55), 0 0 100px rgba(133,185,49,0.2);
  position: relative;
  animation: glowPulse 3s var(--ease) infinite;
  --glow-teal-color: rgba(133,185,49,0.55);
}
.hero-title .beyond::after {
  content: "Beyond";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--nx-green), #C4E86A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(28px);
  opacity: 0.7;
  z-index: -1;
}

.hero-sub {
  font-size: var(--t-sub-md);
  color: var(--ink-mute);
  max-width: 52ch;
  line-height: 1.55;
  margin-bottom: var(--s-8);
}
.hero-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-10);
}
.hero-ctas .btn {
  text-align: center;
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6) var(--s-7);
  padding-top: var(--s-7);
  border-top: 1px solid var(--hairline);
}
@media (min-width: 480px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-num .unit {
  font-family: var(--font-mono);
  font-size: 0.45em;
  color: var(--nx-orange);
  letter-spacing: 0;
}
.stat-label {
  display: block;
  font-size: var(--t-cap);
  color: var(--ink-mute);
  margin-top: var(--s-2);
  letter-spacing: 0.02em;
}

/* Hero visual — geometric composition */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xxxl);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(77, 124, 219, 0.4), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(240, 128, 28, 0.25), transparent 50%),
    linear-gradient(135deg, #0B1430 0%, #060812 100%);
  border: 1px solid var(--hairline);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
}
.hero-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  padding: var(--s-8);
}
.hero-formula {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: #F2EEE3;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.hero-formula .op { color: var(--nx-orange); font-style: italic; }
.hero-formula sub, .hero-formula sup {
  font-family: var(--font-mono);
  font-size: 0.4em;
  color: var(--nx-cyan);
  vertical-align: baseline;
  position: relative;
  top: -0.6em;
}
.hero-formula sub { top: 0.4em; }

.hero-code {
  width: 100%;
  max-width: 280px;
  background: rgba(10, 12, 18, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  backdrop-filter: blur(8px);
}
.hero-code-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-code-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.hero-code-dot:nth-child(1) { background: #ff5f57; }
.hero-code-dot:nth-child(2) { background: #febc2e; }
.hero-code-dot:nth-child(3) { background: #28c840; }
.hero-code-title {
  margin-left: auto;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}
.hero-code pre {
  margin: 0;
  padding: 14px 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #E0DFD8;
  overflow-x: auto;
}
.hero-code code {
  font-family: inherit;
}
.hc-cmt { color: #6A6E78; }

.hero-chips {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  color: #8A8E99;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-chips span {
  padding: var(--s-2) var(--s-4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-pill);
  background: rgba(10, 12, 18, 0.5);
  backdrop-filter: blur(10px);
  color: #C8C5BC;
}
.hero-chips-l { top: 24px; left: 24px; }
.hero-chips-r { bottom: 24px; right: 24px; align-items: flex-end; }

/* ---------- 7. Promo strip (between sections) ---------- */
.promo-strip {
  background: var(--bg-elevated);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--s-5) 0;
  overflow: hidden;
  position: relative;
}
.promo-track {
  display: flex;
  gap: var(--s-9);
  white-space: nowrap;
  animation: marquee 19s linear infinite;
  font-family: var(--font-mono);
  font-size: var(--t-body-sm);
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.promo-track span { display: inline-flex; align-items: center; gap: var(--s-9); }
.promo-track strong { color: var(--ink); font-weight: 500; }
.promo-track .dot { color: var(--nx-orange); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- 8. Pain points ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-9);
}
@media (min-width: 640px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }

.pain-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxl);
  padding: var(--s-7);
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.pain-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--hl-teal) 40%, transparent);
  background: color-mix(in oklab, var(--bg-card) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px -12px rgba(76,201,240,0.15);
}
.pain-num {
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  color: var(--nx-orange);
  letter-spacing: 0.1em;
  margin-bottom: var(--s-7);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.pain-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.pain-card h3 {
  font-size: var(--t-h-sm);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: var(--s-4);
}
.pain-card p { color: var(--ink-mute); font-size: var(--t-body-sm); line-height: 1.6; }
.pain-card .pain-icon {
  position: absolute;
  top: var(--s-7);
  right: var(--s-7);
  width: 28px;
  height: 28px;
  color: var(--ink-faint);
}

/* ---------- 9. Philosophy cycle ---------- */
.cycle {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-9);
  position: relative;
}
@media (min-width: 768px) { .cycle { grid-template-columns: repeat(3, 1fr); } }

.cycle-step {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxl);
  padding: var(--s-9) var(--s-7);
  overflow: hidden;
  isolation: isolate;
  transition: all 0.35s var(--ease);
}
.cycle-step:hover {
  border-color: color-mix(in oklab, var(--hl-teal) 35%, transparent);
  box-shadow: 0 8px 32px -12px rgba(76,201,240,0.12);
  transform: translateY(-2px);
}
.cycle-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, color-mix(in oklab, var(--nx-orange) 8%, transparent));
  z-index: -1;
}
.cycle-step-2::before {
  background: linear-gradient(135deg, transparent, color-mix(in oklab, var(--nx-cyan) 8%, transparent));
}
.cycle-step-3::before {
  background: linear-gradient(135deg, transparent, color-mix(in oklab, var(--nx-green) 8%, transparent));
}
.cycle-step .step-num {
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-7);
}
.cycle-step h3 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 500;
  font-style: italic;
  font-family: var(--font-serif);
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: var(--s-5);
  line-height: 1;
}
.cycle-step p { color: var(--ink-soft); line-height: 1.6; }

/* ---------- 10. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-9);
  margin-top: var(--s-9);
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: var(--s-12); align-items: start; } }

.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7) var(--s-5);
  margin-top: var(--s-8);
  padding-top: var(--s-7);
  border-top: 1px solid var(--hairline);
}
.about-meta dt {
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: var(--s-2);
}
.about-meta dd { margin: 0; color: var(--ink); font-weight: 500; }

.differentiators {
  display: grid;
  gap: var(--s-3);
}
.diff-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--hairline);
}
.diff-item:last-child { border-bottom: 0; }
.diff-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--nx-green);
  color: #0A0C12;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.diff-item h4 { font-size: var(--t-body); font-weight: 500; color: var(--ink); margin-bottom: var(--s-1); }
.diff-item p { color: var(--ink-mute); font-size: var(--t-body-sm); line-height: 1.55; }

/* ---------- 11. Why Nexus / Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-9);
}
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxl);
  padding: var(--s-7);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.pillar:hover { border-color: color-mix(in oklab, var(--hl-teal) 40%, transparent); transform: translateY(-4px); box-shadow: 0 8px 32px -12px rgba(76,201,240,0.15); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pillar-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--nx-orange);
  opacity: 0.4;
  letter-spacing: -0.04em;
  line-height: 0.8;
  margin-bottom: var(--s-7);
}
.pillar h3 { font-size: var(--t-h-sm); font-weight: 500; margin-bottom: var(--s-3); }
.pillar p { color: var(--ink-mute); font-size: var(--t-body-sm); line-height: 1.6; }

/* Comparison table */
/* ---------- Method highlight ---------- */
.method-highlight {
  font-style: italic;
  background: linear-gradient(90deg, var(--nx-orange), #FFD700, var(--nx-green), var(--nx-blue-light), var(--nx-orange));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: methodShift 5s linear infinite;
  position: relative;
}
.method-highlight::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0.06em;
  height: 0.12em;
  background: linear-gradient(90deg, var(--nx-orange), var(--nx-green));
  border-radius: 4px;
  opacity: 0.5;
  z-index: -1;
}
@keyframes methodShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.compare-wrap {
  margin-top: var(--s-11);
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxxl);
  overflow: hidden;
}
.compare-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: var(--t-h-sm);
  font-weight: 600;
  color: var(--ink);
}
.compare-head > div { padding: var(--s-5) var(--s-6); }
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--hairline);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row > div {
  padding: var(--s-5) var(--s-6);
  font-size: var(--t-body-sm);
  border-left: 1px solid var(--hairline);
}
.compare-row > div:first-child { border-left: 0; }
.compare-row .col-method {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--t-body-sm);
}
.compare-row .col-trad { color: var(--ink-mute); }
.compare-row .col-nexus { color: var(--ink); font-weight: 500; }
.compare-row .col-nexus::before {
  content: "\2713 ";
  color: var(--nx-green);
  font-weight: 700;
}
.compare-head > div {
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.compare-head > div:first-child {
  color: var(--ink);
}
.compare-head .col-trad {
  color: var(--ink-mute);
}
.compare-head .col-nexus {
  color: var(--nx-orange);
  font-size: var(--t-h-sm);
  background: color-mix(in oklab, var(--nx-orange) 8%, transparent);
  border-left: 2px solid var(--nx-orange);
}
@media (max-width: 767px) {
  .compare-head, .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-head > div:first-child, .compare-row > div:first-child { grid-column: 1 / -1; background: var(--surface-soft); border-left: 0; }
  .compare-head > div:first-child { padding-bottom: var(--s-3); }
  .compare-head > div.col-trad, .compare-head > div.col-nexus { padding-top: var(--s-3); }
}

/* ---------- Editorial diff sections ---------- */
.diff-editorial {
  margin-top: var(--s-11);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.diff-ed {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  padding: var(--s-9) var(--s-8);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxxl);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.diff-ed:hover { border-color: color-mix(in oklab, var(--hl-teal) 35%, transparent); box-shadow: 0 8px 32px -12px rgba(76,201,240,0.12); }

.diff-ed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--nx-orange), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.diff-ed:hover::before { opacity: 1; }

@media (min-width: 768px) {
  .diff-ed {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: var(--s-9);
    align-items: start;
  }
}

.diff-ed-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.diff-ed-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--nx-orange);
  opacity: 0.18;
  line-height: 0.85;
  letter-spacing: -0.04em;
  transition: opacity 0.4s var(--ease);
}
.diff-ed:hover .diff-ed-num { opacity: 0.35; }

.diff-ed-rule {
  width: 40px;
  height: 2px;
  background: var(--nx-orange);
  opacity: 0.5;
}

.diff-ed h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.diff-ed h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--nx-orange);
  font-weight: 400;
}

.diff-ed-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.diff-ed-body p {
  color: var(--ink-soft);
  font-size: var(--t-body);
  line-height: 1.72;
}

.diff-pull {
  font-size: 1.125rem !important;
  color: var(--ink) !important;
  line-height: 1.6 !important;
  padding-left: var(--s-6);
  border-left: 2px solid var(--nx-orange);
}
.diff-pull strong {
  color: var(--nx-orange);
  font-weight: 500;
}

.diff-emphasis {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem !important;
  color: var(--ink) !important;
}

/* Discipline tags */
.diff-disciplines {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding: var(--s-5) 0;
}
.disc-tag {
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--surface-soft);
}
.disc-physics { color: var(--nx-orange); border-color: rgba(240,128,28,0.3); }
.disc-math { color: var(--nx-blue-light); border-color: rgba(77,124,219,0.3); }
.disc-code { color: var(--nx-green); border-color: rgba(133,185,49,0.3); }
.disc-chem { color: var(--nx-cyan); border-color: rgba(20,156,205,0.3); }
.disc-plus { color: var(--ink-faint); font-size: var(--t-body-sm); }

/* Skills list */
.diff-skills {
  list-style: none;
  padding: var(--s-3) 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.diff-skills li {
  padding-left: var(--s-6);
  position: relative;
  color: var(--ink-soft);
  font-size: var(--t-body);
  line-height: 1.6;
}
.diff-skills li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--nx-orange);
  opacity: 0.6;
  transform: rotate(45deg);
}

/* Curriculum feature block */
.diff-curriculum {
  margin-top: var(--s-9);
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxxl);
  overflow: hidden;
}

.diff-curv-head {
  padding: var(--s-8) var(--s-8) var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-5);
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(135deg, rgba(240,128,28,0.06), transparent 60%);
}
.diff-curv-label {
  font-family: var(--font-display);
  font-size: var(--t-h-md);
  font-weight: 700;
  color: var(--nx-orange);
  opacity: 0.3;
  flex-shrink: 0;
}
.diff-curv-head h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
}

.diff-curv-body {
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.diff-curv-main p {
  color: var(--ink-soft);
  font-size: var(--t-body);
  line-height: 1.72;
}
.diff-curv-main p + p { margin-top: var(--s-5); }

.diff-curv-example {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxl);
  padding: var(--s-7);
}
.curv-ex-label {
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nx-orange);
  margin-bottom: var(--s-6);
}
.curv-ex-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.curv-step {
  display: flex;
  align-items: flex-start;
  gap: var(--s-5);
  padding: var(--s-4) 0;
  position: relative;
}
.curv-step:not(:last-child) {
  border-bottom: 1px solid var(--hairline);
}
.curv-step-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  color: var(--nx-orange);
  font-weight: 600;
}
.curv-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.curv-step-text strong {
  color: var(--ink);
  font-weight: 500;
  font-size: var(--t-body-sm);
}
.curv-step-text span {
  color: var(--ink-mute);
  font-size: var(--t-body-sm);
}

.diff-curv-footer p {
  color: var(--ink-soft);
  font-size: var(--t-body);
  line-height: 1.72;
}
.diff-curv-footer p + p { margin-top: var(--s-5); }

/* ---------- 12. Programs ---------- */
.pathways {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  margin-top: var(--s-9);
}
@media (min-width: 768px) { .pathways { grid-template-columns: repeat(3, 1fr); } }

.pathway-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxxl);
  padding: var(--s-8) var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: all 0.35s var(--ease);
}
.pathway-card:hover { border-color: color-mix(in oklab, var(--hl-teal) 40%, transparent); transform: translateY(-4px); box-shadow: 0 8px 32px -12px rgba(76,201,240,0.15); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.pathway-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  border-radius: var(--r-xl);
  color: var(--nx-orange);
}

.pathway-tag {
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nx-orange);
}

.pathway-card h3 {
  font-size: var(--t-h-sm);
  font-weight: 500;
  line-height: 1.3;
}

.pathway-card p {
  color: var(--ink-mute);
  font-size: var(--t-body-sm);
  line-height: 1.6;
  flex: 1;
}

.pathway-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: var(--s-2);
}
.pathway-price small { font-size: 0.45em; color: var(--ink-mute); font-weight: 400; }

.programs-subjects {
  margin-top: var(--s-11);
  padding-top: var(--s-9);
  border-top: 1px solid var(--hairline);
}
.programs-subjects h3 {
  font-size: var(--t-h-md);
  font-weight: 500;
  margin-bottom: var(--s-7);
}

.subjects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 768px) { .subjects-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Subject cards ---------- */
.subj-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxxl);
  padding: var(--s-8) var(--s-7) var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.subj-card:hover {
  transform: translateY(-4px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px -12px var(--subj-glow, rgba(76,201,240,0.18));
}

/* Colored top accent bar */
.subj-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--subj-accent, var(--nx-orange));
  opacity: 0.7;
  transition: opacity 0.35s var(--ease);
}
.subj-card:hover::before { opacity: 1; }

/* Subtle glow on hover */
.subj-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: radial-gradient(ellipse at top center, var(--subj-glow, rgba(240,128,28,0.08)), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.subj-card:hover::after { opacity: 1; }

.subj-card:hover { border-color: var(--hairline-strong); }

/* Subject-specific accent colors */
.subj-physics { --subj-accent: var(--nx-orange); --subj-glow: rgba(240,128,28,0.1); }
.subj-physics:hover { border-color: rgba(240,128,28,0.3); }
.subj-math { --subj-accent: var(--nx-blue-light); --subj-glow: rgba(77,124,219,0.1); }
.subj-math:hover { border-color: rgba(77,124,219,0.3); }
.subj-code { --subj-accent: var(--nx-green); --subj-glow: rgba(133,185,49,0.1); }
.subj-code:hover { border-color: rgba(133,185,49,0.3); }
.subj-chem { --subj-accent: var(--nx-cyan); --subj-glow: rgba(20,156,205,0.1); }
.subj-chem:hover { border-color: rgba(20,156,205,0.3); }

/* Icon */
.subj-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-xl);
  background: var(--surface-soft);
  color: var(--subj-accent, var(--nx-orange));
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  position: relative;
  z-index: 1;
}
.subj-icon svg { width: 32px; height: 32px; }

.subj-physics .subj-icon { background: rgba(240,128,28,0.1); }
.subj-math .subj-icon { background: rgba(77,124,219,0.1); }
.subj-code .subj-icon { background: rgba(133,185,49,0.1); }
.subj-chem .subj-icon { background: rgba(20,156,205,0.1); }

/* Content */
.subj-content {
  position: relative;
  z-index: 1;
  flex: 1;
}
.subj-content h4 {
  font-size: var(--t-h-sm);
  font-weight: 500;
  margin-bottom: var(--s-1);
  color: var(--ink);
}
.subj-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--t-body-sm) !important;
  color: var(--subj-accent, var(--nx-orange)) !important;
  margin-bottom: var(--s-4) !important;
  opacity: 0.85;
}
.subj-content p {
  color: var(--ink-mute);
  font-size: var(--t-body-sm);
  line-height: 1.65;
}
.subj-content p + p { margin-top: var(--s-3); }

/* Download button */
.subj-dl {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: auto;
  padding: var(--s-4) var(--s-6);
  background: color-mix(in srgb, var(--subj-accent, var(--nx-orange)) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--subj-accent, var(--nx-orange)) 35%, transparent);
  border-radius: var(--r-pill);
  color: var(--subj-accent, var(--nx-orange));
  font-family: var(--font-body);
  font-size: var(--t-body-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  width: fit-content;
  box-shadow: 0 0 12px -4px var(--subj-glow, rgba(240,128,28,0.25));
}
.subj-dl:hover {
  background: var(--subj-accent, var(--nx-orange));
  border-color: var(--subj-accent, var(--nx-orange));
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px -4px var(--subj-glow, rgba(240,128,28,0.45));
}
.subj-dl svg { flex-shrink: 0; transition: transform 0.3s var(--ease); }
.subj-dl:hover svg { transform: translateY(2px); }

/* ---------- 13. Learning Set ---------- */
.lset {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-9);
  margin-top: var(--s-9);
}
@media (min-width: 1024px) { .lset { grid-template-columns: 1fr 1.1fr; gap: var(--s-11); align-items: start; } }

.lset-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-7);
}
.lset-spec {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxl);
  padding: var(--s-5) var(--s-6);
  transition: all 0.35s var(--ease);
}
.lset-spec:hover { border-color: color-mix(in oklab, var(--hl-teal) 35%, transparent); box-shadow: 0 4px 20px -8px rgba(76,201,240,0.1); transform: translateY(-2px); }
.lset-spec .spec-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.lset-spec .spec-num small {
  font-size: 0.5em;
  color: var(--ink-mute);
  margin-left: 2px;
}
.lset-spec .spec-label {
  display: block;
  font-size: var(--t-cap);
  color: var(--ink-mute);
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.flow-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-5);
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: var(--s-5) var(--s-6);
  transition: all 0.35s var(--ease);
}
.flow-step:hover { border-color: color-mix(in oklab, var(--hl-teal) 40%, transparent); box-shadow: 0 4px 20px -8px rgba(76,201,240,0.12); transform: translateY(-2px); }
.flow-step .flow-time {
  font-family: var(--font-mono);
  font-size: var(--t-body-sm);
  color: var(--nx-orange);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.flow-step h4 { font-size: var(--t-body); font-weight: 500; color: var(--ink); }
.flow-step .flow-icon {
  width: 36px;
  height: 36px;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--ink-mute);
}

/* ---------- 14. Who Thrives ---------- */
.thrives {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-9);
}
@media (min-width: 640px) { .thrives { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .thrives { grid-template-columns: repeat(4, 1fr); } }
.thrive {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxl);
  padding: var(--s-6);
  text-align: center;
  transition: all 0.35s var(--ease);
}
.thrive:hover { border-color: var(--nx-cyan); transform: translateY(-4px); box-shadow: 0 8px 32px -12px rgba(20,156,205,0.2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.thrive-glyph {
  width: 56px;
  height: 56px;
  border-radius: var(--r-pill);
  margin: 0 auto var(--s-5);
  background: linear-gradient(135deg, color-mix(in oklab, var(--nx-cyan) 15%, transparent), color-mix(in oklab, var(--nx-blue-light) 15%, transparent));
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  color: var(--nx-cyan);
}
.thrive h4 { font-size: var(--t-sub-md); font-weight: 500; color: var(--ink); margin-bottom: var(--s-2); }
.thrive p { color: var(--ink-mute); font-size: var(--t-body-sm); line-height: 1.55; }

/* ---------- 15. Founder blockquote ---------- */
.founder {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxxl);
  padding: var(--s-11) var(--s-9);
  overflow: hidden;
  isolation: isolate;
}
.founder-inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}
.founder-photo {
  width: 100%;
  aspect-ratio: 2.3 / 1;
  object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
}
.founder::before {
  content: "“";
  position: absolute;
  top: -80px;
  left: 32px;
  font-family: var(--font-serif);
  font-size: 20rem;
  line-height: 1;
  color: var(--nx-orange);
  opacity: 0.18;
  z-index: -1;
  font-style: italic;
  animation: glowPulsePink 5s var(--ease) infinite;
}
.founder blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-style: italic;
  max-width: none;
}
.founder blockquote em {
  color: var(--nx-orange);
  font-style: italic;
}
.founder cite {
  display: block;
  margin-top: var(--s-7);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--t-body-sm);
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.founder cite strong { color: var(--ink); font-weight: 500; display: block; margin-bottom: 2px; }

@media (max-width: 768px) {
  .hero-visual {
    aspect-ratio: auto;
    height: 320px;
  }
  .hero-formula {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .hero-code {
    max-width: 220px;
  }
  .hero-code pre {
    font-size: 0.7rem;
    padding: 10px 12px;
  }
  .hero-ctas {
    grid-template-columns: 1fr;
  }
  .founder {
    padding: var(--s-7) var(--s-6);
    border-radius: var(--r-xl);
  }
  .founder::before {
    font-size: 10rem;
    top: -40px;
    left: 16px;
  }
  .founder blockquote {
    font-size: 1.05rem;
    max-width: none;
    line-height: 1.55;
  }
}

/* ---------- 16. Instructors ---------- */
.instructors {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-9);
}
@media (min-width: 640px) { .instructors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .instructors { grid-template-columns: repeat(4, 1fr); } }

.instructor {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxl);
  padding: var(--s-7);
  transition: all 0.35s var(--ease);
  position: relative;
}
.instructor:hover { border-color: color-mix(in oklab, var(--hl-teal) 40%, transparent); transform: translateY(-4px); box-shadow: 0 8px 32px -12px rgba(76,201,240,0.15); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.instructor-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--nx-blue-light), var(--nx-cyan));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: var(--s-5);
  letter-spacing: -0.02em;
}
.instructor-avatar.color-2 { background: linear-gradient(135deg, var(--nx-orange), #FF9540); }
.instructor-avatar.color-3 { background: linear-gradient(135deg, var(--nx-green), #A8D458); }
.instructor-avatar.color-4 { background: linear-gradient(135deg, var(--nx-cyan), #5DC0E8); }

.instructor h4 { font-size: var(--t-h-sm); font-weight: 500; color: var(--ink); margin-bottom: var(--s-1); }
.instructor .credential {
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nx-orange);
  margin-bottom: var(--s-5);
}
.instructor p { color: var(--ink-mute); font-size: var(--t-body-sm); line-height: 1.55; margin-bottom: var(--s-4); }
.instructor .expertise {
  font-size: var(--t-cap);
  color: var(--ink-soft);
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- 17. AI Era ---------- */
.ai-era {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-9);
  align-items: center;
  margin-top: var(--s-9);
}
@media (min-width: 1024px) { .ai-era { grid-template-columns: 1fr 1fr; gap: var(--s-12); } }

.ai-era-visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--r-xxxl);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
}
.ai-era-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
}
.ai-era-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,12,18,0.4), transparent 60%);
}

.ai-claims {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-7);
}
.ai-claim {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
}
.ai-claim::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--nx-green);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.ai-claim span { color: var(--ink); font-size: var(--t-body); font-weight: 500; }

.ai-quote {
  margin-top: var(--s-7);
  padding: var(--s-6);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--nx-orange);
  border-radius: var(--r-lg);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

/* ---------- 18. Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-top: var(--s-9);
}
.gallery .g-item {
  aspect-ratio: 4/3;
  border-radius: var(--r-xxxl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--hairline);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gallery .g-item:hover {
  border-color: color-mix(in oklab, var(--hl-teal) 35%, transparent);
  box-shadow: 0 8px 32px -12px rgba(76,201,240,0.18);
}
.gallery .g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery .g-item:hover img { transform: scale(1.04); }
.gallery .g-item .g-label {
  position: absolute;
  bottom: var(--s-5);
  left: var(--s-5);
  padding: var(--s-2) var(--s-4);
  background: rgba(10, 12, 18, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  .gallery .g-item {
    aspect-ratio: 16/10;
    border-radius: var(--r-xl);
  }
}
@media (min-width: 1024px) {
  .gallery { grid-template-columns: 2fr 1fr 1fr; }
  .gallery .g-item:first-child { grid-row: span 2; aspect-ratio: auto; }
}

/* Cursor */
.gallery .g-item { cursor: pointer; }

/* ---------- 18b. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
}

.lb-close {
  position: absolute;
  top: var(--s-6);
  right: var(--s-6);
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.lb-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.lb-prev { left: var(--s-6); }
.lb-next { right: var(--s-6); }
.lb-prev:hover, .lb-next:hover {
  background: rgba(255, 255, 255, 0.15);
}
.lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { transform: translateY(-50%) translateX(2px); }

.lb-content {
  position: relative;
  z-index: 5;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}

.lb-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--r-xl);
  box-shadow: 0 24px 80px -16px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.4s var(--ease);
}
.lightbox[aria-hidden="false"] .lb-img {
  transform: scale(1);
}

.lb-caption {
  font-family: var(--font-mono);
  font-size: var(--t-body-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  padding: var(--s-2) var(--s-4);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--r-pill);
}

/* ---------- 19. Enrollment CTA ---------- */
.enroll {
  position: relative;
  border-radius: var(--r-xxxl);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 50%, rgba(240, 128, 28, 0.35), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(67, 97, 238, 0.3), transparent 50%),
    radial-gradient(circle at 50% 20%, rgba(76, 201, 240, 0.15), transparent 50%),
    linear-gradient(135deg, #0B1430, #0A0C12);
  border: 1px solid var(--hairline);
  padding: var(--s-12) var(--s-9);
  text-align: center;
  isolation: isolate;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.enroll:hover {
  border-color: color-mix(in oklab, var(--hl-teal) 30%, transparent);
  box-shadow: 0 0 60px -20px rgba(67,97,238,0.2);
}
.enroll::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  z-index: -1;
}
.enroll h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 auto var(--s-6);
}
.enroll h2 em { font-family: var(--font-serif); font-style: italic; color: var(--nx-orange); }
.enroll p { color: var(--ink-mute); max-width: 50ch; margin: 0 auto var(--s-8); font-size: var(--t-sub-md); line-height: 1.55; }
.enroll-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-bottom: var(--s-8); }

.enroll-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5) var(--s-9);
  justify-content: center;
  padding-top: var(--s-7);
  border-top: 1px solid var(--hairline);
}
.enroll-contact { display: flex; align-items: center; gap: var(--s-3); }
.enroll-contact .ic {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  color: var(--nx-orange);
}
.enroll-contact-text { text-align: left; }
.enroll-contact-text .lbl { display: block; font-family: var(--font-mono); font-size: var(--t-cap); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); }
.enroll-contact-text .val { color: var(--ink); font-weight: 500; font-size: var(--t-body-sm); }

/* ---------- 20. Contact section ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-9);
  margin-top: var(--s-9);
}
@media (min-width: 1024px) { .contact { grid-template-columns: 1fr 1fr; gap: var(--s-12); } }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
  padding: var(--s-9);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxxl);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-info:hover {
  border-color: color-mix(in oklab, var(--hl-teal) 35%, transparent);
  box-shadow: 0 8px 32px -12px rgba(76,201,240,0.12);
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s-5);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--hairline);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .ic-lg {
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--nx-orange);
}
.contact-row h4 { font-size: var(--t-body-sm); font-weight: 500; color: var(--ink); margin-bottom: 2px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-row p { color: var(--ink-soft); font-size: var(--t-body); }
.contact-row a { color: var(--ink); border-bottom: 1px solid var(--hairline-strong); transition: border-color 0.2s var(--ease); }
.contact-row a:hover { border-color: var(--nx-orange); }

.contact-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxxl);
  padding: var(--s-9);
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-card:hover {
  border-color: color-mix(in oklab, var(--hl-teal) 35%, transparent);
  box-shadow: 0 8px 32px -12px rgba(76,201,240,0.12);
}
.contact-card h3 { font-size: var(--t-h-md); font-weight: 500; margin-bottom: var(--s-3); }
.contact-card > p { color: var(--ink-mute); margin-bottom: var(--s-7); }
.contact-form { display: flex; flex-direction: column; gap: var(--s-4); flex: 1; }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-family: var(--font-mono); font-size: var(--t-cap); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--nx-orange);
  background: var(--bg-card);
}
.field textarea { min-height: 110px; resize: vertical; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }

.insurance-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding: var(--s-3) var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.insurance-badge .ic { color: var(--nx-green); }

/* ---------- 21. Footer ---------- */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--hairline);
  padding: var(--s-12) 0 var(--s-7);
  margin-top: var(--s-12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-9);
  margin-bottom: var(--s-11);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }

.footer-brand img { height: 40px; margin-bottom: var(--s-5); }
.footer-brand p { color: var(--ink-mute); font-size: var(--t-body-sm); max-width: 32ch; line-height: 1.6; margin-bottom: var(--s-5); }
.footer-brand .insurance-badge { margin-top: 0; }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: var(--s-5);
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a {
  color: var(--ink-soft);
  font-size: var(--t-body-sm);
  transition: color 0.25s var(--ease);
  display: inline-block;
  position: relative;
}
.footer-col a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--nx-orange);
  transition: width 0.3s var(--ease);
}
.footer-col a:hover { color: var(--nx-orange); }
.footer-col a:hover::after { width: 100%; }

/* ---------- Homework drop zone ---------- */
.drop-zone {
  border: 2px dashed var(--hairline-strong);
  border-radius: var(--r-xl);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--nx-orange);
  background: color-mix(in oklab, var(--nx-orange) 6%, transparent);
}
.drop-zone-text {
  font-size: var(--t-body-sm);
  color: var(--ink-soft);
  margin: 12px 0 4px;
}
.drop-zone-link {
  color: var(--nx-orange);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.drop-zone-hint {
  font-size: var(--t-cap);
  color: var(--ink-faint);
}
.drop-zone-file {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: var(--t-body-sm);
  color: var(--ink);
  font-weight: 500;
}
.drop-zone-remove {
  background: none;
  border: none;
  color: var(--ink-mute);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.drop-zone-remove:hover { color: var(--nx-orange); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-7);
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer-legal a { color: var(--ink-mute); transition: color 0.2s var(--ease); }
.footer-legal a:hover { color: var(--ink); }

/* ---------- 22. Legal pages ---------- */
.legal {
  padding: var(--s-11) 0 var(--s-12);
}
.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxxl);
  padding: var(--s-11) var(--s-9);
}
.legal-wrap h1 {
  font-size: var(--t-h-lg);
  font-weight: 500;
  margin-bottom: var(--s-5);
  letter-spacing: -0.03em;
}
.legal-meta {
  display: flex;
  gap: var(--s-7);
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: var(--s-9);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--hairline);
}
.legal-wrap h2 {
  font-size: var(--t-h-sm);
  font-weight: 500;
  margin: var(--s-9) 0 var(--s-4);
  color: var(--ink);
}
.legal-wrap h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin: var(--s-7) 0 var(--s-3);
  color: var(--ink);
}
.legal-wrap p, .legal-wrap li {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: var(--s-4);
}
.legal-wrap ol, .legal-wrap ul { padding-left: var(--s-7); margin-bottom: var(--s-5); }
.legal-wrap ol { list-style: decimal; }
.legal-wrap ol ol { list-style: lower-alpha; margin-top: var(--s-3); }
.legal-wrap a { color: var(--nx-orange); border-bottom: 1px solid color-mix(in oklab, var(--nx-orange) 40%, transparent); }
.legal-wrap a:hover { border-color: var(--nx-orange); }
.legal-back { margin-bottom: var(--s-7); }

/* ---------- 23. Utilities ---------- */
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); font-style: italic; }
.color-orange { color: var(--nx-orange); }
.color-cyan { color: var(--nx-cyan); }
.color-green { color: var(--nx-green); }

/* ---------- 24. Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d-1 { transition-delay: 0.08s; }
.reveal-d-2 { transition-delay: 0.16s; }
.reveal-d-3 { transition-delay: 0.24s; }
.reveal-d-4 { transition-delay: 0.32s; }

@keyframes pulse-orange {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.pulse { animation: pulse-orange 2.4s var(--ease) infinite; }

/* ---------- Vivid refresh animations ---------- */

/* Slow ambient gradient breathing */
@keyframes gradientShift {
  0% { background-position: 0% 0%, 100% 0%, 50% 100%; }
  100% { background-position: 20% 20%, 80% -30%, 40% 120%; }
}

/* Pulsing text-shadow glow on key headings */
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 12px var(--glow-teal-color, rgba(76,201,240,0.3)), 0 0 36px var(--glow-teal-color, rgba(76,201,240,0.1)); }
  50% { text-shadow: 0 0 24px var(--glow-teal-color, rgba(76,201,240,0.55)), 0 0 64px var(--glow-teal-color, rgba(76,201,240,0.2)); }
}

/* Pulsing pink glow variant */
@keyframes glowPulsePink {
  0%, 100% { text-shadow: 0 0 12px rgba(247,37,133,0.25), 0 0 36px rgba(247,37,133,0.08); }
  50% { text-shadow: 0 0 24px rgba(247,37,133,0.5), 0 0 64px rgba(247,37,133,0.15); }
}

/* Floating decorative blobs */
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -12px) scale(1.03); }
  50% { transform: translate(-8px, 16px) scale(0.97); }
  75% { transform: translate(-16px, -8px) scale(1.02); }
}

/* Border glow pulse on hover */
@keyframes borderGlowPulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--hairline-strong), 0 0 20px -8px rgba(67,97,238,0.15); }
  50% { box-shadow: 0 0 0 1px var(--hairline-strong), 0 0 32px -4px rgba(67,97,238,0.3); }
}

/* Fade-slide-up for enhanced reveals */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Decorative floating blobs — html pseudo-elements */
html::before,
html::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.07;
  pointer-events: none;
  z-index: -2;
}
html::before {
  width: 500px;
  height: 500px;
  background: var(--hl-teal);
  top: 15%;
  left: -10%;
  animation: floatBlob 8s var(--ease) infinite;
}
html::after {
  width: 400px;
  height: 400px;
  background: var(--hl-pink);
  bottom: 10%;
  right: -8%;
  animation: floatBlob 10s var(--ease) infinite reverse;
}

/* Glow utility for section titles */
.glow-title {
  --glow-teal-color: rgba(76,201,240,0.5);
  animation: glowPulse 3.5s var(--ease) infinite;
  text-shadow: 0 0 16px rgba(76,201,240,0.2), 0 0 48px rgba(76,201,240,0.08);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
  .promo-track { animation: none; }
  html::before,
  html::after { animation: none; opacity: 0; }
  body::after { animation: none; }
  .glow-title { animation: none; text-shadow: none; }
}
