/* ==========================================================
   Modern home page (HomePageDesign.Modern), loaded only by _ModernLayout.
   Ported from the "test portfolio" design: dark surfaces, Geist,
   one lime accent. Everything else on the site stays retro.
   ========================================================== */

:root {
  color-scheme: dark;

  /* Surfaces (B4 dark palette only) */
  --bg: #000000;
  --surface-1: #181818;
  --surface-2: #1F1F1F;
  --surface-3: #272727;
  --line: #313131;

  /* Text */
  --text: #FFFFFF;
  --text-2: #B4B4B4;
  --text-3: #8A8A8A;
  --text-muted: rgba(255, 255, 255, 0.3);

  /* Single accent */
  --accent: #C6F36B;
  --accent-ink: #131209;

  /* Spacing (B2) */
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  /* Radius (Tailwind values) */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  /* Motion (B7) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Geist", "Manrope", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--s-900); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p, h1, h2, h3, h4, h5, h6, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em, i, cite { font-style: normal; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

/* ----------------------------------------------------------
   Text styles (B1). Names match the skill in kebab case.
   ---------------------------------------------------------- */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.03em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.025em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }

.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }

.body-1 { font-size: 16px; line-height: 24px; font-weight: 600; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }

.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }

.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }

.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }

@media (max-width: 767px) {
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .heading-3 { font-size: 24px; line-height: 32px; }
}

/* ----------------------------------------------------------
   Layout
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 var(--s-200);
}
@media (min-width: 768px) { .container { padding: 0 var(--s-400); } }

.section { padding: var(--s-700) 0; }
@media (min-width: 768px) { .section { padding: var(--s-900) 0; } }

.section-head {
  display: grid;
  gap: var(--s-200);
  margin-bottom: var(--s-600);
  max-width: 680px;
}
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-300);
  margin-bottom: var(--s-600);
}
.section-head-row .section-head { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  color: var(--text-3);
}
.eyebrow::before {
  content: "";
  width: var(--s-75);
  height: var(--s-75);
  border-radius: var(--r-full);
  background: var(--accent);
}

.skip-link {
  position: fixed;
  top: var(--s-200);
  left: var(--s-200);
  z-index: 100;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-200%);
  transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ----------------------------------------------------------
   Buttons (B2: 8px vertical, 12px horizontal)
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  white-space: nowrap;
  transition: background-color 300ms var(--ease), color 300ms var(--ease),
              transform 300ms var(--ease), opacity 300ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .ph { font-size: 18px; transition: transform 500ms var(--ease); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #D6F98F; }
.btn-primary:hover .ph-arrow-up-right,
.btn-primary:hover .ph-arrow-right { transform: translateX(2px); }

.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-3); }

.btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

.link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  color: var(--text-2);
  transition: color 300ms var(--ease);
}
.link:hover { color: var(--text); }
.link .ph { transition: transform 500ms var(--ease); }
.link:hover .ph { transform: translate(2px, -2px); }

/* ----------------------------------------------------------
   Navigation (B7)
   ---------------------------------------------------------- */
.nav-wrap {
  position: fixed;
  top: var(--s-200);
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 var(--s-200);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-50);
  padding: var(--s-50);
  border-radius: var(--r-full);
  background: rgba(24, 24, 24, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-50) var(--s-100) var(--s-50) var(--s-50);
  border-radius: var(--r-full);
}
.nav-logo .mark {
  width: 32px;
  height: 32px;
}
.nav-links { display: none; align-items: center; gap: var(--s-25); }
.nav-links a {
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-full);
  color: var(--text-2);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface-3); }
.nav-links a[aria-current="true"] { color: var(--text); background: var(--surface-3); }
.nav .btn { border-radius: var(--r-full); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  transition: background-color 300ms var(--ease);
}
.menu-toggle:hover { background: var(--line); }
.menu-toggle .bars { position: relative; width: 16px; height: 12px; }
.menu-toggle .bars span {
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--text);
  transition: transform 500ms var(--ease), opacity 300ms var(--ease);
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 5px; }
.menu-toggle .bars span:nth-child(3) { top: 10px; }
.menu-open .menu-toggle .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle .bars span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.menu-open .menu-toggle .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-cta-desktop { display: none; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .nav-cta-desktop { display: inline-flex; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-900) var(--s-300) var(--s-400);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms var(--ease), visibility 0s linear 500ms;
}
.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 500ms var(--ease), visibility 0s;
}
.mobile-menu ul { display: grid; gap: var(--s-75); }
.mobile-menu li {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.menu-open .mobile-menu li { opacity: 1; transform: translateY(0); }
.mobile-menu a.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-100) 0;
  color: var(--text-2);
}
.mobile-menu a.mm-link[aria-current="true"] { color: var(--text); }
.mobile-menu a.mm-link .ph { color: var(--text-3); font-size: 20px; }
.mobile-menu .btn { width: 100%; }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ----------------------------------------------------------
   Hero (B5)
   ---------------------------------------------------------- */
.hero { padding: var(--s-900) 0 var(--s-700); }
.hero-copy { margin-top: var(--s-300); }
@media (min-width: 768px) {
  .hero { padding-bottom: var(--s-800); }
  .hero-copy { margin-top: var(--s-700); }
}

.hero-copy { display: grid; gap: var(--s-300); }
.hero h1, .hero .lede { max-width: 680px; }
.hero h1 {
  background: linear-gradient(90deg, #FFFFFF 0%, #9B9B9B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: var(--s-25);
}
.hero .lede { color: var(--text-2); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  width: fit-content;
  padding: var(--s-50) var(--s-100) var(--s-50) var(--s-75);
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text-2);
}
.pulse {
  position: relative;
  width: var(--s-75);
  height: var(--s-75);
  border-radius: var(--r-full);
  background: var(--accent);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  animation: pulse 2400ms var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-300);
  margin-top: var(--s-75);
}
.proof {
  display: flex;
  align-items: center;
  gap: var(--s-75);
  color: var(--text-3);
}
.proof .ph { color: var(--accent); font-size: 18px; }

.hero-grid {
  display: grid;
  gap: var(--s-200);
  margin-top: var(--s-700);
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

/* Profile card */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-300);
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  background: var(--surface-1);
  padding: var(--s-300);
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.facts { display: grid; gap: var(--s-200); margin-top: auto; }
.fact {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s-100);
  align-items: start;
}
.fact .ph { font-size: 20px; color: var(--text-3); margin-top: var(--s-25); }
.fact dt { color: var(--text-3); }
.fact dd { color: var(--text); }

/* ----------------------------------------------------------
   Stats
   ---------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-75);
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--s-300);
  display: grid;
  gap: var(--s-75);
}
.stat .heading-3 { letter-spacing: -0.03em; }

/* ----------------------------------------------------------
   Work
   ---------------------------------------------------------- */
.work-grid { display: grid; gap: var(--s-200); }
@media (min-width: 768px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.project {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  background: var(--surface-1);
  padding: var(--s-75);
  transition: transform 500ms var(--ease), background-color 300ms var(--ease);
}
.project:hover { transform: translateY(-4px); background: var(--surface-2); }
.project-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-100);
  padding: var(--s-200);
  flex: 1;
}
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  color: var(--text-3);
}
.project-body p { color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-50); margin-top: auto; padding-top: var(--s-100); }
.tag {
  padding: var(--s-25) var(--s-75);
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--text-2);
}
.project-link { margin-top: var(--s-75); }

/* ----------------------------------------------------------
   Experience
   ---------------------------------------------------------- */
.timeline { display: grid; gap: var(--s-75); }
.role {
  display: grid;
  gap: var(--s-200);
  padding: var(--s-300);
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  transition: background-color 300ms var(--ease);
}
.role:hover { background: var(--surface-1); }
@media (min-width: 900px) {
  .role { grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-400); }
}
.role-when { color: var(--text-3); display: grid; gap: var(--s-50); align-content: start; }
.role-what { display: grid; gap: var(--s-50); align-content: start; }
.role-what .company { color: var(--text-2); }
.role-what .place { color: var(--text-3); }
.role ul { display: grid; gap: var(--s-75); color: var(--text-2); }
.role li { display: grid; grid-template-columns: 16px 1fr; gap: var(--s-75); }
.role li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin: var(--s-75) 0 0 var(--s-50);
  border-radius: var(--r-full);
  background: #4A4A4A;
}

/* ----------------------------------------------------------
   Skills
   ---------------------------------------------------------- */
.skills-grid { display: grid; gap: var(--s-200); }
@media (min-width: 640px) { .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.skill {
  display: grid;
  gap: var(--s-200);
  align-content: start;
  padding: var(--s-300);
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  background: var(--surface-1);
}
.skill-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xl);
  background: var(--surface-3);
  color: var(--accent);
  font-size: 20px;
}
.skill.featured { background: var(--surface-2); border-color: #3D3D3D; }

/* ----------------------------------------------------------
   Education
   ---------------------------------------------------------- */
.edu-grid { display: grid; gap: var(--s-200); }
@media (min-width: 768px) { .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.edu {
  display: grid;
  gap: var(--s-100);
  padding: var(--s-300);
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  background: var(--surface-1);
}

/* ----------------------------------------------------------
   Contact
   ---------------------------------------------------------- */
.contact-card {
  display: grid;
  gap: var(--s-600);
  padding: var(--s-300);
  border-radius: var(--r-3xl);
  border: 1px solid var(--line);
  background: var(--surface-1);
}
@media (min-width: 768px) { .contact-card { padding: var(--s-600); } }
@media (min-width: 1024px) { .contact-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-800); } }
.contact-intro { display: grid; gap: var(--s-300); align-content: start; }
.contact-intro p { color: var(--text-2); max-width: 680px; }

.channels { display: grid; gap: var(--s-75); margin-top: var(--s-200); }
.channel {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  padding: var(--s-100) var(--s-200);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: background-color 300ms var(--ease);
  min-width: 0;
}
a.channel:hover, button.channel:hover { background: var(--surface-2); }
.channel .ph { font-size: 20px; color: var(--text-3); flex: none; }
.channel .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.channel .hint { color: var(--text-3); flex: none; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--s-300);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-200);
  border-radius: var(--r-full);
  background: var(--surface-3);
  border: 1px solid var(--line);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease), transform 500ms var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ph { color: var(--accent); }

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.footer { padding: var(--s-600) 0 var(--s-400); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-300);
  color: var(--text-3);
}
.footer nav ul { display: flex; flex-wrap: wrap; gap: var(--s-300); }
.footer a { transition: color 300ms var(--ease); }
.footer a:hover { color: var(--text); }
.footer-brand { display: flex; align-items: center; gap: var(--s-100); }

/* ----------------------------------------------------------
   Scroll reveal (B7)
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.no-js .reveal { opacity: 1; transform: none; }

/* ----------------------------------------------------------
   Additions for the database-driven content
   ---------------------------------------------------------- */
.pulse.off, .pulse.off::after { background: var(--text-3); animation: none; }

/* Hero: one wide profile card (no code panel), facts laid out in columns */
@media (min-width: 960px) { .hero-grid.hero-grid-single { grid-template-columns: minmax(0, 1fr); } }
.profile-card-head { display: flex; align-items: center; gap: var(--s-200); }
@media (min-width: 640px) { .hero-grid-single .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hero-grid-single .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.badge {
  width: fit-content;
  padding: var(--s-25) var(--s-75);
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-ink);
}

.fact dd a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); overflow-wrap: anywhere; }
.fact dd a:hover { text-decoration-color: var(--accent); }

/* About Me rich text (already sanitized HTML from the admin editor) */
.rich-content { display: grid; gap: var(--s-200); max-width: 760px; color: var(--text-2); font-size: 16px; line-height: 26px; }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { color: var(--text); font-size: 20px; line-height: 28px; font-weight: 600; }
.rich-content strong, .rich-content b { color: var(--text); font-weight: 600; }
.rich-content ul, .rich-content ol { display: grid; gap: var(--s-75); padding-left: var(--s-300); }
.rich-content ul { list-style: disc; }
.rich-content ol { list-style: decimal; }
.rich-content a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.rich-content img { border-radius: var(--r-xl); height: auto; }
.rich-content em, .rich-content i { font-style: italic; }

.about-grid { margin-top: var(--s-600); }
.spec p { color: var(--text-2); }
.fun-fact {
  display: flex;
  gap: var(--s-100);
  align-items: flex-start;
  margin-top: var(--s-300);
  padding: var(--s-200) var(--s-300);
  border-radius: var(--r-2xl);
  border: 1px dashed var(--line);
  color: var(--text-2);
}
.fun-fact .ph { color: var(--accent); font-size: 20px; flex: none; margin-top: var(--s-25); }

.project-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xl);
  background: var(--surface-3);
  font-size: 20px;
}
.project-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-200); }
.project-details { display: grid; gap: var(--s-100); margin-top: var(--s-75); }
.project-details dt { color: var(--text-3); }
.project-details dd { color: var(--text-2); overflow-wrap: anywhere; }
.project-details dd a { color: var(--text); display: inline-flex; align-items: center; gap: var(--s-50); }
.project-details dd a:hover { color: var(--accent); }

.edu p { color: var(--text-2); }
.edu .edu-desc { display: grid; gap: var(--s-75); margin-top: var(--s-50); }

.stat .label { overflow-wrap: anywhere; }

/* ----------------------------------------------------------
   Reduced motion
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .reveal, .reveal.is-visible,
  .mobile-menu li, .menu-open .mobile-menu li,
  .project:hover, .btn:active,
  .toast, .toast.show {
    transform: none !important;
  }
  .reveal { transition: opacity 300ms linear; }
  .toast { transform: translateX(-50%) !important; }
}
