/* ===================== Design tokens ===================== */
:root {
  --navy: #0b1e38;
  --navy-2: #0f2a4a;
  --blue: #0ea5e9;
  --cyan: #22d3ee;
  --gold: #f59e0b;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e6ebf2;
  --tint: #f6f9fc;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 26px rgba(15, 42, 74, 0.07);
  --shadow-lg: 0 22px 50px rgba(15, 42, 74, 0.16);
  --maxw: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', sans-serif; line-height: 1.2; color: var(--navy); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
em { color: var(--blue); font-style: normal; font-weight: 600; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===================== Icons ===================== */
.ic {
  width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ===================== Nav ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 30, 56, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 11px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__brand:hover { text-decoration: none; }
.nav__logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: var(--navy); font-family: 'Poppins'; font-weight: 800; font-size: 14px; flex: none; }
.nav__name { font-weight: 600; color: #fff; font-size: 15px; white-space: nowrap; }
.nav__links { display: flex; gap: 2px; flex-wrap: nowrap; }
.nav__links a { color: #cbd5e1; font-size: 13.5px; font-weight: 500; padding: 8px 11px; border-radius: 8px; transition: all .2s; white-space: nowrap; }
.nav__links a:hover, .nav__links a.active { color: #fff; background: rgba(255,255,255,0.12); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* ===================== Hero ===================== */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 620px at 80% -10%, #14365f 0%, var(--navy) 58%); color: #fff; padding: 70px 24px 92px; }
.hero__bg { position: absolute; inset: 0; background-image: radial-gradient(circle at 15% 25%, rgba(34,211,238,.16), transparent 42%), radial-gradient(circle at 90% 75%, rgba(14,165,233,.18), transparent 45%); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(circle at 40% 30%, #000, transparent 72%); }
.hero__grid { position: relative; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 0.85fr; gap: 44px; align-items: center; }
.hero__eyebrow { display: inline-block; font-size: 12.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--cyan); font-weight: 600; margin-bottom: 16px; border: 1px solid rgba(34,211,238,.35); padding: 6px 14px; border-radius: 999px; }
.hero__title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; color: #fff; letter-spacing: -1px; }
.hero__role { color: var(--cyan); font-weight: 600; font-size: clamp(.95rem, 2vw, 1.1rem); margin-top: 8px; }
.hero__tagline { font-size: clamp(1rem, 1.6vw, 1.12rem); color: #cbd5e1; margin: 16px 0 0; max-width: 560px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #e2e8f0; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 999px; }
.badge .ic { font-size: 15px; color: var(--cyan); }
.badge--gold { background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.5); color: #fde68a; }
.badge--gold .ic { color: var(--gold); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 10px; transition: all .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: var(--navy); box-shadow: 0 8px 24px rgba(34,211,238,.3); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn .ic { font-size: 16px; }
.hero__portrait { justify-self: center; }
.hero__portrait img { width: 260px; height: 320px; object-fit: cover; object-position: center top; border-radius: 20px; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 0 0 6px rgba(34,211,238,.12), var(--shadow-lg); background: #000; }
.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.55); font-size: 22px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ===================== Stat bar ===================== */
.stats { background: var(--navy-2); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 22px 24px; }
.stat { text-align: center; padding: 6px; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-family: 'Poppins'; font-weight: 800; font-size: 1.9rem; color: var(--cyan); line-height: 1; }
.stat__label { font-size: 12.5px; color: #94a3b8; }

/* ===================== Sections ===================== */
.section { padding: 78px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); }
.section__kicker { color: var(--blue); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; }
.section__kicker--light { color: var(--cyan); }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 8px 0 12px; }
.section__title--light { color: #fff; }
.section__lead { color: var(--muted); max-width: 640px; font-size: 1.02rem; margin-bottom: 32px; }

/* ===================== Strengths ===================== */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.strength { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.strength:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.strength__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(34,211,238,.12)); color: var(--blue); font-size: 26px; margin-bottom: 16px; }
.strength h3 { font-size: 1.2rem; margin-bottom: 8px; }
.strength p { color: #475569; font-size: 15px; }

/* ===================== Case study ===================== */
.case { display: grid; grid-template-columns: 0.85fr 1.5fr; gap: 32px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.case__media { position: relative; }
.case__media img { border-radius: 12px; border: 1px solid var(--line); }
.case__photo { margin-top: 14px; }
.case__photo figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; text-align: center; }
.case__tag { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.case__tag .ic { font-size: 14px; }
.case__tag--gold { background: var(--gold); color: var(--navy); }
.case__meta { color: var(--blue); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.case__intro { margin-bottom: 16px; color: #334155; }
.case__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.case__grid h4 { font-size: 14px; margin-bottom: 4px; }
.case__grid p { font-size: 14px; color: #475569; }
.case__prep { position: relative; background: #fffbeb; border-left: 3px solid var(--gold); padding: 12px 16px 12px 44px; border-radius: 8px; font-size: 14.5px; color: #334155; margin-bottom: 18px; }
.case__prep .ic { position: absolute; left: 15px; top: 13px; font-size: 18px; color: var(--gold); }
.case__prep strong { color: var(--navy); }
.case__lesson { position: relative; background: #f0f9ff; border-left: 3px solid var(--blue); padding: 12px 16px 12px 44px; border-radius: 8px; font-size: 14.5px; color: #334155; }
.case__lesson .ic { position: absolute; left: 15px; top: 13px; font-size: 18px; color: var(--blue); }
.case__lesson span { font-weight: 700; color: var(--navy); }

/* ===================== Passion project ===================== */
.project { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; border: 1px solid var(--line); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project__body p { color: #334155; margin-bottom: 14px; }
.ticks { list-style: none; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: #334155; font-size: 15px; }
.ticks .ic { font-size: 18px; color: var(--blue); margin-top: 3px; }

/* ===================== Skills ===================== */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s; }
.skill:hover { transform: translateY(-4px); }
.skill__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(14,165,233,.1); color: var(--blue); font-size: 22px; margin-bottom: 12px; }
.skill h3 { font-size: 1.02rem; margin-bottom: 6px; }
.skill p { font-size: 14px; color: var(--muted); }
.qa { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.qa__title { font-size: 1.2rem; margin-bottom: 14px; }
.qa__title span { color: var(--muted); font-weight: 400; font-size: .92rem; font-family: 'Inter'; }
.qa__list { list-style: none; }
.qa__list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; color: #334155; border-bottom: 1px dashed var(--line); }
.qa__list li:last-child { border-bottom: 0; }
.qa__list .ic { font-size: 20px; color: var(--blue); margin-top: 2px; }

/* ===================== Timeline ===================== */
.timeline { position: relative; padding-left: 28px; margin-bottom: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl { position: relative; margin-bottom: 18px; }
.tl__dot { position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.tl__dot--active { background: var(--blue); box-shadow: 0 0 0 5px rgba(14,165,233,.18); }
.tl__dot--star { background: var(--gold); border-color: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: 9px; }
.tl__dot--star .ic { fill: var(--navy); stroke: var(--navy); }
.tl__card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); }
.tl__card--active { border-color: var(--blue); }
.tl__date { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .5px; }
.tl__card h3 { font-size: 1.05rem; margin: 3px 0; }
.tl__card p { font-size: 14px; color: var(--muted); }

/* FLL card */
.fll { display: flex; gap: 20px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.fll__ic { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: rgba(14,165,233,.1); color: var(--blue); font-size: 26px; }
.fll h3 { font-size: 1.15rem; }
.fll p { color: #475569; font-size: 14.5px; margin-top: 6px; }

/* ===================== Leadership ===================== */
.lead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lead-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.lead-card__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(14,165,233,.1); color: var(--blue); font-size: 24px; margin-bottom: 14px; }
.lead-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.lead-card p { font-size: 14.5px; color: #475569; }

/* ===================== Gallery ===================== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery__item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery__item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: #f1f5f9; }
.gallery__item figcaption { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--navy); font-weight: 600; padding: 10px 12px; }
.gallery__item figcaption .ic { font-size: 15px; color: var(--blue); }

/* ===================== Reflection ===================== */
.reflect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.reflect__col { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 26px; }
.reflect__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(34,211,238,.12); color: var(--cyan); font-size: 23px; margin-bottom: 14px; }
.reflect__col h3 { color: #fff; font-size: 1.08rem; margin-bottom: 8px; }
.reflect__col p { color: #cbd5e1; font-size: 14.5px; }

/* ===================== Footer ===================== */
.footer { background: #061229; color: #94a3b8; padding: 32px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__name { color: #fff; font-family: 'Poppins'; font-weight: 700; font-size: 1.1rem; }
.footer__sub { font-size: 13px; }
.footer__note { font-size: 12.5px; color: #64748b; }

/* ===================== Appendix / courses ===================== */
.courses { display: flex; flex-direction: column; gap: 12px; }
.course { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.course[open] { border-color: var(--blue); }
.course > summary { display: flex; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; }
.course > summary::-webkit-details-marker { display: none; }
.course__code { flex: none; display: grid; place-items: center; min-width: 62px; padding: 6px 10px; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: var(--navy); font-family: 'Poppins'; font-weight: 700; font-size: 13px; }
.course__code--comp { background: linear-gradient(135deg, var(--gold), #fbbf24); }
.course__head { display: flex; flex-direction: column; flex: 1; }
.course__name { font-weight: 600; color: var(--navy); font-size: 1.02rem; }
.course__meta { font-size: 12.5px; color: var(--muted); }
.course__chev { font-size: 20px; color: var(--muted); transition: transform .25s; }
.course[open] .course__chev { transform: rotate(180deg); color: var(--blue); }
.course__topics { list-style: none; padding: 4px 20px 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.course__topics li { position: relative; padding-left: 20px; font-size: 14px; color: #475569; }
.course__topics li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* ===================== TODO marker ===================== */
.todo { background: #fff7ed; border: 1px dashed var(--gold); color: #92400e !important; padding: 8px 10px; border-radius: 6px; font-size: 13px; font-style: italic; }
figcaption.todo { display: block; }

/* ===================== Lightbox ===================== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,18,41,.94); display: none; place-items: center; padding: 32px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero__badges, .hero__cta { justify-content: center; }
  .hero__portrait { order: -1; }
  .hero__portrait img { width: 190px; height: 234px; }
  .strengths, .skills, .lead-grid, .reflect { grid-template-columns: 1fr; }
  .case, .project { grid-template-columns: 1fr; }
  .case__grid { grid-template-columns: 1fr; gap: 12px; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .course__topics { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links { position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); padding: 8px 16px 16px; max-height: 0; overflow: hidden; transition: max-height .3s; flex-wrap: nowrap; }
  .nav__links.open { max-height: 460px; }
  .nav__links a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
}
@media (max-width: 520px) {
  .section { padding: 54px 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; }
  .gallery { grid-template-columns: 1fr; }
  .fll { flex-direction: column; }
}
