:root {
  --a: #22d3ee;
  --b: #a78bfa;
  --ink: #070810;

  --text: rgba(226, 232, 240, .92);
  --muted: rgba(148, 163, 184, .92);

  --panel: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .10);
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body.app {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--ink);
  color: var(--text);
}

::selection {
  background: rgba(255, 255, 255, .12);
}

/* Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 #0b0d1a;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0b0d1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--a), var(--b));
  border-radius: 999px;
  border: 2px solid #0b0d1a;
}

/* Links */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(226, 232, 240, .55);
}

a:hover {
  text-decoration-color: rgba(226, 232, 240, .92);
}

a.link {
  color: inherit;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
}

.bgGlow {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(980px 540px at 18% 18%, rgba(34, 211, 238, .14), transparent 60%),
    radial-gradient(900px 620px at 85% 26%, rgba(167, 139, 250, .12), transparent 62%),
    radial-gradient(900px 700px at 40% 105%, rgba(34, 211, 238, .07), transparent 65%);
  filter: blur(12px);
  opacity: .95;
}

.bgGrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(closest-side at 50% 25%, black, transparent 84%);
  opacity: .07;
}

.bgGrain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: .04;
  mix-blend-mode: overlay;
}

/* Layout */
.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 18px 72px;
}

@media (min-width: 640px) {
  .shell {
    padding: 56px 22px 88px;
  }
}

@media (min-width: 768px) {
  .shell {
    padding-left: 118px;
  }
}

.section {
  scroll-margin-top: 72px;
  margin-bottom: 22px;
}

/* Card */
.card {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .040));
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(900px 420px at 14% 0%, rgba(34, 211, 238, .10), transparent 58%),
    radial-gradient(900px 520px at 92% 8%, rgba(167, 139, 250, .10), transparent 60%);
  pointer-events: none;
}

.card>* {
  position: relative;
  z-index: 1;
}

/* Typography */
.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
  line-height: 1.5;
}

.head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 22px;
}

.sub {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}

.plist {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(226, 232, 240, .86);
}

.plist li {
  margin: 8px 0;
  line-height: 1.5;
}

.ptext {
  margin: 10px 0 0;
  color: rgba(203, 213, 225, .92);
  line-height: 1.55;
}

.lede {
  margin: 0;
  color: rgba(203, 213, 225, .92);
  line-height: 1.62;
  max-width: 82ch;
}

/* Buttons */
.btn {
  border-radius: 16px;
  padding: 11px 14px;
  font-weight: 900;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .16s ease, filter .16s ease, background .16s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--a), var(--b));
  color: rgba(0, 0, 0, .92);
  box-shadow: 0 20px 60px rgba(34, 211, 238, .14);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: rgba(226, 232, 240, .92);
}

/* Hero */
.heroCard {
  padding: 22px;
}

.heroHeader {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

@media (max-width: 820px) {
  .heroHeader {
    grid-template-columns: 80px 1fr;
  }
}

.avatar {
  width: 150px;
  height: auto;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .26);
  overflow: hidden;
  position: relative;
}

.avatar img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.avatarPh {
  padding: 10px 12px;
  text-align: center;
}

.avatarPhTop {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 12px;
}

.avatarPhSub {
  margin-top: 4px;
  color: rgba(148, 163, 184, .92);
  font-size: 12px;
}

.avatar:has(img) .avatarPh {
  display: none;
}

.heroTitle {
  min-width: 0;
}

.heroName {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.05;
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .62));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heroRoles {
  margin-top: 8px;
  font-weight: 900;
  color: rgba(226, 232, 240, .86);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sep {
  opacity: .55;
}

.metaLine {
  color: rgba(226, 232, 240, .86);
}

.heroBody {
  margin-top: 16px;
}

/* Skills */
.skillGrid {
  margin-top: 14px;
  column-count: 2;
  column-gap: 14px;
  column-fill: balance;
}

.skillGrid > .skillCard {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
}

@media (max-width: 900px) {
  .skillGrid {
    column-count: 1;
  }
}

.skillCard {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  padding: 16px;
}

.skillCard.accent {
  border-color: rgba(34, 211, 238, .16);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .08);
}

.skillHead {
  margin-bottom: 6px;
}

.skillTitle {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 16px;
}

.skillSub {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Meters */
.meter {
  margin-top: 14px;
}

.mTop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
}

.mMuted {
  color: var(--muted);
  font-weight: 800;
}

.mBar {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .10);
  overflow: hidden;
}

.mFill {
  height: 10px;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--a), var(--b));
}

.mSub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* Timeline */
.timeline {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.titem {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  padding: 16px;
}

.tTop {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.tRole {
  font-weight: 950;
}

.tTime {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tPlace {
  margin-top: 6px;
  font-weight: 900;
  color: rgba(226, 232, 240, .86);
}

.tGrid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 900px) {
  .tGrid {
    grid-template-columns: 1fr;
  }
}

.tBlock {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .18);
  padding: 12px;
}

.tLabel {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(226, 232, 240, .86);
}

/* Grids */
.grid2 {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

.grid3 {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid3 {
    grid-template-columns: 1fr;
  }
}

.panel {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
}

.panel.accent {
  border-color: rgba(34, 211, 238, .16);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .08);
}

.panelTitle {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(226, 232, 240, .88);
}

/* Projects */
.projCard {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  padding: 16px;
}

.projTop {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.projTitle {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 16px;
}

.projMeta {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Education */
.eduStack {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.eduRow {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  padding: 16px;
}

.eduTop {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.eduTitle {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 16px;
}

.eduRight {
  font-weight: 800;
}

.eduSub {
  margin-top: 8px;
  color: rgba(203, 213, 225, .92);
}

.sep2 {
  opacity: .55;
  margin: 0 8px;
}

.eduGrid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 900px) {
  .eduGrid {
    grid-template-columns: 1fr;
  }
}

.eduBlock {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .18);
  padding: 12px;
}

.eduLabel {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(226, 232, 240, .86);
}

/* KPI */
.kpiRow {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .kpiRow {
    grid-template-columns: 1fr;
  }
}

.kpi {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .18);
  padding: 12px;
}

.kpiBig {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.kpiSub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.docLink {
  margin-top: 12px;
}

/* Interests */
.interestLead {
  margin-top: 14px;
}

.bigTitle {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.bigSub {
  margin-top: 8px;
  max-width: 80ch;
  line-height: 1.55;
}

.interestGrid {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.interestGrid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .interestGrid2 {
    grid-template-columns: 1fr;
  }
}

.interestCard {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  padding: 16px;
}

.iTitle {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 16px;
}

.iSub {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Footer */
.big {
  margin-top: 10px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed rgba(255, 255, 255, .12);
  padding-top: 14px;
  color: rgba(226, 232, 240, .86);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .9, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Dot nav */
.dotnavWrap {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
}

@media (min-width: 768px) {
  .dotnavWrap {
    display: block;
  }
}

.dotnav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.dotnav::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, .12);
  z-index: 0;
}

.dotlink {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .55);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  position: relative;
  z-index: 3;
}

.dottext {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(-4px);
  transition: opacity .16s ease, transform .16s ease, width .16s ease, color .16s ease;
  color: rgba(226, 232, 240, .72);
  position: relative;
  z-index: 3;
}

.dotlink:hover .dot {
  transform: scale(1.12);
  background: rgba(226, 232, 240, .72);
}

.dotlink:hover .dottext {
  opacity: 1;
  width: 290px;
  transform: translateX(0);
  color: rgba(226, 232, 240, .78);
}

.dotlink.active .dot {
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: 0 0 0 8px rgba(34, 211, 238, .12), 0 0 0 14px rgba(167, 139, 250, .08);
}

.dotlink.active .dottext {
  opacity: 1;
  width: 290px;
  transform: translateX(0);
  background: linear-gradient(135deg, var(--a), var(--b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}