/* Daniel Goyette portfolio: tokens, base, Final view, components.
   Draft view lives in draft.css, under html[data-view="draft"]. */

/* ---------- Tokens ---------- */
:root {
  --ink: #27231e; /* warm charcoal (Nov 19 preview; was #121212) */
  --paper: #f4f1ea;
  --muted: #635d55; /* 5.17:1 on --box, 5.98:1 on --paper (was #6b6760: 4.31:1 on --box) */
  --line: #dcd6ca;
  --box: #efebe1;
  --accent: #b0492b;
  --blue: #2350c8;
  --green: #2f6b4f; /* editor's green, Transcript Cleanup's card picture (Dec 5) */
  --board: #ebe6db; /* the About page's backdrop, a step darker than paper so the tiles read */
  --blue-line: rgba(35, 80, 200, .85);
  --grid: rgba(35, 80, 200, .16);
  --grid-major: rgba(35, 80, 200, .34);

  /* One family (Nov 20, Dan's pick, set 1 of docs/mockups/2026-11-20-font-overhaul-options.html):
     Source Serif 4 for the name, headings and paragraphs, Source Sans 3 for the nav, buttons and
     notes, Source Code Pro for labels. Source Serif's optical sizes pick themselves by text size. */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 40px;
  --dur: .45s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  /* The page is the query container: 100cqw is the full page width, gutters included. */
  container-type: inline-size;
  container-name: page;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }

.site-header, main, .site-footer { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Keyboard users' first Tab stop: off-screen until focused, then pinned top-left over the header. */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.skip-link:focus-visible { outline-color: var(--paper); outline-offset: -4px; }

/* ---------- Header ---------- */
.site-header__bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink);
}
.wordmark { font-weight: 600; font-size: 14px; letter-spacing: .01em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 14px; }
.site-header nav a { color: var(--muted); }
/* 44px-tall tap areas without moving anything: the padding grows the hit box, the margin cancels it in layout. */
.wordmark, .site-header nav a { padding-block: 11px; margin-block: -11px; }
.site-header nav a:hover { color: var(--ink); }
/* Where you are: ink with a thin ink rule, like .text-link. Never rust, which means "edited" here (Nov 19). */
.site-header nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ---------- Placeholders ---------- */
.placeholder {
  padding: 0 .2em;
  border-radius: 2px;
  background: rgba(176, 73, 43, .12);
  color: var(--ink);
  text-decoration: underline dashed var(--accent) 1px;
  text-underline-offset: .22em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Draft-only markup ---------- */
/* Draft view's old wording, note numbers and margin notes (the .dv-* markup on the work pages) are
   display: none unless the page is in Draft view, so Final view and its accessibility tree never see
   them. The .dv-mark span that wraps the current words is the one .dv-* element left out on purpose:
   it has no styling at all outside Draft view. Draft view's look is in draft.css. */
:root:not([data-view="draft"]) :is(.dv-was, .dv-num, .dv-notes, .dv-soon) { display: none; }

/* ---------- Title + view switch ---------- */
/* Wraps a page's h1; the switch sits just above its right end. */
.titlebox { position: relative; }
/* Every page's switch is Home's size (Step 5, Nov 19): the inner pages' was 104×25px, small to tap. */
.view-switch {
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 20px;
  z-index: 8;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font: 500 13px/1 var(--mono);
  letter-spacing: .02em;
  white-space: nowrap;
}
.view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--muted);
}
.view-ready .view-switch button { transition: background-color .2s ease, color .2s ease; }
.view-switch button::before { content: ""; width: 9px; height: 9px; border-radius: 1px; }
.view-switch [data-view-btn="draft"]::before { border: 1.5px dashed currentColor; }
.view-switch [data-view-btn="final"]::before { background: currentColor; }
.view-switch button:hover { color: var(--ink); }
.view-switch button:focus-visible { outline-offset: 2px; }
.view-switch [data-view-btn="final"][aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.view-switch [data-view-btn="draft"][aria-pressed="true"] { background: var(--blue); color: #fff; }
/* The switch catches at the top of the screen (Dec 3, every page). view-switch.js puts a copy in <body>,
   pinned at the top edge and lined up with the switch, and swaps it in the moment the switch reaches
   that edge, so it looks like one switch that stopped while the page scrolls on under it. */
.view-switch--follow {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: auto;
  bottom: auto;
  left: 0;
  margin: 0;
  z-index: 9;
  visibility: hidden;
  box-shadow: 0 0 0 rgba(39, 35, 30, 0);
  transition: box-shadow .25s ease;
}
.view-switch--follow.is-shown {
  visibility: visible;
  box-shadow: 0 8px 24px rgba(39, 35, 30, .16), 0 1px 3px rgba(39, 35, 30, .12);
}
.view-switch.is-caught { visibility: hidden; }
@media print { .view-switch--follow { display: none; } .view-switch.is-caught { visibility: visible; } }
/* One line under the switch saying what Draft view is for. No JavaScript, no switch, no hint. */
.view-hint {
  position: absolute;
  right: 4px;
  top: 84px;
  font: 400 11px/1 var(--mono);
  letter-spacing: .02em;
  color: var(--muted);
}
.view-switch[hidden] + .view-hint { display: none; }
/* Home (Nov 18): the switch sits beside the How I work sentence, in the page's flow, with its hint underneath. */
.how__key .view-switch { position: static; margin: 0 0 10px; }
.how__key .view-hint { position: static; }

/* ---------- Home intro: the poster name ---------- */
.intro { padding-top: 48px; }
.poster-name {
  font-family: var(--serif);
  font-size: 15vw; /* fallback where container units are unsupported */
  /* .1717 = 1 / 5.823em, the ink width of "Daniel Goyette" at this spacing (Source Serif 4 700, Nov 20; was .1682 for Fraunces):
     the name's ink runs from the left to the right edge of the content box.
     "Breathing room" spacing, Dan's pick Nov 19 (was 800 at -.055em with a thin outline, which made the letters touch). */
  font-size: calc((100cqw - 80px) * .1717);
  font-weight: 700;
  --lh: .82;
  line-height: var(--lh);
  letter-spacing: -.02em;
  word-spacing: .06em;
  white-space: nowrap;
  /* pull the D's side bearing back so its ink sits on the gutter line */
  margin-left: -.028em;
  margin-right: -.06em;
  padding-bottom: .06em;
}
.intro__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: end;
  padding: 36px 0 72px;
  border-bottom: 1px solid var(--line);
}
.headline { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); font-weight: 300; line-height: 1.25; letter-spacing: -.01em; max-width: 26em; text-wrap: pretty; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons and text links ---------- */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }

.text-link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Sections and section words ---------- */
.section { padding-top: 88px; }
.section__head { margin-bottom: 36px; }
.section-word {
  font-family: var(--serif);
  font-size: 9cqw;
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.04em;
  margin-left: -.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  text-wrap: balance;
}
.label-line { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- Media placeholder ---------- */
.media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--box);
  border: 1.5px dashed transparent;
}
.media--image { background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.media--image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media--video { background: #000; border: 1px solid var(--line); overflow: hidden; }
.media--video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.media__label {
  position: relative;
  z-index: 1;
  padding: 2px 6px;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ink);
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.card { display: block; }
.card__label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.card__title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.card:hover .card__title { text-decoration: underline 1px; text-underline-offset: .14em; }
.card__hook { font-size: 16px; }
.card__meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.card--feature .media { margin-bottom: 18px; }

/* ---------- Project cards (round B, Nov 19): a redline card with a figure drawn in live text.
   The problem is struck in rust, what was built is written in its place. The figure above it is text
   on the site's grid, not an image, so it is always readable and lays itself out for the room it gets:
   one object per project since Dec 5 (.spec, below), full width on a narrow card. ---------- */
.cards--projects { gap: 36px; }
.card--project { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--box); transition: border-color .2s; }
.card--project:hover, .card--project:focus-visible { border-color: var(--ink); }
.card--project:hover .card__title { text-decoration: none; }
.media--drawn {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 228px;
  padding: 22px 24px 26px;
  aspect-ratio: auto;
  border: 0;
  container-type: inline-size;
  border-bottom: 1px solid var(--line);
  background-color: #f6f3ec;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}
/* Card pictures (Dec 5): one object per project, in that project's color, showing what the project produces. */
.spec { position: relative; max-width: 100%; border: 1px solid var(--ink); background: var(--paper); box-shadow: 6px 6px 0 var(--spec, var(--ink)); font-size: 13.5px; line-height: 1.3; }
.spec > span, .spec__steps > span, .spec__query > span { display: block; }
.spec__tag, .spec__who { font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.spec .spec__tag { display: flex; justify-content: space-between; gap: 10px; }
.spec .spec__row { display: grid; grid-template-columns: 70px 1fr; }
.spec--hub { width: 250px; padding: 12px 14px; transform: rotate(-1.5deg); }
.spec__steps { margin-top: 8px; }
.spec .spec__steps > span { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-top: 1px solid var(--line); }
.spec__steps > span::before { content: ""; flex: none; width: 13px; height: 13px; border: 1.5px solid currentColor; }
.spec__steps .is-done { color: var(--muted); }
.spec__steps .is-done::before { background: currentColor; box-shadow: inset 0 0 0 2px var(--paper); }
.spec__steps .is-now { border-top-color: var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; }
.spec--lab { --spec: var(--blue); display: grid; grid-template-columns: 1.25fr 1fr; width: 400px; border-color: var(--blue); }
.spec__query { padding: 12px 14px; background: var(--blue); color: #fff; font: 400 12px/1.55 var(--mono); white-space: nowrap; overflow: hidden; }
.spec__query .spec__in { padding-left: 2ch; }
.spec--lab .spec__row { grid-template-columns: 1fr auto; column-gap: 8px; padding: 5px 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.spec--lab .spec__row > span:last-child { font-family: var(--mono); }
.spec--lab .spec__row--head { font: 500 10px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec .spec__foot { display: flex; justify-content: space-between; gap: 10px; grid-column: 1 / -1; padding: 6px 10px 6px 14px; border-top: 1px solid var(--blue); font: 600 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.spec__foot > span:last-child { font-weight: 500; color: var(--muted); }
.spec--news { --spec: var(--accent); width: 380px; border-color: var(--accent); }
.spec--news .spec__tag { padding: 7px 14px; background: var(--accent); color: #fff; }
.spec__fields { padding: 2px 14px 12px; }
.spec--news .spec__row { padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.spec--news .spec__row:first-child { border-top: 0; }
.spec--news .spec__row > span:first-child { font: 500 10.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec .spec__stamp { position: absolute; right: 14px; bottom: -12px; padding: 3px 8px; border: 2px solid var(--accent); background: rgba(244, 241, 234, .88); color: var(--accent); font: 600 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; transform: rotate(-6deg); }
.spec--transcript { --spec: var(--green); width: 400px; padding: 12px 18px 14px; }
.spec__who { margin-bottom: 2px; }
.spec__ms { font: 400 15.5px/1.7 var(--serif); }
.spec__ms s { color: var(--accent); text-decoration-thickness: 1.5px; }
.spec__ms mark { padding: 1px 2px; background: #c5d1c5; background: color-mix(in srgb, var(--green) 24%, var(--paper)); color: var(--ink); }
@container (max-width: 420px) {
  .spec { justify-self: stretch; width: auto; box-shadow: 4px 4px 0 var(--spec, var(--ink)); transform: none; }
  /* The Lab keeps its two columns on a phone, in smaller type, so the card is no taller than before. */
  .spec--lab { grid-template-columns: auto minmax(0, 1fr); }
  .spec__query { padding: 10px; font-size: 10.5px; }
  .spec--lab .spec__row { padding: 4px 8px; font-size: 11px; }
  .spec .spec__foot { padding: 5px 8px 5px 10px; font-size: 9.5px; letter-spacing: .06em; }
  .spec__ms { font-size: 14.5px; line-height: 1.6; }
}
.card--project .card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.card--project .card__label { display: flex; justify-content: space-between; gap: 10px; margin: 0; font-family: var(--mono); color: var(--muted); }
.card__was { font-family: var(--serif); font-size: 16px; font-weight: 300; line-height: 1.35; color: var(--accent); }
.card__was s { text-decoration-thickness: 1.5px; }
.card__now {
  font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.3;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.card__more { font-size: 13.5px; color: var(--muted); }
/* Dec 5: the name leads the card as its headline; the date sits alone in the footer row. */
.card--project .card__title { margin: 2px 0 0; font-size: 28px; font-weight: 500; line-height: 1.1; }
.card--project .card__meta { margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font: 400 13px/1.2 var(--mono); color: var(--muted); }
/* Work (Nov 19): one list, each figure beside its words; buttons show part of the page (work-filter.js). */
.cards--list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.cards--list .card--project { flex-direction: row; }
.cards--list .media--drawn { flex: 0 0 56%; border-bottom: 0; border-right: 1px solid var(--line); }
.card--project[hidden], .cards[hidden], .section[hidden] { display: none; }
.work-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.work-filter[hidden] { display: none; }
.work-filter button { padding: 9px 14px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 500 13px/1 var(--sans); cursor: pointer; }
.work-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@container page (max-width: 860px) {
  .cards--list .card--project { flex-direction: column; }
  .cards--list .media--drawn { flex: none; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Home, How I work (Nov 18): the About page's redlined sentence, shown in both views, with the
   Draft view switch beside it. It tells a visitor what the switch is for before they use it. ---------- */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
  gap: 32px 56px;
  align-items: start;
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
}
.how .lead-in__label { margin-bottom: 18px; }
.how .how__sentence {
  font-size: clamp(27px, 3.7cqw, 50px);
  line-height: 1.24;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.how .how__sentence s { text-decoration-thickness: 2px; }
.how .how__sentence .redline__new { border-bottom-width: 3px; }
.how__key { padding-top: 29px; font-size: 15px; line-height: 1.5; }
.how__keep { margin-bottom: 16px; max-width: 26em; }
/* Without JavaScript there is no switch, so the lines that point to it go too. */
html:not(.js) .how__key { display: none; }
html:not(.js) .how { grid-template-columns: minmax(0, 1fr); }
@container page (max-width: 900px) {
  .how { grid-template-columns: minmax(0, 1fr); padding: 36px 0 32px; }
  .how__key { padding-top: 0; }
}

/* ---------- Home quick about: a lead-in between the intro and the work ---------- */
.lead-in { padding: 64px 0 0; }
.lead-in__label {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead-in__text {
  max-width: 66%;
  margin-bottom: 22px;
  font-family: var(--body);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}
/* ---------- Home "What changed": four results from the current internship (Nov 19) ----------
   One story (Priori) keeps its redline in Final view, raised on paper; the rest are a quiet ruled list
   whose old wording shows only in Draft view.
   Dec 4: the section came off Home (Dan), so nothing uses these rules now. Kept in case a results list returns. */
.proof { padding: 56px 0 0; }
.proof .lead-in__label { margin-bottom: 4px; }
.proof__meta { margin-bottom: 20px; font: 400 12px/1.4 var(--mono); color: var(--muted); }
.results { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.result { position: relative; padding: 20px 150px 20px 0; border-bottom: 1px solid var(--line); }
.result__num { position: absolute; top: 18px; right: 0; font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.result__job { margin: 0 0 6px; font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.result__text { margin: 0; max-width: 46em; font-family: var(--body); font-size: 17px; font-weight: 400; line-height: 1.55; text-wrap: pretty; }
.result--story { margin: 14px 0 18px; padding: 22px 170px 26px 24px; background: #fbf9f4; border: 1px solid #e3c9bd; }
.result--story .result__num { top: 22px; right: 24px; }
.result--story .result__text { font-size: 18px; }
.result--story::after { content: "Before → after" / ""; position: absolute; left: 24px; bottom: -11px; padding: 3px 10px; background: var(--paper); border: 1px solid #e3c9bd; border-radius: 999px; font: 500 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
html[data-view="draft"] .result--story::after { display: none; }
@container page (max-width: 760px) {
  .proof { padding-top: 44px; }
  .result, .result--story { padding-right: 0; }
  .result--story { padding: 18px 16px 24px; }
  .result__num, .result--story .result__num { position: static; display: block; margin-bottom: 8px; }
  .result__text, .result--story .result__text { font-size: 16px; }
}

/* The last section closes the page above the footer, now that the teaser no longer does. */
main > .section:last-child { padding-bottom: 104px; }

/* ---------- Case study pages ---------- */
/* Two columns below the title and video: the At a glance box on the left, sticky while the sections
   scroll past on the right at a reading measure. Head, media and the next-project link span both. */
.case {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: 56px;
}
.case > * { grid-column: 1 / -1; }
/* The About page shares this title block. */
.case__head, .about__head { position: relative; padding-top: 116px; }
:is(.case__head, .about__head) .view-switch { top: 32px; bottom: auto; margin-bottom: 0; }
:is(.case__head, .about__head) h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 11cqw, 156px);
  font-weight: 800;
  --lh: .92;
  line-height: var(--lh);
  letter-spacing: -.045em;
  margin-left: -.03em;
  padding-bottom: .04em;
  text-wrap: balance;
}
.case__subtitle {
  margin-top: 20px;
  max-width: 22em;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6cqw, 32px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.case__head .label-line { margin-top: 14px; }
/* "What changed" (Nov 19): each case study's result in one line under its title, labelled like Home's results. */
.outcome { margin-top: 28px; padding-top: 14px; border-top: 2px solid var(--ink); max-width: 40em; }
.outcome__label { margin: 0 0 8px; font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.outcome__text { margin: 0; font-family: var(--body); font-size: 20px; font-weight: 400; line-height: 1.5; text-wrap: pretty; }
@container page (max-width: 760px) { .outcome__text { font-size: 18px; } }
figure { margin: 0; }
.case > .media { margin-top: 48px; }

/* The workflow disclaimer: a quiet note under the label line, set off by a short rule. */
.disclaimer {
  margin-top: 16px;
  padding-left: 12px;
  max-width: 40em;
  border-left: 2px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Process diagram (workflow pages) ---------- */
/* Fills the video slot: the draft's "The process:" steps as a left-to-right flow (top to bottom on
   narrow screens). Arrows are drawn by each step's ::after (a clipped shape, no text), so the step text
   is exactly the draft's. The review step carries the accent: human review is the point of both workflows. */
.process {
  --gap: 44px;
  margin-top: 48px;
  padding: 36px 0 40px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.process ol {
  display: flex;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process__step {
  counter-increment: step;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 104px;
  padding: 18px 20px;
  background: var(--box);
  font-size: 15px;
  line-height: 1.4;
  text-wrap: pretty;
}
.process__step--review { background: var(--accent); color: var(--paper); font-weight: 500; }
.process__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  width: calc(var(--gap) - 16px);
  height: 11px;
  margin-top: -5.5px;
  background: var(--ink);
  /* a 1.5px shaft ending in an 8px head */
  clip-path: polygon(0 calc(50% - .75px), calc(100% - 8px) calc(50% - .75px), calc(100% - 8px) 0, 100% 50%,
    calc(100% - 8px) 100%, calc(100% - 8px) calc(50% + .75px), 0 calc(50% + .75px));
}

/* Dan's drawn version of the diagram. It shows only where the steps sit in one row (wider than 1000px);
   narrower, the steps stack and the text version reads better. The list stays for screen readers either
   way, so the picture itself has empty alt text. */
.process__image { display: none; }
@container page (min-width: 1001px) {
  .process--image { padding: 0; border: 0; }
  .process--image .process__image { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
  .process--image ol {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}

/* A sample from a public source: a quiet bordered block, so it reads as an example, not as the case study's own text. */
.sample {
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.case__section .sample p,
.case__section .sample li { font-size: 16px; line-height: 1.6; }
.case__section .sample__title { margin-bottom: 12px; font-size: 18px; }
/* the key details read as a two-column table, like the deliverable they stand in for */
.case__section .sample__details { padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.case__section .sample__details li {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 0 16px;
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.case__section .sample__details strong { font-weight: 500; color: var(--muted); }
/* before and after: the source line sits above the block; the before reads quieter, the after in full ink, split by a rule */
.case__section .sample__source { margin-bottom: 14px; font-size: 15px; color: var(--muted); }
/* The public source, linked so a reader can compare the sample with the original (Nov 12). */
.case__section .sample__source a { color: var(--ink); text-decoration: underline 1px; text-underline-offset: .2em; }
.case__section .sample__source a:hover { color: var(--accent); }
.case__section .sample .sample__label { margin-bottom: 8px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.case__section .sample__label strong { font-weight: 500; color: var(--muted); }
.case__section .sample__part--before p { color: var(--muted); font-size: 15px; }
.case__section .sample__part + .sample__part { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.case__section .sample__part p + p { margin-top: 12px; }


.glance {
  grid-column: 1;
  /* Row 1 is the head, row 2 the video or diagram slot, and sections start at row 3. 12 is a ceiling on the
     section count (the longest page has 7); empty rows collapse to nothing. */
  grid-row: 3 / span 12;
  align-self: start;
  position: sticky;
  top: 24px;
  margin-top: 64px;
  padding: 22px 24px 24px;
  background: var(--box);
}
.glance h2 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}
.glance dl { margin: 0; }
.glance dt {
  padding-top: 12px;
  border-top: 1px solid rgba(18, 18, 18, .14);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.glance dd { margin: 2px 0 14px; font-size: 15px; line-height: 1.45; }
.glance dd:last-child { margin-bottom: 0; }

.case__section {
  grid-column: 2;
  padding-top: 64px;
  max-width: 38em;
}
.case__section h2 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.case__section p,
.case__section li { font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.case__section p + p,
.case__section p + ul,
.case__section ul + p { margin-top: 1em; }
.case__section ul { margin: 0; padding-left: 1.15em; }
.case__section li { padding-left: .3em; }
.case__section li + li { margin-top: .65em; }
.case__section li::marker { color: var(--accent); }
.case__section strong { font-weight: 600; }
.draft-note { font-style: italic; }
/* Screenshots and drawn cards inside a case section (Project Dashboard, Nov 16). */
.case__section .shot { margin-top: 32px; }
.case__section .shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.case__section .shot figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.draft-note .placeholder { font-style: inherit; }

/* The next project's name in outline, filling solid on hover: the same outline-to-ink idea as the title. */
.next-project { margin-top: 104px; padding: 28px 0 96px; border-top: 1px solid var(--ink); }
.next-project a { display: inline-block; font-size: 14px; font-weight: 500; color: var(--muted); }
.next-project span {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(44px, 7cqw, 96px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.035em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.view-ready .next-project span { transition: color .3s ease; }
.next-project a:hover span,
.next-project a:focus-visible span { color: var(--ink); }


/* ---------- About page: Rail Board ---------- */
/* Paper tiles on a slightly darker backdrop. The rail (photo slot, "Looking for", quick facts) sits in the
   left column across every row; the sections stack in the right column. In the HTML the intro comes first,
   then the rail, so a phone shows the intro before the rail and the copy stays in the draft's order. */
.main--board { background: var(--board); }
.board {
  --rail: 270px;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 28px 0 96px;
}
.board > * { grid-column: 2; min-width: 0; }
.tile { background: var(--paper); padding: 26px 28px; border-radius: 6px; }
.tile--ink { background: var(--ink); color: var(--paper); }
.tile--rust { background: var(--accent); color: var(--paper); }
.tile > p { font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.tile > p + p { margin-top: .8em; }
.board .section-word { font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -.01em; margin: 0 0 18px; -webkit-text-stroke-width: 1px; }
.board__intro h1 { font-family: var(--serif); font-size: 44px; font-weight: 400; --lh: 1; line-height: var(--lh); letter-spacing: -.01em; margin-bottom: 18px; }
.tile.board__intro > p { font-family: var(--body); font-size: 20px; font-weight: 400; line-height: 1.55; }
/* A readable line length on a wide screen; it ran past 100 characters (Dec 4 audit). */
.tile.board__intro > p:not(.view-hint) { max-width: 68ch; }

/* The Draft view / Final view switch sits in the intro tile's top right corner, its hint under it. */
.board__intro { position: relative; }
.board__intro .view-switch { top: 22px; right: 24px; bottom: auto; margin: 0; }
.tile.board__intro > p.view-hint { top: 74px; right: 28px; margin: 0; font: 400 11px/1 var(--mono); }

/* The rail. Its top offset is negative by the photo's height, so the photo scrolls away and the two
   text tiles are what stay pinned: they fit any screen height. */
.board__rail {
  grid-column: 1;
  grid-row: 1 / span 6;
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(24px - var(--rail) * 1.25 - 14px);
}
.media--portrait { aspect-ratio: 4 / 5; }
/* Stand-in for the headshot: his initials in the site's outlined serif, sized to the tile. */
.about__photo { margin: 0; padding: 0; }
.about__photo--monogram { container-type: inline-size; overflow: hidden; border: 0; background: var(--accent); }
.monogram {
  font-family: var(--serif);
  font-size: 52cqw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
  user-select: none;
}
.tile__label, .facts dt, .tool-grid__group { font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.tile__label { color: #e6a08a; margin-bottom: 14px; }
.board__looking > p { font-family: var(--body); font-size: 16px; font-weight: 400; line-height: 1.55; }
.facts { margin: 0; font-size: 14px; }
.facts dt { color: var(--accent); padding-top: 12px; }
.facts dt:first-child { padding-top: 0; }
.facts dd { margin: 0; padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.facts dd:last-child { border-bottom: 0; padding-bottom: 0; }
.facts a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.facts a:hover { text-decoration-color: var(--ink); }

/* How I work: one sentence redlined like the Draft view, always shown (not a Draft view toggle). */
.redline { font-family: var(--serif); font-size: 26px; line-height: 1.5; font-weight: 300; }
.tile > p.redline { font-size: 26px; line-height: 1.5; }
.redline s { color: var(--accent); text-decoration-thickness: 2px; } /* as Home's copy and Draft view's struck words */
.redline__new { border-bottom: 2px solid var(--accent); }
/* Out loud the struck words say "was" and their replacement "now" (CSS alt text, nothing on screen),
   in both views, since this sentence is always redlined. The project cards' struck problem does too. */
.redline s::before, .card__was s::before { content: "" / "was:"; }
.redline__new::before, .card__now::before { content: "" / "now:"; }
.redline__num { font-family: var(--sans); font-size: 12px; vertical-align: super; line-height: 0; color: var(--accent); margin-left: 1px; }
.redline__notes { margin: 16px 0 18px; padding-left: 1.4em; color: var(--muted); font-size: 14px; line-height: 1.5; }
.redline__notes li { margin-bottom: 6px; }
.redline__notes li::marker { color: var(--accent); font-family: var(--sans); }
.redline__notes a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.redline__notes a:hover { color: var(--accent); }

/* Tools: four columns of names. A click opens that tool's card under the columns (tool-tiles.js).
   Without JS every card shows and the hint stays hidden. */
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tool-grid__group { color: var(--accent); padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.tool-grid__tiles { list-style: none; margin: 0; padding: 0; }
.tool-grid__tiles li { border-bottom: 1px solid var(--line); }
.tool-tile { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; padding: 9px 0; font-weight: 500; text-align: left; }
.tool-tile::after { content: "+"; font-family: var(--mono); color: var(--accent); }
.tool-tile:hover, .tool-tile[aria-expanded="true"] { color: var(--accent); }
.tool-tile[aria-expanded="true"]::after { content: "–"; }
.tool-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-hint { display: none; margin: 0 0 14px; font: 400 12px/1.4 var(--mono); color: var(--muted); }
.js .tool-hint { display: block; }
.tool-card { margin-top: 14px; padding: 16px 18px; background: var(--box); border-left: 3px solid var(--accent); }
.tool-card__group { font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tool-card__text { font-size: 15px; line-height: 1.55; }
.tool-card .tools__line { display: block; margin-top: 6px; }
.tool-card .tools__line em { font-style: normal; font-weight: 600; }

/* Internships: a timeline, newest first (Nov 12). The current role is a full-width row with every bullet
   showing; the three earlier ones share the row below. Each card's date is the last part of its meta line
   in the HTML (the draft's wording); display: contents lets it sit above the title. */
.interns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
.intern { position: relative; display: flex; flex-direction: column; padding: 16px 18px 0 0; border-top: 2px solid var(--ink); font-size: 14px; line-height: 1.5; }
.intern--current { grid-column: 1 / -1; padding-right: 0; }
.intern--current h3 { font-size: 23px; }
.intern--current ul { columns: 2; column-gap: 32px; }
.intern--current li { break-inside: avoid; margin-bottom: 8px; }
.intern::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.intern__meta { display: contents; }
.intern__when { order: -1; font: 500 12px/1.4 var(--mono); color: var(--accent); }
.intern h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.25; margin: 4px 0; }
.intern__role { order: 1; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.intern__sep { display: none; }
.intern ul { order: 2; list-style: none; margin: 0; padding: 0; }
.intern__more { order: 3; margin-top: 8px; }
.intern__more summary { cursor: pointer; font: 500 12px/1.4 var(--mono); color: var(--accent); }
.intern__more li { margin-top: 8px; }
.intern__tools { order: 4; margin-top: 10px; font-size: 12px; color: var(--muted); }

/* The pull quote beside What drives it. */
.board__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; align-items: stretch; }
.board__quote { display: flex; align-items: flex-end; min-height: 200px; }
.tile.board__quote { font-family: var(--serif); font-size: 30px; font-weight: 300; line-height: 1.2; }

/* Between the one-column layout and a wide desktop the rail leaves the sections a narrow column, so
   internships stack along a vertical line and the tools drop to two columns (Nov 12; four internship
   columns were about 175px each at 1024px). */
@container page (max-width: 1150px) {
  .board__pair { grid-template-columns: minmax(0, 1fr); }
  .board__quote { min-height: 0; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .interns { grid-template-columns: minmax(0, 1fr); row-gap: 0; border-left: 2px solid var(--ink); }
  .intern { padding: 0 0 24px 20px; border-top: 0; }
  .intern:last-child { padding-bottom: 0; }
  .intern::before { top: 3px; left: -7px; }
}
/* ---------- Contact page (Nov 12): the same board, with the details in the intro tile and a question form ---------- */
.contact__name { font-family: var(--serif); font-size: 30px; font-weight: 300; line-height: 1.2; margin-bottom: 22px; }
.contact__facts { max-width: 34em; font-size: 16px; }
.contact__facts a { overflow-wrap: anywhere; }
.ask__form { display: none; max-width: 38em; }
.js .ask__form { display: grid; gap: 18px; }
.js .ask__fallback { display: none; }
.ask__field { display: grid; gap: 7px; }
.ask__field label { font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ask__field :is(input, textarea) {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #fbf9f4;
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
}
.ask__field textarea { min-height: 9em; resize: vertical; }
.ask__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ask__send .btn { cursor: pointer; }
.ask__hint { flex: 1 1 16em; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* One column: intro, then the rail's tiles, then the sections. */
@container page (max-width: 900px) {
  .board { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .board > *, .board__rail { grid-column: 1; }
  .board__rail { grid-row: auto; position: static; }
  .about__photo { width: min(100%, 220px); }
  .board__pair { grid-template-columns: minmax(0, 1fr); }
  .board__quote { min-height: 0; }
}
@container page (max-width: 560px) {
  .board { padding-bottom: 56px; }
  .tile { padding: 22px 20px; }
  .tile.board__intro > p { font-size: 18px; }
  /* Phone: the switch and its hint sit above the title instead of beside it. */
  .board__intro .view-switch, .tile.board__intro > p.view-hint { position: static; width: fit-content; }
  .board__intro .view-switch { margin-bottom: 8px; }
  .tile.board__intro > p.view-hint { margin: 0 0 18px 4px; font-size: 11px; }
  .tile > p.redline { font-size: 21px; }
  .intern--current ul { columns: 1; }
  .tile.board__quote { font-size: 25px; }
}
@media (max-width: 900px) {
  @supports not (container-type: inline-size) {
    .board, .interns, .board__pair { grid-template-columns: minmax(0, 1fr); }
    .board > *, .board__rail { grid-column: 1; }
    .board__rail { grid-row: auto; position: static; }
  }
}

/* ---------- Footer ---------- */
/* A number range (6–8, 10–15) never breaks across two lines (Dec 4 audit). */
.nw { white-space: nowrap; }

.site-footer {
  padding-top: 26px;
  padding-bottom: 26px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  word-spacing: .45em; /* opens up the gaps around the separators */
}
.site-footer a, .site-footer span { word-spacing: normal; }
/* Inline links: vertical padding grows the tap area to 44px+ and leaves the line height alone. */
.site-footer a { padding-block: 14px; white-space: nowrap; } /* a link's words stay on one line on a phone (Dec 4) */
.site-footer > span:last-child { color: #a39e94; }
.site-footer a:hover { color: #e6a08a; }
/* Same tint as on paper, made opaque so the ink text stays legible on the dark band. */
.site-footer .placeholder { background: #ecddd3; }
/* The blue ring is under 3:1 on the ink band; paper keeps it visible. */
.site-footer :focus-visible { outline-color: var(--paper); }

/* ---------- Medium ---------- */
@container page (max-width: 1000px) {
  /* The diagram turns to run top to bottom, its arrows pointing down along the left. Five steps side by side
     need about 1000px before their longest words fit, so it turns here rather than with the page at 760px. */
  .process { --gap: 36px; }
  .process ol { flex-direction: column; max-width: 38em; }
  .process__step { flex: none; min-height: 0; }
  .process__step:not(:last-child)::after {
    top: calc(100% + 6px);
    left: 26px;
    width: 11px;
    height: calc(var(--gap) - 12px);
    margin-top: 0;
    clip-path: polygon(calc(50% - .75px) 0, calc(50% + .75px) 0, calc(50% + .75px) calc(100% - 8px), 100% calc(100% - 8px),
      50% 100%, 0 calc(100% - 8px), calc(50% - .75px) calc(100% - 8px));
  }
}

@container page (max-width: 820px) {
  .intro__row { grid-template-columns: 1fr; }
  .lead-in__text { max-width: 34em; font-size: 20px; }
}
@container page (max-width: 760px) {
  .cards--feature { grid-template-columns: 1fr; gap: 48px; }
  .cards--projects { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  /* One column: the glance box sits between the video and the first section. */
  .case { grid-template-columns: minmax(0, 1fr); }
  .glance { grid-column: 1; grid-row: auto; position: static; margin-top: 40px; max-width: 38em; }
  .case__section { grid-column: 1; }
}

/* ---------- Phone ---------- */
@container page (max-width: 560px) {
  .site-header, main, .site-footer { --gutter: 16px; }
  .site-header__bar { flex-direction: column; align-items: flex-start; padding: 16px 0 14px; }
  .site-header nav { gap: 6px 18px; }
  .intro { padding-top: 32px; }
  .poster-name {
    /* .3249 = 1 / 3.078em, the ink width of "Goyette", the longer line: it runs edge to edge. */
    font-size: calc((100cqw - 32px) * .3249);
    --lh: .8;
    white-space: normal;
    margin-right: 0;
  }
  .intro__row { padding: 24px 0 48px; }
  .headline { font-size: 17px; }
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .section { padding-top: 64px; }
  .section__head { margin-bottom: 24px; }
  .section-word { font-size: 14cqw; }
  .card__title { font-size: 26px; }
  /* Dec 5: name-first project cards stay as short on a phone as they were before the name moved up. */
  .card--project .card__body { gap: 8px; padding-bottom: 18px; }
  .card--project .card__title { font-size: 24px; }
  .card__was { font-size: 15px; line-height: 1.3; }
  .card__now { font-size: 18px; line-height: 1.25; }
  .card--project .card__meta { padding-top: 10px; }
  .media--drawn { min-height: 0; padding: 18px 18px 22px; }
  .lead-in { padding-top: 44px; }
  .lead-in__text { max-width: none; font-size: 18px; line-height: 1.55; }
  main > .section:last-child { padding-bottom: 72px; }
  .case__head, .about__head { padding-top: 104px; }
  :is(.case__head, .about__head) .view-switch { top: 24px; }
  .view-hint { top: 76px; }
  .case > .media, .process { margin-top: 36px; }
  .process { padding: 28px 0 32px; }
  .sample { padding: 18px 18px 20px; }
  .case__section .sample__details li { grid-template-columns: minmax(0, 1fr); }
  .glance { margin-top: 32px; padding: 18px 18px 20px; }
  .case__section { padding-top: 48px; }
  .case__section h2 { font-size: 27px; }
  .case__section p, .case__section li { font-size: 16px; }
  .next-project { margin-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 560px) {
  @supports not (container-type: inline-size) {
    .site-header, main, .site-footer { --gutter: 16px; }
    .intro__row, .cards { grid-template-columns: 1fr; }
    .lead-in__text { max-width: none; }
    .poster-name { white-space: normal; }
    .case { grid-template-columns: minmax(0, 1fr); }
    .glance { grid-column: 1; grid-row: auto; position: static; }
    .case__section { grid-column: 1; }
    .process ol { flex-direction: column; }
    .process__step { flex: none; min-height: 0; }
    .process__step::after { display: none; }
  }
}

/* ---------- Load reveal ---------- */
/* The head script adds html.js before first paint, so with JS on a [data-reveal] heading paints in its
   outline state straight away instead of flashing solid first. reveal.js takes over (.is-revealing), then
   marks it .is-revealed. The hold is an animation, not a plain rule, so if the module or font never
   arrives the outline simply runs out after 3s and the name shows solid; it can never stay stuck.
   The stroke here is what draws that outline, so any [data-reveal] heading shows it, not only the
   Home poster name (whose own .014em stroke this matches at its size). */
@media (prefers-reduced-motion: no-preference) {
  html.js:not([data-view="draft"]) [data-reveal]:not(.is-revealing):not(.is-revealed) {
    -webkit-text-stroke: max(1px, .014em) var(--ink);
    animation: reveal-hold 3s;
  }
}
@keyframes reveal-hold {
  from, to { color: transparent; }
}
/* reveal.js wraps each letter in .ink with a --d delay. Each one starts as an outline and inks in to
   solid. Pages always load in Final view, so it plays on every load. */
:root:not([data-view="draft"]) .is-revealing .ink {
  -webkit-text-stroke: max(1px, .014em) var(--ink);
  animation: ink-in .45s cubic-bezier(.45, 0, .2, 1) var(--d, 0ms) both;
}
@keyframes ink-in {
  from { color: transparent; }
  to { color: var(--ink); }
}
/* If the view changes while the name is still inking in, the letters settle in the same left-to-right order. */
.view-ready .ink { transition: color .38s ease calc(var(--d, 0ms) * .6); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Made by hand: the college-work timeline at the foot of Home (Nov 18) ----------
   Ink for the school years, rust for every editor's mark: the ChatGPT line, the ramp under the
   last dates and the closing stop. Narrow pages stack the stops down a vertical line. */
.timeline__lede { max-width: 62ch; margin-top: 22px; font-size: 17px; }
.timeline__lede--more { margin-top: 12px; } /* Nov 20: the looking-back note under the intro */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--ink); }
.timeline__stop { position: relative; padding: 0 0 40px; }
.timeline__stop::before {
  content: ""; position: absolute; left: -35px; top: 1px; width: 16px; height: 16px;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--paper);
}
.timeline__date { display: block; margin-bottom: 12px; font: 500 12px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.timeline__card { max-width: 440px; padding: 10px 10px 14px; border: 1px solid var(--ink); background: #fbf9f4; }
.timeline__open { display: block; }
.timeline__open img { display: block; width: 100%; height: auto; }
.timeline__quote { margin: 0; padding: 14px; background: var(--box); font-family: var(--serif); font-size: 17px; font-weight: 300; font-style: italic; line-height: 1.35; }
.timeline__title { margin: 12px 0 6px; font-family: var(--serif); font-size: 21px; font-weight: 800; line-height: 1.15; }
.timeline__what { font-size: 14px; line-height: 1.45; }
.timeline__meta { margin-top: 8px; font: 400 11.5px/1.5 var(--mono); color: var(--muted); }
.timeline__link { display: inline-block; margin-top: 10px; padding: 4px 0; font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--ink); }
.timeline__open .timeline__link { margin-top: 8px; }
a.timeline__link:hover, .timeline__open:hover .timeline__link, .timeline__back:hover { color: var(--accent); border-color: var(--accent); }
.timeline__more { margin-top: 10px; font-size: 13.5px; }
.timeline__more summary { display: inline-block; padding: 4px 0; font-weight: 600; border-bottom: 1px solid var(--ink); cursor: pointer; list-style: none; }
.timeline__more summary::-webkit-details-marker { display: none; }
.timeline__more summary::after { content: " +"; }
.timeline__more[open] summary::after { content: " −"; }
.timeline__more p { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--line); line-height: 1.5; }
.timeline__gate { position: relative; margin: 0 0 40px -26px; padding: 12px 0 12px 26px; border-top: 2px dashed var(--accent); border-bottom: 2px dashed var(--accent); background: var(--paper); color: var(--accent); }
.timeline__gate p { font: 400 12px/1.5 var(--mono); }
.timeline__gate strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 800; line-height: 1.15; }
.timeline__stop--now { padding-bottom: 0; }
.timeline__stop--now::before { border-color: var(--accent); background: var(--accent); }
.timeline__stop--now .timeline__date { color: var(--accent); }
.timeline__stop--now .timeline__card { border: 2px solid var(--accent); background: var(--paper); }
.timeline__stop--now .timeline__title { margin-top: 4px; font-size: 24px; }
.timeline__now { margin: 10px 0 0; padding: 0; list-style: none; font: 500 13px/1 var(--mono); }
.timeline__now a { display: inline-block; padding: 7px 0; }
.timeline__now a::before { content: "↑ "; color: var(--accent); }
.timeline__now a:hover { color: var(--accent); }
.timeline__back { display: inline-block; margin-top: 12px; padding: 4px 0; font-size: 14px; font-weight: 600; color: var(--accent); border-bottom: 2px solid var(--accent); }
.timeline__back::after { content: " ↑"; }
.timeline__small { max-width: 70ch; margin-top: 36px; font: 400 12px/1.6 var(--mono); color: var(--muted); }

@container page (min-width: 1320px) {
  .timeline {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 92px repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
    column-gap: 12px; align-items: start; margin-top: 64px; padding: 0; border-left: 0;
  }
  .timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--ink); }
  /* The AI years: a rust wedge under the line that starts at nothing and thickens toward now. */
  .timeline::after {
    content: ""; position: absolute; right: 0; top: 14px; width: 27%; height: 10px;
    background: linear-gradient(90deg, transparent, var(--accent)); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 12%);
  }
  .timeline__stop { padding: 44px 0 0; }
  .timeline__stop::before { left: 0; top: 2px; }
  .timeline__date { position: absolute; top: -28px; left: 0; margin: 0; padding-right: 6px; background: var(--paper); font-size: 11px; }
  .timeline__card { max-width: none; padding: 9px 9px 12px; }
  .timeline__quote { font-size: 15px; padding: 12px; }
  .timeline__title { font-size: 17px; }
  .timeline__what { font-size: 13px; }
  .timeline__meta { font-size: 10.5px; }
  .timeline__link, .timeline__more { font-size: 12.5px; }
  .timeline__more summary { white-space: nowrap; }
  .timeline__gate { margin: 0; padding: 44px 0 0; border: 0; background: none; text-align: center; }
  .timeline__gate::before { content: ""; position: absolute; top: -34px; bottom: -22px; left: 50%; border-left: 2px dashed var(--accent); }
  .timeline__gate p { position: relative; padding: 10px 6px; border: 1.5px solid var(--accent); background: var(--paper); font-size: 10.5px; }
  .timeline__gate strong { font-size: 15px; margin-bottom: 4px; }
  .timeline__stop--now .timeline__title { font-size: 21px; }
}
@container page (min-width: 620px) and (max-width: 1319px) {
  .timeline__card { max-width: 520px; }
}

/* ---------- Home: the Made by hand preview (Nov 18) ----------
   Three of the six college pieces, each a link to the full timeline on the Work page. */
.byhand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 28px; padding: 0; list-style: none; }
.byhand .timeline__card { display: block; max-width: none; }
/* Home's preview reuses the timeline's date label, but its stops aren't positioned, so keep the date in the flow
   (Nov 26: at wide widths in Draft view the dates had floated up over the section above). */
.byhand .timeline__date { position: static; margin: 0 0 12px; padding: 0; background: none; }
.byhand .timeline__card img { display: block; width: 100%; height: auto; }
.byhand .timeline__card:hover .timeline__title { color: var(--accent); }
@container page (max-width: 700px) {
  .byhand { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- Work page (Nov 18): the header sits straight in main, with no case study grid around it. */
.work__head { padding-bottom: 8px; }

/* ---------- Reading text (Nov 19, Dan) ----------
   Since Nov 20 paragraphs and headings share Source Serif 4; this block still picks out the reading text
   (it was Roboto Serif beside Fraunces headings, Nov 19). The nav, buttons, labels and Draft view
   notes use Source Sans 3 or Source Code Pro. */
.tile > p:not(.redline):not(.view-hint):not(.dv-soon):not(.contact__name),
.tile > ul > li,
.redline__notes li,
.intern li,
.tool-card__text,
.case__section p:not([class]),
.case__section li:not(.dv-notes li):not(.sample__details li),
.timeline__lede,
.timeline__what,
.result__text.redline { font-family: var(--body); }
.result__text.redline { font-weight: 400; }


/* Off the clock (Nov 26, Dan's pick of option B): Source Material, a personal creative project, sits in a
   dark band below the project cards so it reads apart from the job-search builds. Home and Work. */
.offclock { margin-top: 56px; }
.offclock__kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 14px; }
.offclock__kicker::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.band { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: #14161c; color: #e9e3d6; border-radius: 4px; overflow: hidden; text-decoration: none; transition: transform var(--dur), box-shadow var(--dur); }
.band:hover, .band:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(20, 22, 28, .25); }
.band__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.band__body { padding: 32px 34px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.band__label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #e0ac66; display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.band__was { margin: 0; font-family: var(--body); color: #b9b1a3; }
.band__was s { text-decoration-color: #e07a5a; }
.band__now { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.3; color: #fff; }
.band__title { margin: 4px 0 0; font-family: var(--serif); font-size: 30px; color: #fff; }
.band__frame { margin: 4px 0 0; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: #c9c1b3; border-left: 2px solid #e0ac66; padding-left: 12px; }
.band__more { margin: 6px 0 0; font-family: var(--sans); font-size: 15px; color: #e0ac66; }
@media (max-width: 860px) {
  .band { grid-template-columns: 1fr; }
  .band__img { aspect-ratio: 16 / 9; height: auto; }
  .band__body { padding: 24px 22px 28px; }
}
@media (prefers-reduced-motion: reduce) { .band { transition: none; } .band:hover, .band:focus-visible { transform: none; } }
