:root {
    --ink: #172129;
    --muted: #5e6d73;
    --paper: #f4f6f3;
    --surface: #ffffff;
    --line: #d9e1dc;
    --accent: #dc5b3d;
    --accent-dark: #9e3522;
    --teal: #176b68;
    --soft-teal: #e3f0ed;
    --shadow: 0 18px 50px rgba(23, 33, 41, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}
a { color: inherit; }
.page { max-width: 1240px; margin: 0 auto; padding: 36px 28px 54px; }
.hero {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 42px;
    padding: 48px clamp(28px, 6vw, 82px);
    color: #fff;
    background: var(--teal);
    border-radius: 4px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    position: absolute;
    right: -85px;
    bottom: -130px;
}
.eyebrow { margin: 0 0 18px; color: #a9d5cd; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; line-height: 1.1; }
h1 { max-width: 620px; margin: 0; font-size: clamp(2.6rem, 6vw, 5.3rem); letter-spacing: -.04em; }
.hero-role { margin: 20px 0 26px; color: #ffd166; font-size: 1.2rem; font-weight: 600; }
.hero-intro { max-width: 650px; margin: 0; color: #e7f1ee; font-size: 1.02rem; }
.hero-links { align-self: end; display: grid; gap: 13px; position: relative; z-index: 1; }
.hero-links a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 9px; }
.hero-links a:hover { color: #f5c9bd; border-color: #f5c9bd; }
.hero-links strong { display: block; color: #a9d5cd; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.download { display: inline-flex; width: fit-content; margin-top: 28px; padding: 11px 16px; color: #fff !important; background: #2A9D8F; border: 0 !important; font-weight: 700; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 42px; margin-top: 42px; }
.section { margin-bottom: 48px; }
.section-heading { display: flex; align-items: baseline; gap: 14px; margin: 0 0 23px; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.section-heading span { color: var(--accent); font: 700 .78rem 'DM Sans', sans-serif; letter-spacing: .1em; }
h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.025em; }
.summary { max-width: 800px; font-size: 1.08rem; color: var(--muted); }
.timeline { border-left: 2px solid var(--line); padding-left: 27px; }
.experience { position: relative; margin-bottom: 38px; }
.experience::before { content: ''; width: 10px; height: 10px; background: var(--accent); border: 3px solid var(--paper); border-radius: 50%; position: absolute; left: -34px; top: 5px; }
.experience:last-child { margin-bottom: 0; }
.experience-top { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
h3 { margin: 0; font-size: 1.2rem; }
.period { color: var(--accent-dark); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.company { margin: 4px 0 11px; color: var(--teal); font-weight: 700; }
.experience p { margin: 0 0 12px; color: var(--muted); }
.experience ul { margin: 0 0 15px; padding-left: 20px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; list-style: none; }
.tag { padding: 4px 9px; color: var(--teal); background: var(--soft-teal); border-radius: 2px; font-size: .75rem; font-weight: 700; }
.side { position: sticky; top: 24px; align-self: start; }
.side-block { padding: 23px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); }
.side h2 { font-size: 1.15rem; margin-bottom: 17px; }
.skill-group { margin-bottom: 21px; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group h3 { margin-bottom: 8px; color: var(--teal); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.skill-list { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.skill-list li { padding: 6px 0; border-bottom: 1px solid #edf0ed; }
.facts { display: grid; gap: 14px; margin: 0; }
.facts dt { color: var(--accent-dark); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.facts dd { margin: 0; color: var(--muted); }
.repo-list { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.repo-list li { min-width: 0; overflow-wrap: anywhere; }
.repo-list a { display: block; max-width: 100%; color: var(--teal); font-size: .87rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; word-break: break-word; }
.repo-list a:hover { color: var(--accent-dark); text-decoration: underline; }
.footer { padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer a { color: var(--teal); font-weight: 700; }
@media (max-width: 800px) {
    .page { padding: 16px 14px 35px; }
    .hero { grid-template-columns: 1fr; gap: 30px; padding: 35px 25px; }
    .layout { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
    .side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .side-block { margin: 0; }
}
@media (max-width: 520px) {
    .side { display: block; }
    .side-block { margin-bottom: 14px; }
    .experience-top { display: block; }
    .period { display: block; margin-top: 5px; }
    .timeline { padding-left: 20px; }
    .experience::before { left: -27px; }
}
