/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg: #0b0b0c;
  --bg-alt: #131315;
  --bg-raised: #18181b;
  --text: #f3f2ee;
  --text-muted: #9a9a95;
  --text-faint: #5c5c58;
  --accent: #4fd8c4;
  --accent-dim: rgba(79, 216, 196, 0.12);
  --accent-text: #0b0b0c;
  --line: rgba(243, 242, 238, 0.12);
  --line-strong: rgba(243, 242, 238, 0.24);
  --ghost: rgba(243, 242, 238, 0.05);

  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1240px;
  --nav-h: 84px;
  --edge: 40px;
}

[data-theme="light"] {
  --bg: #f3f2ee;
  --bg-alt: #ebe9e2;
  --bg-raised: #ffffff;
  --text: #101012;
  --text-muted: #5c5c58;
  --text-faint: #93938c;
  --accent: #0e8f7d;
  --accent-dim: rgba(14, 143, 125, 0.1);
  --accent-text: #f3f2ee;
  --line: rgba(16, 16, 18, 0.12);
  --line-strong: rgba(16, 16, 18, 0.24);
  --ghost: rgba(16, 16, 18, 0.04);
}

/* ============================================================
   RESET
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .reveal { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
  cursor: default;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--edge); }
.mono { font-family: var(--font-mono); }

/* ============================================================
   CURSOR (pointer devices only)
   ============================================================ */
@media (pointer: fine) {
  body { cursor: none; }
  a, button, .exp-tab { cursor: none; }
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300; border-radius: 50%; }
  .cursor-dot { width: 6px; height: 6px; background: var(--accent); transform: translate(-50%, -50%); }
  .cursor-ring {
    width: 34px; height: 34px; border: 1px solid var(--line-strong);
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }
  .cursor-ring.hover { width: 56px; height: 56px; border-color: var(--accent); background: var(--accent-dim); }
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ============================================================
   CHAPTER SCAFFOLDING
   ============================================================ */
section { position: relative; padding: 150px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
section:last-of-type { border-bottom: none; }

.chapter-number {
  position: absolute;
  top: 40px; right: var(--edge);
  font-family: var(--font-display);
  font-size: clamp(90px, 13vw, 200px);
  font-weight: 500;
  color: var(--ghost);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section-head { position: relative; z-index: 1; max-width: 720px; margin-bottom: 72px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); display: inline-block; }
.section-head h2 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.05; }
.section-head .lede { color: var(--text-muted); margin-top: 18px; font-size: 17px; max-width: 560px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-1.in-view { transition-delay: 0.06s; }
.reveal-2.in-view { transition-delay: 0.12s; }
.reveal-3.in-view { transition-delay: 0.18s; }
.reveal-4.in-view { transition-delay: 0.24s; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 150;
  display: flex; align-items: center;
  mix-blend-mode: normal;
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; width: 100%; padding: 0 var(--edge);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-mark {
  font-family: var(--font-mono); font-size: 15px; font-weight: 500;
  display: flex; align-items: baseline; gap: 2px; z-index: 210; position: relative;
}
.nav-mark .dot { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 18px; z-index: 210; position: relative; }

.theme-toggle {
  position: relative; width: 52px; height: 28px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--bg-raised);
  padding: 3px; display: flex; align-items: center; flex-shrink: 0;
}
.theme-toggle .knob {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  transition: transform 0.3s cubic-bezier(.65,0,.35,1); transform: translateX(0);
}
[data-theme="light"] .theme-toggle .knob { transform: translateX(24px); }

.menu-btn {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px;
}
.menu-btn .bars { width: 26px; height: 14px; position: relative; }
.menu-btn .bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.menu-btn .bars span:nth-child(1) { top: 0; }
.menu-btn .bars span:nth-child(2) { top: 100%; margin-top: -1.5px; }
.nav.menu-open .menu-btn .bars span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.nav.menu-open .menu-btn .bars span:nth-child(2) { top: 50%; margin-top: -1.5px; transform: rotate(-45deg); }

/* full-screen overlay menu */
.nav-overlay {
  position: fixed; inset: 0; background: var(--bg); z-index: 200;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--edge);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.nav.menu-open .nav-overlay { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-overlay-inner { max-width: var(--container); margin: 0 auto; width: 100%; }
.overlay-links { display: flex; flex-direction: column; gap: 4px; }
.overlay-links a {
  position: relative;
  font-family: var(--font-display); font-size: clamp(32px, 7vw, 68px);
  display: flex; align-items: baseline; gap: 20px; padding: 10px 0; width: fit-content;
  color: var(--text-faint); transition: color 0.25s ease, transform 0.25s ease;
  opacity: 0; transform: translateY(16px);
}
.nav.menu-open .overlay-links a { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease, color 0.25s ease; }
.overlay-links a::after {
  content: ""; position: absolute; left: 0; bottom: 6px; height: 2px; width: 0;
  background: var(--accent); transition: width 0.3s cubic-bezier(.16,1,.3,1);
}
.overlay-links a:hover::after, .overlay-links a.active::after { width: 100%; }
.overlay-links a .idx { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.overlay-links a:hover, .overlay-links a.active { color: var(--text); }
.overlay-links a.active .idx::after { content: " ·"; }
.overlay-foot {
  margin-top: 60px; display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-faint);
}
.overlay-foot a { transition: color 0.2s ease; }
.overlay-foot a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 90px; min-height: 92vh; display: flex; align-items: center; }
.hero-kicker {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  margin-bottom: 30px; display: flex; align-items: center; gap: 8px;
}
.hero-kicker .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-dim); animation: pulse 2.2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-dim); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-headline {
  font-size: clamp(46px, 8.4vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.hero-headline .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-headline .word span { display: inline-block; transform: translateY(110%); animation: wordUp 0.9s cubic-bezier(.16,1,.3,1) both; animation-play-state: paused; }
html.loaded .hero-headline .word span { animation-play-state: running; }
.hero-headline .accent { color: var(--accent); }
@keyframes wordUp { from { transform: translateY(110%); } to { transform: translateY(0); } }

/* ============================================================
   PRELOADER
   ============================================================ */
[v-cloak] { visibility: hidden; }
html.preloading { overflow: hidden; }
.preloader {
  position: fixed; inset: 0; z-index: 400; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 0.9s cubic-bezier(.76,0,.24,1);
}
.preloader.leaving { clip-path: circle(0% at 50% 50%); pointer-events: none; }
.preloader-content { display: flex; flex-direction: column; align-items: center; }

.preloader-pipeline { margin-bottom: 34px; }
.preloader-pipeline svg { width: 220px; height: auto; display: block; }
.pl-node { fill: var(--bg-alt); stroke: var(--line-strong); stroke-width: 1.5; transition: fill 0.4s ease, stroke 0.4s ease, r 0.3s ease; }
.pl-node.lit { fill: var(--accent-dim); stroke: var(--accent); }
.pl-node.final.lit { fill: var(--accent); }
.pl-node.lit { animation: nodePop 0.4s ease; }
@keyframes nodePop { 0% { transform: scale(0.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.pl-line { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 5 5; transition: stroke 0.4s ease; }
.pl-line.lit { stroke: var(--accent); animation: plFlow 1s linear infinite; }
@keyframes plFlow { to { stroke-dashoffset: -20; } }

.preloader-mark {
  font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.01em;
  display: flex; gap: 2px; overflow: hidden; margin-bottom: 18px;
}
.preloader-mark span.char { display: inline-block; animation: charIn 0.5s ease both; }
.preloader-mark .dot { color: var(--accent); }
@keyframes charIn { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: translateY(0); } }

.preloader-status {
  font-size: 11px; color: var(--text-faint); letter-spacing: 0.04em;
  margin-bottom: 28px; height: 14px; min-width: 220px; text-align: center;
}

.preloader-bar { width: 220px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.preloader-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, white));
  transition: width 0.15s linear;
  box-shadow: 0 0 10px var(--accent);
}
.preloader-pct {
  margin-top: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
  font-variant-numeric: tabular-nums; letter-spacing: 0.05em;
}

@media (prefers-reduced-motion: reduce) {
  .preloader { transition: opacity 0.3s ease; clip-path: none; }
  .preloader.leaving { opacity: 0; clip-path: none; }
  .preloader-mark span.char { animation: none; opacity: 1; transform: none; }
  .pl-line.lit { animation: none; }
  .pl-node.lit { animation: none; }
}

.hero-sub {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 56px; gap: 40px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.hero-sub .tagline { font-size: 19px; color: var(--text-muted); max-width: 460px; }
.hero-sub .role { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); margin-top: 14px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  position: relative; overflow: hidden;
  font-family: var(--font-mono); font-size: 13px; padding: 15px 26px; border-radius: 999px;
  border: 1px solid var(--line-strong); display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 500; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, white); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* marquee */
.marquee-wrap { margin-top: 90px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; gap: 40px; animation: marquee 26s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); white-space: nowrap; display: flex; align-items: center; gap: 40px; }
.marquee-track span::after { content: "//"; color: var(--line-strong); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; min-width: 0; }
.about-text-col { min-width: 0; }
.about-head-row { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.profile-frame {
  position: relative; width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line-strong); overflow: hidden; background: var(--bg-alt);
  transition: border-color 0.3s ease;
}
.profile-frame:hover { border-color: var(--accent); }
.profile-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.profile-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 26px; color: var(--accent); z-index: 0;
}
.about-text p { color: var(--text-muted); margin-bottom: 20px; font-size: 17px; overflow-wrap: break-word; }
.about-text p:last-child { margin-bottom: 0; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); align-content: start; min-width: 0; }
.stat-card { background: var(--bg); padding: 28px 24px; min-width: 0; }
.stat-card .value { font-family: var(--font-display); font-size: 34px; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-card .label { font-size: 13px; color: var(--text-muted); margin-top: 10px; line-height: 1.4; }

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-list { position: relative; z-index: 1; display: flex; flex-direction: column; }
.edu-card { border-top: 1px solid var(--line); padding: 40px 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; }
.edu-list .edu-card:last-child { border-bottom: 1px solid var(--line); }
.edu-card .school-col .school { font-family: var(--font-display); font-size: 24px; }
.edu-card .school-col .loc { color: var(--text-faint); font-size: 13px; margin-top: 6px; }
.edu-card .school-col .period { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-top: 14px; }
.edu-card .degree { font-weight: 500; margin-bottom: 4px; font-size: 17px; }
.edu-card .gpa { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.edu-card .detail { color: var(--text-muted); font-size: 15.5px; margin-bottom: 18px; overflow-wrap: break-word; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono); font-size: 11.5px; padding: 6px 12px; border-radius: 999px;
  color: var(--text-muted); border: 1px solid var(--line-strong);
  transition: border-color 0.2s ease, color 0.2s ease;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 50px; }
.exp-tabs { display: flex; flex-direction: column; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.exp-tab {
  text-align: left; padding: 20px 0; border-top: 1px solid var(--line); transition: padding-left 0.25s ease;
}
.exp-tabs .exp-tab:last-child { border-bottom: 1px solid var(--line); }
.exp-tab .idx { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.exp-tab .company { font-weight: 500; font-size: 16px; margin-top: 6px; }
.exp-tab .role { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.exp-tab.active { padding-left: 14px; }
.exp-tab.active .idx, .exp-tab.active .role { color: var(--accent); }

.exp-panel { padding-top: 4px; min-width: 0; }
.exp-panel .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.exp-panel h3 { font-size: clamp(24px, 3vw, 34px); overflow-wrap: break-word; }
.exp-panel .meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); margin-top: 8px; }
.exp-panel .period-badge { font-family: var(--font-mono); font-size: 12px; color: var(--accent); border: 1px solid var(--line-strong); padding: 7px 14px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.exp-panel .summary { color: var(--text-muted); font-size: 16.5px; margin-bottom: 26px; max-width: 640px; overflow-wrap: break-word; }
.exp-panel .tag-row { margin-bottom: 34px; }

.highlight-list { display: flex; flex-direction: column; min-width: 0; }
.highlight { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; }
.highlight-list .highlight:last-child { border-bottom: 1px solid var(--line); }
.highlight::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
.highlight .h-title { font-weight: 500; font-size: 16px; margin-bottom: 8px; overflow-wrap: break-word; }
.highlight .h-body { color: var(--text-muted); font-size: 15px; overflow-wrap: break-word; max-width: 68ch; }

/* ============================================================
   PROJECTS — stacked editorial rows
   ============================================================ */
.project-list { position: relative; z-index: 1; display: flex; flex-direction: column; }
.project-row { border-top: 1px solid var(--line); padding: 44px 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.project-list .project-row:last-child { border-bottom: 1px solid var(--line); }
.project-thumb { aspect-ratio: 4 / 3; border-radius: 4px; border: 1px solid var(--line); overflow: hidden; background: var(--bg-alt); transition: border-color 0.3s ease; }
.project-thumb svg { width: 100%; height: 100%; display: block; transition: transform 0.5s cubic-bezier(.16,1,.3,1); }
.project-row:hover .project-thumb { border-color: var(--accent); }
.project-row:hover .project-thumb svg { transform: scale(1.06); }
.project-body .p-name { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); }
.project-body .p-sub { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); margin-top: 8px; }
.project-body .p-summary { color: var(--text-muted); font-size: 15.5px; margin: 18px 0 20px; max-width: 640px; overflow-wrap: break-word; }
.project-body .tag-row { margin-bottom: 22px; }
.project-body .p-details { display: flex; flex-direction: column; gap: 14px; color: var(--text-muted); font-size: 15px; margin-bottom: 18px; max-width: 680px; }
.project-body .p-outcome { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); }
.expand-btn {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text);
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px; padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
}
.expand-btn:hover { border-color: var(--accent); color: var(--accent); }
.expand-btn .chev { transition: transform 0.25s ease; display: inline-block; }
.expand-btn.open .chev { transform: rotate(180deg); }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.skill-group { background: var(--bg); padding: 30px 28px; transition: background 0.3s ease; }
.skill-group:hover { background: var(--bg-alt); }
.skill-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.skill-icon {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), border-color 0.3s ease;
}
.skill-icon svg { width: 17px; height: 17px; }
.skill-group:hover .skill-icon { transform: rotate(-8deg) scale(1.08); border-color: var(--accent); }
.skill-group h4 { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.skill-group .tag:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-list { position: relative; z-index: 1; display: flex; flex-direction: column; }
.cert-row {
  border-top: 1px solid var(--line); padding: 26px 0; display: grid;
  grid-template-columns: 52px 90px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  transition: padding-left 0.3s ease;
}
.cert-list .cert-row:last-child { border-bottom: 1px solid var(--line); }
.cert-row:hover { padding-left: 10px; }
.cert-icon {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), border-color 0.3s ease;
}
.cert-icon svg { width: 20px; height: 20px; }
.cert-row:hover .cert-icon { transform: rotate(10deg) scale(1.08); border-color: var(--accent); }
.cert-code { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.cert-name { font-weight: 500; font-size: 17px; overflow-wrap: break-word; }
.cert-issuer { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); margin-top: 6px; }
.cert-blurb { color: var(--text-muted); font-size: 14px; margin-top: 8px; max-width: 520px; overflow-wrap: break-word; }
.cert-arrow { font-size: 20px; color: var(--text-faint); transition: transform 0.3s ease, color 0.3s ease; }
.cert-row:hover .cert-arrow { transform: translateX(4px); color: var(--accent); }

/* ============================================================
   CONTACT — big closing statement
   ============================================================ */
.contact-inner { position: relative; z-index: 1; }
.contact-inner h2 {
  font-size: clamp(38px, 7vw, 92px); line-height: 1.02; letter-spacing: -0.02em; max-width: 16ch;
}
.contact-inner .body { color: var(--text-muted); margin-top: 26px; font-size: 18px; max-width: 520px; }
.contact-email {
  display: inline-flex; align-items: baseline; gap: 14px; margin-top: 48px;
  font-family: var(--font-display); font-size: clamp(24px, 4vw, 44px); color: var(--text);
  border-bottom: 2px solid var(--line-strong); padding-bottom: 10px; transition: border-color 0.25s ease, color 0.25s ease;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-email .arrow { font-family: var(--font-mono); font-size: 0.5em; }
.contact-links-row { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.contact-links-row a { font-family: var(--font-mono); font-size: 13.5px; color: var(--text-muted); border-bottom: 1px solid transparent; padding-bottom: 3px; transition: color 0.2s ease, border-color 0.2s ease; }
.contact-links-row a:hover { color: var(--accent); border-color: var(--accent); }
.copy-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--accent); color: var(--accent-text); font-family: var(--font-mono); font-size: 13px;
  padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: all 0.3s ease; z-index: 250;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 32px 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  :root { --edge: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .exp-layout { grid-template-columns: 1fr; }
  .exp-tabs { flex-direction: row; overflow-x: auto; position: static; }
  .exp-tab { border-top: none; border-bottom: 2px solid var(--line); flex-shrink: 0; padding: 14px 18px 14px 0; }
  .exp-tab.active { padding-left: 0; border-bottom-color: var(--accent); }
  .exp-tabs .exp-tab:last-child { border-bottom: 2px solid var(--line); }
  .exp-tabs .exp-tab.active:last-child { border-bottom-color: var(--accent); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-card { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 1fr; }
  .project-thumb { aspect-ratio: 16/9; }
  .cert-row { grid-template-columns: 44px minmax(0, 1fr); }
  .cert-row .cert-code { display: none; }
  .cert-arrow { display: none; }
  .chapter-number { font-size: clamp(60px, 20vw, 120px); top: 24px; }
}

@media (max-width: 680px) {
  section { padding: 96px 0; }
  .hero { min-height: unset; padding-top: calc(var(--nav-h) + 24px); }
  .hero-sub { flex-direction: column; align-items: flex-start; }
  .skills-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .overlay-links a { font-size: 30px; gap: 12px; }
  .overlay-foot { margin-top: 40px; gap: 18px; }
}
