  :root {
    --navy: #010080;
    --mid-blue: #4e56d3;
    --light-gray: #eeeeee;
    --border-gray: #d9d9d9;
    --black: #000000;
    --white: #ffffff;
    --text-muted: #555566;
    --font-heading: 'Garet Heavy', sans-serif;
    --font-body: 'Roboto Medium', sans-serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

@font-face {
  font-family: 'Garet Heavy';
  src: url('garet-heavy.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Medium';
  src: url('roboto-medium.ttf') format('truetype');
  font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #000000;
}

.header-name,.role-title,.skill-name,.project-name,.footer-name,.edu-degree,.edu-dot {
  font-family: var(--font-heading);
}

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
  }

  /* ─── Background shapes ─── */
  .bg-shapes {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .bg-shapes > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
  }

  /* ─── Header ─── */
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gray);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
  }

  .header-name {
    font-size: 20px;
    color: var(--navy);
    letter-spacing: -0.3px;
    text-decoration: none;
  }

  nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  nav a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  nav a:hover { color: var(--mid-blue); }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .header-services {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border-gray);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }

  .header-services:hover {
    border-color: var(--mid-blue);
    color: var(--mid-blue);
    background: #f8f8ff;
  }

  .header-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border-gray);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }
  .header-email:hover {
    border-color: var(--mid-blue);
    color: var(--mid-blue);
    background: #f8f8ff;
  }

  .header-linkedin {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: var(--navy);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
  }
  .header-linkedin:hover { background: var(--mid-blue); }
  .header-linkedin img { width: 22px; height: 18px; }

  /* ─── Main layout ─── */
  main {
    position: relative;
    z-index: 1;
    padding-top: 64px;
  }

  section {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 48px;
  }

  /* ─── Section labels ─── */
  .section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mid-blue);
    margin-bottom: 10px;
  }

  .section-title {
    font-size: 36px;
    color: var(--navy);
    margin-bottom: 36px;
    line-height: 1.1;
  }

  .service-box {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    padding: 22px 24px;
  }

  .service-box p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
  }

  /* ─── HERO / About ─── */
  #about {
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 48px;
    align-items: start;
  }

  .about-tagline {
    font-size: 52px;
    line-height: 1.05;
    color: var(--navy);
    margin-bottom: 24px;
  }

  .about-tagline em {
    font-style: italic;
    color: var(--mid-blue);
  }

  .about-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 540px;
  }

  .about-meta {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
  }

  .meta-pill {
    background: var(--navy);
    color: white;
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
  }

  .meta-pill.outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
  }

  a.meta-pill {
    text-decoration: none;
    cursor: pointer;
  }
  a.meta-pill:hover {
    background: rgba(1, 0, 128, 0.06);
  }

  .photo-slot {
    width: 200px;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
  }
  .photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* ─── Divider ─── */
  .section-divider {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 48px;
  }
  .section-divider hr {
    border: none;
    border-top: 1px solid var(--border-gray);
  }

  /* ─── Experience ─── */
  .role-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .role-card-hidden {
    display: none;
  }

  .role-card {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s;
  }

  .role-card:hover {
    border-color: var(--mid-blue);
    box-shadow: 0 4px 14px rgba(1, 0, 128, 0.09);
    transform: translateY(-1px);
  }

  .role-card:focus {
    outline: none;
  }

  .role-card:focus-visible {
    outline: 2px solid var(--mid-blue);
    outline-offset: 2px;
  }

  .role-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .role-summary-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .role-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
  }

  .role-dates {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 100px;
    padding: 3px 10px;
  }

  .role-company {
    font-size: 13px;
    font-weight: 500;
    color: var(--mid-blue);
    margin-top: 2px;
  }

  .role-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--mid-blue);
    stroke-width: 2;
    transition: transform 0.2s;
  }

  .role-card.is-open {
    background: #f8f8ff;
  }

  .role-card.is-open .role-chevron {
    transform: rotate(180deg);
  }

  .role-desc {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    user-select: text;
  }

  .role-list-footer {
    margin-top: 18px;
    display: flex;
    justify-content: center;
  }

  .show-more-roles-btn {
    border: 1px solid var(--border-gray);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
  }

  .show-more-roles-btn:hover {
    border-color: var(--mid-blue);
    color: var(--mid-blue);
  }

  /* ─── Skills / Specialties ─── */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }

  .skill-card {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 24px 26px;
    transition: border-color 0.2s, transform 0.2s;
  }
  .skill-card:hover { border-color: var(--mid-blue); transform: translateY(-2px); }

  .skill-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
  }
  .skill-icon svg { width: 20px; height: 20px; fill: white; }

  .skill-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 6px;
  }
  .skill-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }

  .tag {
    font-size: 11px;
    font-weight: 500;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 100px;
    padding: 3px 10px;
    color: var(--text-muted);
  }

  /* ─── Education ─── */
  .edu-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .edu-card {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    gap: 24px;
    align-items: center;
    transition: border-color 0.2s;
  }
  .edu-card:hover { border-color: var(--mid-blue); }

  .edu-dot {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
  }

  .edu-degree {
    font-weight: 600;
    font-size: 16px;
    color: var(--navy);
    margin-bottom: 2px;
  }

  .edu-school {
    font-size: 14px;
    color: var(--mid-blue);
    font-weight: 500;
    margin-bottom: 2px;
  }

  .edu-year {
    font-size: 13px;
    color: var(--text-muted);
  }

  /* ─── Projects ─── */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }

  .project-card {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 26px 28px;
    transition: border-color 0.2s, transform 0.2s;
  }
  .project-card:hover { border-color: var(--mid-blue); transform: translateY(-2px); }

  .project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .project-name {
    font-size: 18px;
    color: var(--navy);
  }

  .project-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
  }
  .status-live { background: #d4f5e2; color: #1a7a44; }
  .status-wip  { background: #fff3cc; color: #8a6200; }
  .status-concept { background: #e8e8ff; color: #3333aa; }

  .project-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 14px;
  }

  .page-link-section {
    text-align: center;
  }

  .page-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    text-decoration: none;
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
  }

  .page-link-button:hover {
    background: var(--mid-blue);
    border-color: var(--mid-blue);
    transform: translateY(-1px);
  }

  .page-link-email {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 15px;
  }
  .page-link-email a {
    color: var(--mid-blue);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(78, 86, 211, 0.35);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
  }
  .page-link-email a:hover {
    color: var(--navy);
    border-bottom-color: var(--navy);
  }

  /* ─── Footer ─── */
  footer {
    position: relative;
    z-index: 1;
    background: var(--navy);
    color: white;
    padding: 48px;
    text-align: center;
  }

  .footer-name {
    font-size: 28px;
    margin-bottom: 8px;
    color: #d9d9d9;
  }

  .footer-sub {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 28px;
    color: #d9d9d9;
  }

  .footer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
  }

  .footer-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #010080;
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
    margin-bottom: 0;
  }
  .footer-linkedin:hover { background: rgba(255,255,255,0.25); }
  .footer-linkedin img { width: 22px; height: 18px; }

  .footer-email {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 500;
  }
  .footer-email a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
    transition: border-color 0.2s, opacity 0.2s;
  }
  .footer-email a:hover {
    border-bottom-color: #ffffff;
    opacity: 1;
  }

  .footer-copy {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 0;
    color: #d9d9d9;
  }

  /* ─── Fade-in on scroll ─── */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .role-card.reveal.visible:hover {
    transform: translateY(-1px);
  }

  /* ─── Responsive ─── */
  @media (max-width: 700px) {
    header { padding: 0 20px; }
    nav { display: none; }
    section { padding: 60px 20px; }
    .about-grid { grid-template-columns: 1fr; }
    .photo-slot { width: 140px; height: 170px; margin: 0 auto; }
    .about-tagline { font-size: 36px; }
    .role-summary { flex-direction: column; align-items: flex-start; }
    .role-summary-meta { width: 100%; justify-content: space-between; }
    .section-divider { padding: 0 20px; }
    footer { padding: 40px 20px; }
  }