/* =========================================================
   NBDC — National Business Development Center
   Global stylesheet
   ========================================================= */

:root {
  --navy-950: #040B19;
  --navy-900: #071630;
  --navy-800: #0B2147;
  --navy-700: #12306A;
  --blue-600: #1D4ED8;
  --blue-500: #2563EB;
  --blue-400: #4F86F7;
  --blue-200: #BFD4FF;
  --blue-50:  #EEF4FF;
  --ink: #0A0A0B;
  --ink-soft: #1C1F26;
  --white: #FFFFFF;
  --gray-50: #F7F8FB;
  --gray-100: #EEF1F6;
  --gray-200: #E1E6EE;
  --gray-400: #9AA3B2;
  --gray-500: #6B7485;
  --gray-700: #3A4150;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(7, 22, 48, .06);
  --shadow: 0 12px 32px -8px rgba(7, 22, 48, .16);
  --shadow-lg: 0 30px 60px -20px rgba(7, 22, 48, .35);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --container: 1200px;
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; overflow-x: clip; }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--navy-900); color: rgba(255,255,255,.72); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--black { background: var(--ink); color: rgba(255,255,255,.7); }
.section--black h2, .section--black h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
}
.section--dark .eyebrow, .section--black .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--blue-400); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.section-head p { font-size: 1.08rem; color: var(--gray-500); }
.section--dark .section-head p, .section--black .section-head p { color: rgba(255,255,255,.62); }

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.split-head .section-head { margin-bottom: 0; }

.text-blue { color: var(--blue-500); }
.italic { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--blue-500); color: var(--white); box-shadow: 0 10px 24px -10px rgba(37,99,235,.7); }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(37,99,235,.8); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); background: rgba(255,255,255,.04); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn--outline { color: var(--ink); border-color: var(--gray-200); background: var(--white); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--blue-50); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--blue-500);
  font-size: .95rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.nav::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255,255,255,.12);
  transition: opacity .4s;
}
/* Full-width bar: logo far left, links centred, CTA far right */
.nav .container {
  height: 100%;
  max-width: none;
  padding: 0 clamp(24px, 3vw, 48px);
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 24px;
}
.nav .logo { justify-self: start; }

.logo { display: flex; align-items: center; gap: 14px; color: var(--white); transition: color .4s; }
.logo-mark {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 11px;
  box-shadow: 0 10px 24px -10px rgba(4,11,25,.8), 0 0 0 1px rgba(79,134,247,.25);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo:hover .logo-mark { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(37,99,235,.6), 0 0 0 1px rgba(79,134,247,.5); }
.logo-text { display: flex; align-items: center; gap: 14px; }
.logo-text strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: .12em; line-height: 1; }
.logo-text span {
  font-size: .56rem; font-weight: 600; letter-spacing: .22em; line-height: 1.55;
  text-transform: uppercase; opacity: .72;
  padding-left: 14px; border-left: 1px solid currentColor;
}
@media (max-width: 400px), (min-width: 961px) and (max-width: 1180px) { .logo-text span { display: none; } }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  display: block;
  padding: 10px 16px;
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  transition: color .3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--blue-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-menu { display: contents; }
.nav-links { justify-self: center; }
.nav-cta { justify-self: end; }
.nav-cta { padding: 12px 22px; font-size: .88rem; }

.nav.scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(14px); box-shadow: 0 6px 24px -12px rgba(7,22,48,.25); height: 72px; }
.nav.scrolled::after { opacity: 0; }
.nav.scrolled .logo { color: var(--ink); }
.nav.scrolled .nav-links a { color: var(--gray-700); }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links a.active { color: var(--ink); }
.nav.scrolled .nav-links a::after { background: var(--blue-500); }
.nav.scrolled .nav-toggle span { background: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease), background .3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span { background: var(--white) !important; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,.8);
  overflow: hidden;
  background: var(--navy-950);
  padding: calc(var(--nav-h) + 40px) 0 180px;
}
.hero-bg {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  animation: kenburns 24s ease-in-out infinite alternate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4,11,25,.94) 0%, rgba(7,22,48,.82) 42%, rgba(11,33,71,.45) 100%),
    linear-gradient(0deg, rgba(4,11,25,.9) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero h1 { color: var(--white); margin-bottom: 28px; }
.hero h1 em { font-style: italic; color: var(--blue-400); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 600px; margin-bottom: 40px; color: rgba(255,255,255,.72); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-anim > * { opacity: 0; transform: translateY(30px); animation: heroIn 1.1s var(--ease) forwards; }
.hero-anim > *:nth-child(1) { animation-delay: .15s; }
.hero-anim > *:nth-child(2) { animation-delay: .3s; }
.hero-anim > *:nth-child(3) { animation-delay: .45s; }
.hero-anim > *:nth-child(4) { animation-delay: .6s; }

.hero-stats {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(4,11,25,.45);
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeIn 1.2s .9s var(--ease) forwards;
}
.hero-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stat { padding: 30px 24px; border-left: 1px solid rgba(255,255,255,.1); }
.hero-stat:first-child { border-left: 0; padding-left: 0; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.4rem); color: var(--white); font-weight: 600; line-height: 1.1; }
.hero-stat span { font-size: .85rem; color: rgba(255,255,255,.6); }

.scroll-cue {
  position: absolute;
  right: 40px;
  bottom: 150px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 60px;
  background: linear-gradient(var(--blue-400), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: top;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 110px) 0 110px;
  color: rgba(255,255,255,.75);
  overflow: hidden;
  background: var(--navy-950);
}
.page-hero .hero-bg { animation-duration: 30s; }
.page-hero .hero-overlay { background: linear-gradient(100deg, rgba(4,11,25,.95) 0%, rgba(7,22,48,.85) 50%, rgba(11,33,71,.55) 100%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 4rem); max-width: 820px; }
.page-hero h1 em { color: var(--blue-400); }
.page-hero p { max-width: 620px; font-size: 1.12rem; color: rgba(255,255,255,.7); }
.breadcrumb { display: flex; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Marquee ---------- */
.marquee { padding: 34px 0; border-bottom: 1px solid var(--gray-100); overflow: hidden; background: var(--white); }
.marquee-label { text-align: center; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 20px; }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--gray-400); white-space: nowrap; transition: color .3s; }
.marquee-item:hover { color: var(--navy-800); }
.marquee-item svg { width: 24px; height: 24px; }
.marquee-mask { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }

/* ---------- Split / media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--reverse .split-media { order: 2; }

.media-stack { position: relative; isolation: isolate; }
.media-stack .img-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--navy-800); }
.media-stack .img-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media-stack:hover .img-main img { transform: scale(1.04); }
.media-badge {
  position: absolute;
  right: -28px; bottom: 48px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 16px;
  animation: floatY 6s ease-in-out infinite;
}
.media-badge .badge-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--blue-50); color: var(--blue-500); display: grid; place-items: center; }
.media-badge .badge-icon svg { width: 24px; height: 24px; }
.media-badge strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); line-height: 1; }
.media-badge span { font-size: .82rem; color: var(--gray-500); }
.media-accent {
  position: absolute;
  left: -24px; top: -24px;
  width: 140px; height: 140px;
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(45deg, var(--blue-200) 0 2px, transparent 2px 12px);
  z-index: -1;
}

.check-list { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .tick { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-50); color: var(--blue-500); display: grid; place-items: center; margin-top: 1px; }
.check-list .tick svg { width: 14px; height: 14px; }
.check-list strong { color: var(--ink); display: block; }

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

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: -1;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card--invert:hover::before { opacity: 1; }
.card--invert:hover h3 { color: var(--white); }
.card--invert:hover p { color: rgba(255,255,255,.68); }
.card--invert:hover .card-icon { background: var(--blue-500); color: var(--white); }
.card--invert:hover .link-arrow { color: var(--blue-200); }
.card--invert:hover .card-num { color: rgba(255,255,255,.08); }
.card h3, .card p, .card .link-arrow { transition: color .5s var(--ease); }
.card p { color: var(--gray-500); }

.card-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--blue-500);
  display: grid; place-items: center;
  margin-bottom: 28px;
  transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.05); }
.card-icon svg { width: 28px; height: 28px; }
.card-num { position: absolute; top: 18px; right: 26px; font-family: var(--font-display); font-size: 4.5rem; font-weight: 700; color: var(--gray-100); line-height: 1; transition: color .5s; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: step; }
.steps::before {
  content: "";
  position: absolute;
  top: 32px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,134,247,.5), transparent);
}
.step { text-align: center; position: relative; }
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 26px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy-800);
  border: 1px solid rgba(79,134,247,.4);
  position: relative;
  transition: background .4s, transform .4s var(--ease);
}
.step-num::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(79,134,247,.25);
  animation: pulseRing 3s ease-out infinite;
}
.step:hover .step-num { background: var(--blue-500); transform: scale(1.08); }
.step h3 { font-size: 1.2rem; }
.step p { font-size: .95rem; }

/* ---------- Carousel ---------- */
.carousel { position: relative; --per-view: 4; --gap: 24px; }
.carousel.carousel--wide { --per-view: 2; }
.carousel-viewport { overflow: hidden; margin: -20px; padding: 20px; clip-path: inset(0 20px); }
.carousel-track {
  display: flex;
  gap: var(--gap);
  transition: transform .8s var(--ease);
  will-change: transform;
  touch-action: pan-y;
}
.carousel-track.dragging { transition: none; }
.carousel-slide { flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); min-width: 0; }
.carousel-controls { display: flex; align-items: center; gap: 12px; }
.carousel-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--ink);
  display: grid; place-items: center;
  transition: all .35s var(--ease);
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.carousel-btn:disabled { opacity: .35; pointer-events: none; }
.section--dark .carousel-btn, .section--black .carousel-btn { background: transparent; border-color: rgba(255,255,255,.2); color: var(--white); }
.section--dark .carousel-btn:hover, .section--black .carousel-btn:hover { background: var(--blue-500); border-color: var(--blue-500); }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--gray-200); transition: width .5s var(--ease), background .4s; }
.carousel-dot.active { width: 34px; background: var(--blue-500); }
.section--dark .carousel-dot, .section--black .carousel-dot { background: rgba(255,255,255,.2); }
.section--dark .carousel-dot.active, .section--black .carousel-dot.active { background: var(--blue-400); }

.carousel-progress { height: 2px; background: var(--gray-100); margin-top: 40px; border-radius: 2px; overflow: hidden; }
.carousel-progress span { display: block; height: 100%; width: 0; background: var(--blue-500); transition: width .8s var(--ease); }

/* Staff cards */
.staff-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-800); aspect-ratio: 4 / 5; box-shadow: var(--shadow); user-select: none; }
.staff-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 1s var(--ease); filter: grayscale(25%); pointer-events: none; }
.staff-card:hover img { transform: scale(1.07); filter: grayscale(0); }
.staff-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4,11,25,.95) 0%, rgba(4,11,25,.3) 40%, transparent 65%);
  transition: opacity .5s;
}
.staff-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; z-index: 2; transition: transform .6s var(--ease); }
.staff-info h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 2px; }
.staff-role { font-size: .82rem; color: var(--blue-200); letter-spacing: .04em; }
.staff-bio { font-size: .88rem; color: rgba(255,255,255,.7); max-height: 0; opacity: 0; overflow: hidden; margin: 0; transition: max-height .6s var(--ease), opacity .5s, margin .6s var(--ease); }
.staff-card:hover .staff-bio { max-height: 120px; opacity: 1; margin-top: 12px; }
.staff-social { display: flex; gap: 8px; margin-top: 14px; }
.staff-social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--white); backdrop-filter: blur(6px); transition: background .3s, transform .3s; }
.staff-social a:hover { background: var(--blue-500); transform: translateY(-3px); }
.staff-social svg { width: 15px; height: 15px; }

/* Testimonials */
.testimonial {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  height: 100%;
  display: flex; flex-direction: column;
  transition: background .4s, border-color .4s;
}
.testimonial:hover { background: rgba(255,255,255,.07); border-color: rgba(79,134,247,.4); }
.testimonial-stars { display: flex; gap: 4px; color: var(--blue-400); margin-bottom: 22px; }
.testimonial-stars svg { width: 18px; height: 18px; }
.testimonial blockquote { margin: 0 0 32px; font-family: var(--font-display); font-size: 1.28rem; line-height: 1.55; color: var(--white); flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.2); background: var(--navy-700); }
.testimonial-author strong { color: var(--white); display: block; font-size: .98rem; }
.testimonial-author span { font-size: .84rem; color: rgba(255,255,255,.55); }
.quote-mark { font-family: var(--font-display); font-size: 5rem; line-height: .6; color: var(--blue-500); height: 34px; }

/* Gallery slides */
.gallery-slide { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 11; position: relative; background: var(--navy-800); }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1s var(--ease); }
.gallery-slide:hover img { transform: scale(1.05); }
.gallery-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 22px; background: linear-gradient(0deg, rgba(4,11,25,.9), transparent); color: var(--white); font-weight: 500; }
.gallery-slide figcaption span { display: block; font-size: .8rem; color: var(--blue-200); font-weight: 400; }

/* ---------- Events ---------- */
.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.event-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.event-card:hover .event-media img { transform: scale(1.06); }
.event-date {
  position: absolute; top: 18px; left: 18px;
  background: var(--white);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  line-height: 1;
  box-shadow: var(--shadow);
}
.event-date strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
.event-date span { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-500); }
.event-tag { position: absolute; top: 18px; right: 18px; background: rgba(4,11,25,.7); backdrop-filter: blur(6px); color: var(--white); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.event-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.event-body h3 { font-size: 1.3rem; }
.event-body p { color: var(--gray-500); font-size: .95rem; flex: 1; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--gray-500); margin-bottom: 14px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 15px; height: 15px; color: var(--blue-500); }
.event-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--gray-100); margin-top: 8px; }
.event-price { font-weight: 600; color: var(--ink); font-size: .92rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-btn { padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-700); font-weight: 500; font-size: .9rem; transition: all .3s var(--ease); }
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.event-card.is-hidden { display: none; }
.event-card.pop { animation: popIn .6s var(--ease); }

.featured-event {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
}
.featured-media { position: relative; min-height: 440px; background: var(--navy-800); }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, var(--navy-900)); }
.featured-body { padding: 56px 52px; color: rgba(255,255,255,.7); display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.5rem); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 34px; }
.countdown div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 16px 8px; text-align: center; }
.countdown strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--white); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 10px 32px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.5rem); color: var(--white); font-weight: 600; line-height: 1.1; margin-bottom: 8px; }
.stat span { color: rgba(255,255,255,.6); font-size: .95rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--gray-200); transform: translateX(-50%); }
.timeline-item { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: start; margin-bottom: 56px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--blue-500); border: 4px solid var(--white); box-shadow: 0 0 0 1px var(--blue-200), 0 0 0 8px rgba(37,99,235,.08); margin: 8px auto 0; position: relative; z-index: 1; }
.timeline-content { padding: 0 8px; }
.timeline-item:nth-child(odd) .timeline-content { grid-column: 1; text-align: right; }
.timeline-item:nth-child(odd) .timeline-dot { grid-column: 2; grid-row: 1; }
.timeline-item:nth-child(even) .timeline-dot { grid-column: 2; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; }
.timeline-year { font-family: var(--font-display); font-size: 2rem; color: var(--blue-500); font-weight: 600; line-height: 1; margin-bottom: 8px; }
.timeline-content h3 { font-size: 1.2rem; margin-bottom: 6px; }
.timeline-content p { color: var(--gray-500); font-size: .95rem; margin: 0; }

/* ---------- Program detail ---------- */
.program-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-100);
}
.program-row:last-child { border-bottom: 0; }
.program-row--flip .program-media { order: 2; }
.program-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); background: var(--navy-800); position: relative; }
.program-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.program-row:hover .program-media img { transform: scale(1.05); }
.program-label { position: absolute; top: 20px; left: 20px; background: var(--white); color: var(--ink); font-weight: 600; font-size: .78rem; letter-spacing: .06em; padding: 8px 14px; border-radius: 999px; text-transform: uppercase; }
.program-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gray-100); border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; margin: 26px 0 30px; }
.program-facts div { background: var(--white); padding: 16px 18px; }
.program-facts span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 4px; }
.program-facts strong { color: var(--ink); font-size: .95rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tag { font-size: .82rem; padding: 6px 14px; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); font-weight: 500; }

.program-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; position: sticky; top: 72px; z-index: 20; padding: 14px 0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); }
.program-tabs a { padding: 10px 20px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--gray-700); border: 1.5px solid var(--gray-200); transition: all .3s var(--ease); }
.program-tabs a:hover, .program-tabs a.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Register ---------- */
.reg-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .reg-layout { grid-template-columns: 1fr; } }
.reg-steps { display: grid; gap: 20px; }
.reg-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 26px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease), border-color .5s;
}
.reg-step:hover { box-shadow: var(--shadow); transform: translateX(6px); border-color: var(--blue-200); }
.reg-step-num { width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.reg-step h3 { margin-bottom: 6px; }
.reg-step p { color: var(--gray-500); margin: 0; }
.reg-step .time { display: inline-block; margin-top: 12px; font-size: .8rem; font-weight: 600; color: var(--blue-500); background: var(--blue-50); padding: 4px 12px; border-radius: 999px; }

.docs-card { background: var(--navy-900); color: rgba(255,255,255,.72); border-radius: var(--radius-lg); padding: 44px 40px; position: sticky; top: 100px; }
.docs-card h3 { color: var(--white); font-size: 1.6rem; }
.docs-card ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.docs-card li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.docs-card li svg { width: 20px; height: 20px; color: var(--blue-400); flex-shrink: 0; margin-top: 2px; }

.form-wrap h3 { color: var(--ink) !important; }
.form-wrap { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(32px, 5vw, 56px); border: 1px solid var(--gray-100); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit;
  font-size: .95rem;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-50);
  color: var(--ink);
  transition: border-color .3s, background .3s, box-shadow .3s;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--blue-500); background: var(--white); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.form-field.error input, .form-field.error select { border-color: #DC2626; }
.form-field .err { font-size: .78rem; color: #DC2626; display: none; }
.form-field.error .err { display: block; }
.field-label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field-label small { font-weight: 400; color: var(--gray-500); }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 10px;
  border: 1.5px solid var(--gray-200); background: var(--gray-50);
  font-size: .92rem; font-weight: 500; color: var(--gray-700);
  transition: border-color .3s, background .3s, color .3s, box-shadow .3s;
}
.choice span::before {
  content: ""; width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
  border: 1.5px solid var(--gray-400); background: var(--white) center / 12px no-repeat;
  transition: background-color .3s, border-color .3s;
}
.choice:hover span { border-color: var(--blue-400); }
.choice input:checked + span { border-color: var(--blue-500); background: var(--blue-50); color: var(--ink); }
.choice input:checked + span::before { background-color: var(--blue-500); border-color: var(--blue-500); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.form-field.conditional { display: none; }
.form-field.conditional.show { display: flex; animation: popIn .5s var(--ease); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--gray-500); }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue-500); flex-shrink: 0; }
.form-success { display: none; text-align: center; padding: 40px 0; }
.form-success.show { display: block; animation: popIn .7s var(--ease); }
.form-success .ok { width: 84px; height: 84px; border-radius: 50%; background: var(--blue-50); color: var(--blue-500); display: grid; place-items: center; margin: 0 auto 24px; }
.form-success .ok svg { width: 40px; height: 40px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawCheck .8s .3s ease forwards; }

/* ---------- Accordion ---------- */
.accordion { max-width: 860px; margin: 0 auto; }
.acc-item { border-bottom: 1px solid var(--gray-200); }
.acc-q { width: 100%; background: none; border: 0; text-align: left; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.acc-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--gray-200); position: relative; transition: background .3s, border-color .3s, transform .5s var(--ease); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .4s var(--ease), background .3s; }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.open .acc-icon { background: var(--blue-500); border-color: var(--blue-500); transform: rotate(180deg); }
.acc-item.open .acc-icon::before, .acc-item.open .acc-icon::after { background: var(--white); }
.acc-item.open .acc-icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc-a { overflow: hidden; height: 0; transition: height .5s var(--ease); }
.acc-a p { padding: 0 60px 26px 0; color: var(--gray-500); margin: 0; }

/* ---------- Values ---------- */
.value { padding: 36px 30px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); transition: background .4s, transform .5s var(--ease), border-color .4s; }
.value:hover { background: rgba(37,99,235,.12); border-color: rgba(79,134,247,.4); transform: translateY(-6px); }
.value .card-icon { background: rgba(79,134,247,.15); color: var(--blue-400); }
.value h3 { color: var(--white); font-size: 1.25rem; }
.value p { color: rgba(255,255,255,.6); font-size: .95rem; margin: 0; }

.mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.mission-card { padding: 48px 44px; border-radius: var(--radius-lg); background: var(--gray-50); position: relative; overflow: hidden; }
.mission-card.dark { background: var(--ink); color: rgba(255,255,255,.7); }
.mission-card.dark h3 { color: var(--white); }
.mission-card h3 { font-size: 1.8rem; }
.mission-card p { font-size: 1.08rem; margin: 0; }
.mission-card .big-q { position: absolute; right: 30px; bottom: -40px; font-family: var(--font-display); font-size: 12rem; line-height: 1; color: rgba(37,99,235,.08); pointer-events: none; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px);
  background: linear-gradient(120deg, var(--blue-600) 0%, var(--navy-800) 60%, var(--navy-950) 100%);
  color: rgba(255,255,255,.75);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -140px; top: -220px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.02);
  z-index: -1;
  animation: spinSlow 40s linear infinite;
}
.cta-band h2 { color: var(--white); max-width: 620px; margin-bottom: 12px; }
.cta-band p { max-width: 560px; margin: 0; font-size: 1.08rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Newsletter ---------- */
.newsletter { display: flex; gap: 10px; max-width: 480px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 6px; }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; color: var(--white); font: inherit; padding: 0 18px; font-size: .95rem; }
.newsletter input::placeholder { color: rgba(255,255,255,.45); }
.newsletter input:focus { outline: none; }
.newsletter .btn { padding: 12px 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 96px 0 0; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-500), transparent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 72px; }
.footer .logo { margin-bottom: 22px; }
.footer p { font-size: .95rem; max-width: 340px; }
.footer h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--white); margin-bottom: 22px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { font-size: .95rem; transition: color .3s, padding .3s; }
.footer ul a:hover { color: var(--white); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--blue-400); flex-shrink: 0; margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; color: var(--white); transition: background .3s, border-color .3s, transform .3s; }
.socials a:hover { background: var(--blue-500); border-color: var(--blue-500); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 28px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: .85rem; }
.footer-bottom a:hover { color: var(--white); }
.footer-watermark { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 16rem); font-weight: 700; line-height: .8; color: rgba(255,255,255,.03); text-align: center; letter-spacing: .05em; margin-bottom: -.12em; user-select: none; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 0;
  background: var(--blue-500);
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px rgba(37,99,235,.8);
  z-index: 90;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease), background .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue-600); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-zoom { opacity: 0; transform: scale(.92); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.in-view { opacity: 1 !important; transform: none !important; }

/* Page loader */
.loader { position: fixed; inset: 0; background: var(--navy-950); z-index: 999; display: grid; place-items: center; transition: opacity .7s var(--ease), visibility .7s; }
.loader.hide { opacity: 0; visibility: hidden; }
.loader-mark { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(79,134,247,.3), 0 20px 40px -12px rgba(37,99,235,.5); animation: loaderPulse 1.2s ease-in-out infinite; }
.loader-mark svg { width: 100%; height: 100%; display: block; }

/* ---------- Keyframes ---------- */
@keyframes kenburns { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes scrollLine { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes pulseRing { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.88); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .carousel { --per-view: 3; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .media-badge { right: 16px; }
}

@media (max-width: 960px) {
  :root { --nav-h: 72px; }
  .nav.scrolled { backdrop-filter: none; background: rgba(255,255,255,.98); }
  .nav .container { display: flex; justify-content: space-between; padding: 0 24px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    inset: 0;
    background: var(--navy-950);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
    z-index: 105;
  }
  .nav-open .nav-menu { opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-links a { font-family: var(--font-display); font-size: 2rem; padding: 8px 0; color: rgba(255,255,255,.8) !important; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s; }
  .nav-links a::after { left: 0; right: auto; width: 40px; bottom: 0; }
  .nav-open .nav-links a { opacity: 1; transform: none; }
  .nav-open .nav-links li:nth-child(1) a { transition-delay: .08s; }
  .nav-open .nav-links li:nth-child(2) a { transition-delay: .14s; }
  .nav-open .nav-links li:nth-child(3) a { transition-delay: .2s; }
  .nav-open .nav-links li:nth-child(4) a { transition-delay: .26s; }
  .nav-open .nav-links li:nth-child(5) a { transition-delay: .32s; }
  .nav-open .logo { color: var(--white) !important; position: relative; z-index: 110; }
  .nav-cta { align-self: flex-start; }

  .split, .program-row, .featured-event { grid-template-columns: 1fr; }
  .split--reverse .split-media, .program-row--flip .program-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before { display: none; }
  .stats-band { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-stats .container { grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 20px 16px; }
  .hero-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .hero { padding-bottom: 260px; }
  .scroll-cue { display: none; }
  .mission-grid { grid-template-columns: 1fr; }
  .featured-media { min-height: 280px; }
  .featured-media::after { background: linear-gradient(0deg, var(--navy-900), transparent 50%); }
  .featured-body { padding: 40px 32px; }
  .docs-card { position: static; }
  .timeline::before { left: 9px; }
  .timeline-item { grid-template-columns: 18px 1fr; gap: 24px; }
  .timeline-item .timeline-dot, .timeline-item:nth-child(odd) .timeline-dot { grid-column: 1; grid-row: 1; margin: 8px 0 0; }
  .timeline-item .timeline-content, .timeline-item:nth-child(odd) .timeline-content { grid-column: 2; grid-row: 1; text-align: left; }
  .program-tabs { top: 72px; }
}

@media (max-width: 720px) {
  .carousel { --per-view: 2; --gap: 16px; }
  .carousel.carousel--wide { --per-view: 1; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .media-badge { right: 12px; bottom: 20px; padding: 16px 18px; }
  .media-accent { display: none; }
  .reg-step { grid-template-columns: 1fr; gap: 16px; padding: 26px; }
  .reg-step-num { width: 56px; height: 56px; font-size: 1.3rem; }
  .program-facts { grid-template-columns: 1fr; }
  .acc-a p { padding-right: 0; }
  .to-top { right: 16px; bottom: 16px; }
  .countdown strong { font-size: 1.5rem; }
  .container { padding: 0 16px; }
  .staff-info { padding: 18px; }
  .staff-info h3 { font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .carousel:not(.carousel--wide) { --per-view: 1.25; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .newsletter { flex-direction: column; border-radius: var(--radius); }
  .newsletter input { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-zoom, .hero-anim > * { opacity: 1; transform: none; }
}

/* ---------- Form submission states ---------- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { display: none; margin: 24px 0 0; padding: 14px 18px; border-radius: 10px; background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; font-size: .9rem; }
.form-error.show { display: block; animation: popIn .5s var(--ease); }
button.btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* ---------- Legal pages (Privacy, Terms) ---------- */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 104px; padding: 28px; border-radius: var(--radius-lg); background: var(--gray-50); border: 1px solid var(--gray-100); }
.legal-toc h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 14px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: .88rem; color: var(--gray-700); transition: background .3s, color .3s; }
.legal-toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--blue-500); font-weight: 600; font-size: .78rem; padding-top: 2px; }
.legal-toc a:hover { background: var(--white); color: var(--ink); }
.legal-body { max-width: 760px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 18px 22px; border-radius: var(--radius); background: var(--blue-50); color: var(--navy-800); font-size: .9rem; margin-bottom: 40px; }
.legal-meta strong { color: var(--ink); }
.legal-body section { scroll-margin-top: 110px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--gray-100); }
.legal-body section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-body h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); display: flex; gap: 14px; align-items: baseline; }
.legal-body h2 .num { font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--blue-500); letter-spacing: .08em; }
.legal-body h3 { font-size: 1.1rem; margin-top: 24px; }
.legal-body p, .legal-body li { color: var(--gray-700); }
.legal-body ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 0 0 1em; }
.legal-body ul li { position: relative; padding-left: 22px; }
.legal-body ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); }
.legal-body a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.legal-contact { padding: 28px 30px; border-radius: var(--radius-lg); background: var(--navy-900); color: rgba(255,255,255,.75); }
.legal-contact h3 { color: var(--white); margin-top: 0; }
.legal-contact a { color: var(--blue-200); }
.checkbox a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
}

/* ---------- Cookie consent banner ---------- */
.consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 200;
  width: min(560px, calc(100% - 48px));
  display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: start;
  padding: 24px 26px; border-radius: var(--radius-lg);
  background: var(--navy-900); color: rgba(255,255,255,.75);
  border: 1px solid rgba(79,134,247,.25);
  box-shadow: 0 30px 60px -20px rgba(4,11,25,.7);
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.consent.show { opacity: 1; transform: none; pointer-events: auto; }
.consent-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(79,134,247,.15); color: var(--blue-400); display: grid; place-items: center; }
.consent-icon svg { width: 22px; height: 22px; }
.consent-text strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.consent-text p { margin: 0; font-size: .88rem; line-height: 1.6; }
.consent-text a { color: var(--blue-200); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.consent-actions .btn { padding: 11px 22px; font-size: .88rem; }
.consent .btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.25); }
.consent .btn--outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
@media (max-width: 560px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; grid-template-columns: 1fr; }
  .consent-icon { display: none; }
  .consent-actions .btn { flex: 1; }
}

/* ---------- Mobile polish ---------- */
/* Let grid/flex children shrink below their longest word so nothing pushes past the screen edge */
.legal-layout > *, .featured-event > *, .split > *, .program-row > *, .reg-layout > *, .form-grid > * { min-width: 0; }
.legal-body, .legal-contact, .footer, .event-body, .testimonial { overflow-wrap: anywhere; }

/* Bigger tap targets for small links and carousel dots (visual size unchanged) */
.carousel-dot { position: relative; }
.carousel-dot::after { content: ""; position: absolute; inset: -16px -6px; }
.breadcrumb a { padding: 10px 0; margin: -10px 0; }

@media (max-width: 720px) {
  .carousel-viewport { margin: -16px; padding: 16px; clip-path: inset(0 16px); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .countdown { gap: 8px; }
  .countdown div { padding: 12px 4px; }
  .featured-body { padding: 32px 22px; }
  .legal-toc { padding: 20px; }
  .legal-toc a { padding: 10px; }
  .program-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 12px 16px; margin: 0 -16px 20px; scrollbar-width: none; }
  .program-tabs::-webkit-scrollbar { display: none; }
  .program-tabs a { flex-shrink: 0; padding: 12px 18px; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 36px; padding: 0 16px 4px; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; padding: 12px 20px; }
  .checkbox input { width: 22px; height: 22px; margin-top: 1px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; } /* stops iOS zooming into fields */
}

/* Touch devices (phones and tablets): roomier footer links and inline arrows */
@media (max-width: 1024px) {
  .footer ul { gap: 4px; }
  .footer ul a { display: inline-block; padding: 10px 0; }
  .footer-bottom a { display: inline-block; padding: 8px 0; }
  .link-arrow { padding: 8px 0; }
}

/* ---------- Application form: sections + file uploads ---------- */
.form-section { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--gray-100); }
.form-section h4 { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin: 0 0 4px; }
.form-section p { margin: 0; font-size: .9rem; color: var(--gray-500); }
.upload {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 12px; cursor: pointer;
  border: 1.5px dashed var(--gray-200); background: var(--gray-50);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload:hover, .upload.dragover { border-color: var(--blue-500); background: var(--blue-50); }
.upload:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.upload-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--white); color: var(--blue-500); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.upload-icon svg { width: 22px; height: 22px; }
.upload-text { display: flex; flex-direction: column; font-size: .92rem; color: var(--gray-700); min-width: 0; }
.upload-text strong { color: var(--blue-600); }
.upload-text small { font-size: .8rem; color: var(--gray-500); margin-top: 2px; }
.upload-name { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--ink); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload.has-file { border-style: solid; border-color: var(--blue-500); background: var(--blue-50); }
.upload.has-file .upload-icon { background: var(--blue-500); color: var(--white); }
.form-field.error .upload { border-color: #DC2626; background: #FEF2F2; }
@media (max-width: 560px) {
  .upload { flex-wrap: wrap; }
  .upload-name { margin-left: 0; max-width: 100%; flex-basis: 100%; }
}
