/* Layout, from Doug's sketch: a title box, three tabs hanging under it, then a rolling list of
   project cards in two columns that lean toward each other, each with a red hatched edge.
   One look on purpose: plain white, black ink, red for every highlight. */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --panel: #F4F2F2;
  --ink: #111111;
  --ink-2: #5A5555;
  --line: #DDD8D8;
  --accent: #D81E1E;
  --accent-soft: #F8D5D2;
  --accent-ink: #FFFFFF;
  --frame: #111111;
  --frame-ink: #FFFFFF;
  --frame-ink-2: #C9C5C5;
  --hatch: repeating-linear-gradient(-45deg, var(--accent) 0 2px, transparent 2px 8px);
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gap: clamp(1rem, 2.4vw, 1.75rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site {
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 3rem;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
}
main { display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 3.5rem); min-width: 0; }

.meta, .label, .crumb {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}
.crumb a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* The main header, the same on every page. Large at the top of a page. As the page scrolls,
   the script feeds it --s (pixels scrolled) and --p (0 to 1): the box shrinks to a bar, the name
   gets smaller, and the three tabs slide from under the box into it. It never leaves the screen. */
:root {
  --tabs-h: 42px;
  --bar-h: 62px;
  --box-max: clamp(190px, 27vw, 320px);
  --mast-max: calc(var(--box-max) + var(--tabs-h));
  --mast-top: .75rem;
  --mast-pad: clamp(1rem, 3vw, 2rem);
  --name-max: clamp(2.5rem, 8.4vw, 6.25rem);
  --name-min: 1.125rem;
  --name-top-min: 1.2rem;
  --strip-max: clamp(26px, 6vw, 76px);
  --strip-min: 26px;
  --tabs-end-left: calc(100% - var(--tabs-w, 420px) - var(--strip-min) - .6rem);
  --tabs-end-lift: calc((var(--bar-h) - var(--tabs-h) - 2px) / 2);
}
@media (max-width: 700px) {
  /* on a phone the small header keeps two rows: the name, then the tabs */
  :root { --bar-h: 100px; --box-max: 228px; --name-top-min: .8rem; --tabs-end-left: .5rem; --tabs-end-lift: .5rem; }
}
.mast { --p: 0; --s: 0px; background: var(--bg); padding-top: var(--mast-top); padding-bottom: .5rem; }
.mast-spacer { display: none; }
.js-on > .mast-spacer { display: block; flex: none; height: calc(var(--mast-top) + var(--mast-max) + .5rem); }
.js-on > .mast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--mast-top));
}
.mast-in {
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.mast-rel { position: relative; height: max(var(--bar-h), calc(var(--mast-max) - var(--s))); }
.mast-box {
  position: absolute;
  inset: 0 0 calc(var(--tabs-h) * (1 - var(--p))) 0;
  border: 2px solid var(--ink);
  background: var(--surface);
  overflow: hidden;
}
.mast-title {
  position: absolute;
  left: calc(var(--mast-pad) * (1 - var(--p)) + .9rem * var(--p));
  right: calc(var(--strip-max) + var(--mast-pad));
  top: calc(var(--mast-pad) * (1 - var(--p)) + var(--name-top-min) * var(--p));
}
.mast-name {
  margin: 0;
  font: 800 calc(var(--name-max) * (1 - var(--p)) + var(--name-min) * var(--p))/.95 var(--font-display);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.mast-name a { text-decoration: none; }
.mast-role {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: .9rem 0 0;
  opacity: calc(1 - var(--p) * 2.5);
}
.mast-nav {
  position: absolute;
  right: calc(var(--strip-max) + var(--mast-pad));
  bottom: var(--mast-pad);
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: calc(1 - var(--p) * 2.5);
}
.mast-nav a { text-decoration: none; color: var(--ink-2); padding-block: .25rem; border-bottom: 2px solid transparent; }
.mast-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.is-compact .mast-nav, .is-compact .mast-role { visibility: hidden; }
.mast-strip {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: calc(var(--strip-max) * (1 - var(--p)) + var(--strip-min) * var(--p));
  border-left: 2px solid var(--ink);
  background: var(--hatch), var(--surface);
}
.tabs {
  position: absolute;
  left: calc(var(--p) * var(--tabs-end-left));
  bottom: calc(var(--p) * var(--tabs-end-lift));
  display: flex;
  height: calc(var(--tabs-h) + 2px);
  white-space: nowrap;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font: 500 .8125rem/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--ink);
  margin-right: -2px;
  padding: 0 1.15rem;
}
.tab:hover { background: var(--accent-soft); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

/* The title box is the fourth choice, "all": the main screen opens on it with nothing filled,
   and clicking the name brings it back. Once the page scrolls, the bar fills red wherever no tab
   is lit: the main screen showing all three, About and Photography. Where a tab is lit (a tab
   picked, a project page) the tab carries the red and the bar stays white. */
.mast.no-tab.is-compact .mast-box { background: var(--accent); }
.mast.no-tab.is-compact .mast-name { color: var(--accent-ink); }
.mast.no-tab.is-compact .mast-box :focus-visible { outline-color: var(--ink); }

/* Scrolled, the hatched column turns white and becomes a scroll up arrow, on every page. */
.mast.is-compact .mast-strip { background: var(--surface); }
.mast-up {
  visibility: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.mast-up svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.mast.is-compact .mast-up { visibility: visible; }
.mast-up:hover { background: var(--accent-soft); }

/* On a phone the name and the role line each keep to one line, sized to the width of the box.
   9.5 and 30 are the widths of the two lines in em, measured in the site fonts at phone size,
   with a little to spare. The box is only as tall as it needs to be: the gap from the role line
   down to the links matches the gap from the links down to the box's bottom line. In DM Mono at
   line height 1.55 a capital sits .403em below the top of its line and its foot 1.115em below,
   so the box is 3 paddings + the name (.95) + the role line to its foot (1.115) + 49px (the
   .6rem gap over the role line, the links' line and padding, the borders; 3px of it trued up by
   measuring the frames, both gaps 29px at 390px wide). The page script sizes the spacer under
   the header to match. */
@supports (container-type: inline-size) {
  @media (max-width: 700px) {
    .mast-in { container-type: inline-size; }
    .mast { --title-w: calc(100cqi - 4px - 2 * var(--mast-pad) - var(--strip-max)); --name-max: calc(var(--title-w) / 9.5); }
    .mast-rel {
      --box-max: calc(3 * var(--mast-pad) + .95 * var(--title-w) / 9.5 + 1.115 * var(--title-w) / 30 + 49px);
      --mast-max: calc(var(--box-max) + var(--tabs-h));
    }
    .mast-name { white-space: nowrap; }
    .mast-role { white-space: nowrap; font-size: calc(var(--title-w) / 30); letter-spacing: .06em; margin-top: .6rem; }
  }
}
.tab-count { font-size: .6875rem; opacity: .75; }

/* get in contact: the last thing on every page */
.contact {
  display: grid;
  grid-template-columns: clamp(26px, 6vw, 76px) minmax(0, 1fr);
  border: 2px solid var(--ink);
  background: var(--surface);
  scroll-margin-top: calc(var(--bar-h) + 2rem);
}
.contact-strip { background: var(--hatch); border-right: 2px solid var(--ink); }
.contact-main { display: grid; gap: 1.25rem; padding: clamp(1rem, 3vw, 2rem); min-width: 0; }
.contact-head {
  font: 800 clamp(2rem, 6vw, 4.25rem)/.95 var(--font-display);
  letter-spacing: -.03em;
  margin: 0;
}
.contact-links { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; }
.contact-links a {
  font: 600 clamp(1.0625rem, 2.2vw, 1.5rem)/1.25 var(--font-display);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.contact-links a:hover { color: var(--accent); }
.contact-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--ink-2);
}
.contact-foot nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.contact-foot a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* the rolling list: two columns leaning toward each other */
.roll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(22px, 3.4vw, 38px);
  align-self: start;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transform: rotate(1.4deg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.entry:nth-child(even) {
  grid-template-columns: clamp(22px, 3.4vw, 38px) minmax(0, 1fr);
  transform: rotate(-1.4deg);
  margin-top: clamp(1.5rem, 6vw, 5rem);
}
.entry-hatch { background: var(--hatch); border-left: 2px solid var(--ink); }
.entry:nth-child(even) .entry-hatch { order: -1; border-left: 0; border-right: 2px solid var(--ink); }
a.entry:hover, a.entry:focus-visible { transform: rotate(0deg); box-shadow: 8px 8px 0 var(--accent); }
@media (prefers-reduced-motion: reduce) { .entry { transition: none; } }
.entry-main { display: grid; align-content: start; min-width: 0; }
.entry .frame { border: 0; border-bottom: 2px solid var(--ink); }
.entry-body { display: grid; gap: .45rem; padding: 1rem 1.1rem 1.15rem; min-width: 0; }
.entry-body h2 {
  font: 700 clamp(1.1875rem, 2.1vw, 1.5625rem)/1.14 var(--font-display);
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
.entry-info { margin: 0; color: var(--ink-2); font-size: .9375rem; max-width: 56ch; }
.facts { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .4rem; }
.facts li {
  font: 500 .6875rem/1.2 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: .3rem .5rem;
}
.entry-more {
  font: 500 .75rem/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: .3rem;
}
.entry-sources {
  font: 400 .6875rem/1.4 var(--font-mono);
  color: var(--accent);
  border-top: 1px dashed var(--accent);
  padding-top: .5rem;
  margin: .4rem 0 0;
}
@media (max-width: 440px) {
  /* keep the three tabs on one row on a phone */
  .tab { padding: 0 .6rem; font-size: .6875rem; letter-spacing: .05em; gap: .35rem; }
}
@media (max-width: 760px) {
  .roll { grid-template-columns: minmax(0, 1fr); }
  .entry { transform: rotate(.8deg); }
  .entry:nth-child(even) { transform: rotate(-.8deg); margin-top: 0; }
}

/* frames: every image, film, figure cover and slot sits in one */
.frame {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  background: var(--panel);
  color: var(--ink);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.frame > img, .film > img, .zoom > img { width: 100%; height: 100%; object-fit: cover; }
.frame--hero { aspect-ratio: 16 / 9; max-height: min(64vh, 620px); }
.frame--text { aspect-ratio: auto; min-height: clamp(200px, 32vw, 400px); }

.cover-stat { display: grid; align-content: end; gap: .5rem; padding: 1.25rem; height: 100%; min-width: 0; }
.cover-stat strong {
  font: 800 clamp(2.25rem, 6vw, 4rem)/.95 var(--font-display);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.cover-stat span {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--ink-2);
  max-width: 36ch;
}
.frame--hero .cover-stat { padding: clamp(1.25rem, 4vw, 2.5rem); }
.frame--hero .cover-stat strong { font-size: clamp(3rem, 11vw, 7.5rem); }
.frame--hero .cover-stat span { font-size: .875rem; }
.cover-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: .45rem .5rem;
  padding: 1.25rem;
  height: 100%;
}
.cover-flow span {
  font: 500 .75rem/1 var(--font-mono);
  letter-spacing: .04em;
  padding: .55rem .65rem;
  border: 1.5px solid var(--ink);
  background: var(--surface);
}
.cover-flow i { font-style: normal; color: var(--accent); }
.frame--hero .cover-flow { padding: clamp(1.25rem, 4vw, 2.5rem); gap: .6rem .7rem; }
.frame--hero .cover-flow span { font-size: clamp(.8125rem, 1.6vw, 1.0625rem); padding: .8rem .95rem; }

.slot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .75rem;
  padding: 1.25rem;
  height: 100%;
  text-align: center;
  background: var(--surface);
  color: var(--ink-2);
  outline: 2px dashed var(--accent);
  outline-offset: -10px;
}
.tape {
  font: 500 .6875rem/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  padding: .4rem .7rem;
}
.slot-text { font-size: .875rem; max-width: 30ch; }

.film { position: relative; display: block; height: 100%; }
.film .play {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font: 500 .75rem/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--frame-ink);
  color: var(--frame);
  padding: .65rem .85rem .65rem 2.1rem;
}
.film .play::before {
  content: "";
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  border-left: .6rem solid var(--accent);
  border-top: .38rem solid transparent;
  border-bottom: .38rem solid transparent;
}
.film:hover .play { background: var(--accent); color: var(--accent-ink); }
.film:hover .play::before { border-left-color: var(--accent-ink); }

/* work page */
.titleblock { display: grid; gap: .75rem; }
.titleblock h1 {
  font: 800 clamp(2rem, 5.2vw, 3.75rem)/1 var(--font-display);
  letter-spacing: -.025em;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0;
}
.slate {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border: 2px solid var(--ink);
}
.slate::before {
  content: "";
  flex: 0 0 100%;
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, var(--surface) 14px 28px);
}
.slate > div { flex: 1 1 210px; background: var(--surface); padding: .9rem 1rem; min-width: 0; }
.slate dt {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.slate dd { margin: .3rem 0 0; font-weight: 500; font-size: .9375rem; line-height: 1.35; }

.story { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--gap); }
.story section { min-width: 0; border-top: 3px solid var(--accent); padding-top: .9rem; }
.story h2 {
  font: 500 .75rem/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
}
.story p { margin: .6rem 0 0; max-width: 60ch; }

.block { display: grid; gap: 1rem; }
.block > h2 {
  font: 500 .75rem/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--gap); }
.grid--films { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.shot { margin: 0; display: grid; gap: .6rem; min-width: 0; align-content: start; text-decoration: none; }
.shot figcaption, .shot-cap { display: grid; gap: .25rem; }
.shot-title { font: 600 1rem/1.3 var(--font-display); }

/* photography: each photo whole, never cropped, in columns that keep their own heights */
.photos { columns: 3 260px; column-gap: var(--gap); }
.photos .shot { break-inside: avoid; margin-bottom: var(--gap); }
.frame--photo { aspect-ratio: auto; }
.frame--photo .zoom, .frame--photo .zoom > img { height: auto; }
a.shot:hover .shot-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fineprint { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-2); margin: 0; }
.zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--gap); }
.parts article { background: var(--surface); border: 2px solid var(--ink); padding: 1.1rem 1.15rem; min-width: 0; }
.parts h3 { font: 700 1.0625rem/1.2 var(--font-display); margin: 0 0 .5rem; }
.parts p { margin: 0; color: var(--ink-2); font-size: .9375rem; }

/* figures: one hue for every mark, text in ink */
.fig {
  margin: 0;
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  padding: clamp(1rem, 3vw, 1.75rem);
  min-width: 0;
}
.fig figcaption {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.fig-hero { font: 800 clamp(2rem, 6vw, 3.5rem)/1 var(--font-display); letter-spacing: -.02em; margin: 0; }
.fig-hero small { font: 500 1rem/1.3 var(--font-body); letter-spacing: 0; color: var(--ink-2); margin-left: .35rem; }
.meter { height: 16px; background: var(--accent-soft); border-radius: 4px; overflow: hidden; }
.meter-fill { height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.meter-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--ink-2);
}
.fig-table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.fig-table th { text-align: left; font-weight: 400; color: var(--ink-2); padding: .45rem 1rem .45rem 0; border-top: 1px solid var(--line); }
.fig-table td { text-align: right; font-weight: 600; padding: .45rem 0; border-top: 1px solid var(--line); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.bars li { display: grid; grid-template-columns: 6rem 1fr; gap: .25rem 1rem; align-items: center; }
.bar-label { font-size: .9375rem; }
.bar-track { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.bar { height: 14px; background: var(--accent); border-radius: 0 4px 4px 0; min-width: 2px; flex: 0 0 auto; }
.bar-value { font: 600 .9375rem/1 var(--font-body); font-variant-numeric: tabular-nums; }
.range { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; }
.range-end { font: 800 clamp(1.5rem, 4vw, 2.25rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.range-track { height: 16px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-soft), var(--accent)); }
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 1rem .75rem;
  counter-reset: step;
}
.flow li {
  counter-increment: step;
  border-top: 3px solid var(--accent);
  padding-top: .6rem;
  display: grid;
  gap: .25rem;
  align-content: start;
  min-width: 0;
}
.flow li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--ink-2);
}
.flow b { font: 700 1rem/1.2 var(--font-display); }
.flow span { font-size: .875rem; color: var(--ink-2); }

/* preview only: notes for Doug */
.notes {
  background: var(--surface);
  color: var(--ink);
  border: 2px dashed var(--accent);
  padding: 1rem 1.15rem;
  display: grid;
  gap: .6rem;
  font-size: .9375rem;
}
.notes h2 {
  font: 500 .6875rem/1.2 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.notes ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }

.next { display: grid; gap: .4rem; text-decoration: none; border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.next-title { font: 800 clamp(1.5rem, 4vw, 2.5rem)/1.05 var(--font-display); letter-spacing: -.02em; }
.next-title::after { content: " \2192"; color: var(--accent); }

/* about */
.pagehead { display: grid; gap: .75rem; }
.pagehead h1 {
  font: 800 clamp(2rem, 5.2vw, 3.75rem)/1 var(--font-display);
  letter-spacing: -.025em;
  margin: 0;
}
.prose { display: grid; gap: 1rem; max-width: 65ch; }
.prose p { margin: 0; font-size: 1.0625rem; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.two > * { min-width: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li {
  display: grid;
  grid-template-columns: minmax(8.5rem, 11rem) 1fr;
  gap: .25rem 1.25rem;
  padding-block: .9rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; } }
.timeline h3 { font: 700 1.0625rem/1.25 var(--font-display); margin: 0; }
.timeline .org { margin: 0; color: var(--ink-2); font-size: .875rem; }
.timeline p { margin: .3rem 0 0; font-size: .9375rem; }

/* enlarged view */
.lightbox {
  border: 0;
  padding: 0;
  background: var(--frame);
  color: var(--frame-ink);
  width: min(96vw, 1100px);
  max-height: 92vh;
}
.lightbox::backdrop { background: color-mix(in srgb, var(--frame) 86%, transparent); }
.lightbox-body { aspect-ratio: 16 / 9; display: grid; background: var(--frame); }
.lightbox-body img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-body iframe { width: 100%; height: 100%; border: 0; }
.lightbox-cap { margin: 0; padding: .75rem 1rem; font-family: var(--font-mono); font-size: .75rem; color: var(--frame-ink-2); }
.lightbox-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 1;
  font: 500 .6875rem/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--frame-ink);
  color: var(--frame);
  border: 0;
  padding: .55rem .7rem;
  cursor: pointer;
}

/* diagrams: inline drawings on a 480 x 300 board, ink lines, red for the step that matters */
.dia { display: block; width: 100%; height: 100%; background: var(--surface); }
.frame--dia { aspect-ratio: 16 / 10; background: var(--surface); }
.dia text { font-family: var(--font-mono); font-size: 12.5px; fill: var(--ink); text-anchor: middle; }
.dia .nt { font: 700 15px var(--font-display); }
.dia .nt.sm { font-size: 12.5px; }
.dia .ns { font-size: 12px; fill: var(--ink-2); }
.dia .cap { font-size: 12.5px; fill: var(--ink-2); letter-spacing: .02em; }
.dia .big { font: 800 30px var(--font-display); }
.dia .left { text-anchor: start; }
.dia .n { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.dia .n.hot { fill: var(--accent); }
.dia text.hot { fill: #fff; }
.dia .n.ghost { fill: none; stroke-dasharray: 5 4; }
.dia .hatch { stroke: var(--ink); stroke-width: 2; }
.dia .bar { fill: var(--accent); }
.dia .hxl { stroke: var(--accent); stroke-width: 3; }
.dia .mk { fill: var(--ink); }
.dia .mkr { fill: var(--accent); }
.dia .l { fill: none; stroke: var(--ink); stroke-width: 2; }
.dia .l.red { stroke: var(--accent); }
.dia .l.go { stroke-dasharray: 7 5; }
.fig--dia .frame--dia { border: 0; max-width: 760px; width: 100%; justify-self: center; }
.parts .frame--dia { border: 0; border-bottom: 2px solid var(--ink); margin: -1.1rem -1.15rem 1rem; max-width: none; }

/* a slate: the card for a shoot that has no photo yet */
.cover-slate { display: grid; grid-template-rows: auto 1fr; height: 100%; background: var(--surface); }
.slate-bar { height: clamp(18px, 3vw, 28px); background: var(--hatch); border-bottom: 2px solid var(--ink); }
.slate-body { display: grid; align-content: center; gap: .5rem; padding: 1rem 1.25rem 1.1rem; min-width: 0; }
.slate-date { font: 500 .75rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.cover-slate strong { font: 800 clamp(1.9rem, 4.6vw, 3.25rem)/1 var(--font-display); letter-spacing: -.03em; }
.cover-slate ul { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .4rem; }
.cover-slate li { font: 500 .6875rem/1 var(--font-mono); letter-spacing: .03em; border: 1.5px solid var(--ink); padding: .35rem .45rem; }

/* who owns what: the table under the team map */
.owners { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.owners th, .owners td { text-align: left; vertical-align: top; padding: .6rem .9rem .6rem 0; border-top: 1px solid var(--line); }
.owners thead th { font: 500 .75rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border-top: 0; }
.owners tbody th { font-weight: 700; }
.owners .me { color: var(--accent); font-weight: 700; }
.owners-wrap { overflow-x: auto; }

/* motion: pages hand over to each other, cards rise in, the dashes in a diagram move along
   the flow. All of it is off for anyone who asks for less motion, and for review frames. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .mast { view-transition-name: mast; }
  main { view-transition-name: page; }
  ::view-transition-old(page) { animation: page-out .16s ease-in both; }
  ::view-transition-new(page) { animation: page-in .34s cubic-bezier(.2, .7, .2, 1) both; }
  .roll:not([hidden]) > .entry { animation: entry-in .5s cubic-bezier(.2, .7, .2, 1) both; }
  .roll > .entry:nth-child(2) { animation-delay: .06s; }
  .roll > .entry:nth-child(3) { animation-delay: .12s; }
  .roll > .entry:nth-child(4) { animation-delay: .18s; }
  .roll > .entry:nth-child(n+5) { animation-delay: .24s; }
  .dia .l.go { animation: dia-march 1.1s linear infinite; }
  .mast-box, .mast-name, .mast-strip { transition: background-color .25s ease, color .25s ease; }
  /* Contact and the scroll up arrow glide instead of jumping */
  html { scroll-behavior: smooth; }
}
@keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes entry-in { from { opacity: 0; translate: 0 24px; } }
@keyframes dia-march { to { stroke-dashoffset: -12; } }
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; }

/* design rounds: one row per version, the board on the left, what changed on the right */
.rounds { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.round {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding-top: clamp(1rem, 3vw, 1.5rem);
  border-top: 2px solid var(--ink);
}
.frame--round { aspect-ratio: 4 / 3; }
.frame--round img { object-position: top; }
.round-label { margin: 0 0 .35rem; font: 500 .75rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.round h3 { margin: 0 0 .5rem; font: 700 clamp(1.125rem, 2.2vw, 1.375rem)/1.2 var(--font-display); }
.round-text p:last-child { margin: 0; color: var(--ink-2); font-size: .9375rem; max-width: 52ch; }
@media (max-width: 700px) { .round { grid-template-columns: minmax(0, 1fr); } }

