/* ===== 1. DESIGN TOKENS ===== */
:root,
[data-theme="light"] {
  --tea-green: #ccd5ae;
  --beige: #e9edc9;
  --cornsilk: #fefae0;
  --papaya-whip: #faedcd;
  --light-bronze: #d4a373;

  --bg-canvas: var(--cornsilk);
  --bg-glow-1: rgba(233, 237, 201, 0.75);
  --bg-glow-2: rgba(250, 237, 205, 0.85);
  --bg-glow-3: rgba(204, 213, 174, 0.32);

  --surface-ivory: #fffdf5;
  --surface-papaya: var(--papaya-whip);
  --surface-beige: var(--beige);
  --surface-nested: var(--cornsilk);
  --surface-nested-hover: #fffdf5;

  --ink-primary: #262019;
  --ink-secondary: #544b40;
  --ink-muted: #756a5c;
  --ink-accent: #855628;
  --badge-green-bg: var(--tea-green);
  --badge-green-ink: #2a311e;
  --dot-green-ring: rgba(74, 93, 35, 0.18);

  --bulb-core: radial-gradient(circle at 38% 35%, #fff6cc 0%, #eab34b 56%, #c88422 100%);
  --bulb-border: #b8771e;
  --bulb-ring: rgba(234, 179, 75, 0.24);
  --bulb-glow: rgba(217, 146, 43, 0.36);
  --bulb-glow-soft: rgba(217, 146, 43, 0.22);

  --btn-primary-bg: var(--light-bronze);
  --btn-primary-hover: #ca945f;
  --btn-primary-ink: #262019;
  --btn-primary-border: rgba(168, 118, 68, 0.35);

  --border-subtle: rgba(212, 163, 115, 0.42);
  --border-strong: rgba(212, 163, 115, 0.78);
  --timeline-line: rgba(212, 163, 115, 0.55);
  --hero-orb-1: rgba(250, 237, 205, 0.9);
  --hero-orb-2: rgba(204, 213, 174, 0.25);

  --shadow-card: 0 8px 28px -8px rgba(72, 54, 34, 0.09), 0 2px 6px -1px rgba(72, 54, 34, 0.04);
  --shadow-hover: 0 12px 32px -8px rgba(72, 54, 34, 0.14), 0 4px 10px -2px rgba(72, 54, 34, 0.06);

  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg-canvas: #171511;
  --bg-glow-1: rgba(204, 213, 174, 0.08);
  --bg-glow-2: rgba(212, 163, 115, 0.10);
  --bg-glow-3: rgba(233, 237, 201, 0.05);

  --surface-ivory: #211e18;
  --surface-papaya: #272219;
  --surface-beige: #20231a;
  --surface-nested: #191612;
  --surface-nested-hover: #2c271f;

  --ink-primary: #fefae0;
  --ink-secondary: #d7cfbc;
  --ink-muted: #a49b87;
  --ink-accent: #e0b384;
  --badge-green-bg: rgba(204, 213, 174, 0.17);
  --badge-green-ink: #ccd5ae;
  --dot-green-ring: rgba(204, 213, 174, 0.24);

  --bulb-core: radial-gradient(circle at 38% 35%, #fff9db 0%, #f2c057 58%, #cf8f2e 100%);
  --bulb-border: #f7d688;
  --bulb-ring: rgba(242, 192, 87, 0.22);
  --bulb-glow: rgba(242, 192, 87, 0.34);
  --bulb-glow-soft: rgba(242, 192, 87, 0.18);

  --btn-primary-hover: #dfb182;
  --btn-primary-ink: #1b1712;
  --btn-primary-border: rgba(254, 250, 224, 0.16);

  --border-subtle: rgba(212, 163, 115, 0.22);
  --border-strong: rgba(212, 163, 115, 0.50);
  --timeline-line: rgba(212, 163, 115, 0.34);
  --hero-orb-1: rgba(212, 163, 115, 0.16);
  --hero-orb-2: rgba(204, 213, 174, 0.08);

  --shadow-card: 0 10px 30px -8px rgba(0, 0, 0, 0.45), 0 2px 8px -1px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 14px 36px -8px rgba(0, 0, 0, 0.6), 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* ===== 2. BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-main);
  color: var(--ink-primary);
  background-color: var(--bg-canvas);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Page glow. A fixed pseudo-element replaces `background-attachment: fixed`,
   which is janky on mobile and ignored by iOS Safari. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 8%, var(--bg-glow-1) 0%, transparent 42%),
    radial-gradient(circle at 88% 18%, var(--bg-glow-2) 0%, transparent 46%),
    radial-gradient(circle at 50% 95%, var(--bg-glow-3) 0%, transparent 50%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: var(--font-main); }
button { font: inherit; cursor: pointer; }

/* Visually hidden, still read by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== 3. NAV, CONTAINER, GRID ===== */
.top-nav-wrapper {
  position: sticky;
  top: 0.75rem;
  z-index: 40;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.top-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem 0.55rem 1.15rem;
  border-radius: 999px;
  background-color: var(--surface-ivory);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.25s ease, border-color 0.22s ease;
}

.nav-brand {
  justify-self: start;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.nav-brand span { color: var(--ink-accent); }

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.22rem;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-link:hover { color: var(--ink-primary); background-color: var(--surface-papaya); }
.nav-link.is-active { background-color: var(--badge-green-bg); color: var(--badge-green-ink); }

.theme-toggle-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 999px;
  background-color: var(--surface-papaya);
  border: 1px solid var(--border-subtle);
  color: var(--ink-primary);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.16s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: var(--light-bronze);
  background-color: var(--badge-green-bg);
  color: var(--badge-green-ink);
}
.theme-toggle-btn:active { transform: scale(0.97); }
.theme-toggle-btn svg { width: 16px; height: 16px; color: var(--ink-accent); flex-shrink: 0; }

@media (max-width: 680px) {
  .top-nav { display: flex; justify-content: space-between; padding: 0.48rem 0.55rem 0.48rem 0.85rem; gap: 0.4rem; }
  .nav-link { padding: 0.38rem 0.58rem; font-size: 0.73rem; }
}

[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: inline-block; }
[data-theme="dark"] .icon-sun { display: inline-block; }
[data-theme="dark"] .icon-moon { display: none; }

main { flex: 1; padding-top: 1.15rem; padding-bottom: 1.5rem; }

.container { width: 100%; max-width: 1020px; margin: 0 auto; padding: 0 1.25rem; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.col-12, .col-7, .col-5 { grid-column: span 12; }
@media (min-width: 840px) {
  .col-7 { grid-column: span 7; }
  .col-5 { grid-column: span 5; }
}

.bento-card {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 5.25rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-ivory);
  box-shadow: var(--shadow-card);
  padding: 1.65rem;
  transition: background-color 0.25s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
@media (min-width: 640px) { .bento-card { padding: 2.1rem; } }
.bento-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-hover); }

#education { background-color: var(--surface-papaya); }
#skills { background-color: var(--surface-beige); }

/* ===== 4. HERO ===== */
.hero-accent-orb {
  position: absolute;
  top: -85px;
  right: -65px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-orb-1) 0%, var(--hero-orb-2) 55%, transparent 75%);
  pointer-events: none;
}

.hero-header { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.35rem; }
@media (min-width: 640px) { .hero-header { flex-direction: row; gap: 1.65rem; } }

.avatar-frame {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 2px solid var(--light-bronze);
  background-color: var(--surface-papaya);
  box-shadow: 0 6px 16px -4px rgba(133, 86, 40, 0.18);
}
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--badge-green-bg) 0%, var(--surface-papaya) 100%);
  user-select: none;
}
.avatar-fallback.is-visible { display: flex; }
.avatar-initials { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }

.hero-copy { flex: 1; min-width: 0; padding-top: 0.1rem; }
.hero-name { font-size: clamp(1.75rem, 3.6vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.hero-subtitle { margin-top: 0.42rem; font-size: clamp(0.95rem, 1.8vw, 1.08rem); font-weight: 600; line-height: 1.4; color: var(--ink-accent); }

.hero-meta-row { margin-top: 0.72rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; }
.hero-location { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.84rem; font-weight: 600; line-height: 1.2; color: var(--ink-secondary); }
.hero-location .preview-icon { width: 16px; height: 16px; color: var(--ink-accent); flex-shrink: 0; }

.hero-intro { margin-top: 0.95rem; max-width: 68ch; font-size: 0.93rem; line-height: 1.68; color: var(--ink-secondary); }

.hero-actions {
  position: relative;
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 42px;
  padding: 0 1.2rem;
  border-radius: 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  border-color: var(--btn-primary-border);
  box-shadow: 0 4px 12px -2px rgba(212, 163, 115, 0.38);
}
.btn-primary:hover { background-color: var(--btn-primary-hover); }

.btn-secondary { background-color: var(--surface-nested); color: var(--ink-primary); border-color: var(--border-strong); }
.btn-secondary:hover { background-color: var(--badge-green-bg); border-color: var(--light-bronze); color: var(--badge-green-ink); }

/* ===== 5. CARD HEADINGS ===== */
.card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.65rem; margin-bottom: 1.4rem; }
.card-title-group { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.card-title { font-size: 1.14rem; font-weight: 700; letter-spacing: -0.02em; }

.header-action-link { font-size: 0.8rem; font-weight: 600; color: var(--ink-accent); transition: color 0.18s ease; }
.header-action-link:hover { color: var(--ink-primary); }

/* ===== 6. PROJECTS ===== */
.projects-empty-state {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-strong);
  background-color: var(--surface-nested);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-align: center;
}

/* ===== 7. EDUCATION TIMELINE ===== */
.timeline { list-style: none; position: relative; display: flex; flex-direction: column; gap: 1.35rem; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background-color: var(--timeline-line); }
.timeline-item { position: relative; }
.timeline-marker {
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-strong);
  border: 2px solid var(--surface-papaya);
}
.timeline-item.is-current .timeline-marker {
  width: 13px;
  height: 13px;
  background: var(--bulb-core);
  border: 1.5px solid var(--bulb-border);
  box-shadow: 0 0 0 3px var(--bulb-ring), 0 0 11px 2px var(--bulb-glow);
}
@keyframes bulb-pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px var(--bulb-ring), 0 0 10px 2px var(--bulb-glow);
  }
  50% {
    box-shadow: 0 0 0 4px var(--bulb-ring), 0 0 14px 3px var(--bulb-glow-soft);
  }
}
.timeline-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 0.75rem; }
.edu-institution { font-size: 0.96rem; font-weight: 700; }
.edu-period { font-size: 0.76rem; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.timeline-item.is-current .edu-period { color: var(--ink-accent); }
.edu-credential { margin-top: 0.2rem; font-size: 0.86rem; font-weight: 500; color: var(--ink-secondary); }

/* ===== 8. SKILLS ===== */
.skills-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.skill-group-label {
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.pill-wrap { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background-color: var(--surface-nested);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-primary);
}
.skill-origin { font-weight: 500; color: var(--ink-muted); }

/* Skill pill hover */
.skill-pill {
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.skill-pill:hover {
  transform: translateY(-2px);
  border-color: var(--light-bronze);
  background-color: var(--surface-papaya);
  box-shadow: var(--shadow-card);
}

/* ===== 9. CONTACT ===== */
#contact { scroll-margin-top: 5.25rem; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.contact-info { flex: 1 1 14rem; min-width: 0; }
.contact-title { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.contact-note { margin-top: 0.15rem; font-size: 0.82rem; line-height: 1.5; color: var(--ink-secondary); }
.contact-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; min-width: 0; }
.contact-card-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 0;
  word-break: break-all;
  transition: color 0.18s ease;
}
.contact-card-email:hover { color: var(--ink-accent); }
.contact-card-email svg { width: 16px; height: 16px; color: var(--ink-muted); flex-shrink: 0; }

.copy-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 999px;
  background-color: var(--surface-nested);
  border: 1px solid var(--border-subtle);
  color: var(--ink-primary);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.copy-pill-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.copy-pill-btn .icon-check { display: none; }
.copy-pill-btn.is-copied .icon-copy { display: none; }
.copy-pill-btn.is-copied .icon-check { display: inline-block; }
.copy-pill-btn:hover { border-color: var(--light-bronze); background-color: var(--surface-papaya); }
.copy-pill-btn.is-copied { background-color: var(--badge-green-bg); border-color: var(--light-bronze); color: var(--badge-green-ink); }

/* ===== 10. FOOTER ===== */
.site-footer { padding-bottom: 2rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.35rem;
  border-radius: 1.1rem;
  background-color: var(--surface-ivory);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.footer-top-link { color: var(--ink-secondary); font-weight: 600; transition: color 0.18s ease; }
.footer-top-link:hover { color: var(--ink-accent); }

/* ===== VISUAL REFINEMENT ===== */
:root {
  --radius-card: 1.65rem;
  --radius-soft: 1.05rem;
  --accent-deep: #79502e;
  --surface-line: rgba(133, 86, 40, 0.12);
}
[data-theme="dark"] {
  --accent-deep: #e0b384;
  --surface-line: rgba(224, 179, 132, 0.14);
}

body { line-height: 1.68; }
main { padding-top: 1.45rem; }
.container { max-width: 1080px; }
.top-nav-wrapper { max-width: 1080px; }
.top-nav {
  min-height: 58px;
  border-color: var(--surface-line);
  box-shadow: 0 10px 35px -18px rgba(54, 39, 22, .28);
}
.nav-brand { font-size: 1rem; letter-spacing: -.055em; }
.nav-link { padding: .52rem .88rem; }
.nav-link.is-active { box-shadow: inset 0 0 0 1px var(--surface-line); }

.bento-grid { gap: 1.1rem; }
.bento-card {
  border-radius: var(--radius-card);
  border-color: var(--surface-line);
  padding: 1.8rem;
  box-shadow: 0 14px 40px -27px rgba(65, 47, 25, .28);
}
@media (min-width: 640px) {
  .bento-card { padding: 2.25rem; }
}
/* Shadow only. Lifting the whole card with translateY made it flicker when the
   pointer sat within a couple of pixels of its bottom edge. */
.bento-card:hover {
  box-shadow: var(--shadow-hover);
}
#about {
  min-height: 320px;
  background:
    radial-gradient(ellipse at 92% 0%, var(--hero-orb-1), transparent 43%),
    var(--surface-ivory);
}
#education { background: linear-gradient(145deg, var(--surface-papaya), var(--surface-ivory)); }
#skills { background: linear-gradient(145deg, var(--surface-beige), var(--surface-ivory)); }

.hero-header { gap: 1.6rem; align-items: center; }
.avatar-frame {
  width: 124px; height: 124px;
  border-radius: 1.55rem;
  border: 3px solid var(--surface-ivory);
  outline: 1px solid var(--border-strong);
  box-shadow: 0 12px 28px -12px rgba(88, 58, 28, .36);
}
.hero-name { font-size: clamp(2rem, 4.2vw, 2.85rem); letter-spacing: -.06em; }
.hero-subtitle { max-width: 55ch; font-size: clamp(.98rem, 1.8vw, 1.12rem); }
.hero-intro { max-width: 66ch; font-size: .94rem; line-height: 1.8; }
.hero-meta-row { gap: .55rem; }
.hero-location {
  padding: .42rem .72rem;
  border: 1px solid var(--surface-line);
  border-radius: 999px;
  background: var(--surface-nested);
  font-size: .76rem;
}
.hero-actions { margin-top: 1.7rem; padding-top: 1.45rem; }
.btn { height: 44px; border-radius: .95rem; }
.btn-primary { box-shadow: 0 7px 18px -9px rgba(133, 86, 40, .65); }

.card-title-group { gap: .8rem; }
.card-title-icon {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 12px;
  color: var(--ink-accent);
  background: var(--surface-nested);
  border: 1px solid var(--surface-line);
}
.card-title-icon svg { width: 18px; height: 18px; }
.card-title { font-size: 1.6rem; letter-spacing: -.035em; line-height: 1.15; }
.card-header { margin-bottom: 1.55rem; }
.header-action-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .48rem .72rem; border-radius: 999px;
  background: var(--surface-nested); border: 1px solid var(--surface-line);
  font-size: .74rem;
}

.projects-empty-state {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 1.1rem;
  min-height: 116px; padding: 1.35rem 1.5rem;
  text-align: left;
  background:
    radial-gradient(circle at 100% 0%, var(--bg-glow-2), transparent 48%),
    var(--surface-nested);
}

.timeline { gap: 1rem; padding-left: 1.7rem; }
.timeline::before { left: 5px; top: 10px; bottom: 10px; }
.timeline-item {
  padding: .15rem 0 .15rem .9rem;
}
.timeline-marker { left: -1.7rem; top: .55rem; }
.timeline-item.is-current .timeline-marker { left: calc(-1.7rem - 0.5px); top: .5rem; }
.edu-institution { font-size: .91rem; }
.edu-period {
  padding: .2rem .52rem; border-radius: 999px;
  background: var(--surface-nested); border: 1px solid var(--surface-line);
  font-size: .68rem;
}
.timeline-item.is-current .edu-period {
  background: var(--badge-green-bg); color: var(--badge-green-ink);
}
.edu-credential { font-size: .8rem; line-height: 1.55; }

.skills-stack { gap: 1.15rem; }
.skill-group-label { display: flex; align-items: center; gap: .45rem; margin-bottom: .68rem; }
.skill-pill {
  padding: .42rem .7rem; border-radius: .75rem;
  background: var(--surface-ivory); border-color: var(--surface-line);
  font-size: .74rem;
}
.skill-origin { font-size: .67rem; }

.site-footer { padding-bottom: 1.5rem; }
.footer-inner { border-color: var(--surface-line); border-radius: 1rem; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--light-bronze);
  outline-offset: 3px;
}
/* ===== AWARDS ===== */
.awards-list { list-style: none; margin: 0; padding: 0; }
.awards-item {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem .9rem; padding: .85rem 0;
  border-top: 1px solid var(--surface-line);
}
.awards-item:first-child { border-top: 0; padding-top: 0; }
.awards-item:last-child { padding-bottom: 0; }
.awards-name { font-size: .96rem; font-weight: 700; line-height: 1.4; }
.awards-meta {
  padding: .2rem .62rem; border-radius: 999px;
  background: var(--surface-nested); border: 1px solid var(--surface-line);
  font-size: .72rem; font-weight: 600; color: var(--ink-muted);
  white-space: nowrap;
}
@media (max-width: 680px) {
  .awards-item { flex-direction: column; align-items: flex-start; gap: .45rem; }
  .awards-meta { white-space: normal; }
}
@media (max-width: 680px) {
  .top-nav-wrapper { top: .4rem; }
  .top-nav { min-height: 52px; }
  .nav-links { gap: .05rem; }
  .nav-link { padding: .4rem .48rem; font-size: .68rem; }
  .bento-grid { gap: .85rem; }
  .bento-card { padding: 1.35rem; border-radius: 1.25rem; }
  .hero-header { align-items: flex-start; }
  .avatar-frame { width: 92px; height: 92px; border-radius: 1.2rem; }
  .hero-name { font-size: 1.85rem; }
  .hero-actions { gap: .55rem; }
  .btn { flex: 1 1 auto; padding: 0 .8rem; }
  .projects-empty-state { align-items: flex-start; padding: 1rem; }
  .contact-card-email { font-size: .8rem; }
  .contact-actions { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: no-preference) {
  .bento-card { transition: box-shadow .22s ease, background-color .25s ease, border-color .22s ease; }
  .card-title-icon { transition: transform .2s ease; }
  .bento-card:hover .card-title-icon { transform: translateY(-2px) rotate(-4deg); }
  .timeline-item.is-current .timeline-marker { animation: bulb-pulse 3.6s ease-in-out infinite; }
}
