/*
Theme Name: Aman Goud
Theme URI: https://amangoud.com
Author: Aman Goud
Description: Personal portfolio theme — pixel-perfect port of the Next.js site.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: amangoud
*/

/* ─── FONTS ─────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS CUSTOM PROPERTIES (mirrors shadcn/ui globals.css) ─────────────────── */
:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --primary: 238 77% 60%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 238 77% 60%;
  --radius: 0.5rem;
}

[data-theme="dark"] {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --primary: 238 77% 60%;
  --primary-foreground: 222.2 47.4% 11.2%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 238 77% 60%;
}

/* ─── RESET & BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid hsl(var(--border)); }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
ul, ol { list-style: none; }
code, pre { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── LAYOUT ──────────────────────────────────────────────────────────────── */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }
.container { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px)  { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem; padding-right: 2rem; } }

/* ─── SKIP LINK ───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 1rem; left: 1rem;
  width: auto; height: auto;
  overflow: visible;
  clip: auto;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 9999;
}

/* ─── NAVBAR ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsla(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand:hover { color: hsl(var(--foreground)); }
.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  margin-left: 1.5rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: hsl(var(--foreground)); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  cursor: pointer;
  color: hsl(var(--foreground));
  transition: background 0.15s;
}
.icon-btn:hover { background: hsl(var(--accent)); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.mobile-menu-btn { display: inline-flex; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* Theme toggle icon states */
.icon-sun { display: block; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  padding: 1rem 0;
}
.mobile-menu.open { display: block; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }
.mobile-menu ul { padding: 0 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu .nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
}
.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.3);
}
.footer-inner { padding: 3rem 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand-name { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-brand-desc { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; margin-bottom: 1rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-social-link {
  color: hsl(var(--muted-foreground));
  transition: color 0.15s;
  display: flex; align-items: center;
}
.footer-social-link:hover { color: hsl(var(--foreground)); }
.footer-social-link svg { width: 1.25rem; height: 1.25rem; }
.footer-section-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.875rem; color: hsl(var(--muted-foreground)); transition: color 0.15s; }
.footer-nav a:hover { color: hsl(var(--foreground)); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ─── COMPONENTS ─────────────────────────────────────────────────────────── */

/* Card */
.card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header { padding: 1.5rem 1.5rem 0; }
.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-title.lg { font-size: 1.25rem; }
.card-title.xl { font-size: 1.5rem; }
.card-title.xxl { font-size: 1.75rem; line-height: 1.25; }
.card-desc { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.375rem; }
.card-content { padding: 1.5rem; }
.card-footer { padding: 0 1.5rem 1.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.card-header + .card-content { padding-top: 1rem; }

/* Hover card */
.card-hover { transition: box-shadow 0.2s, transform 0.2s; }
.card-hover:hover { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); transform: translateY(-2px); }

/* Card with primary accent bg */
.card-accent { background: hsl(var(--primary) / 0.05); border-color: hsl(var(--primary) / 0.2); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.badge-default { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.badge-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.badge-outline { border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); background: transparent; }
.badge-success { background: #d1fae5; color: #065f46; }

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-default { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-default:hover { background: hsl(var(--primary) / 0.9); color: hsl(var(--primary-foreground)); }
.btn-outline { border-color: hsl(var(--border)); background: transparent; color: hsl(var(--foreground)); }
.btn-outline:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
.btn-ghost:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.625rem 1.5rem; font-size: 1rem; }
.btn-icon { padding: 0.5rem; }
.btn-full { width: 100%; }
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* Form controls */
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; color: hsl(var(--foreground)); }
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: hsl(var(--muted-foreground)); }
.form-input:focus, .form-textarea:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}
.form-textarea { resize: vertical; min-height: 150px; }

/* Separator */
.separator { border-top: 1px solid hsl(var(--border)); }

/* Icon + text flex row */
.icon-row { display: flex; align-items: center; gap: 0.5rem; }
.icon-row svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); flex-shrink: 0; }

/* Bullet list */
.bullet-list { display: flex; flex-direction: column; gap: 0.5rem; }
.bullet-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.bullet-dot { color: hsl(var(--primary)); font-weight: 700; margin-top: 0.125rem; flex-shrink: 0; }

/* Tag row */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Text utilities */
.text-muted { color: hsl(var(--muted-foreground)); }
.text-primary-color { color: hsl(var(--primary)); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.text-center { text-align: center; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Spacing */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* Flex */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.shrink-0 { flex-shrink: 0; }

/* Image */
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.img-rounded { border-radius: var(--radius); }
.img-circle { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

/* Max-width containers */
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Achievement / entry row */
.achievement-row {
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.achievement-row:last-child { padding-bottom: 0; border-bottom: none; }
.achievement-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }

/* ─── TABLE ───────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead tr { background: hsl(var(--muted)); }
th { text-align: left; padding: 0.75rem 1rem; font-weight: 600; color: hsl(var(--foreground)); border-bottom: 1px solid hsl(var(--border)); }
td { padding: 0.75rem 1rem; border-bottom: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); }
tr:last-child td { border-bottom: none; }
td a { color: hsl(var(--primary)); font-weight: 500; }
td a:hover { text-decoration: underline; }

/* ─── HERO SECTION ────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  padding: 5rem 0 7rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.hero-content { order: 2; }
@media (min-width: 768px) { .hero-content { order: 1; } }
.hero-name {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.hero-role {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 1.25rem;
}
.hero-desc {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
  max-width: 36rem;
  margin-bottom: 0.75rem;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* Avatar column */
.hero-avatar-col {
  display: flex;
  justify-content: center;
  order: 1;
}
@media (min-width: 768px) {
  .hero-avatar-col { justify-content: flex-end; order: 2; }
}
.hero-avatar-wrap { position: relative; display: inline-block; }
.avatar-glow-1 {
  position: absolute; top: -2rem; right: -2rem;
  width: 8rem; height: 8rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 9999px;
  filter: blur(40px);
  pointer-events: none;
}
.avatar-glow-2 {
  position: absolute; bottom: -2rem; left: -2rem;
  width: 8rem; height: 8rem;
  background: hsl(210 100% 56% / 0.1);
  border-radius: 9999px;
  filter: blur(40px);
  pointer-events: none;
}
.avatar-ring {
  width: 14rem; height: 14rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 4px solid hsl(var(--primary) / 0.2);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .avatar-ring { width: 18rem; height: 18rem; } }
.avatar-ring img { width: 100%; height: 100%; object-fit: cover; }
.avatar-accent {
  position: absolute;
  bottom: -1rem; right: -1rem;
  width: 6rem; height: 6rem;
  background: hsl(var(--primary) / 0.2);
  border-radius: 9999px;
  border: 4px solid hsl(var(--background));
  z-index: 2;
}

/* ─── PAGE HEADER ─────────────────────────────────────────────────────────── */
.page-header { margin-bottom: 3rem; }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
.page-header p { font-size: 1.25rem; color: hsl(var(--muted-foreground)); max-width: 42rem; }
.page-wrap { padding-top: 3rem; padding-bottom: 3rem; }

/* ─── SECTION HEADINGS ─────────────────────────────────────────────────────── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.section-heading h2 { font-size: 1.875rem; font-weight: 700; }
.section-heading svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--primary)); flex-shrink: 0; }

.sub-section { margin-bottom: 4rem; }

/* ─── FEATURED PROJECTS (home) ─────────────────────────────────────────────── */
.fp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.fp-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.fp-subtitle { color: hsl(var(--muted-foreground)); margin-bottom: 2rem; font-size: 0.9375rem; }

/* Certification card accent */
.cert-card {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(210 100% 56% / 0.05));
  border: 2px solid hsl(var(--border));
  transition: box-shadow 0.2s, transform 0.2s;
}
.cert-card:hover { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); transform: translateY(-2px); }
.cert-paper-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); margin-bottom: 0.25rem; }

/* Project card image */
.project-img-wrap {
  position: relative;
  width: 100%; height: 12rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(210 100% 56% / 0.1));
  overflow: hidden;
}
.project-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.project-card:hover .project-img-wrap img { transform: scale(1.05); }
.project-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 700;
  color: hsl(var(--primary) / 0.2);
}

/* Project card */
.project-card {
  border: 2px solid hsl(var(--border));
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.project-card:hover { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); transform: translateY(-2px); }

/* ─── ABOUT PAGE ──────────────────────────────────────────────────────────── */
.about-avatar-wrap {
  display: inline-block;
  width: 12rem; height: 12rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 4px solid hsl(var(--primary) / 0.2);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}
.about-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-hero { text-align: center; }
.about-heading { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.about-subhead { font-size: 1.25rem; color: hsl(var(--muted-foreground)); max-width: 36rem; margin: 0 auto; }

/* ─── CONTACT PAGE ────────────────────────────────────────────────────────── */
.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .contact-info-grid { grid-template-columns: repeat(4, 1fr); } }

/* ─── LATEST ARTICLES (home) ──────────────────────────────────────────────── */
.article-card { border: 1px solid hsl(var(--border)); transition: box-shadow 0.2s; }
.article-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.article-meta { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }
.article-title a { color: hsl(var(--foreground)); font-size: 1.125rem; font-weight: 600; transition: color 0.15s; }
.article-title a:hover { color: hsl(var(--primary)); }

/* ─── PROSE (blog/research body) ─────────────────────────────────────────── */
.prose { max-width: none; color: hsl(var(--foreground)); }
.prose h1 { font-size: 2.25rem; font-weight: 700; margin: 2rem 0 1rem; line-height: 1.25; }
.prose h2 { font-size: 1.5rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin: 1.25rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; line-height: 1.75; color: hsl(var(--muted-foreground)); }
.prose a { color: hsl(var(--primary)); }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { margin: 0 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose code { background: hsl(var(--muted)); padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875em; }
.prose pre { background: hsl(var(--muted)); padding: 1rem; border-radius: var(--radius); overflow-x: auto; margin-bottom: 1rem; }
.prose blockquote { border-left: 4px solid hsl(var(--primary)); padding-left: 1rem; font-style: italic; margin: 1rem 0; }
.prose img { border-radius: var(--radius); margin: 1rem 0; max-width: 100%; }
.prose strong { color: hsl(var(--foreground)); }

/* ─── 404 ─────────────────────────────────────────────────────────────────── */
.not-found { text-align: center; padding: 6rem 1rem; }
.not-found h1 { font-size: 6rem; font-weight: 700; color: hsl(var(--primary)); line-height: 1; margin-bottom: 0.5rem; }
.not-found h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.not-found p { color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }

/* ─── RESPONSIVE HELPERS ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-section { padding: 3rem 0 4rem; min-height: auto; }
  .avatar-ring { width: 10rem; height: 10rem; }
}

/* ─── SVG ICON SIZING ────────────────────────────────────────────────────── */
/* Constrain inline ag_icon() SVGs so they never stretch in flex containers */
.card-header svg,
.card-footer svg,
.card-content svg,
.btn svg,
.tag-row svg { width: 16px; height: 16px; flex-shrink: 0; }
.section-heading svg { width: 24px; height: 24px; flex-shrink: 0; }
.page-header svg    { width: 20px; height: 20px; flex-shrink: 0; }
