:root {
    --bg: #000000;
    --bg-1: #060606;
    --bg-2: #0c0c0d;
    --line: rgba(255,255,255,0.08);
    --line-2: rgba(255,255,255,0.14);
    --fg: #f4f4f5;
    --fg-2: rgba(255,255,255,0.62);
    --fg-3: rgba(255,255,255,0.42);
    --fg-4: rgba(255,255,255,0.22);
    --nav-bg: rgba(0,0,0,0.78);
    --scrollthumb: rgba(255,255,255,0.10);
    --scrolltrack-border: #000;
    --placeholder: rgba(255,255,255,0.32);
    --accent: #3B82F6;
    --accent-glow: rgba(59,130,246,0.45);
    --accent-soft: rgba(59,130,246,0.08);
    --accent-tint: rgba(59,130,246,0.04);
    --accent-ring: rgba(59,130,246,0.25);
  }

  html.theme-light {
    --bg: #f7f6f3;
    --bg-1: #ffffff;
    --bg-2: #efeeea;
    --line: rgba(0,0,0,0.08);
    --line-2: rgba(0,0,0,0.16);
    --fg: #161616;
    --fg-2: rgba(0,0,0,0.62);
    --fg-3: rgba(0,0,0,0.45);
    --fg-4: rgba(0,0,0,0.22);
    --nav-bg: rgba(247,246,243,0.82);
    --scrollthumb: rgba(0,0,0,0.18);
    --scrolltrack-border: #f7f6f3;
    --placeholder: rgba(0,0,0,0.38);
    --serif: "Instrument Serif", serif;
    --sans: "Geist", "Helvetica Neue", Helvetica, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
  body {
    font-family: var(--sans);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
  ul { list-style: none; padding: 0; margin: 0; }
  h1, h2, h3, p { margin: 0; }

  body::before {
    content: ""; position: fixed; inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 0;
  }
  html.theme-light .proj__art-inner::after { border-color: var(--line-2); }
  html.theme-light .htl-bar__type { color: color-mix(in oklab, var(--cat, #888) 70%, black); }

  .app { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 48px; }

  /* ============================================
     NAV
     ============================================ */
  .nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav--center { justify-content: center; position: relative; }
  .nav__theme {
    position: absolute; right: 0; top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--fg-2);
    background: transparent;
    cursor: pointer;
    transition: color 220ms ease, border-color 220ms ease, background 220ms ease, transform 220ms ease;
  }
  .nav__theme:hover {
    color: var(--fg);
    border-color: var(--fg);
    background: transparent;
    transform: translateY(-50%) rotate(-12deg);
  }
  .nav__theme svg { width: 15px; height: 15px; }
  @media (max-width: 760px) { .nav__theme { right: 0; } }
  .nav__brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 12px;
    color: var(--fg-2);
  }
  .nav__mark {
    width: 9px; height: 9px; border-radius: 2px;
    background: var(--fg);
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
  }
  .nav__list {
    display: flex; gap: 4px;
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.16em;
  }
  .nav__list li a {
    display: block; padding: 8px 14px; color: var(--fg-3);
    border-radius: 999px;
    transition: color 220ms ease, background 220ms ease;
  }
  .nav__list li a:hover { color: var(--fg); }
  .nav__list li.is-active a {
    color: var(--fg);
    background: color-mix(in oklab, var(--fg) 8%, transparent);
  }
  .nav__cta {
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.14em;
    padding: 9px 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    transition: all 220ms ease;
  }
  .nav__cta:hover {
    border-color: var(--fg); color: var(--fg); background: transparent;
  }
  @media (max-width: 760px) { .nav__list { display: none; } }

  /* ============================================
     SECTIONS — minimal scaffold
     ============================================ */
  .section {
    padding: 80px 0;
    border-bottom: 1px solid var(--line);
  }
  .section--first { padding-top: 60px; }
  .section--contact { border-bottom: none; padding-bottom: 0; }

  .section-label-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
  }
  .section-label {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.22em;
    color: var(--fg-2);
  }
  .section-label__bar { width: 28px; height: 1px; background: var(--fg-3); }
  .section-note {
    font-family: var(--mono); font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--fg-3);
  }

  /* ============================================
     INTRO (small, replaces hero)
     ============================================ */
  .intro {
    padding: 30px 0 60px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 60px;
  }
  .intro__name {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 6vw, 80px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }
  .intro__role {
    font-family: var(--sans);
    font-size: clamp(15px, 1.4vw, 17px);
    color: var(--fg-2);
    font-weight: 400;
  }
  .amp {
    font-family: var(--serif);
    font-style: italic;
    color: var(--fg);
    padding: 0 3px;
  }

  /* ============================================
     WORK
     ============================================ */
  .dot {
    display: inline-block;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--fg);
    margin-right: 10px;
  }
  .work__current {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 40px;
    padding: 36px 32px;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    background: var(--bg-1);
  }
  .work__status {
    display: flex; align-items: center;
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--fg);
    margin-bottom: 10px;
  }
  .work__period {
    font-family: var(--mono); font-size: 12px;
    color: var(--fg-3); letter-spacing: 0.08em;
  }
  .work__role {
    font-family: var(--serif);
    font-size: 34px; line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
  }
  .work__co { font-size: 15px; color: var(--fg-2); margin-bottom: 16px; }
  .work__desc {
    font-size: 15px; color: var(--fg-2);
    line-height: 1.65;
    max-width: 580px;
    margin-bottom: 20px;
  }
  .work__chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip {
    font-family: var(--mono); font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.16em;
    padding: 6px 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--fg-2);
    transition: all 220ms ease;
  }
  .chip:hover { border-color: var(--fg); color: var(--fg); }
  .work__r-k {
    font-family: var(--mono); font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--fg-3);
    margin-top: 16px;
  }
  .work__r-k:first-child { margin-top: 0; }
  .work__r-v { font-size: 14px; color: var(--fg); margin-top: 4px; }
  @media (max-width: 900px) {
    .work__current { grid-template-columns: 1fr; gap: 18px; padding: 28px 20px; }
    .work__role { font-size: 28px; }
  }

  /* ============================================
     HORIZONTAL TIMELINE
     ============================================ */
  .htl {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-1);
    padding: 28px 24px 24px;
  }
  .htl__head {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--mono); font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.18em;
    margin-bottom: 18px;
  }
  .htl__head-l { color: var(--fg); }
  .htl__head-r { color: var(--fg-3); }

  .htl__legend {
    display: flex; flex-wrap: wrap; gap: 8px 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .htl__legend-item {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--fg-2);
  }
  .htl__legend-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--cat);
    box-shadow: 0 0 8px color-mix(in oklab, var(--cat) 55%, transparent);
  }

  .htl__chart {
    position: relative;
    overflow: hidden;
  }
  .htl__axis {
    position: relative;
    height: 28px;
    border-bottom: 1px solid var(--line);
  }
  .htl__year-label {
    position: absolute; top: 0; bottom: 0;
    padding: 6px 8px;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--fg-2);
    border-left: 1px dashed var(--line);
  }
  .htl__year-label > span { display: block; }
  .htl__grid {
    position: absolute; left: 0; right: 0; top: 28px; bottom: 0;
    pointer-events: none;
  }
  .htl__grid-line {
    position: absolute; top: 0; bottom: 0;
    width: 1px;
    border-left: 1px dashed var(--line);
  }
  .htl__grid-line--end { border-left: 1px solid var(--line); }
  .htl__today {
    position: absolute; top: -28px; bottom: 0;
    width: 1px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 1;
  }
  .htl__today-label {
    position: absolute; top: 4px; left: 6px;
    font-family: var(--mono); font-size: 9px;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--accent);
    background: var(--bg);
    padding: 1px 6px;
    border: 1px solid var(--accent-ring);
    border-radius: 999px;
    white-space: nowrap;
  }
  .htl__lanes {
    position: relative;
    margin-top: 12px;
    margin-bottom: 4px;
  }
  .htl-bar {
    position: absolute;
    padding: 0 8px;
    display: flex; align-items: center; gap: 8px;
    background: color-mix(in oklab, var(--cat, #888) 8%, transparent);
    border: 1px solid color-mix(in oklab, var(--cat, #888) 32%, transparent);
    border-radius: 4px;
    color: var(--fg);
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
    min-width: 16px;
  }
  .htl-bar:hover {
    background: color-mix(in oklab, var(--cat, #888) 16%, transparent);
    border-color: color-mix(in oklab, var(--cat, #888) 60%, transparent);
    z-index: 2;
    transform: translateY(-1px);
  }
  .htl-bar.is-active {
    background: color-mix(in oklab, var(--cat, #888) 22%, transparent);
    border-color: var(--cat, #888);
    box-shadow:
      0 0 0 1px var(--cat, #888),
      0 0 18px color-mix(in oklab, var(--cat, #888) 50%, transparent);
    z-index: 3;
  }
  .htl-bar.is-ongoing {
    border-style: dashed;
  }
  .htl-bar__type {
    font-family: var(--mono); font-size: 9px;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: color-mix(in oklab, var(--cat, #888) 75%, white);
    flex-shrink: 0;
  }
  .htl-bar__title {
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    color: var(--fg);
  }
  .htl-bar__link {
    font-family: var(--mono); font-size: 11px;
    color: var(--cat, var(--fg-2));
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 220ms ease, transform 220ms ease;
  }
  .htl-bar.has-link:hover .htl-bar__link,
  .htl-bar.has-link.is-active .htl-bar__link {
    opacity: 1;
    transform: translate(2px, -2px);
  }
  /* tiny bars (weekend events) drop the title so they remain readable */
  .htl-bar { container-type: inline-size; }
  @container (max-width: 80px) {
    .htl-bar__title { display: none; }
    .htl-bar { padding: 0 6px; }
  }
  @container (max-width: 36px) {
    .htl-bar__type { display: none; }
    .htl-bar { padding: 0 4px; justify-content: center; }
    .htl-bar::after {
      content: "";
      width: 5px; height: 5px; border-radius: 50%;
      background: var(--cat, #888);
      box-shadow: 0 0 6px color-mix(in oklab, var(--cat, #888) 60%, transparent);
    }
  }

  .htl__detail {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg-2);
    min-height: 60px;
    transition: border-color 240ms ease, background 240ms ease;
  }
  .htl__detail.is-open {
    border-color: color-mix(in oklab, var(--cat, var(--accent)) 35%, transparent);
    background: color-mix(in oklab, var(--cat, var(--accent)) 6%, var(--bg-2));
  }
  .htl__detail-empty {
    text-align: center;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.14em;
    padding: 4px 0;
  }
  .htl__detail-h {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
  }
  .htl__detail-type {
    font-family: var(--mono); font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--cat, var(--accent));
  }
  .htl__detail-range {
    font-family: var(--mono); font-size: 11px;
    color: var(--fg-2); letter-spacing: 0.08em;
    margin-left: auto;
  }
  .htl__close {
    width: 24px; height: 24px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    color: var(--fg-2);
    font-size: 14px;
    line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 220ms ease;
  }
  .htl__close:hover { color: var(--accent); border-color: var(--accent); }
  .htl__detail-t {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
  }
  .htl__detail-d {
    font-size: 14px;
    color: var(--fg-2);
    line-height: 1.6;
    max-width: 720px;
  }
  .htl__detail-link {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 16px;
    padding: 10px 16px;
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--cat, var(--accent));
    border: 1px solid color-mix(in oklab, var(--cat, var(--accent)) 40%, transparent);
    border-radius: 999px;
    background: color-mix(in oklab, var(--cat, var(--accent)) 6%, transparent);
    cursor: pointer;
    transition: all 220ms ease;
  }
  .htl__detail-link:hover {
    background: color-mix(in oklab, var(--cat, var(--accent)) 16%, transparent);
    border-color: var(--cat, var(--accent));
    transform: translateY(-1px);
  }
  .htl__detail-link-arrow {
    transition: transform 220ms ease;
  }
  .htl__detail-link:hover .htl__detail-link-arrow {
    transform: translate(3px, 3px);
  }

  @media (max-width: 760px) {
    .htl { padding: 24px 14px 16px; }
    .htl__chart { overflow-x: auto; }
    .htl__year-label { font-size: 10px; }
  }

  /* ============================================
     PROJECT HIGHLIGHT (when linked from timeline)
     ============================================ */
  .proj.is-highlight .proj__face {
    animation: projHighlight 2.2s ease-out;
  }
  @keyframes projHighlight {
    0%, 100% { box-shadow: 0 0 0 0 transparent; border-color: var(--line); }
    20%, 60% { box-shadow: 0 0 0 2px var(--fg), 0 0 30px rgba(127,127,127,0.4); border-color: var(--fg); }
  }


  /* ============================================
     SCROLLBAR — themed to match the design
     ============================================ */
  /* Page scrollbar (Firefox) */
  html { scrollbar-width: thin; scrollbar-color: var(--scrollthumb) transparent; }
  /* Page + nested scrollbars (WebKit) */
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: var(--scrollthumb);
    border-radius: 999px;
    border: 2px solid var(--scrolltrack-border);
    transition: background 220ms ease;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--fg-3);
  }
  ::-webkit-scrollbar-corner { background: transparent; }


  /* ============================================
     PROJECTS (flip cards)
     ============================================ */
  .projs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .proj { perspective: 1400px; height: 420px; }
  .proj__inner {
    position: relative;
    width: 100%; height: 100%;
    transition: transform 720ms cubic-bezier(0.22, 0.61, 0.36, 1);
    transform-style: preserve-3d;
    border-radius: 4px;
  }
  .proj.is-flipped .proj__inner { transform: rotateY(180deg); }
  .proj__face {
    position: absolute; inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 22px;
    display: flex; flex-direction: column;
    transition: border-color 280ms ease;
  }
  .proj:hover .proj__face { border-color: var(--line-2); }
  .proj__face--back { transform: rotateY(180deg); background: var(--bg-2); }
  .proj__top {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--mono); font-size: 11px;
    color: var(--fg-3);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .proj__no { color: var(--fg-2); }
  .proj__art {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 2px;
    background-image: repeating-linear-gradient(135deg, rgba(127,127,127,0.05) 0px, rgba(127,127,127,0.05) 1px, transparent 1px, transparent 12px);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 280ms ease;
  }
  .proj:hover .proj__art { border-color: var(--line-2); }
  .proj__art-inner {
    position: relative;
    width: 58px; height: 58px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 11px;
    color: var(--fg-2);
  }
  .proj__art-inner::after {
    content: ""; position: absolute; inset: -8px;
    border: 1px dashed var(--line-2);
    border-radius: 50%;
    animation: rotate 18s linear infinite;
  }
  @keyframes rotate { to { transform: rotate(360deg); } }
  .proj__title {
    font-family: var(--serif);
    font-size: 22px; line-height: 1.15;
    margin-bottom: 6px;
    min-height: 50px;
  }
  .proj__hook { font-size: 13px; color: var(--fg-2); line-height: 1.5; margin-bottom: 12px; }
  .proj__cta {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--fg-2);
    transition: color 280ms ease;
  }
  .proj:hover .proj__cta { color: var(--fg); }
  .proj__arrow { transition: transform 280ms ease; }
  .proj:hover .proj__arrow { transform: translateX(4px); }
  .proj__back-label { color: var(--fg-2); }
  .proj__back-body { flex: 1; font-size: 14px; color: var(--fg); line-height: 1.6; margin: 8px 0 14px; }
  .proj__back-meta {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    margin-bottom: 12px;
  }
  .proj__back-meta-cell {
    display: flex; flex-direction: column; gap: 4px;
    font-size: 12px; color: var(--fg-2);
  }
  .proj__back-meta-cell > span:first-child {
    font-family: var(--mono); font-size: 10px;
    color: var(--fg-3); letter-spacing: 0.18em;
  }
  .proj__cta--back { color: var(--fg); }
  @media (max-width: 980px) {
    .projs { grid-template-columns: 1fr; }
    .proj { height: 400px; }
  }

  /* ============================================
     CONTACT
     ============================================ */
  .contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
  }
  .contact__h {
    font-family: var(--serif);
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
  }
  .contact__p {
    color: var(--fg-2); font-size: 16px; line-height: 1.6;
    margin-bottom: 28px; max-width: 440px;
  }
  .contact__mail {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 14px;
    color: var(--fg-2);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line-2);
    transition: all 220ms ease;
  }
  .contact__mail:hover { color: var(--fg); border-color: var(--fg); }
  .social {
    display: grid;
    grid-template-columns: 30px 90px 1fr 20px;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    color: var(--fg);
    transition: all 280ms ease;
  }
  .social:last-child { border-bottom: 1px solid var(--line); }
  .social__k {
    font-family: var(--mono); font-size: 11px;
    color: var(--fg-3); letter-spacing: 0.16em;
  }
  .social__l { font-size: 15px; }
  .social__v { font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
  .social__a { color: var(--fg-3); transition: all 220ms ease; }
  .social:hover { padding-left: 10px; color: var(--fg); }
  .social:hover .social__a { color: var(--fg); transform: translate(3px, -3px); }
  .footer {
    display: flex; justify-content: space-between;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 11px;
    color: var(--fg-3);
    text-transform: uppercase; letter-spacing: 0.16em;
  }
  @media (max-width: 760px) {
    .contact { grid-template-columns: 1fr; gap: 40px; }
    .social { grid-template-columns: 24px 1fr 20px; }
    .social__v { display: none; }
    .footer { flex-direction: column; gap: 10px; }
  }

  /* ============================================
     TWEAK PANEL
     ============================================ */
  .tweak-note {
    font-family: var(--mono);
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.08em;
    padding: 4px 0 8px;
    line-height: 1.4;
  }

  @media (max-width: 760px) {
    .app { padding: 0 18px; }
    .section { padding: 60px 0; }
    .intro { padding: 24px 0 40px; margin-bottom: 40px; }
    .section-label-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  }

/* Projects page additions */

.page-head {
  padding: 40px 0 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.page-head__eyebrow {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--fg-3);
  margin-bottom: 16px;
}
.page-head__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.page-head__sub {
  font-size: 16px; color: var(--fg-2); line-height: 1.55;
  max-width: 560px;
}
.page-foot {
  display: flex; justify-content: space-between;
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.16em;
}
.page-foot a { color: var(--fg-2); transition: color 220ms ease; }
.page-foot a:hover { color: var(--fg); }
