/* ============ School Repo — Landing ============ */
:root {
  --brand: #7c5cfc;
  --brand-deep: #5b32e8;
  --ink: #181c2e;
  --ink-soft: #5a6078;
  --ink-faint: #8b91a8;
  --bg-dark: #08060f;
  --bg-dark-2: #0e0a1d;
  --bg-light: #f5f6fb;
  --surface: #ffffff;
  --line: #e7e9f2;
  --radius: 18px;
  --shadow-card: 0 1px 2px rgba(20, 16, 50, 0.04), 0 12px 32px -12px rgba(20, 16, 50, 0.12);
  --font-head: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
  --parallax: 2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 14px 10px 12px;
  border-radius: 999px;
  background: rgba(12, 9, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.55);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { width: 34px; height: 34px; mix-blend-mode: screen; }
.nav-brand strong {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.18s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in oklch, var(--brand), white 16%), var(--brand-deep));
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--brand), transparent 35%);
  transition: transform 0.18s, box-shadow 0.18s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--brand), transparent 25%); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 90% at 50% 0%, var(--bg-dark-2) 0%, var(--bg-dark) 62%);
  overflow: hidden;
  padding: 140px 0 120px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.hero-glow.g1 { width: 560px; height: 560px; top: -160px; left: 50%; margin-left: -280px; background: color-mix(in srgb, var(--brand), transparent 45%); }
.hero-glow.g2 { width: 420px; height: 420px; bottom: -180px; left: -120px; background: rgba(37, 99, 235, 0.32); }
.hero-glow.g3 { width: 380px; height: 380px; bottom: -120px; right: -100px; background: rgba(217, 70, 134, 0.22); }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(75% 65% at 50% 38%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 38%, #000 30%, transparent 100%);
}
.hero-inner { position: relative; text-align: center; max-width: 880px; padding: 0 32px; z-index: 2; }
.hero-logo {
  width: 96px; height: 96px;
  margin: 0 auto 26px;
  mix-blend-mode: screen;
  animation: logoGlow 4.5s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 24px color-mix(in srgb, var(--brand), transparent 45%)); transform: translateY(0); }
  50%      { filter: drop-shadow(0 0 64px color-mix(in srgb, var(--brand), transparent 10%)); transform: translateY(-8px); }
}

/* hero entrance choreography */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(54px) scale(0.96); filter: blur(12px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.hero-inner > * { animation: riseIn 1s cubic-bezier(0.16, 0.84, 0.26, 1) both; }
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.18s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.32s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.5s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.66s; }
@keyframes cardIn { from { opacity: 0; } to { opacity: 1; } }
.float-card { animation: cardIn 0.9s ease 1s backwards; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand), white 45%);
  background: color-mix(in srgb, var(--brand), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--brand), transparent 70%);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, color-mix(in srgb, var(--brand), white 38%), color-mix(in srgb, var(--brand), white 4%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  margin: 24px auto 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(235, 235, 250, 0.62);
  text-wrap: pretty;
}
.hero-ctas { display: flex; justify-content: center; gap: 14px; margin-top: 38px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 14px;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, color-mix(in oklch, var(--brand), white 14%), var(--brand-deep));
  box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--brand), transparent 30%);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -10px color-mix(in srgb, var(--brand), transparent 20%); }
.btn-ghost {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-2px); }

/* floating mini-cards */
.float-card {
  position: absolute;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 12px;
  will-change: transform;
}
.float-card .fc-tile {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.float-card .fc-tile svg { width: 19px; height: 19px; }
.float-card .fc-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.float-card .fc-value { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.fc-1 { top: 24%; left: 6%; }
.fc-2 { top: 18%; right: 7%; }
.fc-3 { bottom: 17%; left: 11%; }
.fc-4 { bottom: 21%; right: 9%; }
@media (max-width: 1100px) { .float-card { display: none; } }

/* ---------- Stat ribbon ---------- */
.ribbon {
  position: relative;
  background: var(--bg-dark);
  padding: 0 0 72px;
}
.ribbon-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}
.ribbon-cell {
  background: var(--bg-dark-2);
  padding: 28px 26px;
  text-align: center;
}
.ribbon-cell strong {
  display: block;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  color: #fff;
}
.ribbon-cell span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(235, 235, 250, 0.45);
}
@media (max-width: 760px) { .ribbon-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Generic section chrome ---------- */
section.light { background: var(--bg-light); padding: 110px 0; position: relative; overflow: hidden; }
section.white { background: var(--surface); padding: 110px 0; position: relative; overflow: hidden; }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.sec-head h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
.sec-head p { margin-top: 16px; font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- Modules grid ---------- */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.mod-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
}
.mod-card:hover { transform: translateY(-9px) scale(1.02); box-shadow: 0 2px 4px rgba(20, 16, 50, 0.04), 0 30px 56px -16px rgba(20, 16, 50, 0.26); }
.mod-tile {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 8px 18px -6px var(--tile-shadow, rgba(0, 0, 0, 0.3));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s;
}
.mod-card:hover .mod-tile {
  transform: scale(1.14) rotate(-7deg) translateY(-3px);
  box-shadow: 0 16px 30px -8px var(--tile-shadow, rgba(0, 0, 0, 0.4));
}
.mod-tile svg { width: 25px; height: 25px; }
.mod-card h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}
.mod-card p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); flex: 1; }
.mod-link {
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.mod-link .arr { transition: transform 0.18s; }
.mod-card:hover .mod-link .arr { transform: translateX(4px); }

.t-red    { background: linear-gradient(140deg, #ff7a5c, #ef3e54); --tile-shadow: rgba(239, 62, 84, 0.45); }
.t-blue   { background: linear-gradient(140deg, #5ea2ff, #2563eb); --tile-shadow: rgba(37, 99, 235, 0.45); }
.t-green  { background: linear-gradient(140deg, #4ade80, #16a34a); --tile-shadow: rgba(22, 163, 74, 0.45); }
.t-purple { background: linear-gradient(140deg, #a78bfa, #7c3aed); --tile-shadow: rgba(124, 58, 237, 0.45); }
.t-teal   { background: linear-gradient(140deg, #2dd4bf, #0d9488); --tile-shadow: rgba(13, 148, 136, 0.45); }
.t-amber  { background: linear-gradient(140deg, #fbbf24, #d97706); --tile-shadow: rgba(217, 119, 6, 0.45); }
.t-sky    { background: linear-gradient(140deg, #38bdf8, #0369a1); --tile-shadow: rgba(3, 105, 161, 0.45); }
.t-orange { background: linear-gradient(140deg, #fb923c, #ea580c); --tile-shadow: rgba(234, 88, 12, 0.45); }

.c-red    { color: #ef3e54; }
.c-blue   { color: #2563eb; }
.c-green  { color: #16a34a; }
.c-purple { color: #7c3aed; }
.c-teal   { color: #0d9488; }
.c-amber  { color: #d97706; }
.c-sky    { color: #0369a1; }
.c-orange { color: #ea580c; }

@media (max-width: 1020px) { .mod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .mod-grid { grid-template-columns: 1fr; } }

/* ---------- Academics band ---------- */
.academics {
  position: relative;
  background:
    radial-gradient(90% 120% at 80% 10%, color-mix(in srgb, var(--brand), transparent 78%) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-dark-2), var(--bg-dark));
  padding: 110px 0 120px;
  overflow: hidden;
  color: #fff;
}
.academics .kicker { color: color-mix(in srgb, var(--brand), white 40%); }
.academics .sec-head h2 { color: #fff; }
.academics .sec-head p { color: rgba(235, 235, 250, 0.6); }
.marquee {
  position: relative;
  margin-top: 14px;
  display: flex;
  gap: 14px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 16px; }
.marquee-track {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  animation: marq 38s linear infinite;
}
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 46s; }
@keyframes marq { to { transform: translateX(calc(-100% - 14px)); } }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  padding: 11px 20px;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }


/* ---------- Roles ---------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.role-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s, border-color 0.2s;
}
.role-card:hover { transform: translateY(-6px) scale(1.02); border-color: color-mix(in srgb, var(--brand), transparent 45%); box-shadow: 0 22px 44px -14px rgba(20, 16, 50, 0.22); }
.role-card:hover .role-icon { transform: scale(1.15) rotate(8deg); }
.role-icon { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.role-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand), transparent 90%);
  color: var(--brand);
}
.role-icon svg { width: 21px; height: 21px; }
.role-card h3 { font-family: var(--font-head); font-size: 16.5px; font-weight: 700; }
.role-card p { margin-top: 5px; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.role-note {
  margin-top: 36px;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.role-note strong { color: var(--ink); }
@media (max-width: 900px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .role-grid { grid-template-columns: 1fr; } }

/* ---------- Workflow ---------- */
.flow { position: relative; }
.flow-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 36px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.flow-step:last-child { border-bottom: 1px solid var(--line); }
.flow-num {
  font-family: var(--font-head);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand), transparent 25%), color-mix(in srgb, var(--brand), transparent 75%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform;
}
.flow-body h3 { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.flow-body p { margin-top: 10px; max-width: 640px; font-size: 15.5px; line-height: 1.68; color: var(--ink-soft); text-wrap: pretty; }
.flow-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.flow-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-light);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
@media (max-width: 700px) { .flow-step { grid-template-columns: 1fr; gap: 10px; } .flow-num { font-size: 44px; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(70% 100% at 50% 0%, color-mix(in srgb, var(--brand), transparent 72%) 0%, transparent 70%),
    var(--bg-dark);
  padding: 130px 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.cta-band img.cta-logo {
  width: 84px; height: 84px;
  margin: 0 auto 28px;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--brand), transparent 40%));
}
.cta-band h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.cta-band p { margin: 18px auto 0; max-width: 540px; font-size: 16.5px; line-height: 1.65; color: rgba(235, 235, 250, 0.6); }
.cta-band .hero-ctas { margin-top: 36px; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 34px 0;
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.8); }
.foot-brand img { width: 28px; height: 28px; mix-blend-mode: screen; }
.foot-brand strong { font-family: var(--font-head); font-size: 14px; font-weight: 600; }
.foot-row p { font-size: 13.5px; color: rgba(235, 235, 250, 0.42); }
.foot-row p a { color: color-mix(in srgb, var(--brand), white 35%); font-weight: 700; }
.foot-row p a:hover { text-decoration: underline; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(70px) scale(0.96);
  filter: blur(10px);
  transition: opacity 0.9s ease, transform 0.95s cubic-bezier(0.16, 0.84, 0.26, 1), filter 0.9s ease;
  will-change: transform, opacity, filter;
}
.reveal.left  { transform: translateX(-90px) scale(0.97); }
.reveal.right { transform: translateX(90px) scale(0.97); }
.reveal.pop   { transform: translateY(50px) scale(0.85); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 80;
  background: linear-gradient(90deg, var(--brand), #38bdf8, #4ade80);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Decorative parallax blobs (light sections) ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}
.blob.b1 { width: 460px; height: 460px; top: -140px; right: -140px; background: color-mix(in srgb, var(--brand), transparent 80%); }
.blob.b2 { width: 400px; height: 400px; bottom: -120px; left: -140px; background: rgba(56, 189, 248, 0.2); }
.blob.b3 { width: 380px; height: 380px; top: 30%; left: -160px; background: rgba(74, 222, 128, 0.16); }
section.light .wrap, section.white .wrap { position: relative; z-index: 1; }

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-ctas { flex-direction: column; align-items: center; }
}
