/* ==========================================================================
   naveenb.dev — stylesheet
   Hand-written. No framework, no CDN, no build step.
   Order: tokens → reset → primitives → layout → components → sections
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Dark is the default; .light on <html> flips it. */
    --bg: #0b0c0e;
    --bg-sunken: #08090a;
    --surface: #121417;
    --surface-hi: #181b1f;
    --line: #23272c;
    --line-hi: #31363d;

    --ink: #ecebe7;
    --ink-2: #a3a8b0;
    --ink-3: #737880;

    --accent: #f0a24b;
    --accent-soft: rgba(240, 162, 75, 0.13);
    --accent-line: rgba(240, 162, 75, 0.32);
    --on-accent: #1c1206;

    --live: #4ade80;
    --live-soft: rgba(74, 222, 128, 0.12);
    --live-line: rgba(74, 222, 128, 0.3);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 28px -12px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, 0.8);

    /* Type */
    --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.83rem);
    --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.02rem);
    --step-1: clamp(1.08rem, 1.02rem + 0.3vw, 1.22rem);
    --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
    --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);
    --step-4: clamp(2.35rem, 1.6rem + 3.4vw, 4.4rem);

    /* Space + shape */
    --gutter: clamp(1.15rem, 4vw, 2.5rem);
    --measure: 60ch;
    --radius: 14px;
    --radius-sm: 9px;
    --radius-pill: 999px;
    --shell: 1140px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.light {
    --bg: #faf8f4;
    --bg-sunken: #f2efe8;
    --surface: #ffffff;
    --surface-hi: #ffffff;
    --line: #e5e0d6;
    --line-hi: #d5cec0;

    --ink: #14161a;
    --ink-2: #565c65;
    --ink-3: #7c828b;

    --accent: #b45309;
    --accent-soft: rgba(180, 83, 9, 0.09);
    --accent-line: rgba(180, 83, 9, 0.26);
    --on-accent: #ffffff;

    --live: #15803d;
    --live-soft: rgba(21, 128, 61, 0.1);
    --live-line: rgba(21, 128, 61, 0.28);

    --shadow-sm: 0 1px 2px rgba(24, 20, 12, 0.06);
    --shadow-md: 0 12px 28px -14px rgba(24, 20, 12, 0.22);
    --shadow-lg: 0 32px 64px -28px rgba(24, 20, 12, 0.28);
}

:root { color-scheme: dark; }
html.light { color-scheme: light; }

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Offset for the sticky header when jumping to an anchor. */
    scroll-padding-top: 5.5rem;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.021em;
    text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 3px;
}

::selection { background: var(--accent); color: var(--on-accent); }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-sunken); }
::-webkit-scrollbar-thumb { background: var(--line-hi); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* --------------------------------------------------------------------------
   3. Primitives
   -------------------------------------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line-hi);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.mono {
    font-family: var(--mono);
    font-size: var(--step--1);
    letter-spacing: 0.02em;
}

.eyebrow {
    font-family: var(--mono);
    font-size: var(--step--1);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-3);
}

.muted { color: var(--ink-2); }

/* Buttons ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: var(--step--1);
    font-weight: 550;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
                color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1em; height: 1em; flex: none; }

.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { filter: brightness(1.07); }

.btn--outline { border-color: var(--line-hi); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--quiet { color: var(--ink-2); padding-inline: 0.75rem; }
.btn--quiet:hover { color: var(--ink); background: var(--surface-hi); }

.btn--sm { min-height: 36px; padding: 0.35rem 0.8rem; }

/* Icon button -------------------------------------------------------------- */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.icon-btn:hover { color: var(--ink); background: var(--surface-hi); }
.icon-btn svg { width: 18px; height: 18px; }

/* Tag --------------------------------------------------------------------- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--bg-sunken);
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Status pill -------------------------------------------------------------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.7rem 0.25rem 0.55rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--live-line);
    background: var(--live-soft);
    color: var(--live);
    font-family: var(--mono);
    font-size: 0.72rem;
    white-space: nowrap;
}
.pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
    animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Card --------------------------------------------------------------------- */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
                transform 0.25s var(--ease);
}
.card--lift:hover {
    transform: translateY(-3px);
    border-color: var(--line-hi);
    box-shadow: var(--shadow-md);
}

/* Reveal on scroll --------------------------------------------------------- */
/* Scoped to .js so that if the script never loads, nothing is stuck at
   opacity 0 — the page just renders without the animation. */
.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); }

.header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.brand__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-1px);
}
.brand__role {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ink-3);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.nav__link {
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: var(--step--1);
    color: var(--ink-2);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--surface-hi); }
.nav__link[aria-current='true'] { color: var(--accent); }

.header__actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: 0.5rem;
    margin-left: 0.3rem;
    border-left: 1px solid var(--line);
}

.header__desktop { display: contents; }

.nav-toggle { display: none; }

/* Mobile drawer ------------------------------------------------------------ */
.drawer {
    display: none;
    padding: 0.5rem 0 1.25rem;
    border-top: 1px solid var(--line);
}
.drawer.is-open { display: block; }
.drawer__links { display: grid; gap: 0.15rem; margin-bottom: 1rem; }
.drawer__links a {
    padding: 0.65rem 0.25rem;
    color: var(--ink-2);
    font-size: var(--step-0);
    border-bottom: 1px solid var(--line);
}
.drawer__links a:hover { color: var(--accent); }
.drawer__actions { display: flex; align-items: center; gap: 0.5rem; }

@media (max-width: 860px) {
    .header__desktop { display: none; }
    .nav-toggle { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
    overflow: hidden;
}

/* Backdrop: two soft glows over a masked grid. CSS only — no canvas, no JS. */
.hero__backdrop {
    position: absolute;
    inset: -20% -10% auto;
    height: 130%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(38rem 28rem at 18% 8%, var(--accent-soft), transparent 65%),
        radial-gradient(32rem 26rem at 88% 26%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 62%);
}
.hero__grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.42;
    -webkit-mask-image: radial-gradient(58% 55% at 50% 30%, #000 0%, transparent 100%);
    mask-image: radial-gradient(58% 55% at 50% 30%, #000 0%, transparent 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.3rem 0.85rem 0.3rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--ink-2);
}
.hero__status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 3px var(--live-soft);
    animation: pulse 2.6s var(--ease) infinite;
}

.hero__title {
    font-size: var(--step-4);
    font-weight: 620;
    letter-spacing: -0.035em;
    line-height: 1.03;
    margin-bottom: 1.25rem;
}
.hero__title em {
    font-style: normal;
    color: var(--accent);
}

.hero__lede {
    max-width: 46ch;
    font-size: var(--step-1);
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 2.5rem;
}

/* Inline metric row (replaces the old floating stat cards) */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.metrics__item {
    padding: 0.9rem 1rem;
    background: var(--bg);
}
.metrics__value {
    display: block;
    font-size: var(--step-2);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.metrics__label {
    display: block;
    margin-top: 0.15rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--ink-3);
}

/* Portrait ----------------------------------------------------------------- */
.portrait {
    position: relative;
    justify-self: end;
    width: min(100%, 340px);
}
.portrait__frame {
    position: relative;
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 8px;
    box-shadow: var(--shadow-lg);
}
.portrait__frame img {
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    object-position: center 18%;
    border-radius: var(--radius);
}
.portrait__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.35rem 0.15rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ink-3);
}
.portrait__socials {
    display: flex;
    gap: 0.15rem;
}
.portrait__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    color: var(--ink-3);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.portrait__socials a:hover { color: var(--accent); background: var(--accent-soft); }
.portrait__socials svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
    .hero__inner { grid-template-columns: minmax(0, 1fr); }
    .portrait {
        grid-row: 1;
        justify-self: start;
        width: min(100%, 220px);
    }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   6. Marquee / stack strip
   -------------------------------------------------------------------------- */
.strip {
    border-block: 1px solid var(--line);
    background: var(--bg-sunken);
    padding: 1.1rem 0;
}
.strip__inner {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 4vw, 2.5rem);
    flex-wrap: wrap;
}
.strip__label {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-3);
    white-space: nowrap;
}
.strip__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
.strip__list li {
    font-size: var(--step--1);
    color: var(--ink-2);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   7. Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--sunken { background: var(--bg-sunken); border-block: 1px solid var(--line); }

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section__title {
    font-size: var(--step-3);
    letter-spacing: -0.03em;
}
.section__note {
    max-width: 44ch;
    font-size: var(--step--1);
    color: var(--ink-2);
}

/* Work grid ---------------------------------------------------------------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
}

.work {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.4rem;
}
.work--feature {
    grid-column: span 2;
    background:
        linear-gradient(160deg, var(--accent-soft), transparent 45%),
        var(--surface);
    border-color: var(--accent-line);
}
/* Below this the grid drops to one column, so a 2-column span would create a
   phantom implicit column. */
@media (max-width: 780px) {
    .work--feature { grid-column: span 1; }
}

.work__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.work__title {
    font-size: var(--step-1);
    letter-spacing: -0.02em;
}
.work__desc {
    color: var(--ink-2);
    font-size: var(--step--1);
    line-height: 1.65;
    flex: 1;
}
.work__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.35rem;
}
.work__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--ink-2);
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.work__link:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.work__link svg { width: 13px; height: 13px; }

/* Timeline ----------------------------------------------------------------- */
.timeline {
    display: grid;
    gap: 1rem;
}
.role { padding: clamp(1.25rem, 3vw, 1.9rem); }
.role__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
}
.role__title { font-size: var(--step-2); letter-spacing: -0.025em; }
.role__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
    font-family: var(--mono);
    font-size: var(--step--1);
    color: var(--ink-3);
}
.role__company { color: var(--accent); }
.role__dates {
    font-family: var(--mono);
    font-size: var(--step--1);
    color: var(--ink-3);
    white-space: nowrap;
}
.role__dates--current { color: var(--live); }

.role__group + .role__group { margin-top: 1.5rem; }
.role__group-title {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-3);
    margin-bottom: 0.75rem;
}
.role__points { display: grid; gap: 0.6rem; }
.role__points li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--ink-2);
    font-size: var(--step--1);
    line-height: 1.7;
}
.role__points li::before {
    content: '';
    position: absolute;
    left: 0.1rem;
    top: 0.72em;
    width: 6px;
    height: 1px;
    background: var(--accent);
}

/* Skills ------------------------------------------------------------------- */
.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
}
.skill { padding: 1.3rem; }
.skill--wide { grid-column: 1 / -1; }
.skill__title {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-3);
    margin-bottom: 0.9rem;
}
.skill__sub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.25rem;
}
.skill__sub-title {
    font-size: var(--step--1);
    font-weight: 600;
    margin-bottom: 0.55rem;
}

/* Credentials -------------------------------------------------------------- */
.creds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
}
.cred-list { display: grid; gap: 0.75rem; }
.cred {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
}
.cred__body { flex: 1; }
.cred__name { font-size: var(--step-0); font-weight: 600; }
.cred__org { color: var(--accent); font-size: var(--step--1); }
.cred__dates {
    display: block;
    margin-top: 0.3rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ink-3);
}
.cred__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
}
.cred__link:hover { text-decoration: underline; }

/* Contact ------------------------------------------------------------------ */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1.75rem, 5vw, 3rem);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        radial-gradient(28rem 18rem at 12% 0%, var(--accent-soft), transparent 70%),
        var(--surface);
}
.contact__title {
    font-size: var(--step-3);
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
}
.contact__text { color: var(--ink-2); max-width: 42ch; margin-bottom: 1.5rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.contact__list { display: grid; gap: 0.35rem; }
.contact__list a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: var(--step--1);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.contact__list a:hover { color: var(--ink); background: var(--bg-sunken); }
.contact__list svg { width: 16px; height: 16px; flex: none; color: var(--accent); }

@media (max-width: 720px) {
    .contact { grid-template-columns: minmax(0, 1fr); }
}

/* Footer ------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0 2.5rem;
}
.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--ink-3);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__links a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   8. Simple prose page (about)
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1rem; color: var(--ink-2); font-size: var(--step-1); }
.prose h2 {
    font-size: var(--step-2);
    margin: 2.5rem 0 1rem;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; }

.about-head {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.about-head img {
    width: 96px;
    height: 96px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   9. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}
