/* The Undergrind — styles
   Paper, ink, one accent. Quiet layout, loud type, documentary photographs.
   One left edge: the logo artwork, headings, text, photos and tables all start on the same line. */

@font-face { font-family: "Big Shoulders Display"; font-weight: 100 900; font-display: swap; src: url(/fonts/big-shoulders-display.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url(/fonts/instrument-sans.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/fonts/plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/plex-mono-500.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-400.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/newsreader-400-italic.woff2) format("woff2"); }

:root {
  --paper: #F2EDE3;
  --paper-2: #E9E3D7;
  --sheet: #F9F6F0;
  --ink: #141210;
  --ink-2: #4A453D;
  --ink-3: #6F675B;
  --mint: #3DD6A0;
  --burgundy: #7D1D3A;
  /* Shared pages are neutral: the highlight is ink. Brands are burgundy, creatives are mint (see "two sides" below). */
  --accent: var(--ink);
  --on-accent: var(--paper);   /* text that sits on the accent */
  --accent-fill: linear-gradient(var(--accent), var(--accent));   /* what marks and underlines are drawn with */
  --btn-hover: var(--ink-2);   /* a solid button's fill on hover */
  --btn2-hover: var(--ink);    /* an outlined button's fill on hover */

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --serif: "Newsreader", Georgia, serif;

  --gutter: 20px;
  --max: 1344px;
  --colgap: var(--s-top);
  --secpad: clamp(72px, 9vw, 136px);
  --logo-w: 196px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* Spacing. Fixed steps are 4 8 12 16 24 32 40 48 64 80 96. Three fluid steps cover everything between sections. */
  --s-gap: clamp(24px, 4vw, 48px);      /* between related blocks */
  --s-block: clamp(48px, 6vw, 80px);    /* between parts of one page section */
  --s-top: clamp(32px, 5vw, 72px);      /* from the masthead to the page's first line */
  /* Paper: sharp, irregular flecks at 14%, like recycled or risograph stock. Only on the bare page, never on photos or cards. */
  --paper-texture: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22320%22%20height%3D%22320%22%20viewBox%3D%220%200%20320%20320%22%3E%3Cfilter%20id%3D%22f%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.62%22%20numOctaves%3D%222%22%20seed%3D%2211%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%200%200%200%20.08%20%200%200%200%200%20.07%20%200%200%200%200%20.06%20%2034%200%200%200%20-22.6%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23f%29%22%20opacity%3D%22.14%22%2F%3E%3C%2Fsvg%3E');
  /* Grain: fine analog film grain, laid over everything at 8%. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
/* Film grain over every page, including anything added later: it sits on <html>, above all content. */
html::after { content: ""; position: fixed; inset: -50%; z-index: 2147483647; pointer-events: none; background: var(--grain) 0 0 / 220px repeat; opacity: .08; }
/* The photo viewer opens in the browser's top layer, so it carries its own grain. */
.viewer::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: var(--grain) 0 0 / 220px repeat; opacity: .08; }
@media print { html::after, .viewer::after { display: none; } }
@media (min-width: 48rem) { :root { --gutter: 40px; --logo-w: 320px; } }
@media (min-width: 80rem) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background-color: var(--paper); background-image: var(--paper-texture); background-size: 320px 320px; background-position: 0 0; background-attachment: fixed; color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
p, ul, ol, dl, figure, h1, h2, h3 { margin: 0; }
p, li, dd { text-wrap: pretty; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- type ---------- */
.h1 { font: 900 clamp(3rem, 8vw, 5.5rem)/.88 var(--display); text-transform: uppercase; letter-spacing: .002em; max-width: 15ch; text-wrap: balance; }
.h2 { font: 600 clamp(1.625rem, 2.6vw, 2.25rem)/1.12 var(--sans); letter-spacing: -.018em; max-width: 24ch; text-wrap: balance; }
.h3, .steps h3 { font: 600 1.125rem/1.3 var(--sans); }
.meta { font: 500 .75rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.45; max-width: 32em; }
.small { font-size: .875rem; color: var(--ink-2); }
.big { font: 600 1.5rem/1.2 var(--sans); letter-spacing: -.01em; }
.aside { margin-top: 40px; color: var(--ink-2); max-width: 40em; }
.note { margin-top: 24px; color: var(--ink-2); max-width: 40em; font-size: .9375rem; }
.more { display: inline-flex; gap: .4em; font-weight: 600; text-decoration: none; padding-bottom: 3px; background: var(--accent-fill) 0 100% / 100% 2px no-repeat; transition: background-size .45s var(--ease); }
.more:hover { background-size: 0 2px; background-position: 100% 100%; animation: redraw .5s .2s var(--ease) forwards; }
@keyframes redraw { from { background-size: 0 2px; background-position: 0 100%; } to { background-size: 100% 2px; background-position: 0 100%; } }
.more::after { content: "→"; text-decoration: none; display: inline-block; transition: transform .2s var(--ease); }
.more:hover::after { transform: translateX(3px); }
.dots { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 16px; }
.dots li { position: relative; padding-left: 1.25em; }
.dots li::before { content: "–"; position: absolute; left: 0; color: var(--ink-3); }
.olist { padding-left: 1.2em; display: grid; gap: 8px; margin-top: 12px; }

/* ---------- buttons: plain, quiet, obvious ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--on-accent); }
.btn::after { content: "→"; display: inline-block; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .3s var(--ease), opacity .2s, margin .3s var(--ease); }
.btn:hover::after, .btn:focus-visible::after { max-width: 1.2em; opacity: 1; margin-left: .5em; }
.btn:active { transform: translateY(1px); }
button.btn::after, .masthead__menu::after { content: none; }
.btn--secondary { background: transparent; color: var(--ink); }
.btn--secondary:hover { background: var(--btn2-hover); border-color: var(--btn2-hover); color: var(--on-accent); }
.btn[aria-disabled="true"], .btn.is-sending { cursor: progress; opacity: .7; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
@media (max-width: 39.99rem) { .ctas { display: grid; grid-template-columns: 1fr; justify-items: stretch; } .ctas .more, .ctas .share { justify-self: start; } }

/* ---------- masthead: big logo, artwork on the page's left edge ---------- */
body { padding-top: calc(var(--logo-w) * .6045 + 32px); }
.masthead { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--paper) var(--paper-texture) 0 0 / 320px 320px fixed; transition: box-shadow .25s, transform .35s var(--ease); view-transition-name: masthead; }
.masthead.is-hidden { transform: translateY(-100%); box-shadow: none; }
.masthead.is-scrolled { box-shadow: 0 10px 28px -20px rgba(20, 18, 16, .5); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.masthead__logo { display: block; line-height: 0; }
.logo { display: block; width: var(--logo-w); max-width: none; height: auto; margin: calc(var(--logo-w) * -.04545) 0 calc(var(--logo-w) * -.04545) calc(var(--logo-w) * -.04545); transition: width .25s var(--ease), margin .25s var(--ease); }
.masthead.is-scrolled { --logo-w: 132px; }
@media (min-width: 48rem) { .masthead.is-scrolled { --logo-w: 184px; } }
.masthead__nav { display: none; }
.masthead__nav ul { list-style: none; padding: 0; display: flex; gap: 32px; }
.masthead__nav a { font: 800 1.3125rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; padding: 8px 0; }
.masthead__nav a:hover, .masthead__nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.masthead__menu { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 800 1.125rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.masthead__menu[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.menu { padding-top: 8px; padding-bottom: 28px; }
.menu ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.menu li a { display: block; padding: 8px 0; font: 900 2.25rem/1 var(--display); text-transform: uppercase; text-decoration: none; }
.menu li a[aria-current="page"] { color: var(--ink-3); }
@media (min-width: 60rem) { .masthead__nav { display: block; } .masthead__menu, .menu { display: none !important; } }

/* ---------- photos ---------- */
.photo picture { display: block; aspect-ratio: var(--ar-d); background: #26231f; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 47.99rem) { .photo picture { aspect-ratio: var(--ar-m); } }
.photo figcaption { margin-top: 12px; font: 400 .75rem/1.4 var(--mono); color: var(--ink-3); }
.photo.wide { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- sections ---------- */
.sec { padding-top: var(--secpad); padding-bottom: 0; }
.sec--tight { padding-top: var(--s-block); }
main > :last-child { padding-bottom: var(--secpad); }
.sec__head { display: grid; gap: 16px; margin-bottom: 32px; }
.sec__head p { color: var(--ink-2); max-width: 40em; }
.sec > .h2 { margin-bottom: 32px; }
.cols { display: grid; gap: 48px; }
.col > .h2 { margin: 12px 0 16px; }
.col > p + p { margin-top: 12px; }
@media (min-width: 56rem) { .cols { grid-template-columns: 1fr 1fr; gap: var(--colgap); } .cols--base { align-items: baseline; } }
.cols--base .col > p:first-child + .ctas, .cols--base .ctas { margin-top: 24px; }

/* hero and page heads */
.hero, .pagehead { padding-top: var(--s-top); padding-bottom: var(--s-gap); }
.pagehead .meta { margin-bottom: 16px; }
.hero__row { display: grid; gap: 8px; margin-top: var(--s-gap); }
.hero__row p + p { margin-top: 12px; }
@media (min-width: 56rem) { .hero__row p + p { margin-top: 0; } .hero__row:has(p + p) { align-items: start; } }
@media (min-width: 56rem) {
  .hero__row { grid-template-columns: 1fr 1fr; gap: var(--colgap); align-items: end; }
  .hero__row .ctas { margin-top: 0; justify-content: flex-end; }
}

/* numbered steps – no circles, just numbers */
.steps { list-style: none; padding: 0; counter-reset: n; display: grid; gap: 32px; }
.steps li { counter-increment: n; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(n, decimal-leading-zero); font: 500 .75rem/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); margin-bottom: 8px; }
.steps p { color: var(--ink-2); max-width: 26em; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--colgap); } }

/* the four ways in: big plain rows */
.ways { list-style: none; padding: 0; margin-top: 16px; display: grid; }
.way { display: grid; gap: 8px; padding: 16px 0 24px; text-decoration: none; }
.way__label { display: inline-flex; align-items: baseline; gap: .35em; font: 900 clamp(2.25rem, 4.4vw, 3.75rem)/.95 var(--display); text-transform: uppercase; justify-self: start; background: var(--accent-fill) 0 100% / 0 4px no-repeat; padding-bottom: 4px; transition: background-size .4s var(--ease); }
.way__label::after { content: "→"; font-size: .7em; transition: transform .25s var(--ease); }
.way__text { color: var(--ink-2); max-width: 26em; }
.way:hover .way__label, .way:focus-visible .way__label { background-size: 100% 4px; }
.way:hover .way__label::after { transform: translateX(6px); }
.gap { height: 56px; }
.sec > .aside { margin-top: 32px; }
.sec__head .meta { margin-bottom: -4px; }
.sec > .ctas { margin-top: 32px; }
.addlink { margin-top: -12px; font-size: .9375rem; font-weight: 600; }
[id="seeking"] { scroll-margin-top: 220px; }

.gallery__credit { margin-top: 4px; color: var(--ink-3); }
.gallery__credit a { color: inherit; }
.backing { margin-top: 24px; display: grid; gap: 8px; max-width: 32rem; }
.backing__text { font-size: .9375rem; color: var(--ink-2); }
.backing__text strong { color: var(--ink); font-weight: 600; }
.backing__bar { height: 6px; background: var(--paper-2); }
.backing__bar span { display: block; height: 100%; background: var(--accent-fill); }
.lead--ink { background: var(--ink); color: var(--paper); }
.psec .backing { margin: 0 0 24px; }

/* ---------- the listing ---------- */
.listing { background: var(--sheet); padding: 32px var(--gutter) 32px; margin: 0 calc(-1 * var(--gutter)); }
@media (min-width: 48rem) { .listing { margin: 0; padding: 48px 48px 48px; } }
.listing + .listing { margin-top: 24px; }
.listing__head { display: grid; gap: 12px; }
.listing__title { font: 900 clamp(2.5rem, 6vw, 4.5rem)/.9 var(--display); text-transform: uppercase; }
.listing__title a { text-decoration: none; }
.listing__format { color: var(--ink-2); }
.listing__idea { margin-top: 24px; font: 400 clamp(1.25rem, 1.9vw, 1.5rem)/1.4 var(--serif); max-width: 34em; }
.listing__foot { margin-top: 32px; display: grid; gap: 16px; }
.listing__gets { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; }
@media (max-width: 30rem) { .listing__gets { grid-template-columns: 1fr; } }
.listing__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; }
@media (min-width: 56rem) { .listing__foot { grid-template-columns: 1fr 1fr; gap: var(--colgap); align-items: baseline; } }

/* roles table: role · what they own · fee */
.rt { width: 100%; border-collapse: collapse; margin-top: 32px; font-variant-numeric: tabular-nums lining-nums; }
.rt th, .rt td { text-align: left; vertical-align: baseline; padding: 12px 0; font-weight: 400; }
.rt thead th { font: 500 .6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 0; }
.rt tbody th { font-weight: 600; padding-right: 24px; }
.rt__owns { color: var(--ink-2); padding-right: 24px; }
.rt__time { display: block; font-size: .875rem; color: var(--ink-3); margin-top: 2px; }
.rt__fee { text-align: right !important; white-space: nowrap; font-weight: 600 !important; }
.rt__each { font-weight: 400; color: var(--ink-2); }
.rt__other th { font-weight: 400 !important; color: var(--ink-2); }
.rt tfoot th, .rt tfoot td { border-top: 1.5px solid var(--ink); padding-top: 16px; font-weight: 600; }
.lead { display: inline-block; margin-left: 6px; font: 500 .625rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 4px 6px 3px; vertical-align: 2px; }
@media (min-width: 48rem) { .rt tbody th { width: 32%; } }
@media (max-width: 47.99rem) {
  .rt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rt tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 12px 0; }
  .rt th, .rt td { padding: 0; }
  .rt tbody th { padding-right: 0; }
  .rt__owns { grid-column: 1 / -1; grid-row: 2; padding-right: 0; font-size: .9375rem; }
  .rt tfoot tr { border-top: 1.5px solid var(--ink); margin-top: 8px; padding-top: 16px; }
  .rt tfoot th, .rt tfoot td { border: 0; padding: 0; }
  .rt tfoot td:empty { display: none; }
}

.share { background: none; border: 0; padding: 8px 0; font: 600 1rem var(--sans); color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: .3em; text-decoration-color: rgba(20, 18, 16, .3); }
.share:hover { color: var(--ink); text-decoration-color: var(--accent); }
.share-status { font: 400 .75rem var(--mono); color: var(--ink-2); }

/* ---------- home ---------- */
.roots-teaser { display: grid; gap: 32px; }
.roots-teaser .h2 { margin-bottom: 16px; }
/* Our roots: a short first-person piece with the list of nights alongside */
.story { display: block; }
.story__text { max-width: 36rem; }
.story__text p { font: 400 clamp(1.1875rem, 1.6vw, 1.3125rem)/1.6 var(--serif); }
.story__text p + p { margin-top: 1.2em; }
.story__text a { text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }
.story__text .story__pull { margin: 1.4em 0 .9em; font: 900 clamp(2.5rem, 5vw, 4rem)/.92 var(--display); text-transform: uppercase; letter-spacing: .002em; }
.story__text .story__sign { margin-top: 2em; font: 600 1rem/1.4 var(--sans); }
.story__sign span { display: block; font: 400 .75rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.story__side .meta { margin-bottom: 16px; }
@media (min-width: 64rem) {
  .story__side { position: static; }
}
.roots-teaser p + p { margin-top: 16px; }
@media (min-width: 56rem) { .roots-teaser { grid-template-columns: 1fr 1fr; gap: var(--colgap); align-items: center; } }

/* ---------- brands ---------- */
.qa { display: grid; gap: 32px; }
.qa dt { font-weight: 600; margin-bottom: 8px; }
.qa dd { margin: 0; color: var(--ink-2); max-width: 34em; }
@media (min-width: 56rem) { .qa { grid-template-columns: 1fr 1fr; gap: 40px var(--colgap); } }

/* ---------- roots ---------- */
.gallery { display: grid; gap: 16px; padding-top: 16px; }
.g2, .g3 { display: grid; gap: 16px; }
@media (min-width: 48rem) {
  .g2 { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- project page ---------- */
.notice { background: var(--ink); color: var(--paper); font-size: .9375rem; }
.notice .wrap { display: block; padding-top: 12px; padding-bottom: 12px; }
.project { padding-top: var(--s-top); }
.project__head { padding-bottom: var(--s-block); }
.project__head .meta { margin-bottom: 16px; }
.project__head .lede { margin-top: 24px; color: var(--ink-2); }
.psec { padding-bottom: var(--s-block); max-width: 64rem; }
.psec > .meta, .psec .col > .meta { margin-bottom: 16px; }
.idea { font: 400 clamp(1.5rem, 2.8vw, 2.25rem)/1.3 var(--serif); max-width: 26em; }
.psec .rt { margin-top: 0; }
.psec .steps { margin-top: 8px; }
.kv { display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; }
.kv dt { font: 500 .75rem/1.7 var(--mono); text-transform: uppercase; color: var(--ink-2); }
.kv dd { margin: 0; }
.project__end .aside { margin-top: 32px; }

.actionbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -10px 28px -20px rgba(20, 18, 16, .5); transition: transform .25s var(--ease); }
.actionbar.is-away { transform: translateY(110%); }
.actionbar .btn { min-height: 48px; padding: 0 12px; }
@media (min-width: 64rem) { .actionbar { display: none !important; } }
@media (max-width: 63.99rem) { .has-actionbar .foot { padding-bottom: 64px; } }

/* ---------- forms ---------- */
.formpage { display: grid; gap: 40px; padding-top: var(--s-top); }
.formpage__intro .meta { margin-bottom: 16px; }
.formpage__intro .lede { margin-top: 24px; }
.formpage__aside .olist { font-size: .9375rem; color: var(--ink-2); }
.formpage__aside .small { margin-top: 16px; }
.formpage__aside .aside { margin-top: 32px; }
@media (min-width: 64rem) {
  .formpage { grid-template-columns: 1fr 1fr; grid-template-areas: "intro form" "aside form"; grid-template-rows: auto 1fr; gap: 40px var(--colgap); align-items: start; }
  .formpage__intro { grid-area: intro; }
  .formpage__aside { grid-area: aside; position: sticky; top: 160px; }
  .formpage__form { grid-area: form; }
}
.form, .confirm { background: var(--sheet); padding: 32px var(--gutter) 32px; margin: 0 calc(-1 * var(--gutter)); }
@media (min-width: 48rem) { .form, .confirm { margin: 0; padding: 40px; } }
.form { display: grid; gap: 32px; }
.confirm .h2 { margin: 12px 0 16px; }
.confirm .olist { margin-bottom: 24px; }
.confirm:focus { outline: none; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-row { display: grid; gap: 32px; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; gap: 24px; } }
.field label, .field legend { font-weight: 600; padding: 0; }
.field legend { margin-bottom: 12px; }
.req { color: #A3260A; margin-left: 3px; }
.opt { font: 400 .75rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin-left: 8px; }
.hint { font-size: .875rem; color: var(--ink-2); margin-top: -4px; }
input[type="text"], input[type="email"], textarea { width: 100%; min-height: 52px; padding: 13px 15px; border: 1.5px solid #8F8677; border-radius: 0; background: #fff; color: var(--ink); font: 400 1.0625rem/1.4 var(--sans); -webkit-appearance: none; appearance: none; transition: border-color .15s; }
input[type="text"]:hover, input[type="email"]:hover, textarea:hover, input:focus, textarea:focus { border-color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
::placeholder { color: #6F675B; }
[aria-invalid="true"] { border-color: #A3260A !important; background: #FFF5F2 !important; }
.err { color: #9A2208; font-weight: 600; font-size: .9375rem; }
.choices { display: grid; gap: 8px; }
.choice { display: block; cursor: pointer; }
.choice input, .pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: grid; gap: 2px; padding: 13px 14px 13px 48px; background: var(--paper); position: relative; transition: background-color .12s; }
.choice span::before { content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; }
.choice:hover span, .choice input:checked + span { background: var(--paper-2); }
.choice small { color: var(--ink-2); font-size: .875rem; }
.choice input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.choice input:focus-visible + span, .pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choices--pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid #8F8677; background: #fff; font-weight: 500; font-size: .9375rem; transition: background-color .12s, color .12s, border-color .12s; }
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.fieldset-invalid .pill span { border-color: #A3260A; }
.reveal { margin-top: 16px; display: grid; gap: 16px; }
.reveal > label { font-weight: 600; }
.check { display: flex; gap: 12px; align-items: center; cursor: pointer; font-weight: 600; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; margin: 0; }
.field--project { padding: 16px 16px; background: var(--paper); }
.context-chip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding: 12px 16px; background: var(--paper); font-weight: 600; }
.context-chip .label { font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.context-chip p { font-size: .9375rem; }
.context-chip .linkish { margin-left: auto; font-weight: 500; font-size: .875rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; color: inherit; }
.hp { position: absolute; left: -9999px; }
.form__submit { display: grid; gap: 16px; justify-items: start; }
@media (max-width: 39.99rem) { .form__submit .btn { width: 100%; } }
.err-summary { padding: 16px 16px; background: #FFF0EB; }
.err-summary:focus { outline: 2px solid var(--ink); }
.err-summary__h { font-size: 1.0625rem; margin-bottom: 8px; }
.err-summary ul { padding-left: 1.1em; }
.err-summary a { color: #9A2208; font-weight: 600; }
.send-error { padding: 16px 16px; background: var(--paper-2); }
.send-error strong { display: block; margin-bottom: 4px; }
.prose { max-width: 44rem; }
.prose p + p { margin-top: 1rem; }
.lost { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 12px; }

/* ---------- footer ---------- */
.foot { background: var(--paper-2); }
.foot__in { display: grid; gap: 32px; padding-top: 64px; padding-bottom: 40px; }
.foot__logo { display: block; line-height: 0; justify-self: start; }
.foot__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot__nav ul { list-style: none; padding: 0; display: grid; gap: 4px; align-content: start; }
.foot__nav a { font-weight: 500; text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.foot__small { font: 400 .75rem/1.6 var(--mono); color: var(--ink-2); }
.foot__small a { color: inherit; }
@media (min-width: 56rem) { .foot__in { grid-template-columns: 1fr 1fr; gap: 40px var(--colgap); padding-top: 64px; } .foot__small { grid-column: 1 / -1; } }


/* ================= life: motion, media, interaction ================= */

/* page-to-page: a short cross-fade, header stays put */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .32s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* first headline rises into place once */
.js main .h1:first-of-type { animation: rise .9s var(--ease) both; }
@keyframes rise { from { clip-path: inset(0 0 100% 0); transform: translateY(.18em); } to { clip-path: inset(0 0 -10% 0); transform: none; } }

/* sections settle in as they arrive (only with JS; already visible otherwise) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* photos fade in when loaded, over the warm placeholder */
.js .photo img { opacity: 0; transition: opacity .6s var(--ease); }
.js .photo img.is-loaded { opacity: 1; }

/* listing rows answer the pointer */
@media (hover: hover) {
  .rt tbody tr { transition: background-color .2s; }
  .rt tbody tr:hover { background: rgba(20, 18, 16, .035); }
  .rt tbody tr:hover .rt__fee { color: var(--ink); }
  .rt tbody tr:hover th { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .25em; }
}

/* home hero: text left, footage right – both visible in the first screen */
.hero--home { display: grid; gap: 32px; }
.hero--home .lede { margin-top: 24px; }
.hero__text .meta { margin-bottom: 16px; }
.hero__media { margin: 0 calc(-1 * var(--gutter)); }
@media (min-width: 64rem) {
  .hero--home { grid-template-columns: 5fr 7fr; gap: var(--colgap); align-items: end; }
  .h1 { font-size: clamp(3.25rem, 5vw, 5.5rem); }
  .hero__media { margin: 0; }
}

/* video: plays over its poster photo */
.media { position: relative; }
.media.wide { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.media .photo { padding: 0; }
.media__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus); opacity: 0; transition: opacity .8s var(--ease); background: transparent; }
.media.is-playing .media__video { opacity: 1; }
.media[role="button"] { cursor: pointer; }
.media__state { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 16px; background: rgba(20, 18, 16, .7); color: var(--paper); font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; backdrop-filter: blur(6px); }
.media.show-state .media__state { opacity: 1; }
.rt__pct { font: 500 .75rem/1 var(--mono); color: var(--ink-3); margin-left: 8px; }
.film__cap a { color: inherit; }
.hero__film { display: grid; gap: 12px; }
@media (min-width: 64rem) { .hero__film { position: relative; } .hero__film .film__cap { position: absolute; top: 100%; left: 0; right: 0; margin-top: 12px; } .hero--top { align-items: start; } .hero--home:has(.hero__film) { padding-bottom: 80px; } }
.hero__text .record { margin-top: 32px; }
.hero__film .film__cap { color: var(--ink-3); }
@media (max-width: 63.99rem) { .hero__film .film__cap { padding: 0 var(--gutter); } .hero__film { margin: 0 calc(-1 * var(--gutter)); } .hero__film .hero__media { margin: 0; } }
.record { display: grid; max-width: 44rem; }
@media (min-width: 56rem) { .hero__row--top { align-items: start; } }
.record div { display: grid; grid-template-columns: 4.5em 1fr; gap: 16px; padding: 8px 0; align-items: baseline; }
.record dt { font: 500 .8125rem/1.6 var(--mono); color: var(--ink-3); }
.record dd { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; }
.record__name { font-weight: 600; }
.record__where { color: var(--ink-2); }
/* the 4:3 video on Our roots: as large as fits the screen, on the page's left edge */
.frame43 { width: min(100%, calc((100svh - 160px) * 4 / 3)); }
.film { display: grid; gap: 12px; }
.film__cap { color: var(--ink-3); }
@media (min-width: 64rem) { .film { grid-template-columns: auto 1fr; gap: var(--colgap); align-items: end; } }


/* archive: tap a photo to view it large */
.zoom { display: block; cursor: zoom-in; overflow: hidden; }
.zoom picture { transition: transform .8s var(--ease); }
@media (hover: hover) { .zoom:hover picture { transform: scale(1.025); } }
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(17, 16, 14, .985); color: var(--paper); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade .25s var(--ease); }
.viewer::backdrop { background: transparent; }
@keyframes fade { from { opacity: 0; } }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.viewer__stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); touch-action: pan-y; }
.viewer__stage img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; animation: fade .3s var(--ease); }
.viewer__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter) calc(14px + env(safe-area-inset-bottom)); font: 400 .75rem/1.4 var(--mono); color: #B3AC9F; }
.viewer button { min-height: 44px; padding: 0 16px; background: none; border: 1px solid rgba(242, 237, 227, .35); color: var(--paper); font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.viewer button:hover { border-color: var(--paper); }
.viewer__nav { display: flex; gap: 8px; }

/* phone menu: a full-screen sheet */
@media (max-width: 59.99rem) {
  .menu { position: fixed; inset: 0; z-index: -1; background: var(--paper); padding-top: calc(var(--logo-w) * .7 + 32px); overflow-y: auto; }
  .menu:not([hidden]) { animation: fade .25s var(--ease); }
  .menu li { opacity: 0; transform: translateY(12px); animation: item .5s var(--ease) forwards; }
  .menu li:nth-child(2) { animation-delay: .05s; } .menu li:nth-child(3) { animation-delay: .1s; } .menu li:nth-child(4) { animation-delay: .15s; }
  .menu li a { font-size: clamp(2.75rem, 13vw, 4rem); padding: 6px 0; }
  body.menu-open { overflow: hidden; }
}
@keyframes item { to { opacity: 1; transform: none; } }

/* footer sign-off */
.foot__signoff { grid-column: 1 / -1; display: grid; gap: 40px; padding-bottom: var(--s-gap); }
@media (min-width: 56rem) { .foot__signoff { grid-template-columns: 1fr 1fr; gap: var(--colgap); } }
.foot__side { display: grid; gap: 12px; justify-items: start; align-content: start; }
.foot__go { white-space: nowrap; font: 900 clamp(2.25rem, 4.6vw, 4.25rem)/1 var(--display); text-transform: uppercase; text-decoration: none; background: var(--accent-fill) 0 100% / 0 3px no-repeat; padding-bottom: 4px; transition: background-size .4s var(--ease); }
.foot__go::after { content: " →"; }
.foot__go:hover { background-size: 100% 3px; }
.foot__or { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .photo img { opacity: 1 !important; transform: none !important; }
  .js main .h1:first-of-type, .menu li { animation: none !important; opacity: 1 !important; transform: none !important; }
  @view-transition { navigation: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .masthead, .foot, .actionbar, .notice, .share { display: none !important; } }

/* ---------- accounts: sign-in link ---------- */
.when-in { display: none; }
html.in .when-in { display: inline; }
html.in .when-out { display: none; }
.masthead__nav ul { align-items: center; }
.masthead__nav a.masthead__acct, .menu__acct { display: inline-flex; align-items: center; gap: 8px; font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 12px 0; }
.masthead__acct::before, .menu__acct::before { content: ""; width: 7px; height: 7px; box-shadow: inset 0 0 0 1.5px var(--ink); }
html.in .masthead__acct::before, html.in .menu__acct::before { background: var(--accent); box-shadow: none; }
.menu__acct { margin-top: 20px; font-size: .8125rem; }
.menu__acct:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .35em; }

/* ---------- sign in ---------- */
.login__sent { display: grid; gap: 12px; }
.login__sent .h2:focus { outline: none; }
.login__sent strong { overflow-wrap: anywhere; }
.formpage__aside .next + .next { margin-top: 32px; }
.code { font: 500 1.5rem/1.2 var(--mono) !important; letter-spacing: .28em; max-width: 16rem; }
.login__alt { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.login__note { font-weight: 600; }
.hint strong { color: var(--ink); overflow-wrap: anywhere; }

/* ---------- account ---------- */
.acct { padding-top: var(--s-top); min-height: 62vh; }
.acct__state .h1 { margin: 16px 0 24px; }
.acct__loading { margin-top: 16px; color: var(--ink-2); }
.acct__loading::after { content: "…"; }
.acct__signed { margin-top: 24px; }
.acct__head .meta { margin-bottom: 16px; }
.acct__head .h1 { max-width: 18ch; overflow-wrap: anywhere; }
.acct__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-top: 24px; color: var(--ink-2); font-size: .9375rem; }
.acct__who span { overflow-wrap: anywhere; }

.tag { display: inline-flex; align-items: center; gap: 8px; font: 500 .75rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.tag::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--ink); }
.tag--act::before { background: var(--accent-fill); }
.tag--wait::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.tag--off { color: var(--ink-3); }
.tag--off::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }

.acct__sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin-top: var(--s-block); }
.acct__sum div { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.acct__sum dd { margin: 0; font: 900 clamp(2.125rem, 6.4vw, 4.75rem)/.9 var(--display); font-variant-numeric: tabular-nums lining-nums; }
@media (min-width: 64rem) { .acct__sum { gap: var(--colgap); max-width: 58rem; } }

.acct__todo { margin: var(--s-gap) calc(-1 * var(--gutter)) 0; padding: 24px 24px 24px; background: var(--sheet); }
@media (min-width: 48rem) { .acct__todo { margin-left: 0; margin-right: 0; padding: 32px 40px 32px; } }
.acct__quiet { margin-top: 12px; color: var(--ink-2); }
.acct__list { list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 16px; }
.acct__list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.acct__list li > span { font-weight: 600; max-width: 44em; }

.acct__body { display: grid; margin-top: var(--s-block); }
.acct__nav ul { list-style: none; padding: 0; display: flex; gap: 0 24px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.acct__nav ul::-webkit-scrollbar { display: none; }
.acct__nav a { display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 0; font: 800 1.3125rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.acct__nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.acct__n { font: 500 .75rem/1 var(--mono); letter-spacing: 0; color: var(--ink-3); }
.acct__sec { padding-top: var(--s-block); scroll-margin-top: 96px; }
.acct__sec:focus, .inv:focus { outline: none; }
.acct__sec > .h2 { margin-bottom: 24px; }
@media (min-width: 64rem) {
  .acct__body { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--colgap); align-items: start; }
  .acct__nav { position: sticky; top: 132px; }
  .acct__nav ul { display: grid; gap: 2px; margin: 0; padding: 0; overflow: visible; }
  .acct__sec:first-child { padding-top: 0; }
  .acct__sec { scroll-margin-top: 132px; }
}
.acct__secs { min-width: 0; max-width: 50rem; }
.acct__close { margin-top: 64px; }
.acct__note, .acct__after { margin-top: 24px; }
.acct__ctas { margin-top: 32px; }
.acct__sub { margin-top: 40px; }
.acct__sub--first { margin-top: 0; }
.acct__sub > .meta { margin-bottom: 12px; }
.acct__empty { display: grid; gap: 16px; justify-items: start; padding: 24px var(--gutter) 24px; background: var(--sheet); margin: 0 calc(-1 * var(--gutter)); }
.acct__empty p { color: var(--ink-2); max-width: 38em; }
@media (min-width: 48rem) { .acct__empty { margin: 0; padding: 32px 40px 32px; } }
.acct__form { max-width: none; }
.acct__save { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.acct__saved { font-weight: 600; }
.acct__saved.is-bad { color: #9A2208; }
.acct__table { margin-top: 0; }
.acct__table td .tag { display: flex; }

.rows { list-style: none; padding: 0; display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 24px; padding: 16px var(--gutter); background: var(--sheet); margin: 0 calc(-1 * var(--gutter)); }
.row__main { grid-column: 1 / -1; display: grid; gap: 2px; min-width: 0; }
.row__main span { color: var(--ink-2); font-size: .9375rem; }
.row__main strong { overflow-wrap: anywhere; }
.row__date { font: 400 .75rem/1.2 var(--mono); color: var(--ink-3); }
.row__amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.row > .tag, .row > .btn { justify-self: end; }
.row > .btn { grid-column: 1 / -1; justify-self: start; }
.row__apply { grid-column: 1 / -1; display: grid; gap: 12px; }
.row__apply label, .inv__ask label { font-weight: 600; }
@media (min-width: 40rem) {
  .row { grid-template-columns: minmax(0, 1fr) auto minmax(9.5rem, auto); margin: 0; padding: 16px 24px; }
  .row__main { grid-column: auto; }
  .row > .tag { justify-self: start; }
  .row > .btn { grid-column: 2 / -1; justify-self: end; }
  .row > .row__main + .tag { grid-column: 3; }
}
.btn--small { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.acct__open + .acct__open { margin-top: 32px; }
.acct__open-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 12px; font-weight: 600; }
.acct__open-title span { font-weight: 400; color: var(--ink-2); }
.acct__open.is-wanted .acct__open-title a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.invs { display: grid; gap: 16px; }
.inv { padding: 24px var(--gutter) 32px; background: var(--sheet); margin: 0 calc(-1 * var(--gutter)); scroll-margin-top: 110px; }
@media (min-width: 48rem) { .inv { margin: 0; padding: 32px 40px 32px; } }
.inv__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.inv__title { margin-top: 12px; font: 600 1.375rem/1.2 var(--sans); letter-spacing: -.012em; }
.inv__lines { margin-top: 16px; }
.inv__due, .inv__note, .inv__state { margin-top: 16px; }
.inv__due .meta { margin-right: 12px; }
.inv__note { color: var(--ink-2); max-width: 38em; }
.inv__state { font-weight: 600; }
.inv__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.row__apply .inv__actions { margin-top: 4px; }
.inv__ask { display: grid; gap: 12px; justify-items: start; margin-top: 24px; }
.inv__ask textarea, .row__apply textarea { min-height: 96px; }
.inv__small { margin-top: 16px; max-width: 38em; }
.inv__q { display: grid; gap: 8px; margin-top: 24px; padding: 16px 16px; background: var(--paper); }
.inv__err { margin-top: 16px; }
.inv--void .inv__title, .inv--void .inv__lines { color: var(--ink-3); }

.acct__filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { min-height: 40px; padding: 6px 14px; border: 1.5px solid #8F8677; border-radius: 0; background: #fff; color: var(--ink); font: 500 .9375rem/1.2 var(--sans); cursor: pointer; transition: background-color .12s, color .12s, border-color .12s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.people { list-style: none; padding: 0; display: grid; gap: 8px; }
@media (min-width: 48rem) { .people { grid-template-columns: 1fr 1fr; } }
.person { display: grid; gap: 8px; align-content: start; padding: 24px 24px 24px; background: var(--sheet); min-width: 0; }
.person[hidden] { display: none; }
.person__name { font: 600 1.125rem/1.25 var(--sans); }
.person__name span { margin-left: 12px; font-weight: 400; font-size: .9375rem; color: var(--ink-2); }
.person__bio { color: var(--ink-2); font-size: .9375rem; }
.person__links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9375rem; }
.person__links a { overflow-wrap: anywhere; }
@media print { .acct__nav, .acct__todo, .inv__actions, .inv__ask, .inv__small { display: none !important; } }

/* ---------- desktop masthead sits tighter so the first screen starts higher ---------- */
@media (min-width: 64rem) {
  :root { --logo-w: 264px; }
  body { padding-top: calc(var(--logo-w) * .6045 + 20px); }
  .masthead__in { padding-top: 12px; padding-bottom: 8px; }
  .page-home .hero { padding-top: 12px; }
}

/* ---------- home: compact example, routes, founder's line ---------- */
.eg { display: grid; gap: 24px; background: var(--sheet); padding: 24px var(--gutter) 32px; margin: 0 calc(-1 * var(--gutter)); }
.eg__head { display: grid; gap: 8px; }
.eg__title { font: 900 clamp(2.25rem, 4vw, 3.25rem)/.9 var(--display); text-transform: uppercase; }
.eg__title a { text-decoration: none; }
.eg__facts { display: grid; gap: 16px; }
.eg__facts div { display: grid; gap: 4px; align-content: start; }
.eg__facts dd { margin: 0; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
@media (min-width: 48rem) {
  .eg { margin: 0; padding: 32px 40px; }
  .eg__facts { grid-template-columns: auto auto minmax(0, 1fr); gap: 16px var(--s-gap); }
}
@media (min-width: 72rem) {
  .eg { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; gap: var(--colgap); align-items: end; }
  .eg__more { padding-bottom: 2px; }
}
.ways--two { margin-top: 0; }
@media (min-width: 56rem) { .ways--two { grid-template-columns: 1fr 1fr; gap: 0 var(--colgap); } }
.ways__eg { margin-top: 12px; color: var(--ink-2); max-width: 44em; }
.sec__head + .ways--two { margin-top: -12px; }
.credit { margin-top: 12px; color: var(--ink-3); }
.pull { margin: 16px 0 24px; font: 900 clamp(2.75rem, 5.4vw, 4.5rem)/.92 var(--display); text-transform: uppercase; letter-spacing: .002em; text-wrap: balance; }
.roots-teaser__by { color: var(--ink-2); font-size: .9375rem; }

/* ---------- for brands: what you get, by route ---------- */
.gets .h3 { margin-bottom: 16px; }
.gets__list { display: grid; gap: 16px; }
.gets__list dt { font-weight: 600; margin-bottom: 3px; }
.gets__list dd { margin: 0; color: var(--ink-2); max-width: 30em; }
.roots-teaser .lede + p { margin-top: 16px; color: var(--ink-2); max-width: 32em; }

/* ---------- a project seeking funding: total, backed, still needed ---------- */
.backing { max-width: 36rem; gap: 12px; }
.backing__figs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px var(--s-gap); }
.backing__figs div { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.backing__figs dd { margin: 0; font: 900 clamp(1.75rem, 3.4vw, 2.5rem)/.9 var(--display); font-variant-numeric: tabular-nums lining-nums; }
.backing__figs dt { max-width: 11em; }
.rt__across { margin-top: 16px; }
.rt--needs .lead { white-space: nowrap; }
@media (min-width: 64rem) { .page-home .hero { padding-top: 32px; padding-bottom: 64px; } }
.hero--home .lede { text-wrap: wrap; }
.page-home .hero + .sec--tight { padding-top: var(--s-gap); }
.rt .lead--ink { background: var(--ink); color: var(--paper); }

/* ---------- alignment: like things are the same size ---------- */
/* Every sheet (listing, form, example, invoice, notice) has the same inner margin. */
.listing, .form, .confirm, .eg, .inv, .acct__todo, .acct__empty { padding: 32px var(--gutter); }
@media (min-width: 48rem) { .listing, .form, .confirm, .eg, .inv, .acct__todo, .acct__empty { padding: 40px; } }
.person { padding: 24px; }
/* Option buttons sit on a grid: every one in a group is the same width and height. */
.choices--pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
@media (min-width: 40rem) { .choices--pills { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pill { display: grid; }
.pill span { display: flex; justify-content: center; text-align: center; width: 100%; height: 100%; min-height: 48px; padding: 8px 12px; line-height: 1.2; }
.choices:not(.choices--pills) { grid-auto-rows: 1fr; }
.choice { display: grid; }
.choice span { align-content: center; }
/* Buttons that sit side by side are the same width. */
@media (min-width: 40rem) {
  .ctas:has(> :nth-child(2)):not(:has(.share, .more, .linkish)) { display: grid; grid-template-columns: repeat(auto-fit, 13.75rem); }
  .ctas:has(.share) .btn { min-width: 13.75rem; }
}
.inv__actions .btn, .acct__save .btn, .form__submit .btn { min-width: 13.75rem; }
/* Figures in a row share equal columns. */
.backing__figs { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
/* Budget figures line up with the table beneath them: same columns, same width. */
.backing { max-width: none; }
@media (min-width: 48rem) { .backing__figs { grid-template-columns: 32% minmax(0, 1fr) auto; gap: 12px 0; } .backing__left { text-align: right; align-items: flex-end; } }

/* ---------- icons: one small mark per action, in the weight of the type ---------- */
.ico { flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; overflow: visible; transition: transform .35s var(--ease); }
.ico__fill { fill: currentColor; stroke: none; }
.ico__move { transition: transform .35s var(--ease); }
.btn--ico { gap: 10px; }
.btn--ico::after { content: none; }
a:hover > .ico--plus, a:focus-visible > .ico--plus { transform: rotate(90deg); }
a:hover > .ico--nodes, a:focus-visible > .ico--nodes { transform: rotate(-60deg); }
a:hover > .ico--back .ico__move, a:focus-visible > .ico--back .ico__move { transform: translateY(2px); }
a:hover > .ico--pitch .ico__move, a:focus-visible > .ico--pitch .ico__move { transform: translate(2px, -2px); }
button:hover > .ico--send .ico__move, button:focus-visible > .ico--send .ico__move { transform: translateX(3px); }
.share { display: inline-flex; align-items: center; gap: 8px; }
.share:hover > .ico--link { transform: rotate(-12deg); }
.ico--nodes { transform-origin: 50% 50%; }

/* phone menu: the four actions as two matched pairs */
.menu__acts { display: grid; gap: 24px; margin-top: 24px; }
.menu__acts > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu__acts .meta { grid-column: 1 / -1; }
.menu__acts .btn { padding: 0 8px; font-size: .9375rem; }
@media (max-width: 22.5rem) { .menu__acts .btn--ico { gap: 6px; } .menu__acts .btn { font-size: .875rem; } }

/* home: the whole example card is the link */
.eg { position: relative; transition: background-color .2s; }
.eg__title a::after { content: ""; position: absolute; inset: 0; }
.eg:hover { background: #fff; }
.eg:hover .more::after { transform: translateX(3px); }

/* funding bar fills as it comes into view */
.backing__bar span { transform-origin: 0 50%; transition: transform 1.1s var(--ease); }
.backing__bar.is-waiting span { transform: scaleX(0); }

.lost__lede { margin-top: 24px; }
::selection { background: var(--accent); color: var(--on-accent); }
textarea { overflow: hidden; }

/* ---------- Our roots: the text runs down the left of the film, like a column beside a picture ---------- */
.roots { display: grid; gap: var(--s-gap); padding-top: var(--s-top); }
.roots__col { display: contents; }                       /* phones: heading, film, story, nights – in that order */
.roots__head { order: 1; }
.roots__film { order: 2; }
.story { order: 3; }
.story__side { order: 4; }
.roots__head .meta { margin-bottom: 16px; }
.roots__head .lede { margin-top: 24px; }
@media (min-width: 64rem) {
  .roots { grid-template-columns: 5fr 7fr; gap: var(--colgap); align-items: start; }
  .roots__col { display: grid; gap: var(--s-gap); align-content: start; min-width: 0; }
  .roots__film.hero__film .film__cap { position: static; margin-top: 0; }
  .roots__col--side { gap: var(--s-block); }
  .story__text { max-width: none; }
  .story__side { padding-left: 0; }
}
.roots + .gallery { padding-top: var(--s-block); }

/* Instagram glyph in front of links to Instagram, in the colour of the text */
.ig { display: inline-block; width: 1.05em; height: 1.05em; margin-right: .35em; vertical-align: -.16em; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ig__dot { fill: currentColor; stroke: none; }
.credit-link { white-space: nowrap; }

/* ---------- mint accent ----------
   Mint is light, so it marks things (underlines, squares, fills) and never carries text or the keyboard focus ring. */
:focus-visible { outline-color: var(--ink); }
input:focus, textarea:focus { outline-color: var(--ink); }
.btn:focus-visible { outline-color: var(--ink); }
/* small places the accent turns up */
.steps li::before { display: flex; align-items: center; gap: 8px; }
.steps li { position: relative; }
.steps li::after { content: ""; position: absolute; left: 2.1em; top: .16em; width: 7px; height: 7px; background: var(--accent-fill); }
.sec__head > .meta::before, .hero__text > .meta::before, .roots__head > .meta::before, .formpage__intro > .meta::before, .acct__head > .meta::before, .eg__head > .meta::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--accent-fill); vertical-align: .06em; }
.dots li::before { content: ""; top: .62em; width: 7px; height: 7px; background: var(--accent-fill); }
.choice input:checked + span::before { background: var(--accent); border-color: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.foot__small::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--accent-fill); }
.record dt::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; background: var(--accent-fill); vertical-align: .12em; }
.record div:last-child dt::before { content: none; }
.steps li::before { display: block; padding-left: 15px; }
.steps li::after { left: 0; top: .14em; }
.record div { grid-template-columns: 7.25em 1fr; }
.record dt { white-space: nowrap; }
.roots-teaser > div > .meta:not(.credit)::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--accent-fill); vertical-align: .06em; }
.ig { margin-right: .16em; }

/* ---------- two sides, two accents ----------
   Brands are burgundy, creatives are mint. A page, a section or a single link can belong to a side;
   everything inside it picks up that side's accent. */
[data-side="brand"], a[href^="/start"], a[href^="/projects#seeking"], a[href="/brands"] { --accent: var(--burgundy); --on-accent: var(--paper); --accent-fill: linear-gradient(var(--burgundy), var(--burgundy)); --btn-hover: var(--burgundy); --btn2-hover: var(--burgundy); }
[data-side="creative"], a[href^="/join"], a[href^="/pitch"], a[href="/creatives"] { --accent: var(--mint); --on-accent: var(--ink); --accent-fill: linear-gradient(var(--mint), var(--mint)); --btn-hover: var(--mint); --btn2-hover: var(--mint); }
/* The homepage belongs to both sides: wherever it isn't speaking to one of them, marks and underlines are half burgundy, half mint. */
.page-home { --accent-fill: linear-gradient(90deg, var(--burgundy) 50%, var(--mint) 50%); }
.btn--ico:hover, .btn--ico:focus-visible { color: var(--on-accent); }

/* ---------- the nights: year · name, kind in italics · @venue ---------- */
.record { gap: 16px; }
.record div { grid-template-columns: 6.5em minmax(0, 1fr); gap: 16px; padding: 0; align-items: start; }
.record dt { display: grid; gap: 2px; white-space: nowrap; line-height: 1.5; padding-top: .18em; padding-left: 13px; position: relative; }
.record dt::before { position: absolute; left: 0; top: .78em; margin: 0; }
.record__when { font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; }
.record dd { display: grid; gap: 2px; }
.record__name { line-height: 1.35; }
.record__kind { font: italic 400 .9375rem/1.35 var(--serif); color: var(--ink-2); margin-left: 4px; }
.record__where { font-size: .875rem; color: var(--ink-3); }
.story__side .record { margin-top: 0; }

/* ---------- photographs that take turns ---------- */
.rot { position: relative; display: grid; }
.rot__item { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.rot__item.is-on { opacity: 1; }
html:not(.js) .rot__item:not(:first-child) { display: none; }
.rot__dots { position: absolute; left: 4px; bottom: 4px; display: flex; }
.rot__dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.rot__dot::before { content: ""; width: 7px; height: 7px; background: var(--paper); opacity: .55; transition: opacity .2s, background-color .2s; }
.rot__dot:hover::before { opacity: 1; }
.rot__dot[aria-current="true"]::before { background: var(--paper); box-shadow: 0 0 0 2px var(--accent); opacity: 1; }
[data-side="creative"] .rot__dot[aria-current="true"]::before { background: var(--accent); box-shadow: none; }
.rot__dot:focus-visible { outline: 2px solid var(--paper); outline-offset: -4px; }

/* Big titles that link somewhere: on hover a bar draws in under the whole title. (An underline would cut through a two-line title.) */
.listing__title::after, .eg__title::after { content: ""; display: block; height: 4px; margin: 10px 0 -14px; background: var(--accent-fill); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.listing__title:hover::after, .listing__title:focus-within::after, .eg:hover .eg__title::after, .eg:focus-within .eg__title::after { transform: scaleX(1); }
.listing__title a:hover, .eg__title a:hover { text-decoration: none; }

/* ---------- Our roots: the list ends with The Undergrind itself ---------- */
/* Same row as every other entry: year, name, then one line beneath. No rule above it. */
.record__line { font-size: .875rem; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.for-creatives, .for-brands { color: var(--ink); font-weight: 600; background: linear-gradient(var(--mint), var(--mint)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; }
.for-brands { background-image: linear-gradient(var(--burgundy), var(--burgundy)); }

/* ---------- menus that pick a value ---------- */
.sel { width: 100%; min-height: 48px; padding: 0 40px 0 14px; border: 1.5px solid #8F8677; border-radius: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141210' stroke-width='1.7'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat; color: var(--ink); font: 500 .9375rem/1.2 var(--sans); -webkit-appearance: none; appearance: none; cursor: pointer; }
.sel:hover, .sel:focus { border-color: var(--ink); }
.sel:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.sel.is-bad { border-color: #A3260A; }
input[type="date"] { width: 100%; min-height: 52px; padding: 13px 15px; border: 1.5px solid #8F8677; border-radius: 0; background: #fff; color: var(--ink); font: 400 1.0625rem/1.4 var(--sans); }
.field__label { font-weight: 600; }

/* ---------- admin ---------- */
.row--wide { align-items: start; }
.row--wide > .sel { grid-column: 1 / -1; }
@media (min-width: 40rem) { .row--wide { grid-template-columns: minmax(0, 1fr) 12.5rem; } .row--wide > .sel { grid-column: 2; } .row--wide > .row__main { grid-column: 1; } }
.row.is-new { box-shadow: inset 3px 0 0 var(--ink); }
.adm__kind { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-bottom: 4px; }
.adm__bio { max-width: 44em; }
.adm__more { margin-top: 8px; }
.adm__more summary, .adm__new summary { cursor: pointer; font-weight: 600; }
.adm__more summary { text-decoration: underline; text-underline-offset: .3em; }
.kv--wide { margin-top: 12px; }
.kv--wide div { grid-template-columns: 1fr; gap: 2px; }
.kv--wide dd { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 40rem) { .kv--wide div { grid-template-columns: 12em 1fr; gap: 16px; } }
.adm__new { margin-top: 24px; }
.adm__new summary { list-style: none; display: inline-block; }
.adm__new summary::-webkit-details-marker { display: none; }
.adm__new[open] summary { margin-bottom: 16px; }
.adm__new[open] summary .btn { background: var(--ink); color: var(--paper); }
.adm__form .form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.lines { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: 8px; }
.adm__tools { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-size: .9375rem; font-weight: 600; }
.adm__total { margin-top: 12px; font-weight: 600; }
.adm__total strong { margin-left: 12px; font: 900 1.75rem/1 var(--display); font-variant-numeric: tabular-nums; }
.adm__sum { margin-top: 0; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 96px; margin-top: 32px; }
.spark span { flex: 1; min-width: 0; background: var(--ink); }
.bars { margin-top: 0; }
.bars__bar { width: 46%; padding-right: 16px !important; }
.bars__bar span { display: block; height: 8px; background: var(--ink); }
@media (max-width: 47.99rem) { .bars__bar { display: none; } }

/* ---------- portfolio images ---------- */
.shots { display: flex; flex-wrap: wrap; gap: 8px; }
.shot { width: 160px; max-width: 100%; height: 120px; object-fit: contain; background: var(--paper-2); display: block; }
.row .shot { width: 96px; height: 72px; }
.shot:not([src]) { visibility: hidden; }
.shot-wrap { display: grid; gap: 4px; justify-items: start; font-size: .875rem; }
.shots--edit:empty { display: none; }
.shots--edit:not(:empty) { margin-bottom: 12px; }
.prose .h3 { margin: 40px 0 12px; }
.prose p strong { font-weight: 600; }
.record dt:empty::before { content: none; }
.record div.record__now dt::before { content: ""; background: linear-gradient(90deg, var(--burgundy) 50%, var(--mint) 50%); }

/* ---------- consistency pass ---------- */
/* Every section label carries the same small mark, wherever it sits. */
.meta--mark::before, .pagehead > .meta::before, .project__head > .meta::before, .acct__state > .meta::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--accent-fill); vertical-align: .06em; }
.menu__acts .meta--mark { display: block; }
/* Long text pages start on the page's left edge like everything else, at a comfortable reading width. */
.prose { max-width: var(--max); }
.prose > * { max-width: 44rem; }
.pagehead + .prose { padding-top: var(--s-gap); }
/* Listing pages have longer button labels: one wider size for all of them, so pairs match and nothing wraps. */
.page-project .ctas:has(> :nth-child(2)):not(:has(.share, .more, .linkish)) { grid-template-columns: repeat(auto-fit, 15.5rem); }
@media (min-width: 40rem) { .page-project .ctas:has(.share) .btn { min-width: 15.5rem; } }
.btn { white-space: nowrap; }
.menu__acts .btn, .actionbar .btn { white-space: normal; }
/* The kind of night sits on its own line on phones instead of wrapping beside the name. */
@media (max-width: 39.99rem) { .record__kind { display: block; margin: 2px 0 0; } }
a:hover > .ico--down .ico__move, a:focus-visible > .ico--down .ico__move { transform: translateY(2px); }
.pagehead + .prose { padding-top: 0; }
