:root {
  --bg: #0b0814;
  --bg-2: #120c22;
  --ink: #f4f0ff;
  --muted: #a49cb8;
  --dim: #6f6787;
  --purple: #7c3aed;
  --purple-2: #9d5cff;
  --lilac: #c4a5ff;
  --pink: #e879f9;
  --line: rgba(196, 165, 255, .14);
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .08);
  --radius: 22px;
  --shadow: 0 30px 80px -30px rgba(124, 58, 237, .45);
  --font-d: "Sora", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--purple); color: #fff; }

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

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.grad {
  background: linear-gradient(100deg, var(--lilac), var(--purple-2) 45%, var(--pink));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .55; }
.g1 { width: 620px; height: 620px; background: #5b21b6; top: -200px; left: -160px; }
.g2 { width: 520px; height: 520px; background: #7c3aed; top: 40%; right: -220px; opacity: .35; }
.g3 { width: 480px; height: 480px; background: #a21caf; bottom: -260px; left: 30%; opacity: .25; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(196,165,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,165,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}

/* glass rubik faces floating */
.glass-cube {
  position: absolute;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(196,165,255,.12);
  background: rgba(255,255,255,.015);
  animation: float 18s ease-in-out infinite;
}
.glass-cube i {
  aspect-ratio: 1; border-radius: 9px;
  background: linear-gradient(140deg, rgba(196,165,255,.12), rgba(124,58,237,.04));
  border: 1px solid rgba(196,165,255,.10);
}
.glass-cube i:nth-child(3n+2) { background: linear-gradient(140deg, rgba(232,121,249,.10), rgba(124,58,237,.02)); }
.glass-cube i:nth-child(5) { background: rgba(157,92,255,.18); }
.c1 { width: 170px; top: 14%; right: 6%; transform: rotate(18deg); }
.c2 { width: 110px; top: 58%; left: 3%; transform: rotate(-14deg); animation-delay: -6s; animation-duration: 22s; }
.c3 { width: 230px; bottom: 6%; right: 18%; transform: rotate(-8deg); opacity: .6; animation-delay: -11s; animation-duration: 26s; }
.c4 { width: 80px; top: 32%; left: 42%; transform: rotate(32deg); opacity: .5; animation-delay: -3s; }
@keyframes float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -28px; rotate: 8deg; }
}

/* ---------- Buttons / pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-sm { padding: .55rem 1.1rem; font-size: .875rem; }
.btn-primary {
  background: linear-gradient(120deg, var(--purple), var(--purple-2));
  color: #fff; box-shadow: 0 10px 30px -10px rgba(124,58,237,.8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(124,58,237,.9); }
.btn-ghost { border: 1px solid var(--line); background: var(--glass); }
.btn-ghost:hover { background: var(--glass-2); }
.arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translate(2px, -2px); }

.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-d); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--lilac);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--purple-2); border-radius: 2px; }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; }
.nav {
  width: min(1180px, 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem .6rem .6rem 1.1rem; border-radius: 999px;
  background: rgba(15, 10, 28, .55);
  transition: background .3s;
}
.nav.scrolled { background: rgba(15, 10, 28, .85); }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-d); font-weight: 600; }
.brand b { color: var(--purple-2); font-weight: 600; }
.brand-cube { display: grid; grid-template-columns: repeat(3, 7px); gap: 2px; transform: rotate(-10deg); }
.brand-cube i { width: 7px; height: 7px; border-radius: 2px; background: var(--purple-2); opacity: .35; }
.brand-cube i:nth-child(odd) { opacity: .9; }
.brand-cube i:nth-child(5) { background: var(--pink); opacity: 1; }
.nav-links { display: flex; gap: .3rem; }
.nav-links a {
  padding: .5rem .9rem; border-radius: 999px; font-size: .9rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--glass-2); }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; padding: 130px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; flex: 1; }
.hero h1 {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(2.8rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.035em;
  margin: 1.4rem 0 1.2rem;
}
.hello { display: block; font-size: .38em; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-bottom: .4rem; }
.hero-role { font-family: var(--font-d); font-size: 1.1rem; color: var(--ink); }
.hero-role b { color: var(--lilac); font-weight: 600; }
.hero-sub { margin-top: .6rem; color: var(--muted); max-width: 480px; font-size: 1.02rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; }
.hero-stats div { display: flex; align-items: center; gap: .7rem; }
.hero-stats dt { font-family: var(--font-d); font-size: 2.4rem; font-weight: 700; }
.hero-stats dt::after { content: "+"; color: var(--purple-2); }
.hero-stats div:last-child dt::after { content: ""; }
.hero-stats dd { font-size: .8rem; line-height: 1.3; color: var(--muted); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.photo-card {
  position: relative; width: min(420px, 100%); aspect-ratio: 4 / 4.6;
  border-radius: 34px; overflow: hidden;
  transform: rotate(4deg);
  box-shadow: var(--shadow), 0 0 0 1px rgba(196,165,255,.2);
  background: #c9c6cc;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.hero-visual:hover .photo-card { transform: rotate(1deg) scale(1.01); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.photo-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(76,29,149,.55));
  mix-blend-mode: multiply;
}
.photo-grid {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  pointer-events: none; z-index: 1;
}
.photo-grid i { border: 1px solid rgba(255,255,255,.12); }

.cube3d-wrap { position: absolute; top: -10px; left: -10px; width: 150px; height: 150px; perspective: 700px; z-index: 2; }
.cube3d {
  position: relative; width: 110px; height: 110px; margin: 20px;
  transform-style: preserve-3d; animation: spin 22s linear infinite;
}
.face {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 4px;
  border-radius: 12px;
  background: rgba(30, 16, 60, .35);
  border: 1px solid rgba(196,165,255,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.face i { border-radius: 5px; background: rgba(157,92,255,.25); border: 1px solid rgba(255,255,255,.12); }
.face i:nth-child(2n) { background: rgba(196,165,255,.15); }
.f-top i:nth-child(5), .f-front i:nth-child(1), .f-right i:nth-child(9) { background: rgba(232,121,249,.45); }
.f-front  { transform: translateZ(55px); }
.f-back   { transform: rotateY(180deg) translateZ(55px); }
.f-right  { transform: rotateY(90deg) translateZ(55px); }
.f-left   { transform: rotateY(-90deg) translateZ(55px); }
.f-top    { transform: rotateX(90deg) translateZ(55px); }
.f-bottom { transform: rotateX(-90deg) translateZ(55px); }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }

.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem; border-radius: 16px; background: rgba(20, 12, 40, .55);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  animation: bob 6s ease-in-out infinite;
}
.chip b { display: block; font-family: var(--font-d); font-size: .92rem; }
.chip small { display: block; font-size: .75rem; color: var(--muted); }
.chip-ic {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--pink)); font-size: 1rem;
}
.chip-a { left: -4%; bottom: 22%; }
.chip-b { right: -2%; top: 18%; animation-delay: -2s; }
.chip-c { right: 2%; bottom: 6%; flex-direction: column; align-items: flex-start; gap: .1rem; animation-delay: -4s; }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: .85rem; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.big-marquee { margin-top: 2rem; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.big-marquee .track { display: inline-flex; animation: marquee 40s linear infinite; }
.big-marquee span {
  font-family: var(--font-d); font-weight: 700; font-size: clamp(4rem, 11vw, 9.5rem); line-height: 1.05; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(196,165,255,.28);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section h2 {
  font-family: var(--font-d); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.08; letter-spacing: -.03em; margin: .9rem 0 1rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4.5rem; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); aspect-ratio: 4/4.4; object-fit: cover; width: 100%; filter: saturate(.85) contrast(1.05); box-shadow: var(--shadow); }
.quote {
  position: absolute; right: -28px; bottom: -28px; max-width: 300px;
  padding: 1.2rem 1.3rem; border-radius: 18px; background: rgba(20,12,40,.6);
  display: flex; gap: .9rem; align-items: flex-start;
}
.quote p { font-family: var(--font-d); font-size: .92rem; line-height: 1.45; }
.q-cube { flex: none; display: grid; grid-template-columns: repeat(3, 8px); gap: 2px; margin-top: 4px; }
.q-cube i { width: 8px; height: 8px; border-radius: 2px; background: var(--purple-2); opacity: .4; }
.q-cube i:nth-child(1), .q-cube i:nth-child(5), .q-cube i:nth-child(9) { opacity: 1; background: var(--pink); }
.about-text p { color: var(--muted); margin-bottom: 1rem; font-size: 1.02rem; }
.about-text p b { color: var(--ink); font-weight: 600; }
.interests { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.interests li { padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: .85rem; }

/* Leadership */
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.lead-card { position: relative; padding: 2.2rem; border-radius: 28px; overflow: hidden; transition: transform .35s, border-color .35s; }
.lead-card:hover { transform: translateY(-4px); border-color: rgba(196,165,255,.3); }
.lead-card.featured { background: linear-gradient(160deg, rgba(124,58,237,.22), rgba(255,255,255,.03) 60%); }
.lead-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  background:
    linear-gradient(rgba(196,165,255,.12) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(196,165,255,.12) 1px, transparent 1px) 0 0 / 60px 60px;
  border: 1px solid rgba(196,165,255,.12); border-radius: 22px; transform: rotate(18deg);
}
.lead-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; position: relative; z-index: 1; }
.lead-badge { font-size: .78rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(157,92,255,.18); color: var(--lilac); }
.lead-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--purple), var(--pink)); font-size: 1.2rem; }
.lead-card h3 { font-family: var(--font-d); font-size: 1.8rem; letter-spacing: -.02em; }
.lead-role { color: var(--lilac); font-weight: 500; margin-bottom: 1rem; }
.lead-card > p { color: var(--muted); }
.checks { margin-top: 1.4rem; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .7rem; align-items: center; font-size: .95rem; }
.checks li::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px;
  background: var(--purple-2); box-shadow: 0 0 12px var(--purple-2);
}
.link-arrow { display: inline-block; margin-top: 1.6rem; color: var(--lilac); font-weight: 600; border-bottom: 1px solid rgba(196,165,255,.3); }
.link-arrow:hover { color: #fff; border-color: #fff; }

/* Projects */
.filters { display: flex; gap: .4rem; padding: .35rem; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); flex-wrap: wrap; }
.filter {
  border: 0; background: transparent; color: var(--muted); font: 500 .88rem var(--font-b);
  padding: .55rem 1rem; border-radius: 999px; cursor: pointer; transition: .2s;
}
.filter:hover { color: var(--ink); }
.filter.active { background: linear-gradient(120deg, var(--purple), var(--purple-2)); color: #fff; }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.project {
  border-radius: 28px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s, opacity .3s;
}
.project:hover { transform: translateY(-6px); border-color: rgba(196,165,255,.32); }
.project.hide { display: none; }
.shot { margin: 12px 12px 0; border-radius: 18px; overflow: hidden; background: #1a1230; border: 1px solid var(--line); }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; background: rgba(255,255,255,.04); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.shot-bar i:first-child { background: #f87171; } .shot-bar i:nth-child(2) { background: #fbbf24; } .shot-bar i:nth-child(3) { background: #4ade80; }
.shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top left; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.project:hover .shot img { transform: scale(1.04); }
.project-body { padding: 1.6rem 1.8rem 1.9rem; }
.project-meta { display: flex; justify-content: space-between; align-items: center; }
.tag { font-size: .75rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(157,92,255,.18); color: var(--lilac); }
.num { font-family: var(--font-d); color: var(--dim); font-size: .9rem; }
.project h3 { font-family: var(--font-d); font-size: 1.5rem; letter-spacing: -.02em; margin: .9rem 0 .5rem; }
.project p { color: var(--muted); font-size: .95rem; }
.feat { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.feat li { font-size: .78rem; padding: .3rem .7rem; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); }

/* Timeline */
.timeline { position: relative; display: grid; gap: 1.2rem; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--purple-2), transparent); }
.timeline li { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 1.5rem; align-items: start; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-2rem + 1px); top: 10px; width: 12px; height: 12px; border-radius: 3px;
  background: var(--bg); border: 2px solid var(--purple-2); transform: rotate(45deg);
}
.timeline li:first-child::before, .timeline li:nth-child(2)::before { background: var(--purple-2); box-shadow: 0 0 14px var(--purple-2); }
.t-date { font-family: var(--font-d); font-size: .9rem; color: var(--lilac); padding-top: .2rem; }
.t-card { padding: 1.2rem 1.4rem; border-radius: 18px; }
.t-card h4 { font-family: var(--font-d); font-size: 1.08rem; }
.t-co { color: var(--lilac) !important; font-size: .85rem; margin-bottom: .35rem; }
.t-card p { color: var(--muted); font-size: .93rem; }
.edu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.edu-card { display: flex; gap: 1rem; align-items: center; padding: 1.2rem 1.3rem; border-radius: 18px; }
.edu-ic { font-size: 1.5rem; }
.edu-card h4 { font-family: var(--font-d); font-size: .98rem; line-height: 1.3; }
.edu-card p { color: var(--muted); font-size: .83rem; }

/* Stack */
.stack-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.st {
  aspect-ratio: 5 / 4; border-radius: 18px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem; border: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .3s, background .3s, border-color .3s;
}
.st:hover { transform: translateY(-4px) rotate(-2deg); background: rgba(124,58,237,.2); border-color: rgba(196,165,255,.35); }
.st b { font-family: var(--font-d); font-size: 1.05rem; }
.st small { color: var(--muted); font-size: .76rem; }
.marquee { margin-top: 4rem; overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding: 1.1rem 0; background: rgba(124,58,237,.06); }
.marquee .track { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--font-d); font-size: 1.3rem; color: var(--muted); padding-right: .4rem; }

/* Contact */
.contact { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(2rem, 6vw, 4.5rem); text-align: center;
  background: linear-gradient(160deg, rgba(124,58,237,.25), rgba(255,255,255,.03) 70%); }
.contact .eyebrow { justify-content: center; }
.contact p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.contact-cube {
  position: absolute; width: 260px; right: -60px; top: -60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  transform: rotate(22deg); opacity: .5;
}
.contact-cube i { aspect-ratio: 1; border-radius: 14px; border: 1px solid rgba(196,165,255,.2); background: rgba(196,165,255,.05); }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; position: relative; }
.c-link {
  display: flex; align-items: center; gap: .9rem; text-align: left;
  padding: .9rem 1.3rem .9rem 1rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(15,10,28,.5);
  transition: transform .25s, border-color .25s, background .25s;
}
.c-link:hover { transform: translateY(-3px); border-color: rgba(196,165,255,.4); background: rgba(124,58,237,.18); }
.c-link svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; fill: #fff; background: linear-gradient(135deg, var(--purple), var(--pink)); }
.c-link b { display: block; font-family: var(--font-d); }
.c-link small { color: var(--muted); font-size: .82rem; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2rem 0 3rem; color: var(--dim); font-size: .88rem; border-top: 1px solid var(--line); }
.footer a:hover { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { min-height: 480px; order: -1; margin-top: 1rem; }
  .photo-card { width: min(340px, 80%); }
  .about { grid-template-columns: 1fr; gap: 3.5rem; }
  .quote { right: 12px; bottom: -24px; }
  .stack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .edu { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 16px; right: 16px;
    flex-direction: column; padding: .8rem; border-radius: 22px;
    background: rgba(15,10,28,.95); border: 1px solid var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .25s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { display: block; padding: .8rem 1rem; }
  .nav > .btn { display: none; }
  .menu-btn {
    display: grid; gap: 5px; place-content: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--glass); cursor: pointer;
  }
  .menu-btn span { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .lead-grid, .projects { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: .5rem; }
  .section { padding: 90px 0; }
}
@media (max-width: 560px) {
  .hero { padding-top: 110px; }
  .hero-visual { min-height: 400px; }
  .chip-a { left: 0; bottom: 14%; }
  .chip-b { right: 4px; top: 6%; }
  .chip { padding: .5rem .75rem; gap: .5rem; }
  .chip-ic { width: 30px; height: 30px; }
  .chip b { font-size: .82rem; }
  .chip-c { display: none; }
  .cube3d-wrap { transform: scale(.7); transform-origin: top left; }
  .hero-stats { gap: 1rem 1.4rem; flex-wrap: wrap; }
  .hero-stats dt { font-size: 1.9rem; }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-card { padding: 1.6rem; }
  .project-body { padding: 1.3rem 1.3rem 1.5rem; }
  .c-link { width: 100%; }
  .glass-cube.c1 { width: 110px; }
  .glass-cube.c3 { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
