  :root {
    --indigo: #3FA79A;
    --indigo-deep: #E8E4D9;
    --cream: #12141C;
    --cream-warm: #1A1D28;
    --terracotta: #3FA79A;
    --sage: #C98A3E;
    --stone: #7A7E8C;
    --ink: #E8E4D9;

    --serif: 'Newsreader', serif;
    --sans: 'Work Sans', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

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

  .wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* ---------- Nav ---------- */
  .nav {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 28px 0 20px;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid rgba(232,228,217,0.1);
  }

  .nav .name {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
  }

  .nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
  }

  .nav ul a {
    font-size: 0.92rem;
    color: var(--ink);
    position: relative;
    padding-bottom: 3px;
  }

  .nav ul a.active { color: var(--terracotta); }

  .nav ul a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  .nav ul a:hover::after { transform: scaleX(1); }

  /* ---------- Hero ---------- */
  .hero {
    padding: 72px 0 56px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
  }

  .hero .status-line {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--stone);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
  }

  .hero .tagline-line {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: var(--terracotta);
    margin-bottom: 22px;
  }

  .hero h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
    color: var(--indigo-deep);
    margin-bottom: 18px;
  }

  .hero .roles {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--sage);
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 26px;
  }

  .hero p.bio {
    max-width: 62ch;
    font-size: 1.02rem;
    color: var(--ink);
  }

  .hero p.bio + p.bio { margin-top: 14px; }

  .hero-card {
    background: var(--cream-warm);
    border: 1px solid rgba(232,228,217,0.08);
    padding: 22px 24px;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--ink);
  }

  .hero-card .row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(232,228,217,0.12);
  }

  .hero-card .row:last-child { border-bottom: none; }

  .hero-card .row span:first-child { color: var(--stone); }

  /* ---------- Particle canvas ---------- */
  .particle-hero {
    padding: 4px 0 44px;
  }

  #hd-canvas {
    width: 100%;
    height: 220px;
    display: block;
  }

  @media (max-width: 620px) {
    #hd-canvas { height: 150px; }
  }

  /* ---------- Maxim ---------- */
  .maxim {
    padding: 44px 0;
    border-top: 1px solid rgba(232,228,217,0.1);
    border-bottom: 1px solid rgba(232,228,217,0.1);
  }

  .maxim p {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    line-height: 1.4;
    color: var(--indigo-deep);
    max-width: 34ch;
  }

  /* ---------- Stats ---------- */
  .stats {
    padding: 56px 0;
  }

  .stats h2 {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--terracotta);
    margin-bottom: 28px;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(232,228,217,0.1);
    border: 1px solid rgba(232,228,217,0.1);
  }

  .stat {
    background: var(--cream);
    padding: 26px 22px;
  }

  .stat .num {
    font-family: var(--serif);
    font-size: 2.1rem;
    color: var(--indigo-deep);
    line-height: 1;
    margin-bottom: 8px;
  }

  .stat .label {
    font-size: 0.86rem;
    color: var(--ink);
  }

  /* ---------- Disciplines ---------- */
  .disciplines {
    padding: 56px 0 72px;
  }

  .disciplines h2 {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--terracotta);
    margin-bottom: 28px;
  }

  .disc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .disc-card {
    border-top: 2px solid var(--indigo);
    padding-top: 14px;
  }

  .disc-card h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 8px;
  }

  .disc-card p {
    font-size: 0.88rem;
    color: var(--stone);
    margin-bottom: 12px;
  }

  .disc-card a.go {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--sage);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .disc-card a.go:hover { color: var(--terracotta); }

  /* ---------- Bilingual label pattern ---------- */
  .bi {
    position: relative;
    cursor: default;
    border-bottom: 1px dotted var(--stone);
  }

  .bi .es {
    display: none;
    font-family: var(--mono);
    font-size: 0.78em;
    color: var(--stone);
  }

  .bi:hover .en { color: var(--terracotta); }
  .bi:hover .es { display: inline; margin-left: 6px; }

  /* ---------- Footer ---------- */
  footer {
    border-top: 1px solid rgba(232,228,217,0.1);
    padding: 28px 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--stone);
  }

  /* ---------- Scroll reveal ---------- */
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.in { opacity: 1; transform: translateY(0); }

  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .disc-grid { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 520px) {
    .wrap { padding: 0 20px; }
    .stats-grid { grid-template-columns: 1fr; }
    .disc-grid { grid-template-columns: 1fr; }
    .nav ul { gap: 18px; flex-wrap: wrap; }
  }

  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 3px;
  }

  /* ---------- Page header (non-home pages) ---------- */
  .page-header {
    padding: 56px 0 32px;
  }

  .page-header .status-line {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--stone);
    margin-bottom: 18px;
  }

  .page-header h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.1rem, 4.5vw, 3rem);
    color: var(--indigo-deep);
    margin-bottom: 14px;
  }

  .page-header p.lede {
    max-width: 62ch;
    font-size: 1.02rem;
    color: var(--ink);
  }

  /* ---------- Status banner ---------- */
  .status-banner {
    background: var(--cream-warm);
    border-left: 3px solid var(--terracotta);
    padding: 16px 22px;
    margin: 28px 0 8px;
    font-size: 0.92rem;
  }

  .status-banner strong {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--terracotta);
    display: block;
    margin-bottom: 6px;
  }

  /* ---------- Timeline (Work page) ---------- */
  .timeline {
    padding: 40px 0;
  }

  .timeline h2 {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--terracotta);
    margin-bottom: 28px;
  }

  .role {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid rgba(232,228,217,0.1);
  }

  .role:last-child { padding-bottom: 0; }

  .role .dates {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--stone);
    padding-top: 4px;
  }

  .role .role-body h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--indigo-deep);
    margin-bottom: 2px;
  }

  .role .role-body .employer {
    font-size: 0.92rem;
    color: var(--terracotta);
    margin-bottom: 10px;
  }

  .role .role-body p {
    font-size: 0.95rem;
    max-width: 60ch;
    margin-bottom: 6px;
  }

  .role .role-body .note {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--sage);
    margin-top: 8px;
  }

  .role-group-label {
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--stone);
    padding-top: 24px;
    padding-bottom: 4px;
    border-top: 1px solid rgba(232,228,217,0.1);
  }

  /* ---------- Community section ---------- */
  .community {
    padding: 8px 0 40px;
  }

  .community .role {
    border-top: 1px dashed rgba(232,228,217,0.15);
  }

  /* ---------- Project cards ---------- */
  .projects-grid {
    padding: 40px 0 72px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-card {
    border: 1px solid rgba(232,228,217,0.12);
    background: var(--cream-warm);
    padding: 28px 30px;
  }

  .project-card .proj-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
  }

  .project-card h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--indigo-deep);
  }

  .project-card .stage {
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--sage);
    border: 1px solid var(--sage);
    padding: 3px 9px;
    white-space: nowrap;
  }

  .project-card .tagline {
    font-family: var(--serif);
    font-style: italic;
    color: var(--stone);
    margin-bottom: 16px;
    font-size: 1.02rem;
  }

  .project-card p {
    font-size: 0.95rem;
    max-width: 68ch;
    margin-bottom: 12px;
  }

  .project-card .meta-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(232,228,217,0.15);
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--stone);
  }

  .project-card .meta-row a {
    color: var(--terracotta);
  }

  .project-card .meta-row a:hover { text-decoration: underline; }

  .disclaimer {
    font-size: 0.82rem;
    color: var(--stone);
    max-width: 68ch;
    margin: 4px 0 40px;
  }

  @media (max-width: 700px) {
    .role { grid-template-columns: 1fr; gap: 6px; }
    .role .dates { padding-top: 0; }
  }
