  /* Stokes brand tokens — Field Guide 5.4 + illustration swatch */
  :root {
    color-scheme: light;
    --paper: #FBEBC9;        /* brand cream */
    --paper-deep: #F4DDAE;   /* panels, placeholders */
    --print: #FFF8EA;        /* photo print border */
    --blue: #146B9A;         /* brand mill blue */
    --blue-deep: #0F5479;    /* hover / pressed */
    --ink: #17232B;          /* body text, blue-biased near-black */
    --ink-soft: #4B5559;     /* secondary text */
    --rule: rgba(20,107,154,.28);
    --on-blue: #FBEBC9;
    --on-blue-soft: rgba(251,235,201,.72);

    --type: "Courier Prime", "Courier New", Courier, monospace;
    --sans: "Libre Franklin", "Franklin Gothic", "Helvetica Neue", Arial, sans-serif;

    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 48px);
  }

  html { background: var(--paper); }
  body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
  *, *::before, *::after { box-sizing: border-box; }
  img { max-width: 100%; height: auto; display: block; }
  a { color: var(--blue); }
  :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
  .wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
  .caps { font-weight: 500; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; line-height: 1.5; }
  h1, p { margin: 0; }

  /* Header — same on every page */
  .site-header { padding-block: 22px; padding-top: calc(22px + env(safe-area-inset-top, 0px)); }
  .site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .logo img { width: 180px; height: auto; }
  .nav { display: flex; gap: clamp(18px, 2.4vw, 34px); }
  .nav a { color: var(--ink); text-decoration: none; font-size: 12px; }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
  .menu-btn { display: none; background: none; border: 1px solid var(--ink); color: var(--ink); font: inherit; padding: 8px 14px; cursor: pointer; }


  /* Page title */
  .intro { padding-block: clamp(28px, 6vw, 72px) clamp(40px, 6vw, 80px); }
  .intro h1 { font-weight: 500; font-size: clamp(27px, 4vw, 51px); line-height: 1.04; letter-spacing: -.02em; }
  .intro p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; max-width: 46ch; }

  /* ---------- Album ----------
     One cover per project, laid down the page like prints in an album: alternating left and right,
     sized by the photo's shape, and tucked up beside the previous print when there is room. */
  .album { padding-bottom: clamp(80px, 12vw, 160px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 32px); }
  .proj { margin: 0; }
  .proj + .proj { margin-top: clamp(90px, 11vw, 160px); }
  .proj.tuck { margin-top: clamp(-260px, -16vw, -90px); }
  .proj .shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
  .proj .shot img { width: 100%; box-shadow: 0 1px 0 rgba(23,35,43,.05), 0 24px 44px -30px rgba(23,35,43,.55); transition: transform .35s ease; }
  .proj .shot:hover img { transform: translateY(-4px); }
  .proj figcaption { margin-top: 16px; display: grid; gap: 4px; max-width: 36ch; }
  .proj .type { color: var(--blue); font-size: 10.5px; }
  .proj .name { font-weight: 600; font-size: 17px; line-height: 1.3; }
  .proj .year { color: var(--ink-soft); font-weight: 400; }
  .proj .count { color: var(--ink-soft); font-size: 10.5px; }

  /* ---------- Viewer ---------- */
  dialog.viewer {
    width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: #11191F; color: var(--paper);
  }
  dialog.viewer::backdrop { background: #11191F; }
  .viewer-inner {
    height: 100%; display: grid; grid-template-rows: auto 1fr auto;
    padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .viewer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 11px; color: rgba(251,235,201,.7); }
  .viewer-stage { min-height: 0; display: flex; align-items: center; justify-content: center; padding-block: 16px; }
  .viewer-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
  .viewer-bottom { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
  .viewer-cap .type { color: rgba(251,235,201,.6); font-size: 10.5px; }
  .viewer-cap .name { font-weight: 600; font-size: 17px; }
  .viewer-cap .line { font-size: 14px; color: rgba(251,235,201,.72); }
  .vbtn {
    background: none; border: 1px solid rgba(251,235,201,.45); color: var(--paper);
    font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; padding: 12px 16px; cursor: pointer;
  }
  .vbtn:hover { background: rgba(251,235,201,.1); }
  .vnav { display: flex; gap: 8px; flex-shrink: 0; }

  /* ---------- Responsive ---------- */
  /* Mobile menu — same on every page */
  @media (max-width: 760px) {
    .nav { display: none; }
    .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--paper); border-block: 1px solid var(--rule); padding: 8px var(--gutter); }
    .nav.open a { padding-block: 14px; }
    .nav.open a + a { border-top: 1px solid var(--rule); }
    .site-header { position: relative; }
    .menu-btn { display: inline-block; }
  }

  @media (max-width: 760px) {
    /* Stack, alternating indents so it still reads like an album */
    .album { grid-template-columns: repeat(6, 1fr); }
    .proj { grid-column: 1 / -1 !important; grid-row: auto !important; }
    .proj.v { grid-column: 1 / span 5 !important; }
    .proj.v.right { grid-column: 2 / span 5 !important; }
    .proj.tuck { margin-top: clamp(90px, 11vw, 160px); }
    .viewer-bottom { flex-direction: column; align-items: stretch; }
    .vnav { justify-content: space-between; }
  }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
