/* ==========================================================================
   Theme variables (light/dark) — mirrors THEMES in js/data.js
   ========================================================================== */
:root[data-theme="light"] {
  --bg: #FAF8F3;
  --surface: #F2EEE4;
  --surface-2: #EAE5D8;
  --text: #211F1B;
  --text-dim: #5B584F;
  --accent: #547256;
  --accent-strong: #3C5A3E;
  --accent-soft: rgba(84, 114, 86, 0.12);
  --border: #DED8C8;
  --parchment: #EFE6CE;
  --parchment-dark: #D8C79E;
}

:root[data-theme="dark"] {
  --bg: #1B1B18;
  --surface: #242420;
  --surface-2: #2C2C27;
  --text: #F2EFE6;
  --text-dim: #B7B2A2;
  --accent: #93C093;
  --accent-strong: #AED8AC;
  --accent-soft: rgba(147, 192, 147, 0.16);
  --border: #39382F;
  --parchment: #2A251C;
  --parchment-dark: #161310;
}

:root {
  --font-sans: 'Manrope', sans-serif;
  --font-serif: 'Source Serif 4', serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  transition: background 0.2s, color 0.2s;
  cursor: none;
}

a, button, [role="button"] { cursor: none; }

@media (pointer: coarse) {
  body, a, button { cursor: auto; }
}

::selection { background: var(--accent-soft); }

a { color: inherit; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.4s ease; }

/* ==========================================================================
   Custom cursor
   ========================================================================== */
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  pointer-events: none;
  z-index: 998;
  transition: width 0.18s ease, height 0.18s ease, margin 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  will-change: transform;
}

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 998;
  will-change: transform;
}

@media (pointer: coarse) {
  #cursor-ring, #cursor-dot { display: none; }
}

/* ==========================================================================
   Intro reveal
   ========================================================================== */
@keyframes unrollTop { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes unrollBottom { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes sealFade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
}

#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

.intro-panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  animation-duration: 1.1s;
  animation-timing-function: cubic-bezier(0.7, 0, 0.2, 1);
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}

.intro-panel-top {
  top: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  transform-origin: top;
  animation-name: unrollTop;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.intro-panel-bottom {
  bottom: 0;
  background: linear-gradient(0deg, var(--surface) 0%, var(--surface-2) 100%);
  transform-origin: bottom;
  animation-name: unrollBottom;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}

.intro-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent-strong);
  border: 3px solid var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--parchment);
  letter-spacing: 0.02em;
  transform: translate(-50%, -50%);
  animation: sealFade 1.3s ease 0.15s forwards;
}

#intro-overlay.intro-done { display: none; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5vw;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: letter-spacing 0.2s ease;
}

.nav-logo:hover { letter-spacing: 0.03em; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-dim);
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.2s;
}

.nav-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.nav-links a.active { color: var(--accent); }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  padding: 0;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: rotate(20deg) scale(1.08);
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s, border-color 0.2s, background 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-3px);
}

@media (pointer: coarse) {
  .back-to-top { cursor: auto; }
}

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

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
#hero {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 60px;
  align-items: center;
  padding: 90px 5vw 70px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-kicker {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero-name {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--text);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.btn-primary {
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 25%;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-radius 0.5s;
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-soft);
  border-radius: 0%;
  transition: 0.5s;
}

.btn-secondary {
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 25%;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, border-radius 0.5s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-2px);
  border-radius: 0%;
  transition: 0.5s;
}

.link-plain {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.link-plain:hover { color: var(--accent); border-bottom-color: var(--accent); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s, transform 0.2s;
}

.badge:hover { border-color: var(--accent); transform: translateY(-2px); }

.badge-icon { color: var(--accent); }
.badge-label { font-size: 12.5px; font-weight: 700; color: var(--text); }
.badge-sub { font-size: 11px; color: var(--text-dim); }

.hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 320px;
  height: 380px;
  border: 1px solid var(--border);
  border-radius: 24px;
  object-fit: cover;
  background: var(--surface);
}

@media (max-width: 860px) {
  #hero { grid-template-columns: 1fr; }
  .hero-photo-wrap { order: -1; }
  .hero-photo { width: 220px; height: 260px; }
}

/* ==========================================================================
   Section shared
   ========================================================================== */
.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 34px;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   About
   ========================================================================== */
#about {
  padding: 90px 5vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#about .about-inner { max-width: 760px; margin: 0 auto; }

.about-lead {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 20px;
}

.about-body {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 0 0 20px;
}

.about-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--accent-strong);
  border-left: 2px solid var(--accent);
  margin: 0 0 20px;
  padding: 4px 0 4px 20px;
}

.about-quote cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
}

.about-stack-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 28px 0 12px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}

.skill-tag:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ==========================================================================
   Experience / timeline
   ========================================================================== */
#experience {
  padding: 90px 5vw;
  max-width: 900px;
  margin: 0 auto;
}

#experience .section-kicker { margin-bottom: 50px; }

.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.timeline-item { position: relative; padding-bottom: 42px; }

.timeline-dot {
  position: absolute;
  left: -37.5px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}

.timeline-item.is-education .timeline-dot { background: var(--accent-strong); }

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.timeline-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.timeline-dates {
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
}

.timeline-location {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 10px;
}

.timeline-summary {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0 0 10px;
  max-width: 640px;
}

.timeline-bullets {
  margin: 10px 0 12px;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-dim);
  display: none;
}

.timeline-bullets li { margin-bottom: 4px; }

.timeline-item.expanded .timeline-bullets { display: block; }

.timeline-toggle {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: none;
  border: none;
  border-bottom: 1.5px solid transparent;
  padding: 0 0 2px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.2s, color 0.2s;
}

.timeline-toggle:hover { border-bottom-color: var(--accent); color: var(--accent-strong); }

/* ==========================================================================
   Projects & Research
   ========================================================================== */
#projects {
  padding: 90px 5vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#projects .projects-inner { max-width: 1180px; margin: 0 auto; }

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 6px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
}

.tab-btn:hover { color: var(--accent); }

.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.research-card,
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.research-card:hover,
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 14px 30px var(--accent-soft);
}

.project-card { padding: 24px; gap: 10px; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-research {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.pill-category {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}

.pill-category.work { color: var(--accent-strong); background: var(--accent-soft); }
.pill-category.personal { color: var(--text-dim); background: var(--surface-2); }

.status-label { font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-progress { color: var(--accent); }
.status-award { color: #B98900; }
.status-completed { color: var(--accent-strong); }

.gh-link { color: var(--text-dim); display: flex; transition: color 0.2s, transform 0.2s; }

.gh-link:hover { color: var(--accent); transform: scale(1.15); }

.research-card h3, .project-card h3 {
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.research-card h3 { font-size: 17px; }
.project-card h3 { font-size: 16.5px; }

.research-card p, .project-card p {
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
  flex-grow: 1;
}

.research-card p { font-size: 14px; }
.project-card p { font-size: 13.5px; line-height: 1.65; }

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-tag {
  font-size: 11.5px;
  color: var(--text-dim);
  background: var(--surface-2);
  padding: 4px 9px;
  border-radius: 6px;
}

.project-card .tool-tag { font-size: 11px; padding: 3px 8px; }

.filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.chip {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.chip:hover { border-color: var(--accent); color: var(--accent-strong); }

.chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.projects-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ==========================================================================
   Blog
   ========================================================================== */
#blog {
  padding: 90px 5vw;
  max-width: 1180px;
  margin: 0 auto;
}

.blog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.blog-head .section-title { margin: 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.blog-card {
  display: block;
  text-decoration: none;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s;
}

.blog-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.blog-card-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 10px 0 8px;
}

.blog-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

.blog-card-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-strong);
}

/* ==========================================================================
   Beyond work
   ========================================================================== */
#beyond {
  padding: 90px 5vw;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#beyond .beyond-inner { max-width: 1180px; margin: 0 auto; }

.beyond-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.beyond-sub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.beyond-sub-head h3, .book-col h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text);
  margin: 0;
}

.beyond-sub-head a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
  transition: letter-spacing 0.2s;
}

.beyond-sub-head a:hover { letter-spacing: 0.02em; }

.photo-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 761px) {
  .photo-grid {
    grid-template-columns: 4fr 3fr 2fr 2fr;
    grid-template-rows: repeat(4, 95px);
    grid-template-areas:
      "a1 a2 a2 a3"
      "a1 a5 a6 a7"
      "a4 a9 a8 a8"
      "a10 . . .";
  }

  .photo-grid a:nth-child(1) { grid-area: a1; }
  .photo-grid a:nth-child(2) { grid-area: a2; }
  .photo-grid a:nth-child(3) { grid-area: a3; }
  .photo-grid a:nth-child(4) { grid-area: a4; }
  .photo-grid a:nth-child(5) { grid-area: a5; }
  .photo-grid a:nth-child(6) { grid-area: a6; }
  .photo-grid a:nth-child(7) { grid-area: a7; }
  .photo-grid a:nth-child(8) { grid-area: a8; }
  .photo-grid a:nth-child(9) { grid-area: a9; }
  .photo-grid a:nth-child(10) { grid-area: a10; }
}

@media (max-width: 760px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }
}

.photo-grid a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.photo-grid a:hover { transform: scale(1.03); }

.photo-grid img, .photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
}

.book-col h3 { margin: 0 0 14px; }

.book-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.book-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.book-cover {
  width: 46px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 9px;
  text-align: center;
}

.book-title { font-size: 14px; font-weight: 700; color: var(--text); }
.book-author { font-size: 12.5px; color: var(--text-dim); }

@media (max-width: 760px) {
  .beyond-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
#contact {
  padding: 90px 5vw 110px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-links a, .contact-links span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  width: fit-content;
  transition: color 0.2s, border-color 0.2s;
}

.contact-links a:hover { color: var(--accent-strong); border-bottom-color: var(--accent); }

.contact-links span { color: var(--text-dim); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input, .contact-form textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s;
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.contact-form textarea { resize: vertical; }

.contact-form button {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  width: fit-content;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-form button:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-soft);
}

.contact-form-note { font-size: 12px; color: var(--text-dim); }

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 30px 5vw;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 0;
}
