/* =========================================================
   Design tokens — al-khwarizmischool.uz uslubida,
   Material 3 motion tizimi bilan boyitilgan
   ========================================================= */
:root {
  /* Colour */
  --primary: #0047AB;
  --primary-600: #1565C0;
  --primary-400: #1E88E5;
  --sky: #3BAAFF;
  --navy: #00265B;
  --navy-900: #001A40;
  --on-primary: #fff;
  --primary-container: #DCE8FF;
  --on-primary-container: #001A40;
  --bg: #F5F7FB;
  --tint: #EEF3FF;
  --surface: #FFFFFF;
  --text: #1C1E26;
  --text-2: #424242;
  --muted: #616161;
  --outline: rgba(189, 189, 189, .4);
  --gold: #F2B705;
  --green: #2E7D32;
  --rose: #D81B60;
  --amber: #EF6C00;

  /* Shape */
  --r-xs: 6px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Elevation */
  --e1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --e2: 0 4px 12px -2px rgba(0, 38, 91, .08), 0 2px 6px -2px rgba(0, 38, 91, .06);
  --e3: 0 12px 28px -6px rgba(0, 38, 91, .16), 0 4px 10px -4px rgba(0, 38, 91, .08);
  --e4: 0 24px 56px -12px rgba(0, 38, 91, .28);

  /* Material 3 motion — easing */
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-std-dec: cubic-bezier(0, 0, 0, 1);
  --ease-std-acc: cubic-bezier(.3, 0, 1, 1);
  --ease-emph: cubic-bezier(.2, 0, 0, 1);
  --ease-emph-dec: cubic-bezier(.05, .7, .1, 1);
  --ease-emph-acc: cubic-bezier(.3, 0, .8, .15);

  /* Material 3 motion — duration */
  --d-short2: 100ms;
  --d-short4: 200ms;
  --d-medium2: 300ms;
  --d-medium4: 400ms;
  --d-long2: 500ms;
  --d-long4: 600ms;
  --d-xlong2: 800ms;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --appbar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--appbar-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3, h4 { color: var(--text); margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal; font-style: normal;
  font-size: 1.25em; line-height: 1;
  display: inline-block; vertical-align: middle;
  letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal;
  direction: ltr; -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  user-select: none;
}

.text-primary { color: var(--primary); }
.text-grad {
  background: linear-gradient(100deg, var(--primary) 10%, var(--sky) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); }

/* ---------- Scroll progress ---------- */
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200; padding: 10px 18px; border-radius: var(--r-sm);
  background: var(--primary); color: #fff; font-weight: 600; transform: translateY(-160%);
  transition: transform var(--d-medium2) var(--ease-emph);
}
.skip-link:focus { transform: none; }

.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--primary), var(--sky));
}

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .88); font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar__info, .topbar__meta { display: flex; gap: 22px; align-items: center; }
.topbar .ms { font-size: 17px; margin-right: 6px; opacity: .8; }

/* ---------- App bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--d-medium2) var(--ease-standard), border-color var(--d-medium2) var(--ease-standard), background var(--d-medium2) var(--ease-standard);
}
.appbar.is-raised { box-shadow: var(--e2); border-color: var(--outline); background: rgba(255, 255, 255, .94); }
.appbar__inner { display: flex; align-items: center; gap: 20px; height: var(--appbar-h); transition: height var(--d-medium4) var(--ease-emph); }
.appbar.is-raised .appbar__inner { height: 64px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 44px; height: 44px; color: var(--primary); display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 100%; height: 100%; transition: transform var(--d-long4) var(--ease-emph); }
.brand:hover .brand__mark svg { transform: rotate(72deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: -.2px; text-transform: uppercase; }
.brand__text small { font-size: 12px; color: var(--muted); }

.nav { position: relative; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: 8px 12px; border-radius: var(--r-full);
  font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: -.3px;
  transition: color var(--d-short4) var(--ease-standard), background var(--d-short4) var(--ease-standard);
}
.nav__link:hover { background: var(--tint); color: var(--primary); }
.nav__link.is-active { color: var(--primary); }
.nav__indicator {
  position: absolute; bottom: -6px; left: 0; height: 3px; width: 0; border-radius: 3px 3px 0 0;
  background: var(--primary); opacity: 0;
  transition: transform var(--d-long2) var(--ease-emph), width var(--d-long2) var(--ease-emph), opacity var(--d-short4) linear;
}

.icon-btn {
  width: 44px; height: 44px; border-radius: var(--r-full); display: inline-grid; place-items: center;
  color: var(--text); position: relative; overflow: hidden;
  transition: background var(--d-short4) var(--ease-standard);
}
.icon-btn:hover { background: rgba(0, 71, 171, .08); }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 52px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 26px; border-radius: var(--r-xs);
  font-weight: 500; font-size: 17px; letter-spacing: -.2px; white-space: nowrap;
  transition: box-shadow var(--d-medium2) var(--ease-standard), transform var(--d-medium2) var(--ease-emph), background var(--d-short4) var(--ease-standard), color var(--d-short4);
}
.btn .ms { font-size: 20px; transition: transform var(--d-medium4) var(--ease-emph); }
.btn:hover .ms { transform: translateX(3px); }
.btn--sm { --btn-h: 42px; padding: 0 20px; font-size: 15px; }
.btn--filled { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px -6px rgba(0, 71, 171, .55); }
.btn--filled:hover { background: var(--primary-600); box-shadow: 0 10px 22px -8px rgba(0, 71, 171, .6); transform: translateY(-1px); }
.btn--outlined { color: var(--primary); box-shadow: inset 0 0 0 1.5px rgba(0, 71, 171, .35); background: rgba(255, 255, 255, .6); }
.btn--outlined:hover { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn--outlined:hover .ms { transform: none; }
.btn:active { transform: translateY(0) scale(.98); }

/* Ripple (Material state layer) */
.ripple { position: relative; overflow: hidden; }
.ripple__wave {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: currentColor; opacity: .18; transform: scale(0);
  animation: ripple var(--d-long4) var(--ease-std-dec) forwards;
}
.btn--filled .ripple__wave { background: #fff; opacity: .28; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Chips / overline ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 10px;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
}
.chip--tonal { background: var(--primary-container); color: var(--on-primary-container); }
.chip .ms { font-size: 19px; color: var(--primary); font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }

.overline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--primary);
  margin-bottom: 14px;
}
.overline::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.overline--light { color: #9FD0FF; }
h2.overline { line-height: 1.4; }

.h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -1px; margin-bottom: 18px; }
.h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; margin-bottom: 10px; }
.lead { font-size: 18px; color: #4B4B4B; line-height: 1.75; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 112px) 0; position: relative; }
.section--white { background: var(--surface); }
.section--tint { background: var(--tint); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .overline { justify-content: center; }
.section-head__sub { font-size: 17px; color: var(--muted); margin: 0; }
.section-head--light .h2 { color: #fff; }
.section-head--light .overline { color: #9FD0FF; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 8vw, 110px); background: var(--bg); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob--1 { width: 520px; height: 520px; background: #C9DCFF; top: -160px; right: -80px; animation: drift 18s var(--ease-standard) infinite alternate; }
.blob--2 { width: 420px; height: 420px; background: #D7F0FF; bottom: -180px; left: -120px; animation: drift 22s var(--ease-standard) infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.08); } }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0, 71, 171, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 71, 171, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; letter-spacing: -1.8px; line-height: 1.06; margin: 20px 0 18px; }
.hero__roles { font-size: 17px; font-weight: 500; color: var(--navy); margin-bottom: 16px; }
.hero__roles { margin-bottom: 14px; }
.hero__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; }
.hero__tags li {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 10px;
  border-radius: var(--r-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--outline), var(--e1);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: box-shadow var(--d-medium2) var(--ease-standard), transform var(--d-medium2) var(--ease-emph);
}
.hero__tags li:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(0, 71, 171, .3), var(--e2); }
.hero__tags .ms { font-size: 18px; color: var(--primary); }
.hero__lead { font-size: 18px; line-height: 1.7; color: #4B4B4B; max-width: 560px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__mini { display: flex; gap: clamp(20px, 4vw, 44px); margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--outline); max-width: 560px; }
.hero__mini div { display: flex; flex-direction: column; }
.hero__mini dt { font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--primary); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero__mini dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

.hero__visual { position: relative; aspect-ratio: 1 / 1.04; max-width: 520px; width: 100%; justify-self: center; }
.portrait {
  position: absolute; inset: 7% 9% 3%; margin: 0; overflow: hidden;
  border-radius: 200px 200px var(--r-lg) var(--r-lg);
  background: linear-gradient(160deg, #dfe9fb, #c4d6f5);
  box-shadow: var(--e4);
}
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 38, 91, .25)); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.04); transition: transform 1.2s var(--ease-emph-dec); }
.hero__visual:hover .portrait img { transform: scale(1.08); }

.orbit { position: absolute; inset: -6%; pointer-events: none; }
.orbit__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(0, 71, 171, .18); animation: spin 60s linear infinite; }
.orbit__ring i { position: absolute; top: 50%; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 6px rgba(59, 170, 255, .18); }
.orbit__ring--2 { inset: 9%; border-style: solid; border-color: rgba(0, 71, 171, .10); animation-duration: 42s; animation-direction: reverse; }
.orbit__ring--2 i { left: auto; right: -5px; top: 30%; width: 10px; height: 10px; background: var(--gold); box-shadow: 0 0 0 5px rgba(242, 183, 5, .2); }
.orbit__ring--3 { inset: -4%; border-color: rgba(0, 71, 171, .08); border-style: dotted; animation-duration: 90s; }
.orbit__ring--3 i { top: -5px; left: 50%; width: 9px; height: 9px; background: var(--primary); box-shadow: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--e3); white-space: nowrap;
  animation: bob 6s var(--ease-standard) infinite alternate;
}
.float-card strong { display: block; font-size: 15px; color: var(--text); line-height: 1.2; }
.float-card small { font-size: 12.5px; color: var(--muted); }
.float-card__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-container); color: var(--primary); }
.float-card__icon .ms { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
.float-card__icon--gold { background: #FFF4D1; color: #B07D00; }
.float-card__icon--green { background: #E3F4E4; color: var(--green); }
.float-card--a { left: -4%; top: 22%; }
.float-card--b { right: -6%; top: 56%; animation-delay: -2s; }
.float-card--c { left: 2%; bottom: 6%; animation-delay: -4s; }
@keyframes bob { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--primary); background: #fff; box-shadow: var(--e2);
  animation: cue 2.4s var(--ease-emph) infinite;
}
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Hero entrance — Material emphasized decelerate, staggered */
.js [data-enter] {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--d-long4) var(--ease-emph-dec), transform var(--d-xlong2) var(--ease-emph-dec);
  transition-delay: calc(var(--d, 0) * 90ms + 120ms);
}
.js .hero__visual[data-enter] { transform: translateY(24px) scale(.94); }
.js .is-loaded [data-enter] { opacity: 1; transform: none; }
.js .float-card { opacity: 0; scale: .6; transition: opacity var(--d-long2) var(--ease-emph-dec), scale var(--d-long4) var(--ease-emph-dec); }
.js .is-loaded .float-card { opacity: 1; scale: 1; }
.is-loaded .float-card--a { transition-delay: 700ms; }
.is-loaded .float-card--b { transition-delay: 860ms; }
.is-loaded .float-card--c { transition-delay: 1020ms; }

/* Scroll reveal */
.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity var(--d-long4) var(--ease-emph-dec), transform var(--d-xlong2) var(--ease-emph-dec);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   BIO
   ========================================================= */
.bio { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.bio__text p { color: #4B4B4B; font-size: 17px; }
.focus-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.focus-list li {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--bg); font-weight: 500; font-size: 15px; color: var(--text);
  transition: background var(--d-medium2) var(--ease-standard), transform var(--d-medium4) var(--ease-emph), opacity var(--d-long4) var(--ease-emph-dec);
}
.focus-list li:hover { background: var(--tint); transform: translateX(4px); }
.focus-list .ms { color: var(--primary); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: var(--e1); flex: none; }

.profile-card {
  position: sticky; top: calc(var(--appbar-h) + 24px);
  background: var(--surface); border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--e3); border: 1px solid var(--outline);
}
.profile-card__head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--outline); }
.profile-card__head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--primary-container); }
.profile-card__head strong { display: block; color: var(--text); font-size: 17px; }
.profile-card__head small { color: var(--primary); font-weight: 500; }
.profile-card__list { margin: 0; }
.profile-card__list div { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px dashed var(--outline); }
.profile-card__list div:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-card__list dt { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.profile-card__list dt .ms { font-size: 18px; color: var(--primary); }
.profile-card__list dd { margin: 0 0 0 26px; font-weight: 600; color: var(--text); font-size: 15px; }

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline { list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 980px; }
.timeline__track { position: absolute; left: 50%; top: 8px; bottom: 8px; width: 3px; translate: -50% 0; background: rgba(0, 71, 171, .12); border-radius: 3px; overflow: hidden; }
.timeline__fill { position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(0); background: linear-gradient(180deg, var(--sky), var(--primary)); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; margin-bottom: 36px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item__node {
  grid-column: 2; justify-self: center; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--primary); box-shadow: 0 0 0 6px var(--tint), var(--e2);
  transition: transform var(--d-long2) var(--ease-emph), background var(--d-medium4), color var(--d-medium4);
  transition-delay: 200ms;
}
.js .tl-item:not(.is-in) .tl-item__node { transform: scale(.3); }
.tl-item__node--now { background: var(--primary); color: #fff; }
.tl-item__node .ms { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
.tl-card {
  grid-row: 1; grid-column: 1; text-align: right;
  background: #fff; border-radius: var(--r-lg); padding: 26px 28px; box-shadow: var(--e2);
  transition: box-shadow var(--d-medium4) var(--ease-standard), transform var(--d-medium4) var(--ease-emph);
}
.tl-card:hover { box-shadow: var(--e3); transform: translateY(-4px); }
.tl-item:nth-of-type(even) .tl-card { grid-column: 3; text-align: left; }
.tl-item:nth-of-type(odd) .tl-card { grid-column: 1; text-align: right; }
.js .tl-item[data-reveal]:nth-of-type(odd) { transform: translateX(-40px); }
.js .tl-item[data-reveal]:nth-of-type(even) { transform: translateX(40px); }
.js .tl-item[data-reveal].is-in { transform: none; }
.tl-card__year { display: inline-block; padding: 4px 12px; border-radius: var(--r-full); background: var(--primary-container); color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .3px; margin-bottom: 10px; }
.tl-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.tl-card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.tl-card--accent { background: linear-gradient(135deg, var(--primary), #0A5BD0); }
.tl-card--accent h3 { color: #fff; }
.tl-card--accent p { color: rgba(255, 255, 255, .82); }
.tl-card--accent .tl-card__year { background: rgba(255, 255, 255, .16); color: #fff; }

/* =========================================================
   STATS
   ========================================================= */
.stats { background: var(--navy); color: #fff; overflow: hidden; }
.stats__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(59, 170, 255, .28), transparent 70%),
    radial-gradient(500px 380px at 5% 100%, rgba(0, 71, 171, .6), transparent 70%);
}
.stats .container { position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  position: relative; padding: 30px 28px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  transition: background var(--d-medium4) var(--ease-standard), transform var(--d-medium4) var(--ease-emph), border-color var(--d-medium4), opacity var(--d-long4) var(--ease-emph-dec);
  overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(240px 160px at var(--mx, 50%) var(--my, 50%), rgba(59, 170, 255, .22), transparent 70%);
  transition: opacity var(--d-medium2) var(--ease-standard);
}
.stat:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); transform: translateY(-6px); }
.stat:hover::before { opacity: 1; }
.stat__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(59, 170, 255, .16); color: #9FD0FF; margin-bottom: 22px; }
.stat__icon .ms { font-size: 26px; font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
.stat__num { display: block; font-size: clamp(40px, 4.4vw, 54px); font-weight: 700; line-height: 1; letter-spacing: -1.5px; color: #fff; font-variant-numeric: tabular-nums; }
.stat__num em { font-style: normal; font-size: .42em; font-weight: 500; letter-spacing: 0; color: #9FD0FF; }
.stat__label { display: block; margin-top: 10px; color: rgba(255, 255, 255, .72); font-size: 15px; }

/* =========================================================
   TABS (shared axis X)
   ========================================================= */
.tabs { background: var(--bg); border-radius: var(--r-xl); padding: 10px; }
.tabs__bar { position: relative; display: flex; gap: 4px; background: #fff; border-radius: 22px; padding: 6px; box-shadow: var(--e1); overflow-x: auto; scrollbar-width: none; }
.tabs__bar::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1; flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 20px; border-radius: 16px; font-weight: 500; font-size: 15px; color: var(--muted);
  transition: color var(--d-medium2) var(--ease-standard);
}
.tab:hover { color: var(--primary); }
.tab.is-active { color: #fff; }
.tab .ms { font-size: 21px; }
.tabs__indicator {
  position: absolute; z-index: 0; top: 6px; left: 0; height: 52px; width: 0; border-radius: 16px;
  background: var(--primary); box-shadow: 0 6px 16px -6px rgba(0, 71, 171, .6);
  transition: transform var(--d-long2) var(--ease-emph), width var(--d-long2) var(--ease-emph);
}
.tabs__panels { position: relative; padding: clamp(24px, 4vw, 48px); overflow: hidden; transition: height var(--d-long2) var(--ease-emph); }
.panel[hidden] { display: none; }
.panel__grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.panel__grid--feature { grid-template-columns: 1fr 1fr; }
.panel p { color: #4B4B4B; font-size: 16.5px; }

.ring-wrap { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; margin-inline: auto; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: #DCE8FF; stroke-width: 16; }
.ring__fg { fill: none; stroke: url(#ringGrad); stroke-width: 16; stroke-linecap: round; stroke-dasharray: 540.35; stroke-dashoffset: 540.35; transition: stroke-dashoffset 1.6s var(--ease-emph-dec); }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__label strong { font-size: 52px; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.ring__label small { color: var(--muted); font-size: 14px; margin-top: 6px; }

.bars { display: grid; gap: 18px; margin-top: 26px; }
.bar__top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 8px; }
.bar__top b { color: var(--text); font-size: 18px; }
.bar__track { height: 12px; border-radius: 12px; background: #DCE8FF; overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #90B4EA; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--ease-emph-dec) .2s; }
.bar__fill--accent { background: linear-gradient(90deg, var(--sky), var(--primary)); transition-delay: .45s; }
.is-animated .bar__fill { transform: scaleX(1); }

.feature-card { position: relative; background: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: var(--e3); overflow: hidden; }
.feature-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 183, 5, .25), transparent 70%); }
.feature-card--blue::after { background: radial-gradient(circle, rgba(59, 170, 255, .25), transparent 70%); }
.feature-card__badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-full); background: #FFF4D1; color: #8A6200; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.feature-card--blue .feature-card__badge { background: var(--primary-container); color: var(--primary); }
.feature-card__badge .ms { font-size: 18px; }
.podium { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: p; }
.podium li { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: var(--r-sm); background: var(--bg); font-size: 15px; }
.podium__lvl { color: var(--text-2); font-weight: 500; }
.podium__res { font-weight: 700; color: var(--primary); }
.podium__res--gold { color: #B07D00; }

.kpi-row { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.kpi { flex: 1 1 160px; padding: 20px; border-radius: var(--r-md); background: #fff; box-shadow: var(--e1); }
.kpi strong { display: block; font-size: 38px; font-weight: 800; color: var(--primary); line-height: 1; }
.kpi span { font-size: 14px; color: var(--muted); }

.system-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sys-card { background: #fff; border-radius: var(--r-lg); padding: 26px 22px; box-shadow: var(--e1); transition: transform var(--d-medium4) var(--ease-emph), box-shadow var(--d-medium4); }
.sys-card:hover { transform: translateY(-6px); box-shadow: var(--e3); }
.sys-card > .ms { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-container); color: var(--primary); font-size: 26px; margin-bottom: 18px; }
.sys-card h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.sys-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* =========================================================
   AWARDS
   ========================================================= */
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; perspective: 1000px; }
.award {
  display: flex; align-items: center; gap: 26px; padding: 32px; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--e2); transform-style: preserve-3d;
  transition: box-shadow var(--d-medium4) var(--ease-standard), opacity var(--d-long4) var(--ease-emph-dec), transform var(--d-xlong2) var(--ease-emph-dec);
}
.award.is-in { transition: box-shadow var(--d-medium4) var(--ease-standard), transform var(--d-medium2) var(--ease-standard); }
.award:hover { box-shadow: var(--e4); }
.award__medal { width: 100px; flex: none; transform: translateZ(30px); }
.award__medal svg { width: 100%; filter: drop-shadow(0 10px 14px rgba(0, 38, 91, .2)); }
.award:hover .award__medal svg { animation: swing 1.2s var(--ease-emph); transform-origin: 50% 0; }
@keyframes swing { 20% { transform: rotate(8deg); } 45% { transform: rotate(-6deg); } 70% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
.award__year { font-size: 13px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.award h3 { margin: 6px 0 4px; }
.award p { margin: 0; color: var(--muted); }

/* =========================================================
   CONTAINER TRANSFORM CARDS
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ct-card {
  text-align: left; display: flex; flex-direction: column; align-items: flex-start;
  padding: 28px 24px 24px; border-radius: var(--r-lg); background: var(--bg); color: var(--text-2);
  border: 1px solid transparent;
  transition: background var(--d-medium2) var(--ease-standard), box-shadow var(--d-medium4) var(--ease-standard), transform var(--d-medium4) var(--ease-emph), border-color var(--d-medium2), opacity var(--d-long4) var(--ease-emph-dec);
}
.js .ct-card[data-reveal]:not(.is-in) { transform: translateY(32px); }
.ct-card:hover { background: #fff; box-shadow: var(--e3); border-color: var(--outline); transform: translateY(-6px); }
.ct-card h3 { font-size: 19px; font-weight: 600; margin: 20px 0 8px; }
.ct-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; flex: 1; }
.ct-card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-container); color: var(--primary); }
.ct-card__icon .ms { font-size: 28px; font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
.ct-card__icon--rose { background: #FCE4EC; color: var(--rose); }
.ct-card__icon--green { background: #E3F4E4; color: var(--green); }
.ct-card__icon--amber { background: #FFF0DD; color: var(--amber); }
.ct-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--primary); }
.ct-card__more .ms { font-size: 18px; transition: transform var(--d-medium4) var(--ease-emph); }
.ct-card:hover .ct-card__more .ms { transform: scale(1.2); }
.ct-card.is-hidden { visibility: hidden; }

.ct-scrim, .scrim { position: fixed; inset: 0; background: rgba(0, 20, 50, .45); z-index: 80; opacity: 0; }
.ct-sheet {
  position: fixed; z-index: 90; background: #fff; overflow: hidden;
  box-shadow: var(--e4); border-radius: var(--r-xl);
}
.ct-sheet__body { padding: 40px; }
.ct-sheet__body .ct-card__icon { margin-bottom: 22px; width: 72px; height: 72px; border-radius: 20px; }
.ct-sheet__body .ct-card__icon .ms { font-size: 36px; }
.ct-sheet__body p { font-size: 17px; color: #4B4B4B; line-height: 1.75; margin: 0; }
.ct-sheet__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--bg); }

/* =========================================================
   MISSION
   ========================================================= */
.mission { background: linear-gradient(160deg, var(--primary) 0%, var(--navy) 70%); color: #fff; overflow: hidden; }
.mission__bg { position: absolute; inset: 0; pointer-events: none; }
.mission__bg .orbit__ring { border-color: rgba(255, 255, 255, .08); width: 900px; height: 900px; inset: auto; right: -300px; top: -300px; }
.mission__bg .orbit__ring--2 { width: 600px; height: 600px; right: -150px; top: -150px; border-color: rgba(255, 255, 255, .06); }
.mission .container { position: relative; }
.mission__quote { max-width: 900px; margin: 0 auto 80px; text-align: center; position: relative; }
.mission__quote .overline { justify-content: center; }
.mission__qicon { font-size: 72px; color: rgba(255, 255, 255, .16); display: block; margin: 0 auto -10px; font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 48; }
.mission blockquote { margin: 0 0 22px; font-size: clamp(22px, 2.8vw, 34px); font-weight: 600; line-height: 1.45; letter-spacing: -.5px; color: #fff; }
.mission cite { font-style: normal; color: #9FD0FF; font-weight: 500; }
.mission__sub { color: #fff; text-align: center; font-size: 22px; font-weight: 600; margin-bottom: 30px; }
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.goal {
  position: relative; padding: 32px 28px; border-radius: var(--r-lg); overflow: hidden;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  transition: background var(--d-medium4) var(--ease-standard), transform var(--d-medium4) var(--ease-emph), opacity var(--d-long4) var(--ease-emph-dec);
}
.goal:hover { background: rgba(255, 255, 255, .12); transform: translateY(-6px); }
.goal__num { position: absolute; right: 20px; top: 8px; font-size: 64px; font-weight: 800; color: rgba(255, 255, 255, .08); line-height: 1; }
.goal__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--primary); font-size: 28px; margin-bottom: 22px; }
.goal h4 { color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.goal p { color: rgba(255, 255, 255, .75); margin: 0; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  background: #fff; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 56px); box-shadow: var(--e3);
  position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 170, 255, .2), transparent 70%); }
.cta p { color: var(--muted); font-size: 17px; margin: 0; }
.cta__places { display: grid; gap: 14px; position: relative; }
.place { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-md); background: var(--bg); transition: background var(--d-medium2), transform var(--d-medium4) var(--ease-emph); }
.place:hover { background: var(--tint); transform: translateX(4px); }
.place__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: #fff; flex: none; }
.place strong { display: block; color: var(--text); }
.place small { color: var(--muted); font-size: 14px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .75); padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__brand { display: flex; align-items: center; gap: 14px; max-width: 520px; }
.brand__mark--light { color: #9FD0FF; width: 52px; height: 52px; }
.footer__brand strong { display: block; color: #fff; font-size: 17px; }
.footer__brand small { font-size: 14px; }
.footer__links { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; }
.footer__links a { padding: 8px 14px; border-radius: var(--r-full); transition: background var(--d-short4), color var(--d-short4); }
.footer__links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 14px; }

/* =========================================================
   FAB & drawer
   ========================================================= */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--primary); color: #fff; box-shadow: var(--e3);
  transform: scale(0); transition: transform var(--d-medium4) var(--ease-emph), box-shadow var(--d-medium2), background var(--d-short4);
}
.fab.is-visible { transform: scale(1); }
.fab:hover { background: var(--primary-600); box-shadow: var(--e4); }
.fab .ms { font-size: 26px; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 85; width: min(340px, 86vw);
  background: #fff; border-radius: var(--r-lg) 0 0 var(--r-lg); padding: 16px; box-shadow: var(--e4);
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(105%); visibility: hidden;
  transition: transform var(--d-long2) var(--ease-emph-acc), visibility 0s linear var(--d-long2);
}
.drawer.is-open { transform: none; visibility: visible; transition: transform var(--d-long2) var(--ease-emph-dec), visibility 0s; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 12px 12px; }
.drawer__head strong { color: var(--text); font-size: 18px; }
.drawer__link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-full); font-weight: 500; color: var(--text-2); transition: background var(--d-short4); }
.drawer__link:hover, .drawer__link.is-active { background: var(--primary-container); color: var(--on-primary-container); }
.drawer__link .ms { color: var(--primary); }
.drawer__cta { margin-top: auto; }
.drawer.is-open .drawer__link { animation: drawerIn var(--d-long2) var(--ease-emph-dec) both; }
.drawer.is-open .drawer__link:nth-of-type(1) { animation-delay: 60ms; }
.drawer.is-open .drawer__link:nth-of-type(2) { animation-delay: 100ms; }
.drawer.is-open .drawer__link:nth-of-type(3) { animation-delay: 140ms; }
.drawer.is-open .drawer__link:nth-of-type(4) { animation-delay: 180ms; }
.drawer.is-open .drawer__link:nth-of-type(5) { animation-delay: 220ms; }
.drawer.is-open .drawer__link:nth-of-type(6) { animation-delay: 260ms; }
.drawer.is-open .drawer__link:nth-of-type(7) { animation-delay: 300ms; }
@keyframes drawerIn { from { opacity: 0; transform: translateX(24px); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav, .hide-md { display: none; }
  .menu-btn { display: inline-grid; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .system-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; order: -1; }
  .bio { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .panel__grid, .panel__grid--feature { grid-template-columns: 1fr; }
  .awards { grid-template-columns: 1fr; }
  .goals { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }

  .timeline__track { left: 28px; }
  .tl-item { grid-template-columns: 56px 1fr; gap: 18px; }
  .tl-item__node { grid-column: 1; grid-row: 1; align-self: start; }
  .tl-item:nth-of-type(n) .tl-card { grid-column: 2; text-align: left; }
  .js .tl-item[data-reveal]:nth-of-type(n) { transform: translateY(32px); }
  .js .tl-item[data-reveal].is-in { transform: none; }
}
@media (max-width: 640px) {
  :root { --appbar-h: 64px; }
  .hide-sm { display: none !important; }
  .topbar__inner { justify-content: center; }
  .brand__text small { display: none; }
  .hero__mini { gap: 18px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .float-card { padding: 8px 12px 8px 8px; }
  .float-card__icon { width: 34px; height: 34px; border-radius: 10px; }
  .float-card strong { font-size: 13px; }
  .float-card small { font-size: 11px; }
  .float-card--a { left: -2%; }
  .float-card--b { right: -2%; }
  .stats__grid, .cards, .system-grid, .focus-list { grid-template-columns: 1fr; }
  .tab { padding: 0 14px; }
  .tab .ms { display: none; }
  .award { flex-direction: column; text-align: center; }
  .ct-sheet__body { padding: 32px 24px; }
  .scroll-cue { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  [data-enter], [data-reveal], .float-card { opacity: 1 !important; transform: none !important; scale: 1 !important; }
}
