/* CrewPool design system, v1 (2026-11-12)
   One stylesheet for every page. Spec: design-system/DIRECTION.md. Reference render: kit.html.
   Rules that live here, not in page files:
   - No per-page <style> blocks and no inline style="" (except --vars on a single element).
   - Colour roles: ink = information, blue = action, fluoro red = money (pay tag only).
   - No box-shadow anywhere. No rotation anywhere except .pay--hero.
*/

/* ---------- 1. Font: Archivo variable (wght 100-900, wdth 62-125), self-hosted, latin subset ---------- */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* metric-matched fallback so the swap does not shift layout */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 88%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* colour */
  --paper: #F4F0E3;        /* page */
  --pulp: #EAE4D1;         /* quiet band, hover, disabled fill */
  --field: #FFFDF7;        /* input fill */
  --ink: #1D1C1A;          /* text, rules, borders. 14.9:1 on paper */
  --ink-2: #5A554A;        /* secondary text. 6.5:1 on paper, 5.8:1 on pulp */
  --rule: #CFC8B4;         /* hairline dividers only, never text */
  --blue: #2B3FBB;         /* action. 7.3:1 on paper, paper on blue 7.3:1 */
  --blue-deep: #1F2F94;    /* hover/pressed */
  --blue-wash: #DCE1F6;    /* selected-row tint only */
  --red: #FF4724;          /* fluoro: money fields, ink text on it 5.0:1. Never text, never under white */
  --red-ink: #C42E0E;      /* error text + error borders. 4.9:1 on paper */

  /* type */
  --font: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --cond: 72%;             /* display width */
  --semi: 86%;             /* h2 width */
  --t-display: clamp(3rem, 1.6rem + 5.6vw, 6.5rem);
  --t-h1: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);
  --t-h2: clamp(1.75rem, 1.45rem + 1.3vw, 2.5rem);
  --t-h3: clamp(1.25rem, 1.2rem + .25vw, 1.375rem);
  --t-lede: clamp(1.1875rem, 1.12rem + .3vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-micro: .8125rem;
  --measure: 66ch;

  /* space: 4px base */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem;
  --section: var(--s8);    /* 64px mobile, 96px >=1024 */
  --gutter: 1rem;
  --margin: 1.25rem;
  --container: 75rem;      /* 1200px */

  /* shape + motion */
  --radius: 4px;
  --border: 2px;
  --tap: 2.75rem;          /* 44px minimum target */
  --control: 3.25rem;      /* 52px inputs and buttons */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 140ms;
  --t-reveal: 650ms;
}
@media (min-width: 40rem) { :root { --gutter: 1.5rem; --margin: 2rem; } }
@media (min-width: 64rem) { :root { --section: var(--s9); --margin: 2.5rem; --control: 3rem; } }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.55; font-weight: 400;
  font-kerning: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }   /* component display rules must never un-hide a hidden element */
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: var(--border) solid var(--ink); margin: var(--s7) 0; }
::selection { background: var(--blue); color: var(--paper); }

a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2.5px; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.band--blue :focus-visible { outline-color: var(--paper); }

.skip { position: absolute; left: var(--s4); top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); }
.skip:focus { top: var(--s4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 4. Type ---------- */
.display, h1, .h1 {
  font-stretch: var(--cond); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.005em; text-wrap: balance;
}
.display { font-size: var(--t-display); line-height: .9; max-width: 14ch; }
h1, .h1 { font-size: var(--t-h1); line-height: .94; max-width: 18ch; }
h2, .h2 {
  font-size: var(--t-h2); line-height: 1.04; font-stretch: var(--semi); font-weight: 760;
  letter-spacing: -.01em; text-wrap: balance; max-width: 24ch;
}
h3, .h3 { font-size: var(--t-h3); line-height: 1.2; font-weight: 700; letter-spacing: -.005em; text-wrap: balance; }
.lede { font-size: var(--t-lede); line-height: 1.42; max-width: 44ch; text-wrap: pretty; }
p, li, dd { text-wrap: pretty; }
.small { font-size: var(--t-small); line-height: 1.5; }
.muted { color: var(--ink-2); }
.num, .pay, .stat__n, td, .meta dd { font-variant-numeric: tabular-nums lining-nums; }
.nowrap { white-space: nowrap; }   /* wrap prices, dates and "£15 an hour" in this */
.measure { max-width: var(--measure); }

/* ---------- 5. Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }                 /* same-surface sections never double the gap */
.section--rule { border-top: var(--border) solid var(--ink); padding-top: var(--section) !important; }
.section__head { display: grid; gap: var(--s4); margin-bottom: var(--s6); }
@media (min-width: 64rem) { .section__head { margin-bottom: var(--s7); } }

.grid { display: grid; gap: var(--gutter); row-gap: var(--s7); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.grid > * { grid-column: 1 / -1; }

/* card grids: pick the class that matches the count. 2 -> .cols-2, 3 -> .cols-3, 4 -> .cols-2x2 or .cols-4, 6 -> .cols-3 */
.cols-2, .cols-3, .cols-4, .cols-2x2 { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .cols-2, .cols-3, .cols-4, .cols-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

.band--pulp { background: var(--pulp); }
.band--blue { background: var(--blue); color: var(--paper); }
.band--blue a:not(.btn) { color: var(--paper); }
.band--blue .muted { color: #D9DDF3; }               /* 5.4:1 on blue */
.band--ink { background: var(--ink); color: var(--paper); }

/* ---------- 6. Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--border) solid var(--ink); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 3.5rem; }
@media (min-width: 64rem) { .site-header__inner { min-height: 4.5rem; } }
.brand { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); }
.brand img, .brand svg { height: .9375rem; width: auto; }   /* the wide lockup: 15px on phones so it sits beside "Jobs" and "Hiring crew?" without wrapping */
@media (min-width: 48rem) { .brand img, .brand svg { height: 1.25rem; } }
@media (min-width: 64rem) { .brand img, .brand svg { height: 1.5rem; } }
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a:not(.btn) {
  display: none; align-items: center; min-height: var(--tap); color: var(--ink); text-decoration: none;
  font-weight: 560; font-size: var(--t-small); border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue); }
.nav a.nav__switch, .nav a.nav__keep { display: inline-flex; }       /* the links that survive on phones: Jobs (or Browse crew) and the audience switch */
.nav a.nav__keep { margin-right: calc(var(--s2) * -1); }
@media (min-width: 48rem) { .nav a:not(.btn) { display: inline-flex; } }
.nav .btn { display: none; }
@media (min-width: 48rem) { .nav .btn { display: inline-flex; min-height: 2.75rem; padding-inline: var(--s5); } }

/* ---------- 7. Footer ---------- */
.site-footer { border-top: var(--border) solid var(--ink); padding-block: var(--s8) var(--s6); font-size: var(--t-small); }
.site-footer__grid { display: grid; gap: var(--s6) var(--gutter); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__brand { grid-column: 1 / -1; }
.site-footer__brand img { height: 1.5rem; width: auto; margin-bottom: var(--s3); }
@media (min-width: 64rem) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } .site-footer__brand { grid-column: auto; } }
.site-footer h2 { font-size: var(--t-small); font-stretch: 100%; font-weight: 700; letter-spacing: 0; margin-bottom: var(--s2); }
.site-footer ul a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer__legal { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--rule); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); justify-content: space-between; }

/* ---------- 8. Buttons: primary, secondary, text. Nothing else. ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--control); padding: .5rem 1.5rem; border: var(--border) solid var(--blue); border-radius: var(--radius);
  background: var(--blue); color: var(--paper); font-weight: 680; font-size: 1.0625rem; line-height: 1.15;
  text-decoration: none; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--paper); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--pulp); color: var(--ink); border-color: var(--ink); }
.btn--block { width: 100%; }
@media (min-width: 40rem) { .btn--block-sm { width: auto; } }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--pulp); border-color: var(--pulp); color: var(--ink-2); cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; position: relative; overflow: hidden; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 40%; background: var(--paper);
  animation: busy 1.1s var(--ease) infinite;
}
@keyframes busy { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.btn__main { display: block; }
.btn__sub { display: block; font-weight: 420; font-size: var(--t-micro); opacity: .9; margin-top: 2px; }
.btn--two-line { flex-direction: column; gap: 0; padding-block: .55rem; }
/* inside the one blue band per page, the primary inverts */
.band--blue .btn { background: var(--paper); border-color: var(--paper); color: var(--blue); }
.band--blue .btn:hover { background: var(--pulp); border-color: var(--pulp); }
.band--blue .btn--secondary { background: transparent; color: var(--paper); border-color: var(--paper); }
.band--blue .btn--secondary:hover { background: var(--blue-deep); }

.link { display: inline-flex; align-items: center; gap: .35em; min-height: var(--tap); font-weight: 600; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.link svg { width: .9em; height: .9em; flex: none; transition: transform var(--t-fast) var(--ease); }
.link:hover svg { transform: translateX(2px); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; }

/* ---------- 9. Forms ---------- */
.form { display: grid; gap: var(--s5); max-width: 36rem; }
.form-row { display: grid; gap: var(--s5); }
@media (min-width: 40rem) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s2); align-content: start; }
.label { font-weight: 650; font-size: 1rem; line-height: 1.3; }
.label .opt { font-weight: 400; color: var(--ink-2); }
.hint { font-size: var(--t-small); color: var(--ink-2); line-height: 1.45; margin-top: -2px; }
.input, .select, .textarea {
  width: 100%; min-height: var(--control); padding: .7rem .875rem; border: var(--border) solid var(--ink); border-radius: var(--radius);
  background: var(--field); font-size: 1.0625rem; line-height: 1.3; -webkit-appearance: none; appearance: none;
  transition: border-color var(--t-fast) var(--ease);
}
.textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #8A8476; opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--blue); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--blue); outline-offset: 2px; }
.select {
  padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%231D1C1A' stroke-width='2.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .875rem center; background-size: 1rem;
}
.input[type="date"] { display: flex; }
.input[type="date"]::-webkit-calendar-picker-indicator { opacity: .7; cursor: pointer; }
.input--short { max-width: 10rem; }
.field--error .input, .field--error .select, .field--error .textarea, [aria-invalid="true"] { border-color: var(--red-ink); }
.error-msg { display: none; color: var(--red-ink); font-weight: 600; font-size: var(--t-small); line-height: 1.4; gap: .5em; }
.error-msg::before { content: ""; flex: none; width: .5rem; height: .5rem; margin-top: .4em; background: var(--red-ink); }
.field--error .error-msg, .error-msg.is-shown { display: flex; }
.field--ok .input { border-color: var(--blue); }

/* fieldset legend reads as a label, never a heading */
.legend { font-weight: 650; font-size: 1rem; line-height: 1.3; margin-bottom: var(--s2); padding: 0; }

/* checkbox + radio */
.choice { display: flex; gap: var(--s3); align-items: flex-start; min-height: var(--tap); padding-block: .55rem; cursor: pointer; line-height: 1.4; }
.choice input {
  flex: none; width: 1.5rem; height: 1.5rem; margin: -.05rem 0 0; border: var(--border) solid var(--ink); background: var(--field);
  -webkit-appearance: none; appearance: none; border-radius: 3px; cursor: pointer; display: grid; place-content: center;
}
.choice input[type="radio"] { border-radius: 50%; }
.choice input:checked { background: var(--blue); border-color: var(--blue); }
.choice input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23F4F0E3' stroke-width='2.4'/%3E%3C/svg%3E"); background-size: 1rem; background-repeat: no-repeat; background-position: center; }
.choice input[type="radio"]:checked { box-shadow: inset 0 0 0 4px var(--field); }  /* inset ring, not a drop shadow */
.choice input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice small { display: block; color: var(--ink-2); font-size: var(--t-small); }
.choices--2 { display: grid; gap: 0 var(--gutter); }
.choices--inline { display: flex; flex-wrap: wrap; gap: 0 var(--s7); }
@media (min-width: 40rem) { .choices--2 { grid-template-columns: 1fr 1fr; } }

/* segmented control (one of a few, e.g. travel distance) */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: var(--border) solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.segmented label { position: relative; display: flex; align-items: center; justify-content: center; min-height: var(--control); padding: .4rem .5rem; text-align: center; font-weight: 600; font-size: var(--t-small); line-height: 1.2; cursor: pointer; }
.segmented label + label { border-left: var(--border) solid var(--ink); }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented label:has(input:checked) { background: var(--blue); color: var(--paper); }   /* selected = blue fill, per the colour rules */
.segmented label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: -5px; }
.segmented label:hover:not(:has(input:checked)) { background: var(--pulp); }

/* toggle chips (multi-select). Buttons with aria-pressed, never decorative tags */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap); padding: .45rem .9rem; border: var(--border) solid var(--ink);
  border-radius: var(--radius); background: transparent; font-weight: 560; font-size: var(--t-small); line-height: 1.2; cursor: pointer; text-align: left;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.chip:hover { background: var(--pulp); }
.chip::before { content: ""; width: .75rem; height: .75rem; border: 2px solid currentColor; border-radius: 2px; flex: none; }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.chip[aria-pressed="true"]::before { background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%232B3FBB' stroke-width='3'/%3E%3C/svg%3E") center/100% no-repeat; border-color: var(--paper); }
.chip[disabled] { opacity: .45; cursor: not-allowed; }
/* big work-type tiles for signup step 1 (3-5 broad types) */
.chips--tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.chips--tiles .chip { min-height: 4rem; font-size: 1rem; padding: .75rem .9rem; }
@media (min-width: 40rem) { .chips--tiles.chips--tiles-4 { grid-template-columns: repeat(4, 1fr); } }

/* step indicator for multi-step forms */
.progress { display: grid; gap: var(--s2); font-size: var(--t-small); color: var(--ink-2); }
.progress__bar { display: grid; grid-auto-flow: column; gap: 4px; }
.progress__bar span { height: 6px; background: var(--rule); }
.progress__bar span.is-done { background: var(--blue); }

/* ---------- 10. Pay tag: the only fluoro red in the system ---------- */
.pay {
  display: inline-flex; align-items: baseline; gap: .3em; background: var(--red); color: var(--ink);
  font-stretch: var(--cond); font-weight: 800; font-size: 1.25rem; line-height: 1; padding: .3em .42em .26em;
  white-space: nowrap; letter-spacing: 0;
}
.pay small { font-size: .7em; font-weight: 700; font-stretch: var(--semi); text-transform: none; }
.pay--lg { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.pay--hero { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); transform: rotate(-2deg); transform-origin: left center; } /* the system's one rotation */

/* ---------- 11. Photos ---------- */
.photo { position: relative; background: var(--blue); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--card { aspect-ratio: 3 / 2; }
.photo--hero { aspect-ratio: 3 / 2; }
@media (min-width: 40rem) { .photo--hero { aspect-ratio: 16 / 9; } }
@media (min-width: 64rem) { .photo--hero { aspect-ratio: 1; } }
.photo--band { aspect-ratio: 4 / 3; }
@media (min-width: 64rem) { .photo--band { aspect-ratio: 21 / 9; } }
.photo--square { aspect-ratio: 1; }
.photo--live img { mix-blend-mode: luminosity; }   /* user-supplied photos that skip tools/duotone.py */
.photo figcaption { font-size: var(--t-micro); color: var(--ink-2); padding-top: var(--s2); background: var(--paper); }

/* ---------- 12. Hero ---------- */
.hero { padding-bottom: var(--section); }
.hero__media { margin-inline: calc(var(--margin) * -1); }
.hero__body { display: grid; gap: var(--s4); justify-items: start; padding-top: var(--s5); }
.hero__body .btn { min-width: 15rem; }
.hero__proof { font-size: var(--t-small); color: var(--ink-2); }
@media (max-width: 39.99rem) { .hero__body .btn { width: 100%; } }
@media (min-width: 64rem) {
  .hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; padding-top: var(--s8); }
  .hero__body { grid-column: 1 / span 7; grid-row: 1; padding-top: 0; gap: var(--s6); }
  .hero__media { grid-column: 8 / -1; grid-row: 1; margin: 0; }
}

/* ---------- 12b. Poster band: the one blue block per page. Photo overprints the blue (multiply) ---------- */
.poster { background: var(--blue); color: var(--paper); display: grid; }
.poster__body { display: grid; gap: var(--s4); justify-items: start; padding: var(--s8) var(--margin); }
.poster__media { position: relative; aspect-ratio: 3 / 2; background: var(--blue); overflow: hidden; }
.poster__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; }
.poster h2 { font-size: var(--t-h1); font-stretch: var(--cond); font-weight: 800; text-transform: uppercase; line-height: .94; max-width: 14ch; }
.poster .lede { color: var(--paper); }
@media (min-width: 64rem) {
  .poster { grid-template-columns: 1fr 1fr; }
  .poster__body { padding: var(--s9) var(--s8) var(--s9) max(var(--margin), calc((100vw - var(--container)) / 2)); align-content: center; }
  .poster__media { aspect-ratio: auto; min-height: 30rem; }
}

/* ---------- 13. Meta rows (call-sheet label/value) ---------- */
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 0; font-size: var(--t-small); }
.meta dt, .meta dd { padding-block: .45rem; border-top: 1px solid var(--rule); }
.meta dt { color: var(--ink-2); padding-right: var(--s4); }
.meta dd { font-weight: 560; }

/* ---------- 14. Job card: whole card is the link ---------- */
.job-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); border: var(--border) solid var(--ink); border-radius: var(--radius);
  background: var(--paper); transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.job-card:hover { border-color: var(--blue); }
.job-card:has(a:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.job-card__title a { color: var(--ink); text-decoration: none; }
.job-card__title a::after { content: ""; position: absolute; inset: 0; }   /* stretched link */
.job-card__title a:focus-visible { outline: none; }
.job-card:hover .job-card__title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.job-card__who { font-size: var(--t-small); color: var(--ink-2); margin-top: calc(var(--s2) * -1); }
.job-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: var(--s2); }
.job-card__go { font-weight: 650; font-size: var(--t-small); color: var(--blue); }
.job-card--filled { opacity: .62; }
.job-card--filled .pay { background: var(--pulp); }
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-micro); font-weight: 650; }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--blue); }
.status--off::before { background: var(--ink-2); }

/* ---------- 15. Crew card ---------- */
.crew-card { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); border: var(--border) solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.crew-card__head { display: grid; grid-template-columns: 4rem 1fr; gap: var(--s4); align-items: center; }
.avatar { width: 4rem; height: 4rem; overflow: hidden; background: var(--blue); color: var(--paper); display: grid; place-items: center; font-stretch: var(--cond); font-weight: 800; font-size: 1.5rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; }  /* runtime duotone for crew uploads */
.crew-card__name { font-size: var(--t-h3); font-weight: 700; line-height: 1.15; }
.crew-card__where { font-size: var(--t-small); color: var(--ink-2); }
.crew-card__fresh { font-size: var(--t-small); }
.crew-card__roles { font-size: var(--t-small); line-height: 1.5; }
.crew-card__roles b { font-weight: 650; }
.crew-card__more { color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--t-micro); font-weight: 650; color: var(--blue); }
.badge svg { width: 1rem; height: 1rem; }
.crew-card__actions { margin-top: auto; display: grid; gap: var(--s1); padding-top: var(--s2); }
.crew-card__actions .link { justify-self: center; }

/* ---------- 16. Stat ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--gutter); }
@media (min-width: 64rem) { .stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { border-top: var(--border) solid currentColor; padding-top: var(--s3); }
.stat__n { display: block; font-stretch: var(--cond); font-weight: 800; font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); line-height: .95; }
.stat__l { display: block; font-size: var(--t-small); margin-top: var(--s2); max-width: 22ch; }

/* ---------- 17. Table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
.table-wrap:focus-visible { outline-offset: -3px; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.4; }
.table caption { text-align: left; color: var(--ink-2); padding-bottom: var(--s3); caption-side: top; }
.table th, .table td { text-align: left; vertical-align: top; padding: .8rem .75rem .8rem 0; border-bottom: 1px solid var(--rule); }
.table thead th { border-bottom: var(--border) solid var(--ink); font-weight: 700; font-size: var(--t-small); }
.table tbody th { font-weight: 600; width: 32%; }
.table .is-us { background: var(--blue-wash); padding-left: .75rem; }
.table--wide { min-width: 40rem; }   /* 4+ columns: scrolls inside .table-wrap on phones */
@media (max-width: 39.99rem) { .table th, .table td { padding-right: .5rem; } .table tbody th { width: auto; } }
.table thead .is-us { background: var(--blue); color: var(--paper); border-bottom-color: var(--blue); }

/* ---------- 18. Step list ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.75rem 1fr; gap: var(--s3); padding-block: var(--s4); border-top: var(--border) solid var(--ink); counter-increment: step; }
.steps li::before { content: counter(step); font-stretch: var(--cond); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--blue); }
.steps h3 { font-size: 1.125rem; }
.steps p { font-size: var(--t-small); color: var(--ink-2); margin-top: var(--s1); max-width: 34ch; }
@media (min-width: 64rem) {
  .steps--row { grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--gutter); }
  .steps--row li { grid-template-columns: 1fr; gap: var(--s3); }
}
/* the "what happens next" three-liner above a submit button */
.next { display: grid; gap: var(--s2); font-size: var(--t-small); counter-reset: n; padding: var(--s4) 0; border-block: 1px solid var(--rule); }
.next li { display: grid; grid-template-columns: 1.5rem 1fr; counter-increment: n; }
.next li::before { content: counter(n) "."; font-weight: 700; color: var(--blue); }

/* ---------- 19. Notice ---------- */
.notice { display: grid; gap: var(--s1); padding: var(--s4) var(--s5); border: var(--border) solid var(--ink); border-radius: var(--radius); background: var(--paper); font-size: var(--t-small); }
.notice__title { font-weight: 700; font-size: 1rem; }
.notice--info { border-color: var(--blue); }
.notice--info .notice__title { color: var(--blue); }
.notice--done { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.notice--done a { color: var(--paper); }
.notice--error { border-color: var(--red-ink); }
.notice--error .notice__title { color: var(--red-ink); }

/* ---------- 20. Pagination ---------- */
.pager { display: grid; gap: var(--s4); justify-items: center; text-align: center; }
.pager__count { font-size: var(--t-small); color: var(--ink-2); }
.pager__pages { display: flex; flex-wrap: wrap; gap: var(--s1); justify-content: center; }
.pager__pages a, .pager__pages span {
  display: inline-grid; place-items: center; min-width: var(--tap); height: var(--tap); padding-inline: .6rem; border-radius: var(--radius);
  font-weight: 600; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums;
}
.pager__pages a:hover { background: var(--pulp); }
.pager__pages [aria-current="page"] { background: var(--ink); color: var(--paper); }
.pager__pages .gap { color: var(--ink-2); }
.pager__pages .edge { border: var(--border) solid var(--ink); }
@media (max-width: 39.99rem) { .pager__pages .far { display: none; } }   /* phones: first, current, neighbours, last */

/* ---------- 21. Empty state + 404 ---------- */
.empty { display: grid; gap: var(--s4); justify-items: start; padding: var(--s7) var(--s5); background: var(--pulp); border-radius: var(--radius); }
.empty p { max-width: 40ch; }
@media (min-width: 40rem) { .empty { padding: var(--s8); } }
.notfound { display: grid; gap: var(--s5); justify-items: start; padding-block: var(--s8) var(--s9); }
.notfound__code { font-stretch: var(--cond); font-weight: 800; font-size: clamp(6rem, 3rem + 14vw, 14rem); line-height: .8; color: var(--blue); letter-spacing: -.02em; }

/* ---------- 22. FAQ accordion ---------- */
.faq { border-top: var(--border) solid var(--ink); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: grid; grid-template-columns: 1fr 1.25rem; gap: var(--s4); align-items: center; min-height: 3.5rem; padding-block: var(--s3);
  font-weight: 650; font-size: 1.0625rem; line-height: 1.35; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 1.25rem; height: 1.25rem;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform var(--t-fast) var(--ease);
}
.faq details[open] summary::after { background-size: 100% 2px, 2px 0; }
.faq summary:hover { color: var(--blue); }
.faq .faq__a { padding-bottom: var(--s5); max-width: var(--measure); color: var(--ink); }

/* ---------- 23. Breadcrumb + link list ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0 .5rem; font-size: var(--t-small); color: var(--ink-2); padding-top: var(--s4); }
.crumbs a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: var(--tap); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--rule); }
.crumbs ol { display: contents; }
.crumbs li { display: inline-flex; align-items: center; }

.linklist { columns: 1; column-gap: var(--gutter); border-top: var(--border) solid var(--ink); }
@media (min-width: 40rem) { .linklist { columns: 2; } }
@media (min-width: 64rem) { .linklist { columns: 3; } }
.linklist li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.linklist a { display: flex; align-items: center; min-height: var(--tap); padding-block: .5rem; color: var(--ink); text-decoration: none; }
.linklist a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- 24. Prose (guides, privacy) ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { margin-top: var(--s7); font-size: clamp(1.5rem, 1.35rem + .7vw, 2rem); }
.prose h3 { margin-top: var(--s6); }
.prose h2 + *, .prose h3 + * { margin-top: var(--s3); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--s2); }
.prose li::marker { color: var(--blue); }
.prose blockquote { border-left: 4px solid var(--blue); padding-left: var(--s4); font-size: var(--t-lede); line-height: 1.4; }
.prose figure { margin-block: var(--s6); }
.toc { font-size: var(--t-small); border-top: var(--border) solid var(--ink); padding-top: var(--s3); }
.toc a { display: flex; align-items: center; min-height: var(--tap); color: var(--ink); }

/* ---------- 25. Sticky mobile action bar (signup, hire) ----------
   Hidden while the hero button or the form is on screen (crewpool.js toggles .is-shown). */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; transform: translateY(110%); transition: transform 240ms var(--ease); z-index: 40; background: var(--paper); border-top: var(--border) solid var(--ink); padding: var(--s3) var(--margin) calc(var(--s3) + env(safe-area-inset-bottom)); }
.actionbar.is-shown { transform: none; }
@media (min-width: 64rem) { .actionbar { display: none; } }

/* ---------- 26. Motion: one reveal, block by block ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .pay--hero { transform: rotate(-2deg); }   /* static, not motion: kept */
}

/* ---------- 27. Print ---------- */
@media print { .site-header, .site-footer, .actionbar, .btn { display: none !important; } body { background: #fff; } }

/* ---------- 28. Additions for the page build (2026-11-12). Same idiom as above; see DIRECTION.md section 9 ---------- */
/* 5th work-type tile never sits alone: an odd last tile takes the full row */
.chips--tiles .chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Turnstile slot collapses until the widget needs room (no blank gap above the button) */
.ts-slot:empty { display: none; }
.ts-slot { min-height: 0; }
/* page has a sticky phone action bar: keep the footer clear of it */
@media (max-width: 63.99rem) { .has-actionbar .site-footer { padding-bottom: calc(var(--s6) + 5rem); } }
/* grid column helpers for 2-column page bodies (form + photo, filters + results) */
@media (min-width: 64rem) {
  .grid > .col-7 { grid-column: 1 / span 7; }
  .grid > .col-5 { grid-column: 8 / span 5; }
  .grid > .col-3 { grid-column: 1 / span 3; }
  .grid > .col-9 { grid-column: 4 / span 9; }
  .sticky-lg { position: sticky; top: 6rem; align-self: start; }
}
/* roles picked in signup step 2: name left, Done it / Happy to learn right */
.rolelist { display: grid; border-top: var(--border) solid var(--ink); }
.rolelist li { display: grid; gap: var(--s2); padding-block: var(--s3); border-bottom: 1px solid var(--rule); }
.rolelist__name { font-weight: 650; }
@media (min-width: 40rem) { .rolelist li { grid-template-columns: 1fr 16rem; align-items: center; } }
/* "More detail" disclosure: a text link that opens plain fields (hire form, search cards, filters) */
.more > summary { display: inline-flex; align-items: center; gap: .5em; min-height: var(--tap); font-weight: 650; color: var(--blue); cursor: pointer; list-style: none; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: ""; width: .875rem; height: .875rem; flex: none; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.more[open] > summary::before { background-size: 100% 2px, 2px 0; }
.more > .more__body { display: grid; gap: var(--s5); padding-top: var(--s4); }
/* search filters: a control on phones, a left column from 1024px */
.filters > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--control); padding: .5rem 1rem; border: var(--border) solid var(--ink); border-radius: var(--radius); font-weight: 650; cursor: pointer; list-style: none; }
.filters > summary::-webkit-details-marker { display: none; }
.filters > summary::after { content: ""; width: 1rem; height: 1rem; flex: none; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; }
.filters[open] > summary::after { background-size: 100% 2px, 2px 0; }
.filters > summary:hover { background: var(--pulp); }
.filters__body { display: grid; gap: var(--s5); padding-top: var(--s5); }
@media (min-width: 64rem) { .filters > summary { display: none; } .filters__body { padding-top: 0; } }
.searchbar { display: grid; gap: var(--s3); }
@media (min-width: 40rem) { .searchbar { grid-template-columns: 1fr auto; align-items: end; } }
.searchbar .field { margin: 0; }
.results-head { display: grid; gap: var(--s3); }
/* unlocked contact block inside a crew card */
.contact-list { display: grid; gap: var(--s1); font-weight: 600; word-break: break-word; }
.contact-list a { display: inline-flex; align-items: center; min-height: var(--tap); }
/* availability calendar (signup step 2): tap the days you cannot work */
.cal { display: grid; gap: var(--s3); max-width: 24rem; }
.cal__bar { display: grid; grid-template-columns: var(--tap) 1fr var(--tap); align-items: center; text-align: center; font-weight: 650; }
.cal__bar button { width: var(--tap); height: var(--tap); border: var(--border) solid var(--ink); border-radius: var(--radius); background: transparent; cursor: pointer; font-weight: 700; }
.cal__bar button:hover:not(:disabled) { background: var(--pulp); }
.cal__bar button:disabled { opacity: .4; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal__dow { text-align: center; font-size: var(--t-micro); color: var(--ink-2); padding-block: .25rem; font-weight: 650; }
.cal__day { min-height: var(--tap); border: 1px solid var(--rule); border-radius: 2px; background: var(--field); font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; }
.cal__day:hover:not(:disabled) { border-color: var(--blue); }
.cal__day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cal__day:disabled { background: transparent; color: var(--rule); border-color: transparent; cursor: default; }
.cal__blank { min-height: var(--tap); }
/* photo picker preview (signup step 2) */
.photopick { display: flex; align-items: center; gap: var(--s4); }
/* quiet section divider inside long forms */
.form-group { display: grid; gap: var(--s5); padding-top: var(--s5); border-top: var(--border) solid var(--ink); }
.form--wide { max-width: 44rem; }
/* page-head: interior page title block, tighter than a full section so results sit near the top on a phone */
.page-head { padding-block: var(--s5) var(--s6); }
@media (min-width: 64rem) { .page-head { padding-block: var(--s7); } }
.only-lg { display: none; }
@media (min-width: 64rem) { .only-lg { display: block; } }
/* crew-card grid beside a filter column: 2 across until there is room for 3 */
@media (min-width: 80rem) { .cols-3-xl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* a .link that is a real <button> (inline actions): same look as the anchor version */
button.link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.hint + .chips, .hint + .segmented, .hint + .choices--inline, .hint + .choices--2, .hint + .rolelist { margin-top: var(--s2); }
/* two short fields that stay side by side on phones (dates, amount + unit) */
.form-row--keep { grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (min-width: 40rem) { .form-row--keep { gap: var(--s5); } }
.crew-card__actions .btn { padding-inline: .75rem; }
@media (min-width: 64rem) { .hide-lg { display: none !important; } }
/* a section straight after the hero does not stack two full paddings */
.hero + .section { padding-top: 0; }

/* ---------- 29. Fresh-eyes pass (2026-11-13) ---------- */
/* steps: every row starts at the top, whatever the copy length */
.steps li, .steps--row li { align-content: start; }
.steps--row { align-items: start; }
/* contents and list links read as links */
.toc a { color: var(--blue); }
.linklist a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.linklist a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
/* inline links in running text keep a 44px hit area without changing the line height */
.prose a, .choice a, .faq__a a { padding-block: .95rem; }
/* removable filter chips show a cross, not a tick box */
.chips--removable .chip::before { display: none; }
.chips--removable .chip::after { content: "\00d7"; font-size: 1.35em; line-height: 1; margin-left: .15rem; font-weight: 700; }
/* date inputs: an unset date reads as unset on every browser (iOS shows a grey default otherwise) */
.datefield { position: relative; }
.datefield .input.is-empty { color: transparent; }
.datefield .input.is-empty::-webkit-datetime-edit { color: transparent; }
.datefield__ph { position: absolute; left: .875rem; top: 50%; transform: translateY(-50%); color: #8A8476; pointer-events: none; font-size: 1.0625rem; }
.datefield .input:not(.is-empty) + .datefield__ph { display: none; }
/* narrow form column inside a wider page body */
.form--wide .form { max-width: none; }
/* sticky side column (contents, photo) beside long reading text */
.side { display: grid; gap: var(--s5); align-content: start; }
/* square photo that always stays square (portrait sources) */
.photo--sq { aspect-ratio: 1; }
/* page body with a side column on desktop */
.doc { display: grid; gap: var(--s6); }
.empty .actions { margin-top: var(--s2); }
/* two-line wrap safety on long headings inside prose */
.prose h2 { max-width: 30ch; }
@media (min-width: 64rem) { h2, .h2 { max-width: 40ch; } .prose h2 { max-width: 44ch; } }   /* short H2s stay on one line on desktop */
.rolelist .error-msg { grid-column: 1 / -1; }
.field--error .segmented { border-color: var(--red-ink); }
/* hero video: poster paints first, the duotone video fades in over it once loaded (JS starts it after window load; reduced motion and Save-Data keep the poster) */
.photo video.herovideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms var(--ease); }
.photo video.herovideo.is-playing { opacity: 1; }
.photo:has(video) img, .photo video.herovideo { transform: scale(1.15); transform-origin: 62% 90%; }   /* trims the sky; poster and video share the same crop */
@media (prefers-reduced-motion: reduce) { .photo video.herovideo { display: none; } }

/* ---------- 30. Round 2 ---------- */
.stats--3 { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stack-xl > * + * { margin-top: var(--s7); }
.panel-wide { max-width: 44rem; }
.cols-2 + p, .cols-3 + p, .cols-4 + p, .cols-2x2 + p { margin-top: var(--s5); }
.notice p:empty { display: none; }

/* a grid whose stacked rows stay close on phones (job page: title, then the action) */
.grid--tight { row-gap: var(--s5); }
@media (min-width: 64rem) { .grid--tight { row-gap: var(--s6); } }

/* the pulp panel as a compact form holder (job page action) */
.empty--form { padding: var(--s5); justify-items: stretch; }
@media (min-width: 64rem) { .empty--form { padding: var(--s6); } }
