:root {
  --bg: #07090c;
  --bg-soft: #0b0f14;
  --panel: rgba(255, 255, 255, 0.032);
  --panel-strong: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #e9eef5;
  --ink-dim: #c2cad6;
  --muted: #8b97a8;
  --faint: #5d6879;
  --teal: #5eead4;
  --gold: #d9b26a;
  --blue: #7aa2f7;
  --font-sans: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- ambient background ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(94, 234, 212, 0.11), transparent 60%),
    radial-gradient(800px 460px at 92% 4%, rgba(122, 162, 247, 0.10), transparent 62%),
    radial-gradient(700px 500px at 50% 108%, rgba(217, 178, 106, 0.07), transparent 60%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 78%);
  pointer-events: none;
}

::selection {
  background: rgba(94, 234, 212, 0.24);
  color: #fff;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ---------- layout ---------- */
.container {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}

section.block {
  position: relative;
  padding: 112px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.section-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--teal);
  white-space: nowrap;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.section-note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--faint);
  white-space: nowrap;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(7, 9, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--teal);
  background: var(--panel);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--faint);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 64px;
  align-items: end;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--teal);
  opacity: 0.7;
}

.hero h1 {
  font-size: clamp(52px, 9vw, 104px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero h1 .latin {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 400;
  letter-spacing: 0.34em;
  color: var(--faint);
  margin-top: 18px;
  text-transform: uppercase;
}

.hero-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 30px 0 24px;
  font-size: 17px;
  color: var(--ink-dim);
}

.hero-role .divider {
  width: 1px;
  height: 16px;
  background: var(--line-strong);
}

.hero-role .accent {
  color: var(--gold);
}

.hero-desc {
  max-width: 620px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: transparent;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.btn .arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.3s;
}

.btn:hover {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.07);
  transform: translateY(-2px);
}

.btn:hover .arrow {
  color: var(--teal);
  transform: translateX(4px);
}

.btn.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #04201c;
  font-weight: 600;
}

.btn.primary .arrow {
  color: #04201c;
}

.btn.primary:hover {
  background: #7df3e0;
  border-color: #7df3e0;
}

/* hero side panel */
.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  padding-bottom: 6px;
}

.hero-aside .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-aside ul {
  list-style: none;
  display: grid;
  gap: 14px;
}

.hero-aside li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
}

.hero-aside .k {
  font-size: 13px;
  color: var(--muted);
}

.hero-aside .v {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-dim);
}

.hero-aside .v b {
  color: var(--teal);
  font-weight: 500;
}

/* stats band */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 88px;
}

.stat {
  padding: 26px 24px 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat .num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.stat .num .unit {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.stat .cap {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--faint);
  text-transform: uppercase;
}

.scroll-hint .bar {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--teal), transparent);
  animation: hint 2.4s infinite var(--ease);
}

@keyframes hint {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
}

.about-quote {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
}

.about-quote em {
  font-style: normal;
  color: var(--teal);
}

.about-body p {
  color: var(--muted);
  margin-bottom: 18px;
}

.about-body p strong {
  color: var(--ink-dim);
  font-weight: 500;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tag {
  padding: 5px 11px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.02);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(94, 234, 212, 0.3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--teal);
  transition: color 0.3s, border-color 0.3s;
}

.more-link .arrow {
  transition: transform 0.3s var(--ease);
}

.more-link:hover {
  color: var(--ink);
  border-color: var(--teal);
}

.more-link:hover .arrow {
  transform: translateX(4px);
}

/* ---------- capabilities ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cap {
  position: relative;
  background: var(--bg-soft);
  padding: 36px 34px 40px;
  transition: background 0.4s var(--ease);
}

.cap:hover {
  background: #0f141a;
}

.cap-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.cap h3 {
  margin: 16px 0 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cap p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.cap-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.cap:hover .cap-line {
  transform: scaleX(1);
}

.cap ul {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cap li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 8px;
}

/* ---------- experience ---------- */
.timeline {
  position: relative;
  border-left: 1px solid var(--line);
  margin-left: 8px;
}

.tl-item {
  position: relative;
  padding: 0 0 54px 38px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--teal);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.08);
}

.tl-time {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 10px;
}

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.tl-company {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tl-role {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.tl-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.tl-desc {
  max-width: 920px;
  color: var(--muted);
  font-size: 14.5px;
}

.tl-desc li {
  list-style: none;
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.tl-desc li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-family: var(--font-mono);
}

/* ---------- projects ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.proj {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  padding: 30px 30px 26px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, background 0.45s;
}

.proj::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), rgba(94, 234, 212, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}

.proj:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.32);
}

.proj:hover::after {
  opacity: 1;
}

.proj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.proj-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.proj-period {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--teal);
  border: 1px solid rgba(94, 234, 212, 0.25);
  padding: 3px 9px;
}

.proj h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.015em;
  margin-bottom: 6px;
}

.proj .org {
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.proj p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.proj-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.metric {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
}

.metric b {
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
}

.metric span {
  color: var(--faint);
  font-size: 11px;
}

/* ---------- architecture ---------- */
.arch-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.arch-card {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s;
}

.arch-card:hover {
  border-color: var(--line-strong);
}

.arch-card .kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.arch-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.arch-card .sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.arch-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.arch-card .spec {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 9px;
}

.arch-card .spec li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-dim);
}

.arch-card .spec li::before {
  content: "—";
  color: var(--faint);
  font-family: var(--font-mono);
  flex: none;
}

.arch-shot {
  margin-top: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #05070a;
}

.arch-shot img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(0.8);
  transition: opacity 0.4s, transform 0.6s var(--ease);
}

.arch-card:hover .arch-shot img {
  opacity: 1;
  transform: scale(1.02);
}

.arch-shot figcaption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}

/* ---------- honors ---------- */
.honor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
}

.paper {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.paper:last-child {
  border-bottom: 1px solid var(--line);
}

.paper .journal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.paper .title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 6px;
}

.paper .meta {
  font-size: 12.5px;
  color: var(--muted);
}

.edu {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.edu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.edu-item .school {
  font-size: 17px;
  font-weight: 500;
}

.edu-item .major {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.edu-item .time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
}

.awards {
  margin-top: 40px;
}

.awards h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.awards ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.awards li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--muted);
}

.awards li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 56px 0 44px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.footer-title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.footer-title span {
  color: var(--teal);
}

.footer-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.footer-bottom .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-bottom a:hover {
  color: var(--teal);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .hero-aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 28px; }
  .about-grid, .honor-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 9, 12, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .cap-grid, .proj-grid, .arch-feature { grid-template-columns: 1fr; }
  section.block { padding: 84px 0; }
  .section-note { display: none; }
  .container { width: min(100% - 40px, var(--maxw)); }
  .scroll-hint { display: none; }
  .hero { min-height: auto; padding: 120px 0 64px; }
  .stats-band { margin-top: 64px; }
}

@media (max-width: 520px) {
  .brand-sub { display: none; }
  .stats-band { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .cap { padding: 28px 24px 30px; }
  .proj { padding: 24px; }
  .arch-card { padding: 24px; }
  .edu-item { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint .bar { animation: none; }
}
