:root {
    --deep-purple: #3E1D3F;
    --bruised-plum: #3F1D1E;
    --olive-drab: #3F3E1D;
    --mallard-male: #1E3F1D;
    --cobalt-sea: #1D3F3E;
    --velvet-marine: #1D1E3F;

    --bg: #F3F2EF;
    --surface: #FBFAF7;
    --text: #252525;
    --muted: #66625C;
    --border: rgba(37, 37, 37, 0.12);

    --tint-purple: #E6D9E6;
    --tint-cobalt: #D9E7E6;
    --tint-mallard: #DCE8DA;
    --tint-olive: #E7E7D8;

    --max-width: 1120px;
    --radius: 22px;
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
  }

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

  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    background: rgba(243, 242, 239, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
  }

  .logo {
    display: inline-block;
    padding: 0.45rem 0.7rem 0;
    background: var(--deep-purple);
    box-shadow: 0 12px 24px rgba(62, 29, 63, 0.18);
    color: white;
    font-family: "Josefin Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }

  .nav {
    display: flex;
    gap: 1.1rem;
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.1;
  }

  .nav a {
    transition: color 180ms ease;
  }

  .nav a:hover,
  .nav a.active {
    color: var(--cobalt-sea);
  }

  .section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  }

  .hero {
    min-height: 78vh;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
  }

  .eyebrow {
    margin: 0 0 1rem;
    color: var(--cobalt-sea);
    opacity: 1;
    font-family: "Josefin Sans", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .separator-dot {
    display: inline-block;
    margin: 0 0.45rem;
    font-size: 1em;
    font-weight: 700;
    line-height: 0;
    vertical-align: middle;
}

  h1,
  h2,
  h3 {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    line-height: 1.08;
  }

  h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(2.6rem, 6vw, 5rem);
    letter-spacing: -0.04em;
  }

  h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    letter-spacing: -0.035em;
  }

  h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    letter-spacing: -0.015em;
  }

  .hero-text {
    max-width: 610px;
    margin: 1.5rem 0 0;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    color: var(--muted);
    transition: color 250ms ease;
  }

  .hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius) * 1.1);
    display: block;
}

  .hero-content:hover .hero-text {
    color: var(--text);
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }

  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  }

  .button:hover {
    transform: none;
  }

  .button.primary {
    background: var(--deep-purple);
    color: white;
    box-shadow: none;
  }

  .button.secondary {
    border: 1px solid rgba(29, 63, 62, 0.25);
    color: var(--text);
    background: rgba(255, 255, 255, 0.35);
  }

  .hero-panel {
    position: relative;
    min-height: 360px;
    overflow: hidden;
  }

  .flow-line {
    position: absolute;
    top: 50%;
    left: 12%;
    width: 76%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cobalt-sea), transparent);
  }

  .flow-card {
    position: relative;
    width: max-content;
    padding: 0.55rem 0.8rem 0.45rem;
    margin-bottom: 4.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 600;
    color: var(--cobalt-sea);
    box-shadow: 0 18px 40px rgba(37, 37, 37, 0.08);
  }

  .flow-card:nth-child(3) {
    margin-left: 36%;
  }

  .flow-card:nth-child(4) {
    margin-left: 64%;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .card {
    padding: 1.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition:
      transform 200ms ease,
      border-color 200ms ease,
      box-shadow 200ms ease;
  }

  .card:hover {
    transform: translateY(-6px);
    border-color: rgba(29, 63, 62, 0.65);
    box-shadow: 0 24px 52px rgba(37, 37, 37, 0.12);
  }

  .card p {
    margin: 0;
    color: var(--muted);
  }

  .tint-cobalt {
    background: var(--tint-cobalt);
  }

  .tint-purple {
    background: var(--tint-purple);
  }

  .tint-mallard {
    background: var(--tint-mallard);
  }

  .tint-olive {
    background: var(--tint-olive);
  }

  .split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(2rem, 6vw, 5rem);
    border-top: 1px solid var(--border);
  }

  .text-block {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.15rem;
  }

  .text-block p:first-child {
    margin-top: 0;
  }

  .timeline {
    display: grid;
    gap: 1rem;
    border-left: 1px solid rgba(29, 63, 62, 0.35);
    padding-left: 1.5rem;
  }

  .timeline-item {
    position: relative;
    padding: 1.3rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }

  .timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-1.5rem - 6px);
    top: 1.7rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cobalt-sea);
  }

  .timeline-year {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--cobalt-sea);
    font-family: "Josefin Sans", sans-serif;
    font-weight: 500;
  }

  .timeline-item p {
    margin: 0;
    color: var(--muted);
  }

  .skill-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .skill-group {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }

  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .chips span {
    padding: 0.4rem 0.7rem 0.32rem;
    border: 1px solid rgba(29, 63, 62, 0.18);
    border-radius: 999px;
    background: var(--bg);
    font-size: 0.95rem;
    color: var(--cobalt-sea);
  }

  #what-i-do,
  #experience,
  #skills {
    border-top: 1px solid var(--border);
  }

  .contact {
    text-align: center;
    border-top: 1px solid var(--border);
  }

  .contact h2,
  .contact p {
    margin-left: auto;
    margin-right: auto;
  }

  .contact p {
    max-width: 520px;
    color: var(--muted);
    font-size: 1.2rem;
  }

  @media (max-width: 900px) {
    .site-header {
      position: static;
      align-items: flex-start;
      flex-direction: column;
    }

    .nav {
      width: 100%;
      overflow-x: auto;
      padding-bottom: 0.25rem;
    }

    .hero {
      min-height: auto;
      grid-template-columns: 1fr;
    }

    .hero-panel {
      min-height: 180px;
    }

    .hero-photo {
      width: 30%;
      height: 30%;
    }

    .cards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

  @media (max-width: 620px) {
    body {
      font-size: 17px;
    }

    .site-header {
      position: static;
    }

    .section {
      padding-top: 4rem;
      padding-bottom: 4rem;
    }

    .cards,
    .skill-groups {
      grid-template-columns: 1fr;
    }

    .card {
      min-height: auto;
    }

    .hero-panel {
      min-height: 180px;
    }

    .hero-photo {
      width: 50%;
      height: 50%;
    }
  }