/* ============ Tokens ============ */
:root {
  /* Light palette: green / cool gray / soft black with blue accent */
  --bg: #f7faf8;
  --bg-grid: rgba(15, 31, 23, 0.04);
  --surface: #ffffff;
  --surface-2: #f1f5f3;
  --text: #0f1f17;
  --text-strong: #0a1410;
  --text-muted: #4b5d54;
  --text-soft: #8a9994;
  --border: #e2eae5;
  --border-strong: #cdd8d2;

  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;

  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;

  --accent: var(--green-600);
  --accent-soft: var(--green-100);

  --shadow-xs: 0 1px 2px rgba(15, 31, 23, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 31, 23, 0.05), 0 1px 2px rgba(15, 31, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 31, 23, 0.07), 0 2px 6px rgba(15, 31, 23, 0.05);
  --shadow-lg: 0 16px 40px rgba(15, 31, 23, 0.1), 0 4px 12px rgba(15, 31, 23, 0.06);
  --shadow-glow: 0 0 0 6px rgba(16, 185, 129, 0.08);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1080px;
  --container-prose: 760px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* Background grid pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 100%);
  pointer-events: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease, color 0.15s ease;
}
a:hover { opacity: 0.78; }

/* ============ Layout ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 28px;
}

.container-prose {
  max-width: var(--container-prose);
  margin: 0 auto;
}

.section {
  padding-block: 88px;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 999px;
}

.section-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px var(--green-100);
}

.section h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-strong);
  margin: 0;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: rgba(247, 250, 248, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(247, 250, 248, 0.92);
}

.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-strong);
  font-weight: 500;
}
.brand:hover { opacity: 1; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-name { font-size: 15px; letter-spacing: -0.01em; }

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

.header-nav-links {
  display: none;
  gap: 24px;
  font-size: 14px;
}

.header-nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}
.header-nav-links a:hover { color: var(--text); opacity: 1; }

@media (min-width: 720px) {
  .header-nav-links { display: inline-flex; }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
}

.lang-switch button {
  background: none;
  border: 0;
  padding: 5px 12px;
  font: inherit;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.18s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.is-active {
  background: var(--text-strong);
  color: var(--bg);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding-block: 96px 64px;
  isolation: isolate;
}

.hero-orb {
  position: absolute;
  inset-inline: 0;
  top: -120px;
  margin-inline: auto;
  width: min(900px, 90vw);
  aspect-ratio: 1.4 / 1;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(16, 185, 129, 0.35), transparent 60%),
    radial-gradient(closest-side at 70% 50%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(closest-side at 50% 80%, rgba(167, 243, 208, 0.4), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  opacity: 0.85;
  animation: float 14s ease-in-out infinite alternate;
}

@keyframes float {
  0%   { transform: translate3d(-2%, 0, 0) scale(1); }
  100% { transform: translate3d(2%, 4%, 0) scale(1.04); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
  margin-bottom: 28px;
}

.hero-eyebrow .pin-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}
.hero-eyebrow .pin-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green-500);
  opacity: 0.5;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0%   { transform: scale(0.6); opacity: 0.6; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin: 0 0 24px;
  max-width: 14ch;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--green-600), var(--blue-600) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.hero .lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn:hover { opacity: 1; transform: translateY(-1px); }

.btn-primary {
  background: var(--text-strong);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--green-700);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-strong);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: var(--text-muted); }

/* ============ Stat cards ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.stat {
  position: relative;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.stat-value {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  display: block;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}
.stat-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  color: var(--green-600);
  opacity: 0.7;
}

/* ============ Trusted strip ============ */
.trusted {
  margin-top: 8px;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-soft);
}
.trusted-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
}
.trusted-logos img,
.trusted-logos svg,
.trusted-logos .text-logo {
  height: 22px;
  opacity: 0.62;
  transition: opacity 0.2s ease;
}
.trusted-logos a:hover img,
.trusted-logos a:hover svg,
.trusted-logos a:hover .text-logo { opacity: 1; }

.text-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  font-size: 18px;
}

/* ============ About (with avatar) ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 820px) {
  .about-grid {
    grid-template-columns: 280px 1fr;
    gap: 56px;
  }
}

.avatar-card {
  position: relative;
  padding: 14px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(145deg, rgba(16, 185, 129, 0.4), rgba(59, 130, 246, 0.18), rgba(15, 31, 23, 0.08)) border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.avatar-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgba(16, 185, 129, 0.16), transparent 32%),
    radial-gradient(circle at 82% 76%, rgba(59, 130, 246, 0.14), transparent 34%);
  filter: blur(18px);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.avatar-card:hover {
  transform: rotate(-1deg) translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.avatar-card:hover::before {
  opacity: 1;
  transform: scale(1.04);
}

.avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 31, 23, 0.08);
}
.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(10, 20, 16, 0.48)),
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.18), transparent 28%);
  pointer-events: none;
}
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.02);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}
.avatar-card:hover .avatar-photo {
  transform: scale(1.06);
  filter: saturate(1.04) contrast(1.02);
}
.avatar-badge {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(236, 253, 245, 0.32);
  border-radius: 999px;
  background: rgba(10, 20, 16, 0.7);
  color: rgba(247, 250, 248, 0.96);
  box-shadow: 0 10px 28px rgba(10, 20, 16, 0.22);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.avatar-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}
.avatar-meta strong { color: var(--text-strong); font-weight: 500; }
.avatar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green-700);
}
.avatar-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}

.about-text p {
  margin: 0 0 16px;
  color: var(--text-muted);
  max-width: 62ch;
}
.about-text p:last-child { margin-bottom: 0; }

/* ============ Experience timeline ============ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.timeline-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

@media (min-width: 720px) {
  .timeline-item {
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 32px;
  }
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline-company-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  background: var(--surface-2);
  border-radius: 999px;
  width: fit-content;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-strong);
}
.company-logo {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--text-strong);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.company-logo.is-developc {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
}

.timeline-dates {
  font-size: 13px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}
.timeline-location {
  font-size: 13px;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeline-body h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.timeline-body p {
  color: var(--text-muted);
  margin: 0 0 16px;
  font-size: 16px;
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.tag {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tag.is-green { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.tag.is-blue  { background: var(--blue-50);  color: var(--blue-600);  border-color: var(--blue-100);  }

/* ============ Stack grid ============ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.stack-item {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-xs);
}
.stack-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.stack-item:hover .stack-icon { transform: scale(1.08); }

.stack-icon {
  width: 36px;
  height: 36px;
  transition: transform 0.25s ease;
}
.stack-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}

.stack-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.stack-cat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stack-cat-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--border-strong);
}

/* ============ Architecture diagram ============ */
.diagram-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}
.diagram-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.diagram-card-head h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
.diagram-card-head p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}
.diagram {
  width: 100%;
  height: auto;
}
.diagram .node-rect {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-width: 1.4;
  rx: 10;
}
.diagram .node-rect.is-accent { stroke: var(--green-500); fill: var(--green-50); }
.diagram .node-rect.is-blue { stroke: var(--blue-500); fill: var(--blue-50); }
.diagram .node-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  fill: var(--text-strong);
}
.diagram .node-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-muted);
}
.diagram .flow {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.6;
  stroke-dasharray: 4 5;
  animation: dash 14s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -180; } }
.diagram .flow-arrow { fill: var(--border-strong); }

/* ============ Writing list ============ */
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-strong);
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.link-list a:hover {
  opacity: 1;
  transform: translateX(4px);
  border-color: var(--green-500);
  box-shadow: var(--shadow-md);
}
.link-list-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  color: var(--green-700);
}
.link-list-icon svg { width: 18px; height: 18px; }
.link-list-title { font-weight: 500; line-height: 1.3; }
.link-list-meta {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 400;
}
.link-list-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-soft);
  transition: transform 0.18s ease, color 0.18s ease;
}
.link-list a:hover .link-list-arrow {
  color: var(--green-600);
  transform: translate(2px, -2px);
}

/* ============ Contact ============ */
.contact-card {
  background:
    radial-gradient(closest-side at 0% 0%, var(--green-50), transparent 70%),
    radial-gradient(closest-side at 100% 100%, var(--blue-50), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--green-200), transparent 40%, var(--blue-100));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.contact-card h2 { margin-bottom: 12px; }
.contact-card .lede {
  margin: 0 auto 28px;
  max-width: 48ch;
  color: var(--text-muted);
}
.contact-card .btn-primary { font-size: 16px; padding: 14px 24px; }

.socials {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 720px) {
  .socials { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.socials a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s ease;
  text-align: center;
}
.socials a:hover {
  border-color: var(--green-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  opacity: 1;
}
.socials .social-icon {
  width: 22px;
  height: 22px;
  color: var(--text-strong);
}
.socials .muted {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-soft);
}

/* ============ Footer ============ */
.site-footer {
  padding-block: 36px 56px;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--text-muted); }

/* ============ Reveal-on-scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.20s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.28s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 0.36s; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(11) { transition-delay: 0.44s; }
.reveal-stagger.is-visible > *:nth-child(12) { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
