/* Resume Site v3 — ported from the Claude Design "Resume Website UI Redesign" project. */

:root {
    --sf: #F2F2F7;
    --card: #FCFCFE;
    --sf1: #EDEDF3;
    --sf2: #E6E6EE;
    --sf3: #DEDEE8;
    --on: #1B1B1F;
    --onv: #46464F;
    --out: #C7C5D0;
    --pri: #3F5AA6;
    --onpri: #fff;
    --pric: #DDE1FF;
    --onpric: #001551;
    --glow: rgba(63, 90, 166, .10);
    --g1: #CBD3F0;
    --g2: #9BAAE0;
    --g3: #6B80C6;
    --g4: #3F5AA6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .04);
    --safe-l: env(safe-area-inset-left, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
}

/* Dark is the shipped default; :root carries light so light stays the
   fallback when the attribute is missing. */
:root[data-theme="dark"] {
    --sf: #0E0F12;
    --card: #17181D;
    --sf1: #191A1F;
    --sf2: #212228;
    --sf3: #2A2B32;
    --on: #E4E2E6;
    --onv: #C6C5D0;
    --out: #33343C;
    --pri: #B4C4FF;
    --onpri: #062978;
    --pric: #26408E;
    --onpric: #DDE1FF;
    --glow: rgba(63, 90, 166, .22);
    --g1: #1E2A54;
    --g2: #2F4279;
    --g3: #5570B4;
    --g4: #B4C4FF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .3);
}

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

/* A class-level display rule outranks the UA's [hidden] rule, which silently
   un-hides anything the script hides — the sample banner, the tab strip. */
[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    /* Nothing may spill sideways on a phone. */
    overflow-x: hidden;
    background-color: var(--sf);
    color: var(--on);
    font-family: Roboto, system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    transition: background-color .2s ease, color .2s ease;
    background-image: radial-gradient(900px 520px at 78% -8%, var(--glow), transparent 70%);
    background-attachment: fixed;
}

a {
    color: var(--pri);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

::selection {
    background: var(--pric);
    color: var(--onpric);
}

img {
    max-width: 100%;
}

h1,
h2,
h3 {
    text-wrap: pretty;
}

.mono {
    font-family: 'Roboto Mono', ui-monospace, monospace;
}

.eyebrow {
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--onv);
}

/* ---------- background decoration ---------- */

#bg-canvas,
.shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

#bg-canvas {
    width: 100%;
    height: 100%;
}

.shapes {
    overflow: hidden;
}

.shape {
    position: absolute;
    will-change: transform;
}

.shape-1 {
    left: 6%;
    top: 16%;
    width: 120px;
    height: 120px;
    border: 1px solid var(--out);
    border-radius: 28px;
    transform: rotate(12deg);
    opacity: .55;
}

.shape-2 {
    right: 9%;
    top: 24%;
    width: 76px;
    height: 76px;
    border: 1px solid var(--pri);
    border-radius: 50%;
    opacity: .35;
}

.shape-3 {
    right: 16%;
    bottom: 14%;
    width: 96px;
    height: 96px;
    background: var(--pric);
    border-radius: 20px;
    transform: rotate(45deg);
    opacity: .32;
}

.shape-4 {
    left: 14%;
    bottom: 22%;
    width: 52px;
    height: 52px;
    border: 1px solid var(--pri);
    border-radius: 8px;
    transform: rotate(-18deg);
    opacity: .3;
}

/* ---------- shell ---------- */

.shell {
    position: relative;
    z-index: 1;
    display: flex;
    gap: clamp(24px, 4vw, 56px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(14px, 3vw, 28px);
    padding-left: max(clamp(14px, 3vw, 28px), var(--safe-l));
    padding-right: max(clamp(14px, 3vw, 28px), var(--safe-r));
}

.col-left {
    flex: none;
    display: flex;
    align-items: center;
}

.col-right {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 760px;
    padding-left: 8px;
}

.card-me {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    background: var(--sf2);
}

.card-me img {
    width: calc(100% - 28px);
    height: auto;
    margin: 14px 14px 0;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: 50% 30%;
    display: block;
    border-radius: 32px;
    box-shadow: 0 4px 14px rgba(20, 22, 40, .14);
}

.card-body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-name {
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.card-role {
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pri);
    margin-top: 6px;
}

.card-place {
    font-size: 13px;
    color: var(--onv);
    margin-top: 4px;
}

/* Availability pill — a live dot, so it reads as a current state rather than
   another label. */
.availability {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 4px 11px 4px 9px;
    border-radius: 100px;
    border: 1px solid color-mix(in srgb, var(--pri) 40%, transparent);
    background: color-mix(in srgb, var(--pri) 12%, transparent);
    color: var(--pri);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

@supports not (background: color-mix(in srgb, red, blue)) {
    .availability {
        border-color: var(--out);
        background: transparent;
    }
}

.availability::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
    animation: availability-pulse 2.4s ease-in-out infinite;
}

@keyframes availability-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.82); }
}

@media (prefers-reduced-motion: reduce) {
    .availability::before {
        animation: none;
    }
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
}

.socials a {
    padding: 9px 14px;
    border-radius: 100px;
    border: 1px solid var(--out);
    color: var(--onv);
}

.socials a.filled {
    background: var(--pric);
    color: var(--onpric);
    border-color: transparent;
    font-weight: 500;
}

.rule {
    height: 1px;
    background: var(--out);
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--onv);
}

.side-nav a:hover {
    text-decoration: none;
    background: var(--sf1);
}

.side-nav a.active {
    color: var(--on);
    font-weight: 500;
    background: var(--sf2);
}

.side-nav .dot {
    width: 5px;
    height: 5px;
    border-radius: 2px;
    background: var(--out);
    flex: none;
    transition: all .18s ease;
}

.side-nav a.active .dot {
    width: 8px;
    height: 8px;
    background: var(--pri);
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}

.btn-primary {
    flex: 1;
    min-height: 44px;
    background: var(--pri);
    color: var(--onpri);
    border: none;
}

.btn-primary:hover {
    opacity: .9;
    text-decoration: none;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 100px;
    border: 1px solid var(--out);
    background: transparent;
    color: var(--onv);
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.btn-icon:hover {
    background: var(--sf2);
}

/* ---------- mobile top bar ---------- */

.mobilebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--sf);
    border-bottom: 1px solid var(--out);
    padding-top: env(safe-area-inset-top, 0px);
    transform: translateY(-110%);
    transition: transform .22s ease;
}

@supports (backdrop-filter:blur(4px)) {
    .mobilebar {
        background: color-mix(in srgb, var(--sf) 86%, transparent);
        backdrop-filter: blur(12px);
    }
}

.mobilebar.show {
    transform: translateY(0);
}

.mobilebar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px max(14px, var(--safe-l)) 8px max(14px, var(--safe-r));
}

.mobilebar-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--on);
    white-space: nowrap;
    margin-right: auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobilebar-cv {
    min-height: 44px;
    padding: 0 16px;
    background: var(--pri);
    color: var(--onpri);
    flex: none;
}

.chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 14px 10px;
}

.chips::-webkit-scrollbar {
    display: none;
}

.chips a {
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 14px;
    white-space: nowrap;
    flex: none;
    border: 1px solid var(--out);
    color: var(--onv);
}

.chips a.active {
    border-color: transparent;
    background: var(--pric);
    color: var(--onpric);
}

/* ---------- sections ---------- */

section {
    padding: clamp(44px, 7vw, 72px) 0 0;
    scroll-margin-top: 120px;
}

#top {
    padding-top: clamp(48px, 10vh, 96px);
}

.kicker {
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pri);
    margin-bottom: 18px;
}

h1 {
    font-size: clamp(28px, 4.4vw, 46px);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -.02em;
    margin: 0 0 20px;
}

.lede {
    font-size: clamp(16px, 2.4vw, 18px);
    line-height: 1.6;
    color: var(--onv);
    margin: 0;
    max-width: 56ch;
    text-wrap: pretty;
}

.sec-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sec-head h2 {
    font-size: clamp(21px, 3vw, 28px);
    font-weight: 500;
    letter-spacing: -.025em;
    margin: 0;
}

.sec-head .line {
    height: 1px;
    background: var(--out);
    flex: 1;
    min-width: 30px;
}

.sec-head .note {
    font-size: 13px;
    color: var(--onv);
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

/* Grid items default to min-width:auto, which lets the wide contribution
   graph stretch the whole page instead of scrolling inside its panel. */
.grid > * {
    min-width: 0;
}

.grid-metrics {
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
}

.grid-skills {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.grid-projects {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 20px;
}

.grid-two {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(28px, 4vw, 44px);
}

.panel {
    background: var(--sf2);
    border-radius: 20px;
    padding: clamp(18px, 4vw, 24px);
}

.metric-num {
    font-size: clamp(28px, 7vw, 34px);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.metric-label {
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--onv);
    margin-top: 8px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 14px;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid var(--out);
    color: var(--onv);
}

.tag.core {
    font-weight: 500;
    background: var(--pric);
    color: var(--onpric);
    border-color: transparent;
}

.tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech span {
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 11.5px;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--sf3);
    color: var(--onv);
}

/* ---------- experience ---------- */

.job {
    padding: 26px 0;
    border-top: 1px solid var(--out);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: baseline;
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--onv);
    margin-bottom: 10px;
}

.job-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.job-title h3 {
    font-size: clamp(19px, 3vw, 21px);
    font-weight: 500;
    letter-spacing: -.01em;
    margin: 0;
}

.job p {
    font-size: 16px;
    color: var(--onv);
    margin: 12px 0 18px;
    max-width: 62ch;
    text-wrap: pretty;
}

.bullets {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bullets li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 6px;
    font-size: 15px;
    line-height: 1.5;
}

.bullets li::before {
    content: "—";
    color: var(--pri);
}

.more-row {
    display: flex;
    justify-content: center;
}

.more-row .more {
    margin: 22px 0 0;
}

.more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 18px;
    padding: 8px 14px 8px 12px;
    min-height: 36px;
    border-radius: 100px;
    border: 1px solid var(--out);
    background: transparent;
    color: var(--pri);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
}

.more::before {
    content: "+";
    font-size: 14px;
    line-height: 1;
}

.more[aria-expanded="true"]::before {
    content: "−";
}

.more:hover {
    background: var(--sf2);
}

.more:focus-visible {
    outline: 2px solid var(--pri);
    outline-offset: 2px;
}

/* ---------- contributions ---------- */

.contrib-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 18px;
}

.contrib-head .provider {
    font-size: 16px;
    font-weight: 500;
}

.badge,
.sample-note .badge {
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--sf3);
    color: var(--onv);
    flex: none;
}

.contrib-head .total {
    margin-left: auto;
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 12px;
    color: var(--onv);
}

.contrib-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    /* The default bar renders bright white over the dark panel. */
    scrollbar-width: thin;
    scrollbar-color: var(--out) transparent;
}

.contrib-scroll::-webkit-scrollbar {
    height: 8px;
}

.contrib-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.contrib-scroll::-webkit-scrollbar-thumb {
    background: var(--out);
    border-radius: 100px;
}

.contrib-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--onv);
}

.contrib-inner {
    /* 53 weeks * (cell + gap) — fixed so the grid scrolls rather than squashes. */
    --cell: 11px;
    --cgap: 3px;
    min-width: calc(53 * (var(--cell) + var(--cgap)));
}

.contrib-months {
    display: flex;
    gap: var(--cgap);
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .06em;
    color: var(--onv);
    margin-bottom: 6px;
}

/* One slot per week column; only month-start weeks carry a label, which is
   allowed to run over the empty slots after it. */
.contrib-months span {
    width: var(--cell);
    flex: none;
    white-space: nowrap;
}

.contrib-weeks {
    display: flex;
    gap: var(--cgap);
}

.contrib-week {
    display: flex;
    flex-direction: column;
    gap: var(--cgap);
}

.contrib-day {
    width: var(--cell);
    height: var(--cell);
    border-radius: 2px;
}

.contrib-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 10.5px;
    color: var(--onv);
}

.contrib-legend i {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    display: block;
}

.contrib-legend .streak {
    margin-left: auto;
}

/* ---------- projects ---------- */

.tabs {
    display: inline-flex;
    max-width: 100%;
    padding: 4px;
    border-radius: 100px;
    background: var(--sf2);
    margin-bottom: 12px;
}

.tabs button {
    padding: 11px 20px;
    min-height: 44px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    background: transparent;
    color: var(--onv);
    white-space: nowrap;
}

.tabs button[aria-selected="true"] {
    background: var(--sf);
    color: var(--on);
    box-shadow: var(--shadow);
}

.tab-blurb {
    font-size: 15px;
    color: var(--onv);
    margin: 0 0 24px;
    max-width: 62ch;
    text-wrap: pretty;
}

.sample-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--sf2);
    color: var(--onv);
    font-size: 14px;
    margin-bottom: 22px;
}

.project {
    border-radius: 20px;
    overflow: hidden;
    background: var(--sf2);
    display: flex;
    flex-direction: column;
}

.project .shot,
.project .shot-empty {
    width: 100%;
    height: 180px;
    display: block;
}

.project .shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* App icons are square and must not be cropped — centre them on a tinted
   panel instead, at a size that still reads at card width. */
.project .shot-contain {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--pric) 32%, transparent), transparent 72%),
        var(--sf1);
}

.project .shot-contain img {
    width: auto;
    height: 108px;
    max-width: 60%;
    object-fit: contain;
    border-radius: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

@supports not (background: color-mix(in srgb, red, blue)) {
    .project .shot-contain {
        background: var(--sf1);
    }
}

.shot-empty {
    position: relative;
    background:
        radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--pric) 35%, transparent), transparent 70%),
        var(--sf1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--onv);
}

@supports not (background: color-mix(in srgb, red, blue)) {
    .shot-empty {
        background: var(--sf1);
    }
}

.shot-empty svg {
    display: block;
    max-height: 100%;
}

.shot-empty-label {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--onv);
    opacity: .75;
}

/* Neutral by default — a status is usually just a fact. Live work opts into
   the accent so one pill per grid draws the eye, not five. */
.status {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px 4px 9px;
    border-radius: 100px;
    border: 1px solid var(--out);
    background: transparent;
    color: var(--onv);
    font-size: 12px;
    font-weight: 500;
}

.status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .55;
}

.status.active {
    border-color: transparent;
    background: var(--pric);
    color: var(--onpric);
}

.status.active::before {
    opacity: 1;
}

.project-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--onv);
}

.project h3 {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -.01em;
    margin: 0 0 4px;
}

.project .org {
    font-size: 14px;
    color: var(--onv);
}

.project .summary {
    font-size: 15px;
    color: var(--onv);
    margin: 0;
    line-height: 1.5;
    text-wrap: pretty;
}

.project .role {
    font-size: 14px;
    color: var(--on);
}

.impact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.impact li {
    font-size: 14px;
    color: var(--onv);
    display: grid;
    grid-template-columns: 16px 1fr;
}

.impact li::before {
    content: "·";
    color: var(--pri);
}

.project .tech {
    margin-top: auto;
    padding-top: 6px;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.links a {
    font-size: 14px;
    font-weight: 500;
    padding: 11px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
    border: 1px solid var(--out);
    color: var(--pri);
}

.links a:hover {
    background: var(--sf1);
    text-decoration: none;
}

/* ---------- education / community ---------- */

.entry {
    padding: 16px 0;
    border-top: 1px solid var(--out);
}

.entry .title {
    font-size: 16px;
    font-weight: 500;
}

.entry .org {
    font-size: 14px;
    color: var(--onv);
    margin-top: 4px;
    text-wrap: pretty;
}

.entry .date {
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 11.5px;
    letter-spacing: .06em;
    color: var(--onv);
    margin-top: 6px;
}

/* ---------- cta / footer ---------- */

.cta {
    border-radius: 24px;
    padding: clamp(24px, 4vw, 40px);
    background: var(--sf2);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.cta h2 {
    font-size: clamp(22px, 4vw, 26px);
    font-weight: 400;
    letter-spacing: -.01em;
    margin: 0 0 8px;
}

.cta p {
    font-size: 16px;
    color: var(--onv);
    margin: 0;
    max-width: 44ch;
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cta-actions a {
    padding: 13px 24px;
    min-height: 48px;
    font-size: 15px;
}

.cta-actions .ghost {
    border: 1px solid var(--out);
    color: var(--on);
    background: transparent;
}

footer {
    padding: 40px 0 max(56px, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--onv);
}

footer .links-inline {
    display: flex;
    gap: 20px;
}

footer a {
    color: var(--onv);
}

/* ---------- responsive ---------- */

@media (min-width:961px) {
    .col-left {
        position: sticky;
        top: 0;
        width: min(290px, 26vw);
        height: 100vh;
        overflow-y: auto;
        align-items: center;
        padding: 20px 0;
        scrollbar-width: none;
    }

    /* Compact rail on desktop — the content column is the point of the page. */
    .card-me {
        max-width: 290px;
        border-radius: 26px;
    }

    .card-me img {
        width: calc(100% - 20px);
        margin: 10px 10px 0;
        border-radius: 22px;
    }

    .card-body {
        padding: 16px 16px 18px;
        gap: 13px;
    }

    .card-name {
        font-size: 18px;
    }

    .card-role {
        font-size: 10px;
        margin-top: 5px;
    }

    .card-place {
        font-size: 12.5px;
    }

    .socials {
        font-size: 12.5px;
    }

    .socials a {
        padding: 6px 11px;
    }

    .side-nav a {
        padding: 6px 9px;
        font-size: 13.5px;
    }

    .btn-primary {
        min-height: 38px;
        font-size: 13.5px;
    }

    .card-actions .btn-icon {
        width: 38px;
        height: 38px;
    }

    .col-left::-webkit-scrollbar {
        display: none;
    }

    .mobilebar {
        display: none;
    }
}

@media (max-width:960px) {
    .shell {
        flex-direction: column;
        gap: 0;
    }

    .col-left {
        width: auto;
        padding: 24px 0 8px;
        justify-content: center;
    }

    .col-right {
        padding-left: 0;
    }

    /* Side nav + CV row live in the sticky mobile bar instead. */
    .side-nav,
    .card-actions {
        display: none;
    }

    .card-me .rule {
        display: none;
    }

    #top {
        padding-top: 24px;
    }
}

@media (max-width:600px) {
    .panel {
        border-radius: 16px;
    }

    .tabs {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .contrib-inner {
        --cell: 10px;
        --cgap: 2px;
    }

    .contrib-legend .streak {
        margin-left: 0;
        width: 100%;
    }

    .cta-actions a {
        flex: 1 1 auto;
        justify-content: center;
    }

    footer {
        justify-content: flex-start;
    }
}

/* Coarse pointers get no parallax and no hover-only chrome. */
@media (hover:none) {
    .shapes {
        display: none;
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

@media print {
    #bg-canvas,
    .shapes,
    .mobilebar,
    .tabs,
    .card-actions,
    .side-nav {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}
