  /* 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); text-decoration-thickness: 1px; text-underline-offset: 3px; }
  a:hover { color: var(--blue-deep); }
  :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

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

  /* Wide-tracked caps — the J.F. Stokes card register */
  .caps {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: .28em;
    text-transform: uppercase;
    line-height: 1.5;
  }

  h1, h2, h3 { font-family: var(--sans); text-wrap: balance; margin: 0; }
  h2 { font-weight: 500; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.015em; }
  h3 { font-weight: 600; font-size: 20px; line-height: 1.25; }
  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; }


  /* ---------- Hero ---------- */
  .hero { padding-top: clamp(28px, 6vw, 72px); }
  .hero-grid {
    display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 5vw, 72px);
    align-items: end;
  }
  .hero .eyebrow { color: var(--blue); margin-bottom: 20px; }
  .hero h1 {
    font-weight: 500; font-size: clamp(27px, 4vw, 51px); line-height: 1.04; letter-spacing: -.02em;
  }
  .hero h1 em { font-style: normal; color: var(--blue); }
  .hero-side p { font-size: 18px; color: var(--ink-soft); max-width: 38ch; }
  .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
  .btn {
    display: inline-block; padding: 14px 22px; text-decoration: none;
    font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    border: 1.5px solid var(--blue); transition: background .15s, color .15s;
  }
  .btn-solid { background: var(--blue); color: var(--paper); }
  .btn-solid:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--paper); }
  .btn-line { color: var(--blue); }
  .btn-line:hover { background: var(--blue); color: var(--paper); }

  .hero-art { margin-top: clamp(24px, 4vw, 40px); }
  .hero-art img { width: 100%; height: auto; max-width: 1500px; margin-inline: auto; }
  .hero-caption {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
    color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 8px;
    font-size: 11px;
  }


  .hero { padding-block: clamp(28px, 6vw, 72px) clamp(64px, 9vw, 120px); }
  /* ---------- Lineage + mill, album spread ---------- */
  .roots { padding-block: 0 clamp(80px, 11vw, 150px); }
  .roots .wrap {
    display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 32px);
    align-items: start;
  }
  .root { margin: 0; display: flex; flex-direction: column; gap: 14px; }
  .root-joe  { grid-column: 1 / span 5; }
  .root-mill { grid-column: 7 / span 6; margin-top: clamp(80px, 13vw, 190px); }
  .photo { position: relative; margin: 0 0 12px; }
  .photo img { width: 100%; box-shadow: 0 1px 0 rgba(23,35,43,.05), 0 22px 40px -28px rgba(23,35,43,.55); }
  .photo .card {
    position: absolute; width: 52%; right: -14%; bottom: -16%;
    transform: rotate(2.5deg);
  }
  .root-joe .photo { margin-bottom: 11%; margin-right: 12%; }
  .root .caps { color: var(--blue); font-size: 10.5px; }
  .root .cap { color: var(--ink-soft); font-size: 10.5px; }
  .root h2 { font-size: clamp(24px, 2.6vw, 32px); }
  .root p.body { font-size: 16.5px; color: var(--ink-soft); max-width: 44ch; }
  .root .more { font-size: 11px; font-weight: 600; text-decoration: none; }
  .root .more:hover { text-decoration: underline; }

  /* ---------- Work carousel ---------- */
  .gallery { padding-block: 0 clamp(80px, 11vw, 150px); }
  .carousel { width: 100%; margin-inline: auto; } /* matches the illustration width */
  .gallery-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
  .gallery-head .caps { color: var(--blue); font-size: 11px; }
  /* Engraved double-line frame with a cream mat, echoing the illustration's pen */
  .frame { border: 3px solid var(--blue); padding: 5px; }
  .frame-mat { border: 1px solid var(--blue); padding: 4.75%; } /* mat scales with the frame, keeping the photo-to-frame ratio */
  .track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .track::-webkit-scrollbar { display: none; }
  .slide { flex: 0 0 100%; scroll-snap-align: start; display: block; aspect-ratio: 3 / 2; }
  .slide img { width: 100%; height: 100%; object-fit: cover; }
  .cbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
  .dots { display: flex; gap: 10px; }
  .dot { width: 28px; height: 3px; padding: 0; border: 0; background: var(--rule); cursor: pointer; }
  .dot[aria-current="true"] { background: var(--blue); }
  .arrows { display: flex; gap: 8px; }
  .arrow {
    width: 44px; height: 44px; border: 1.5px solid var(--blue); background: none; color: var(--blue);
    font: 500 18px/1 var(--sans); cursor: pointer; transition: background .15s, color .15s;
  }
  .arrow:hover { background: var(--blue); color: var(--paper); }
  .gallery .actions { margin-top: 28px; }
  @media (max-width: 760px) { .carousel { width: 100%; } }
  @media (prefers-reduced-motion: reduce) { .track { scroll-behavior: auto; } }

  @media (max-width: 760px) {
    .roots .wrap { grid-template-columns: 1fr; row-gap: 72px; }
    .root-joe, .root-mill { grid-column: 1 / -1; margin-top: 0; }
    .root-mill { padding-left: 8%; }
  }

  /* 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) {
    .hero-grid { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
