:root {
  --bg: rgb(249, 248, 246);
  --ink: rgb(31, 31, 31);
  --body: rgba(31, 31, 31, 0.56);
  --muted: rgba(31, 31, 31, 0.32);
  --card-border: rgba(0, 0, 0, 0.03);
  --navy: #164a68;
  --font: "Verlag", Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================
   Typography Template (reference)
   Based on me.sh/notion spacing/type scale.
   Tokens map onto this file's existing --ink/--body/--font so values
   stay in sync; new work should pull spacing from the gap-* scale below
   rather than eyeballing margins.
   ============================ */
:root {
  --font-heading: "Oswald", "VerlagCondensed", var(--font);
  --font-body: var(--font);

  --color-heading: var(--ink);
  --color-body: var(--body);

  --heading-letter-spacing: 0.66px;
  --body-letter-spacing: normal;

  /* spacing scale */
  --gap-heading-to-paragraph: 24px;
  --gap-section-to-section: 160px;
  --gap-block-loose: 97px; /* looser transitions, e.g. hero -> next row */
  --gap-block-tight: 56px; /* tight transitions, e.g. intro -> hero */
  --gap-final-to-cta: 120px;
}

.heading-hero {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 44px;
  line-height: 46px;
  letter-spacing: var(--heading-letter-spacing);
  color: var(--color-heading);
  margin: 0 0 var(--gap-heading-to-paragraph) 0;
}

.heading-section {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: var(--heading-letter-spacing);
  color: var(--color-heading);
  margin: 0 0 var(--gap-heading-to-paragraph) 0;
}

.paragraph {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: var(--body-letter-spacing);
  color: var(--color-body);
  margin: 0;
}

.content-section {
  margin-bottom: var(--gap-section-to-section);
}
.content-section:last-of-type {
  margin-bottom: var(--gap-final-to-cta);
}
.gap-loose {
  margin-bottom: var(--gap-block-loose);
}
.gap-tight {
  margin-bottom: var(--gap-block-tight);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: max(5vw, calc(-580px + 50vw));
}

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 18px;
}
.eyebrow.muted,
.eyebrow {
  color: var(--muted);
}

h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 46px;
  letter-spacing: 0.66px;
  margin: 0 0 20px;
  color: var(--ink);
}
h1 em {
  font-style: normal;
  color: #b620e0;
  background: linear-gradient(90deg, #32c5ff, #b620e0, #f7b500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.block-head {
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 0.4px;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 640px;
}
.block-head.center {
  margin-inline: auto;
  text-align: center;
}

.body-text {
  color: var(--body);
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
}
.block-sub {
  max-width: 560px;
  margin: 0;
}
.eyebrow.center {
  text-align: center;
}
.block-sub.center {
  margin-inline: auto;
  text-align: center;
}
.lead {
  color: var(--body);
  font-size: 18px;
  line-height: 26px;
  max-width: 540px;
  margin: 0 0 32px;
}

/* ---------- Section header row (title beside content) ---------- */
.edu-header-row {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 32px;
}
.edu-title-left {
  flex: none;
  margin: 0;
  text-align: left;
}
.edu-title-right {
  flex: none;
  margin: 0;
  text-align: right;
}
.edu-header-fill {
  flex: 1;
  min-width: 0;
}
.edu-header-row .hero-card {
  margin-top: 0;
}

/* ---------- Brand / logo ---------- */
.brand {
  position: fixed;
  top: 28px;
  /* aligns with the same content-start x as .container's padding-inline */
  left: calc(max(0px, 50vw - 580px) + max(5vw, 50vw - 580px));
  z-index: 120;
  display: flex;
  align-items: center;
}
.brand img {
  display: block;
  height: 34px;
  width: auto;
  mix-blend-mode: multiply;
}
/* Over the dark hero video the dark-ink signature disappears; invert it
   until the page has scrolled past the hero and back onto the light bg. */
body:has(.hero) .brand:not(.scrolled) img {
  mix-blend-mode: normal;
  filter: brightness(0) invert(1);
}
/* ---------- Nav pill ---------- */
.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  border-radius: 16px;
}
.nav-inner {
  position: relative;
  z-index: 2;
  height: 48px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-radius: 16px;
  white-space: nowrap;
}
/* glass pseudo-element */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  background: linear-gradient(
      rgba(255, 255, 255, 0.12) 10%,
      rgba(255, 255, 255, 0) 86%
    ),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06),
    0 2px 4px -2px rgba(0, 0, 0, 0.1), 0 8px 16px -8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25);
  transition: background 0.24s ease, box-shadow 0.24s ease;
  z-index: 1;
}
/* Over the dark hero video, the light glass pill has almost no contrast
   against the video; swap in a dark-tinted glass until scrolled past it. */
body:has(.hero) .nav:not(.scrolled)::before {
  background: linear-gradient(
      rgba(0, 0, 0, 0.22) 10%,
      rgba(0, 0, 0, 0.04) 86%
    ),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.14),
    0 2px 4px -2px rgba(0, 0, 0, 0.3), 0 8px 16px -8px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- Contact pill (mirrors .nav, right-aligned) ---------- */
.nav-contact {
  left: auto;
  right: calc(max(0px, 50vw - 580px) + max(5vw, 50vw - 580px));
  transform: none;
}
.nav-contact-inner {
  gap: 0;
  padding: 0;
}
.nav-contact-link {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 16px;
  transition: background 0.18s ease;
}
.nav-contact-link:hover {
  background: rgba(31, 31, 31, 0.05);
}
body:has(.hero) .nav-contact:not(.scrolled) .nav-contact-link {
  color: #f5f4f0;
}
body:has(.hero) .nav-contact:not(.scrolled) .nav-contact-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-block;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.18s ease, opacity 0.18s ease;
  line-height: 1;
  white-space: nowrap;
}
.nav-link:hover {
  background: rgba(31, 31, 31, 0.05);
}
body:has(.hero) .nav:not(.scrolled) .nav-link {
  color: #f5f4f0;
}
body:has(.hero) .nav:not(.scrolled) .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-cta:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}
/* glow variant */
.glow {
  position: relative;
  isolation: isolate;
}
.glow::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: linear-gradient(225deg, #32c5ff, #b620e0, #f7b500);
  filter: blur(1em);
  opacity: 0.55;
  z-index: -1;
}
.hero-cta,
.big {
  padding: 14px 26px;
  font-size: 13px;
  border-radius: 12px;
}
.big {
  padding: 16px 34px;
}

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  position: fixed;
  top: 24px;
  right: max(5vw, calc(-580px + 50vw));
  z-index: 130;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06),
    0 2px 4px -2px rgba(0, 0, 0, 0.1), 0 8px 16px -8px rgba(0, 0, 0, 0.06);
}
.ham-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  margin: 0 auto;
}
.ham-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.24s ease, opacity 0.18s ease, top 0.24s ease;
}
.ham-icon span:nth-child(1) {
  top: 0;
}
.ham-icon span:nth-child(2) {
  top: 5px;
}
.ham-icon span:nth-child(3) {
  top: 10px;
}
.menu-open .ham-icon span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.menu-open .ham-icon span:nth-child(2) {
  opacity: 0;
}
.menu-open .ham-icon span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 125;
  padding: 84px max(5vw, 16px) 24px;
  background: rgba(249, 248, 246, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  overflow-y: auto;
}
.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}
.mobile-panel {
  background: #fff;
  border-radius: 12px;
  padding: 8px 20px 20px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.05),
    2.8px 4.2px 10px rgba(0, 0, 0, 0.06), 11px 16px 19px rgba(0, 0, 0, 0.06),
    25px 35px 26px rgba(0, 0, 0, 0.03);
}
.m-flatlist {
  display: flex;
  flex-direction: column;
}
.m-flatlink {
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid rgba(31, 31, 31, 0.08);
}
.m-flatlist a:last-child {
  border-bottom: 0;
}
.mobile-cta {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
}

/* ---------- Hero ---------- */
main {
  padding-top: 140px;
}
.hero {
  position: relative;
  overflow: hidden;
  margin-top: -140px;
  padding-top: 140px;
  padding-bottom: 20px;
  background: #0a0a0c;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 4px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero-text {
  max-width: 480px;
}
.hero-text .eyebrow {
  color: rgba(255, 255, 255, 0.4);
}
.hero-name {
  font-size: 44px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: 0.3px;
  margin: 0 0 12px;
  color: #fff;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.66);
  margin: 0 0 32px;
  max-width: 420px;
}
.hero-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.hero-social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.hero-photo {
  justify-self: end;
  width: 100%;
  max-width: 270px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 2.8px 4.2px 10px rgba(0, 0, 0, 0.16),
    11px 16px 19px rgba(0, 0, 0, 0.14), 25px 35px 26px rgba(0, 0, 0, 0.1),
    44px 63px 31px rgba(0, 0, 0, 0.06);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Bio / achievements strip ---------- */
.bio-section {
  background: var(--bg);
  margin-top: 0;
  padding: 64px 0;
}
.bio-inner {
  max-width: 860px;
}
.bio-eyebrow {
  color: var(--muted);
}
.bio-statement {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0.2px;
  color: var(--ink);
  margin: 0 0 22px;
}
.bio-text {
  font-size: 18px;
  line-height: 27px;
  color: var(--body);
  margin: 0;
  max-width: 640px;
}

/* ---------- Campus photo (sticky/scroll-pan reveal) ---------- */
.campus-photo {
  position: relative;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 2.8px 4.2px 10px rgba(0, 0, 0, 0.06),
    11px 16px 19px rgba(0, 0, 0, 0.06), 25px 35px 26px rgba(0, 0, 0, 0.03),
    44px 63px 31px rgba(0, 0, 0, 0.01);
}
.campus-photo-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Taller than the box so there is vertical range to pan through on scroll. */
  height: 130%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
}
.campus-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.34) 100%
  );
  pointer-events: none;
}
.campus-edu {
  position: absolute;
  inset: 0;
  align-content: center;
  padding: 32px;
}
.campus-edu .edu-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---------- Banner carousel (Teaching & Mentorship) ---------- */
.banner-carousel {
  position: relative;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 2.8px 4.2px 10px rgba(0, 0, 0, 0.06),
    11px 16px 19px rgba(0, 0, 0, 0.06), 25px 35px 26px rgba(0, 0, 0, 0.03),
    44px 63px 31px rgba(0, 0, 0, 0.01);
}
.banner-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.banner-carousel-img.active {
  opacity: 1;
}
.banner-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  transform: translateX(-50%);
}
.banner-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.banner-carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.banner-carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
}
.hero-ascii-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-ascii-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(10, 10, 12, 0.55);
  pointer-events: none;
}
.dot-grid {
  position: absolute;
  top: 40px;
  left: 0;
  width: 46%;
  height: 380px;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.16) 1px,
    transparent 1.4px
  );
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(105deg, #000 20%, transparent 72%);
  mask-image: linear-gradient(105deg, #000 20%, transparent 72%);
  pointer-events: none;
  z-index: 1;
}
.accent-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  z-index: 1;
}
.accent-blue {
  background: #32c5ff;
  top: 96px;
  left: 8%;
}
.accent-orange {
  background: #f7644c;
  top: 150px;
  left: 22%;
}
.accent-yellow {
  background: #f7b500;
  top: 440px;
  left: 12%;
}

/* ---------- Cards ---------- */
.card {
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: #fff;
  box-shadow: 2.8px 4.2px 10px rgba(0, 0, 0, 0.06),
    11px 16px 19px rgba(0, 0, 0, 0.06), 25px 35px 26px rgba(0, 0, 0, 0.03),
    44px 63px 31px rgba(0, 0, 0, 0.01);
  overflow: hidden;
}
.hero-card {
  margin-top: 24px;
}
.wide-card {
  margin-top: 34px;
}

/* Fake app UI */
.app {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
  background: #fff;
}
.app-side {
  border-right: 1px solid rgba(31, 31, 31, 0.06);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(249, 248, 246, 0.5);
}
.app-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #32c5ff, #b620e0);
  margin-bottom: 16px;
}
.app-navrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--body);
  padding: 8px 10px;
  border-radius: 8px;
}
.app-navrow.active {
  background: rgba(31, 31, 31, 0.05);
  color: var(--ink);
  font-weight: 500;
}
.app-navrow .d {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.app-main {
  padding: 22px 26px;
}
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(31, 31, 31, 0.06);
  margin-bottom: 18px;
}
.app-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.chips {
  display: flex;
  gap: 6px;
}
.chip {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(31, 31, 31, 0.08);
}
.app-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(249, 248, 246, 0.7);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.bar {
  height: 8px;
  border-radius: 6px;
  background: rgba(31, 31, 31, 0.1);
}
.pill {
  margin-left: auto;
  width: 42px;
  height: 16px;
  border-radius: 8px;
  background: rgba(31, 31, 31, 0.07);
  flex: none;
}
.w40 { width: 40%; }
.w50 { width: 50%; }
.w60 { width: 60%; }
.w70 { width: 70%; }
.w75 { width: 75%; }
.w80 { width: 80%; }

/* ---------- Education (pricing-style cards) ---------- */
:root {
  --orange: rgb(251, 114, 50);
  --edu-card-fill: rgba(149, 149, 149, 0.06);
  --edu-card-border: rgb(236, 234, 232);
}
.edu {
  margin-top: 100px;
  margin-bottom: 44px;
}
.edu-title {
  font-family: "Oswald", "Verlag Condensed", var(--font);
  font-size: 40px;
  font-weight: 700;
  line-height: 46px;
  letter-spacing: 0.4px;
  text-align: center;
  color: var(--ink);
  margin: 0 0 14px;
}
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.edu-card {
  padding: 22px 24px 26px;
}
.edu-eyebrow {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
}
.edu-degree {
  font-family: "Playfair Display", "ChronicleText", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 40px;
  color: var(--ink);
  margin: 0 0 18px;
}
.edu-track {
  display: block;
  font-size: 24px;
  line-height: 30px;
  color: rgba(31, 31, 31, 0.75);
}
.edu-school {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.edu-dates {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(31, 31, 31, 0.4);
}

/* ---------- Project preview cards ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 34px 0 0;
}
.proj-grid-sm {
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin: 0 auto;
}
.proj-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: #fff;
  box-shadow: 2.8px 4.2px 10px rgba(0, 0, 0, 0.06),
    11px 16px 19px rgba(0, 0, 0, 0.06), 25px 35px 26px rgba(0, 0, 0, 0.03),
    44px 63px 31px rgba(0, 0, 0, 0.01);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.proj-card:hover {
  transform: translateY(-3px);
}
.proj-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proj-card-tags .project-tag {
  font-size: 10.5px;
  padding: 5px 10px;
}
.proj-card-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 25px;
  color: var(--ink);
  margin: 0;
}
.proj-card-sm .proj-card-title {
  font-size: 16px;
  line-height: 22px;
}
.proj-card-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.proj-card-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(249, 248, 246, 0.94);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}
.proj-card:hover .proj-card-btn {
  transform: translateY(-1px);
  background: #fff;
}
.proj-card-btn svg {
  width: 10px;
  height: 10px;
}

/* ---------- Mini dev-mockup graphics (coded, not images) ---------- */
.mini-window {
  --cw-bg: #121212;
  --cw-panel: #1a1a1a;
  --cw-border: #2b2b2b;
  --cw-text: #abb2bf;
  --cw-dim: #5c6370;
  --cw-muted: #7f848e;
  --s-head: #e06c75;
  --s-green: #98c379;
  --s-blue: #61afef;
  --s-orange: #d19a66;
  --s-yellow: #e5c07b;
  --s-purple: #c678dd;
  background: var(--cw-bg);
}
.mini-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: var(--cw-panel);
  border-bottom: 1px solid var(--cw-border);
}
.mw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.mw-red {
  background: #ff5f57;
}
.mw-yellow {
  background: #febc2e;
}
.mw-green {
  background: #28c840;
}
.mini-window-label {
  margin-left: 6px;
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 11px;
  color: var(--cw-muted);
}
.mini-window-body {
  padding: 14px 16px;
  height: 156px;
  font-family: "Fira Code", "JetBrains Mono", "SF Mono", ui-monospace, Menlo,
    Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  overflow: hidden;
}
.proj-card-sm .mini-window-body {
  height: 118px;
  font-size: 11px;
}
.mw-line {
  color: var(--cw-text);
  white-space: pre-wrap;
}
.mw-prompt {
  color: var(--s-green);
}
.mw-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: var(--cw-text);
  margin-left: 2px;
  vertical-align: -2px;
  animation: mw-blink 1s step-end infinite;
}
@keyframes mw-blink {
  50% {
    opacity: 0;
  }
}
.mw-eval-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--cw-text);
  padding: 4px 0;
  border-top: 1px solid var(--cw-border);
}
.mw-eval-row:first-of-type {
  border-top: none;
}
.mw-eval-badge {
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 1.5px 7px;
  border-radius: 4px;
}
.mw-eval-pass {
  background: rgba(152, 195, 121, 0.16);
  color: var(--s-green);
}
.mw-eval-fail {
  background: rgba(224, 108, 117, 0.16);
  color: var(--s-head);
}
.mw-eval-warn {
  background: rgba(229, 192, 123, 0.16);
  color: var(--s-yellow);
}

/* ---------- More projects (project detail pages) ---------- */
.more-projects {
  margin-top: 120px;
  padding-bottom: 20px;
}

/* ---------- Project detail pages ---------- */
.project-page {
  padding-bottom: 100px;
}
.project-page-inner {
  max-width: 760px;
}
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  margin-bottom: 32px;
  transition: color 0.15s ease;
}
.project-back:hover {
  color: var(--ink);
}
.contact-back {
  margin-left: 48px;
}
.project-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 46px;
  letter-spacing: 0.3px;
  color: var(--ink);
  margin: 0 0 20px;
}
.project-title.center {
  margin-inline: auto;
  text-align: center;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.project-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(251, 114, 50, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
}
.project-full-desc {
  font-size: 18px;
  line-height: 28px;
  color: var(--body);
  max-width: 720px;
  margin-top: 64px;
}
.project-full-desc.center {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Project detail pages: wide breakout ---------- */
/* Lets the code window / tools strip / feature block run wider than the
   760px reading column without widening the title, tags, or description. */
.project-wide {
  width: 100%;
  max-width: 900px;
  margin: 8px 0 0;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* ---------- Project detail pages: tools strip ---------- */
.tools-strip {
  margin: 40px 0 0;
}
.tools-strip-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 0 16px;
}
.tools-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.tools-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: tools-scroll 22s linear infinite;
}
.tools-marquee:hover .tools-track {
  animation-play-state: paused;
}
.tool-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  flex: none;
}
.tool-logo {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
}
.tool-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: rgba(251, 114, 50, 0.12);
  color: var(--orange);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
@keyframes tools-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Project detail pages: headline / paragraph / stats ---------- */
.project-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px 48px;
  margin: 56px 0 0;
  padding-top: 48px;
  border-top: 1px solid var(--card-border);
}
.feat-headline {
  font-family: "Playfair Display", "ChronicleText", Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 38px;
  color: var(--ink);
  margin: 0;
}
.feat-para {
  font-size: 16px;
  line-height: 25px;
  color: var(--body);
  margin: 0;
  padding-top: 4px;
}
.feat-stats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 8px;
}
.feat-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feat-stat-value {
  font-family: "Oswald", "Verlag Condensed", var(--font);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ink);
}
.feat-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
}

/* ---------- VS Code editor card (Projects) ---------- */
/* True black night-mode theme, One Dark-inspired syntax colors */
.code-window {
  --cw-bg: #121212;
  --cw-panel: #1a1a1a;
  --cw-border: #2e2e2e;
  --cw-text: #abb2bf;
  --cw-dim: #5c6370;
  --cw-muted: #7f848e;
  --s-head: #e06c75;
  --s-green: #98c379;
  --s-blue: #61afef;
  --s-orange: #d19a66;
  --s-yellow: #e5c07b;
  --s-purple: #c678dd;
  --s-cyan: #56b6c2;
  background: var(--cw-bg);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 2.8px 4.2px 10px rgba(0, 0, 0, 0.12),
    11px 16px 19px rgba(0, 0, 0, 0.1), 25px 35px 26px rgba(0, 0, 0, 0.06),
    44px 63px 31px rgba(0, 0, 0, 0.03);
  color: var(--cw-text);
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
}

/* macOS app menu bar */
.cw-menubar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 30px;
  padding: 0 16px;
  background: var(--cw-panel);
  border-bottom: 1px solid var(--cw-border);
  color: var(--cw-muted);
  font-size: 12px;
}
.cw-menu-logo {
  display: flex;
  color: var(--orange);
  margin-right: -4px;
}
.cw-menu-app {
  color: var(--cw-text);
  font-weight: 600;
  margin-right: 6px;
}

/* title bar */
.cw-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  background: var(--cw-panel);
  border-bottom: 1px solid var(--cw-border);
  padding: 0 14px;
}
.cw-traffic {
  display: flex;
  gap: 8px;
}
.cw-traffic span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.tl-red {
  background: #ff5f57;
}
.tl-yellow {
  background: #febc2e;
}
.tl-green {
  background: #28c840;
}
.cw-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--cw-muted);
  font-size: 12px;
  pointer-events: none;
}

.cw-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 420px;
}

/* sidebar */
.cw-sidebar {
  padding: 8px 0 10px;
  overflow: hidden;
  border-right: 1px solid var(--cw-border);
}
.cw-explorer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--cw-muted);
  padding: 4px 10px 10px 16px;
}
.cw-explorer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.cw-explorer-actions svg {
  width: 14px;
  height: 14px;
  color: var(--cw-muted);
}
.cw-tree {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
.cw-folder,
.cw-file {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3.5px 10px 3.5px 16px;
  color: var(--cw-text);
  cursor: pointer;
  white-space: nowrap;
}
.cw-file {
  padding-left: 30px;
}
.cw-file-cfg {
  padding-left: 16px;
}
.cw-folder:hover,
.cw-file:hover {
  background: rgba(255, 255, 255, 0.04);
}
.cw-file.active {
  background: rgba(97, 175, 239, 0.12);
  color: #ffffff;
  font-weight: 600;
}
.cw-chev {
  color: var(--cw-dim);
  width: 10px;
  display: inline-block;
}
.md-ic {
  color: var(--s-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -1px;
  display: inline-flex;
  flex: none;
}
.cw-gitdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--s-green);
  margin-left: 4px;
}
.cw-modbadge {
  margin-left: auto;
  padding-left: 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--s-yellow);
  flex: none;
}
.cfg-ic {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
.cfg-env {
  border-radius: 50%;
  background: var(--s-yellow);
}
.cfg-git {
  transform: rotate(45deg);
  background: var(--s-orange);
}
.cfg-lint {
  border-radius: 50%;
  border: 1.5px solid var(--s-purple);
  background: none;
}
.ts-ic {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--s-blue);
  color: #10151c;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* main pane */
.cw-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--cw-bg);
}
.cw-tabs {
  display: flex;
  align-items: stretch;
  background: var(--cw-panel);
  height: 34px;
  overflow: hidden;
  border-bottom: 1px solid var(--cw-border);
}
.cw-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  font-size: 12.5px;
  color: var(--cw-muted);
  border-right: 1px solid var(--cw-border);
  white-space: nowrap;
}
.cw-tab.active {
  color: #ffffff;
  font-weight: 600;
  background: var(--cw-bg);
  box-shadow: inset 0 1.5px 0 var(--s-head);
}
.cw-x {
  color: var(--cw-dim);
  margin-left: 4px;
  font-size: 14px;
}
.cw-tabbar-fill {
  flex: 1;
}
.cw-tabbar-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: var(--cw-dim);
  flex: none;
}
.cw-tabbar-icons svg {
  width: 15px;
  height: 15px;
}
.cw-spark {
  color: var(--orange);
}
.cw-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  font-size: 12px;
  color: var(--cw-muted);
  background: var(--cw-panel);
  border-bottom: 1px solid var(--cw-border);
}
.cw-breadcrumb span {
  opacity: 0.7;
}

.cw-editor {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
  max-height: 360px;
  font-family: "Fira Code", "JetBrains Mono", "SF Mono", ui-monospace, Menlo,
    Consolas, monospace;
}
.cw-line {
  display: flex;
  align-items: flex-start;
}
.cw-ln {
  flex: none;
  width: 44px;
  text-align: right;
  padding-right: 16px;
  color: var(--cw-dim);
  user-select: none;
  font-size: 12px;
  line-height: 1.6;
}
.cw-code {
  flex: 1;
  padding-right: 20px;
  min-height: 1.6em;
  line-height: 1.6;
  word-break: break-word;
}
.s-mark {
  color: var(--cw-dim);
}
.s-h1 {
  color: var(--s-head);
  font-weight: 700;
}
.s-head {
  color: var(--s-head);
  font-weight: 700;
}
.s-text {
  color: var(--cw-text);
}
.s-green {
  color: var(--s-green);
}
.s-blue {
  color: var(--s-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.s-orange {
  color: var(--s-orange);
}

/* status bar */
.cw-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 26px;
  padding: 0 12px;
  background: var(--cw-bg);
  border-top: 1px solid var(--cw-border);
  color: var(--cw-muted);
  font-size: 11px;
  overflow: hidden;
}
.cw-st-left,
.cw-st-center,
.cw-st-right {
  display: flex;
  align-items: center;
  gap: 13px;
  white-space: nowrap;
}
.cw-st-center {
  flex: 1;
  justify-content: center;
}
.cw-branch {
  color: var(--cw-text);
  font-weight: 500;
}
.cw-sync {
  color: var(--cw-muted);
}
.cw-diag {
  display: flex;
  align-items: center;
  gap: 3px;
}
.cw-diag-warn {
  color: var(--s-yellow);
}
.cw-checkitem {
  color: var(--s-green);
}
.cw-bell {
  filter: grayscale(1) brightness(1.4);
  font-size: 10px;
}

/* ---------- Entrepreneurship (carousel) ---------- */
.vent-switcher {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}
.vent-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.vent-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.vent-item:hover {
  background: rgba(31, 31, 31, 0.04);
}
.vent-item.active {
  background: #fff;
  border-color: var(--card-border);
  box-shadow: 2.8px 4.2px 10px rgba(0, 0, 0, 0.06),
    11px 16px 19px rgba(0, 0, 0, 0.04);
}
.vent-item-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
  color: rgba(31, 31, 31, 0.55);
  transition: color 0.15s ease;
}
.vent-item.active .vent-item-title {
  color: var(--ink);
}
.vent-item-dates {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.vent-item.active .vent-item-dates {
  color: var(--orange);
}
.vent-panel-wrap {
  min-height: 300px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: #fff;
  box-shadow: 2.8px 4.2px 10px rgba(0, 0, 0, 0.06),
    11px 16px 19px rgba(0, 0, 0, 0.06), 25px 35px 26px rgba(0, 0, 0, 0.03),
    44px 63px 31px rgba(0, 0, 0, 0.01);
  padding: 30px;
}
.vent-panels {
  min-width: 0;
}
.vent-panel {
  display: none;
}
.vent-panel.active {
  display: flex;
  flex-direction: column;
  animation: ocFadeIn 0.2s ease;
}
.vent-panel-eyebrow {
  align-self: flex-end;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
}
.vent-panel-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.vent-panel-desc {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--body);
}

/* ---------- Community Outreach (role tab switcher) ---------- */
.oc-tabs {
  display: flex;
  justify-content: center;
  margin: 8px auto 40px;
}
.oc-tabs-track {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: rgba(31, 31, 31, 0.06);
  border-radius: 12px;
  padding: 6px;
  justify-content: center;
}
.oc-tab {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(31, 31, 31, 0.5);
  padding: 10px 18px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.oc-tab:hover {
  color: var(--ink);
}
.oc-tab.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(0, 0, 0, 0.03);
}
.oc-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 34px 38px 38px;
  text-align: left;
}
.oc-panel {
  display: none;
  position: relative;
}
.oc-panel.active {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  animation: ocFadeIn 0.2s ease;
}
@keyframes ocFadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.oc-date {
  position: absolute;
  top: 2px;
  right: 0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.oc-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 0 0 4px #fff;
}
.oc-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.oc-panel-body {
  min-width: 0;
}
.oc-role {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
}
.oc-meta {
  margin: 4px 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
}
.oc-desc {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--body);
}

/* ---------- Technical Skills & Background (node graph) ---------- */
.skills-panel {
  position: relative;
  margin-top: 8px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: #0a0a0f;
  box-shadow: 2.8px 4.2px 10px rgba(0, 0, 0, 0.12),
    11px 16px 19px rgba(0, 0, 0, 0.1), 25px 35px 26px rgba(0, 0, 0, 0.06),
    44px 63px 31px rgba(0, 0, 0, 0.03);
}
.skills-graph {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  cursor: grab;
  touch-action: none;
}
.skills-graph:active {
  cursor: grabbing;
}
.skills-legend {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  pointer-events: none;
}
.skills-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.skills-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.skills-legend-language {
  background: #0066ff;
}
.skills-legend-framework {
  background: #00d97e;
}
.skills-legend-domain {
  background: #ff6b35;
}
.skills-legend-tool {
  background: #8b5cf6;
}
.skills-hint {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

/* ---------- Feature link card (Teaching & Mentorship banner) ---------- */
.feature-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 56px 0;
  padding: 26px 30px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: #fff;
  box-shadow: 2.8px 4.2px 10px rgba(0, 0, 0, 0.06),
    11px 16px 19px rgba(0, 0, 0, 0.06), 25px 35px 26px rgba(0, 0, 0, 0.03),
    44px 63px 31px rgba(0, 0, 0, 0.01);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-link-card:hover {
  transform: translateY(-2px);
}
.feature-link-text {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}
.feature-link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(31, 31, 31, 0.05);
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.feature-link-card:hover .feature-link-arrow {
  background: var(--ink);
  color: #fff;
  transform: translateX(3px);
}

/* ---------- Résumé timeline (hero card) ---------- */
.timeline {
  padding: 26px 32px 30px;
}
.tl-track {
  position: relative;
}
.tl-track::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 26px;
  bottom: 26px;
  width: 1.5px;
  background: rgba(31, 31, 31, 0.08);
}
.tl-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  column-gap: 18px;
  row-gap: 5px;
  align-items: start;
  padding: 15px 0;
}
.tl-logo {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px #fff;
  flex: none;
}
.tl-logo svg,
.tl-logo img {
  display: block;
  width: 100%;
  height: 100%;
}
.tl-logo img {
  object-fit: cover;
}
.tl-line {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  line-height: 21px;
  color: var(--body);
  padding-top: 4px;
}
.tl-line strong {
  color: var(--ink);
  font-weight: 600;
}
.tl-verb {
  color: var(--body);
}
.tl-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(31, 31, 31, 0.25);
  transition: text-decoration-color 0.15s ease;
}
.tl-link:hover {
  text-decoration-color: var(--ink);
}
.tl-meta {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}
.tl-date {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.tl-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(31, 31, 31, 0.06);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  flex: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease;
}
.tl-toggle:hover {
  background: rgba(31, 31, 31, 0.1);
  color: var(--ink);
}
.tl-toggle.active {
  transform: rotate(180deg);
  color: var(--ink);
  background: rgba(31, 31, 31, 0.1);
}
.tl-desc {
  display: none;
  grid-column: 2 / 4;
  grid-row: 2;
  min-width: 0;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--body);
}
.tl-desc.active {
  display: block;
  animation: ocFadeIn 0.2s ease;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.home-tile {
  background: rgba(249, 248, 246, 0.7);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 90px;
}
.home-tile.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
}
.tile-num {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
}

/* colored dots */
.d-blue, .dot-blue { background: #32c5ff; }
.d-orange, .dot-orange { background: #f7644c; }
.d-yellow, .dot-yellow { background: #f7b500; }
.d-green, .dot-green { background: #22c55e; }
.d-purple, .dot-purple { background: #b620e0; }

/* ---------- Sections ---------- */
.block {
  margin-top: 120px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-num {
  font-size: 37px;
  font-weight: 400;
  line-height: 40px;
  color: var(--ink);
}
.stat-cap {
  max-width: 240px;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  max-width: 560px;
}
.feature-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(31, 31, 31, 0.08);
}

/* Press row */
.press-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 8px;
}
.press-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: rgba(31, 31, 31, 0.3);
  filter: grayscale(1);
}

/* CTA block */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-top: 60px;
  padding-bottom: 40px;
}
.cta-block .big {
  margin-top: 22px;
}

/* ---------- Get in touch (contact page form) ---------- */
.contact-section {
  margin-top: 0;
  padding: 24px 0 100px;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-title {
  font-family: "Oswald", "Verlag Condensed", var(--font);
  font-size: 56px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin: 0 0 22px;
}
.contact-text {
  font-size: 18px;
  line-height: 28px;
  color: var(--body);
  max-width: 440px;
  margin: 0;
}

/* Contact form */
.contact-form {
  margin-top: 36px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cf-field {
  background: rgba(31, 31, 31, 0.03);
  border: 1px solid rgba(31, 31, 31, 0.12);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cf-field:focus-within {
  border-color: rgba(31, 31, 31, 0.35);
  background: rgba(31, 31, 31, 0.05);
}
.cf-field input,
.cf-field textarea {
  width: 100%;
  border: 0;
  background: none;
  outline: none;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  resize: vertical;
}
.cf-field textarea {
  min-height: 90px;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--muted);
}

/* ---------- Contact teaser (home page, below Projects) ---------- */
.contact-teaser {
  background: #000;
  margin-top: 120px;
  padding: 92px 0 116px;
}
.contact-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-teaser-title {
  font-family: "Oswald", "Verlag Condensed", var(--font);
  font-size: 56px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 0 0 22px;
}
.contact-teaser-text {
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.66);
  max-width: 440px;
  margin: 0 0 28px;
}
.contact-teaser-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 28px;
  border-radius: 10px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.contact-teaser-cta:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}
.cf-submit {
  align-self: flex-start;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 22px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Fira Code", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.cf-submit:hover {
  opacity: 0.9;
}
.cf-submit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Letterpress business card */
.bizcard {
  background: #f4f1ea;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  max-width: 470px;
  margin-left: auto;
  transform: rotate(-1.6deg);
  transition: transform 0.35s ease;
}
.bizcard:hover {
  transform: rotate(0deg);
}
.bizcard-inner {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 30px 36px;
  font-family: "Playfair Display", "ChronicleText", Georgia, serif;
  color: #46443f;
}
.bc-email {
  align-self: flex-end;
  font-size: 13px;
  letter-spacing: 1px;
  font-variant: small-caps;
  color: #46443f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.bc-email:hover {
  color: #1f1e1b;
}
.bc-center {
  margin: auto 0;
  text-align: center;
}
.bc-name {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  font-variant: small-caps;
  letter-spacing: 2px;
  color: #3c3a35;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85),
    0 -0.5px 0 rgba(0, 0, 0, 0.06);
}
.bc-sur {
  font-size: 1.12em;
  letter-spacing: 3px;
}
.bc-role {
  margin: 10px 0 0;
  font-size: 15px;
  font-variant: small-caps;
  letter-spacing: 2px;
  color: #5c5a53;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.bc-location {
  text-align: center;
  margin: 0;
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 1.5px;
  color: #55534c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 72px 0 32px;
}
.footer-glow {
  display: none;
}
.footer-inner {
  position: relative;
  z-index: 1;
}
.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-name {
  margin: 0 0 14px;
  font-size: 27px;
  line-height: 1;
}
.footer-name-first {
  font-family: "Oswald", "Verlag Condensed", var(--font);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  text-transform: uppercase;
}
.footer-name-last {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
}
.footer-tagline {
  margin: 0;
  max-width: 420px;
  font-family: "Fira Code", "JetBrains Mono", ui-monospace, Menlo, Consolas,
    monospace;
  font-size: 13.5px;
  line-height: 21px;
  color: var(--body);
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-email {
  font-family: "Fira Code", "JetBrains Mono", ui-monospace, Menlo, Consolas,
    monospace;
  font-size: 13.5px;
  color: rgba(31, 31, 31, 0.7);
  transition: color 0.15s ease;
}
.footer-email:hover {
  color: var(--ink);
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: rgba(31, 31, 31, 0.45);
  transition: color 0.15s ease, background 0.15s ease;
}
.footer-social:hover {
  color: var(--ink);
  background: rgba(31, 31, 31, 0.06);
}
.footer-rule {
  margin: 40px 0 20px;
  height: 1px;
  background: rgba(31, 31, 31, 0.1);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "Fira Code", "JetBrains Mono", ui-monospace, Menlo, Consolas,
    monospace;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .vent-switcher {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .vent-panel-wrap {
    padding: 24px;
    min-height: 0;
  }
  .feature-link-card {
    padding: 20px 22px;
    margin: 40px 0;
  }
  .feature-link-text {
    font-size: 16px;
  }
  .feature-link-arrow {
    width: 38px;
    height: 38px;
  }
  .brand {
    top: 32px;
  }
  .hamburger {
    display: block;
  }
  main {
    padding-top: 110px;
  }
  .hero {
    margin-top: -110px;
    padding-top: 110px;
  }
  .accent-dot {
    display: none;
  }
  h1 {
    font-size: 32px;
    line-height: 38px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 24px;
  }
  .hero-photo {
    justify-self: center;
    order: -1;
    max-width: 180px;
  }
  .hero-text {
    max-width: 100%;
    text-align: center;
  }
  .hero-name {
    font-size: 32px;
    line-height: 38px;
  }
  .hero-subtitle {
    font-size: 16px;
    line-height: 24px;
    max-width: 100%;
  }
  .hero-social {
    justify-content: center;
  }
  .bio-section {
    padding: 44px 0;
  }
  /* Stack image, scrim and cards in one grid cell so the box grows with the
     stacked cards while the photo still covers it. */
  .campus-photo {
    height: auto;
    min-height: 190px;
    display: grid;
  }
  .banner-carousel {
    height: 220px;
  }
  .campus-photo-img,
  .campus-photo-scrim,
  .campus-edu {
    grid-area: 1 / 1;
    position: relative;
    inset: auto;
  }
  .campus-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .campus-edu {
    z-index: 1;
    padding: 20px;
  }
  .bio-statement {
    font-size: 24px;
    line-height: 30px;
  }
  .bio-text {
    font-size: 16px;
    line-height: 24px;
  }
  .edu {
    margin-top: 64px;
  }
  .edu-header-row {
    flex-direction: column;
    gap: 20px;
  }
  .edu-title-left,
  .edu-title-right {
    text-align: left;
  }
  .block-head {
    font-size: 24px;
    line-height: 30px;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .app {
    grid-template-columns: 1fr;
  }
  .app-side {
    display: none;
  }
  .cw-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .cw-sidebar,
  .cw-menubar,
  .cw-tabbar-icons,
  .cw-st-center {
    display: none;
  }
  .cw-title {
    font-size: 11px;
  }
  .cw-statusbar {
    justify-content: space-between;
  }
  .edu-grid {
    grid-template-columns: 1fr;
  }
  .edu-title {
    font-size: 32px;
    line-height: 38px;
  }
  .edu-degree {
    font-size: 28px;
    line-height: 34px;
  }
  .edu-track {
    font-size: 20px;
    line-height: 26px;
  }
  .timeline {
    padding: 18px 18px 22px;
  }
  .tl-row {
    grid-template-columns: 36px 1fr;
    row-gap: 4px;
  }
  .tl-logo {
    grid-row: 1;
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .tl-track::before {
    left: 13px;
  }
  .tl-line {
    grid-column: 2;
    grid-row: 1;
  }
  .tl-meta {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    padding-top: 2px;
  }
  .tl-desc {
    grid-column: 2 / 3;
    grid-row: 3;
  }
  .home-grid {
    grid-template-columns: 1fr 1fr;
  }
  .block {
    margin-top: 80px;
  }
  .contact-inner,
  .contact-teaser-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-title,
  .contact-teaser-title {
    font-size: 40px;
    line-height: 44px;
  }
  .contact-text,
  .contact-teaser-text {
    font-size: 16px;
    line-height: 24px;
  }
  .bizcard {
    margin: 0 auto;
    max-width: 100%;
    transform: none;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .oc-tab {
    padding: 8px 12px;
    font-size: 10px;
  }
  .oc-card {
    padding: 26px 22px 28px;
  }
  .oc-panel.active {
    flex-direction: column;
    gap: 14px;
  }
  .oc-date {
    position: static;
    display: block;
    text-align: right;
  }
  .oc-logo {
    width: 52px;
    height: 52px;
  }
  .skills-graph {
    aspect-ratio: 16 / 9;
  }
  .skills-legend {
    top: 14px;
    left: 16px;
    gap: 6px 12px;
  }
  .skills-legend-item {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
  .project-wide {
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }
  .project-feature {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feat-headline {
    font-size: 24px;
    line-height: 30px;
  }
  .feat-para {
    padding-top: 0;
  }
  .feat-stats {
    gap: 24px;
  }
  .project-full-desc {
    margin-top: 48px;
  }
  .proj-grid,
  .proj-grid-sm {
    grid-template-columns: 1fr;
  }
  .more-projects {
    margin-top: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .tools-track {
    animation: none !important;
  }
  .mw-cursor {
    animation: none !important;
  }
}
