
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --yellow: #FBE216;
  --yellow-dark: #E8CC00;
  --cyan: #00E5FF;
  --cyan-dark: #00B8CC;
  --navy: #0D0F1A;
  --navy-mid: #141726;
  --navy-light: #1E2340;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --gray-light: #F4F5F8;
  --gray-mid: #E4E5EC;
  --gray-dark: #6B7280;
  --neon-y: rgba(251,226,22,0.55);
  --neon-c: rgba(0,229,255,0.45);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-yellow: 0 0 20px rgba(251,226,22,0.5), 0 0 60px rgba(251,226,22,0.2);
  --shadow-cyan: 0 0 20px rgba(0,229,255,0.4), 0 0 60px rgba(0,229,255,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --container: 1200px;
  /* Easing library — design-motion-principles */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);       /* standard */
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);          /* decelerate */
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);          /* accelerate — for exit animations */
  --spring:      cubic-bezier(0.34, 1.56, 0.64, 1);   /* physical spring */
  --spring-soft: cubic-bezier(0.22, 1.2, 0.36, 1);    /* soft spring */
  --snappy:      cubic-bezier(0.2, 0, 0, 1);          /* Kowalski snappy — for modal/drawer slides */
  --reveal:      cubic-bezier(0.77, 0, 0.175, 1);     /* clip-path reveal */

  /* Timing scale — Kowalski */
  --dur-micro:  150ms;   /* instant feedback */
  --dur-fast:   250ms;   /* micro-interactions */
  --dur-base:   350ms;   /* standard transitions */
  --dur-slow:   550ms;   /* entrances, reveals */
  --dur-crawl:  800ms;   /* hero / page-level */

  /* Deprecated — keep for backward compat */
  --transition: color var(--dur-fast) var(--ease),
                background-color var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease),
                box-shadow var(--dur-base) var(--ease),
                opacity var(--dur-base) var(--ease),
                transform var(--dur-base) var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section-white, .section-gray { padding: 100px 0; }
.section-white { background: var(--white); }
.section-gray { background: var(--gray-light); }

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p  { margin: 0 0 16px; color: var(--gray-dark); }
ul { padding-left: 20px; margin: 0 0 16px; }
ul li { color: var(--gray-dark); margin-bottom: 8px; line-height: 1.7; }
.small    { font-size: 0.875rem; }
.uppercase { text-transform: uppercase; }

/* ── Accent elements ─────────────────────────────────── */
.yellow-highlight {
  background: var(--yellow);
  display: inline-block;
  padding: 2px 10px 4px;
  font-weight: 800;
  line-height: 1.2;
  border-radius: 4px;
}
.yellow-underline {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
  border-radius: 2px;
  margin: 16px 0 40px;
}

/* ── Buttons — futuristic angular ────────────────────── */
.btn-yellow, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease, background 0.3s ease;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  border-radius: 0;
}
/* Light sweep on hover */
.btn-yellow::before, .btn-outline::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-yellow:hover::before, .btn-outline:hover::before {
  animation: neonSweep 0.55s ease forwards;
}
.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 0 0 rgba(251,226,22,0);
}
.btn-yellow:hover {
  background: var(--yellow);
  box-shadow: var(--shadow-yellow);
  transform: translateY(-3px) scale(1.02);
}
.btn-yellow:active { transform: translateY(0) scale(0.98); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 0 20px rgba(13,15,26,0.25);
  transform: translateY(-3px) scale(1.02);
}
/* White section outline buttons */
.dark-banner .btn-outline, footer .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.dark-banner .btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ── Grid ────────────────────────────────────────────── */
.grid   { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ── Cards — futuristic HUD panel ────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 36px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  position: relative;
  overflow: visible;
}
/* HUD corner brackets */
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border-style: solid;
  border-color: var(--yellow);
  opacity: 0;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.card::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: 2px 0 0 0;
}
.card::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 2px 0;
}
.card:hover::before, .card:hover::after {
  width: 20px; height: 20px;
  opacity: 1;
}
.card > * { position: relative; z-index: 1; }
.card:hover {
  border-color: rgba(251,226,22,0.4);
  box-shadow:
    0 0 0 1px rgba(251,226,22,0.15),
    0 0 30px rgba(251,226,22,0.1),
    0 16px 40px rgba(0,0,0,0.1);
  /* transform defined in CSS-only block below */
}
.card-sm {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 24px;
  transition: var(--transition);
}
.card-sm:hover {
  border-color: rgba(251,226,22,0.35);
  box-shadow: 0 0 16px rgba(251,226,22,0.12), 0 8px 24px rgba(0,0,0,0.08);
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  color: #fff;
  overflow: hidden;
}
.hero-bg, .page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.2);
  transform: scale(1.04);
  transition: transform 10s ease;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,15,26,0.9) 0%, rgba(13,15,26,0.65) 60%, rgba(251,226,22,0.06) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero h1 {
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.3),
    0 4px 0 rgba(0,0,0,0.2),
    0 8px 20px rgba(0,0,0,0.4);
}
.hero p { color: rgba(255,255,255,0.88); }

/* ── Topbar ──────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 0;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--yellow);
}
.topbar .container-wide { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Header ──────────────────────────────────────────── */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 24px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.logo-wrap { display: flex; align-items: center; text-decoration: none; }
.site-logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--spring);
}
.logo-wrap:hover .site-logo-img {
  opacity: 0.85;
  transform: scale(1.03);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 8px;
  text-transform: uppercase;
  color: var(--gray-dark);
  position: relative;
  background: transparent;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
/* Krehel: sliding underline reveal instead of instant bg pop */
.nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--yellow);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--spring);
}
.nav a:hover::after { transform: scaleX(1); }
.nav a.active {
  background: var(--yellow);
  color: var(--navy);
}
.nav a.active::after { display: none; }
.nav a:hover { color: var(--navy); background: rgba(251,226,22,0.12); }
.mobile-toggle { display: none; background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--navy); }
.mobile-panel { display: none; padding: 0 0 24px; }
.mobile-panel a { display: block; padding: 14px 0; font-weight: 700; color: var(--gray-dark); border-bottom: 1px solid var(--gray-mid); transition: var(--transition); }
.mobile-panel a.active { color: var(--navy); padding-left: 12px; border-left: 3px solid var(--yellow); }
.search-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-dark);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.search-link:hover { background: var(--gray-light); color: var(--navy); }

/* ── Breadcrumb ──────────────────────────────────────── */
.breadcrumb { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 24px; color: var(--gray-dark); }
.breadcrumb a { color: var(--gray-dark); }
.breadcrumb a:hover { color: var(--navy); }
.hero .breadcrumb, .dark-banner .breadcrumb { color: rgba(255,255,255,0.55); }

/* ── Hero search ─────────────────────────────────────── */
.hero-search-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: 860px; margin-top: 48px; }
.hero-card {
  background: rgba(13,15,26,0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(251,226,22,0.2);
  border-top: 1px solid rgba(251,226,22,0.4);
  padding: 28px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(251,226,22,0.1);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  position: relative;
  overflow: hidden;
}
.hero-card:hover {
  border-color: rgba(251,226,22,0.5);
  box-shadow: var(--shadow-yellow), 0 28px 50px rgba(0,0,0,0.4);
  /* transform defined in CSS-only block below */
}
.hero-card h3 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 0.02em; }

/* ── Form ────────────────────────────────────────────── */
.field-row { display: flex; gap: 10px; }
/* Default: light inputs for all sections */
input, select, textarea {
  width: 100%;
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  padding: 12px 18px;
  font: inherit;
  color: var(--navy);
  background: var(--white);
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(251,226,22,0.2);
}
input::placeholder, textarea::placeholder { color: var(--gray-dark); }
/* Override: white glassy inputs only inside hero */
.hero input, .hero select, .hero textarea {
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50px;
  color: #fff;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero input::placeholder { color: rgba(255,255,255,0.6); }
.hero select option { color: var(--navy); background: #fff; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.form-grid .full { grid-column: 1 / -1; }

/* ── Program cards — futuristic ──────────────────────── */
.program-card {
  position: relative;
  height: 420px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s ease;
}
/* Neon border overlay that appears on hover */
.program-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0,229,255,0);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
  z-index: 3;
}
.program-card:hover {
  /* transform defined in CSS-only block below */
  box-shadow: var(--shadow-cyan), 0 24px 50px rgba(0,0,0,0.4);
}
.program-card:hover::after {
  border-color: rgba(0,229,255,0.5);
  box-shadow: inset 0 0 30px rgba(0,229,255,0.08);
}
.program-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.5);
  transform: scale(1.06);
  transition: 0.65s var(--ease);
}
.program-card:hover .bg { filter: grayscale(0); transform: scale(1); }
.program-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,15,26,0.95) 0%, rgba(13,15,26,0.4) 55%, transparent 100%);
}
.program-card .content { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; color: #fff; }
.program-card p { color: rgba(255,255,255,0.78); font-size: 14px; }

/* ── Pills ───────────────────────────────────────────── */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.pill {
  border: 1.5px solid var(--yellow);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: rgba(251,226,22,0.08);
  transition: var(--transition);
}
.pill:hover { background: var(--yellow); }

/* ── Stats — holographic futuristic ──────────────────── */
.stat-box {
  text-align: center;
  background: linear-gradient(145deg, #0f1220, #0D0F1A);
  padding: 40px 24px;
  border-radius: 4px;
  border: 1px solid rgba(0,229,255,0.1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}
/* Holographic top edge */
.stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}
/* Cyber scan line */
.stat-box::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.4), transparent);
  top: -2px;
  opacity: 0;
  pointer-events: none;
}
.stat-box:hover {
  border-color: rgba(0,229,255,0.4);
  box-shadow: var(--shadow-cyan), 0 24px 48px rgba(0,0,0,0.5);
  /* transform defined in CSS-only block below */
}
.stat-box:hover::after {
  animation: cyberScan 1.2s linear 1; /* Jhey: fire once, not forever */
  opacity: 1;
}
.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  position: relative;
  /* Holographic gradient text */
  background: linear-gradient(135deg, var(--yellow) 0%, #fff8a0 40%, var(--cyan) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(251,226,22,0.5));
}
.stat-box:hover .stat-value {
  animation: holoShift 2s ease infinite;
}
.stat-box .uppercase { font-weight: 700; color: rgba(255,255,255,0.55); font-size: 11px; letter-spacing: 0.12em; position: relative; }

/* ── News ────────────────────────────────────────────── */
.news-item {
  padding: 0 0 28px 16px;
  border-bottom: 1px solid var(--gray-mid);
  border-left: 3px solid transparent;
  transition: border-color 0.3s var(--ease), padding-left 0.3s var(--ease), transform 0.3s var(--ease);
}
.news-item:hover {
  border-left-color: var(--yellow);
  padding-left: 24px;
  transform: translateX(4px);
}
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.badge {
  background: var(--yellow);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ── Dark banner ─────────────────────────────────────── */
.dark-banner { position: relative; padding: 120px 0; background: var(--navy); }
.dark-banner .page-hero-bg { filter: grayscale(0.5); opacity: 0.25; }
.dark-banner .hero-overlay { background: linear-gradient(135deg, rgba(13,15,26,0.97) 0%, rgba(13,15,26,0.88) 100%); }
.dark-banner .grid { position: relative; z-index: 1; }

/* ── Quote cards — holographic glass ────────────────── */
.quote-card {
  background: rgba(14,17,32,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,229,255,0.12);
  border-top: 1px solid rgba(0,229,255,0.3);
  padding: 36px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(0,229,255,0.1);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
  position: relative;
  overflow: hidden;
}
/* Animated scan line on hover */
.quote-card::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.6), transparent);
  top: -2px;
  opacity: 0;
  pointer-events: none;
}
.quote-card:hover {
  background: rgba(14,17,32,0.85);
  border-color: rgba(0,229,255,0.4);
  border-top-color: rgba(0,229,255,0.7);
  box-shadow: var(--shadow-cyan), 0 28px 56px rgba(0,0,0,0.5);
  /* transform defined in CSS-only block below */
}
.quote-card:hover::before {
  animation: cyberScan 1s linear 1; /* Jhey: fire once, not forever */
  opacity: 1;
}
.quote-card h3 { color: #fff; }
.quote-card p  { color: rgba(255,255,255,0.68); }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-q {
  padding: 22px 28px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--gray-dark); flex-shrink: 0; }
.faq-a { color: var(--gray-dark); font-size: 15px; } /* height controlled by max-height below */
.faq-item.open { border-color: var(--yellow); border-left: 4px solid var(--yellow); }
.faq-item.open .faq-q::after { content: '−'; color: var(--navy); }

/* ── Footer ──────────────────────────────────────────── */
footer.site-footer { background: var(--navy); color: #fff; padding: 80px 0 32px; border-top: 3px solid var(--yellow); }
footer h3 { font-size: 14px; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
footer p, footer a, footer li { color: rgba(255,255,255,0.6); font-size: 14px; }
footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 48px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; margin-top: 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; }
.social {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}
.social:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }

/* ── Misc ────────────────────────────────────────────── */
.alert {
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-mid);
  border-left: 4px solid var(--yellow);
  background: rgba(251,226,22,0.04);
  margin-bottom: 24px;
  font-weight: 600;
}
.table-wrap { overflow: auto; border: 1px solid var(--gray-mid); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 760px; }
th, td { padding: 18px 20px; border-right: 1px solid var(--gray-mid); border-bottom: 1px solid var(--gray-mid); text-align: left; }
th:last-child, td:last-child { border-right: 0; }
thead th { background: var(--navy); color: var(--yellow); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
tbody tr:hover { background: var(--gray-light); }
.map-embed { width: 100%; height: 400px; border: 0; border-radius: var(--radius); filter: grayscale(0.4); }
.info-list { display: grid; gap: 20px; }
.info-line { display: flex; gap: 16px; align-items: flex-start; font-weight: 600; }
.center  { text-align: center; }
.mt-24   { margin-top: 24px; }
.mt-32   { margin-top: 32px; }
.mt-48   { margin-top: 48px; }
.mb-0    { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════
   ANIMATION SYSTEM
   ══════════════════════════════════════════════════════ */

/* ── Keyframes ───────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(1.5deg); }
  66%       { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50%       { transform: translateY(-28px) translateX(12px); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(251,226,22,0.35); }
  50%       { box-shadow: 0 4px 40px rgba(251,226,22,0.7), 0 0 80px rgba(251,226,22,0.2); }
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes gradientShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
@keyframes revealClip {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.4; }
}
@keyframes orb1 {
  0%, 100% { transform: translate(0,0)    scale(1); }
  33%       { transform: translate(40px,-30px) scale(1.08); }
  66%       { transform: translate(-20px,20px) scale(0.95); }
}
@keyframes orb2 {
  0%, 100% { transform: translate(0,0)    scale(1); }
  33%       { transform: translate(-50px,20px) scale(0.92); }
  66%       { transform: translate(30px,-40px) scale(1.1); }
}
@keyframes orb3 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(20px,30px) scale(1.05); }
}
@keyframes progressBar {
  from { width: 0; }
}
/* ── Futuristic keyframes ────────────────────────────── */
@keyframes neonSweep {
  0%   { left: -80%; }
  100% { left: 140%; }
}
@keyframes holoShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes cyberScan {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes neonPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
@keyframes cornerGrow {
  from { width: 0; height: 0; opacity: 0; }
  to   { width: 16px; height: 16px; opacity: 1; }
}
@keyframes glitch {
  0%,100% { transform: translate(0); clip-path: none; }
  20%      { transform: translate(-2px, 1px); clip-path: inset(20% 0 60% 0); }
  40%      { transform: translate(2px, -1px); clip-path: inset(60% 0 10% 0); }
  60%      { transform: translate(-1px, 2px); clip-path: inset(40% 0 40% 0); }
  80%      { transform: translate(1px, -2px); clip-path: none; }
}
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

/* ── Scroll progress bar ─────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--yellow);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(251,226,22,0.6);
}

/* ── Header entrance ─────────────────────────────────── */
header.site-header { animation: navSlideDown 0.5s var(--ease) forwards; }

/* ── Hero animations ─────────────────────────────────── */
.hero-content { animation: fadeInUp 0.9s var(--ease) 0.1s both; }

/* Animated gradient background on hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(251,226,22,0.04) 0%,
    transparent 40%,
    rgba(59,130,246,0.04) 100%);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  pointer-events: none;
  z-index: 0;
}

/* Hero floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 400px; height: 400px;
  background: rgba(251,226,22,0.12);
  top: -10%; right: 5%;
  animation: orb1 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(59,130,246,0.08);
  bottom: 5%; right: 25%;
  animation: orb2 16s ease-in-out infinite;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: rgba(251,226,22,0.07);
  bottom: 20%; left: 10%;
  animation: orb3 10s ease-in-out infinite;
}

/* Animated badge in hero */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251,226,22,0.15);
  border: 1px solid rgba(251,226,22,0.35);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  animation: badgePulse 3s ease-in-out 3; /* Kowalski: stop after 3 cycles */
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  position: relative;
  flex-shrink: 0;
}
.hero-badge-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulseRing 1.8s ease-out 3; /* Kowalski: stop after 3 cycles */
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

/* ── Section heading reveal — Krehel clip-path ───────── */
.reveal-heading {
  clip-path: inset(0 102% 0 0);
  transition: clip-path var(--dur-crawl) var(--reveal);
  will-change: clip-path;
}
.reveal-heading.visible {
  clip-path: inset(0 0% 0 0);
}

/* ── Yellow underline animated grow ─────────────────── */
.yellow-underline {
  transform-origin: left;
  transform: scaleX(0);
}
.yellow-underline.visible { transform: scaleX(1); }

/* ── Stagger delay classes ───────────────────────────── */
.delay-1 { transition-delay: 0.08s !important; }
.delay-2 { transition-delay: 0.16s !important; }
.delay-3 { transition-delay: 0.24s !important; }
.delay-4 { transition-delay: 0.32s !important; }
.delay-5 { transition-delay: 0.40s !important; }
.delay-6 { transition-delay: 0.48s !important; }

/* ── Animate-on-scroll — spring physics (Krehel) ─────── */
.anim-up    { opacity: 0; transform: translateY(28px); will-change: opacity, transform; }
.anim-left  { opacity: 0; transform: translateX(-28px); will-change: opacity, transform; }
.anim-right { opacity: 0; transform: translateX(28px); will-change: opacity, transform; }
.anim-scale { opacity: 0; transform: scale(0.92); will-change: opacity, transform; }
.anim-up, .anim-left, .anim-right, .anim-scale {
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--spring-soft);
}
.anim-up.visible, .anim-left.visible,
.anim-right.visible, .anim-scale.visible {
  opacity: 1;
  transform: none;
}

/* Keep old class working */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--spring-soft);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ── Button: no continuous animation, only on hover ─── */
.btn-yellow:hover {
  box-shadow:
    0 2px 0 #c4ae00,
    0 4px 0 rgba(0,0,0,0.15),
    0 12px 28px rgba(251,226,22,0.55),
    0 0 40px rgba(251,226,22,0.2);
}

/* ── Yellow-highlight: shimmer only on hover ────────── */
.yellow-highlight {
  position: relative;
  overflow: hidden;
}
.yellow-highlight::after {
  content: '';
  position: absolute;
  top: 0; left: -80px;
  width: 60px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  opacity: 0;
  transition: none;
}
.yellow-highlight:hover::after {
  animation: shimmer 0.5s ease forwards;
}

/* ── Card 3D tilt (applied via JS) ──────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* stat-box hover handled above in futuristic block */

/* ── Social icons spin on hover ──────────────────────── */
.social { transition: var(--transition), transform 0.35s var(--ease); }
.social:hover { transform: rotate(10deg) scale(1.15); }

/* ── Program card content slide up on hover ─────────── */
.program-card .content {
  transition: transform 0.45s var(--ease);
  transform: translateY(8px);
}
.program-card:hover .content { transform: translateY(0); }

/* ── FAQ smooth height ───────────────────────────────── */
.faq-a {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  padding: 0 28px;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 28px 22px;
}

/* ── Section separator ───────────────────────────────── */
.section-separator {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0.4;
  margin: 0;
  border: none;
}

/* ── Pill hover lift ─────────────────────────────────── */
.pill { transition: var(--transition), transform 0.25s var(--ease); }
.pill:hover { transform: translateY(-2px) scale(1.04); }

/* quote-card styles handled in futuristic block above */

/* ── Logo: Jhey glitch on hover ──────────────────────── */
/* logo hover handled above via .site-logo-img */

/* ── Hero bg: will-change for parallax ───────────────── */
.hero-bg, .page-hero-bg { will-change: transform; }

/* ── Orbs: will-change for continuous animation ──────── */
.hero-orb { will-change: transform; }

/* ── Program card bg: will-change ────────────────────── */
.program-card .bg { will-change: transform, filter; }

/* ── Buttons: spring easing ──────────────────────────── */
.btn-yellow, .btn-outline {
  will-change: transform, box-shadow;
  transition: transform var(--dur-fast) var(--spring),
              box-shadow var(--dur-base) var(--ease),
              background-color var(--dur-fast) var(--ease);
}

/* ── Yellow underline: spring grow ───────────────────── */
.yellow-underline {
  transition: transform var(--dur-slow) var(--spring-soft) 0.15s;
}

/* ── Card transitions: specific properties only ──────── */
.card {
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--spring-soft);
}
.stat-box {
  transition: transform var(--dur-base) var(--spring),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.quote-card {
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--spring-soft),
              background-color var(--dur-fast) var(--ease);
}
.program-card {
  transition: transform var(--dur-base) var(--spring-soft),
              box-shadow var(--dur-base) var(--ease);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-search-grid, .grid-2, .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav, .search-link { display: none; }
  .mobile-toggle { display: block; }
  .mobile-panel.open { display: block; }
  .hero { padding: 100px 0 80px; }
  .section-white, .section-gray { padding: 72px 0; }
  .container, .container-wide { padding: 0 18px; }
  .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .header-inner { padding: 14px 0; }
  .logo-text { display: none; }
}

/* ══════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION — Kowalski compliance
   All motion disabled for users who opt out.
   ══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  /* Kill all keyframe animations */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Keep layout transitions but instant */
  .faq-a { transition: none !important; }

  /* Freeze parallax */
  .hero-bg, .page-hero-bg { transform: none !important; }

  /* No floating orbs */
  .hero-orb { display: none; }

  /* No scroll indicator bounce */
  .hero-scroll { display: none; }

  /* Disable tilt (JS will still run but CSS override wins) */
  .card, .card-sm, .stat-box, .quote-card,
  .hero-card, .program-card {
    transform: none !important;
    transition: none !important;
  }

  /* Reveal all hidden elements immediately */
  .anim-up, .anim-left, .anim-right, .anim-scale,
  .animate-on-scroll, .reveal-heading {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }

  /* Disable progress bar animation */
  #scroll-progress { display: none; }
}

/* ══════════════════════════════════════════════════════
   CSS-ONLY CONCERNS (moved from JS per simplify audit)
   ══════════════════════════════════════════════════════ */

/* navCta: CSS media query replaces JS window.innerWidth check */
#navCta { display: none; }
@media (min-width: 769px) { #navCta { display: inline-flex !important; } }

/* news-meta date: CSS replaces JS inline style injection */
.news-meta span:first-child { color: var(--gray-dark); font-size: 13px; }

/* Button press: CSS class toggled by delegated pointerdown/up */
.btn-pressed {
  transform: scale(0.95) !important;
  box-shadow: none !important;
  transition: transform 80ms ease, box-shadow 80ms ease !important;
}

/* Cards: position + overflow set in CSS, not JS */
.card, .card-sm, .quote-card, .hero-card, .stat-box {
  position: relative;
  overflow: hidden;
}

/* Remove card tilt — pure CSS hover only, no JS movement */
.card:hover     { transform: translateY(-4px); }
.stat-box:hover { transform: translateY(-6px) scale(1.02); }
.quote-card:hover { transform: translateY(-6px); }
.hero-card:hover  { transform: translateY(-4px); }
.program-card:hover { transform: translateY(-8px) scale(1.01); }

/* ── View Transitions (client-side router) ───────────── */
::view-transition-old(root) {
  animation: 220ms ease both vtFadeOut;
}
::view-transition-new(root) {
  animation: 280ms ease both vtFadeIn;
}
@keyframes vtFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
@keyframes vtFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
