/* V1 — design tokens and components.
 *
 * The tokens are the V1 homepage's (hand-off of 2026-09-10): Ink, Carbon
 * and Graphite are the dark production-interface foundation, Paper and
 * White the light surfaces, Steel is metadata and progress, Signal is
 * the ready state and the primary action, Approve green is the approved
 * state only, Attention red is attention and destructive states only.
 * Those four are semantic and are never interchanged. Type is Anton for
 * display, IBM Plex Mono for metadata, Instrument Sans for body. Corners
 * are square throughout.
 */

:root {
  --ink: #14171A;              /* the base */
  --carbon: #1C2024;           /* a raised surface on Ink */
  --graphite: #2B3036;         /* a rule or border on Ink */
  --paper: #E8E8E3;            /* the light surface; body text on Ink */
  --white: #FFFFFF;            /* a raised surface on Paper */
  --paper-2: #D3D3CD;          /* a rule or border on Paper */
  --steel: #8D949A;            /* metadata and progress, on Ink and Carbon */
  --signal: #DFFF00;           /* ready, and the primary action */
  --approve: #22C55E;          /* approved, only */
  --attention: #FF4A3D;        /* attention and destructive, only */

  /* The accents as text on Paper. Signal on Paper is 1.1:1, Attention
     2.7:1 and Approve 1.9:1 (WCAG AA wants 4.5:1 for text; even the
     3:1 large-text floor fails Signal), so on a light surface a label,
     a chip's text or a highlight word takes a deeper shade of the same
     hue. On Ink the tokens themselves pass (15.8:1, 5.4:1, 7.9:1) and
     are used as they are. Steel on Paper is 2.5:1, so muted text on
     Paper is a darker grey (5.0:1); on Ink it is Steel (5.9:1). */
  --signal-ink: #566300;       /* 5.4:1 on Paper */
  --attention-ink: #B82A1A;    /* 5.1:1 on Paper */
  --approve-ink: #13753A;      /* 4.7:1 on Paper */
  --muted: #5B6268;            /* on Paper; .on-ink sets Steel */

  /* Defaults for anything outside a surface: the Paper set. */
  --body: var(--ink); --card: var(--white); --card-border: transparent;
  --lit: var(--signal-ink); --hot: var(--attention-ink); --ok: var(--approve-ink);
  --focus: var(--signal-ink);
  --input-bg: var(--white); --input-fg: var(--ink); --input-border: var(--paper-2);

  --font-display: 'Anton', 'Druk Condensed', 'Trade Gothic Condensed Heavy', Impact, 'Arial Narrow Bold', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: 'Instrument Sans', Inter, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Mobile first (docs/mobile-guidelines.md): base styles are for a
   ~360px phone, and every media query below is `min-width`, adding
   columns and rows as the screen grows. Breakpoints: 640 (sm), 768
   (md), 1024 (lg). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;      /* a filename, a note, a URL: never wider than the screen */
}
img, svg, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
/* Touch is the primary input: no tap delay, a visible focus ring for
   the keyboard, a pressed state that is not hover. */
a, button, input, select, textarea, summary, label { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Surfaces ------------------------------------------------------------- */
/* A surface sets the tokens its descendants read - muted text, body
   text, a card's fill, the focus ring, which accent shade is text-safe -
   as custom properties, so the *nearest* surface wins. Descendant rules
   of the form `.on-ink .card` do not nest: a Paper section inside an Ink
   body matched both and the later rule painted the request form's card
   Ink with Ink labels on it. */
.on-ink {
  background: var(--ink); color: var(--paper);
  --muted: var(--steel); --body: var(--paper); --focus: var(--signal);
  --card: var(--carbon); --card-border: var(--graphite);
  --input-bg: var(--carbon); --input-fg: var(--paper); --input-border: var(--graphite);
  --lit: var(--signal); --hot: var(--attention); --ok: var(--approve);
  --chip-lit-bg: transparent; --chip-hot-bg: transparent; --chip-ok-bg: transparent;
  --chip-lit-fg: var(--signal); --chip-hot-fg: var(--attention); --chip-ok-fg: var(--approve);
}
.on-paper {
  background: var(--paper); color: var(--ink);
  --muted: #5B6268; --body: var(--ink); --focus: var(--signal-ink);
  --card: var(--white); --card-border: transparent;
  --input-bg: var(--white); --input-fg: var(--ink); --input-border: var(--paper-2);
  --lit: var(--signal-ink); --hot: var(--attention-ink); --ok: var(--approve-ink);
  /* a chip on Paper is filled with the token and lettered in Ink */
  --chip-lit-bg: var(--signal); --chip-hot-bg: var(--attention); --chip-ok-bg: var(--approve);
  --chip-lit-fg: var(--ink); --chip-hot-fg: var(--ink); --chip-ok-fg: var(--ink);
}
.muted { color: var(--muted); }
.body { color: var(--body); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: clamp(56px, 9vw, 120px) 0; }
.band-tight { padding: clamp(32px, 5vw, 64px) 0; }

/* Type ------------------------------------------------------------------ */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .005em;
}
.display-xl { font-size: clamp(56px, 10vw, 136px); }
.display-lg { font-size: clamp(40px, 6.4vw, 88px); }
.display-md { font-size: clamp(30px, 4vw, 52px); }
.display-sm { font-size: clamp(24px, 2.6vw, 34px); }
.display .lit { color: var(--lit); }   /* Signal on Ink; its text-safe shade on Paper (1.1:1 otherwise) */
.lit { color: var(--lit); }
.display .hot { color: var(--hot); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);          /* an eyebrow is metadata: Steel on Ink, never Attention */
  display: inline-block;
}
.eyebrow a { text-decoration: none; }
.eyebrow::after { content: ""; display: block; width: 38px; height: 2px; background: currentColor; margin-top: 8px; }
.eyebrow.lit { color: var(--lit); }
.eyebrow.plain::after { display: none; }

.mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.small { font-size: 14px; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 46ch; }
.copy { max-width: 62ch; }
.copy p + p { margin-top: 1em; }
/* Marks ----------------------------------------------------------------- */
.mark { width: 28px; height: 28px; flex: none; }
/* The wordmark is the name in the display face. Two characters cannot
   wrap; the size is fixed rather than fluid so it reads as a mark, not
   as a heading. */
.wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: .9;
  font-size: 28px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;              /* two letters are 24px wide; the target is not */
}
.wordmark .stack { display: flex; flex-direction: row; gap: .3em; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 12px 18px;
  min-height: 44px;             /* a tap target, on every size */
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  line-height: 1;
  transition: transform .12s var(--ease), background .12s, border-color .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); opacity: .9; }
.btn-primary { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.btn-approve { background: var(--approve); color: var(--ink); border-color: var(--approve); }
.btn-hot { background: var(--attention); color: var(--ink); border-color: var(--attention); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) {
  .btn-primary:hover { background: #E9FF3D; }
  .btn-approve:hover { background: #2ED96B; }
  .btn-ghost:hover { background: rgba(127,127,127,.12); }
}
.btn-sm { padding: 8px 14px; }
.btn-lg { padding: 16px 24px; font-size: 15px; }
/* Phones: a button in a form or a call-to-action row is full width;
   from `sm` it is as wide as its label. */
form .btn, .ctas .btn { width: 100%; }
@media (min-width: 640px) { form .btn, .ctas .btn { width: auto; } }
/* A link set in running text or a table cell keeps its line height and
   gets its 44px from padding the layout does not see. */
p a, li a, td a, .small a, .help a, .quiet a, .meta a, .timeline a, .eyebrow a, .kpi a, .footer a {
  display: inline-block; padding: 13px 6px; margin: -13px -6px; min-height: 44px; min-width: 44px;
  box-sizing: border-box; vertical-align: baseline;
}
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-wrap { white-space: normal; text-align: center; line-height: 1.3; }
.btn svg { width: 1em; height: 1em; flex: none; }   /* an svg with no size is 300px wide by default */

/* Cards, chips, rules ---------------------------------------------------- */
.card { padding: 22px; border: 1px solid var(--card-border); background: var(--card); }
.card.ink { background: var(--ink); color: var(--paper); }
.card-title { margin-bottom: 10px; }
.rule { height: 1px; background: currentColor; opacity: .18; border: 0; margin: 0; }

.chip {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; background: currentColor; }
.chip-lit { color: var(--chip-lit-fg); background: var(--chip-lit-bg); }
.chip-hot { color: var(--chip-hot-fg); background: var(--chip-hot-bg); }
.chip-ok { color: var(--chip-ok-fg); background: var(--chip-ok-bg); }
.chip-muted { color: var(--muted); }
.chip-busy .dot { animation: pulse 1.1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.square { width: 6px; height: 6px; background: var(--lit); display: inline-block; flex: none; }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bullets li { display: flex; gap: 12px; align-items: baseline; }
.bullets li::before { content: ""; width: 6px; height: 6px; background: var(--lit); flex: none; position: relative; top: -2px; }

/* Grid helpers ------------------------------------------------------------ */
/* Card grids: as many columns as fit a minimum, one on a phone, no
   breakpoint to maintain. */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }
.split { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 768px) {
  .split { gap: 40px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.right { margin-left: auto; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 28px; } .mb-4 { margin-bottom: 44px; }

/* Forms ------------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-mono); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.field .help { font-size: 14px; color: var(--muted); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="date"], .field input[type="number"], .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-fg);
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 0;
  font-size: 16px;              /* under 16px iOS zooms the page on focus */
}
/* An input reads its surface's tokens too: a `.on-ink .field input` rule
   reached past a Paper section inside an Ink body and painted the request
   form's fields dark on a white card. */
/* The ring is drawn INSIDE the box. An outline at a positive offset is
   painted outside the border box, so clicking into a field made it
   visibly grow by two pixels on every side - a jump, on the one element
   a person is looking straight at. A negative offset paints the ring
   over the field's own edge instead: same footprint focused or not, and
   still the clearest thing on the form. */
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: 2px solid var(--focus); outline-offset: -2px; border-color: var(--focus);
}
.field textarea { min-height: 120px; resize: vertical; }
.field textarea.code { font-family: var(--font-mono); font-size: 16px; min-height: 260px; white-space: pre; }
.checks { display: flex; gap: 8px 16px; flex-wrap: wrap; }
.checks label { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.checks input { accent-color: var(--lit); width: 22px; height: 22px; margin: 0; }
.error { color: var(--hot); font-family: var(--font-mono); font-size: 14px; }

/* Flash messages ------------------------------------------------------------ */
.flash {
  font-family: var(--font-mono); font-size: 14px;
  padding: 12px 16px; border-left: 3px solid var(--lit);
  background: rgba(223, 255, 0, .14); margin: 16px 0;
  display: flex; gap: 12px; align-items: baseline;
}
.flash.ok { border-color: var(--approve); background: rgba(34, 197, 94, .12); }
.flash.warn { border-color: var(--hot); background: rgba(255, 74, 61, .12); }
.flash.secret { border-color: var(--hot); background: rgba(255, 74, 61, .12); font-weight: 600; }
.flash.secret code { font-size: 15px; letter-spacing: .06em; user-select: all; }

/* Tables ------------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-family: var(--font-mono); font-weight: 600; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 8px 10px; border-bottom: 1px solid var(--paper-2);
}
.on-ink .table th { border-color: var(--graphite); }
.table td { padding: 10px; border-bottom: 1px solid rgba(127,127,127,.18); vertical-align: top; }
.table td.num, .table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table .thumbs { display: flex; gap: 4px; }
.table .thumbs img { height: 44px; width: auto; background: #0002; }
/* Any table can be wider than a phone; every one scrolls inside its
   own container, and a flex/grid child never grows past its parent to
   make room for one (min-width: auto is the default, and it did). */
.table-wrap {
  overflow-x: auto; max-width: 100%; position: relative;
  /* the affordance: a shadow on whichever edge has more table behind it,
     painted by backgrounds that scroll with the content and ones that
     do not (Lea Verou's scrolling shadows), no script */
  background:
    linear-gradient(90deg, var(--card) 40%, transparent) left / 40px 100% no-repeat local,
    linear-gradient(270deg, var(--card) 40%, transparent) right / 40px 100% no-repeat local,
    linear-gradient(90deg, rgba(0, 0, 0, .22), transparent) left / 14px 100% no-repeat scroll,
    linear-gradient(270deg, rgba(0, 0, 0, .22), transparent) right / 14px 100% no-repeat scroll;
}
/* position: relative so an absolutely positioned descendant (a `.sr`
   header label) is contained by the scroll box rather than landing off
   the right edge of the page. */
.table { max-width: 100%; }
.stack > *, .grid > *, .split > *, .field > * { min-width: 0; }
.field input[type="file"] { width: 100%; max-width: 100%; }   /* its intrinsic width is wider than a phone */
.table code, .code { font-family: var(--font-mono); font-size: 14px; }
.table tr.err td { color: var(--hot); }

/* Checklist ------------------------------------------------ */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
}
.checklist .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; }
.checklist li.done .tick { background: var(--approve); border-color: var(--approve); color: var(--ink); }
.checklist li.done .tick svg { width: 12px; height: 12px; }
.checklist li.now .tick { border-color: var(--lit); box-shadow: 0 0 0 4px rgba(223, 255, 0, .18); }
.checklist li.busy .tick { border-color: var(--muted); }
.checklist li.busy .tick::after { content: ""; width: 8px; height: 8px; background: var(--muted); animation: pulse 1.1s infinite; }
.checklist li.pending { color: var(--muted); }
.checklist .when { color: var(--muted); font-size: 12px; }
.checklist li.now .when { color: var(--lit); }

/* Log / code blocks ------------------------------------------------------------ */
pre.log {
  font-family: var(--font-mono); font-size: 14px; line-height: 1.5;
  background: var(--ink); color: var(--paper); padding: 16px;
  overflow: auto; max-height: 70svh; margin: 0; white-space: pre-wrap; word-break: break-word;
}

/* Header / footer ---------------------------------------------------------------- */
/* On a phone the nav is a drawer behind a Menu button (with JS; with CSS
   alone it is a wrapped row under the wordmark, which works, just takes
   more of the screen). From `md` it is a row in the bar. The brand link
   and, on the marketing page, the one call to action stay in the bar
   whatever the width. */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink); color: var(--paper);
  border-bottom: 1px solid var(--graphite);
  padding-top: env(safe-area-inset-top);
}
.topbar .wrap { display: flex; align-items: center; gap: 8px 12px; min-height: 56px; flex-wrap: wrap; }
.js .topbar .wrap { flex-wrap: nowrap; }   /* with the nav in a drawer, one row: brand, the call to action, Menu */
.topbar .cta { margin-left: auto; min-width: 0; white-space: normal; text-align: center; line-height: 1.15; padding: 8px 12px; }   /* two lines on a narrow phone rather than a wider bar */
.menu {
  display: none; margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 12px;
  background: none; border: 1px solid var(--graphite); color: var(--paper); cursor: pointer;
  font-family: var(--font-mono); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  align-items: center; gap: 8px;
}
.topbar .cta + .menu { margin-left: 0; }
.js .menu { display: inline-flex; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; width: 100%; padding-bottom: 6px; }
.nav a, .nav button.link {
  font-family: var(--font-mono); font-weight: 600; font-size: 14px; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; padding: 0 12px; min-height: 44px;
  min-width: 44px;              /* "V1" is a two-letter link; the target is still 44 wide */
  display: inline-flex; align-items: center; color: var(--paper); white-space: nowrap;
  border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
}
.nav a:active, .nav button.link:active { opacity: .7; }
@media (hover: hover) { .nav a:hover, .nav button.link:hover { color: var(--paper); } }
.nav a.on { color: var(--signal); border-bottom-color: var(--signal); }
.nav a.btn-primary { color: var(--ink); }   /* the nav's link colour must not win over the button's */
.nav .who { font-family: var(--font-mono); font-size: 14px; color: var(--steel); padding: 0 8px; }
.nav form { display: contents; }
/* the drawer */
.js .nav {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); z-index: 30;
  flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--ink); border-left: 1px solid var(--graphite);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); visibility: hidden;
  transition: transform .2s var(--ease), visibility 0s .2s;
}
.js .nav[data-open] { transform: none; visibility: visible; transition: transform .2s var(--ease); }
.js .nav a, .js .nav button.link { width: 100%; justify-content: flex-start; border-bottom: 0; border-left: 2px solid transparent; }
.js .nav a.on { border-left-color: var(--signal); }
.js .nav .who { padding: 12px; }
.nav-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(20, 23, 26, .6); }
body.nav-open { overflow: hidden; }
@media (min-width: 768px) {
  .topbar .wrap { flex-wrap: nowrap; gap: 28px; min-height: 64px; }
  .topbar .cta { margin-left: 0; order: 2; }
  .menu, .js .menu { display: none; }
  /* a row that wraps to a second line on a tablet rather than break a
     word; the account name joins it from lg */
  .nav, .js .nav {
    position: static; width: auto; margin-left: auto; padding: 0; z-index: auto;
    flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0 8px;
    background: none; border: 0; overflow: visible; transform: none; visibility: visible; transition: none;
  }
  .nav .who { display: none; }
  .js .nav a, .js .nav button.link { width: auto; border-left: 0; border-bottom: 2px solid transparent; }
  .js .nav a.on { border-left: 0; border-bottom-color: var(--signal); }
  .js .nav .who { padding: 0 8px; }
  .nav-backdrop { display: none !important; }
  body.nav-open { overflow: auto; }
}
@media (min-width: 1024px) {
  .nav .who, .js .nav .who { display: inline-flex; }
}
.footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* Page frames for the two portals ------------------------------------------------- */
.page { padding: clamp(20px, 3vw, 40px) 0 80px; }
.page-head { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .display { margin-top: 6px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { padding: 16px; }
.kpi .n { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.kpi .t { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.project-card { text-decoration: none; display: grid; gap: 12px; padding: 20px; position: relative; transition: transform .15s var(--ease); }
@media (hover: hover) { .project-card:hover { transform: translateY(-2px); } }
.project-card:active { opacity: .85; }
.project-card .name { font-family: var(--font-display); text-transform: uppercase; font-size: 26px; line-height: .95; }
.project-card .meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.project-card.needs-you { outline: 2px solid var(--lit); outline-offset: -2px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.timeline li { display: grid; gap: 2px 12px; }
@media (min-width: 640px) { .timeline li { grid-template-columns: 130px 1fr; } }
.timeline .at { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.timeline .k { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.timeline .d { color: var(--muted); }
.video { background: #000; aspect-ratio: 16 / 9; width: 100%; }
.dropzone { border: 1px dashed var(--graphite); padding: 24px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.on-paper .dropzone { border-color: var(--muted); }
.dropzone > * { min-width: 0; max-width: 100%; }
.dropzone input[type="file"] { font-family: var(--font-mono); font-size: 14px; width: 100%; }
.dropzone label { font-family: var(--font-mono); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
details summary { cursor: pointer; font-family: var(--font-mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
