  /* ============ UNIVERSALS ============ */
  :root {
    --paper: #F4F5EF;
    --paper-dim: #ECEDE5;
    --ink: #1B221F;
    --ink-soft: #4B534E;
    --muted: #7A8279;
    --line: #DBDCD1;
    --accent: #4650C4;
    /* indigo — primary */
    --accent-ink: #2E3690;
    /* darker indigo for text on light bg */
    --warm: #F2653D;
    /* coral — highlight / CTA */
    --warm-ink: #C94E2A;
    --white: #FFFFFF;

    --font-display: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius: 14px;
    --radius-sm: 8px;
    --max: 1180px;
  }



  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

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

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

  img {
    max-width: 100%;
    display: block;
  }

  .wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
  }

  h1,
  h2,
  h3 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 0;
    line-height: 1.1;
  }

  .tag {
    font-family: var(--font-mono);
    font-size: 17px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px 0;
  }


  .tag::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--warm);
  }

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

  /* ============ NAV ============ */
  header.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 245, 239, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }

  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    max-width: var(--max);
    margin: 0 auto;
  }

  .nav-logo {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
  }

  .nav-logo span {
    color: var(--warm);
  }

  nav.nav-links {
    display: flex;
    gap: 28px;
    font-size: 14.5px;
    font-weight: 600;
  }

  nav.nav-links a {
    color: var(--ink-soft);
    transition: color .15s ease;
    position: relative;
    padding: 4px 0;
  }

  nav.nav-links a:hover {
    color: var(--ink);
  }

  .nav-cta {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 500;
    background: var(--ink);
    color: var(--paper) !important;
    padding: 9px 16px;
    border-radius: 100px;
    white-space: nowrap;
  }

  .nav-cta:hover {
    background: var(--accent);
  }

  .nav-toggle {
    display: none;
  }

  /* ============ HERO ============ */
  .hero {
    padding: 84px 0 90px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .hero h1 .accent {
    color: var(--accent);
  }

  .hero-role {
    font-size: clamp(18px, 2.4vw, 22px);
    color: var(--ink-soft);
    font-weight: 600;
    margin-top: 14px;
    max-width: 410px;
  }

  .hero-copy {
    margin-top: 20px;
    max-width: 46ch;
    color: var(--ink-soft);
    font-size: 17px;
  }

  .hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
  }

  .btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    border: 1px solid transparent;
  }

  .btn-primary {
    background: var(--warm);
    color: var(--white);
  }

  .btn-primary:hover {
    background: var(--warm-ink);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 101, 61, 0.28);
  }

  .btn-ghost {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
  }

  .btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
  }

  .hero-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
  }

  .pill {
    font-family: var(--font-mono);
    font-size: 12.5px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--ink-soft);
    background: var(--white);
  }

  /* --- hero photo, browser-frame treatment --- */
  .photo-frame {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 50px -20px rgba(27, 34, 31, 0.22);
    overflow: hidden;
    position: relative;
  }

  .photo-frame::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: var(--warm);
    opacity: 0.14;
    border-radius: 50%;
    z-index: 0;
  }

  .photo-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 1;
  }

  .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
  }

  .dot.r {
    background: #E9695B;
  }

  .dot.y {
    background: #E8B94A;
  }

  .dot.g {
    background: #61B970;
  }

  .photo-url {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    background: var(--paper-dim);
    padding: 3px 10px;
    border-radius: 100px;
  }


  /* ============ SECTION SHELL ============ */
  section {
    padding: 88px 0;
  }

  .section-head {
    max-width: 640px;
    margin-bottom: 48px;
  }

  .section-head-a {
    max-width: 640px;
  }


  .section-head-a h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .section-head h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .section-head p {
    color: var(--ink-soft);
    margin-top: 12px;
    font-size: 16.5px;
  }

  .line-sep {
    border: none;
    border-top: 1px solid var(--line);
    margin: 0;
  }

  /* ============ ABOUT ============ */
  .about {
    background: var(--paper-dim);
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
  }

  .about-copy p {
    color: var(--ink-soft);
    font-size: 17px;

  }

  .about-copy p:last-child {
    margin-bottom: 0;
  }

  .facts {
    display: grid;
    gap: 22px;
    align-content: start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
  }


  .fact dt {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
  }

  .fact dd {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
  }

  /* ============ SKILLS ============ */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .skill-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    /* transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; */
  }

  /* .skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -24px rgba(27, 34, 31, 0.3);
  } */

  .skill-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .skill-card .skill-desc {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
  }

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

  .skill-tags .pill {
    background: var(--paper);
  }

  /* ============ PROJECTS ============ */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .project-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
  }

  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 46px -22px rgba(27, 34, 31, 0.32);
  }

  .browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-dim);
  }

  .browser-url {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink-soft);
    background: var(--white);
    border: 1px solid var(--line);
    padding: 4px 12px;
    border-radius: 100px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-thumb {
    aspect-ratio: 16/9;
    /*background: linear-gradient(135deg, var(--thumb-a, #4650C4), var(--thumb-b, #7C86E8));*/
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: .5px solid #ebeaea;
  }

  .project-thumb span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
  }

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

  .project-body h3 {
    font-size: 19px;
    margin-bottom: 8px;
  }

  .project-body p {
    color: var(--ink-soft);
    font-size: 15px;
    margin: 0 0 16px 0;
    flex: 1;
  }

  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
  }

  .project-tags .pill {
    font-size: 11.5px;
    padding: 5px 10px;
    background: var(--paper);
  }

  .project-link {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--accent-ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .project-link svg {
    transition: transform .15s ease;
  }

  .project-card:hover .project-link svg {
    transform: translate(3px, -3px);
  }

  /* ============ EXPERIENCE ============ */

  .experience {
    background: var(--paper-dim);
  }

  .exp-list {
    display: flex;
    flex-direction: column;
  }

  .exp-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
  }

  .exp-item:first-child {
    padding-top: 0;
  }

  .exp-item:last-child {
    border-bottom: none;
  }

  .exp-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
  }

  .exp-role {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .exp-org {
    color: var(--accent-ink);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
  }

  .exp-desc {
    color: var(--ink-soft);
    font-size: 15.5px;
    max-width: 60ch;
  }

  .spacer {
    height: 4rem;
  }

  /* ============ CONTACT / FOOTER ============ */
  .contact {
    text-align: center;
  }

  .contact h2 {
    font-size: clamp(30px, 5vw, 46px);
    margin-top: -20px;
  }

  .contact p {
    color: var(--ink-soft);
    max-width: 55ch;
    margin: 16px auto 34px;
    font-size: 17px;
  }

  .contact-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .contact-actions button {
    cursor: pointer;
  }

  footer {
    text-align: center;
    border-top: 1px solid var(--line);
    padding: 20px 0;
    font-size: 13.5px;
    color: var(--muted);
    font-family: var(--font-mono);
  }



  /* ============ REDUCED MOTION ============ */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    * {
      transition: none !important;
    }
  }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 860px) {
    .hero-grid {
      grid-template-columns: 1fr;
      gap: 44px;
    }

    h1 {
      br {
        display: none;
      }
    }

    .hero {
      padding: 50px 0 60px;
    }

    .hero-order-photo {
      max-width: 400px;
      margin: 0 auto;
    }

    .about-grid {
      grid-template-columns: 1fr;
      gap: 36px;
    }

    .skills-grid {
      grid-template-columns: 1fr 1fr;
    }

    .projects-grid {
      grid-template-columns: 1fr;
    }

    section {
      padding: 64px 0;
    }

    .exp-item {
      grid-template-columns: 1fr;
      gap: 6px;
    }

    .hero-copy {
      max-width: 100%;
    }

    .hero-role {
      max-width: 100%;
    }

    .hero-actions {
      justify-content: center;
    }
  }

  @media (max-width: 720px) {
    nav.nav-links {
      display: none;
    }

    .nav-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      cursor: pointer;
    }

    .hero-copy {
      max-width: 100%;
    }

    .hero-role {
      max-width: 100%;
    }

    .nav-inner {
      padding: 16px 20px;
    }

    .wrap {
      padding: 0 20px;
    }

    .skills-grid {
      grid-template-columns: 1fr;
    }

    .hero-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .btn {
      justify-content: center;
    }
  }

  @media (max-width: 480px) {
    body {
      font-size: 16px;
    }

    .hero h1 {
      font-size: 38px;
    }

    .hero-copy {
      max-width: 100%;
    }

    .hero-role {
      max-width: 100%;
    }
  }