:root {
  --ink: #1a1c28;
  --muted: #626364;
  --blue: #009ada;
  --blue-deep: #0d7ab8;
  --nav: #62bbe1;
  --line: #e4eef6;
  --card: #f4f8fc;
  --soft: #eef6fb;
  --shadow: 0 18px 50px rgba(26, 28, 40, 0.08);
  --container: 1500px;
  --gutter: clamp(20px, 2.2vw, 30px);
  --panel: #f5f7ff;
  --card-bg: #f1f4f8;
  --font: "DM Sans", sans-serif;
  --display: "Satoshi", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.4;
  overflow-x: clip;
  background:
    radial-gradient(900px 520px at 0 0, #e7f8ef 0%, transparent 60%),
    radial-gradient(820px 560px at 100% 0, #e7f2fb 0%, transparent 55%),
    #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); letter-spacing: -0.03em; margin: 0; overflow-wrap: break-word; }

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--ink); color: #fff;
  padding: 8px 12px; border-radius: 8px; z-index: 20;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 112px; gap: 24px; min-width: 0; }
.logo { height: 80px; width: auto; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 0; min-width: 0; }
.nav-links a { color: var(--ink); font-size: 18px; font-weight: 500; padding: 0 15px; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--blue); }
.nav-links a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: var(--soft);
  border-radius: 12px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative; margin: 0 auto;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; border: 0; border-radius: 100px;
  min-height: 48px; padding: 12px 35px; line-height: 1.2; cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}
.btn:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn.lg { min-width: 220px; min-height: 56px; padding: 16px 36px; font-size: 18px; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #e9f6fc; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vh, 72px) 0 clamp(64px, 9vh, 110px); overflow: clip; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px);
  align-items: center; min-height: min(640px, calc(100vh - 220px)); min-width: 0;
}
.hero-content { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 660px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; margin-bottom: 24px;
  border-radius: 100px; background: rgba(255, 255, 255, 0.75); border: 1px solid #dbeaf5;
  box-shadow: 0 6px 20px rgba(0, 154, 218, 0.08); color: var(--ink); font-size: 15px; font-weight: 500;
  backdrop-filter: blur(6px);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(0, 154, 218, 0.18); }
.hero h1 {
  font-size: clamp(44px, 5.4vw, 82px); line-height: 1.06; font-weight: 700; letter-spacing: -0.035em;
  margin: 0 0 24px; text-wrap: balance;
}
.hero-lead { max-width: 30em; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; margin: 0 0 32px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-actions .btn.lg { min-width: 0; }
.btn.outline { background: rgba(255, 255, 255, 0.7); color: var(--ink); box-shadow: inset 0 0 0 1.5px #cfdcea; }
.btn.outline:hover { background: #fff; color: var(--blue-deep); box-shadow: inset 0 0 0 1.5px var(--blue); }
.hero-proof { display: flex; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid #e3ecf4; width: 100%; max-width: 520px; }
.hero-proof .avatar-stack img { width: 46px; height: 46px; }
.hero-stats { display: flex; gap: 28px; margin: 0; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--ink); line-height: 1.1; }
.hero-stats dd { margin: 2px 0 0; font-size: 15px; color: var(--muted); }

.hero-visual { position: relative; min-width: 0; padding: 0 28px 34px 0; }
.hero-visual::before {
  /* gradient frame offset behind the photo */
  content: ""; position: absolute; inset: 34px 0 0 34px; border-radius: 28px;
  background: linear-gradient(228deg, #d997de, #c0e2d5 48%, #6291e1 98%); opacity: 0.85;
}
.hero-photo { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 30px 70px rgba(26, 28, 40, 0.16); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-radius: 18px;
  padding: 14px 18px; box-shadow: 0 18px 44px rgba(26, 28, 40, 0.14);
  animation: hero-float 6s ease-in-out infinite;
}
.hero-float strong { display: block; font-family: var(--display); color: var(--ink); font-size: 17px; line-height: 1.2; }
.hero-float span { font-size: 14px; color: var(--muted); }
.hero-float-top { top: 28px; left: -36px; }
.hero-float-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e3f4fb; color: var(--blue); flex: 0 0 auto; }
.hero-float-icon svg { width: 22px; height: 22px; }
.hero-float-bottom { bottom: 0; right: 56px; flex-direction: column; align-items: flex-start; gap: 8px; animation-delay: -3s; }
.hero-float-label { font-size: 13px !important; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.hero-float-logos { display: flex; align-items: center; gap: 16px; }
.hero-float-logos img { height: 22px; width: auto; object-fit: contain; }
@keyframes hero-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- Home background: soft moving light (canvas drawn by main.js) ---------- */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.section { padding: 120px 0; }
.section.compact { padding: 70px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 36px; min-width: 0; }
.section-head h2 { flex: 1; }
.section h2, .page-hero h1 { font-size: clamp(36px, 4vw, 55px); line-height: 1.15; }

.course-grid, .study-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.course-card, .study-card {
  background: var(--card-bg); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; min-height: 100%;
  transition: transform 0.3s ease;
}
.course-card:hover, .study-card:hover { transform: translateY(-6px); }
.course-card img, .study-card img { width: 100%; height: 243px; object-fit: cover; border-radius: 20px; }
.course-card h3, .study-card h3 { color: var(--ink); font-size: 20px; line-height: 1.3; margin: 16px 0 8px; letter-spacing: -0.02em; font-family: var(--font); }
.course-card .caps, .study-card .caps { margin: 0 0 8px; text-transform: uppercase; font-size: 14px; letter-spacing: 0.03em; }
.course-card .meta, .study-card .meta { margin: 0 0 16px; color: var(--muted); font-size: 16px; text-transform: none; letter-spacing: 0; }
.card-cta {
  margin-top: auto; display: flex; align-items: center; justify-content: center;
  min-height: 41px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 18px;
}
.article > img { width: 100%; height: min(420px, 56vw); object-fit: cover; border-radius: 24px; margin: 18px 0 8px; }
.article h1 { font-size: clamp(34px, 4vw, 52px); margin: 8px 0 12px; }
.meta strong { color: var(--ink); font-weight: 700; }

.center-title { text-align: center; margin-bottom: 28px; }

/* Partner colleges + employers: generous breathing room around each */
.section.logo-section { padding: 110px 0; }
.partner-logos {
  display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap;
  gap: 40px 60px; max-width: 1200px; margin: 60px auto 0;
}
.partner-logos img { height: 90px; width: auto; max-width: 280px; object-fit: contain; }
.marquee { overflow: hidden; max-width: 100%; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track img { height: 78px; width: auto; max-width: none; object-fit: contain; flex: 0 0 auto; }
.marquee.compact .marquee-track img { height: 46px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Employers: two rows of tiles scrolling in opposite directions */
.logo-rows { display: grid; gap: 40px; margin-top: 60px; }
.logo-scroller { overflow: hidden; max-width: 100%; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.logo-scroller-track { display: flex; gap: 50px; width: max-content; padding-right: 50px; animation: marquee 40s linear infinite; }
.logo-scroller[data-direction="right"] .logo-scroller-track { animation-direction: reverse; }
.logo-scroller:hover .logo-scroller-track { animation-play-state: paused; }
.logo-tile {
  flex: 0 0 auto; width: 165px; height: 125px; padding: 22px;
  display: grid; place-items: center; background: var(--panel); border-radius: 15px;
}
.logo-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.events-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; min-width: 0; }
.arrows { display: flex; gap: 10px; }
.arrows button, .filters button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: #f2f5f8; color: var(--ink); cursor: pointer;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.filters button {
  width: auto; height: auto; border-radius: 100px; padding: 10px 16px; color: var(--ink);
}
.filters button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.event-window { overflow: hidden; max-width: 100%; min-width: 0; container-type: inline-size; }
.event-track { display: flex; gap: 18px; width: max-content; transition: transform 0.45s ease; }
.event-track img { width: calc((100cqi - 36px) / 3); height: 250px; max-width: none; object-fit: cover; border-radius: 16px; flex: 0 0 auto; }

.credential {
  margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 20px; align-items: center; min-width: 0;
  background: linear-gradient(100deg, #4276fc, #1867b5); color: #fff; border-radius: 15px; padding: 48px 56px;
  position: relative; overflow: hidden;
}
.credential::before, .credential::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.12);
}
.credential::before { width: 180px; height: 180px; left: -40px; bottom: -60px; }
.credential::after { width: 120px; height: 120px; right: 38%; top: -40px; }
.credential h2, .credential p { color: #fff; position: relative; }
.credential p { max-width: 460px; margin: 12px 0 0; }
.credential img { position: relative; width: min(100%, 320px); margin-left: auto; }

.testimonials { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 48px; align-items: end; min-width: 0; }
.testimonials > * { min-width: 0; }
.kicker { color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.testi-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.testi-copy h2 { font-size: clamp(36px, 4vw, 48px); line-height: 1.15; }
.loved { display: flex; align-items: center; gap: 16px; color: var(--ink); }
.panel.blue .loved, .panel.blue .loved span { color: #fff; }
.quote p { font-size: 22px; color: var(--ink); margin: 0; }
.avatar-stack { display: flex; flex: 0 0 auto; }
.avatar-stack img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin-left: -12px; }
.avatar-stack img:first-child { margin-left: 0; }
.quote-text { min-height: 132px; margin: 0 0 36px; font-size: 22px; line-height: 1.45; color: var(--ink); transition: opacity 0.25s ease; }
.quote-text.is-fading { opacity: 0; }
.stars { color: #f5b942; letter-spacing: 3px; margin-top: 12px; }
/* Reviewer tabs: a sliding row, 3 visible (1 on phones), moved by main.js */
.people { overflow: hidden; min-width: 0; padding-top: 4px; }
.people-track { display: flex; gap: 16px; transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1); will-change: transform; }
.people-track > button { flex: 0 0 calc((100% - 32px) / 3); }
.monogram {
  flex: 0 0 auto; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  font-family: var(--display); font-weight: 700; font-size: 24px; color: #fff !important;
}
.monogram.c1 { background: linear-gradient(135deg, #42c4fc, #1867b5); }
.monogram.c2 { background: linear-gradient(135deg, #d997de, #6291e1); }
.monogram.c3 { background: linear-gradient(135deg, #5ec7a0, #1a8f8a); }
.monogram.c4 { background: linear-gradient(135deg, #ffb36b, #e5677a); }
.people button {
  display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; min-width: 0;
  border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 0 0 12px; cursor: pointer;
}
.people button[aria-selected="true"] { border-bottom-color: var(--blue); }
.people img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.people strong { display: block; color: var(--ink); font-size: 18px; }
.people span { color: var(--muted); font-size: 14px; }

.feature-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: stretch; min-width: 0; }
.feature-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; margin-top: 24px; min-width: 0; }
.feature-top > *, .feature-bottom > * { min-width: 0; }
.panel { border-radius: 15px; padding: 36px; min-height: 220px; overflow: hidden; }
.panel.light { background: var(--panel); }
.panel.blue {
  background: linear-gradient(#4276fc, #3dc5ff 1%, #1867b5);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
}
.panel.dark { background: var(--ink); color: #fff; }
.panel h3 { font-size: clamp(28px, 3vw, 36px); line-height: 1.25; margin-bottom: 18px; }
.panel.blue h3, .panel.dark h3, .panel.blue p, .panel.dark p { color: #fff; }
.panel .btn { margin-top: 8px; }
.info-card, .form-card, .article {
  background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow);
}
.chip { display: inline-flex; align-items: center; background: #fff; color: var(--ink); border: 1px solid #d9e2ee; border-radius: 100px; padding: 8px 16px; font-size: 15px; white-space: nowrap; }
.map-card { display: grid; grid-template-columns: 1fr 180px; gap: 12px; align-items: center; }
.map-card img { width: 100%; border-radius: 16px; }


.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 180px); gap: 18px; margin: 28px 0; }
.stat { background: var(--card); border-radius: 20px; padding: 22px; }
.stat strong { display: block; font-family: var(--display); font-size: 42px; color: var(--ink); line-height: 1; }
.cta-card h3 { margin-bottom: 8px; }
.cta-card .btn { margin-top: 16px; }

.study-card .tag {
  display: inline-flex; margin: 14px 8px 0; background: #e5f5fc; color: var(--blue-deep);
  border-radius: 100px; padding: 4px 10px; font-size: 13px; font-weight: 700;
}
.article-hero img { width: 100%; height: 420px; object-fit: cover; border-radius: 24px; margin: 18px 0 22px; }
.article p { font-size: 18px; }
.back { color: var(--blue-deep); font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; min-width: 0; }
.contact-list { display: grid; gap: 14px; margin-top: 18px; }
.contact-list a, .contact-list p { margin: 4px 0 0; color: var(--ink); }
label { display: block; color: var(--ink); font-weight: 700; margin: 14px 0 6px; }
input, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.form-success { display: none; background: #e8f7ee; color: #146c43; border-radius: 16px; padding: 18px; }
.form-success.show { display: block; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center;
}
.socials svg { width: 18px; height: 18px; display: block; }

/* ---------- Footer (matches reference) ---------- */
.site-footer {
  color: #fff; margin-top: 150px; padding: 0 0 40px;
  background:
    radial-gradient(900px 420px at 70% 45%, rgba(24, 103, 181, 0.55), transparent 70%),
    var(--ink);
}
.footer-cta {
  position: relative; top: -110px; margin-bottom: -110px;
  background: linear-gradient(#4276fc, #32a2d3 1%, #1a5c9e);
  color: #fff; border-radius: 15px; padding: 60px; min-height: 230px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; overflow: hidden;
}
.footer-cta::before, .footer-cta::after {
  content: ""; position: absolute; border-radius: 50%;
  background: linear-gradient(137deg, rgba(255,255,255,0.45), rgba(255,255,255,0));
}
.footer-cta::before { width: 200px; height: 200px; left: 30%; bottom: -120px; }
.footer-cta::after { width: 280px; height: 280px; right: -60px; top: -90px; }
.footer-cta > * { position: relative; z-index: 1; }
.footer-cta h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.25; color: #fff; margin-bottom: 20px; }
.footer-cta .loved, .footer-cta .loved span { color: #fff; font-size: 16px; }
.avatar-stack .plus {
  width: 48px; height: 48px; margin-left: -12px; border-radius: 50%; border: 3px solid #fff;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 22px;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 0.9fr); gap: 48px; padding: 90px 0 20px; min-width: 0; }
.footer-grid h4 { color: #fff; margin: 0 0 16px; font-size: 20px; font-family: var(--display); }
.footer-grid a, .footer-grid p { color: rgba(255,255,255,0.86); display: block; margin: 0 0 10px; font-size: 16px; }
.footer-grid a:hover { color: #fff; }
.footer-logo { width: min(100%, 438px); height: auto; border-radius: 4px; margin-bottom: 24px; }
.footer-brand p { max-width: 420px; }
.icon-row { display: flex !important; gap: 14px; align-items: flex-start; margin-bottom: 20px !important; }
.icon-row img { width: 24px; height: 24px; flex: 0 0 auto; }
.footer-contact h4 { margin-top: 28px; }
/* Footer links are display:block with a bottom margin; social circles must stay centred grids. */
.site-footer .socials { gap: 12px; }
.site-footer .socials a { display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; color: #fff; background: rgba(255, 255, 255, 0.14); transition: background 0.2s ease; }
.site-footer .socials a:hover { background: var(--blue); }

/* ---------- Shared page pieces ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { color: var(--blue); }
.page-hero { padding: 60px 0 20px; }
.page-hero.center { text-align: center; }
.page-hero h1 { font-size: clamp(40px, 5vw, 75px); line-height: 1.2; font-weight: 700; margin-bottom: 18px; }
.page-hero p { max-width: 900px; font-size: 18px; margin: 0 auto 12px; }
.page-hero .btn { margin-top: 18px; }
.narrow { max-width: 1000px; }
.section.tight { padding: 40px 0 80px; }
.btn.dark { background: var(--ink); color: #fff; min-height: 44px; padding: 10px 26px; font-size: 16px; }
.btn.dark:hover { background: #33364a; }

/* About */
.about-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 486px 486px; gap: 30px; position: relative; }
.about-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; background: var(--panel); }
.about-gallery .tall { grid-row: span 2; }
.about-gallery .deco { position: absolute; right: 30px; top: 50%; width: 134px; height: auto; background: none; pointer-events: none; }
.founder-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.founder-copy h2 { font-size: clamp(40px, 5vw, 75px); line-height: 1.25; margin-bottom: 28px; }
.founder-copy p { font-size: 18px; margin: 0 0 18px; max-width: 760px; }
.founder-visual { position: relative; border-radius: 15px; overflow: hidden; background: linear-gradient(228deg, #d997de, #c0e2d5 48%, #6291e1 98%); }
.founder-visual img:first-child { width: 100%; height: 618px; object-fit: cover; object-position: top; }
.founder-visual .deco { position: absolute; right: 10px; top: 12px; width: 144px; }
.mv-card { background: var(--panel); border-radius: 15px; padding: 60px; }
.mv-card h2 { font-size: clamp(36px, 4vw, 55px); margin-bottom: 20px; }
.mv-card p { margin: 0; }
.stats-row { display: grid; grid-template-columns: 1fr 1fr; text-align: center; margin-top: 70px; }
.stats-row .stat { background: none; padding: 0; }
.stats-row strong { display: block; font-family: var(--display); font-size: clamp(48px, 5vw, 75px); color: var(--ink); line-height: 1.2; }
.cta-card { border-radius: 15px; padding: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-card h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; }
.cta-card p { margin: 0 0 12px; max-width: 520px; }
.cta-card.mint { background: #cfeadf; }
.cta-card.lilac { background: var(--panel); }

/* Testimonial details */
.quote-icon { width: 40px; height: 40px; margin-bottom: 28px; }
.stars-img { width: 141px; height: 24px; margin: 0 0 36px; }

/* Courses */
.filters.square { justify-content: center; gap: 8px; margin-bottom: 40px; }
.filters.square button {
  border-radius: 6px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 500;
  padding: 10px 18px; border: 2px solid transparent;
}
.filters.square button[aria-pressed="true"] { background: var(--blue-deep); border-color: #8fd3f0; }
.course-card[hidden] { display: none; }

/* Case studies */
.banner-hero { padding: 24px 0 20px; }
.banner {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(#4276fc, #3d73ff 0.01%, #1844b5 102%);
  border-radius: 15px; padding: 56px 30px 60px;
}
.banner::before, .banner::after { content: ""; position: absolute; border-radius: 50%; background: #fff; opacity: 0.95; }
.banner::before { width: 130px; height: 130px; right: -34px; top: -44px; }
.banner::after { width: 84px; height: 84px; left: 50%; bottom: -56px; transform: translateX(-50%); }
.banner > * { position: relative; z-index: 1; }
.banner h1 { color: #fff; font-size: clamp(34px, 4vw, 54px); line-height: 1.25; max-width: 1000px; margin: 0 auto 10px; }
.banner p { color: rgba(255,255,255,0.92); max-width: 740px; margin: 0 auto; }
.banner .kicker { color: #cfe3ff; font-weight: 500; }
.banner .back { color: #fff; display: inline-block; margin-bottom: 18px; }
.study-card img { height: 350px; border-radius: 15px; }
.study-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.study-meta span:last-child { font-size: 16px; }
.study-card .tag {
  margin: 0; background: rgba(26, 28, 40, 0.78); color: #fff; border-radius: 15px;
  padding: 5px 10px; font-size: 15px; font-weight: 400;
}
.study-card h3 { font-family: var(--display); font-size: 22px; margin: 0 0 10px; }
.study-card .excerpt { margin: 0 0 8px; font-size: 16px; }
.filters:not(.square) { justify-content: center; margin-bottom: 36px; }
.article { max-width: 900px; margin-inline: auto; box-shadow: none; padding: 0; background: none; }
.article > img { height: min(480px, 56vw); border-radius: 15px; margin: 0 0 32px; }
.related-title { text-align: center; margin-bottom: 32px; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.contact-card { background: var(--panel); border-radius: 15px; padding: 36px 28px; text-align: center; }
.contact-card h3 { font-family: var(--display); font-size: 22px; margin-bottom: 14px; }
.contact-card a, .contact-card p { color: var(--muted); margin: 0; font-size: 16px; }
.contact-card a:hover { color: var(--blue); }
.contact-card .socials { justify-content: center; }
.contact-card .socials a { background: #fff; color: var(--ink); transition: background 0.2s ease, color 0.2s ease; }
.contact-card .socials a:hover { background: var(--blue); color: #fff; }
.form-card { max-width: 980px; margin: 0 auto; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(66, 118, 252, 0.08); padding: 48px; }
.form-card h2 { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 8px; }
.form-card > p { margin: 0 0 28px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { border: 1px solid #d6dbe6; border-radius: 100px; padding: 14px 22px; font-size: 16px; }
.contact-form textarea { border-radius: 20px; min-height: 200px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 56px; }
  .hero-content { max-width: 720px; }
  .hero-visual { max-width: 720px; }
  .hero-float-top { left: -12px; }
  .feature-top, .feature-bottom, .testimonials, .credential, .footer-grid, .split, .contact-grid, .map-card { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 80px 0; }
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .course-grid, .study-grid { grid-template-columns: 1fr 1fr; }
  .event-track img { width: calc((100cqi - 18px) / 2); }
  .footer-cta { flex-direction: column; align-items: flex-start; padding: 40px; }
  .about-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .about-gallery img, .about-gallery .tall { grid-row: auto; height: 320px; }
  .about-gallery .deco { display: none; }
}
@media (max-width: 720px) {
  .nav-inner { min-height: 72px; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 16px; right: 16px; top: 66px;
    background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 12px;
    flex-direction: column; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .course-grid, .study-grid, .stats { grid-template-columns: 1fr; }
  .course-card img, .study-card img { height: 200px; }
  .event-track img { width: 100cqi; height: 210px; }
  .section-head, .events-head { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 20px; }
  .people-track > button { flex-basis: 100%; }
  .hero h1 { font-size: clamp(38px, 10vw, 48px); }
  .hero-actions { width: 100%; }
  .hero-actions .btn.lg { flex: 1 1 100%; }
  .hero-proof { flex-wrap: wrap; gap: 16px; }
  .hero-visual { padding: 0 14px 56px 0; }
  .hero-visual::before { inset: 18px 0 30px 18px; }
  .hero-float-top { top: 14px; left: -6px; padding: 10px 14px; }
  .hero-float-bottom { right: 24px; left: 10px; padding: 12px 14px; }
  .hero-float-logos img { height: 18px; }
  .panel { padding: 28px; }
  .logo { height: 56px; }
  .contact-cards, .contact-form { grid-template-columns: 1fr; }
  .mv-card, .cta-card, .form-card { padding: 32px 24px; }
  .founder-visual img:first-child { height: 420px; }
  .study-card img { height: 240px; }
  .banner { padding: 40px 20px 46px; }
  .banner-hero { padding-top: 12px; }
  .section.logo-section { padding: 64px 0; }
  .partner-logos { margin-top: 32px; gap: 28px; }
  .partner-logos img { height: 64px; }
  .logo-rows { gap: 20px; margin-top: 32px; }
  .logo-scroller-track { gap: 20px; padding-right: 20px; }
  .logo-tile { width: 120px; height: 90px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .logo-scroller-track, .event-track, .course-card, .study-card, .hero-float, .people-track { animation: none; transition: none; }
}

/* ---------- Feature cards (home) — matches reference, blue card kept straight ---------- */
.feature-top { grid-template-columns: minmax(0, 1.87fr) minmax(0, 1fr); gap: 24px; }
.feature-bottom { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 50px; margin-top: 50px; }
.feat-card { position: relative; border-radius: 15px; padding: 50px; min-width: 0; }
.feat-card h3 { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.3; margin-bottom: 14px; }
.grad-text {
  background: linear-gradient(#42c4fc, #3ddfff 1%, #1867b5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn.grad { background: linear-gradient(135deg, #009ada, #1867b5); }
.btn.grad:hover { background: linear-gradient(135deg, #0d7ab8, #14548f); }

.feat-industries { background: var(--panel); display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 40px; }
.feat-industries h3 { max-width: 820px; }
.feat-orb {
  position: absolute; left: -36px; top: -40px; width: 130px; height: 130px; border-radius: 50%; pointer-events: none;
  background: linear-gradient(-140deg, rgba(66, 118, 252, 0.5), rgba(61, 115, 255, 0.25) 15%, rgba(24, 68, 181, 0) 84%);
}
.company-rows { display: grid; gap: 14px; width: 100%; margin-top: 36px; }
.company-marquee {
  width: 100%; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.company-marquee[data-direction="right"] .company-track { animation-direction: reverse; }
.company-track { display: flex; align-items: center; gap: 25px; width: max-content; padding-right: 25px; animation: marquee 32s linear infinite; }
.company-marquee:hover .company-track { animation-play-state: paused; }
.company-pair { display: flex; align-items: center; gap: 25px; flex: 0 0 auto; }
.company-pair img { width: 50px; height: 20px; object-fit: contain; }
.company-pair span {
  background: #fff; border-radius: 15px; padding: 10px 22px; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink);
}

.feat-dream {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-bottom: 40px; overflow: hidden;
  background: linear-gradient(#4276fc, #3dc5ff 1%, #1867b5); color: #fff;
}
.feat-dream h3 { color: #fff; font-size: clamp(28px, 2.4vw, 34px); max-width: 360px; margin-bottom: 24px; }
.feat-dream .btn.light { min-height: 56px; padding: 14px 40px; }
.dream-trust { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; color: #fff; font-family: var(--display); font-weight: 500; }
.dream-trust .avatar-stack img { width: 53px; height: 53px; }
.dream-trust .avatar-stack .plus { width: 53px; height: 53px; }

.feat-dark { background: var(--ink); overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; min-height: 474px; }
.feat-dark h3 { color: #fff; }
.feat-map { width: 100%; margin-top: auto; padding-top: 24px; opacity: 1; filter: brightness(1.9) contrast(1.05); }

.feat-profiles { background: var(--panel); overflow: hidden; min-height: 474px; padding-bottom: 0; }
.feat-profiles p { max-width: 600px; margin: 0; }
.chip-pile { position: absolute; left: 0; right: 0; bottom: 0; height: 230px; }
.job-chip {
  position: absolute; transform: translate(-50%, 50%) rotate(var(--r, 0deg));
  border-radius: 100px; padding: 10px 24px; white-space: nowrap; font-size: 18px; line-height: 1.2;
  box-shadow: 0 6px 18px rgba(26, 28, 40, 0.08);
}
.job-chip.dark { background: var(--ink); color: #fff; }
.job-chip.white { background: #fff; color: var(--ink); }
.job-chip.grad { background: linear-gradient(228deg, #d997de, #c0e2d5 48%, #6291e1 98%); color: var(--ink); }
.job-chip.blue { background: linear-gradient(#4276fc, #3d73ff 1%, #1844b5); color: #fff; }

@media (max-width: 1100px) {
  .feature-top, .feature-bottom { grid-template-columns: 1fr; gap: 24px; }
  .feature-bottom { margin-top: 24px; }
  .feat-industries, .feat-dream, .feat-dark { min-height: 0; }
  .feat-dream { gap: 60px; }
}
@media (max-width: 720px) {
  .feat-card { padding: 32px 24px; }
  .feat-profiles { min-height: 0; padding-bottom: 32px; }
  .chip-pile { position: static; height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 8px; margin-top: 28px; }
  .job-chip { position: static; transform: rotate(calc(var(--r, 0deg) / 3)); font-size: 14px; padding: 8px 16px; }
  .company-pair span { font-size: 18px; padding: 10px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .company-track { animation: none; }
}

/* ---------- Scroll animations (mirrors the reference's Webflow interactions) ---------- */
/* Only hidden once JS has confirmed it can reveal them, so nothing stays invisible without JS. */
.anim-ready [data-anim] {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: var(--delay, 0ms);
}
.anim-ready [data-anim="up"] { transform: translateY(100px); }
.anim-ready [data-anim="left"] { transform: translateX(-100px); }
.anim-ready [data-anim="right"] { transform: translateX(100px); }
.anim-ready [data-anim].is-in { opacity: 1; transform: none; }

/* About gallery photos: plain framed images (no reveal animation) */
.gallery-photo { position: relative; overflow: hidden; border-radius: 15px; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Job-profile pills fly in one after another and land in the pile (reference "Text Figure Load") */
.anim-ready .chip-pile .job-chip {
  opacity: 0; transform: translate(-50%, -260px) rotate(calc(var(--r, 0deg) + 270deg));
  transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: calc(var(--i, 0) * 100ms + 100ms);
}
.anim-ready .chip-pile.is-in .job-chip { opacity: 1; transform: translate(-50%, 50%) rotate(var(--r, 0deg)); }

/* Decorations breathe (reference "About Decoration Scale") */
.deco-pulse { animation: deco-pulse 3s ease-in-out infinite; }
@keyframes deco-pulse { 0%, 100% { scale: 1; } 50% { scale: 0.8; } }

/* White buttons fill with blue from the centre on hover (reference "Button White Hover") */
.btn.light { position: relative; overflow: hidden; isolation: isolate; }
.btn.light::before {
  content: ""; position: absolute; inset: 0; left: 50%; right: 50%; z-index: -1;
  background: var(--blue); transition: left 0.3s cubic-bezier(0.075, 0.82, 0.165, 1), right 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.btn.light:hover { background: #fff; color: #fff; transform: none; }
.btn.light:hover::before { left: 0; right: 0; }

@media (max-width: 720px) {
  .anim-ready .chip-pile .job-chip { transform: translateY(-160px) rotate(calc(var(--r, 0deg) + 270deg)); }
  .anim-ready .chip-pile.is-in .job-chip { transform: rotate(calc(var(--r, 0deg) / 3)); }
}
@media (prefers-reduced-motion: reduce) {
  .anim-ready [data-anim], .anim-ready .chip-pile .job-chip { opacity: 1 !important; transform: none !important; transition: none !important; }
  .anim-ready .chip-pile .job-chip { transform: translate(-50%, 50%) rotate(var(--r, 0deg)) !important; }
  .deco-pulse { animation: none; }
  [data-parallax] { transform: none !important; }
}

/* Case study article typography */
.article h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; margin: 40px 0 14px; }
.article ol { margin: 0 0 18px; padding-left: 1.4em; color: var(--muted); font-size: 18px; }
.article li { margin-bottom: 12px; padding-left: 4px; }
.article li strong, .article p strong { color: var(--ink); }

/* Case study detail: compact heading card (about half the list-page banner) */
.banner-hero.detail { padding-top: 24px; }
.banner-hero.detail .banner { padding: 58px 30px 62px; }
.banner-hero.detail .banner::before { width: 110px; height: 110px; right: -30px; top: -40px; }
.banner-hero.detail .banner::after { width: 70px; height: 70px; bottom: -48px; }
.banner-hero.detail .back { margin-bottom: 10px; font-size: 16px; }
.banner-hero.detail .kicker { margin: 0 auto 6px; font-size: 16px; text-align: center; }
.banner-hero.detail h1 { font-size: clamp(26px, 2.6vw, 42px); line-height: 1.25; max-width: 900px; margin-bottom: 0; }
@media (max-width: 720px) {
  .banner-hero.detail { padding-top: 12px; }
  .banner-hero.detail .banner { padding: 32px 20px 36px; }
}
.article-pending { text-align: center; color: var(--muted); font-style: italic; padding: 24px 0; }

/* About hero: same pieces as the home hero, centred */
.about-hero { padding: clamp(48px, 7vh, 88px) 0 clamp(40px, 6vh, 72px); }
.about-hero h1 { font-size: clamp(44px, 5.4vw, 80px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 22px; }
.about-hero .hero-lead { max-width: 820px; margin: 0 auto 14px; }
.about-hero .about-hero-note { color: var(--ink); font-weight: 500; margin: 0 auto 32px; }
.about-hero .hero-actions { justify-content: center; margin-bottom: 36px; }
.about-hero .btn { margin-top: 0; }
.about-hero .hero-proof { justify-content: center; margin: 0 auto; }
@media (max-width: 720px) {
  .about-hero h1 { font-size: clamp(38px, 10vw, 48px); }
  .about-hero .hero-proof { justify-content: center; }
}

/* ---------- Course cards (Home + Courses) ---------- */
.course-card {
  padding: 0; background: #fff; border: 1px solid #e6edf4; border-radius: 22px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 28, 40, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(26, 28, 40, 0.10); border-color: #cfe4f3; }
.course-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.course-card .course-media img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.course-card:hover .course-media img { transform: scale(1.06); }
.course-badge {
  position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px); color: var(--ink);
  font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(26, 28, 40, 0.1);
}
.course-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.course-card .course-body h3 { font-family: var(--display); font-size: 22px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.01em; }
.course-blurb { margin: 0 0 22px; font-size: 16px; color: var(--muted); }
.course-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  color: var(--blue-deep); font-weight: 600; font-size: 16px;
}
.course-link svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.course-card:hover .course-link svg { transform: translateX(4px); }
.course-grid { gap: 28px; }

/* ---------- Pill filters with counts (Courses) ---------- */
.filters.pills {
  justify-content: center; gap: 6px; margin: 0 auto 48px; padding: 6px; width: fit-content; max-width: 100%;
  background: rgba(255, 255, 255, 0.8); border: 1px solid #e3ecf4; border-radius: 100px;
  box-shadow: 0 10px 30px rgba(26, 28, 40, 0.05); backdrop-filter: blur(8px);
}
.filters.pills button {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 100px; padding: 10px 18px;
  background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; transition: background 0.2s ease, color 0.2s ease;
}
.filters.pills button:hover { background: var(--soft); }
.filters.pills button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.filters .count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 100px;
  background: var(--soft); color: var(--blue-deep); font-size: 12px; font-weight: 700;
}
.filters button[aria-pressed="true"] .count { background: rgba(255, 255, 255, 0.25); color: #fff; }
@media (max-width: 720px) {
  .filters.pills { border-radius: 22px; width: 100%; }
  .filters.pills button { flex: 1 1 auto; justify-content: center; padding: 9px 12px; font-size: 14px; }
  .course-body { padding: 18px 18px 20px; }
}

/* Case study cards share the course-card look */
.study-grid { gap: 28px; }
.study-date { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.study-card .course-body h3 { font-size: 20px; }
.study-card .course-blurb { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Home "Explore courses" header: label + heading + intro, button aligned to the heading block */
.section-head-rich { align-items: flex-end; margin-bottom: 44px; gap: 28px 48px; }
.section-head-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.section-head-text .eyebrow { margin-bottom: 18px; }
.section-head-rich h2 { flex: none; margin: 0 0 14px; }
.section-lead { margin: 0; max-width: 34em; font-size: clamp(17px, 1.2vw, 19px); line-height: 1.55; color: var(--muted); }
.btn-arrow { gap: 10px; }
.btn-arrow svg { width: 20px; height: 20px; transition: transform 0.25s ease; }
.btn-arrow:hover svg { transform: translateX(4px); }
@media (max-width: 720px) {
  .section-head-rich { align-items: flex-start; margin-bottom: 32px; }
  .section-head-text { flex: none; width: 100%; } /* stacked on phones: the 520px desktop basis must not become a height */
  .section-head-rich .btn-arrow { width: 100%; }
  /* shorter slide distance on small screens so revealed content is never far below its spot */
  .anim-ready [data-anim="up"] { transform: translateY(40px); }
  .anim-ready [data-anim="left"] { transform: translateX(-40px); }
  .anim-ready [data-anim="right"] { transform: translateX(40px); }
}

/* Partner colleges + employers: compact headings and tighter spacing */
.section.logo-section { padding: 64px 0; }
.logo-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 36px; }
.logo-head .eyebrow { margin-bottom: 14px; }
.section .logo-head h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.partner-logos { margin-top: 0; }
.logo-rows { margin-top: 0; }
@media (max-width: 720px) {
  .section.logo-section { padding: 44px 0; }
  .logo-head { margin-bottom: 24px; }
}

/* ---------- Footer "Begin your new journey" card: dark, with slow movement inside ---------- */
.footer-cta {
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(135deg, #222738 0%, #171a26 60%, #12141d 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(10, 12, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  isolation: isolate;
  animation: cta-dots 40s linear infinite;
}
.footer-cta::before, .footer-cta::after { z-index: 0; filter: blur(40px); opacity: 0.55; }
.footer-cta::before {
  width: 340px; height: 340px; left: 8%; top: -170px; bottom: auto;
  background: radial-gradient(circle, rgba(0, 154, 218, 0.9), rgba(0, 154, 218, 0) 70%);
  animation: cta-orb-a 14s ease-in-out infinite alternate;
}
.footer-cta::after {
  width: 380px; height: 380px; right: 4%; top: auto; bottom: -220px;
  background: radial-gradient(circle, rgba(146, 110, 230, 0.85), rgba(146, 110, 230, 0) 70%);
  animation: cta-orb-b 18s ease-in-out infinite alternate;
}
.footer-cta h3 { color: #fff; }
.footer-cta .btn.light { background: #fff; color: var(--ink); }
@keyframes cta-orb-a { 0% { translate: 0 0; } 50% { translate: 220px 60px; } 100% { translate: 420px 10px; } }
@keyframes cta-orb-b { 0% { translate: 0 0; } 50% { translate: -260px -50px; } 100% { translate: -520px 0; } }
@keyframes cta-dots { to { background-position: 220px 110px, 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .footer-cta, .footer-cta::before, .footer-cta::after { animation: none; }
}

/* Footer: Pages + Legal columns */
.footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.6fr) minmax(0, 0.75fr) minmax(0, 0.95fr); gap: 40px; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-bottom: 24px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; max-width: 1180px; }
.legal-nav {
  position: sticky; top: 132px; display: flex; flex-direction: column; gap: 4px; padding: 18px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid #e3ecf4; border-radius: 18px; backdrop-filter: blur(8px);
}
.legal-nav-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 4px 10px 10px; }
.legal-nav a { padding: 9px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; transition: background 0.2s ease, color 0.2s ease; }
.legal-nav a:hover { background: var(--soft); }
.legal-nav a[aria-current="page"] { background: var(--blue); color: #fff; font-weight: 600; }
.legal {
  background: rgba(255, 255, 255, 0.85); border: 1px solid #e6edf4; border-radius: 22px; padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 10px 30px rgba(26, 28, 40, 0.05); color: var(--ink); font-size: 17px; line-height: 1.7; max-width: 860px;
}
.legal h2 { font-family: var(--display); font-size: clamp(21px, 1.8vw, 25px); line-height: 1.3; margin: 36px 0 12px; padding-top: 24px; border-top: 1px solid #edf2f7; }
.legal h2:first-of-type { margin-top: 28px; }
.legal h3 { font-family: var(--display); font-size: 18px; margin: 22px 0 8px; }
.legal p { margin: 0 0 14px; color: #3d4250; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 1.3em; color: #3d4250; }
.legal li { margin-bottom: 8px; padding-left: 4px; }
.legal li::marker { color: var(--blue); }
.legal strong { color: var(--ink); }
.legal a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .legal-nav-title { display: none; }
  .legal-nav a { font-size: 14px; padding: 8px 12px; }
}
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
