/* ==================================================================
   Minimal · stitched · paper — layered over portfolio.css.
   Remove the <link> to minimal.css in index.html to revert entirely.
   - paper grain over the page (both themes)
   - dashed "stitch" guides: content edges + a seam between sections,
     drawn in as each section reveals
   - de-boxed cards: no fill, border or radius; one stitch above each
   ================================================================== */

:root {
  /* Hand-sewn stitches: SVG tiles of 6 slightly irregular, round-capped
     threads with faint needle holes, on a 28px rhythm (168px tile).
     Presentation only — every animation is unchanged. */
  --stitch: color-mix(in srgb, var(--stone) 32%, transparent);  /* plain-line fallback colour */
  --stitch-size-h: 168.00px 4px;
  --stitch-size-v: 4px 168.00px;
  --stitch-h: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='168.00' height='4.00' viewBox='0 0 168.00 4.00'><g stroke='%236b6a64' stroke-opacity='0.28' stroke-linecap='round' fill='%236b6a64' fill-opacity='0.154'><line x1='1.32' y1='2.23' x2='6.62' y2='1.95' stroke-width='1.06'/><circle cx='-0.08' cy='2.23' r='0.45'/><circle cx='8.02' cy='1.95' r='0.45'/><line x1='29.39' y1='2.15' x2='34.50' y2='1.86' stroke-width='1.03'/><circle cx='27.99' cy='2.15' r='0.45'/><circle cx='35.90' cy='1.86' r='0.45'/><line x1='56.91' y1='1.85' x2='62.09' y2='2.06' stroke-width='0.96'/><circle cx='55.51' cy='1.85' r='0.45'/><circle cx='63.49' cy='2.06' r='0.45'/><line x1='85.16' y1='2.24' x2='91.41' y2='2.30' stroke-width='1.03'/><circle cx='83.76' cy='2.24' r='0.45'/><circle cx='92.81' cy='2.30' r='0.45'/><line x1='114.36' y1='2.28' x2='119.46' y2='2.15' stroke-width='0.96'/><circle cx='112.96' cy='2.28' r='0.45'/><circle cx='120.86' cy='2.15' r='0.45'/><line x1='140.99' y1='2.30' x2='146.61' y2='2.08' stroke-width='1.07'/><circle cx='139.59' cy='2.30' r='0.45'/><circle cx='148.01' cy='2.08' r='0.45'/></g></svg>");
  --stitch-v: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='4.00' height='168.00' viewBox='0 0 4.00 168.00'><g stroke='%236b6a64' stroke-opacity='0.28' stroke-linecap='round' fill='%236b6a64' fill-opacity='0.154'><line x1='2.27' y1='1.52' x2='2.24' y2='7.64' stroke-width='1.05'/><circle cx='2.27' cy='0.12' r='0.45'/><circle cx='2.24' cy='9.04' r='0.45'/><line x1='1.96' y1='29.74' x2='2.05' y2='35.11' stroke-width='1.12'/><circle cx='1.96' cy='28.34' r='0.45'/><circle cx='2.05' cy='36.51' r='0.45'/><line x1='1.65' y1='56.95' x2='1.86' y2='62.56' stroke-width='1.1'/><circle cx='1.65' cy='55.55' r='0.45'/><circle cx='1.86' cy='63.96' r='0.45'/><line x1='2.21' y1='84.87' x2='2.34' y2='91.83' stroke-width='1.08'/><circle cx='2.21' cy='83.47' r='0.45'/><circle cx='2.34' cy='93.23' r='0.45'/><line x1='2.15' y1='113.05' x2='1.88' y2='118.08' stroke-width='0.98'/><circle cx='2.15' cy='111.65' r='0.45'/><circle cx='1.88' cy='119.48' r='0.45'/><line x1='2.00' y1='141.19' x2='1.96' y2='146.25' stroke-width='1.13'/><circle cx='2.00' cy='139.79' r='0.45'/><circle cx='1.96' cy='147.65' r='0.45'/></g></svg>");
}
body.theme-dark {
  --stitch: color-mix(in srgb, var(--stone) 26%, transparent);
  --stitch-h: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='168.00' height='4.00' viewBox='0 0 168.00 4.00'><g stroke='%2387867f' stroke-opacity='0.23' stroke-linecap='round' fill='%2387867f' fill-opacity='0.127'><line x1='1.32' y1='2.23' x2='6.62' y2='1.95' stroke-width='1.06'/><circle cx='-0.08' cy='2.23' r='0.45'/><circle cx='8.02' cy='1.95' r='0.45'/><line x1='29.39' y1='2.15' x2='34.50' y2='1.86' stroke-width='1.03'/><circle cx='27.99' cy='2.15' r='0.45'/><circle cx='35.90' cy='1.86' r='0.45'/><line x1='56.91' y1='1.85' x2='62.09' y2='2.06' stroke-width='0.96'/><circle cx='55.51' cy='1.85' r='0.45'/><circle cx='63.49' cy='2.06' r='0.45'/><line x1='85.16' y1='2.24' x2='91.41' y2='2.30' stroke-width='1.03'/><circle cx='83.76' cy='2.24' r='0.45'/><circle cx='92.81' cy='2.30' r='0.45'/><line x1='114.36' y1='2.28' x2='119.46' y2='2.15' stroke-width='0.96'/><circle cx='112.96' cy='2.28' r='0.45'/><circle cx='120.86' cy='2.15' r='0.45'/><line x1='140.99' y1='2.30' x2='146.61' y2='2.08' stroke-width='1.07'/><circle cx='139.59' cy='2.30' r='0.45'/><circle cx='148.01' cy='2.08' r='0.45'/></g></svg>");
  --stitch-v: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='4.00' height='168.00' viewBox='0 0 4.00 168.00'><g stroke='%2387867f' stroke-opacity='0.23' stroke-linecap='round' fill='%2387867f' fill-opacity='0.127'><line x1='2.27' y1='1.52' x2='2.24' y2='7.64' stroke-width='1.05'/><circle cx='2.27' cy='0.12' r='0.45'/><circle cx='2.24' cy='9.04' r='0.45'/><line x1='1.96' y1='29.74' x2='2.05' y2='35.11' stroke-width='1.12'/><circle cx='1.96' cy='28.34' r='0.45'/><circle cx='2.05' cy='36.51' r='0.45'/><line x1='1.65' y1='56.95' x2='1.86' y2='62.56' stroke-width='1.1'/><circle cx='1.65' cy='55.55' r='0.45'/><circle cx='1.86' cy='63.96' r='0.45'/><line x1='2.21' y1='84.87' x2='2.34' y2='91.83' stroke-width='1.08'/><circle cx='2.21' cy='83.47' r='0.45'/><circle cx='2.34' cy='93.23' r='0.45'/><line x1='2.15' y1='113.05' x2='1.88' y2='118.08' stroke-width='0.98'/><circle cx='2.15' cy='111.65' r='0.45'/><circle cx='1.88' cy='119.48' r='0.45'/><line x1='2.00' y1='141.19' x2='1.96' y2='146.25' stroke-width='1.13'/><circle cx='2.00' cy='139.79' r='0.45'/><circle cx='1.96' cy='147.65' r='0.45'/></g></svg>");
}

/* ---------- Paper texture ----------
   Seamless 512px tiles made by scripts/make-paper-texture.py: soft mottling,
   fine tooth and scattered fibres. Light theme multiplies a near-white tile
   (darker flecks); dark theme screens a near-black tile (lighter flecks). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 45;                         /* over content + nav (40), under the moth (50) */
  background: url("assets/paper-light.webp") repeat;
  background-size: 512px 512px;
  mix-blend-mode: multiply;
  opacity: 0.333;                      /* 0.55 → -25% → -10% → -10% */
}
body.theme-dark::after {
  background-image: url("assets/paper-dark.webp");
  mix-blend-mode: screen;
  opacity: 0.231;                      /* 0.38 → -25% → -10% → -10% */
}

/* ---------- Sections: one surface, stitched seams ---------- */
section.band,
section.band.alt {
  position: relative;
  border-top: 0;
  background: transparent;
}
/* seam between sections */
section.band:not(:first-of-type)::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -2px;
  height: 4px;
  background: var(--stitch-h) left center / var(--stitch-size-h) repeat-x;
  /* sewn left to right one stitch at a time by stitches.js (--seam-draw) */
  clip-path: inset(0 calc(100% - var(--seam-draw, 0px)) 0 0);
}

/* Side guides: ONE continuous stitch per side for the whole page (built by
   stitches.js), so there are no overlaps or phase jumps between sections.
   It eases in on load, then is "sewn" just ahead of the viewport as you scroll. */
.page-guides {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--guides-h, 100vh);
  pointer-events: none;
  z-index: 0;
  clip-path: inset(0 0 calc(100% - var(--guides-draw, 0px)) 0);
}
.page-guides::before,
.page-guides::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--stitch-v) center top / var(--stitch-size-v) repeat-y;
}
/* 1180px container + 16px outside it; never closer than 14px to the window edge
   (the 4px stitch tile is centred on that line) */
.page-guides::before { left: calc(max(14px, calc(50% - 606px)) - 2px); }
.page-guides::after  { right: calc(max(14px, calc(50% - 606px)) - 2px); }

/* ---------- De-boxed cards ---------- */
.card {
  background: var(--stitch-h) left top / var(--stitch-size-h) repeat-x;
  border: 0;
  border-radius: 0;
  padding: 22px 0 18px;
  box-shadow: none;
}
.card:hover { box-shadow: none; }
.review-card { min-height: 0; }

/* ---------- Quieter accents ---------- */
.section-title {
  border-left: 0;
  padding-left: 0;
}
.topnav {
  border-bottom: 0;
  background-image: var(--stitch-h);
  background-repeat: repeat-x;
  background-size: var(--stitch-size-h);
  background-position: left bottom;
}

/* footer: stitched seam instead of a solid rule */
.site-footer {
  border-top: 0;
  background: var(--stitch-h) left top / var(--stitch-size-h) repeat-x;
}

/* ==================================================================
   Numbers + Skills (section#skills.numbers)
   ================================================================== */
.numbers__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-xl);
  align-items: end;
}
.numbers__lead-figure {
  font-family: var(--serif);
  font-size: clamp(76px, 9vw, 120px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--brand);
  font-variant-numeric: tabular-nums lining-nums;
}
.numbers__lead-label {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 500;
  color: var(--near-black);
}
.numbers__lead-note {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--stone);
  max-width: 32ch;
}

.ledger { list-style: none; margin: 0; padding: 0; }
.ledger__row {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  grid-template-areas: "fig label" "fig note";
  column-gap: 20px;
  align-items: baseline;
  padding: 16px 0 14px;
  background: var(--stitch-h) left top / var(--stitch-size-h) repeat-x;
}
.ledger__figure {
  grid-area: fig;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}
.ledger__label { grid-area: label; font-size: 16px; font-weight: 500; color: var(--near-black); }
.ledger__note  { grid-area: note;  font-size: 13px; color: var(--stone); margin-top: 2px; }

/* Toolkit */
.toolkit { margin-top: calc(var(--gap-xl) * 1.25); }
.toolkit__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.toolkit__head h3,
.credentials h3 { font-size: 20px; font-weight: 500; margin: 0; }
.toolkit__groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 var(--gap-lg);
}
.toolkit__group-name { color: var(--brand); margin-bottom: 10px; }
.toolkit ul { list-style: none; margin: 0; padding: 0; }
.toolkit__item {
  padding: 11px 0 10px;
  background: var(--stitch-h) left top / var(--stitch-size-h) repeat-x;
  outline: none;
}
.toolkit__name { display: block; font-size: 16px; color: var(--near-black); }
.toolkit__item[tabindex="0"] .toolkit__name {
  text-decoration: underline dotted color-mix(in srgb, var(--stone) 60%, transparent);
  text-underline-offset: 4px;
  cursor: default;
}
.toolkit__note { display: block; font-size: 13px; color: var(--stone); margin-top: 2px; }
.toolkit__used {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  line-height: 1.5;
  color: var(--brand);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease;
}
.toolkit__item:hover .toolkit__used,
.toolkit__item:focus-visible .toolkit__used,
.toolkit__item:focus .toolkit__used { max-height: 9em; opacity: 1; margin-top: 6px; }
@media (hover: none) {           /* touch: no hover, so always show the evidence */
  .toolkit__used { max-height: none; opacity: 1; margin-top: 6px; }
}

/* Certifications + education */
.credentials {
  margin-top: calc(var(--gap-xl) * 1.25);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--gap-xl);
}
.credentials h3 { margin-bottom: 14px; }
.credentials__list { list-style: none; margin: 0; padding: 0; }
.credentials__list li {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  column-gap: 20px;
  padding: 13px 0 12px;
  background: var(--stitch-h) left top / var(--stitch-size-h) repeat-x;
}
.credentials__list .mono-label { grid-row: span 2; padding-top: 4px; }
.credentials__name { font-size: 16px; color: var(--near-black); }
.credentials__note { grid-column: 2; font-size: 13px; color: var(--stone); margin-top: 2px; }

@media (max-width: 1024px) {
  .toolkit__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gap-lg); }
}
@media (max-width: 760px) {
  .numbers__top, .credentials { grid-template-columns: 1fr; gap: 40px; }
  .toolkit__head { flex-direction: column; gap: 4px; }
  .ledger__row, .credentials__list li { grid-template-columns: 6em minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .toolkit__groups { grid-template-columns: 1fr; }
}

/* ==================================================================
   Projects: numbered, stitched rows
   ================================================================== */
.project-list { list-style: none; margin: 0; padding: 0; }
.project-row {
  display: grid;
  grid-template-columns: 11em minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--gap-lg);
  padding: 26px 0 28px;
  background: var(--stitch-h) left top / var(--stitch-size-h) repeat-x;
}
.project-list .project-row:last-child {
  background: var(--stitch-h) left top / var(--stitch-size-h) repeat-x,
              var(--stitch-h) left bottom / var(--stitch-size-h) repeat-x;
}
.project-row__index { display: flex; flex-direction: column; gap: 8px; }
.project-row__num {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums lining-nums;
}
.project-row__name {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 8px;
  transition: color 0.2s ease;
}
.project-row:hover .project-row__name { color: var(--brand); }
.project-row__summary { margin: 0; font-size: 15px; line-height: 1.6; color: var(--dark-warm); }
.project-row__outcome { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--olive); }
.project-row__stack {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  line-height: 1.7;
  color: var(--stone);
}

/* ==================================================================
   Reviews: one featured quote, names to switch
   ================================================================== */
.quotes { max-width: 60em; }
.quotes__figure { margin: 0; min-height: 13.5em; animation: quote-in 0.6s ease both; }
@keyframes quote-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quotes__text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--near-black);
  max-width: 38em;
}
.quotes__by { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; }
.quotes__author { font-size: 17px; font-weight: 500; color: var(--brand); }
.quotes__nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--gap-lg);
  margin-top: 36px;
  padding-top: 18px;
  background: var(--stitch-h) left top / var(--stitch-size-h) repeat-x;
}
.quotes__names { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.quotes__name,
.quotes__arrow {
  font: inherit;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--stone);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.quotes__name:hover, .quotes__arrow:hover { color: var(--near-black); }
.quotes__name.is-active {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.quotes__name:focus-visible, .quotes__arrow:focus-visible { outline: 1px dashed var(--brand); outline-offset: 3px; }
.quotes__arrows { display: flex; gap: 14px; }
.quotes__arrow { font-size: 16px; }

@media (max-width: 900px) {
  .project-row { grid-template-columns: 1fr; gap: 12px; }
  .project-row__index { flex-direction: row; align-items: baseline; gap: 14px; }
  .quotes__figure { min-height: 0; }
  .quotes__nav { grid-template-columns: 1fr auto; }
  .quotes__names { grid-column: 1 / -1; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .quotes__figure { animation: none; }
}

/* ==================================================================
   History + Contact
   ================================================================== */
.job-entry { padding: 24px 0 !important; }
.job-stack {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  line-height: 1.7;
  color: var(--stone);
}
#contact .contact-row {
  background: var(--stitch-h) left bottom / var(--stitch-size-h) repeat-x;
}
#contact .contact-row:first-child {
  background: var(--stitch-h) left top / var(--stitch-size-h) repeat-x,
              var(--stitch-h) left bottom / var(--stitch-size-h) repeat-x;
}
#contact .contact-row__kind { display: none; }
#contact .contact-row__value { transition: color 0.2s ease; }
#contact .contact-row__value:hover { color: var(--brand) !important; }

/* Contact: copyright sits at the bottom left, under "Let's talk." (replaces the footer) */
#contact .contact-intro { display: flex; flex-direction: column; align-items: flex-start; }
#contact .contact-intro__copy { margin-top: auto; padding-top: 40px; }

/* ==================================================================
   "builder." — stitched underline (sewn in by stitches.js via data-sew)
   Larger accent-coloured stitches, no needle holes; ink-blue on parchment,
   orange on dark.
   ================================================================== */
:root { --stitch-accent: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='132.00' height='6' viewBox='0 0 132.00 6'><g stroke='%231B365D' stroke-opacity='0.92' stroke-linecap='round'><line x1='1.48' y1='2.79' x2='12.60' y2='2.95' stroke-width='2.36'/><line x1='23.13' y1='3.50' x2='32.77' y2='3.18' stroke-width='2.17'/><line x1='46.99' y1='3.35' x2='57.91' y2='3.32' stroke-width='2.37'/><line x1='67.30' y1='3.35' x2='78.68' y2='3.39' stroke-width='2.42'/><line x1='90.34' y1='3.20' x2='100.12' y2='3.32' stroke-width='2.2'/><line x1='111.06' y1='2.79' x2='123.09' y2='3.16' stroke-width='2.49'/></g></svg>"); --stitch-accent-size: 132px 6px; }
body.theme-dark { --stitch-accent: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='132.00' height='6' viewBox='0 0 132.00 6'><g stroke='%23E07B3F' stroke-opacity='0.92' stroke-linecap='round'><line x1='1.48' y1='2.79' x2='12.60' y2='2.95' stroke-width='2.36'/><line x1='23.13' y1='3.50' x2='32.77' y2='3.18' stroke-width='2.17'/><line x1='46.99' y1='3.35' x2='57.91' y2='3.32' stroke-width='2.37'/><line x1='67.30' y1='3.35' x2='78.68' y2='3.39' stroke-width='2.42'/><line x1='90.34' y1='3.20' x2='100.12' y2='3.32' stroke-width='2.2'/><line x1='111.06' y1='2.79' x2='123.09' y2='3.16' stroke-width='2.49'/></g></svg>"); }
.stitch-underline { position: relative; display: inline-block; color: var(--brand); }
.stitch-underline__dot { font-style: normal; }
.stitch-underline__thread {
  position: absolute;
  left: 0.02em;
  right: -0.04em;
  bottom: -0.17em;
  height: 6px;
  pointer-events: none;
  background: var(--stitch-accent) left center / var(--stitch-accent-size) repeat-x;
  clip-path: inset(0 calc(100% - var(--seam-draw, 0px)) 0 0);
}

/* Pen-style phrase underlines (thin, steady ink) */
.ink-mark__svg path { stroke-width: 1.15; }
.ink-mark__svg path.ink-hair { stroke-width: 0.6; opacity: 0.55; }

@media (prefers-reduced-motion: reduce) {
  .stitch-underline__thread { clip-path: none; }
}

/* Small screens: guides sit at the gutter edge */
@media (max-width: 760px) {
  .page-guides::before { left: 8px; }
  .page-guides::after  { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  section.band::before { clip-path: none; }
  .page-guides { clip-path: none; }
}
@media print {
  body::after { display: none; }
}

/* ---------- About: text column spans the cards' height, a sewn vertical seam between ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4px minmax(0, 1fr);
  column-gap: calc(var(--gap-xl) * 0.6);
  align-items: stretch;
}
.about-grid__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 18px;           /* same as .card, so the first and last lines line up */
}
.about-grid__cards {               /* cards spread to the same height as the text */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.about-grid__seam { position: relative; }
/* the thread runs the full height of the section, joining its top and bottom
   seams (stitches.js sets --span-top/--span-bottom), and is sewn top to bottom */
.about-grid__thread {
  position: absolute;
  left: 0;
  width: 4px;
  top: var(--span-top, 0px);
  bottom: var(--span-bottom, 0px);
  background: var(--stitch-v) center top / var(--stitch-size-v) repeat-y;
  clip-path: inset(0 0 calc(100% - var(--seam-draw, 0px)) 0);
}
@media (max-width: 768px) {
  .about-grid__seam { display: none; }
  .about-grid__text { padding: 0; justify-content: flex-start; }
  .about-grid__cards { justify-content: flex-start; }
}

/* ---------- Reviews: each quote fades in, lightly, as a whole ----------
   One opacity fade (no movement), short, strong ease-out; the name line follows
   60ms behind. Waits until the section has been seen. Reduced motion keeps a
   gentle fade (opacity only aids reading; nothing moves anyway). */
.quotes__figure { animation: none; }
.quotes__text,
.quotes__by { animation: quote-fade-in 320ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.quotes__by { animation-delay: 60ms; }
/* (a data attribute, not a class: useReveal owns this element's classes) */
.quotes:not([data-shown]) .quotes__text,
.quotes:not([data-shown]) .quotes__by { animation-play-state: paused; }
@keyframes quote-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Phones: no written brackets in the project steps (the step arrow springs from the
   bracket, so it goes too), and no handwritten commentary in History at all. */
@media (max-width: 768px) {
  .margin-note__bracket,
  .folio-note__arrow { display: none !important; }
  .margin-note { grid-template-columns: minmax(0, 1fr) !important; column-gap: 0 !important; }
  #history .job-notes { display: none !important; }
}
