:root {
  --bg: #0a0e0c;
  --bg-alt: #0f1512;
  --surface: #121a16;
  --border: #1e2b24;
  --text: #d5ded8;
  --text-dim: #7c8c82;
  --accent: #39ff9c;
  --accent-dim: #1f8f5c;
  --red: #ff5f57;
  --yellow: #febc2e;
  --green: #28c840;
  --mono: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 860px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cursor-reactive ambient glow ---------- */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(57, 255, 156, 0.07),
    transparent 70%
  );
  transition: background 0.05s linear;
}

/* ---------- Custom cursor ---------- */
html.has-custom-cursor,
html.has-custom-cursor a,
html.has-custom-cursor button,
html.has-custom-cursor .btn,
html.has-custom-cursor .nav-toggle {
  cursor: none;
}

.cursor-trail {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
html.has-custom-cursor .cursor-trail { opacity: 1; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cursor-color, var(--accent));
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--cursor-color, var(--accent));
  transform: translate(-50%, -50%) scale(1);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.cursor-link .cursor-ring {
  width: 52px;
  height: 52px;
  background: color-mix(in srgb, var(--cursor-color, var(--accent)) 12%, transparent);
}
html.cursor-link .cursor-dot { opacity: 0; }

.cursor-arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--cursor-color, var(--accent));
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: absolute;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
html.cursor-link.cursor-external .cursor-arrow-external,
html.cursor-link.cursor-internal .cursor-arrow-internal {
  opacity: 1;
  transform: scale(1);
}

@media (hover: none), (pointer: coarse) {
  .cursor-trail { display: none; }
  html.has-custom-cursor,
  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor .btn {
    cursor: auto;
  }
}

/* ---------- Spotlight hover on cards ---------- */
.card,
.cat-card,
.rail-card,
.skill-card,
.plaque {
  position: relative;
  overflow: hidden;
}
.card::before,
.cat-card::before,
.rail-card::before,
.skill-card::before,
.plaque::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    280px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(57, 255, 156, 0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover::before,
.cat-card:hover::before,
.rail-card:hover::before,
.skill-card:hover::before,
.plaque:hover::before {
  opacity: 1;
}
.card > *,
.cat-card > *,
.rail-card > *,
.skill-card > *,
.plaque > * {
  position: relative;
  z-index: 1;
}

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

/* ---------- Focus states (keyboard navigation) ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.cat-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.cat-card:focus-visible {
  border-radius: 12px;
}

::selection { background: var(--accent); color: #05100a; }

.accent { color: var(--accent); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 12, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.cursor-blink { animation: blink 1s step-end infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.nav-links a {
  color: var(--text-dim);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::before { content: "//"; color: var(--accent-dim); margin-right: 4px; opacity: 0; transition: opacity 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::before { opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  position: relative;
}

.hero-inner {
  max-width: var(--max);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.terminal-window {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(57, 255, 156, 0.03);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }
.terminal-title {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 32px clamp(20px, 4vw, 44px) 40px;
  font-family: var(--mono);
}

.line { margin: 0 0 6px; color: var(--text-dim); font-size: 0.9rem; }
.prompt { color: var(--accent); margin-right: 8px; }

.output-name {
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 4px 0 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.typed-line {
  margin: 0 0 20px;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--accent);
  min-height: 1.6em;
}
.type-cursor { animation: blink 0.9s step-end infinite; }

.meta-line { margin-top: 8px; }
.out { color: var(--text); margin: 0; font-size: 0.9rem; }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--accent);
  color: #05100a;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover {
  color: #05100a;
  box-shadow: 0 0 24px -4px rgba(57, 255, 156, 0.6);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.chevron { animation: bob 1.6s ease-in-out infinite; font-size: 1rem; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Sections ---------- */
main {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}
.section:first-child { border-top: none; }

.section-title {
  position: relative;
  font-size: 1.7rem;
  margin: 0 0 44px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  height: 2px;
  width: 0;
  background: linear-gradient(to right, var(--accent), transparent);
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view .section-title::after { width: 100%; max-width: 220px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px;
}
.card p { margin: 0 0 14px; color: var(--text); }
.card p:last-child { margin-bottom: 0; }
/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.skill-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}
.skill-card h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 600;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 5px 10px;
  border-radius: 5px;
  transition: color 0.2s, border-color 0.2s;
}
.tags span:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.tags-wide span {
  font-size: 0.82rem;
  padding: 7px 13px;
}

/* ---------- Skills: grouped logo grid ---------- */
.stack-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.stack-group-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 20px;
}
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.stack-tags span {
  font-family: var(--mono);
  font-size: 0.72rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 5px 11px;
  border-radius: 20px;
}
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 96px;
  padding: 18px 10px;
  border-radius: 12px;
  transition: transform 0.25s ease;
  opacity: 0;
  transform: translateY(16px) scale(0.94);
}
.reveal.in-view .logo-tile {
  animation: logo-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.logo-tile:hover { transform: translateY(-4px); }
.logo-tile img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 0 0 rgba(57, 255, 156, 0));
}
.logo-tile:hover img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px rgba(57, 255, 156, 0.35));
}
.logo-tile span {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  transition: color 0.25s ease;
}
.logo-tile:hover span { color: var(--text); }

@keyframes logo-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.logo-tile:nth-child(1) { animation-delay: 0.02s; }
.logo-tile:nth-child(2) { animation-delay: 0.05s; }
.logo-tile:nth-child(3) { animation-delay: 0.08s; }
.logo-tile:nth-child(4) { animation-delay: 0.11s; }
.logo-tile:nth-child(5) { animation-delay: 0.14s; }
.logo-tile:nth-child(6) { animation-delay: 0.17s; }
.logo-tile:nth-child(7) { animation-delay: 0.2s; }
.logo-tile:nth-child(8) { animation-delay: 0.23s; }
.logo-tile:nth-child(9) { animation-delay: 0.26s; }
.logo-tile:nth-child(10) { animation-delay: 0.29s; }
.logo-tile:nth-child(11) { animation-delay: 0.32s; }
.logo-tile:nth-child(12) { animation-delay: 0.35s; }
.logo-tile:nth-child(13) { animation-delay: 0.38s; }
.logo-tile:nth-child(14) { animation-delay: 0.41s; }
.logo-tile:nth-child(15) { animation-delay: 0.44s; }
.logo-tile:nth-child(16) { animation-delay: 0.47s; }
.logo-tile:nth-child(17) { animation-delay: 0.5s; }
.logo-tile:nth-child(18) { animation-delay: 0.53s; }
.logo-tile:nth-child(19) { animation-delay: 0.56s; }
.logo-tile:nth-child(20) { animation-delay: 0.59s; }
.logo-tile:nth-child(21) { animation-delay: 0.62s; }
.logo-tile:nth-child(22) { animation-delay: 0.65s; }
.logo-tile:nth-child(23) { animation-delay: 0.68s; }
.logo-tile:nth-child(24) { animation-delay: 0.71s; }

/* ---------- Commit log ---------- */
.commit-log {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.commit {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  transition: background 0.2s;
}
.commit:hover { background: var(--bg-alt); }
.commit .hash {
  font-family: var(--mono);
  color: var(--accent-dim);
  font-size: 0.8rem;
}
.commit .msg { color: var(--text); }
.commit .diffstat {
  font-family: var(--mono);
  font-size: 0.75rem;
  white-space: nowrap;
  display: flex;
  gap: 6px;
}
.commit .plus { color: var(--accent); }
.commit .minus { color: var(--red); opacity: 0.75; }

/* ---------- Flow diagram ---------- */
.flow-diagram {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.flow-node {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 12px;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-dim);
}
.flow-node-accent {
  border-color: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}
.flow-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 400;
}
.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--accent-dim);
  font-size: 1.2rem;
}

/* ---------- Experience rail ---------- */
.rail {
  position: relative;
  padding-left: 36px;
}
.rail-line,
.rail-fill {
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
}
.rail-line { background: var(--border); }
.rail-fill {
  background: linear-gradient(to bottom, var(--accent), var(--accent-dim));
  height: 0%;
  bottom: auto;
  transition: height 0.1s linear;
  box-shadow: 0 0 12px 0 rgba(57, 255, 156, 0.5);
}

.rail-node {
  position: relative;
  margin-bottom: 56px;
  opacity: 0.35;
  transform: translateX(-6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.rail-node:last-child { margin-bottom: 0; }
.rail-node.active { opacity: 1; transform: translateX(0); }

.rail-dot {
  position: absolute;
  left: -36px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.rail-node.active .rail-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(57, 255, 156, 0.15);
}

.rail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  transition: border-color 0.4s ease;
}
.rail-node.active .rail-card { border-color: var(--accent-dim); }
.rail-body { min-width: 0; }
.rail-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.rail-heading { flex: 1; min-width: 0; }

.rail-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.rail-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}
.rail-logo-initials {
  background: var(--bg-alt);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.rail-year {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.rail-card h3 {
  margin: 6px 0 14px;
  font-size: 1.15rem;
  font-weight: 700;
}
.rail-card h3 .at {
  color: var(--accent);
  font-weight: 600;
}
.rail-tags span { font-size: 0.72rem; }

/* ---------- Projects: category card grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.cat-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--c);
}

.cat-card.cat-backend { --c: var(--accent); }
.cat-card.cat-mobile { --c: #6db3ff; }
.cat-card.cat-capstone { --c: #e8c468; }

.cat-bar {
  height: 4px;
  background: var(--c);
  transition: height 0.25s ease, box-shadow 0.25s ease;
}
.cat-card:hover .cat-bar {
  height: 8px;
  box-shadow: 0 0 16px var(--c);
}

.cat-card-body { padding: 22px; }
.cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.cat-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c);
  margin-bottom: 8px;
}
.cat-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-external {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-dim);
}
.cat-desc { color: var(--text-dim); font-size: 0.85rem; margin: 0 0 16px; }
.cat-card-body .tags { margin-bottom: 0; }

.cat-hover-cta {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--c);
  padding: 0 22px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
.cat-card:hover .cat-hover-cta {
  max-height: 40px;
  opacity: 1;
  padding: 14px 22px 18px;
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.project-head h3 { margin: 0 0 6px; font-size: 1.25rem; }
.project-desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 46ch;
}
.project-link {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}
.project-link:hover { background: rgba(57, 255, 156, 0.08); }
.project-card .tags { margin-bottom: 22px; }

.mini-terminal {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 22px;
}
.mini-terminal .terminal-bar { padding: 10px 14px; }
.mini-terminal-body {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}
.mini-terminal-body .prompt { color: var(--accent); }
.mini-terminal-body .out-comment { color: var(--text-dim); }

.project-card ul {
  margin: 0;
  padding-left: 20px;
}
.project-card li {
  margin-bottom: 9px;
  font-size: 0.94rem;
}
.project-card li::marker { color: var(--accent-dim); }

/* ---------- Education: trophy shelf ---------- */
.plaque-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: stretch;
}
.plaque {
  flex: 1;
  min-width: 260px;
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 26px;
  position: relative;
}
.plaque-rank {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.plaque-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.plaque-logo img { width: 78%; height: 78%; object-fit: contain; }
.plaque-degree { font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; }
.plaque-school { font-size: 0.9rem; color: var(--accent); font-weight: 600; margin: 0 0 22px; }
.plaque-score {
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.plaque-score-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  font-weight: 400;
}
.stat-number { font-variant-numeric: tabular-nums; }

/* ---------- Contact ---------- */
.contact-card p:first-child {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1rem;
}
.contact-desc { color: var(--text-dim) !important; }
.contact-card .hero-links { justify-content: flex-start; margin-top: 20px; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 36px 24px 48px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal .card,
.reveal .cat-card,
.reveal .plaque-shelf > .plaque {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view .card { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal.in-view .cat-card { opacity: 1; transform: translateY(0); }
.reveal.in-view .cat-grid > .cat-card:nth-child(1) { transition-delay: 0.15s; }
.reveal.in-view .cat-grid > .cat-card:nth-child(2) { transition-delay: 0.28s; }
.reveal.in-view .cat-grid > .cat-card:nth-child(3) { transition-delay: 0.41s; }
.reveal.in-view .plaque-shelf > .plaque:nth-child(1) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal.in-view .plaque-shelf > .plaque:nth-child(2) { transition-delay: 0.28s; opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 60px; right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 20px 28px;
    gap: 18px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .hero { padding-top: 100px; }
  .contact-card .hero-links { justify-content: center; }
  .commit {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .flow-diagram { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); align-self: center; }
  .rail { padding-left: 28px; }
  .rail-dot { left: -28px; }
  .plaque-rank { position: static; display: block; margin-bottom: 12px; }
}
