    :root {
      --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --max-width: 1040px;
      --radius: 8px;
      --ease-out: cubic-bezier(.2, .8, .2, 1);
    }

    html[data-theme="light"] {
      --bg: #f7f5f2;
      --bg-elevated: #ffffff;
      --bg-muted: #efeeeb;
      --text: #111111;
      --text-muted: #68686d;
      --line: rgba(17, 17, 17, .11);
      --line-strong: rgba(17, 17, 17, .2);
      --accent: #e53935;
      --accent-strong: #b71c1c;
      --accent-soft: rgba(229, 57, 53, .1);
    }

    html[data-theme="dark"] {
      --bg: #101010;
      --bg-elevated: #1b1b1d;
      --bg-muted: #242426;
      --text: #f5f5f7;
      --text-muted: #b8b8bf;
      --line: rgba(255, 255, 255, .12);
      --line-strong: rgba(255, 255, 255, .24);
      --accent: #ff453a;
      --accent-strong: #ff6b61;
      --accent-soft: rgba(255, 69, 58, .13);
    }

    * {
      box-sizing: border-box;
    }

    html {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      scroll-behavior: smooth;
      background: var(--bg);
      color: var(--text);
    }

    body {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      margin: 0;
      overflow-x: hidden;
      font-family: var(--font-sans);
      line-height: 1.55;
      background:
        radial-gradient(circle at 8% 4%, color-mix(in srgb, var(--accent), transparent 80%), transparent 22rem),
        radial-gradient(circle at 92% 7%, color-mix(in srgb, var(--accent-strong), transparent 84%), transparent 24rem),
        var(--bg);
      color: var(--text);
    }

    @supports (overflow: clip) {
      html,
      body {
        overflow-x: clip;
      }
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .skip-link {
      position: fixed;
      left: 1rem;
      top: 1rem;
      z-index: 200;
      transform: translateY(-150%);
      border-radius: var(--radius);
      background: var(--text);
      color: var(--bg);
      padding: .75rem 1rem;
      transition: transform .2s ease;
    }

    .skip-link:focus {
      transform: translateY(0);
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      border-bottom: 1px solid var(--line);
      background: color-mix(in srgb, var(--bg-elevated), transparent 16%);
      backdrop-filter: blur(22px) saturate(1.35);
    }

    .nav-shell {
      width: min(100% - 2rem, var(--max-width));
      min-height: 74px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      font-size: 1rem;
      font-weight: 850;
      white-space: nowrap;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: .35rem;
    }

    .nav-link {
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      color: var(--text-muted);
      font-size: .9rem;
      font-weight: 780;
      padding: .52rem .9rem;
      transition: color .2s ease, background .2s ease, transform .2s ease;
    }

    .nav-link:hover,
    .nav-link:focus-visible {
      background: var(--bg-muted);
      color: var(--text);
      outline: none;
      transform: translateY(-1px);
    }

    main {
      width: min(100% - 2rem, var(--max-width));
      margin: 0 auto;
      padding: clamp(3.5rem, 8vw, 6.5rem) 0 5rem;
    }

    .resume-hero {
      display: grid;
      grid-template-columns: minmax(0, .75fr) minmax(240px, .25fr);
      gap: clamp(2rem, 6vw, 4.5rem);
      align-items: end;
      padding-bottom: clamp(3.5rem, 7vw, 5rem);
    }

    .eyebrow,
    .section-label {
      margin: 0;
      color: var(--accent);
      font-size: .82rem;
      font-weight: 850;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    h1,
    h2,
    h3,
    p {
      margin-top: 0;
    }

    h1 {
      max-width: 10ch;
      margin: .65rem 0 0;
      font-size: clamp(4rem, 12vw, 7.8rem);
      line-height: .88;
      letter-spacing: 0;
    }

    .hero-meta {
      display: grid;
      gap: .7rem;
      color: var(--text-muted);
      font-size: .96rem;
    }

    .hero-meta a {
      width: fit-content;
      border-bottom: 1px solid var(--line-strong);
    }

    .hero-meta a:hover,
    .hero-meta a:focus-visible {
      border-color: var(--accent);
      color: var(--text);
      outline: none;
    }

    .resume-layout {
      display: grid;
      grid-template-columns: minmax(0, .68fr) minmax(250px, .32fr);
      gap: clamp(2rem, 6vw, 4.5rem);
      align-items: start;
    }

    .resume-main,
    .resume-side {
      display: grid;
      gap: 3rem;
    }

    .resume-section {
      scroll-margin-top: 100px;
    }

    .resume-section h2 {
      margin: .55rem 0 1.2rem;
      font-size: clamp(2rem, 5vw, 3.5rem);
      line-height: .95;
      letter-spacing: 0;
    }

    .summary {
      max-width: 70ch;
      margin-bottom: 0;
      color: var(--text-muted);
      font-size: clamp(1.08rem, 2vw, 1.25rem);
    }

    .role {
      border-top: 1px solid var(--line);
      padding: 1.5rem 0 0;
    }

    .role + .role {
      margin-top: 3rem;
    }

    .role-header {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 1rem;
      align-items: baseline;
    }

    .role h3 {
      margin-bottom: .25rem;
      font-size: clamp(1.25rem, 3vw, 1.65rem);
      line-height: 1.1;
    }

    .role-company {
      margin-bottom: 0;
      color: var(--text-muted);
      font-weight: 700;
    }

    .role-time {
      margin-bottom: 0;
      color: var(--accent);
      font-size: .88rem;
      font-weight: 850;
      white-space: nowrap;
    }

    .role ul {
      display: grid;
      gap: .65rem;
      margin: 1.15rem 0 0;
      padding-left: 1.2rem;
      color: var(--text-muted);
    }

    .side-panel {
      border-top: 3px solid var(--accent);
      background: color-mix(in srgb, var(--bg-elevated), transparent 4%);
      padding: 1.25rem;
    }

    .side-panel h2 {
      margin: .45rem 0 1rem;
      font-size: 1.45rem;
      line-height: 1.1;
    }

    .education-item + .education-item {
      margin-top: 1.3rem;
      border-top: 1px solid var(--line);
      padding-top: 1.3rem;
    }

    .education-item strong {
      display: block;
      line-height: 1.25;
    }

    .education-item span {
      display: block;
      margin-top: .3rem;
      color: var(--text-muted);
      font-size: .92rem;
    }

    .skill-list {
      display: flex;
      flex-wrap: wrap;
      gap: .55rem;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .skill-list li {
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--bg-muted);
      color: var(--text-muted);
      font-size: .84rem;
      font-weight: 750;
      padding: .42rem .7rem;
    }

    .button {
      width: fit-content;
      min-height: 46px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid transparent;
      border-radius: var(--radius);
      background: var(--accent);
      color: #ffffff;
      font-weight: 800;
      padding: .75rem 1rem;
      box-shadow: 0 16px 36px color-mix(in srgb, var(--accent), transparent 74%);
      transition: transform .2s ease, background .2s ease;
    }

    .button:hover,
    .button:focus-visible {
      background: var(--accent-strong);
      outline: none;
      transform: translateY(-2px);
    }

    .site-footer {
      width: min(100% - 2rem, var(--max-width));
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      border-top: 1px solid var(--line);
      padding: 1.5rem 0 2rem;
      color: var(--text-muted);
      font-size: .9rem;
    }

    @media (prefers-reduced-motion: no-preference) {
      .resume-hero > *,
      .resume-main > *,
      .resume-side > * {
        opacity: 0;
        transform: translateY(24px);
        animation: resume-rise .7s var(--ease-out) both;
      }

      .resume-hero > *:nth-child(2) {
        animation-delay: .1s;
      }

      .resume-main > *:nth-child(1) {
        animation-delay: .16s;
      }

      .resume-main > *:nth-child(2),
      .resume-side > *:nth-child(1) {
        animation-delay: .24s;
      }

      .resume-side > *:nth-child(2) {
        animation-delay: .32s;
      }
    }

    @keyframes resume-rise {
      from {
        opacity: 0;
        transform: translateY(24px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 760px) {
      .resume-hero,
      .resume-layout {
        grid-template-columns: 1fr;
      }

      .resume-hero {
        align-items: start;
      }

      .role-header {
        grid-template-columns: 1fr;
        gap: .4rem;
      }
    }

    @media (max-width: 620px) {
      .nav-shell,
      main,
      .site-footer {
        width: min(100% - 1.25rem, var(--max-width));
      }

      .nav-shell {
        min-height: auto;
        flex-wrap: wrap;
        padding: .75rem 0;
      }

      .nav-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
      }

      .nav-link {
        padding: .5rem .65rem;
      }

      .site-footer {
        flex-direction: column;
      }
    }

    @media print {
      :root {
        --bg: #ffffff;
        --bg-elevated: #ffffff;
        --bg-muted: #f3f3f3;
        --text: #111111;
        --text-muted: #474747;
        --line: rgba(17, 17, 17, .18);
        --line-strong: rgba(17, 17, 17, .35);
        --accent: #b71c1c;
        --accent-strong: #8d1515;
      }

      body {
        background: #ffffff;
      }

      .site-header,
      .site-footer,
      .button {
        display: none;
      }

      main {
        width: 100%;
        padding: 0;
      }

      .resume-hero {
        padding-bottom: 2rem;
      }

      .resume-main,
      .resume-side {
        gap: 1.8rem;
      }

      .resume-section,
      .role,
      .side-panel {
        break-inside: avoid;
      }
    }
