/* ================================================================
   PRE-AI ERA OVERHAUL — STEMulus
   Awwwards-calibre editorial design system
   Philosophy: Asymmetric grids · Brutalist type · Organic motion
   ================================================================ */

/* ---------------------------------------------------------------
   1. CUSTOM PROPERTIES (Design Tokens)
--------------------------------------------------------------- */
:root {
  --ink: #0a0a0a;
  --chalk: #f5f0e8;
  --warm-white: #faf9f7;
  --orange: #f4600c;
  --deep-navy: #070d1f;
  --slate: #1a2332;
  --violet: #5b2d8e;
  --acid-green: #b5ff45;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --display: 'Clash Display', 'Poppins', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

/* ---------------------------------------------------------------
   2. RESET + BASE
--------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--mono);
  background: var(--warm-white);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
  /* hidden in favour of custom cursor */
}

/* ---------------------------------------------------------------
   3. FILM GRAIN OVERLAY
--------------------------------------------------------------- */
#grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(1) infinite;
}

@keyframes grain {
  0% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-3%, -4%);
  }

  20% {
    transform: translate(-6%, 2%);
  }

  30% {
    transform: translate(3%, -1%);
  }

  40% {
    transform: translate(-2%, 5%);
  }

  50% {
    transform: translate(-5%, 0%);
  }

  60% {
    transform: translate(4%, 3%);
  }

  70% {
    transform: translate(-3%, -3%);
  }

  80% {
    transform: translate(2%, 4%);
  }

  90% {
    transform: translate(-4%, -2%);
  }
}

/* ---------------------------------------------------------------
   4. CUSTOM MORPHING CURSOR
--------------------------------------------------------------- */
#cursor-ring {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease,
    background 0.25s ease, border-radius 0.25s ease,
    border-color 0.25s ease;
  mix-blend-mode: difference;
}

#cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease;
}

body.cursor-link #cursor-ring {
  width: 70px;
  height: 70px;
  background: rgba(244, 96, 12, 0.1);
  border-color: var(--orange);
}

body.cursor-cta #cursor-ring {
  width: 90px;
  height: 90px;
  background: var(--orange);
  border-color: var(--orange);
  border-radius: 4px;
  transform: translate(-50%, -50%) rotate(45deg);
}

body.cursor-image #cursor-ring {
  width: 80px;
  height: 80px;
  background: transparent;
  border-color: white;
  border-radius: 4px;
}

/* ---------------------------------------------------------------
   5. TYPOGRAPHY SYSTEM
--------------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.serif-accent {
  font-family: var(--serif);
  font-style: italic;
}

.mono-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Massive hero text — viewport-relative kinetic sizing */
.hero-word {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
  overflow: hidden;
}

.hero-word span {
  display: block;
}

.hero-line-1 {
  font-size: clamp(64px, 11vw, 168px);
  color: var(--chalk);
}

.hero-line-2 {
  font-size: clamp(72px, 13vw, 200px);
  color: var(--orange);
  font-family: var(--serif);
  font-style: italic;
}

.hero-line-3 {
  font-size: clamp(48px, 8vw, 130px);
  color: var(--chalk);
}

/* Section headings — break out of containers */
.editorial-heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.editorial-heading.break-out {
  margin-inline: -4vw;
}

/* ---------------------------------------------------------------
   6. BROKEN-GRID LAYOUT UTILITIES
--------------------------------------------------------------- */
.full-bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* Asymmetric editorial grid */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
}

.editorial-grid-reverse {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
}

/* Curriculum staggered masonry */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1.5rem;
}

.curriculum-grid .card-tall {
  grid-row: span 2;
}

.curriculum-grid .card-offset {
  transform: translateY(3rem);
}

.curriculum-grid .card-bleed {
  margin-top: -4rem;
}

/* Stats raw typographic row */
.stats-raw {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid currentColor;
}

.stat-block {
  padding: 3rem 2rem;
  border-right: 1px solid currentColor;
}

.stat-block:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--display);
  font-size: clamp(64px, 9vw, 140px);
  line-height: 1;
  letter-spacing: -0.05em;
  display: block;
}

/* ---------------------------------------------------------------
   7. 3D CSS ICONS
--------------------------------------------------------------- */
.icon-3d {
  width: 72px;
  height: 72px;
  position: relative;
  transform-style: preserve-3d;
  perspective: 300px;
  margin-bottom: 1.5rem;
}

.icon-3d-inner {
  width: 52px;
  height: 52px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(25deg) rotateY(-25deg);
  transition: transform 0.4s ease;
}

.icon-3d:hover .icon-3d-inner {
  transform: rotateX(20deg) rotateY(-35deg) rotateZ(5deg);
}

.face {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.face-front {
  transform: translateZ(26px);
}

.face-top {
  transform: rotateX(90deg) translateZ(26px);
}

.face-right {
  transform: rotateY(90deg) translateZ(26px);
}

/* Colors per program */
.icon-game .face-front {
  background: #3730a3;
}

.icon-game .face-top {
  background: #4338ca;
}

.icon-game .face-right {
  background: #1e1b4b;
}

.icon-python .face-front {
  background: #1d4ed8;
}

.icon-python .face-top {
  background: #2563eb;
}

.icon-python .face-right {
  background: #1e3a8a;
}

.icon-web .face-front {
  background: #b45309;
}

.icon-web .face-top {
  background: #d97706;
}

.icon-web .face-right {
  background: #78350f;
}

.icon-robot .face-front {
  background: #065f46;
}

.icon-robot .face-top {
  background: #059669;
}

.icon-robot .face-right {
  background: #022c22;
}

.icon-create .face-front {
  background: #7c3aed;
}

.icon-create .face-top {
  background: #8b5cf6;
}

.icon-create .face-right {
  background: #4c1d95;
}

.icon-ai .face-front {
  background: #be123c;
}

.icon-ai .face-top {
  background: #e11d48;
}

.icon-ai .face-right {
  background: #881337;
}

/* ---------------------------------------------------------------
   8. NAV — EDITORIAL STYLE
--------------------------------------------------------------- */
.nav-editorial {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
}

.nav-editorial a {
  color: white;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.nav-editorial a:hover {
  opacity: 0.5;
}

.nav-logo-editorial img {
  filter: invert(1);
  width: 100px;
}

/* ---------------------------------------------------------------
   9. HERO SECTION
--------------------------------------------------------------- */
.hero-preai {
  position: relative;
  min-height: 100vh;
  background: var(--deep-navy);
  display: grid;
  grid-template-columns: 1fr;
  align-items: flex-end;
  padding: 0 5vw 8vh;
  overflow: hidden;
}

.hero-preai canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-text-container {
  position: relative;
  z-index: 2;
  padding-top: 20vh;
}

.hero-sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-sub::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--orange);
}

.hero-cta-row {
  margin-top: 5vh;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-bottom: 2vh;
}

.btn-primary-raw {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--orange);
  padding: 1.1rem 2.8rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s, transform 0.25s;
}

.btn-primary-raw:hover {
  background: var(--chalk);
  transform: translateX(4px);
}

.btn-ghost-raw {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost-raw:hover {
  color: white;
  border-color: white;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 3rem;
  right: 5vw;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  writing-mode: vertical-rl;
}

.hero-scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
  animation: scrollLineGrow 2s ease-in-out infinite;
}

@keyframes scrollLineGrow {

  0%,
  100% {
    height: 60px;
    opacity: 0.3;
  }

  50% {
    height: 90px;
    opacity: 0.7;
  }
}

/* ---------------------------------------------------------------
   10. EDITORIAL SKILL STATEMENT (replaces marquee)
--------------------------------------------------------------- */
.skill-statement {
  padding: 5rem 5vw;
  background: var(--warm-white);
  display: flex;
  align-items: flex-start;
  gap: 8rem;
}

.skill-label-col {
  width: 200px;
  flex-shrink: 0;
  padding-top: 0.5rem;
}

.skill-tags-col {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.skill-tag {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: color 0.2s;
}

.skill-tag:nth-child(3n+1) {
  color: var(--orange);
}

.skill-tag:nth-child(2n) .serif-accent {
  font-family: var(--serif);
  font-style: italic;
}

.skill-divider {
  width: 4px;
  height: 4px;
  background: var(--ink);
  border-radius: 50%;
  align-self: center;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------
   11. CURRICULUM SECTION
--------------------------------------------------------------- */
.curriculum-section {
  background: var(--ink);
  padding: 8rem 5vw;
  overflow: hidden;
}

.curriculum-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 5rem;
}

.curriculum-section .section-header .editorial-heading {
  color: var(--chalk);
}

/* Program card — editorial raw style */
.prog-card {
  background: var(--slate);
  position: relative;
  padding: 2.5rem;
  overflow: hidden;
  transition: background 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.prog-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}

.prog-card:hover::before {
  transform: scaleY(1);
}

.prog-card:hover {
  background: #232f45;
}

.prog-card-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
}

.prog-card-title {
  font-family: var(--display);
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 700;
  color: var(--chalk);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  flex: 1;
}

.prog-card-ages {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.prog-card-desc {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}

.prog-card-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.prog-card-link:hover {
  gap: 1rem;
}

/* ---------------------------------------------------------------
   12. STATS ROW
--------------------------------------------------------------- */
.stats-section {
  background: var(--chalk);
  padding: 0 5vw;
  overflow-x: auto;
}

.stats-raw {
  color: var(--ink);
}

.stat-num {
  color: var(--ink);
}

.stat-unit {
  font-family: var(--display);
  font-size: 2.5rem;
  color: var(--orange);
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.45);
  margin-top: 0.75rem;
}

/* ---------------------------------------------------------------
   13. DIFFERENCE / VALUE PROP (Asymmetric)
--------------------------------------------------------------- */
.difference-section {
  padding: 8rem 5vw;
  background: var(--warm-white);
}

.difference-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 6rem;
  align-items: start;
}

.difference-left blockquote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-left: 4px solid var(--orange);
  padding-left: 2rem;
  margin-bottom: 3rem;
}

.feature-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
}

.feature-item:last-child {
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
}

.feature-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--orange);
  padding-top: 0.3rem;
}

.feature-title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-family: var(--mono);
  font-size: 0.79rem;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.55);
}

/* ---------------------------------------------------------------
   14. TIMELINE (horizontal scroll)
--------------------------------------------------------------- */
.timeline-section {
  background: var(--deep-navy);
  padding: 8rem 0;
  overflow: hidden;
}

.timeline-header {
  padding: 0 5vw;
  margin-bottom: 4rem;
}

.timeline-scroll-track {
  display: flex;
  gap: 0;
  will-change: transform;
}

.timeline-step {
  flex: 0 0 420px;
  padding: 3rem 3.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-step-num {
  font-family: var(--display);
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
}

.timeline-step-title {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--chalk);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.timeline-step-age {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.timeline-step-desc {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------------------------------------------------------------
   15. FINAL CTA — Full bleed dark
--------------------------------------------------------------- */
.cta-section {
  background: var(--ink);
  padding: 10rem 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.cta-section .editorial-heading {
  color: var(--chalk);
}

.cta-section .serif-accent {
  color: var(--orange);
}

.cta-contact-line {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.cta-email {
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 36px);
  color: var(--orange);
  text-decoration: none;
  letter-spacing: -0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.cta-email:hover {
  border-color: var(--orange);
}

.cta-trust {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.trust-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.trust-text {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

/* ---------------------------------------------------------------
   16. FOOTER — Newspaper-style
--------------------------------------------------------------- */
.footer-editorial {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5rem 5vw 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-brand-name {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--chalk);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}

.footer-brand-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--chalk);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------------
   17. GSAP REVEAL UTILITIES
--------------------------------------------------------------- */
.reveal-mask {
  overflow: hidden;
  display: block;
}

.reveal-inner {
  display: block;
  transform: translateY(110%);
}

/* ---------------------------------------------------------------
   18. RESPONSIVE
--------------------------------------------------------------- */
@media (max-width: 1024px) {
  .curriculum-grid {
    grid-template-columns: 1fr 1fr;
  }

  .curriculum-grid .card-tall {
    grid-row: auto;
  }

  .curriculum-grid .card-offset,
  .curriculum-grid .card-bleed {
    transform: none;
    margin-top: 0;
  }

  .difference-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cta-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-raw {
    grid-template-columns: 1fr 1fr;
  }

  .stat-block {
    border-bottom: 1px solid currentColor;
  }

  .editorial-heading.break-out {
    margin-inline: 0;
  }

  .skill-statement {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .curriculum-grid {
    grid-template-columns: 1fr;
  }

  .hero-line-1 {
    font-size: clamp(52px, 14vw, 100px);
  }

  .hero-line-2 {
    font-size: clamp(60px, 16vw, 120px);
  }

  .hero-line-3 {
    font-size: clamp(40px, 11vw, 80px);
  }

  .nav-editorial {
    padding: 1rem 1.5rem;
  }

  .hero-preai {
    padding: 0 6vw 6vh;
  }

  .stats-raw {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 5rem 5vw;
  }

  body {
    cursor: auto;
  }

  #cursor-ring,
  #cursor-dot {
    display: none;
  }
}

/* ================================================================
   19. GLOBAL SUBPAGE OVERRIDES
   Forces pre-AI era aesthetic on all existing subpage content
   without touching individual HTML files.
   ================================================================ */

/* ── 19a. TYPOGRAPHY ──────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
  font-family: 'Clash Display', 'Poppins', sans-serif !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
}

main h1,
section h1,
[role="main"] h1 {
  font-size: clamp(48px, 8vw, 120px) !important;
  font-weight: 700 !important;
}

main h2,
section h2 {
  font-size: clamp(36px, 5.5vw, 80px) !important;
  font-weight: 700 !important;
}

h3 {
  font-size: clamp(20px, 2.5vw, 36px) !important;
  font-weight: 700 !important;
}

h4 {
  font-size: clamp(14px, 1.5vw, 22px) !important;
  font-weight: 600 !important;
}

p,
li,
td,
th,
label,
blockquote,
figcaption {
  font-family: 'JetBrains Mono', 'Courier New', monospace !important;
}

p {
  line-height: 1.75 !important;
}

/* Flatten gradient text fills to solid orange */
.text-transparent.bg-clip-text,
[class*="bg-clip-text"] {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: var(--orange) !important;
}

/* ── 19b. KILL ROUNDED CORNERS ────────────────────────────────── */

.rounded-3xl,
.rounded-2xl,
.rounded-xl,
.rounded-lg,
.rounded-md,
.rounded {
  border-radius: 0 !important;
}

/* Preserve avatar circles */
img.rounded-full {
  border-radius: 50% !important;
}

/* ── 19c. KILL GLASSMORPHISM ──────────────────────────────────── */

.backdrop-blur-2xl,
.backdrop-blur-xl,
.backdrop-blur-md,
.backdrop-blur-sm,
.backdrop-blur,
[class*="backdrop-blur"] {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.glass-panel,
.glass-nav,
.glass-panel-light,
[class*="glass"] {
  background: rgba(10, 10, 10, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: none !important;
}

/* Hide decorative blur orbs */
[class*="blur-["] {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── 19d. FLATTEN BENTO CARDS ─────────────────────────────────── */

.bg-white\/5,
.bg-white\/10 {
  background-color: #131c2e !important;
}

[class*="bg-gradient-to"] {
  background-image: none !important;
}

.bg-slate-900,
.bg-slate-950,
.bg-gray-900,
[class*="from-slate-9"],
[class*="from-gray-9"] {
  background-color: var(--deep-navy) !important;
}

.bg-gray-50,
.bg-slate-50,
[class*="from-gray-50"],
[class*="from-slate-50"] {
  background-color: var(--warm-white) !important;
}

/* ── 19e. MACRO SECTION WHITESPACE ───────────────────────────── */

section {
  padding-top: clamp(5rem, 8vw, 10rem) !important;
  padding-bottom: clamp(5rem, 8vw, 10rem) !important;
}

section:first-of-type,
section.hero-preai {
  padding-top: 0 !important;
}

/* ── 19f. BUTTONS → RAW FLAT ─────────────────────────────────── */

a[class*="rounded-full"][class*="bg-supernova-orange"],
a[class*="rounded-full"][class*="bg-orange"],
button[class*="rounded-full"][class*="bg-supernova-orange"],
a[class*="rounded"][class*="bg-gradient"] {
  border-radius: 0 !important;
  background: var(--orange) !important;
  background-image: none !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}

a[class*="rounded-full"][class*="bg-supernova-orange"]:hover,
a[class*="rounded-full"][class*="bg-orange"]:hover {
  background: var(--chalk) !important;
  color: var(--ink) !important;
  transform: translateX(3px) !important;
}

/* ── 19g. IMAGES — SLIGHT DESATURATION ───────────────────────── */

main img,
section img {
  filter: saturate(0.8) contrast(1.04) !important;
  transition: filter 0.4s ease;
}

main img:hover,
section img:hover {
  filter: saturate(1) contrast(1.02) !important;
}

/* ── 19h. CARD LEFT-ACCENT HOVER ─────────────────────────────── */

.program-card,
[class*="program-card"] {
  position: relative;
  transition: background 0.3s !important;
}

.program-card::before,
[class*="program-card"]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s ease;
}

.program-card:hover::before,
[class*="program-card"]:hover::before {
  transform: scaleY(1);
}

/* ── 19i. FILTER / TAG BUTTONS → MONO LABELS ─────────────────── */

.filter-btn,
[class*="filter-btn"] {
  border-radius: 0 !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.filter-btn.active,
.filter-btn[class*="bg-supernova-orange"] {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: white !important;
}

/* ── 19j. STAT NUMBERS ────────────────────────────────────────── */

[data-count-to],
[class*="text-4xl"][class*="font-bold"],
[class*="text-5xl"][class*="font-bold"],
[class*="text-6xl"][class*="font-bold"] {
  font-family: 'Clash Display', sans-serif !important;
  letter-spacing: -0.04em !important;
}

/* ── 19k. SUBPAGE HERO TREATMENT ─────────────────────────────── */

section[class*="hero"],
section[class*="min-h-screen"],
section[class*="min-h-\[60vh\]"],
section[class*="min-h-\[70vh\]"] {
  background-color: var(--deep-navy) !important;
  background-image: none !important;
}

.hero-badge,
[class*="hero-badge"] {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 0 !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  backdrop-filter: none !important;
}

/* ── 19l. RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 768px) {

  main h1,
  section h1 {
    font-size: clamp(38px, 12vw, 72px) !important;
  }

  main h2,
  section h2 {
    font-size: clamp(30px, 9vw, 56px) !important;
  }

  section {
    padding-top: clamp(3.5rem, 6vw, 6rem) !important;
    padding-bottom: clamp(3.5rem, 6vw, 6rem) !important;
  }
}

/* ================================================================
   20. CINEMATIC BRAND LOADER (index.html only)
   Full-screen curtain, pure CSS, lifts after 2.4s
   ================================================================ */

#site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loaderLift 0.85s cubic-bezier(0.76, 0, 0.24, 1) 2.5s forwards;
  pointer-events: none;
}

@keyframes loaderLift {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

#loader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

#loader-sub {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1 !important;
  animation: loaderFadeUp 0.7s ease 0.25s both;
}

#loader-wordmark {
  font-family: 'Clash Display', 'Poppins', sans-serif !important;
  font-size: clamp(72px, 16vw, 220px) !important;
  font-weight: 700 !important;
  color: #f5f0e8;
  letter-spacing: -0.05em !important;
  line-height: 0.85 !important;
  animation: loaderFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
  margin: 0;
}

#loader-progress {
  width: clamp(200px, 30vw, 420px);
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-top: 0.25rem;
}

#loader-bar {
  height: 100%;
  width: 0%;
  background: #f4600c;
  animation: loaderBarFill 2.1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes loaderBarFill {
  0% {
    width: 0%;
  }

  55% {
    width: 68%;
  }

  80% {
    width: 88%;
  }

  100% {
    width: 100%;
  }
}

#loader-tagline {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.16);
  line-height: 1 !important;
  animation: loaderFadeUp 0.7s ease 0.65s both;
}

@keyframes loaderFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================
   21. CONTRAST FIXES — WCAG AA COMPLIANT
   Corrects every contrast failure introduced by the global overrides.
   Ensures minimum 4.5:1 for body text, 3:1 for large/UI text.
   ================================================================ */

/* ── 21a. DARK TEXT ON NOW-DARK BACKGROUNDS ──────────────────── */
/* After 19d turned light bg sections dark, Tailwind dark-text
   classes become invisible. Force those to chalk/near-white. */

.text-gray-900,
.text-gray-800,
.text-gray-700,
.text-gray-600,
.text-cosmic-blue,
.text-black,
.text-slate-900,
.text-slate-800,
.text-slate-700 {
  color: rgba(245, 240, 232, 0.9) !important;
  /* chalk 90% */
}

/* Medium greys — lift to readable contrast on dark */
.text-gray-500,
.text-gray-400,
.text-slate-500,
.text-slate-400 {
  color: rgba(255, 255, 255, 0.62) !important;
  /* 5.8:1 on #0a0a0a */
}

/* Light greys that were fine on white — now need lifting on dark */
.text-gray-300,
.text-slate-300,
.text-gray-200 {
  color: rgba(255, 255, 255, 0.78) !important;
}

/* ── 21b. WHITE TEXT ON NOW-LIGHT BACKGROUNDS ─────────────────── */
/* If a section was forced to warm-white (#faf9f7) but child elements
   have text-white, they become invisible. */

/* Use a container query approach: any text-white inside bg sections
   that ended up light gets forced to ink. */
.bg-gray-50 .text-white,
.bg-slate-50 .text-white,
[style*="background:#faf9f7"] .text-white,
[style*="background:#f5f0e8"] .text-white,
.difference-section .text-white,
.skill-statement .text-white {
  color: var(--ink) !important;
}

/* ── 21c. ORANGE CONTRAST FIX ────────────────────────────────── */
/* #f4600c on white (#faf9f7) = 3.1:1 — fails for small body text.
   Only allow orange for headings (18px+ bold) and UI labels.
   Force body-sized orange text to a darker burnt orange. */

p .text-supernova-orange,
li .text-supernova-orange,
.text-supernova-orange:not(h1):not(h2):not(h3):not(h4):not(a):not(button):not([class*="mono-label"]):not([class*="stat-"]):not([class*="footer-"]):not([class*="prog-card-"]):not([class*="feature-num"]):not([class*="timeline-"]) {
  color: #c94d00 !important;
  /* #c94d00 on white = 5.1:1 ✓ */
}

/* Orange on dark bg is fine — restore */
.bg-slate-900 .text-supernova-orange,
.bg-slate-950 .text-supernova-orange,
[class*="bg-slate-9"] .text-supernova-orange,
section.curriculum-section .text-supernova-orange,
section.hero-preai .text-supernova-orange,
.footer-editorial .text-supernova-orange,
.prog-card .text-supernova-orange,
.stat-block .text-supernova-orange,
.timeline-step .text-supernova-orange,
.nav-editorial .text-supernova-orange {
  color: var(--orange) !important;
  /* full #f4600c on dark = 4.7:1 ✓ */
}

/* ── 21d. LOW-OPACITY TEXT — RAISE FLOOR ─────────────────────── */
/* rgba(255,255,255,0.3) = only 2.8:1 on #0a0a0a, fails AA.
   All ghosted labels must be at least 0.48 opacity on dark. */

.text-white\/30,
.text-white\/20,
[class*="text-white/3"],
[class*="text-white/2"] {
  color: rgba(255, 255, 255, 0.52) !important;
  /* 4.6:1 on #0a0a0a ✓ */
}

/* 40% is borderline: lift to 55% */
.text-white\/40,
[class*="text-white/4"] {
  color: rgba(255, 255, 255, 0.58) !important;
}

/* 50-60%: minor lift */
.text-white\/50,
.text-white\/60,
[class*="text-white/5"],
[class*="text-white/6"] {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* ── 21e. NAV LINKS — ALWAYS READABLE ────────────────────────── */
/* mix-blend-mode: difference works on dark hero but becomes
   invisible on some mid-tone sections. After first scroll the
   nav switches to solid dark glass (handled in JS) — but keep
   the blend-mode links visible either way. */

.nav-editorial a {
  color: white !important;
  /* always white until JS switches bg */
}

/* Once nav gets solid bg (via JS inline style), links must be light */
#main-nav[style*="background"] a {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ── 21f. HERO BADGE / MONO LABELS ───────────────────────────── */
/* Small uppercase labels in editorial design must hit 4.5:1 */

.mono-label {
  color: rgba(255, 255, 255, 0.55) !important;
  /* default on dark */
}

/* mono-label on light section */
.skill-statement .mono-label,
.difference-section .mono-label {
  color: rgba(10, 10, 10, 0.5) !important;
  /* 6.0:1 on chalk ✓ */
}

/* ── 21g. FORM INPUTS & PLACEHOLDERS ─────────────────────────── */
/* After glass kill, inputs might have invisible placeholder text */

input,
textarea,
select {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
}

/* Inputs on light sections */
.difference-section input,
.difference-section textarea,
section[class*="bg-gray-50"] input {
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--ink) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

/* ── 21h. STATS SECTION — INK TEXT ON CHALK BG ───────────────── */
/* stats-section has bg: var(--chalk) — text must be dark ink,
   not white (which our global overrides may have introduced). */

.stats-section,
.stats-section .stat-block,
.stats-section .stat-num,
.stats-section .stat-label {
  color: var(--ink) !important;
}

.stats-section .stat-unit {
  color: var(--orange) !important;
}

/* ── 21i. SKILL STATEMENT — INK ON WARM-WHITE ────────────────── */

.skill-statement,
.skill-statement .skill-tag {
  color: var(--ink) !important;
}

.skill-statement .skill-tag:nth-child(3n+1) {
  color: var(--orange) !important;
}

/* ── 21j. DIFFERENCE SECTION — INK ON WARM-WHITE ────────────── */

.difference-section,
.difference-section .feature-title,
.difference-section blockquote {
  color: var(--ink) !important;
}

.difference-section .feature-desc {
  color: rgba(10, 10, 10, 0.6) !important;
  /* 6.8:1 on #faf9f7 ✓ */
}

/* ── 21k. FOOTER EDITORIAL — CONSISTENT LEGIBILITY ───────────── */

.footer-editorial {
  color: rgba(255, 255, 255, 0.9) !important;
}

.footer-brand-name {
  color: var(--chalk) !important;
}

.footer-brand-tag {
  color: rgba(255, 255, 255, 0.45) !important;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.52) !important;
}

.footer-col a:hover {
  color: var(--chalk) !important;
}

.footer-legal {
  color: rgba(255, 255, 255, 0.35) !important;
}

/* ── 21l. PROG CARD INTERNALS ─────────────────────────────────── */

.prog-card-title {
  color: var(--chalk) !important;
}

.prog-card-desc {
  color: rgba(255, 255, 255, 0.58) !important;
}

.prog-card-ages {
  color: var(--orange) !important;
}

.prog-card-num {
  color: rgba(255, 255, 255, 0.3) !important;
}

/* ── 21m. SUBPAGE CARD BODY TEXT ─────────────────────────────── */
/* program-card text-gray-300 body copy on dark slate */

.program-card p,
[class*="program-card"] p {
  color: rgba(255, 255, 255, 0.68) !important;
}

.program-card h3,
[class*="program-card"] h3 {
  color: #f5f0e8 !important;
}

/* ── 21n. BLOG / CONTENT PAGES — BODY READABLE ───────────────── */
/* Long-form prose must be warm-white on dark, not ghost-grey */

article p,
.prose p,
.blog-content p,
.content-body p {
  color: rgba(255, 255, 255, 0.82) !important;
}

article h2,
article h3 {
  color: var(--chalk) !important;
}

/* ── 21o. TIMELINE INTERNALS ─────────────────────────────────── */

.timeline-step-title {
  color: var(--chalk) !important;
}

.timeline-step-desc {
  color: rgba(255, 255, 255, 0.52) !important;
}

.timeline-step-age {
  color: var(--orange) !important;
}

/* ── 21p. CTA SECTION ─────────────────────────────────────────── */

.cta-section {
  color: var(--chalk) !important;
}

.trust-text {
  color: rgba(255, 255, 255, 0.55) !important;
}

.cta-contact-line {
  color: rgba(255, 255, 255, 0.42) !important;
}

/* ── 21q. LOADER TEXT ─────────────────────────────────────────── */

#loader-sub {
  color: rgba(255, 255, 255, 0.45) !important;
}

#loader-tagline {
  color: rgba(255, 255, 255, 0.25) !important;
}

/* ── 21r. RESPONSIVE CONTRAST ────────────────────────────────── */
@media (max-width: 640px) {

  /* Mobile: raise all low-opacity text slightly for smaller sizes */
  .text-white\/30,
  .text-white\/20,
  [class*="text-white/3"],
  [class*="text-white/2"] {
    color: rgba(255, 255, 255, 0.58) !important;
  }

  .text-white\/40,
  [class*="text-white/4"] {
    color: rgba(255, 255, 255, 0.65) !important;
  }
}

/* ================================================================
   22. PRE-AI EDITORIAL HERO — SPLIT LAYOUT
   Full-screen, asymmetric, magazine-grade entrance
   ================================================================ */

/* ── Outer split container ──────────────────────────────────────── */
.preai-hero-split {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 100svh;
  background: var(--deep-navy);
  overflow: hidden;
  position: relative;
}

/* ── LEFT: text column ──────────────────────────────────────────── */
.preai-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 5rem 4rem 5rem;
  position: relative;
  z-index: 2;
}

/* Grid-line accent behind text column */
.preai-hero-text::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ── Chapter eyebrow ────────────────────────────────────────────── */
.preai-hero-chapter {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent1, var(--orange));
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.preai-hero-chapter::after {
  content: '';
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent1, var(--orange));
  opacity: 0.5;
}

/* ── H1 — three-line Clash Display ──────────────────────────────── */
.preai-hero-h1 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--chalk);
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.preai-hero-h1-line1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  color: rgba(245, 240, 232, 0.55);
  font-weight: 500;
}

.preai-hero-h1-line2 {
  font-size: clamp(3.2rem, 5.5vw, 5.5rem);
  color: var(--chalk);
}

.preai-hero-h1-line3 {
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  line-height: 1.1;
  background: linear-gradient(105deg, var(--accent1, #f4600c) 0%, var(--accent2, #e8a202) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.preai-hero-h1-line3 em {
  font-style: normal;
  -webkit-text-fill-color: transparent;
}

/* ── Rule ───────────────────────────────────────────────────────── */
.preai-hero-rule {
  width: 3rem;
  height: 2px;
  background: var(--accent1, var(--orange));
  margin-bottom: 1.4rem;
}

/* ── Subtitle ───────────────────────────────────────────────────── */
.preai-hero-sub {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(245, 240, 232, 0.55);
  max-width: 32rem;
  margin-bottom: 2.2rem;
}

/* ── CTAs ───────────────────────────────────────────────────────── */
.preai-hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}

.preai-hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent1, var(--orange));
  color: #fff !important;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border: 1px solid transparent;
  transition: background 0.2s, transform 0.2s;
}

.preai-hero-cta-primary:hover {
  background: var(--accent2, #e8a202);
  transform: translateY(-1px);
}

.preai-hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  color: rgba(245, 240, 232, 0.6) !important;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 240, 232, 0.25);
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
}

.preai-hero-cta-ghost:hover {
  color: var(--chalk) !important;
  border-color: var(--chalk);
}

/* ── Stats row ──────────────────────────────────────────────────── */
.preai-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.preai-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-right: 2rem;
}

.preai-hero-stat-num {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--chalk);
  line-height: 1;
}

.preai-hero-stat-lbl {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
}

.preai-hero-stat-div {
  width: 1px;
  height: 2rem;
  background: rgba(255, 255, 255, 0.12);
  margin-right: 2rem;
}

/* ── Editorial bottom bar ───────────────────────────────────────── */
.preai-hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.25);
  padding-top: 0.8rem;
  border-top: 1px solid var(--accent1, var(--orange));
}

.preai-hero-bar span:last-child {
  color: var(--accent1, var(--orange));
}

/* ── RIGHT: image column ────────────────────────────────────────── */
.preai-hero-img-col {
  position: relative;
  overflow: hidden;
}

.preai-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(30%) contrast(1.05);
  transition: transform 8s ease;
  transform-origin: center;
}

.preai-hero-split:hover .preai-hero-img {
  transform: scale(1.04);
}

/* Dark-to-transparent gradient overlay (left to right) */
.preai-hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(7, 13, 31, 0.7) 0%,
      rgba(7, 13, 31, 0.15) 40%,
      transparent 100%);
}

/* Orange corner accent line */
.preai-hero-img-corner {
  position: absolute;
  bottom: 3.5rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  border-bottom: 2px solid var(--accent1, var(--orange));
  border-right: 2px solid var(--accent1, var(--orange));
  opacity: 0.45;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .preai-hero-split {
    grid-template-columns: 1fr;
  }

  .preai-hero-img-col {
    display: none;
    /* hide image on tablet/mobile, text takes full width */
  }

  .preai-hero-text {
    padding: 8rem 2.5rem 4rem;
    min-height: 100svh;
  }

  .preai-hero-h1-line1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .preai-hero-h1-line2 {
    font-size: clamp(2.8rem, 8vw, 4rem);
  }

  .preai-hero-h1-line3 {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

@media (max-width: 480px) {
  .preai-hero-text {
    padding: 7rem 1.5rem 3rem;
  }

  .preai-hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .preai-hero-stats {
    flex-wrap: wrap;
    gap: 1.2rem;
  }

  .preai-hero-stat-div {
    display: none;
  }

  .preai-hero-stat {
    padding-right: 0;
    min-width: 5rem;
  }
}