/* ============================================================
   Black Flag Building Workshop — design system, session 1
   Concept: plates and spec labels. A monograph interior crossed
   with a drawing set. See DECISIONS.md.
   Palette: Bond / Mount / Ink / Graphite / Oxide.
   Type: Spectral (voice) + IBM Plex Mono (structure). Both SIL OFL.
   ============================================================ */

/* ---------- fonts (self-hosted, latin subsets) ---------- */
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/spectral-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/spectral-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/spectral-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/spectral-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/spectral-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  /* Bob's palette — charcoal / white / punchy red, with a readable ochre sibling.
     Grey #404040 and red #FF3F00 are his brand colors; the ochre shares the red's
     hue but is dark enough to read as text. Session-1 warm palette superseded — see DECISIONS.md. */
  --bond: #f5f5f4;      /* page ground — his white, a whisper of grey so plates pop */
  --mount: #ffffff;     /* plate mounts and panels — pure white */
  --ink: #404040;       /* primary text and marks — his dark grey (9.4:1 on ground) */
  --graphite: #5c5c5c;  /* secondary text, captions (6.0:1) */
  --oxide: #a8471e;     /* readable accent — links, hover, placeholders (5.3:1); the deep sibling of the red */
  --red: #a8471e;       /* accent is the ochre now — Bob found #FF3F00 too vibrant on screen (kept name to avoid churn) */
  --trace: #f5f0e4;     /* soft warm paper — dialed back per Bob (the yellow band was too prominent) */
  --trace-edge: #e9e2d0;
  --tape: rgba(214, 202, 165, 0.55);
  --rule: rgba(64, 64, 64, 0.18); /* fine frame lines; frames and spec tables only */

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;

  --fs-body: 1.0625rem;
  --fs-meta: 0.875rem;
  --fs-label: 0.8125rem;
  --fs-lede: clamp(1.3rem, 1.05rem + 1.1vw, 1.66rem);
  --fs-h1: clamp(2.1rem, 1.55rem + 2.6vw, 3.15rem);
  --fs-h2: clamp(1.55rem, 1.3rem + 1.2vw, 2rem);
  --fs-h3: 1.25rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 2.75rem;
  --space-5: 4.5rem;
  --space-6: 7rem;

  --wrap: 76rem;
  --measure: 66ch;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { background: var(--bond); }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bond);
  overflow-x: hidden; /* guard for full-bleed (.bleed) sections */
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.008em; margin: 0; }
h1 { font-size: var(--fs-h1); font-weight: 500; }
h2 { font-size: var(--fs-h2); font-weight: 500; }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* focus + skip link */
:focus-visible { outline: 2px solid var(--oxide); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -100vw;
  top: 0;
  z-index: 10;
  background: var(--ink);
  color: var(--bond);
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7em 1.1em;
}
.skip:focus-visible { left: 0; }

a { color: inherit; }

@media (prefers-reduced-motion: no-preference) {
  a, .btn { transition: color 120ms ease, background-color 120ms ease; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- masthead ---------- */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--ink);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.flag { width: 40px; height: 40px; flex: none; }

.wordmark-img { height: 46px; width: auto; display: block; }

.masthead nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0;
  padding: 0;
}

.masthead nav a {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
}
.masthead nav a:hover { color: var(--oxide); }
.masthead nav a[aria-current="page"] { border-bottom-color: var(--red); }

/* ---------- shared components ---------- */

/* section label: small mono caps under a short drafting tick */
.label {
  display: inline-block;
  position: relative;
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--graphite);
  padding-top: 0.6rem;
  margin: 0;
}
.label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25rem;
  height: 2px;
  background: var(--red);
}

.page-head { margin-top: var(--space-5); }
.page-head .label { margin-bottom: var(--space-3); }
.page-head h1 { max-width: 22ch; }

.impact {
  font-size: var(--fs-lede);
  line-height: 1.45;
  max-width: 30em;
  margin-top: var(--space-3);
}

/* prose */
.prose { max-width: var(--measure); margin-top: var(--space-4); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; max-width: 24ch; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--oxide); }
.prose em { font-style: italic; }
.prose .aside { color: var(--graphite); font-size: 0.9375rem; }

/* placeholders — always visible, always obvious */
.ph {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.85em;
  letter-spacing: 0;
  color: var(--oxide);
  overflow-wrap: anywhere;
}

/* plates — drawings mounted like monograph figures */
.plate { margin: var(--space-5) 0 0; }
.plate-frame {
  background: var(--mount);
  border: 1px solid var(--rule);
  padding: clamp(0.9rem, 2.4vw, 1.9rem);
}
.plate-frame img { width: 100%; }
.plate-frame picture { display: block; }
.plate-frame img.img-natural { width: auto; max-width: 100%; margin-inline: auto; }
.aside { font-style: italic; color: var(--graphite); font-size: 0.9375rem; }
.plate-frame--empty {
  display: grid;
  place-items: center;
  min-height: 16rem;
  text-align: center;
  padding: var(--space-4);
}
.plate-cap {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: var(--fs-meta);
  color: var(--graphite);
}
.plate-no {
  flex: none;
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.07em;
  color: var(--ink);
}
figure { margin: 0; }

/* spec block — the drawing-set title block */
.spec {
  font-family: var(--mono);
  font-size: var(--fs-meta);
  border-top: 2px solid var(--ink);
  max-width: 44rem;
  margin: var(--space-4) 0 0;
}
.spec > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.spec dt {
  color: var(--graphite);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.spec dd { margin: 0; }

/* field-note type tag */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  padding: 0.1em 0.5em;
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: var(--space-3);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  color: var(--graphite);
}

/* archive list (field notes index) */
.archive {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  max-width: 56rem;
}
.archive li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}
.archive .a-title { font-weight: 700; font-size: 1.125rem; }
.archive .a-title a { text-decoration: none; }
.archive .a-title a:hover { color: var(--oxide); }
.archive .a-date {
  font-family: var(--mono);
  font-size: var(--fs-meta);
  color: var(--graphite);
}

/* project rows — editorial, not cards */
.rows { display: grid; gap: var(--space-5); margin-top: var(--space-4); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-3) var(--space-4);
  align-items: start;
}
.row-thumb .plate-frame { padding: 0.8rem; }
.row-thumb .plate-frame--empty { min-height: 11rem; padding: 1.5rem; }
.row-body h3 { max-width: 24ch; }
.row-body h3 a { text-decoration: none; }
.row-body h3 a:hover { color: var(--oxide); }
.row-meta {
  font-family: var(--mono);
  font-size: var(--fs-meta);
  color: var(--graphite);
  margin-top: 0.6rem;
}
.row-impact { margin-top: 0.7rem; max-width: 52ch; }
.row--ph {
  display: block;
  padding: 0.4rem 0 0;
}
.row--ph .aside {
  font-style: italic;
  color: var(--graphite);
  font-size: 0.9375rem;
  margin-top: 0.35rem;
}

/* mono utility link + button */
.monolink {
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--fs-meta);
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}
.monolink:hover { color: var(--oxide); }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  padding: 0.7em 1.2em;
  text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--bond); }

.backlink { margin-top: var(--space-5); }

/* ---------- drawing table (homepage hero) ---------- */
.table-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: var(--space-5);
}
.hero-eyebrow {
  position: relative;
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0;
  padding-left: 2.75rem;
}
.hero-eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 2.25rem; height: 2px;
  background: var(--red);
}
.hero-thesis {
  font-weight: 500;
  font-size: clamp(2.4rem, 1.35rem + 4.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-support {
  font-size: var(--fs-lede);
  line-height: 1.4;
  color: var(--graphite);
  max-width: 34ch;
  margin-top: var(--space-3);
}
.hero-text .register { margin-top: var(--space-4); }

.sheet--hero { margin: 0; }
.sheet-paper {
  position: relative;
  background: var(--mount);
  border: 1px solid var(--rule);
  padding: clamp(0.7rem, 1.8vw, 1.4rem);
  transform: rotate(-1.1deg);
  box-shadow: 0 16px 38px rgba(25, 25, 23, 0.13);
}
.sheet-paper img { width: 100%; display: block; }
.sheet-cap {
  font-family: var(--mono);
  font-size: var(--fs-meta);
  color: var(--graphite);
  margin-top: 1rem;
  transform: rotate(-0.7deg);
}
.sheet-tag {
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--red);
  margin-right: 0.6rem;
}

@media (max-width: 800px) {
  .table-hero { grid-template-columns: 1fr; gap: var(--space-4); }
  .sheet-paper, .sheet-cap { transform: none; }
}

/* full-bleed helper — body has overflow-x:hidden to catch scrollbar overflow */
.bleed { width: 100vw; margin-left: 50%; transform: translateX(-50%); }

/* hero v2 — immersive drawing-table band, edge to edge */
.hero2 { background: var(--trace); border-block: 1px solid var(--trace-edge); }
.hero2-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  padding-block: clamp(2rem, 4.5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 820px) {
  .hero2-inner { grid-template-columns: 1fr; gap: var(--space-4); padding-block: var(--space-5); }
}

/* work v2 — big, image-forward tiles instead of small-thumb rows */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr));
  gap: var(--space-5) var(--space-4);
  margin-top: var(--space-4);
}
.work-img { display: block; }
.work-img .plate-frame { padding: 0.6rem; }
.work-title { margin-top: 1.1rem; }
.work-title a { text-decoration: none; }
.work-title a:hover { color: var(--oxide); }
.work-tile .row-meta { margin-top: 0.5rem; }
.work-tile .row-impact { margin-top: 0.6rem; max-width: 46ch; }

/* ---------- homepage ---------- */

/* opening — thesis first (a stated position, not a tagline),
   backed immediately by the trust register. */
.opening { margin-top: var(--space-5); }
.thesis {
  font-weight: 500;
  font-size: clamp(1.95rem, 1.2rem + 3.3vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 19ch;
  text-wrap: balance;
}
/* register — practitioner evidence, set like a map legend:
   small oxide markers echo the atlas's cartography. */
.register {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: var(--space-3);
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
}
.register span { display: inline-flex; align-items: baseline; }
.register span::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.6rem;
  background: var(--red);
  flex: none;
  transform: translateY(0.05em);
}

/* practice index — the three lines as a catalog, borrowing the
   bracketed technical labels from as-associates.jp. */
.index {
  margin-top: var(--space-3);
  border-top: 2px solid var(--ink);
  max-width: 54rem;
}
.index-row {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 1rem 2.25rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}
.index-row dt { margin: 0; }
.index-row dt a {
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--fs-meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.index-row dt a::before { content: "[ "; color: var(--red); }
.index-row dt a::after { content: " ]"; color: var(--red); }
.index-row dt a:hover { color: var(--oxide); }
.index-row dd { margin: 0; color: var(--graphite); }

/* atlas — the one memorable element. printers' crop marks sit
   outside the frame corners; they hide on narrow screens. */
.atlas { position: relative; margin: var(--space-5) 0 0; }
.atlas-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--mount);
  border: 1px solid var(--rule);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}
/* empty state: faint drafting grid — prepared paper, not a broken image */
.atlas-frame--empty {
  background-image: radial-gradient(circle, rgba(25, 25, 23, 0.07) 1px, transparent 1.15px);
  background-size: 26px 26px;
  background-position: center;
}

.atlas > .plate-cap { margin-top: 2.2rem; }

.atlas-kicker {
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.atlas-desc {
  font-style: italic;
  color: var(--graphite);
  max-width: 36ch;
}
.atlas-frame .ph { max-width: 48ch; }

.atlas::before, .atlas::after,
.atlas-frame::before, .atlas-frame::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
}
/* top-left */
.atlas::before {
  top: -24px; left: -24px;
  background-size: 1.5px 15px, 15px 1.5px;
  background-position: right 0 top 2px, left 2px bottom 0;
}
/* top-right */
.atlas::after {
  top: -24px; right: -24px;
  background-size: 1.5px 15px, 15px 1.5px;
  background-position: left 0 top 2px, right 2px bottom 0;
}
/* bottom-left */
.atlas-frame::before {
  bottom: -24px; left: -24px;
  background-size: 1.5px 15px, 15px 1.5px;
  background-position: right 0 bottom 2px, left 2px top 0;
}
/* bottom-right */
.atlas-frame::after {
  bottom: -24px; right: -24px;
  background-size: 1.5px 15px, 15px 1.5px;
  background-position: left 0 bottom 2px, right 2px top 0;
}

.positioning {
  font-size: var(--fs-lede);
  line-height: 1.5;
  max-width: 29em;
  margin-top: var(--space-5);
}

.home-section { margin-top: var(--space-6); }
.home-section > .label { margin-bottom: 0; }
.home-more { margin-top: var(--space-4); }

.note-teaser { margin-top: var(--space-4); max-width: var(--measure); }
.note-teaser .aside {
  font-style: italic;
  color: var(--graphite);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

/* ---------- colophon ---------- */
.colophon { margin-top: var(--space-6); border-top: 2px solid var(--ink); }
.colophon-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: var(--space-4);
}
.colophon-spiral { width: 33px; height: auto; }
.colophon-name {
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.colophon-meta {
  font-family: var(--mono);
  font-size: var(--fs-label);
  color: var(--graphite);
  margin-top: 0.35rem;
}

/* ---------- style guide ---------- */
.sg-section { margin-top: var(--space-5); }
.sg-section > .label { margin-bottom: var(--space-3); }
.sg-note { color: var(--graphite); font-size: 0.9375rem; max-width: var(--measure); margin-top: var(--space-2); }

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 1rem;
  margin-top: var(--space-3);
}
.swatch { background: var(--mount); border: 1px solid var(--rule); }
.swatch-chip { height: 5.5rem; border-bottom: 1px solid var(--rule); }
.swatch-info {
  font-family: var(--mono);
  font-size: var(--fs-label);
  padding: 0.8rem 0.9rem;
}
.swatch-info strong { display: block; letter-spacing: 0.05em; text-transform: uppercase; }
.swatch-info span { color: var(--graphite); }

.specimen { margin-top: var(--space-3); max-width: var(--measure); }
.specimen + .specimen { margin-top: var(--space-4); }
.specimen-caption {
  font-family: var(--mono);
  font-size: var(--fs-label);
  color: var(--graphite);
  margin-top: 0.6rem;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .atlas::before, .atlas::after,
  .atlas-frame::before, .atlas-frame::after { content: none; }
}

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; }
  .archive li { grid-template-columns: 1fr; gap: 0.35rem; }
  .spec > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .masthead { align-items: flex-start; }
}

@media (max-width: 640px) {
  .index-row { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* ============================================================
   Session 2 — process as a first-class part of every project.
   The drawing set laid out in order: one drafting line runs the
   length of the band; each sheet hangs from a tick on it, dated
   as drawn. Notes are set in the accent, the screen's red pen.
   ============================================================ */
.process {
  background: var(--trace);
  border-block: 1px solid var(--trace-edge);
  margin-top: var(--space-6);
}
.process-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  padding-block: var(--space-5) var(--space-4);
}
.process-head { max-width: var(--measure); }
.process-title { font-size: var(--fs-h2); font-weight: 500; }
.process-intro { margin-top: 0.9rem; color: var(--graphite); }

.process-run {
  --sheet-h: clamp(16rem, 44vh, 26rem);
  list-style: none;
  display: flex;
  align-items: flex-start;
  /* run past the right edge of the content column to the screen edge,
     so the next sheet visibly waits off-page */
  margin: var(--space-4) calc((100% - 100vw) / 2) 0 0;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 1.75rem 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}
.process-run:focus-visible { outline-offset: 6px; }
.process-step {
  flex: none;
  scroll-snap-align: start;
  padding-right: clamp(1.75rem, 3.5vw, 3rem);
  border-top: 2px solid var(--ink);
  position: relative;
}
.process-step:last-child { padding-right: 0; }
/* the tick each sheet hangs from */
.process-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -9px;
  width: 2px;
  height: 16px;
  background: var(--ink);
}
.process-date {
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--fs-meta);
  letter-spacing: 0.04em;
  padding: 0.85rem 0 1rem;
}
.process-sheet { margin: 0; }
.process-paper {
  background: var(--mount);
  border: 1px solid var(--rule);
  padding: 0.75rem;
  box-shadow: 0 10px 26px rgba(25, 25, 23, 0.09);
  width: max-content;
}
.process-paper img { height: var(--sheet-h); width: auto; max-width: none; }
.sheet-link { display: block; cursor: zoom-in; }
.sheet-link:focus-visible { outline-offset: 4px; }
.process-sheet figcaption { max-width: 22rem; margin-top: 1rem; }
.process-name { font-weight: 700; line-height: 1.35; }
.process-note {
  margin-top: 0.4rem;
  color: var(--oxide);
  font-size: 0.975rem;
  line-height: 1.5;
}

.plates-rest { margin-top: var(--space-2); }

@media (max-width: 640px) {
  .process-run { --sheet-h: 15rem; }
  .process-sheet figcaption { max-width: 17rem; }
}

/* homepage hero — three iterations of one plan, stacked on the table,
   latest on top. Replaces the single sketchbook sheet. */
.stack {
  position: relative;
  display: block;
  aspect-ratio: 1 / 0.84;
  text-decoration: none;
}
.stack-sheet {
  position: absolute;
  width: 54%;
  background: var(--mount);
  border: 1px solid var(--rule);
  padding: clamp(0.45rem, 1.2vw, 0.85rem);
  box-shadow: 0 14px 34px rgba(25, 25, 23, 0.12);
}
.stack-sheet img { width: 100%; }
.stack-sheet:nth-child(1) { left: 0;   top: 7%; transform: rotate(-4.5deg); }
.stack-sheet:nth-child(2) { left: 22%; top: 0;  transform: rotate(2deg); }
.stack-sheet:nth-child(3) { left: 44%; top: 9%; transform: rotate(-1deg); }
@media (prefers-reduced-motion: no-preference) {
  .stack-sheet { transition: transform 260ms ease; }
  .stack:hover .stack-sheet:nth-child(1) { transform: rotate(-6deg) translateX(-3%); }
  .stack:hover .stack-sheet:nth-child(3) { transform: rotate(0deg) translateX(3%); }
}
.stack:focus-visible { outline-offset: 10px; }
.hero2 .sheet-cap { transform: none; margin-top: 1.4rem; }

/* Building Workshop index: other work. Each project is a row of
   sheets at one shared height, natural proportions, like a drawing set
   laid out along the table. Text sits to the left on wide screens. */
.other { margin-top: var(--space-6); }
.other-title { font-size: var(--fs-h2); font-weight: 500; }
.other-intro { margin-top: 0.8rem; color: var(--graphite); max-width: var(--measure); }
.other-row {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: var(--space-3) var(--space-4);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  border-top: 2px solid var(--ink);
}
.other-row h3 { max-width: 20ch; }
.other-summary { margin-top: 0.7rem; color: var(--graphite); }
.other-sheets {
  /* justified rows: each sheet grows in proportion to its aspect ratio,
     so a row fills the column at one even height */
  --row-h: 13rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 1.25rem;
  align-items: flex-start;
  min-width: 0;
}
.other-sheets::after { content: ""; flex: 999 1 0; }
.other-sheet {
  flex: var(--r) 1 calc(var(--r) * var(--row-h));
  min-width: 0;
  margin: 0;
}
.other-sheet .process-paper { padding: 0.55rem; box-shadow: none; width: auto; }
.other-sheet .process-paper img { width: 100%; height: auto; max-width: 100%; }
.other-sheet figcaption {
  font-family: var(--mono);
  font-size: var(--fs-label);
  color: var(--graphite);
  margin-top: 0.6rem;
  max-width: 18rem;
}
@media (max-width: 820px) {
  .other-row { grid-template-columns: 1fr; }
  .other-sheets { --row-h: 9rem; }
}

/* ---------- field notes (session 2) ----------
   An entry is a run of numbered plates in page order. Half plates pair up
   two to a row; wide plates take the row; a solo plate is a lone portrait
   held at half width and centered so the run keeps its rhythm. */
.note .spec { margin-top: var(--space-4); }
.note-prose { margin-top: var(--space-4); }
.note-plates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-3);
  margin-top: var(--space-5);
  align-items: end;
}
.note-plates .plate { margin: 0; }
.note-plate--wide, .note-group { grid-column: 1 / -1; }
.note-plate--solo { grid-column: 1 / -1; width: calc(50% - var(--space-3) / 2); justify-self: center; }
.note-plate .plate-frame { padding: clamp(0.6rem, 1.6vw, 1.2rem); }
.note-plate .sheet-link { display: block; }
.note-plate img { width: 100%; height: auto; display: block; }
.note-group {
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 2px solid var(--ink);
  padding-top: 0.7rem;
  margin: var(--space-3) 0 calc(var(--space-4) * -0.5);
}
.note-group:first-child { margin-top: 0; }
@media (max-width: 720px) {
  .note-plates { grid-template-columns: 1fr; gap: var(--space-3); }
  .note-plate--solo { width: 100%; }
}

/* archive with cover plates */
.archive--plates li {
  grid-template-columns: 12rem minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}
.a-thumb {
  display: block;
  background: var(--mount);
  border: 1px solid var(--rule);
  padding: 0.55rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.a-thumb picture, .a-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.a-thumb:hover { border-color: var(--ink); }
.a-meta { display: flex; gap: 0.9rem; align-items: center; }
.archive--plates .a-title { margin-top: 0.7rem; font-size: 1.375rem; line-height: 1.2; }
.a-summary { margin-top: 0.5rem; max-width: 40em; color: var(--graphite); }
@media (max-width: 720px) {
  .archive--plates li { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* homepage feature */
.note-feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-4);
  align-items: end;
  margin-top: var(--space-4);
  text-decoration: none;
  color: inherit;
}
.note-feature-img img { width: 100%; display: block; }
.note-feature:hover .note-feature-img { border-color: var(--ink); }
.note-feature-title { margin-top: 0.8rem; font-size: 1.75rem; line-height: 1.15; }
.note-feature:hover .note-feature-title { color: var(--oxide); }
.note-feature-sum { margin-top: 0.75rem; color: var(--graphite); }
.note-feature-count { margin-top: var(--space-2); font-family: var(--mono); font-size: var(--fs-meta); color: var(--oxide); }
@media (max-width: 820px) { .note-feature { grid-template-columns: 1fr; gap: var(--space-2); } }

/* ---------- common grounds (session 2) ---------- */
.grounds-section { margin-top: var(--space-5); }
.grounds-section > .label { margin-bottom: var(--space-3); }
.grounds-spec { max-width: 56rem; margin-top: 0; }
.grounds-spec > div { grid-template-columns: 11rem 1fr; align-items: baseline; padding: 1rem 0; }
.grounds-spec dd { display: grid; gap: 0.25rem; }
.g-org { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.g-org a { text-decoration: none; }
.g-org a:hover { color: var(--oxide); }
.g-note { font-family: var(--serif); font-size: var(--fs-body); color: var(--graphite); }
.gathering {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-4);
  align-items: start;
  border-top: 2px solid var(--ink);
  padding-top: var(--space-3);
}
.gathering-title { margin-top: 0.8rem; font-size: 1.5rem; line-height: 1.2; }
.gathering-text p:last-child { margin-top: 0.8rem; max-width: 34em; }
.gathering-plates { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.gathering-plates .plate { margin: 0; }
.gathering-plates .plate-frame { padding: 0.6rem; }
.gathering-plates img { width: 100%; height: auto; display: block; }
.grounds-related { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
@media (max-width: 820px) {
  .gathering { grid-template-columns: 1fr; }
  .grounds-spec > div { grid-template-columns: 1fr; gap: 0.3rem; }
}
.grounds-section .prose { margin-top: 0; }
.gathering { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: end; }
.gathering-lead { margin: 0; }
.gathering-lead img { width: 100%; height: auto; display: block; }
.gathering-run { margin-top: var(--space-4); }

/* ---------- review pass (session 2) ---------- */
/* Selected work: the flagship takes the full row, the next two pair below. */
@media (min-width: 900px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-tile--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-4); align-items: end; }
  .work-tile--lead .work-title { margin-top: 0; font-size: 1.5rem; }
}
/* Project plates: tall photographs are held to the screen height and centered on their mount. */
.project .plate-frame img { max-height: 82vh; width: auto; max-width: 100%; margin-inline: auto; display: block; }
.project .plate { width: fit-content; max-width: 100%; margin-inline: auto; }
.project .plate .plate-cap { max-width: 60ch; }

/* Connected: cross-links between the dependable work and the open questions. */
.related { margin-top: var(--space-5); max-width: 56rem; }
.related > .label { margin-bottom: var(--space-2); }
.related ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.related li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.related-link { text-decoration: none; display: flex; gap: 1rem; align-items: baseline; }
.related-kind { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--oxide); min-width: 11rem; }
.related-title { font-weight: 700; font-size: 1.2rem; }
.related-link:hover .related-title { color: var(--oxide); }
.related-note { margin: 0.35rem 0 0 12rem; color: var(--graphite); max-width: 40em; }
@media (max-width: 720px) { .related-link { flex-direction: column; gap: 0.2rem; } .related-note { margin-left: 0; } }

/* Nov 2026: project outcome line, homepage call to action */
.project .outcome { font-family: var(--mono, "IBM Plex Mono", monospace); font-size: .9rem; margin-top: .75rem; max-width: 62ch; }
.home-cta-line { font-size: 1.25rem; max-width: 40ch; }
