:root {
  --brand: #0d87fc;
  --brand-2: #4f46e5;
  --brand-dark: #0a4fa0;
  --ink: #0b1324;
  --text: #1e293b;
  --muted: #64748b;
  --bg: #f7f9fc;
  --card: #ffffff;
  --line: #e6ebf2;
  --soft: #eef5ff;
  --glass: rgba(255, 255, 255, .8);
  --nav-bg: rgba(247, 249, 252, .72);
  --placeholder: #e9edf5;
  --chip-bg: #ffffff;
  --tile-glow: #dbeafe;
  --ok-bg: #dcfce7;
  --ok-fg: #15803d;
  --blob-opacity: .55;
  --grid-line: rgba(13, 135, 252, .06);
  --radius: 22px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-dark: #7cc0ff;
    --ink: #f1f5f9;
    --text: #cbd5e1;
    --muted: #94a3b8;
    --bg: #0b1120;
    --card: #111a2e;
    --line: #1f2a44;
    --soft: rgba(13, 135, 252, .16);
    --glass: rgba(17, 26, 46, .78);
    --nav-bg: rgba(11, 17, 32, .75);
    --placeholder: #1a2440;
    --chip-bg: #0b1120;
    --tile-glow: rgba(13, 135, 252, .25);
    --ok-bg: rgba(34, 197, 94, .16);
    --ok-fg: #4ade80;
    --blob-opacity: .22;
    --grid-line: rgba(125, 170, 255, .07);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-dark: #7cc0ff;
  --ink: #f1f5f9;
  --text: #cbd5e1;
  --muted: #94a3b8;
  --bg: #0b1120;
  --card: #111a2e;
  --line: #1f2a44;
  --soft: rgba(13, 135, 252, .16);
  --glass: rgba(17, 26, 46, .78);
  --nav-bg: rgba(11, 17, 32, .75);
  --placeholder: #1a2440;
  --chip-bg: #0b1120;
  --tile-glow: rgba(13, 135, 252, .25);
  --ok-bg: rgba(34, 197, 94, .16);
  --ok-fg: #4ade80;
  --blob-opacity: .22;
  --grid-line: rgba(125, 170, 255, .07);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.02em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(13, 135, 252, .7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(13, 135, 252, .8); }
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-ghost {
  background: var(--glass); color: var(--ink);
  border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(8px);
}
.btn-ghost:hover { box-shadow: var(--shadow); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 23, 42, .3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 18px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--text); font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: background .2s;
}
.nav-links a:hover { background: rgba(13, 135, 252, .08); color: var(--brand); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--blob-opacity); animation: drift 14s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #8ec5ff; top: -160px; right: -120px; }
.b2 { width: 420px; height: 420px; background: #c7c2ff; bottom: -160px; left: -140px; animation-delay: -5s; }
.b3 { width: 300px; height: 300px; background: #a5f3fc; top: 40%; left: 45%; opacity: .35; animation-delay: -9s; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }

.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--brand-dark);
  box-shadow: var(--shadow);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.05; margin: 22px 0 18px; font-weight: 800; }
.grad {
  background: linear-gradient(120deg, var(--brand) 10%, var(--brand-2) 60%, #06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual { position: relative; height: 460px; display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(13, 135, 252, .28); }
.o1 { width: 340px; height: 340px; animation: spin 40s linear infinite; }
.o2 { width: 450px; height: 450px; border-style: solid; border-color: rgba(79, 70, 229, .12); animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-card {
  position: relative; width: 260px; height: 260px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 30px 60px -20px rgba(13, 135, 252, .45), inset 0 0 0 10px rgba(13, 135, 252, .06);
}
.logo-card img { width: 220px; height: 220px; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 18px;
  background: var(--glass); backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; color: var(--ink); font-size: 18px; line-height: 1.1; }
.float-card small { color: var(--muted); font-size: 13px; }
.fc-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); font-size: 20px; }
.fc1 { top: 30px; left: 0; }
.fc2 { bottom: 60px; right: -10px; animation-delay: -2s; }
.fc3 { bottom: 10px; left: 30px; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 12px;
}
.stats > div { text-align: center; padding: 4px 12px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats b { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--ink); }
.stats span { font-size: 28px; font-weight: 800; color: var(--brand); }
.stats p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding-top: 110px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; margin: 10px 0 0; font-weight: 800; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: rgba(13, 135, 252, .08); padding: 6px 12px; border-radius: 999px;
}
.eyebrow.light { color: #fff; background: rgba(255, 255, 255, .14); }

/* Programs */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.program::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 135, 252, .12), transparent 70%);
  transition: transform .4s ease;
}
.program:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(13, 135, 252, .45); }
.program:hover::after { transform: scale(1.4); }
.p-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 20px -8px var(--c2);
}
.p-icon svg { width: 28px; height: 28px; }
.grade {
  display: inline-block; margin-top: 22px; font-size: 13px; font-weight: 700;
  color: var(--brand-dark); background: var(--soft); padding: 4px 10px; border-radius: 999px;
}
.program h3 { font-size: 24px; margin: 10px 0 8px; }
.program p { color: var(--muted); margin: 0; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(190px, auto); gap: 20px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .25s ease;
}
.tile:hover { transform: translateY(-4px); }
.tile h3 { font-size: 21px; margin: 14px 0 6px; }
.tile p { color: var(--muted); margin: 0; }
.t-icon { font-size: 28px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--soft); }
.tile-big {
  grid-row: span 2;
  background: radial-gradient(120% 90% at 100% 0%, var(--tile-glow) 0%, transparent 55%), var(--card);
  display: flex; flex-direction: column;
}
.tile-big h3 { font-size: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }
.chips span { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--chip-bg); border: 1px solid var(--line); }
.tile-wide { grid-column: span 2; display: flex; gap: 20px; align-items: center; }
.tile-wide h3 { margin-top: 0; }
.tile-accent { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: none; }
.tile-accent h3 { color: #fff; }
.tile-accent p { color: rgba(255, 255, 255, .85); }
.tile-accent .t-icon { background: rgba(255, 255, 255, .18); flex: none; }

/* Founder */
.founder {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 32px;
  padding: 28px; box-shadow: var(--shadow);
}
.founder-photo { margin: 0; position: relative; }
.founder-photo img { width: 100%; height: auto; display: block; border-radius: 24px; }
.founder-photo figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(11, 19, 36, .55); backdrop-filter: blur(10px);
}
.founder-text { padding-right: 20px; }
.role-pill {
  display: inline-block; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding: 5px 12px; border-radius: 999px;
}
.founder-text h3 { font-size: clamp(28px, 3.2vw, 38px); margin: 12px 0 10px; }
.founder-text > p { color: var(--muted); margin: 0 0 24px; }
.awards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.awards li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line);
}
.yr {
  flex: none; font-weight: 800; font-size: 14px; color: var(--brand);
  background: var(--soft); padding: 6px 10px; border-radius: 10px;
}
.awards b { display: block; color: var(--ink); }
.awards small { color: var(--muted); font-size: 14px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.member {
  font: inherit; text-align: left; cursor: pointer; padding: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.member[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -20px 0 32px; }
.filters button {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); transition: all .2s;
}
.filters button:hover { border-color: var(--brand); color: var(--brand); }
.filters button.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px -10px rgba(13, 135, 252, .7);
}
.member:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(13, 135, 252, .45); }
.member:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.m-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--placeholder); }
.m-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s ease; }
.member:hover .m-photo img { transform: scale(1.05); }
.m-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.m-body h3 { font-size: 17px; margin: 0; line-height: 1.3; }
.m-role { color: var(--brand); font-weight: 600; font-size: 14px; margin: 4px 0 12px; line-height: 1.35; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags span { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--soft); color: var(--brand-dark); }

/* Bio dialog */
.bio-dialog {
  width: min(760px, calc(100% - 32px)); padding: 0; border: none; border-radius: 28px;
  box-shadow: 0 40px 80px -20px rgba(15, 23, 42, .45); color: var(--text); background: var(--card);
}
.bio-dialog::backdrop { background: rgba(11, 19, 36, .55); backdrop-filter: blur(6px); }
.bio-dialog[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.bd-inner { display: grid; grid-template-columns: 260px 1fr; }
.bd-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; min-height: 320px; }
.bd-text { padding: 32px; }
.bd-text h3 { font-size: 26px; margin: 0; }
.bd-bio p { margin: 0 0 12px; }
.bd-bio ul { padding-left: 18px; margin: 0 0 12px; }
.bd-bio li { margin-bottom: 8px; color: var(--text); }
.close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: var(--glass); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow); z-index: 1;
}

/* Admissions: horizontal scroll */
.hs { position: relative; margin-top: 110px; color: #fff; background: #070f24; }
.hs-sticky {
  position: relative; overflow: hidden; padding: 90px 0 70px;
  background: radial-gradient(120% 120% at 0% 0%, #12306b 0%, #0a1733 55%, #070f24 100%);
}
.hs.pinned .hs-sticky {
  position: sticky; top: 0; height: 100vh; padding: 96px 0 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.hs-bg span { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .4; pointer-events: none; }
.hs-bg span:first-child { width: 560px; height: 560px; background: #0d87fc; top: -260px; right: -140px; }
.hs-bg span:last-child { width: 460px; height: 460px; background: #7c3aed; bottom: -280px; left: -140px; opacity: .3; }
.hs-sticky::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.hs-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hs-head h2 { color: #fff; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; margin: 14px 0 0; font-weight: 800; max-width: 640px; }
.hs-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.hs-count { font-size: 18px; font-weight: 700; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.hs-count b { font-size: 44px; color: #fff; }
.hs-hint { font-size: 13px; color: rgba(255, 255, 255, .5); }
.hs-hint::after { content: " →"; }

.hs-viewport { position: relative; }
.hs-track {
  display: flex; gap: 24px; will-change: transform;
  padding: 10px max(20px, calc((100vw - 1160px) / 2 + 20px));
}
.hs-card {
  position: relative; flex: none; overflow: hidden;
  width: clamp(300px, 34vw, 440px); height: clamp(340px, 56vh, 480px);
  border-radius: 32px; padding: 32px; display: flex; flex-direction: column;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  opacity: .55; transform: scale(.94); transition: opacity .45s ease, transform .45s ease;
}
.hs-card.active { opacity: 1; transform: none; }
.hs-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .25), transparent 55%);
  border: 1px solid rgba(255, 255, 255, .18);
}
.c1 { background: linear-gradient(150deg, #38bdf8, #2563eb); }
.c2 { background: linear-gradient(150deg, #818cf8, #4338ca); }
.c3 { background: linear-gradient(150deg, #2dd4bf, #0e7490); }
.c4 { background: linear-gradient(150deg, #c084fc, #6d28d9); }
.c5 { background: linear-gradient(150deg, #fbbf24, #ea580c); }
.c6 { background: linear-gradient(150deg, #0d87fc, #4f46e5 60%, #7c3aed); }
.hs-num {
  position: absolute; right: 18px; top: -6px; font-size: clamp(120px, 14vw, 190px); font-weight: 800;
  line-height: 1; letter-spacing: -.06em; color: rgba(255, 255, 255, .16);
}
.hs-icon {
  position: relative; width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(10px);
}
.hs-icon svg { width: 36px; height: 36px; }
.hs-card.active .hs-icon { animation: float 3.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-3deg); } }
.hs-text { position: relative; margin-top: auto; }
.hs-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.hs-card h3 { color: #fff; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; margin: 8px 0 10px; }
.hs-card p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 17px; }

.hs-final { background: #fff; color: var(--ink); justify-content: center; }
.hs-final::after { background: radial-gradient(120% 80% at 100% 0%, rgba(13, 135, 252, .12), transparent 60%); border-color: transparent; }
.hs-final h3 { color: #0b1324; margin-top: 22px; }
.hs-final ul { position: relative; margin: 0 0 24px; padding-left: 18px; color: #475569; }
.hs-final li { margin-bottom: 4px; }
.hs-final .btn { position: relative; align-self: flex-start; }
.grant-badge {
  position: relative; flex: none; width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center;
  font-size: 26px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 14px 30px -10px rgba(239, 68, 68, .7);
}
.btn-light { justify-content: center; background: #fff; color: #0b2a5b; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.hs-final .btn-light { background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; box-shadow: 0 14px 30px -12px rgba(34, 158, 217, .8); }

.hs-foot { position: relative; display: flex; align-items: center; gap: 20px; }
.hs-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.hs-bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #38bdf8, #a78bfa); }
.hs-dots { display: flex; gap: 8px; }
.hs-dots button {
  width: 10px; height: 10px; padding: 0; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .25); transition: width .3s, background .3s;
}
.hs-dots button.active { width: 28px; background: #fff; }

/* Not pinned (phones, reduced motion): native swipe */
.hs:not(.pinned) .hs-viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 28px 0 24px;
}
.hs:not(.pinned) .hs-viewport::-webkit-scrollbar { display: none; }
.hs:not(.pinned) .hs-card { scroll-snap-align: center; width: min(82vw, 380px); height: 400px; }
.hs:not(.pinned) .hs-hint::after { content: " ⇆"; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: 56px;
  background: linear-gradient(135deg, #0b2a5b 0%, #0d4fb8 55%, #4f46e5 100%);
  color: #fff; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center;
}
.cta-glow {
  position: absolute; width: 480px; height: 480px; border-radius: 50%; right: -120px; top: -200px;
  background: radial-gradient(circle, rgba(56, 189, 248, .55), transparent 65%);
}
.cta-text { position: relative; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 14px 0 12px; }
.cta p { color: rgba(255, 255, 255, .8); margin: 0; font-size: 17px; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c-card {
  display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); color: #fff; transition: background .2s, transform .2s;
}
a.c-card:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.c-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .16); margin-bottom: 10px; }
.c-icon svg { width: 20px; height: 20px; }
.c-card small { color: rgba(255, 255, 255, .7); font-size: 13px; }
.c-card b { font-size: 16px; word-break: break-word; }

/* Footer */
.footer { margin-top: 100px; padding: 32px 0; border-top: 1px solid var(--line); background: var(--card); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-inner p { margin: 0; color: var(--muted); font-size: 14px; }
.foot-inner > a { font-weight: 600; font-size: 14px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .orbit, .float-card { animation: none; }
}

/* ---------- Privacy page ---------- */
.doc {
  max-width: 820px; margin: 120px auto 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 48px 56px;
}
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 4px; font-weight: 800; }
.doc h2 { font-size: 20px; margin: 34px 0 8px; }
.doc .muted { color: var(--muted); margin: 0 0 24px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { height: 400px; }
  .programs { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-big { grid-row: auto; grid-column: span 2; }
  .founder { grid-template-columns: 1fr; gap: 28px; }
  .founder-text { padding: 0 8px 8px; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .cta { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .stats > div:nth-child(3) { border-left: none; }
  .hero-visual { height: 340px; transform: scale(.82); }
  .bento { grid-template-columns: 1fr; }
  .tile-big, .tile-wide { grid-column: auto; }
  .tile-wide { flex-direction: column; align-items: flex-start; }
  .team { grid-template-columns: 1fr 1fr; gap: 12px; }
  .m-body { padding: 12px; }
  .m-body h3 { font-size: 15px; }
  .founder { padding: 14px; border-radius: 24px; }
  .bd-inner { grid-template-columns: 1fr; }
  .bd-photo { max-height: 300px; min-height: 0; }
  .bd-text { padding: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .doc { padding: 32px 22px; margin-top: 100px; }
  .section { padding-top: 80px; }
}

/* President's visit */
.section-head .sub { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.visit { display: grid; grid-template-columns: 2.2fr 1fr; gap: 16px; }
.visit-main { display: flex; flex-direction: column; gap: 12px; }
.shot {
  position: relative; padding: 0; border: none; cursor: zoom-in; overflow: hidden;
  border-radius: 16px; background: var(--placeholder); display: block; width: 100%;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.05); }
.shot:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.shot-main { aspect-ratio: 3 / 2; border-radius: var(--radius); box-shadow: var(--shadow); }
.shot-cap {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 12px;
  color: #fff; font-size: 14px; font-weight: 600; background: rgba(11, 19, 36, .55); backdrop-filter: blur(10px);
}
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.thumbs .shot { aspect-ratio: 4 / 3; }
.visit-video { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.visit-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox {
  padding: 0; border: none; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(11, 19, 36, .85); backdrop-filter: blur(6px); }
.lightbox img { display: block; max-width: 100%; max-height: 88vh; border-radius: 16px; }
.lightbox[open] { animation: pop .25s ease; }
.lightbox .close { top: -14px; right: -14px; }

@media (max-width: 960px) {
  .visit { grid-template-columns: 1fr; }
  .visit-video { max-width: 380px; width: 100%; margin: 0 auto; aspect-ratio: 9 / 16; }
}
@media (max-width: 640px) {
  .thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .shot-cap { font-size: 12px; left: 10px; bottom: 10px; }
}
.news-date { margin: 10px 0 0; color: var(--muted); font-weight: 600; font-size: 15px; }

/* License */
.license {
  background: var(--card); border: 1px solid var(--line); border-radius: 32px;
  box-shadow: var(--shadow); padding: 40px; position: relative; overflow: hidden;
}
.license::before {
  content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 135, 252, .14), transparent 70%);
}
.lic-main { position: relative; display: flex; gap: 28px; align-items: flex-start; }
.lic-seal {
  flex: none; width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 30px -12px rgba(13, 135, 252, .7);
}
.lic-seal svg { width: 48px; height: 48px; }
.lic-status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ok-fg);
  background: var(--ok-bg); padding: 5px 12px; border-radius: 999px;
}
.license h3 { font-size: clamp(24px, 3vw, 32px); margin: 12px 0 10px; }
.lic-no { color: var(--brand); }
.lic-main p { color: var(--muted); margin: 0 0 22px; max-width: 680px; }
.lic-facts {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 32px 0 0;
}
.lic-facts div { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.lic-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lic-facts dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); line-height: 1.4; }
.lic-note { position: relative; margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.foot-links { display: flex; gap: 18px; }
.foot-links a { font-weight: 600; font-size: 14px; }

@media (max-width: 960px) {
  .lic-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .license { padding: 24px; }
  .lic-main { flex-direction: column; gap: 18px; }
  .lic-seal { width: 64px; height: 64px; border-radius: 18px; }
  .lic-seal svg { width: 34px; height: 34px; }
  .lic-facts { grid-template-columns: 1fr; }
}

/* Language switcher */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: flex; padding: 3px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
}
.lang button {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  border: none; background: none; color: var(--muted);
  padding: 6px 10px; border-radius: 999px; transition: background .2s, color .2s;
}
.lang button:hover { color: var(--brand); }
.lang button.active { background: var(--brand); color: #fff; }
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 480px) {
  .nav-actions .btn-sm { display: none; }
}

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink); transition: color .2s, transform .3s;
}
.theme-toggle:hover { color: var(--brand); transform: rotate(-15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
body, .nav, .program, .tile, .member, .founder, .license, .stats, .footer { transition: background-color .3s, border-color .3s; }

/* Telegram */
.c-tg {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #2aabee, #229ed9); border-color: transparent;
}
a.c-tg:hover { background: linear-gradient(135deg, #36b5f5, #1f93ca); }
.c-tg .c-icon { margin-bottom: 0; flex: none; }
.c-tg div { display: flex; flex-direction: column; flex: 1; }
.c-tg small { color: rgba(255, 255, 255, .85); }
.c-go { font-size: 22px; font-weight: 700; transition: transform .2s; }
a.c-tg:hover .c-go { transform: translateX(4px); }
.tg-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 14px 30px -10px rgba(34, 158, 217, .8); transition: transform .2s;
}
.tg-float:hover { transform: translateY(-3px); }
@media (max-width: 640px) {
  .tg-float { right: 14px; bottom: 14px; padding: 12px; }
  .tg-float span { display: none; }
}

@media (max-width: 640px) {
  .hs { margin-top: 80px; }
  .hs-sticky { padding: 72px 0 56px; }
  .hs-head { flex-direction: column; align-items: flex-start; }
  .hs-meta { flex-direction: row; align-items: baseline; gap: 12px; }
  .hs-count b { font-size: 32px; }
  .hs-card { padding: 26px; }
  .hs-dots { display: none; }
}
.hs.pinned .hs-viewport { cursor: grab; user-select: none; -webkit-user-select: none; }
.hs.dragging .hs-viewport { cursor: grabbing; }
.hs-card img, .hs-card svg { pointer-events: none; }
.hs.pinned .hs-sticky > .wrap { width: 100%; }
