  :root {
    /* --- layout --- */
    --page-max: 1200px;
    --image-share: 24%;   /* headshot width relative to the page container */
    --gutter: 56px;

    /* --- bars --- */
    --bars-top: 0%;
    --bars-height: 70%;
    --cap: 7.78%;
    --bar-dur: 2.5s;      /* fallback only; JS randomizes per bar per run */

    /* --- line art background --- */
    --art-ink: 0.16;
    --art-fade-start: 62%;

    /* --- cursor shine on the line art --- */
    /* diameter tracks the art, which is sized off the viewport width: 10vw means 100px at a
       1000px screen and +100px per additional 1000px, granular in between, floored at 100px */
    --shine-size: max(100px, 10vw);
    --shine-ink: 0.95;     /* peak strength of the silver highlight */

    /* --- type --- */
    --ink: #16161a;
    --ink-soft: #5b5b66;
    --ink-faint: #8a8a94;
    --rule: #e3e3e8;
    --bg: #fbfbfc;
    --card: #ffffff;
    /* translucent card surface: lets the line art read through every panel */
    --panel: rgba(255, 255, 255, 0.66);

    /* --- the six bar colors, reused as accents through the page --- */
    --c1: #61BB46;
    --c2: #FDB827;
    --c3: #F5821F;
    --c4: #E03A3E;
    --c5: #963D97;
    --c6: #009DDC;

    --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    position: relative;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  ::selection { background: #ffe9a8; }

  /* Line art background: parallax, scrolls away slower than the page, fades near its bottom edge */
  .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vw * 4344 / 3258);
    z-index: 0;
    pointer-events: none;
    opacity: var(--art-ink);
    background: url("../images/line-art-bg.svg") top center / 100% auto no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 var(--art-fade-start), transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0, #000 var(--art-fade-start), transparent 100%);
    /* keep the art on its own compositor layer so the parallax never repaints it */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
  }

  /* Preferred path: the parallax runs on a scroll timeline, off the main thread, so it
     cannot lag behind native scrolling. --art-travel is set once by JS (and on resize).
     Browsers without scroll timelines fall back to the rAF version in the script below. */
  @supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
      .bg, .shine-track {
        animation: art-parallax linear both;
        animation-timeline: scroll(root block);
      }
    }
  }

  @keyframes art-parallax {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(0, var(--art-travel, 0px), 0); }
  }

  /* Cursor shine: a second copy of the art, desaturated to silver and shown through a
     100px circle that follows the pointer. The track carries the parallax so the copy
     stays registered with .bg; only the small window moves on mouse move. */
  .shine-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vw * 4344 / 3258);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    /* same bottom fade as the art, so the shine dies where the line work does */
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 var(--art-fade-start), transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0, #000 var(--art-fade-start), transparent 100%);
    will-change: transform;
    transform: translate3d(0, 0, 0);
  }

  .shine {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--shine-size);
    height: var(--shine-size);
    opacity: 0;
    transition: opacity 0.3s ease;
    background-image: url("../images/line-art-bg.svg");
    background-repeat: no-repeat;
    /* background-size is set by JS to match the rendered width of .bg exactly */
    /* strip the rainbow and lift it: the mid-grey the art greyscales to would read as the
       lines getting darker, so brightness pushes it up to a silver that reads as highlight */
    filter: grayscale(1) brightness(1.45);
    /* strength falls off from the middle of the circle to nothing at its edge */
    -webkit-mask-image: radial-gradient(circle closest-side at 50% 50%,
              rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.82) 32%,
              rgba(0, 0, 0, 0.4) 64%, transparent 100%);
            mask-image: radial-gradient(circle closest-side at 50% 50%,
              rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.82) 32%,
              rgba(0, 0, 0, 0.4) 64%, transparent 100%);
    will-change: transform;
  }

  .shine.lit { opacity: var(--shine-ink); }

  /* a soft white bloom under the silver lines, the specular part of the highlight */
  .shine::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle closest-side at 50% 50%,
                rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 55%, transparent 100%);
    mix-blend-mode: screen;
  }

  .wrap {
    position: relative;
    z-index: 1;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 32px;
  }

  /* --- nav: sticky so the anchor links stay useful --- */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(251, 251, 252, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
  }

  .nav {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  /* the dot and the wordmark are one lockup: inline-flex keeps them on a shared baseline
     without the vertical-align fudge, and nowrap stops the dot stranding itself on its own
     line when the bar gets tight */
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    font-weight: 650;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--ink);
  }

  .brand i {
    font-style: normal;
    width: 9px;
    height: 9px;
    flex: none;              /* never let the dot squash into an ellipse */
    border-radius: 50%;
    background: conic-gradient(var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c1));
  }

  .nav ul {
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav a:not(.brand) {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
  }

  .nav a:not(.brand):hover { color: var(--ink); }

  /* the toggle only exists below the breakpoint; above it the bar is unchanged */
  .nav-toggle { display: none; }

  .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;
  }

  /* --- hero --- */
  .hero {
    display: grid;
    grid-template-columns: 1fr var(--image-share);
    gap: var(--gutter);
    align-items: center;
    padding: 84px 0 64px;
  }

  .eyebrow {
    margin: 0 0 18px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  h1 {
    margin: 0 0 22px;
    font-size: clamp(30px, 4.1vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.028em;
    font-weight: 700;
    max-width: 20ch;
  }

  h1 em { font-style: italic; font-weight: 500; color: var(--ink-soft); }

  .lede {
    margin: 0 0 30px;
    max-width: 58ch;
    color: var(--ink-soft);
  }

  .cta { display: flex; gap: 12px; flex-wrap: wrap; }

  .btn {
    font: inherit;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
  }

  .btn.ghost { background: transparent; color: var(--ink); }

  /* Hover fills the pill with one of the six palette colours. Each button carries its own
     --btn-hover / --btn-hover-ink pair so the ink can be chosen per colour: white is
     unreadable on the yellow and the green, near-black is unreadable on the purple. */
  .btn {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  /* :active carries this to touch, where there is no hover to speak of */
  .btn:hover,
  .btn:focus-visible,
  .btn:active {
    background: var(--btn-hover, var(--ink));
    border-color: var(--btn-hover, var(--ink));
    color: var(--btn-hover-ink, #fff);
  }

  /* prefixed, not .b1-.b6: those are already the retro bar gradients */
  .btn-c1 { --btn-hover: var(--c1); --btn-hover-ink: var(--ink); }
  .btn-c2 { --btn-hover: var(--c2); --btn-hover-ink: var(--ink); }
  .btn-c3 { --btn-hover: var(--c3); --btn-hover-ink: var(--ink); }
  /* the vivid --c4 clears neither white nor near-black at 14px, so the red button borrows
     the deeper red the agent cards already use */
  .btn-c4 { --btn-hover: #8A1418;   --btn-hover-ink: #fff; }
  .btn-c5 { --btn-hover: var(--c5); --btn-hover-ink: #fff; }
  .btn-c6 { --btn-hover: var(--c6); --btn-hover-ink: var(--ink); }

  /* --- the stage: locked to the image's native 768x1024 ratio --- */
  .stage {
    position: relative;
    width: 100%;
    aspect-ratio: 768 / 1024;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  }

  .bars {
    position: absolute;
    top: var(--bars-top);
    left: 0;
    right: 0;
    height: var(--bars-height);
  }

  .slot {
    position: absolute;
    left: 0;
    right: 0;
    height: calc(100% / 6 + 1px);
    overflow: hidden;
  }

  .slot:nth-child(1) { top: calc(0 * 100% / 6); }
  .slot:nth-child(2) { top: calc(1 * 100% / 6); }
  .slot:nth-child(3) { top: calc(2 * 100% / 6); }
  .slot:nth-child(4) { top: calc(3 * 100% / 6); }
  .slot:nth-child(5) { top: calc(4 * 100% / 6); }
  .slot:nth-child(6) { top: calc(5 * 100% / 6); height: calc(100% / 6); }

  .bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: calc(100% + var(--cap));
    border-radius: 0 999px 999px 0;
    transform: translateX(-100%);
    will-change: transform;
  }

  .bar.leaving { border-radius: 999px; }

  .b1 { background: linear-gradient(90deg, #61BB46 0%, #2F6B21 100%); }
  .b2 { background: linear-gradient(90deg, #FDB827 0%, #A86D00 100%); }
  .b3 { background: linear-gradient(90deg, #F5821F 0%, #9C4408 100%); }
  .b4 { background: linear-gradient(90deg, #E03A3E 0%, #8A1418 100%); }
  .b5 { background: linear-gradient(90deg, #963D97 0%, #4E1650 100%); }
  .b6 { background: linear-gradient(90deg, #009DDC 0%, #005681 100%); }

  @keyframes wipe {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
  }

  @keyframes exit {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
  }

  .stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.3));
  }

  /* --- currently on my plate --- */
  .now {
    padding: 34px 0 84px;
    border-top: 1px solid var(--rule);
  }

  .now-label {
    margin: 0 0 24px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .now-label .stamp {
    float: right;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-faint);
  }

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

  .now-item .status {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  .now-item .status i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: 0.5px;
  }

  .now-item h3 {
    margin: 9px 0 7px;
    font-size: 16px;
    letter-spacing: -0.015em;
  }

  .now-item p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-soft);
  }

  /* --- shared section chrome --- */
  section { padding: 76px 0 20px; }

  .sec-label {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 10px;
  }

  .sec-label::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 8px;
    border-radius: 999px;
    margin-right: 10px;
    vertical-align: 0;
    background: var(--sec-accent, var(--ink));
    /* grow from the left edge so the bar stays anchored to the margin */
    transform-origin: left center;
  }

  /* Fired when an anchor lands you on a section. Only the blur radius of the glow moves,
     so the colour stays true and the bar breathes rather than jumping: at rest the shadows
     sit exactly behind the pill and are invisible. */
  @keyframes sec-bar-pulse {
    0%, 100% {
      transform: scale(1);
      filter: drop-shadow(0 0 0 var(--sec-accent, var(--ink)))
              drop-shadow(0 0 0 var(--sec-accent, var(--ink)));
    }
    50% {
      transform: scale(1.06);
      filter: drop-shadow(0 0 4px var(--sec-accent, var(--ink)))
              drop-shadow(0 0 10px var(--sec-accent, var(--ink)));
    }
  }

  .sec-label.pulse::before {
    /* one slow breath */
    animation: sec-bar-pulse 1600ms ease-in-out 1;
  }

  h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 2.8vw, 34px);
    letter-spacing: -0.025em;
    line-height: 1.15;
  }

  .sec-intro {
    margin: 0 0 40px;
    max-width: 64ch;
    color: var(--ink-soft);
  }

  /* --- agents grid --- */
  .agents {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    padding-bottom: 26px;
  }

  /* no hover lift here on purpose: these are articles, not links. The shadow-and-rise read
     as clickable and nothing happened when you clicked. That belongs to .repo, which is a
     real anchor. */
  .agent {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 24px 26px 22px;
    position: relative;
    overflow: hidden;
  }

  .agent::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  }

  .agent .tag {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-deep);
  }

  .agent h3 {
    margin: 8px 0 10px;
    font-size: 19px;
    letter-spacing: -0.015em;
  }

  .agent p {
    margin: 0;
    font-size: 15px;
    color: var(--ink-soft);
  }

  .agent .fact {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--rule);
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--ink-soft);
  }

  .a1 { --accent: var(--c1); --accent-deep: #2F6B21; }
  .a2 { --accent: var(--c2); --accent-deep: #A86D00; }
  .a3 { --accent: var(--c3); --accent-deep: #9C4408; }
  .a4 { --accent: var(--c4); --accent-deep: #8A1418; }
  .a5 { --accent: var(--c5); --accent-deep: #4E1650; }
  .a6 { --accent: var(--c6); --accent-deep: #005681; }

  /* --- selected work list: separate translucent cards so the line art reads through --- */
  .work-list {
    display: grid;
    gap: 16px;
  }

  .work {
    display: grid;
    grid-template-columns: minmax(230px, 34%) 1fr;
    gap: 34px;
    padding: 26px 28px;
    /* plain translucent fill, no backdrop-filter: blurring eight backdrops every frame
       is what made the parallax stutter */
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 12px;
  }

  /* chips sit on the translucent panel, so keep them translucent too */
  .work .chip { background: rgba(255, 255, 255, 0.55); }

  .work h3 {
    margin: 0 0 6px;
    font-size: 18px;
    letter-spacing: -0.015em;
  }

  .work .where {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-faint);
  }

  .work p {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--ink-soft);
  }

  .chips { display: flex; flex-wrap: wrap; gap: 7px; }

  .chip {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--ink-soft);
    border: 1px solid var(--rule);
    background: var(--card);
    border-radius: 999px;
    padding: 3px 11px;
  }

  /* --- code / repos --- */
  .repos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .repo {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 24px 26px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }

  .repo:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }

  .repo .path {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink-soft);
  }

  .repo .path b { color: var(--ink); font-weight: 650; }

  .repo p {
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--ink-soft);
  }

  .repo .go {
    display: inline-block;
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
  }

  /* --- experience timeline --- */
  .roles { border-left: 2px solid var(--rule); margin-left: 6px; }

  .role {
    position: relative;
    padding: 0 0 40px 34px;
  }

  .role:last-child { padding-bottom: 8px; }

  .role::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--dot, var(--ink));
  }

  .role.r1 { --dot: var(--c6); }
  .role.r2 { --dot: var(--c1); }
  .role.r3 { --dot: var(--c3); }

  .role .when {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-faint);
  }

  .role h3 { margin: 5px 0 2px; font-size: 19px; letter-spacing: -0.015em; }

  .role .org { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }

  .role ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 15px;
  }

  .role li { margin-bottom: 6px; }

  /* --- stack --- */
  .stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .stack-col {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 22px 24px;
  }

  .stack-col h3 {
    margin: 0 0 12px;
    font-size: 15px;
    letter-spacing: -0.01em;
  }

  .stack-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--ink-soft);
  }

  .stack-col li {
    padding: 5px 0;
    border-bottom: 1px dashed var(--rule);
  }

  .stack-col li:last-child { border-bottom: 0; }

  /* --- contact --- */
  .contact { padding-bottom: 60px; }

  .contact .cta { margin: 26px 0 30px; }

  .aside {
    font-size: 14.5px;
    color: var(--ink-soft);
    max-width: 62ch;
    border-top: 1px solid var(--rule);
    padding-top: 20px;
  }

  footer {
    border-top: 1px solid var(--rule);
    padding: 26px 0 40px;
    font-size: 13px;
    color: var(--ink-faint);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }

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

  .reveal.in {
    opacity: 1;
    transform: none;
  }

  /* --- responsive --- */
  @media (max-width: 900px) {
    .agents, .repos { grid-template-columns: 1fr; }
    .stack-grid { grid-template-columns: repeat(2, 1fr); }
    .work { grid-template-columns: 1fr; gap: 8px; }
  }

  @media (max-width: 820px) {
    .hero {
      grid-template-columns: 1fr;
      padding: 52px 0 44px;
    }
    .hero .stage { width: 52%; }
    .now-grid { grid-template-columns: repeat(2, 1fr); }
    .nav ul { gap: 16px; }
    .nav a:not(.brand) { font-size: 13px; }
  }

  /* --- nav collapses to a menu button: six links will not fit a phone bar, and the bar is
         sticky, so widening it or letting it scroll sideways both cost more than they give --- */
  @media (max-width: 640px) {
    .nav {
      flex-wrap: wrap;
      padding: 12px 20px;
      gap: 12px;
    }

    .nav-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      padding: 0;
      background: none;
      border: 1px solid var(--rule);
      border-radius: 9px;
      color: var(--ink);
      cursor: pointer;
    }

    /* three bars out of one span: the element is the middle, the pseudos are the outer two */
    .nav-toggle-box {
      position: relative;
      display: block;
      width: 17px;
      height: 11px;
    }

    .nav-toggle-bar {
      position: absolute;
      top: 50%;
      left: 0;
      width: 100%;
      height: 1.5px;
      margin-top: -0.75px;
      border-radius: 2px;
      background: currentColor;
    }

    .nav-toggle-bar::before,
    .nav-toggle-bar::after {
      content: "";
      position: absolute;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: inherit;
      background: currentColor;
      transition: top 0.2s ease, transform 0.2s ease;
    }

    .nav-toggle-bar::before { top: -4.75px; }
    .nav-toggle-bar::after  { top: 4.75px; }

    /* open: the outer bars close into an X and the middle one gets out of the way */
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { top: 0; transform: rotate(-45deg); }

    /* the list drops to its own row inside the sticky bar rather than floating over the page,
       so it pushes nothing and needs no overlay */
    .nav ul {
      display: none;
      flex-basis: 100%;
      flex-direction: column;
      gap: 0;
      margin-bottom: 4px;
      border-top: 1px solid var(--rule);
    }

    .nav ul.open { display: flex; }

    .nav ul li + li { border-top: 1px solid var(--rule); }

    .nav a:not(.brand) {
      display: block;
      padding: 13px 2px;
      font-size: 15px;
    }
  }

  @media (max-width: 620px) {
    .stack-grid { grid-template-columns: 1fr; }
    .now-grid { grid-template-columns: 1fr; }
    .work { padding: 22px 20px; }
    .hero .stage { width: 68%; }
  }

  @media (prefers-reduced-motion: reduce) {
    .bar { animation: none !important; transform: translateX(0); }
    .reveal { opacity: 1; transform: none; transition: none; }
    .sec-label.pulse::before { animation: none; }
    html { scroll-behavior: auto; }
  }
