  :root {
    --paper: #F4F7F5;
    --ink: #1C2A35;
    --muted: #586A74;
    --line: #D5DED9;
    --sun: #F2B035;
    --sun-deep: #E39A12;

    /* one soft tint per project — the color is the project's identity */
    --t-workforce: #D7EBE2;
    --t-verdict: #E2E4F7;
    --t-qday: #D9E8F5;
    --t-crystal: #F4E1EE;
    --t-music: #FCE7CC;
    --t-soon: #E9ECEA;

    --wrap: 1120px;
    --gutter: clamp(16px, 5vw, 48px);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.55;
    overflow-x: clip;
  }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 6px; }

  .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

  /* ---------- header ---------- */
  .site-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 28px; padding-bottom: 28px;
    position: relative; z-index: 2;
  }
  .wordmark {
    font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
    text-decoration: none; font-variation-settings: "opsz" 48;
  }
  .head-links { display: flex; gap: 22px; list-style: none; }
  .head-links a { text-decoration: none; font-weight: 500; color: var(--muted); }
  .head-links a:hover { color: var(--ink); }

  /* ---------- hero ---------- */
  .hero { position: relative; padding: clamp(48px, 10vw, 120px) 0 clamp(56px, 9vw, 112px); }
  .sun {
    position: absolute; z-index: 0; pointer-events: none;
    width: clamp(180px, 36vw, 460px); aspect-ratio: 1;
    right: calc(var(--gutter) * -1 - 9vw); top: clamp(8px, 2vw, 24px);
    border-radius: 50%;
    background: radial-gradient(circle at 38% 38%, #F8C866 0%, var(--sun) 55%, var(--sun-deep) 100%);
    animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both;
  }
  @keyframes rise {
    from { transform: translateY(80px); opacity: 0; }
    to   { transform: none; opacity: 1; }
  }
  .hero h1 {
    position: relative; z-index: 1;
    font-weight: 800;
    font-size: clamp(2.6rem, 7.2vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-variation-settings: "opsz" 96;
    max-width: 11.5em;
  }
  .hero p {
    position: relative; z-index: 1;
    margin-top: 28px; max-width: 34em;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    color: var(--muted);
  }

  /* ---------- projects ---------- */
  .projects { padding-bottom: clamp(64px, 10vw, 120px); }
  .projects h2 {
    font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em;
    padding-bottom: 16px; border-bottom: 2px solid var(--ink);
  }
  .project-list { list-style: none; }
  .project { border-bottom: 1px solid var(--line); }
  .project > a, .project > div {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-areas: "dot name kind" "dot desc where";
    column-gap: 24px; row-gap: 6px;
    align-items: baseline;
    padding: 26px 16px;
    margin: 0 -16px;
    border-radius: 18px;
    text-decoration: none;
    transition: background-color .2s ease;
  }
  .project > a:hover, .project > a:focus-visible { background: var(--tint); }
  .dot {
    grid-area: dot; align-self: start;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--tint);
    border: 2px solid color-mix(in srgb, var(--tint) 60%, var(--ink) 18%);
    margin-top: 4px;
  }
  .project > a:hover .dot { background: var(--paper); }
  .name {
    grid-area: name;
    font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600;
    letter-spacing: -0.025em; line-height: 1.1;
    font-variation-settings: "opsz" 72;
  }
  .desc { grid-area: desc; color: var(--muted); max-width: 40em; }
  .kind { grid-area: kind; font-weight: 500; font-size: 0.95rem; text-align: right; white-space: nowrap; }
  .where { grid-area: where; font-size: 0.9rem; color: var(--muted); text-align: right; white-space: nowrap; }
  .project > a:hover .where { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

  .is-soon .name, .is-soon .kind { color: var(--muted); }
  .is-soon .dot { background: transparent; border-style: dashed; border-color: #A9B7B0; }

  .next {
    margin-top: 40px; padding: 28px 32px;
    background: var(--ink); color: var(--paper);
    border-radius: 24px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  }
  .next p { font-size: 1.15rem; max-width: 32em; }
  .next a {
    display: inline-block; text-decoration: none; font-weight: 600;
    background: var(--sun); color: var(--ink);
    padding: 12px 22px; border-radius: 999px;
  }
  .next a:hover { background: #F8C866; }

  /* ---------- footer ---------- */
  .site-foot {
    border-top: 1px solid var(--line);
    padding-top: 28px; padding-bottom: 40px;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
    color: var(--muted); font-size: 0.95rem;
  }
  .foot-links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; }
  .foot-links a { text-decoration: none; }
  .foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

  /* ---------- small screens ---------- */
  @media (max-width: 680px) {
    .head-links { gap: 16px; }
    .sun { width: 170px; right: -70px; top: -8px; }
    .project > a, .project > div {
      grid-template-columns: 40px minmax(0, 1fr);
      grid-template-areas: "dot name" "dot kind" "dot desc" "dot where";
      column-gap: 16px; row-gap: 4px; padding: 22px 12px; margin: 0 -12px;
    }
    .dot { width: 32px; height: 32px; }
    .kind, .where { text-align: left; white-space: normal; }
    .kind { color: var(--muted); font-size: 0.9rem; }
    .where { margin-top: 6px; overflow-wrap: anywhere; }
    .next { padding: 24px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .sun { animation: none; }
    .project > a { transition: none; }
  }

/* ---------- about page ---------- */
.about-hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.about-hero h1 {
  position: relative; z-index: 1;
  font-weight: 800; font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1; letter-spacing: -0.035em; font-variation-settings: "opsz" 96;
}
.about-hero .role { position: relative; z-index: 1; margin-top: 14px; font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500; }
.about-hero .lead { position: relative; z-index: 1; margin-top: 24px; max-width: 36em; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.about-hero .lead + .lead { margin-top: 14px; }
.about-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; list-style: none; }
.about-links a {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 10px 20px; border-radius: 999px; border: 2px solid var(--ink);
}
.about-links a:hover { background: var(--ink); color: var(--paper); }
.about-links li:first-child a { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.about-links li:first-child a:hover { background: #F8C866; border-color: #F8C866; }

.resume { padding-bottom: clamp(48px, 8vw, 96px); }
.resume h2 {
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em;
  padding-bottom: 16px; border-bottom: 2px solid var(--ink);
  margin-top: clamp(40px, 6vw, 64px);
}
.resume h2:first-child { margin-top: 0; }
.job-list { list-style: none; }
.job {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 32px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.job .when { color: var(--muted); font-size: 0.95rem; padding-top: 6px; font-variant-numeric: tabular-nums; }
.job h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; font-variation-settings: "opsz" 60; }
.job .org { margin-top: 2px; font-weight: 500; }
.job ul { margin-top: 12px; padding-left: 1.1em; color: var(--muted); max-width: 44em; }
.job li + li { margin-top: 6px; }
.job .note { margin-top: 10px; color: var(--muted); max-width: 44em; }
.job.earlier { background: var(--t-music); border-radius: 18px; padding: 26px 20px; margin: 18px -20px 0; border-bottom: 0; }

.skills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.skills li { padding: 6px 14px; border-radius: 999px; background: var(--t-workforce); font-size: 0.95rem; }
.skills li:nth-child(3n+2) { background: var(--t-verdict); }
.skills li:nth-child(3n) { background: var(--t-qday); }
.edu { margin-top: 18px; }
.edu p + p { color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 680px) {
  .job { grid-template-columns: 1fr; row-gap: 4px; }
  .job .when { padding-top: 0; }
  .job.earlier { padding: 22px 16px; margin: 14px -12px 0; }
}
