/* ============ Tokens ============ */
:root {
  --bg: #0A0A0A;
  --shell: #0E0E0E;
  --shell-border: #1F1F1F;
  --card: #151515;
  --card-border: #232323;
  --card-border-hover: #333333;
  --inset: #121212;
  --chip: #1C1C1C;
  --chip-border: #2A2A2A;
  --text: #EDEDED;
  --muted: #8A8A8A;
  --accent: #10B981;
  --accent-hover: #34D399;
  --accent-text: #10B981;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --on-accent: #0A0A0A;
  --glow: rgba(16, 185, 129, 0.25);
  --hover-glow: rgba(16, 185, 129, 0.10);
  --num-from: #FFFFFF;
  --num-to: #7A7A7A;
  --diagram-bg: #111111;
  --toast-bg: #EDEDED;
  --toast-text: #0A0A0A;

  --radius-shell: 32px;
  --radius-card: 20px;
  --gap: 12px;
  --font-sans: "Inter", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="light"] {
  --bg: #EDEDEA;
  --shell: #F6F6F4;
  --shell-border: #E2E2DE;
  --card: #FFFFFF;
  --card-border: #E6E6E3;
  --card-border-hover: #CFCFCB;
  --inset: #F7F7F5;
  --chip: #F3F3F1;
  --chip-border: #E1E1DD;
  --text: #121212;
  --muted: #5C5C5C;
  --accent-text: #047857;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --glow: rgba(16, 185, 129, 0.22);
  --hover-glow: rgba(16, 185, 129, 0.09);
  --num-from: #121212;
  --num-to: #6B6B6B;
  --diagram-bg: #F7F7F5;
  --toast-bg: #121212;
  --toast-text: #FFFFFF;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.accent-text { color: var(--accent-text); }
.icon { width: 16px; height: 16px; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 14px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ============ Shell ============ */
.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}
.shell {
  position: relative;
  padding: 16px;
  border-radius: var(--radius-shell);
  border: 1px solid var(--shell-border);
  background: var(--shell);
  box-shadow: 0 60px 120px -50px var(--glow), 0 20px 60px -30px var(--glow);
}
.shell::after {
  /* soft emerald pool of light beneath the container */
  content: "";
  position: absolute;
  left: 12%; right: 12%; bottom: -70px; height: 120px;
  background: radial-gradient(ellipse at center top, var(--glow), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

/* ============ Grid ============ */
/* Desktop: 4 visual columns, built on a 12-track grid so the stat tiles can share a column pair. */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "tk tk tk s1 s1 s2 s2 s3 s3 wf wf wf"
    "tk tk tk pf pf pf pf pf pf wf wf wf"
    "pj pj pj pf pf pf pf pf pf wf wf wf"
    "pj pj pj lg lg lg lg lg lg in in in"
    "ce ce ce so so so wr wr wr in in in"
    "th th th ct ct ct ct ct ct ct ct ct";
}
.area-toolkit { grid-area: tk; }
.area-s1 { grid-area: s1; }
.area-s2 { grid-area: s2; }
.area-s3 { grid-area: s3; }
.area-workflow { grid-area: wf; }
.area-profile { grid-area: pf; }
.area-projects { grid-area: pj; }
.area-logos { grid-area: lg; }
.area-infra { grid-area: in; }
.area-certs { grid-area: ce; }
.area-socials { grid-area: so; }
.area-writing { grid-area: wr; }
.area-theme { grid-area: th; }
.area-contact { grid-area: ct; }

@media (max-width: 1080px) {
  .page { padding: 32px 16px 24px; }
  .grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "pf pf pf pf pf pf"
      "s1 s1 s2 s2 s3 s3"
      "tk tk tk in in in"
      "pj pj pj pj pj pj"
      "wf wf wf ce ce ce"
      "lg lg lg lg lg lg"
      "so so so wr wr wr"
      "th th th wr wr wr"
      "ct ct ct ct ct ct";
  }
}

@media (max-width: 640px) {
  .page { padding: 16px 12px 24px; }
  .shell { padding: 10px; border-radius: 24px; }
  .grid {
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "pf pf pf"
      "s1 s2 s3"
      "tk tk tk"
      "pj pj pj"
      "in in in"
      "ce ce ce"
      "wf wf wf"
      "wr wr wr"
      "so so so"
      "ct ct ct"
      "lg lg lg"
      "th th th";
  }
}

/* ============ Card ============ */
.card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  transition: border-color .2s, background-color .25s;
  opacity: 0;
  animation: rise .5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.card::before {
  /* cursor-following glow, positioned by app.js */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--hover-glow), transparent 65%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.card:hover { border-color: var(--card-border-hover); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  margin-bottom: 18px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
}
.eyebrow .icon { width: 14px; height: 14px; color: var(--accent); }
.card-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }

/* ============ Chips & buttons ============ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--chip-border);
  font-size: 12.5px;
  white-space: nowrap;
}
.chip .icon { width: 14px; height: 14px; color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn .icon { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--chip); border-color: var(--chip-border); }
.btn-secondary .icon { color: var(--accent); }
.btn-secondary:hover { border-color: var(--card-border-hover); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.btn:active { transform: translateY(1px); }

.arrow-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--chip);
  border: 1px solid var(--chip-border);
}
.arrow-btn .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link-card:hover .arrow-btn .icon,
.arrow-btn:hover .icon,
a:focus-visible .arrow-btn .icon { transform: rotate(45deg); }
.link-card:hover .arrow-btn { border-color: var(--card-border-hover); }

/* Stretched link: whole card clickable, keeps a single focus target */
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ============ Profile ============ */
.area-profile { display: flex; flex-direction: column; gap: 16px; }
.profile-top { display: flex; gap: 18px; align-items: flex-start; }
.avatar {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 18px;
  background: radial-gradient(120% 120% at 20% 10%, #34D399, #10B981 50%, #047857);
  color: #04261A;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -.02em;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.profile-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--chip-border);
  font-size: 12.5px;
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .35;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.5); opacity: .5; }
  70%, 100% { transform: scale(1.4); opacity: 0; }
}
.name { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.role { font-size: 15px; color: var(--muted); }
.role .accent-text { font-weight: 500; }
.stack-line { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bio { color: var(--muted); max-width: 56ch; }
.chip-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: var(--inset);
  border: 1px solid var(--card-border);
}
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.btn-row .btn { min-height: 46px; }

/* ============ Stats ============ */
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 18px 10px;
}
.stat-num {
  font-family: var(--font-mono);
  font-weight: 200;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-num .num {
  background: linear-gradient(180deg, var(--num-from) 20%, var(--num-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num .suffix { color: var(--accent-text); font-weight: 300; }
.stat-label { color: var(--muted); font-size: 12.5px; }

/* ============ Toolkit ============ */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--chip);
  border: 1px solid var(--chip-border);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  min-width: 0;
}
.tool-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--chip-border);
  color: var(--accent);
}
.tool-icon .icon { width: 17px; height: 17px; }

/* ============ Projects ============ */
.area-projects { padding-left: 0; padding-right: 0; padding-bottom: 18px; }
.area-projects .card-head { padding: 0 22px; }
.proj-wrap { position: relative; }
.proj-wrap::after {
  /* fade the right edge so the row reads as scrollable */
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, var(--card));
  pointer-events: none;
}
.proj-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 22px;
  padding: 0 22px 64px;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.proj-row::-webkit-scrollbar { display: none; }
.proj-row.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.proj-row.dragging a { pointer-events: none; }
.proj {
  flex: 0 0 84%;
  max-width: 320px;
  scroll-snap-align: start;
}
.proj a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 10px 10px 14px;
  border-radius: 14px;
  background: var(--chip);
  border: 1px solid var(--chip-border);
  transition: border-color .2s;
}
.proj a:hover { border-color: var(--card-border-hover); }
.proj h3 { font-size: 13.5px; font-weight: 600; padding: 0 4px; }
.proj p { font-size: 12px; color: var(--muted); padding: 0 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 4px; margin-top: auto; }
.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.view-all {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 10px 30px -8px rgba(16, 185, 129, .45);
}
.view-all:active { transform: translateX(-50%) translateY(1px); }

.diagram {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background-color: var(--diagram-bg);
  background-image: radial-gradient(var(--chip-border) 1px, transparent 1px);
  background-size: 12px 12px;
  border: 1px solid var(--card-border);
}
.d-bound { fill: none; stroke: var(--muted); stroke-opacity: .45; stroke-dasharray: 4 4; }
.d-label { fill: var(--muted); font: 500 9px var(--font-mono); }
.d-node { fill: var(--card); stroke: var(--chip-border); stroke-width: 1.2; }
.d-node.first { stroke: var(--accent); }
.d-text { fill: var(--text); font: 500 8.5px var(--font-mono); letter-spacing: -.02em; }
.d-arrow { stroke: var(--accent); stroke-width: 1.4; fill: none; }
.d-head { fill: var(--accent); }

/* ============ Infra ============ */
.area-infra { display: flex; flex-direction: column; }
.status-pill {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 14px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--chip);
  border: 1px solid var(--chip-border);
  color: var(--muted);
}
.status-pill .dot { width: 6px; height: 6px; background: var(--muted); }
.status-pill .dot::after { display: none; }
.status-pill[data-state="live"] { color: var(--accent-text); }
.status-pill[data-state="live"] .dot { background: var(--accent); }
.status-pill[data-state="live"] .dot::after { display: block; }
.infra-big { text-align: center; margin-bottom: 14px; }
.infra-big .value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 200;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.infra-big .label { color: var(--muted); font-size: 12.5px; }
.infra-list { display: flex; flex-direction: column; gap: 6px; }
.infra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--chip);
  border: 1px solid var(--chip-border);
  font-size: 12.5px;
}
.infra-row dt { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.infra-row dt .icon { width: 14px; height: 14px; color: var(--accent); }
.infra-row dd { font-family: var(--font-mono); font-size: 12px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.infra-row dd a { text-decoration: underline; text-decoration-color: var(--chip-border); text-underline-offset: 3px; }
.infra-row dd a:hover { text-decoration-color: var(--accent); }
.infra-foot { margin-top: auto; padding-top: 14px; text-align: center; font-size: 11px; color: var(--muted); }
.infra-foot b { color: var(--text); font-weight: 500; white-space: nowrap; }

/* ============ Workflow ============ */
.flow { display: flex; flex-direction: column; gap: 8px; }
.flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--chip);
  border: 1px solid var(--chip-border);
}
.flow li + li::before {
  /* connector between steps */
  content: "";
  position: absolute;
  left: 27px;
  top: -9px;
  width: 1px;
  height: 9px;
  background: var(--accent);
  opacity: .5;
}
.flow-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--chip-border);
  color: var(--accent);
}
.flow-icon .icon { width: 15px; height: 15px; }
.flow-step { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin-left: auto; }
.flow strong { display: block; font-size: 13px; font-weight: 600; }
.flow small { display: block; font-size: 11.5px; color: var(--muted); }

/* ============ Certifications ============ */
.cert-list { display: flex; flex-direction: column; gap: 8px; }
.cert {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 44px 12px 12px;
  border-radius: 14px;
  background: var(--chip);
  border: 1px solid var(--chip-border);
  transition: border-color .2s;
}
.cert:hover { border-color: var(--card-border-hover); }
.cert-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.cert-badge .icon { width: 20px; height: 20px; }
.cert strong { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.cert small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.cert .arrow-btn { right: 10px; top: 50%; bottom: auto; transform: translateY(-50%); width: 28px; height: 28px; }
.cert .arrow-btn .icon { width: 13px; height: 13px; }
.cert:hover .arrow-btn .icon, .cert:focus-visible .arrow-btn .icon { transform: rotate(45deg); }

/* ============ Logo strip ============ */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row + .marquee-row { margin-top: 10px; }
.marquee-row.reverse .marquee-track { animation-direction: reverse; animation-duration: 34s; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--chip);
  border: 1px solid var(--chip-border);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.logo .icon { width: 20px; height: 20px; color: var(--text); }

/* ============ Socials ============ */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.social {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--chip);
  border: 1px solid var(--chip-border);
  color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s;
}
.social .icon { width: 20px; height: 20px; }
.social:hover { color: var(--accent-text); border-color: var(--card-border-hover); }

/* ============ Writing ============ */
.area-writing { display: flex; flex-direction: column; min-height: 180px; }
.area-writing .eyebrow { margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.writing-title { font-size: 16px; font-weight: 500; line-height: 1.4; padding-right: 12px; }
.writing-date { margin-top: auto; padding-top: 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* ============ Theme toggle ============ */
.area-theme { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 140px; }
.switch {
  position: relative;
  width: 76px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip);
  cursor: pointer;
}
.switch .icon { position: absolute; top: 11px; width: 16px; height: 16px; color: var(--muted); }
.switch .i-moon { left: 11px; }
.switch .i-sun { right: 11px; }
.switch .knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  transition: transform .25s var(--ease);
}
.switch .knob .icon { position: static; color: var(--on-accent); }
.switch[aria-checked="true"] .knob { transform: translateX(36px); }
.theme-label { font-size: 12.5px; color: var(--muted); }

/* ============ Contact ============ */
.area-contact { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 22px; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 8px;
  border: 1px solid rgba(16, 185, 129, .25);
}
.contact-icon .icon { width: 22px; height: 22px; }
.contact-title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.contact-text { color: var(--muted); max-width: 44ch; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; margin-top: 14px; }
.contact-actions .btn { min-height: 46px; }

/* ============ Footer & toast ============ */
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 40px 0 8px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--toast-bg);
  color: var(--toast-text);
  font-size: 13px;
  font-weight: 500;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Responsive tweaks ============ */
@media (max-width: 640px) {
  .card { padding: 18px; }
  .area-projects .card-head { padding: 0 18px; }
  .proj-row { padding: 0 18px 64px; scroll-padding: 0 18px; }
  .profile-top { gap: 14px; }
  .avatar { width: 76px; height: 76px; font-size: 26px; border-radius: 16px; }
  .stat { padding: 16px 6px; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 11.5px; line-height: 1.3; }
  .btn-row, .contact-actions { grid-template-columns: 1fr; }
  .chip { white-space: normal; max-width: 100%; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .card { animation-name: fade; animation-duration: .3s; }
  .dot::after { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track .dup { display: none; }
  .marquee-row.reverse { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .arrow-btn .icon, .switch .knob, .toast { transition: none; }
  .proj-row { scroll-behavior: auto; }
}
