/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --ink-900: #0b1220;
  --ink-800: #101a30;
  --ink-700: #172542;
  --ink-600: #2a3b60;
  --paper-0: #ffffff;
  --paper-50: #f7f9fc;
  --paper-100: #eef2f8;
  --line-100: #e3e8f0;
  --line-200: #ccd5e3;
  --text-900: #101526;
  --text-700: #384155;
  --text-500: #64708a;
  --text-inverse: #eef2fb;
  --text-inverse-dim: #aab7d6;

  --accent-500: #17b6a8;
  --accent-600: #0f9c90;
  --accent-glow: rgba(23, 182, 168, 0.35);
  --violet-500: #6d6bf7;
  --violet-glow: rgba(109, 107, 247, 0.35);
  --amber-400: #f2b94b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 21, 38, 0.06), 0 1px 1px rgba(16, 21, 38, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 21, 38, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 21, 38, 0.16);

  --container: 1120px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-900);
  background: var(--paper-0);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-900);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-600);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--accent-500);
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }
.section--tight { padding-block: 64px; }
.section--dark {
  background: radial-gradient(1200px 500px at 15% -10%, rgba(23, 182, 168, 0.16), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(109, 107, 247, 0.18), transparent 55%),
    var(--ink-900);
  color: var(--text-inverse);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-inverse); }
.section--alt { background: var(--paper-50); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--text-500); font-size: 1.05rem; }
.section--dark .section-head p { color: var(--text-inverse-dim); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-500), var(--violet-500));
  color: #fff;
  box-shadow: 0 10px 24px -8px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 16px 32px -8px var(--accent-glow); }
.btn-ghost {
  background: transparent;
  border-color: rgba(238, 242, 251, 0.35);
  color: var(--text-inverse);
}
.btn-ghost:hover { border-color: rgba(238, 242, 251, 0.7); background: rgba(238, 242, 251, 0.06); }
.btn-outline {
  background: transparent;
  border-color: var(--line-200);
  color: var(--text-900);
}
.btn-outline:hover { border-color: var(--accent-500); color: var(--accent-600); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(238, 242, 251, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-inverse);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-500), var(--violet-500));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-inverse-dim);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text-inverse); background: rgba(238, 242, 251, 0.08); }
.nav-links a.router-link-active {
  color: var(--text-inverse);
  background: rgba(238, 242, 251, 0.12);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(238, 242, 251, 0.08);
  border: 1px solid rgba(238, 242, 251, 0.14);
  color: var(--text-inverse);
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-primary { display: none; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--ink-800);
    border: 1px solid rgba(238, 242, 251, 0.1);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow-lg);
    transform-origin: top center;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  }
  .nav-links.is-open { opacity: 1; transform: scaleY(1); pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta .btn span { display: inline; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-block: 88px 96px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-500);
  margin-bottom: 18px;
  display: block;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.08;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent-500), var(--violet-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin-top: 22px;
  font-size: 1.12rem;
  color: var(--text-inverse-dim);
  max-width: 52ch;
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 36px;
  max-width: 560px;
}
.hero-stat .label { display: block; }
.hero-stat .num {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  color: var(--text-inverse);
  display: block;
}
.hero-stat .label {
  font-size: 0.82rem;
  color: var(--text-inverse-dim);
}

.hero-figure { position: relative; justify-self: center; }
.hero-figure .glow {
  position: absolute;
  inset: -10%;
  background: conic-gradient(from 140deg, var(--accent-glow), transparent 30%, var(--violet-glow), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  border-radius: 50%;
}
.hero-photo {
  position: relative;
  z-index: 1;
  width: min(360px, 80vw);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(238, 242, 251, 0.14);
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute;
  z-index: 2;
  bottom: -18px;
  left: -22px;
  background: var(--paper-0);
  color: var(--text-900);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-500); box-shadow: 0 0 0 4px var(--accent-glow); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-figure { order: -1; }
  .hero-badge { left: 50%; transform: translateX(-50%); }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.about-copy p { color: var(--text-700); margin-bottom: 18px; }
.about-copy p:last-child { margin-bottom: 0; }
.beyond-work {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--paper-50);
  border: 1px solid var(--line-100);
}
.beyond-work h4 { font-size: 1rem; margin-bottom: 8px; }
.beyond-work p { color: var(--text-500); font-size: 0.96rem; }

.skills-list { display: flex; flex-direction: column; gap: 22px; }
.skill-row .skill-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.skill-row h4 { font-size: 1rem; font-family: inherit; font-weight: 600; }
.skill-row .pct { font-size: 0.85rem; color: var(--accent-600); font-weight: 700; }
.skill-row p { font-size: 0.88rem; color: var(--text-500); margin-bottom: 10px; }
.bar-track { height: 8px; border-radius: var(--radius-pill); background: var(--line-100); overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-500), var(--violet-500));
  width: 0%;
  transition: width 1.1s var(--ease);
}
.skill-row.in-view .bar-fill { width: var(--pct); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   Timeline (Resume)
   ========================================================================== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--line-200), var(--line-100));
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper-0);
  border: 3px solid var(--accent-500);
}
.timeline-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.timeline-head h4 { font-size: 1.08rem; }
.timeline-period { font-size: 0.82rem; font-weight: 600; color: var(--accent-600); background: rgba(23, 182, 168, 0.1); padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.timeline-org { font-size: 0.92rem; color: var(--text-500); margin-top: 2px; }
.timeline-item ul { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.timeline-item li { position: relative; padding-left: 18px; color: var(--text-700); font-size: 0.95rem; }
.timeline-item li::before { content: '—'; position: absolute; left: 0; color: var(--text-500); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 48px; } }

.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cert-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--paper-50);
  border: 1px solid var(--line-100);
}
.cert-card .name { font-weight: 700; font-family: 'Fraunces', serif; }
.cert-card .issuer { font-size: 0.85rem; color: var(--text-500); margin-top: 2px; }

.publication-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.publication-list li { font-size: 0.9rem; color: var(--text-500); padding-left: 18px; position: relative; }
.publication-list li::before { content: '·'; position: absolute; left: 0; color: var(--accent-500); font-size: 1.4rem; line-height: 0.6; top: 4px; }

/* ==========================================================================
   Cards grid (Projects / Blog)
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--paper-0);
  border: 1px solid var(--line-100);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-200); }
.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(23, 182, 168, 0.16), rgba(109, 107, 247, 0.16));
  color: var(--accent-600);
  margin-bottom: 20px;
}
.project-card .meta { font-size: 0.82rem; color: var(--text-500); margin-bottom: 6px; }
.project-card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.project-card .summary { color: var(--text-700); font-size: 0.96rem; }
.project-card .desc { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.project-card .desc p { color: var(--text-500); font-size: 0.92rem; }
.tag-row { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--paper-100);
  color: var(--text-700);
}
.section--dark .tag { background: rgba(238, 242, 251, 0.08); color: var(--text-inverse-dim); }

.post-card {
  background: var(--paper-0);
  border: 1px solid var(--line-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--text-500); margin-bottom: 10px; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-500); }
.post-card h3 { font-size: 1.14rem; line-height: 1.35; }
.post-card .excerpt { margin-top: 10px; color: var(--text-500); font-size: 0.92rem; flex: 1; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.read-more { margin-top: 18px; font-size: 0.88rem; font-weight: 700; color: var(--accent-600); display: inline-flex; align-items: center; gap: 6px; }
.post-card:hover .read-more { gap: 9px; }
.read-more { transition: gap 0.2s var(--ease); }

.featured-post { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-100); box-shadow: var(--shadow-sm); margin-bottom: 48px; }
.featured-post .thumb { height: 100%; min-height: 280px; }
.featured-post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-post .body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-post h3 { font-size: 1.6rem; margin-top: 10px; }
@media (max-width: 800px) { .featured-post { grid-template-columns: 1fr; } .featured-post .thumb { min-height: 220px; } .featured-post .body { padding: 28px; } }

/* ==========================================================================
   Blog post detail
   ========================================================================== */
.post-hero-img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius-lg); margin-top: 40px; box-shadow: var(--shadow-md); }
.post-article { max-width: 720px; margin-inline: auto; }
.post-article .post-meta { justify-content: center; margin-bottom: 18px; }
.post-article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; }
.post-article .subhead { text-align: center; color: var(--text-500); margin-top: 16px; font-size: 1.05rem; }
.post-content { margin-top: 44px; font-size: 1.06rem; color: var(--text-700); }
.post-content p { margin-bottom: 20px; }
.post-content h3 { margin-top: 34px; margin-bottom: 14px; font-size: 1.25rem; color: var(--text-900); }
.post-content ul { margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.post-content li { padding-left: 20px; position: relative; }
.post-content li::before { content: '—'; position: absolute; left: 0; color: var(--accent-500); }
.post-content strong { color: var(--text-900); }
.post-footer-nav { margin-top: 56px; display: flex; justify-content: center; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--ink-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-copy { padding: 56px; }
.contact-copy h2 { color: var(--text-inverse); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.contact-copy p { margin-top: 16px; color: var(--text-inverse-dim); max-width: 44ch; }
.contact-links { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(238, 242, 251, 0.05);
  border: 1px solid rgba(238, 242, 251, 0.1);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.contact-link:hover { background: rgba(238, 242, 251, 0.1); border-color: rgba(238, 242, 251, 0.2); transform: translateX(4px); }
.contact-link .ico {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-500), var(--violet-500));
  flex-shrink: 0;
}
.contact-link small { display: block; font-weight: 400; color: var(--text-inverse-dim); font-size: 0.78rem; margin-top: 2px; }
.contact-visual {
  position: relative;
  background: radial-gradient(600px 400px at 70% 20%, rgba(23, 182, 168, 0.35), transparent 60%),
    radial-gradient(500px 400px at 20% 90%, rgba(109, 107, 247, 0.35), transparent 60%),
    var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 40px;
}
.contact-visual .quote {
  color: var(--text-inverse);
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  line-height: 1.5;
  text-align: center;
}
.contact-visual .quote span { color: var(--accent-500); font-size: 2.2rem; line-height: 0; vertical-align: -0.3em; }
@media (max-width: 800px) { .contact-panel { grid-template-columns: 1fr; } .contact-copy { padding: 40px 28px; } .contact-visual { padding: 40px 28px; min-height: 220px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink-900); color: var(--text-inverse-dim); padding-block: 48px 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 32px; border-bottom: 1px solid rgba(238, 242, 251, 0.08); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text-inverse); font-family: 'Fraunces', serif; font-size: 1.1rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(238, 242, 251, 0.06);
  border: 1px solid rgba(238, 242, 251, 0.1);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-social a:hover { background: rgba(238, 242, 251, 0.12); border-color: rgba(238, 242, 251, 0.24); }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }
.footer-bottom a { color: var(--text-inverse-dim); }
.footer-bottom a:hover { color: var(--text-inverse); }

/* ==========================================================================
   Route transition
   ========================================================================== */
.fade-enter-active, .fade-leave-active { transition: opacity 0.18s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Misc: page hero (non-home pages)
   ========================================================================== */
.page-hero { padding-block: 72px 56px; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 12px; }
.page-hero p { margin-top: 16px; color: var(--text-inverse-dim); max-width: 60ch; margin-inline: auto; font-size: 1.05rem; }

.not-found { text-align: center; padding-block: 120px; }
.not-found .code { font-family: 'Fraunces', serif; font-size: 5rem; background: linear-gradient(135deg, var(--accent-500), var(--violet-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.avatar-ring {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(238, 242, 251, 0.4);
}

@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .cert-grid { grid-template-columns: 1fr; }
}
