/* ── Variables ── */
:root {
    --bg:           #0e0d12;
    --bg-subtle:    #141219;
    --bg-card:      #1a1720;
    --border:       #272335;
    --text:         #cdc8da;
    --text-muted:   #6e6880;
    --text-dim:     #443f55;
    --heading:      #ede8f8;
    --accent:       #b899d4;
    --accent-dim:   #2a1f40;
    --lavender:     #8fa4e8;
    --lavender-dim: #1a2140;
    --accent-warm:  #d4a0c8;
    --code-bg:      #110f18;
    --green:        #6dbf8a;
    --green-dim:    #1a3328;
    --orange:       #d4956a;
    --orange-dim:   #3d2010;

    --font-sans:    'IBM Plex Sans', sans-serif;
    --font-mono:    'IBM Plex Mono', monospace;
    --font-serif:   'IBM Plex Serif', serif;

    --max-w:        1100px;
    --max-w-text:   720px;
    --nav-h:        62px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
img  { max-width: 100%; display: block; }
a    { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
    font-family: var(--font-mono);
    font-size: .84em;
    background: var(--code-bg);
    color: var(--accent-warm);
    padding: .12em .4em;
    border-radius: 2px;
}

/* ── Reveal animation ── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .45s ease, transform .45s ease;
}
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: .05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .12s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .19s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .26s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .33s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .40s; }

/* ── Nav ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(14, 13, 18, 0.93);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .2s;
}
.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}
.site-logo {
    font-family: var(--font-mono);
    font-size: .95rem;
    font-weight: 500;
    color: var(--heading);
    letter-spacing: -.02em;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 1rem;
}
.site-logo:hover { color: var(--accent); text-decoration: none; }
.logo-mark { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
    height: 100%;
    flex: 1;
}
.nav-indicator {
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    opacity: 0;
    pointer-events: none;
    transition: transform .25s cubic-bezier(.4,0,.2,1),
                width    .25s cubic-bezier(.4,0,.2,1),
                opacity  .18s;
}
.nav-link {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: .05em;
    padding: 0 .85rem;
    height: 100%;
    display: flex;
    align-items: center;
    transition: color .18s;
    white-space: nowrap;
}
.nav-link:hover  { color: var(--heading); text-decoration: none; }
.nav-link.active { color: var(--accent); }

.nav-cv {
    font-family: var(--font-mono);
    font-size: .74rem;
    font-weight: 500;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    padding: .35rem 1rem;
    border-radius: 3px;
    margin-left: auto;
    white-space: nowrap;
    transition: background .18s;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-cv:hover { background: var(--accent-dim); text-decoration: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: transform .22s ease, opacity .18s, width .18s;
    transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Page header ── */
.page-header {
    padding: 5rem 2rem 3.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -80px; right: -60px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(184,153,212,.06) 0%, transparent 70%);
    pointer-events: none;
}
.page-header .section-inner { max-width: var(--max-w); margin: 0 auto; }
.page-eyebrow {
    font-family: var(--font-mono);
    font-size: .76rem;
    color: var(--accent);
    letter-spacing: .12em;
    text-transform: lowercase;
    margin-bottom: .9rem;
}
.page-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 300;
    color: var(--heading);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: .75rem;
}
.page-sub {
    font-size: .95rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.8;
}

/* ── Hero ── */
.hero {
    padding: 6rem 2rem 5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -120px; left: -80px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(184,153,212,.07) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -60px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(143,164,232,.05) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 4rem;
    align-items: center;
}
.hero-handles {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .9rem;
}
.handle {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--accent);
    letter-spacing: .06em;
}
.handle-sep { color: var(--text-dim); font-family: var(--font-mono); font-size: .8rem; }
.hero-text h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 300;
    color: var(--heading);
    line-height: 1.15;
    letter-spacing: -.03em;
    margin-bottom: .75rem;
}
.hero-tagline {
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--lavender);
    letter-spacing: .05em;
    margin-bottom: 1rem;
}
.hero-bio {
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .04em;
    background: var(--accent);
    color: #0e0d12;
    padding: .6rem 1.4rem;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    transition: background .18s;
}
.btn-primary:hover { background: var(--accent-warm); text-decoration: none; color: #0e0d12; }
.btn-ghost {
    font-family: var(--font-mono);
    font-size: .8rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: .6rem 1.2rem;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    transition: border-color .18s, color .18s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Avatar */
.hero-avatar-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 6px var(--accent-dim), 0 0 0 7px var(--border);
}
.hero-avatar { width: 100%; height: 100%; object-fit: cover; }
.avatar-deco {
    position: absolute;
    width: 224px; height: 224px;
    border-radius: 50%;
    border: 1px dashed var(--accent-dim);
    animation: spin-slow 24s linear infinite;
    z-index: 0;
}
.avatar-deco::before {
    content: '';
    position: absolute;
    top: -4px; left: 50%;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--accent);
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Glance / counters ── */
.glance-section { padding: 3rem 2rem; border-bottom: 1px solid var(--border); }
.glance-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.glance-card {
    background: var(--bg-card);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.glance-num {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -.04em;
}
.glance-unit {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--lavender);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: .1rem;
}
.glance-label {
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: .35rem;
    line-height: 1.4;
}

/* ── Section layout ── */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 4rem 2rem;
}
.section-inner--labeled {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 3.5rem;
    align-items: start;
}
.section-label {
    font-family: var(--font-mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--text-dim);
    padding-top: .3rem;
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
}
.section-body p {
    color: var(--text-muted);
    margin-bottom: 1.1rem;
    line-height: 1.85;
    max-width: 640px;
}
.about-lead {
    font-family: var(--font-serif);
    font-size: 1.18rem !important;
    font-weight: 300;
    color: var(--heading) !important;
    font-style: italic;
    margin-bottom: 1.5rem !important;
}

/* ── Skills ── */
.skills-section .section-inner { border-top: 1px solid var(--border); }
.skill-group { margin-bottom: 1.75rem; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group-name {
    font-family: var(--font-mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-dim);
    margin-bottom: .75rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.skill-tag {
    font-family: var(--font-mono);
    font-size: .76rem;
    padding: .3em .75em;
    border-radius: 2px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: border-color .15s, color .15s;
}
.skill-tag--l5 { border-color: var(--accent-dim); color: var(--accent); }
.skill-tag--l4 { border-color: color-mix(in srgb, var(--accent-dim) 60%, var(--border)); color: var(--text); }
.skill-tag--l3 { color: var(--text-muted); }
.skill-tag--l2 { color: var(--text-dim); }

/* ── Nav cards ── */
.nav-cards-section .section-inner { border-top: 1px solid var(--border); }
.nav-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.nav-card {
    background: var(--bg-card);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    text-decoration: none;
    color: var(--text);
    transition: background .18s;
}
.nav-card:hover { background: color-mix(in srgb, var(--accent) 5%, var(--bg-card)); text-decoration: none; color: var(--text); }
.nav-card-icon { font-size: 1.2rem; color: var(--lavender); }
.nav-card-title { font-family: var(--font-mono); font-size: .85rem; font-weight: 500; color: var(--heading); }
.nav-card-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.nav-card-arrow { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); margin-top: .4rem; }

/* ── Work items ── */
.contributions-section .section-inner,
.method-section .section-inner { border-top: 1px solid var(--border); }

.work-item {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
}
.work-item:last-child { border-bottom: none; padding-bottom: 0; }
.work-item--featured {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1.75rem;
    margin-bottom: 2px;
}
.work-item-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    margin-bottom: .9rem;
}
.work-item h2 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--heading);
    letter-spacing: -.01em;
}
.work-item p {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: .75rem;
}
.work-links { display: flex; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.work-links a { font-family: var(--font-mono); font-size: .76rem; color: var(--lavender); }
.work-links a:hover { color: var(--accent); }
.work-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.work-tag {
    font-family: var(--font-mono);
    font-size: .68rem;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: .1em .55em;
    border-radius: 2px;
}

/* Badges */
.badge {
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .18em .6em;
    border-radius: 2px;
    background: var(--accent-dim);
    color: var(--accent);
    white-space: nowrap;
}
.badge--upstream { background: var(--lavender-dim); color: var(--lavender); }
.badge--src      { background: var(--orange-dim);   color: var(--orange); }
.badge--docs     { background: var(--green-dim);    color: var(--green); }
.badge--new      { background: var(--accent-dim);   color: var(--accent-warm); }

/* ── Timeline ── */
.timeline-section .section-inner { border-top: 1px solid var(--border); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    padding: 0 0 2.5rem 2rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 2rem;
    display: flex;
    justify-content: center;
}
.timeline-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 2px var(--accent-dim);
    flex-shrink: 0;
}
.timeline-item[data-type="upstream"] .timeline-dot { background: var(--lavender); box-shadow: 0 0 0 2px var(--lavender-dim); }
.timeline-item[data-type="src"]      .timeline-dot { background: var(--orange);   box-shadow: 0 0 0 2px var(--orange-dim); }
.timeline-item[data-type="docs"]     .timeline-dot { background: var(--green);    box-shadow: 0 0 0 2px var(--green-dim); }
.timeline-item[data-type="milestone"].timeline-dot { background: var(--accent-warm); box-shadow: 0 0 0 2px var(--accent-dim); }

.timeline-date {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--text-dim);
    letter-spacing: .08em;
    display: block;
    margin-bottom: .3rem;
}
.timeline-title {
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: .3rem;
}
.timeline-desc {
    font-size: .86rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Method grid ── */
.method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.method-item { display: flex; flex-direction: column; gap: .5rem; }
.method-num  { font-family: var(--font-mono); font-size: .72rem; color: var(--lavender); letter-spacing: .1em; }
.method-item h3 { font-family: var(--font-sans); font-size: .92rem; font-weight: 600; color: var(--heading); }
.method-item p  { font-size: .88rem; color: var(--text-muted); line-height: 1.75; }

/* ── Filter bar ── */
.filter-bar {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.filter-search {
    font-family: var(--font-mono);
    font-size: .82rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text);
    padding: .6rem 1rem;
    width: 100%;
    max-width: 420px;
    transition: border-color .18s;
}
.filter-search:focus { outline: none; border-color: var(--accent); }
.filter-search::placeholder { color: var(--text-dim); }
.filter-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .06em;
    padding: .3em .85em;
    border-radius: 2px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.chip:hover      { border-color: var(--accent); color: var(--accent); }
.chip--active    { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }

/* ── Commit / ticket tables ── */
.commit-group {
    margin-bottom: 3rem;
    transition: opacity .2s;
}
.commit-group.hidden { display: none; }
.commit-group-header {
    padding: 1.25rem 0 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.commit-group-title {
    display: flex;
    align-items: baseline;
    gap: .75rem;
}
.commit-repo {
    font-family: var(--font-mono);
    font-size: .9rem;
    font-weight: 500;
    color: var(--heading);
}
.commit-platform {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--text-dim);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.commit-group-desc { font-size: .84rem; color: var(--text-muted); }
.commit-group-link {
    font-family: var(--font-mono);
    font-size: .74rem;
    color: var(--lavender);
    align-self: flex-start;
}
.commit-group-link:hover { color: var(--accent); }

.commit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
}
.commit-table th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-dim);
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}
.commit-table td {
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.commit-row:last-child td { border-bottom: none; }
.commit-row.hidden { display: none; }
.commit-row:hover td { background: color-mix(in srgb, var(--accent) 3%, var(--bg)); }
.commit-date {
    font-family: var(--font-mono);
    font-size: .74rem;
    color: var(--text-dim);
    white-space: nowrap;
}
.commit-msg a { color: var(--text); }
.commit-msg a:hover { color: var(--accent); }
.commit-type { white-space: nowrap; }
.ticket-id a { font-family: var(--font-mono); font-size: .78rem; color: var(--lavender); }
.ticket-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }

/* Type badges */
.type-badge {
    font-family: var(--font-mono);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .15em .55em;
    border-radius: 2px;
    background: var(--accent-dim);
    color: var(--accent);
    white-space: nowrap;
}
.type-badge--upstream-pr,
.type-badge--upstream    { background: var(--lavender-dim); color: var(--lavender); }
.type-badge--src         { background: var(--orange-dim);   color: var(--orange); }
.type-badge--docs        { background: var(--green-dim);    color: var(--green); }
.type-badge--new-port    { background: var(--accent-dim);   color: var(--accent-warm); }
.type-badge--filed       { background: var(--accent-dim);   color: var(--accent); }
.type-badge--contributed { background: var(--lavender-dim); color: var(--lavender); }
.type-badge--assigned    { background: var(--green-dim);    color: var(--green); }

.status-badge {
    font-family: var(--font-mono);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .15em .55em;
    border-radius: 2px;
    background: var(--bg-card);
    color: var(--text-dim);
    white-space: nowrap;
}
.status-badge--open    { background: var(--lavender-dim); color: var(--lavender); }
.status-badge--merged,
.status-badge--committed { background: var(--green-dim); color: var(--green); }
.status-badge--closed  { color: var(--text-dim); }

.history-note {
    margin-top: 2rem;
    font-size: .82rem;
    color: var(--text-dim);
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* ── Contact ── */
.contact-section .section-inner { border-top: 1px solid var(--border); }
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.contact-card {
    background: var(--bg-card);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    color: var(--text);
    transition: background .18s;
}
.contact-card:hover { background: color-mix(in srgb, var(--accent) 5%, var(--bg-card)); text-decoration: none; }
.contact-card-icon {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--lavender);
    flex-shrink: 0;
    width: 28px;
    text-align: center;
    margin-top: .1rem;
}
.contact-card-body { flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.contact-card-title {
    font-family: var(--font-mono);
    font-size: .76rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--heading);
}
.contact-card-value {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--accent);
}
.contact-card-note { font-size: .82rem; color: var(--text-muted); line-height: 1.55; margin-top: .2rem; }
.contact-card-arrow {
    font-family: var(--font-mono);
    font-size: .9rem;
    color: var(--text-dim);
    flex-shrink: 0;
    align-self: center;
    transition: color .18s;
}
.contact-card:hover .contact-card-arrow { color: var(--accent); }

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.75rem 2rem;
    background: var(--bg-subtle);
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-left { display: flex; flex-direction: column; gap: .2rem; }
.footer-name { font-family: var(--font-serif); font-size: .9rem; font-weight: 300; color: var(--heading); }
.footer-handles { font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim); letter-spacing: .06em; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim); }
.footer-nav a:hover { color: var(--accent); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-inner    { grid-template-columns: 1fr; }
    .hero-avatar-col { display: none; }
    .section-inner--labeled { grid-template-columns: 1fr; gap: 1.25rem; }
    .section-label { position: static; }
    .glance-grid   { grid-template-columns: repeat(2, 1fr); }
    .nav-cards     { grid-template-columns: repeat(2, 1fr); }
    .method-grid   { grid-template-columns: 1fr; }
    .contact-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .glance-grid   { grid-template-columns: 1fr 1fr; }
    .nav-cards     { grid-template-columns: 1fr; }
    .footer-inner  { flex-direction: column; align-items: flex-start; }
    .commit-table  { font-size: .78rem; }
    .commit-table th,
    .commit-table td { padding: .5rem .6rem; }

    .nav-toggle { display: flex; }
    .nav-cv { display: none; }
    .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        height: auto;
        flex-direction: column;
        background: rgba(14, 13, 18, 0.97);
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(12px);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height .32s cubic-bezier(.4,0,.2,1), opacity .24s ease;
        pointer-events: none;
    }
    .nav-links.open { max-height: 400px; opacity: 1; pointer-events: auto; }
    .nav-indicator  { display: none; }
    .nav-link {
        height: auto;
        padding: .8rem 2rem;
        border-bottom: 1px solid var(--border);
        font-size: .85rem;
    }
    .nav-link:last-child { border-bottom: none; }
}
