/* ── Home ──────────────────────────────────────────────────────────── */
.home { width: 100%; display: grid; gap: 16px; }
.home-id { display: grid; justify-items: start; }
.home-id h1 { font-size: clamp(38px, 7vw, 56px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.wordmark img { width: clamp(150px, 30vw, 210px); height: auto; margin: 6px 0 2px; }
.handle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 13px; color: var(--muted); text-decoration: none;
}
.handle:hover { color: var(--text); }
.home-card { --pad: 22px; }
.home-card p { color: #d4d4d8; }
.home-card p + p { margin-top: 12px; }
.home-card .lead { color: var(--text); font-weight: 500; font-size: 16px; }
.home-card strong { color: #fff; font-weight: 600; }
.home-card a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; font-weight: 500; }
.home-card a:hover { text-decoration-color: #fff; }

/* ── Projects ──────────────────────────────────────────────────────── */
.stack { display: grid; gap: 16px; }
.project-card { --pad: 0; overflow: hidden; }
.project-art { display: block; aspect-ratio: 2000 / 703; overflow: hidden; }
.project-art img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 18px 20px 20px; }
.project-body h2 { display: flex; align-items: center; gap: 9px; font-size: 18px; letter-spacing: -0.01em; }
.project-brand { width: 22px; height: 22px; object-fit: contain; border-radius: 50%; }
.project-body > p { margin-top: 8px; color: #d4d4d8; }
.project-technical { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.project-technical dt { font-weight: 600; font-size: 13px; }
.project-technical dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.project-links { display: flex; gap: 18px; margin-top: 16px; }
.project-links a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); text-decoration: none; }
.project-links a:hover { color: #fff; }

.past-projects { margin-top: 36px; }
.past-projects .eyebrow { margin-bottom: 12px; }
.compact-list { display: grid; gap: 10px; }
.compact-project {
  --pad: 14px 16px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  text-decoration: none;
}
.compact-brand { width: 34px; height: 34px; object-fit: contain; padding: 5px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); }
.compact-initial { display: grid; place-items: center; padding: 0; font-weight: 700; font-size: 15px; color: var(--text); }
.row-heading { display: flex; align-items: baseline; gap: 10px; }
.row-heading span { font-weight: 600; }
.row-heading small { font-size: 12px; color: var(--faint); }
.compact-text p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.compact-arrow { color: var(--faint); transition: color 0.2s; }
.compact-project:hover .compact-arrow { color: #fff; }

/* ── Skills ────────────────────────────────────────────────────────── */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.skill-group h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.skill-group.core { grid-column: 1 / -1; --pad: 22px; }
.skill-group.core h2 { font-size: 16px; }
.skill-description { margin-top: 6px; color: var(--muted); font-size: 13.5px; }

/* ── Setup ─────────────────────────────────────────────────────────── */
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.setup-card { display: flex; flex-direction: column; }
.setup-card > p { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.setup-card .chips { margin-top: auto; padding-top: 14px; }
.setup-heading { display: flex; align-items: center; gap: 10px; }
.setup-heading h2 { font-size: 15px; font-weight: 600; }
.setup-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }

/* ── Contact ───────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-card { --pad: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.contact-main a { font-weight: 600; text-decoration: none; word-break: break-all; }
.contact-main a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-main p { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.contact-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: rgba(255, 255, 255, 0.06); }
.contact-actions { display: flex; gap: 6px; flex: none; }
.primary-contact { grid-column: 1 / -1; --pad: 22px; flex-wrap: wrap; }
.primary-contact .contact-main a { font-size: 18px; }
.avatar-wrap { position: relative; flex: none; }
.contact-avatar { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: rgba(255, 255, 255, 0.05); }
.presence { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #121215; background: var(--faint); }
.presence[data-state='online'] { background: #23a55a; }
.presence[data-state='idle'] { background: #f0b232; }
.presence[data-state='dnd'] { background: #f23f43; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .skills-grid, .setup-grid, .contact-grid { grid-template-columns: 1fr; }
  .project-technical { grid-template-columns: 1fr; gap: 12px; }
  .compact-project { grid-template-columns: auto 1fr; }
  .compact-arrow { display: none; }
}
