:root {
    --vellum: #F1F2EE;
    --vellum-deep: #E7E9E3;
    --ink: #191C1A;
    --graphite: #575D57;
    --hairline: #CDD1C9;
    --hairline-soft: #DDE0D9;
    --torch: #E04A00;
    --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
    --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
    /* face used for body text while <body> has class="caps".
       Arial is a system font, so it needs no <link> in the page head. */
    --body-tech: Arial, "Helvetica Neue", Helvetica, sans-serif;
    --frame: 14px;
    /* --- table rules: both the revision block and the BOM read these --- */
    --rule-w: 1px;                  /* lines between rows and columns */
    --rule-c: var(--hairline);      /* their colour */
    --rule-outer-w: 1.5px;          /* outer frame + the line under the headings */
    --rule-outer-c: var(--ink);     /* their colour */
    --cell-pad: clamp(10px, 1.2vw, 20px);   /* breathing room inside each cell */
    --gutter: clamp(20px, 5vw, 72px);
  }

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

  html { scroll-behavior: smooth; }

  body {
    position: relative;
    background: var(--vellum);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  ::selection { background: var(--torch); color: var(--vellum); }

  /* thin ink scrollbar */
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--vellum); }
  ::-webkit-scrollbar-thumb { background: var(--hairline); border: 3px solid var(--vellum); }
  ::-webkit-scrollbar-thumb:hover { background: var(--graphite); }

  a { color: inherit; }
  button { cursor: pointer; font: inherit; color: inherit; background: none; border: none; }
  img { max-width: 100%; display: block; }

  /* ---------- SHEET FRAME ---------- */
  /* side rails scroll with the document: one continuous sheet, full page height */
  .rails {
    position: absolute; inset: var(--frame);
    border: 1.5px solid var(--ink);
    pointer-events: none; z-index: 60;
  }
  .rails::after {
    content: ""; position: absolute; inset: 5px;
    border: 1px solid var(--hairline);
  }

  /* fixed top/bottom edges: the cut line where the sheet leaves the viewport.
     Each fades in only once the sheet's real edge has scrolled out of view. */
  .edge {
    position: fixed; left: var(--frame); right: var(--frame); height: 8px;
    pointer-events: none; z-index: 60;
    opacity: 0; transition: opacity .35s ease;
  }
  .edge.on { opacity: 1; }
  .edge::before, .edge::after { content: ""; position: absolute; left: 0; right: 0; }
  .edge::before { height: 1.5px; background: var(--ink); }
  .edge::after { height: 1px; background: var(--hairline); }
  .edge.top { top: var(--frame); }
  .edge.top::before { top: 0; }
  .edge.top::after { top: 6.5px; }
  .edge.bot { bottom: var(--frame); }
  .edge.bot::before { bottom: 0; }
  .edge.bot::after { bottom: 6.5px; }

  .zone {
    z-index: 61; pointer-events: none;
    font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
    color: var(--graphite);
    display: flex; justify-content: space-around; align-items: center;
  }
  .zone.top { position: fixed; top: 0; left: var(--frame); right: var(--frame); height: var(--frame); }
  /* letter column runs the full document height; JS sizes the run to fit */
  .zone.left { position: absolute; left: 0; top: var(--frame); bottom: var(--frame); width: var(--frame); flex-direction: column; }

  /* scroll progress: a torch line riding the top frame edge */
  .progress {
    position: fixed; top: var(--frame); left: var(--frame);
    height: 2px; width: 0%;
    max-width: calc(100% - var(--frame) * 2);
    background: var(--torch); z-index: 62; pointer-events: none;
  }

  @media (hover: none), (max-width: 860px) {
    .zone { display: none; }
  }

  /* ---------- LAYOUT SHELL ---------- */
  .sheet {
    padding: calc(var(--frame) + 6px);
    min-height: 100dvh;
  }
  .inner { max-width: 1280px; margin: 0 auto; }

  /* ---------- TOP BAR ---------- */
  .bar {
    position: sticky; top: calc(var(--frame) + 6px); z-index: 50;
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px var(--gutter);
    border-bottom: 1px solid var(--ink);
    background: color-mix(in srgb, var(--vellum) 88%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .bar .mark {
    font-family: var(--display); font-weight: 800; font-size: 20px;
    letter-spacing: .04em; text-decoration: none;
  }
  .bar .mark span { color: var(--torch); }
  .bar nav { display: flex; gap: clamp(12px, 3vw, 34px); }
  .bar nav a {
    font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
    text-transform: uppercase; text-decoration: none; color: var(--graphite);
    padding: 4px 0; position: relative; transition: color .2s ease;
  }
  .bar nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px; background: var(--torch);
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
  }
  .bar nav a:hover { color: var(--ink); }
  .bar nav a:hover::after { transform: scaleX(1); }
  @media (max-width: 700px) { .bar nav a.hide-m { display: none; } }

  /* ---------- HERO ---------- */
  .hero { padding: clamp(48px, 9vh, 110px) var(--gutter) clamp(40px, 7vh, 90px); }
  .hero .meta-row {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--graphite); margin-bottom: clamp(24px, 4vh, 48px);
  }
  .hero .meta-row .live { color: var(--torch); }

  .hero h1 {
    font-family: var(--display); font-weight: 800;
    font-size: clamp(64px, 15.5vw, 218px);
    line-height: .88; letter-spacing: .005em;
    text-transform: uppercase;
  }
  .hero h1 .ln { display: block; overflow: hidden; border: none; padding: 0; }
  .hero h1 .ln i { display: block; font-style: normal; }
  .hero h1 .ln:last-child { color: transparent; -webkit-text-stroke: 2px var(--ink); }
  @media (max-width: 600px) { .hero h1 .ln:last-child { -webkit-text-stroke: 1.2px var(--ink); } }

  /* dimension line under the name */
  .dim {
    margin-top: clamp(20px, 3.5vh, 40px);
    position: relative; height: 34px;
  }
  .dim .line {
    position: absolute; left: 0; right: 0; top: 50%; height: 1px;
    background: var(--torch);
    transform: scaleX(0); transform-origin: left;
  }
  .dim.drawn .line { transition: transform 1.1s cubic-bezier(.7,0,.2,1) .5s; transform: scaleX(1); }
  .dim .tick { position: absolute; top: calc(50% - 8px); width: 1px; height: 17px; background: var(--torch); }
  .dim .tick.l { left: 0; } .dim .tick.r { right: 0; }
  .dim .arrow { position: absolute; top: 50%; width: 9px; height: 1px; }
  .dim .arrow::before, .dim .arrow::after {
    content: ""; position: absolute; width: 9px; height: 1px; background: var(--torch);
  }
  .dim .arrow.l { left: 1px; }
  .dim .arrow.l::before { transform: rotate(28deg); transform-origin: left center; }
  .dim .arrow.l::after  { transform: rotate(-28deg); transform-origin: left center; }
  .dim .arrow.r { right: 1px; }
  .dim .arrow.r::before { transform: rotate(28deg); transform-origin: right center; }
  .dim .arrow.r::after  { transform: rotate(-28deg); transform-origin: right center; }
  .dim .label {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    background: var(--vellum); padding: 0 16px;
    font-family: var(--mono); font-size: clamp(9px, 1.4vw, 12px);
    letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
    white-space: nowrap;
  }

  .hero .sub {
    margin-top: clamp(28px, 4.5vh, 52px);
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 64px); align-items: start;
  }
  .hero .sub p {
    font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; max-width: 34em;
    color: var(--ink);
  }
  .hero .sub p b { font-weight: 600; }
  .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
  @media (max-width: 860px) {
    .hero .sub { grid-template-columns: 1fr; }
  }

  /* portrait plate */
  .plate { border: 1px solid var(--ink); background: var(--vellum-deep); }
  .plate .ph { overflow: hidden; }
  .plate img { width: 100%; height: auto; }
  .plate figcaption {
    border-top: 1px solid var(--ink);
    font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--graphite);
    padding: 8px 12px; display: flex; justify-content: space-between; gap: 10px;
  }
  .plate figcaption b { color: var(--torch); font-weight: 600; }
  /* "See more" in the hero caption: the whole photo already links to the heart
     project, this just makes that obvious. */
  .plate figcaption .cap-more {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--torch); padding-bottom: 1px;
    transition: color .2s ease;
  }
  .plate figcaption .cap-more svg { width: 10px; height: 10px; stroke: currentColor; transition: transform .25s ease; }
  .plate figcaption .cap-more:hover { color: var(--torch); }
  .plate figcaption .cap-more:hover svg { transform: translateX(3px); }

  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
    text-transform: uppercase; text-decoration: none;
    border: 1px solid var(--ink); color: var(--ink);
    padding: 14px 22px; background: transparent;
    transition: background .22s ease, color .22s ease;
    will-change: transform;
  }
  .btn svg { width: 12px; height: 12px; stroke: currentColor; }
  .btn:hover { background: var(--ink); color: var(--vellum); }
  .btn.solid { background: var(--ink); color: var(--vellum); }
  .btn.solid:hover { background: var(--torch); border-color: var(--torch); }

  /* ---------- HERO LOGO STRIP ---------- */
  /* --- the three dials for this strip --- */
  .hero-logos {
    --logo-h: 38px;        /* logo height: bigger number = bigger logos */
    --logo-gap: 34px;      /* space between logos */
    --logo-max-w: 120px;   /* cap on very wide wordmarks */
    margin-top: clamp(26px, 3.4vh, 38px);
  }
  .hero-logos .lab {
    display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--graphite); margin-bottom: 15px;
  }
  .hero-logos .strip {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: var(--logo-gap);
  }
  .hero-logos a {
    display: inline-flex; align-items: center; height: var(--logo-h);
    transition: transform .25s ease;
  }
  .hero-logos a:hover, .hero-logos a:focus-visible { transform: translateY(-2px); }
  .hero-logos img { max-height: var(--logo-h); width: auto; max-width: var(--logo-max-w); object-fit: contain; }
  .hero-logos .wm {
    font-family: var(--display); font-weight: 700; text-transform: uppercase;
    font-size: 19px; letter-spacing: .02em; line-height: 1;
  }

  /* ---------- SECTION SCAFFOLD ---------- */
  section { padding: clamp(56px, 10vh, 120px) var(--gutter); border-top: 1px solid var(--ink); }
  /* nav anchors clear the sticky bar instead of landing under it */
  section, .tb-wrap { scroll-margin-top: calc(var(--frame) + 88px); }
  .sec-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin-bottom: clamp(32px, 6vh, 64px);
  }
  .sec-head h2 {
    font-family: var(--display); font-weight: 700; text-transform: uppercase;
    font-size: clamp(34px, 6vw, 72px); line-height: .95; letter-spacing: .01em;
  }
  .sec-head .no {
    font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
    color: var(--graphite); text-transform: uppercase; white-space: nowrap;
  }
  @media (max-width: 700px) {
    .sec-head { flex-wrap: wrap; }
    .sec-head .no { white-space: normal; }
  }
  .sec-head .no b { color: var(--torch); font-weight: 600; }

  /* ---------- GENERAL NOTES ---------- */
  .notes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 clamp(32px, 5vw, 80px); }
  @media (max-width: 860px) { .notes { grid-template-columns: 1fr; } }
  .note {
    display: grid; grid-template-columns: 44px 1fr; gap: 18px;
    padding: 22px 0; border-top: 1px solid var(--hairline);
  }
  .note .n {
    font-family: var(--mono); font-size: 12px; font-weight: 600;
    color: var(--torch); letter-spacing: .1em; padding-top: 3px;
  }
  .note p { font-size: 15.5px; line-height: 1.7; color: var(--ink); }
  .note p b { font-weight: 600; }

  /* ---------- RULED TABLE SHELL (shared by §02 and §03) ---------- */
  .dtable { border: var(--rule-outer-w) solid var(--rule-outer-c); }
  /* every cell but the last carries the column rule */
  .rev-cap > *, .rev-row > *, .reg-cap > *, .row-head > * {
    border-right: var(--rule-w) solid var(--rule-c);
    padding-left: var(--cell-pad); padding-right: var(--cell-pad);
  }
  .rev-cap > *:last-child, .rev-row > *:last-child,
  .reg-cap > *:last-child, .row-head > *:last-child { border-right: none; }
  @media (max-width: 860px) {
    /* stacked layout: column rules would land in the wrong places, and per-cell
       vertical padding would compound once the cells sit on top of each other */
    .rev-row > *, .row-head > * { border-right: none; padding: 0; }
    .rev-row, .row-head { padding: clamp(16px, 2.4vh, 22px) var(--cell-pad); }
    .rev-row .thumb, .row .thumb { margin: 0; }
  }

  /* ---------- WORK HISTORY (revision block) ---------- */
  /* --- the two dials for the row images --- */
  #work {
    --thumb-w: 300px;   /* image width: bigger number = bigger images */
    --thumb-h: 200px;    /* image height */
  }
  .rev-cap {
    font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--graphite);
    display: grid; grid-template-columns: calc(46px + 2 * var(--cell-pad)) calc(var(--thumb-w, 104px) + 2 * var(--cell-pad)) minmax(0, 1fr) minmax(0, 1.95fr) calc(92px + 2 * var(--cell-pad));
    gap: 0; padding: 0;
    border-bottom: var(--rule-outer-w) solid var(--rule-outer-c);
  }
  .rev-cap > * { padding-top: 12px; padding-bottom: 12px; }
  .rev-cap > *:last-child { text-align: right; }
  .rev-row {
    display: grid; grid-template-columns: calc(46px + 2 * var(--cell-pad)) calc(var(--thumb-w, 104px) + 2 * var(--cell-pad)) minmax(0, 1fr) minmax(0, 1.95fr) calc(92px + 2 * var(--cell-pad));
    gap: 0; align-items: stretch;
    border-bottom: var(--rule-w) solid var(--rule-c);
    position: relative; transition: background .22s ease;
  }
  .rev-row:last-child { border-bottom: none; }
  /* vertical padding lives on the cells so the column rules run full height */
  .rev-row > * { padding-top: clamp(18px, 2.8vh, 28px); padding-bottom: clamp(18px, 2.8vh, 28px); }
  .rev-row::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--torch); transform: scaleY(0); transform-origin: top;
    transition: transform .25s ease;
  }
  .rev-row > * { min-width: 0; }
  .rev-row:hover { background: var(--vellum-deep); }
  .rev-row:hover::before { transform: scaleY(1); }
  .rev-row .rv-n { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--torch); }
  .rev-row .rv-o {
    font-family: var(--display); font-weight: 700; text-transform: uppercase;
    font-size: clamp(21px, 2.5vw, 30px); line-height: 1; letter-spacing: .015em;
  }
  .rev-row .rv-o .role {
    display: block; font-family: var(--mono); font-weight: 500; font-size: 10px;
    letter-spacing: .14em; color: var(--graphite); margin-top: 8px; line-height: 1.5;
  }
  .rev-row .rv-x { display: block; font-size: 14.5px; line-height: 1.6; color: var(--graphite); }
  .rev-row .rv-x .txt { display: block; }
  .rev-row .rv-dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--graphite); text-align: right; }

  /* photo slot: drop a file into assets/img/work/ and set img: in WORKHISTORY.
     .rv-th is the grid cell (carries the column rule); .thumb is the framed photo. */
  .rev-row .thumb {
    display: block;
    width: var(--thumb-w, 104px); height: var(--thumb-h, 72px);
    overflow: hidden; position: relative;
    border: 1px solid var(--hairline); background: var(--vellum-deep);
  }
  .rev-row .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
  }
  .rev-row:hover .thumb img { transform: scale(1.05); }
  /* empty slot reads as a drawing void until a photo is added */
  .rev-row .thumb.empty {
    background:
      linear-gradient(to bottom right, transparent calc(50% - .5px), var(--hairline) calc(50% - .5px), var(--hairline) calc(50% + .5px), transparent calc(50% + .5px)),
      linear-gradient(to bottom left,  transparent calc(50% - .5px), var(--hairline) calc(50% - .5px), var(--hairline) calc(50% + .5px), transparent calc(50% + .5px)),
      var(--vellum-deep);
  }

  .rev-row .more {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
    font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
    text-transform: uppercase; text-decoration: none; padding-bottom: 2px;
  }
  .rev-row .more svg { width: 11px; height: 11px; stroke: currentColor; }
  .rev-row a.more { color: var(--ink); border-bottom: 1px solid var(--torch); }
  .rev-row a.more:hover { color: var(--torch); }
  /* not yet linked: visible but inert, so the slot is obvious */
  .rev-row span.more { color: var(--hairline); border-bottom: 1px solid var(--hairline-soft); cursor: default; }
  @media (max-width: 860px) {
    .rev-cap { display: none; }
    /* phone: one stacked column. rev + date share the top line, then the org,
       then a full-bleed photo, then the description. */
    #work { --thumb-w: 100%; --thumb-h: 200px; }
    .rev-row {
      grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px var(--cell-pad);
      align-items: start; align-content: start;
    }
    /* the stacked-layout padding reset at the top of the file is overridden by
       the later .rev-row > * rule, so re-apply it here */
    .rev-row > * { padding-top: 0; padding-bottom: 0; }
    .rev-row .rv-o .role { letter-spacing: .1em; }
    .rev-row .rv-n { grid-column: 1; grid-row: 1; }
    .rev-row .rv-dt { grid-column: 2; grid-row: 1; text-align: right; }
    .rev-row .rv-o { grid-column: 1 / -1; grid-row: 2; }
    .rev-row .rv-th { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; }
    .rev-row .rv-x { grid-column: 1 / -1; grid-row: 4; margin-top: 10px; }
  }

  /* ---------- PROJECT INDEX ---------- */
  /* --- the two dials for the row images --- */
  #register {
    --thumb-w: 300px;   /* image width: bigger number = bigger images */
    --thumb-h: 200px;    /* image height */
  }
  .reg-cap {
    font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--graphite);
    display: grid; grid-template-columns: calc(46px + 2 * var(--cell-pad)) calc(var(--thumb-w, 104px) + 2 * var(--cell-pad)) minmax(0, 1.18fr) minmax(0, 1.22fr) minmax(0, .7fr) calc(84px + 2 * var(--cell-pad));
    gap: 0; padding: 0;
    border-bottom: var(--rule-outer-w) solid var(--rule-outer-c);
  }
  .reg-cap > * { padding-top: 12px; padding-bottom: 12px; }
  .reg-cap > *:last-child { text-align: right; }

  .row { border-bottom: var(--rule-w) solid var(--rule-c); position: relative; transition: background .22s ease; }
  .row:last-child { border-bottom: none; }
  .row::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--torch); transform: scaleY(0); transition: transform .25s ease;
    transform-origin: top;
  }
  .row:hover, .row.open { background: var(--vellum-deep); }
  .row:hover::before, .row.open::before { transform: scaleY(1); }

  .row-head {
    width: 100%; text-align: left;
    text-decoration: none; color: inherit;
    display: grid; grid-template-columns: calc(46px + 2 * var(--cell-pad)) calc(var(--thumb-w, 104px) + 2 * var(--cell-pad)) minmax(0, 1.18fr) minmax(0, 1.22fr) minmax(0, .7fr) calc(84px + 2 * var(--cell-pad));
    gap: 0; align-items: stretch;
    padding: 0;
  }
  .row-head > * { padding-top: 16px; padding-bottom: 16px; }
  .row-head:focus-visible { outline: 2px solid var(--torch); outline-offset: -2px; }
  .row .pn { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; transition: color .2s ease; }
  .row:hover .pn, .row.open .pn { color: var(--torch); }
  .row .thumb {
    display: block;
    width: var(--thumb-w, 104px); height: var(--thumb-h, 72px); overflow: hidden;
    border: 1px solid var(--hairline); background: var(--vellum-deep);
  }
  .row .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(1) contrast(1.04);
    transition: filter .35s ease, transform .35s ease;
  }
  .row:hover .thumb img, .row.open .thumb img { filter: none; transform: scale(1.05); }
  .row .pt {
    font-family: var(--display); font-weight: 700; text-transform: uppercase;
    font-size: clamp(20px, 2.4vw, 28px); line-height: 1; letter-spacing: .015em;
  }
  .row .pt .feat {
    display: inline-block; width: 8px; height: 8px; background: var(--torch);
    margin-left: 10px; vertical-align: 2px;
  }
  .row .pt .client {
    display: block; font-family: var(--mono); font-weight: 500; font-size: 10px;
    letter-spacing: .16em; color: var(--graphite); margin-top: 7px;
  }
  .row .pd { font-size: 14px; line-height: 1.55; color: var(--graphite); }
  .row .pd .mats {
    display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ink); margin-top: 8px;
  }
  .row .pd .mats b { color: var(--torch); font-weight: 600; }
  /* click affordance at the end of the description */
  .row .pd .more {
    display: flex; width: fit-content; align-items: center; gap: 7px; margin-top: 12px;
    font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--graphite);
    border-bottom: 1px solid var(--hairline-soft); padding-bottom: 2px;
    transition: color .2s ease, border-color .2s ease;
  }
  .row .pd .more svg { width: 11px; height: 11px; stroke: currentColor; transition: transform .25s ease; }
  .row:hover .pd .more { color: var(--torch); border-bottom-color: var(--torch); }
  .row:hover .pd .more svg { transform: translateX(3px); }
  .row .pm {
    font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ink); line-height: 1.75;
  }
  /* one material per line, no interpuncts */
  .row .pm .m { display: block; }
  .row .dt {
    font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--graphite);
    text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  }
  /* date-cell arrow removed; the one on "See more" is the single affordance
  .row .dt svg { width: 14px; height: 14px; stroke: var(--graphite); transition: transform .3s ease, stroke .2s ease; }
  .row:hover .dt svg { transform: translateX(3px); stroke: var(--torch); } */

  /* film embeds, used by the project pages */
  .film { border: 1px solid var(--ink); background: var(--ink); }
  .film .fr { position: relative; aspect-ratio: 16/9; }
  .film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .film figcaption {
    font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--vellum); padding: 7px 10px; display: flex; justify-content: space-between;
  }
  .film figcaption b { color: var(--torch); }

  .reg-key {
    margin-top: 18px; font-family: var(--mono); font-size: 10px;
    letter-spacing: .14em; text-transform: uppercase; color: var(--graphite);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  }
  .reg-key .feat { width: 8px; height: 8px; background: var(--torch); display: inline-block; }
  .reg-key .sep { color: var(--hairline); }

  @media (max-width: 860px) {
    .reg-cap { display: none; }
    /* phone: mirrors the work-history row. item no. + date on the top line,
       title, then a full-bleed photo, then description and materials. */
    #register { --thumb-w: 100%; --thumb-h: 210px; }
    /* align-items/content must be start: the default stretch inflated the
       number/date line from ~19px of text to 51px of box. */
    .row-head {
      grid-template-columns: 1fr auto; grid-template-rows: auto;
      align-items: start; align-content: start;
      gap: 4px 14px; padding: 16px var(--cell-pad);
    }
    .row-head > * { padding-top: 0; padding-bottom: 0; }
    .row .pn { grid-column: 1; grid-row: 1; }
    .row .dt { grid-column: 2; grid-row: 1; align-items: flex-end; gap: 0; }
    .row .pt { grid-column: 1 / -1; grid-row: 2; }
    .row .th { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; }
    .row .pd { grid-column: 1 / -1; grid-row: 4; margin-top: 10px; }
    /* materials are dropped on phones: with the BOM column headers hidden the
       bare list reads as unlabelled noise */
    .row .pm { display: none; }
  }

  /* ---------- LIGHTBOX ---------- */
  .lightbox {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(25, 28, 26, .92);
    display: none; align-items: center; justify-content: center;
    padding: clamp(20px, 5vw, 64px);
  }
  .lightbox.open { display: flex; }
  .lightbox img {
    max-width: 100%; max-height: calc(100vh - 140px);
    border: 1px solid var(--vellum); background: var(--vellum);
  }
  .lightbox .lb-cap {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--vellum); white-space: nowrap;
  }
  .lightbox .lb-close {
    position: absolute; top: 24px; right: 28px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--vellum); border: 1px solid var(--vellum); padding: 8px 14px;
    transition: background .2s ease, color .2s ease;
  }
  .lightbox .lb-close:hover { background: var(--vellum); color: var(--ink); }

  /* ---------- OFF-SHEET (interests) ---------- */
  .off { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink); }
  .off article { padding: clamp(22px, 3.5vw, 44px); border-right: 1px solid var(--ink); }
  .off article:last-child { border-right: none; }
  .off .k { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--torch); }
  .off h3 {
    font-family: var(--display); font-weight: 700; text-transform: uppercase;
    font-size: clamp(24px, 3.4vw, 40px); line-height: .95; margin: 10px 0 12px;
  }
  .off p { font-size: 14.5px; line-height: 1.65; color: var(--graphite); }
  @media (max-width: 860px) {
    .off { grid-template-columns: 1fr; }
    .off article { border-right: none; border-bottom: 1px solid var(--ink); }
    .off article:last-child { border-bottom: none; }
  }

  /* ---------- TITLE BLOCK (contact / footer) ---------- */
  .tb-wrap { padding: clamp(56px, 10vh, 120px) var(--gutter) clamp(72px, 12vh, 140px); border-top: 1px solid var(--ink); }
  .tb-lead {
    font-family: var(--display); font-weight: 800; text-transform: uppercase;
    font-size: clamp(44px, 9vw, 128px); line-height: .9; margin-bottom: clamp(32px, 6vh, 64px);
  }
  .tb-lead a { text-decoration: none; position: relative; }
  .tb-lead a span { color: var(--torch); transition: color .25s ease; }
  .tb-lead a:hover span { color: var(--ink); }
  .titleblock { border: 1.5px solid var(--ink); }
  .tb-r { display: grid; border-bottom: 1px solid var(--ink); }
  .tb-r:last-child { border-bottom: none; }
  .tb-r.r1 { grid-template-columns: 2fr 1fr 1fr; }
  .tb-r.r2 { grid-template-columns: 1fr 1fr 1fr; }
  .tb-r.r3 { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .tb-c { padding: 14px 18px; border-right: 1px solid var(--ink); min-width: 0; }
  .tb-c:last-child { border-right: none; }
  .tb-c .k {
    font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--graphite); display: block; margin-bottom: 4px;
  }
  .tb-c .v { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; font-weight: 500; overflow-wrap: break-word; }
  .tb-c .v a { text-decoration: none; border-bottom: 1px solid var(--torch); transition: color .2s ease, background .2s ease; }
  .tb-c .v a:hover { background: var(--torch); color: var(--vellum); }
  @media (max-width: 700px) {
    .tb-r.r1, .tb-r.r2, .tb-r.r3 { grid-template-columns: 1fr 1fr; }
    .tb-c { border-bottom: 1px solid var(--hairline); }
  }
  .colophon {
    margin-top: 22px; font-family: var(--mono); font-size: 10px;
    letter-spacing: .14em; text-transform: uppercase; color: var(--graphite);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  }

  /* ---------- REVEAL ---------- */
  .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.25,.4,.25,1), transform .7s cubic-bezier(.25,.4,.25,1); }
  .rv.on { opacity: 1; transform: none; }
  .hero h1 .ln i { transform: translateY(110%); transition: transform .9s cubic-bezier(.7,0,.2,1); }
  body.loaded .hero h1 .ln:nth-child(1) i { transform: none; transition-delay: .08s; }
  body.loaded .hero h1 .ln:nth-child(2) i { transform: none; transition-delay: .2s; }
  .hero .meta-row, .hero .sub { opacity: 0; transition: opacity .8s ease; }
  body.loaded .hero .meta-row { opacity: 1; transition-delay: .05s; }
  body.loaded .hero .sub { opacity: 1; transition-delay: .7s; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: .01ms !important; animation: none !important; }
    .rv, .hero .meta-row, .hero .sub { opacity: 1; transform: none; }
    .hero h1 .ln i { transform: none; }
    .dim .line { transform: scaleX(1); }
  }

  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--torch); outline-offset: 3px;
  }
  .skip {
    position: absolute; left: -9999px; top: 20px; z-index: 100;
    background: var(--ink); color: var(--vellum); padding: 10px 16px;
    font-family: var(--mono); font-size: 12px; text-decoration: none;
  }
  .skip:focus { left: 24px; }

/* ---------- PROJECT PAGE ---------- */
.proj-head { padding: clamp(36px, 6vh, 72px) var(--gutter) clamp(26px, 4vh, 42px); }
.proj-back {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--graphite);
  margin-bottom: clamp(22px, 4vh, 38px); transition: color .2s ease;
}
.proj-back svg { width: 12px; height: 12px; stroke: currentColor; }
.proj-back:hover { color: var(--torch); }
.proj-head h1 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 6.6vw, 88px); line-height: .93; letter-spacing: .01em;
}
.proj-head .lede {
  margin-top: clamp(16px, 2.4vh, 24px); font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65; color: var(--graphite); max-width: 40em;
}
.proj-meta {
  margin-top: clamp(22px, 3.4vh, 36px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--rule-w); background: var(--rule-outer-c);
  border: var(--rule-outer-w) solid var(--rule-outer-c);
}
.proj-meta div { background: var(--vellum); padding: 13px 17px; min-width: 0; }
.proj-meta .k {
  display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--graphite); margin-bottom: 5px;
}
.proj-meta .v { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; overflow-wrap: break-word; }

/* sequential story */
.story {
  /* --- the two width dials for a project page --- */
  --column: 1040px;   /* how wide the whole content column runs (figures use this) */
  --measure: none;    /* 46em OG how wide the paragraphs run inside it; "none" = full width */
  padding: clamp(28px, 4.5vh, 56px) var(--gutter) clamp(52px, 8vh, 100px);
}
.story-in { max-width: var(--column, 1040px); margin: 0 auto; }
.story p { font-size: 16px; line-height: 1.75; max-width: var(--measure, 46em); margin-bottom: 1.15em; }
.story p:last-child { margin-bottom: 0; }
.story h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(22px, 3vw, 36px); line-height: 1; letter-spacing: .01em;
  margin: clamp(32px, 5vh, 56px) 0 clamp(13px, 2vh, 18px);
}
.story figure, .story .film { margin: clamp(22px, 3.6vh, 42px) 0; }
.story figure { border: 1px solid var(--ink); background: var(--vellum-deep); }
.story figure img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.story figcaption, .story .film figcaption {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; padding: 8px 12px;
  display: flex; justify-content: space-between; gap: 10px;
}
.story figcaption { border-top: 1px solid var(--ink); color: var(--graphite); }
.story figcaption b { color: var(--torch); font-weight: 600; }
.story .film { border: 1px solid var(--ink); background: var(--ink); }
.story .film .fr { position: relative; aspect-ratio: 16 / 9; }
.story .film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story .film figcaption { color: var(--vellum); }
.story .film figcaption b { color: var(--torch); }
.story .ext {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--torch); padding-bottom: 2px;
}
.story .ext:hover { color: var(--torch); }

/* prev / next */
.proj-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.proj-nav a {
  padding: clamp(22px, 3.6vh, 38px) var(--gutter); text-decoration: none;
  border-right: 1px solid var(--ink); transition: background .22s ease;
}
.proj-nav a:last-child { border-right: none; text-align: right; }
.proj-nav a:hover { background: var(--vellum-deep); }
.proj-nav .k {
  display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--graphite); margin-bottom: 9px;
}
.proj-nav .t {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(18px, 2.2vw, 26px); line-height: 1.05;
}
.proj-nav a:hover .t { color: var(--torch); }
.proj-nav .spacer { padding: clamp(22px, 3.6vh, 38px) var(--gutter); border-right: 1px solid var(--ink); }
@media (max-width: 700px) {
  .proj-nav { grid-template-columns: 1fr; }
  .proj-nav a { border-right: none; border-bottom: 1px solid var(--ink); text-align: left !important; }
  .proj-nav a:last-child { border-bottom: none; }
  .proj-nav .spacer { display: none; }
}

/* tables inside a project story (decision matrices, spec lists) */
.story table {
  width: 100%; border-collapse: collapse; margin: clamp(20px, 3.4vh, 38px) 0;
  border: var(--rule-outer-w) solid var(--rule-outer-c);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em;
}
.story table th, .story table td {
  border: var(--rule-w) solid var(--rule-c); padding: 9px 12px; text-align: left; vertical-align: top;
}
.story table th {
  font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 9.5px;
  color: var(--graphite); border-bottom: var(--rule-outer-w) solid var(--rule-outer-c);
}
.story table td.n, .story table th.n { text-align: right; font-variant-numeric: tabular-nums; }
.story table tr.win td { background: var(--vellum-deep); }
.story table tr.win td:first-child { color: var(--torch); font-weight: 600; }
.story .tbl-cap {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--graphite); margin: -22px 0 clamp(20px, 3.4vh, 38px);
}
.story .tbl-wrap { overflow-x: auto; }
/* spec / needs lists */
.story ol.specs { margin: 0 0 1.15em 0; padding: 0; list-style: none; counter-reset: spec; max-width: var(--measure, 46em); }
.story ol.specs li {
  counter-increment: spec; position: relative; padding: 7px 0 7px 40px;
  border-top: var(--rule-w) solid var(--rule-c); font-size: 15px; line-height: 1.6;
}
.story ol.specs li:last-child { border-bottom: var(--rule-w) solid var(--rule-c); }
.story ol.specs li::before {
  content: counter(spec, decimal-leading-zero); position: absolute; left: 0; top: 9px;
  font-family: var(--mono); font-size: 11px; color: var(--torch); font-weight: 600;
}

/* hero portrait links through to the heart project */
a.ph { display: block; position: relative; overflow: hidden; }
a.ph img { transition: transform .45s cubic-bezier(.2,.7,.3,1); }
a.ph:hover img { transform: scale(1.03); }
a.ph::after {
  content: "Read the build →"; position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--vellum); background: color-mix(in srgb, var(--ink) 82%, transparent);
  padding: 10px 12px; transform: translateY(100%); transition: transform .3s ease;
}
a.ph:hover::after, a.ph:focus-visible::after { transform: none; }
a.ph:focus-visible { outline: 2px solid var(--torch); outline-offset: -2px; }


/* ---------- ALL-CAPS DRAWING MODE ----------
   Toggle by adding or removing class="caps" on <body>. Nothing else changes.
   Only <body> declares --body, so the face cascades everywhere that inherits;
   --display headings and --mono labels keep their own faces. */
body.caps {
  font-family: var(--body-tech);
  text-transform: uppercase;
  letter-spacing: .02em;       /* caps always need a little more tracking */
  font-weight: 400;            /* Arial only ships 400 and 700 */
}
/* caps have no descenders, so they can carry a little more size and air */
body.caps .hero .sub p { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; letter-spacing: .028em; }
body.caps .note p { line-height: 1.62; }
body.caps .rev-row .rv-x,
body.caps .row .pd { letter-spacing: .026em; }
body.caps .story p { line-height: 1.68; letter-spacing: .026em; }
body.caps .story ol.specs li { letter-spacing: .026em; }
body.caps .story table td { letter-spacing: .02em; }
/* notation must not be uppercased: subscripts, superscripts and Greek symbols
   are case-significant in engineering (mu is not M, B_eff is not B_EFF) */
body.caps sub, body.caps sup, body.caps .sym { text-transform: none; }
/* the display face is already caps and already tracked; don't double up */
body.caps h1, body.caps h2, body.caps h3,
body.caps .tb-lead, body.caps .rev-row .rv-o, body.caps .row .pt,
body.caps .hero-logos .wm, body.caps .proj-nav .t { letter-spacing: .01em; }

/* ---------- SIDE FIGURE (text wraps around it) ----------
   Wrap the heading's prose in <div class="with-side"> and give the figure
   class="side" (add "left" to flip it). The wrapper contains the float and
   releases the paragraphs from the reading measure so the wrap actually works. */
.story .with-side { max-width: none; overflow: hidden; }
.story .with-side p,
.story .with-side ol.specs { max-width: none; }
.story figure.side {
  float: right;
  width: min(38%, var(--side-w, 340px));
  margin: 4px 0 clamp(14px, 2vh, 22px) clamp(20px, 3vw, 38px);
}
.story figure.side.left {
  float: left;
  margin-left: 0;
  margin-right: clamp(20px, 3vw, 38px);
}
/* headings and tables always start on a clean line, never beside a float */
.story h2, .story .tbl-wrap { clear: both; }
@media (max-width: 700px) {
  .story figure.side, .story figure.side.left {
    float: none; width: 100%; margin-left: 0; margin-right: 0;
  }
}

/* ---------- FIGURE ROW (two or more figures side by side) ----------
   Images are sized by HEIGHT, so a landscape and a portrait shot sit on the
   same baseline without hand-computing widths. Tune with --row-h. */
.story .fig-row {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: clamp(12px, 1.6vw, 20px);
  margin: clamp(22px, 3.6vh, 42px) 0;
}
.story .fig-row figure { margin: 0; flex: 0 1 auto; min-width: 0; }
.story .fig-row figure img {
  max-height: var(--row-h, 340px); width: auto; height: auto; max-width: 100%; object-fit: contain;
}
/* Add class="fit" to keep every figure on ONE line no matter how many there
   are. A plain .fig-row wraps as soon as the images' natural widths exceed the
   column, so lowering --row-h alone will not pull a 4-up row back together.
   .fit gives each figure an equal share of the width and makes --row-h the
   exact height of every frame, so mixed portrait/landscape shots line up.
   Swap contain -> cover below if you would rather crop than letterbox.
     <div class="fig-row fit" style="--row-h: 300px"> */
/* A long caption must never decide how wide its figure is. width:0 takes the
   caption out of the figure's max-content measurement (percentages are ignored
   there), then min-width:100% stretches it back over the media. Result: the
   caption wraps onto a second line at the edge of the image or video instead of
   pushing the next figure onto a new row. */
.story .fig-row figure > figcaption { width: 0; min-width: 100%; }
.story .fig-row figcaption span { min-width: 0; }

.story .fig-row.fit { flex-wrap: nowrap; }
.story .fig-row.fit figure { flex: 1 1 0; }
.story .fig-row.fit figure img,
.story .fig-row.fit figure video {
  width: 100%; height: var(--row-h, 340px); max-height: none; object-fit: contain;
}

@media (max-width: 760px) {
  .story .fig-row { display: block; }
  .story .fig-row.fit { display: block; }
  .story .fig-row.fit figure img,
  .story .fig-row.fit figure video { height: auto; }
  .story .fig-row figure { margin: clamp(22px, 3.6vh, 42px) 0; }
  .story .fig-row figure img { height: auto; width: 100%; }
}

/* ---------- SPLIT SECTION (main column + aside) ----------
   <div class="split"> <div>…main…</div> <aside class="split-aside">…</aside> </div>
   Tune the ratio with --split, e.g. style="--split: 2fr 1fr". */
.story .split {
  display: grid;
  grid-template-columns: var(--split, 1.5fr 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  max-width: none;
}
.story .split > * { min-width: 0; }
.story .split p, .story .split ol.specs { max-width: none; }
.story .split h2 { margin-top: 0; }
/* a genuine sub-heading: same face as h2, one step down in size */
.story h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(18px, 2.1vw, 25px); line-height: 1; letter-spacing: .01em;
  margin: 0 0 clamp(10px, 1.6vh, 15px);
}
.story .split-aside p { font-size: 15px; line-height: 1.65; color: var(--graphite); }
.story .split-aside figure { margin: clamp(14px, 2vh, 20px) 0 0; }
.story .split-aside figure img { width: 100%; height: auto; }
@media (max-width: 860px) {
  .story .split { grid-template-columns: 1fr; gap: clamp(26px, 4vh, 40px); }
}

/* ---------- PER-ELEMENT SIZING ----------------------------------------
   Every figure and every table can be sized on its own, in any layout:

     <figure style="--fig-w: 480px">                  480px wide
     <figure class="center" style="--fig-w: 480px">   480px wide, centred
     <div class="tbl-wrap" style="--tbl-w: 620px">    620px wide table
     <div class="tbl-wrap center" style="--tbl-w: 620px">   …centred

   Leave the variable off and the element fills the column as before.
   Values can be px, %, or em. Nothing can exceed the column width.
   -------------------------------------------------------------------- */
.story figure   { width: var(--fig-w, auto); max-width: 100%; }
.story .tbl-wrap { width: var(--tbl-w, auto); max-width: 100%; }
.story figure.center,
.story .tbl-wrap.center { margin-left: auto; margin-right: auto; }

/* ---------- PAIR (put a figure and text beside each other) ----------
   <div class="pair">
     <figure style="--fig-w: 200px">…</figure>
     <p>text that sits to its right</p>
   </div>
   Add class="pair flip" to put the text on the left instead.
   Stacks below 860px. */
.story .pair { display: flex; align-items: flex-start; gap: clamp(12px, 1.6vw, 20px); }
.story .pair.flip { flex-direction: row-reverse; }
.story .pair > figure { margin: 0; flex: 0 0 auto; }
.story .pair > p { margin: 0; flex: 1 1 0; min-width: 0; }
@media (max-width: 860px) {
  .story .pair, .story .pair.flip { display: block; }
  .story .pair > figure { margin-bottom: clamp(12px, 1.8vh, 18px); }
}

/* ---------- SELF-HOSTED VIDEO IN A FIGURE ----------
   <figure><video src="../assets/video/x.mp4" controls playsinline muted loop></video>…
   Sized exactly like an <img>, so it works inside .fig-row and .pair too. */
.story figure video { width: 100%; height: auto; display: block; background: var(--ink); }
.story .fig-row figure video {
  max-height: var(--row-h, 340px); width: auto; height: auto; max-width: 100%;
}
@media (max-width: 760px) { .story .fig-row figure video { height: auto; width: 100%; } }

/* ---------- SIDE GROUP (two or more figures floated together) ----------
   Plain float:right reverses source order, so two side figures read
   right-to-left. Wrap them in .side-group and source order = reading order.

   <div class="with-side">
     <div class="side-group">
       <figure style="--fig-w: 300px">…leftmost…</figure>
       <figure style="--fig-w: 300px">…rightmost…</figure>
     </div>
     <p>text wraps to the left of the group</p>
   </div>                                                                */
.story .side-group {
  float: right; display: flex; align-items: flex-start; max-width: 62%;
  gap: clamp(10px, 1.2vw, 16px);
  margin: 4px 0 clamp(14px, 2vh, 22px) clamp(20px, 3vw, 38px);
}
.story .side-group figure { margin: 0; flex: 0 0 auto; }
@media (max-width: 860px) {
  .story .side-group { float: none; display: block; max-width: none; margin-left: 0; margin-right: 0; }
  .story .side-group figure { width: auto; margin-bottom: clamp(12px, 1.8vh, 18px); }
}

/* a self-hosted <video> fills the 16:9 film frame exactly like the iframe did */
.story .film .fr video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: var(--ink); }
