/* Provable Minds, provableminds.com. Readable source, no build step: see DEPLOY.md in the repository. */

/* Source Serif 4, variable in weight and optical size: the opsz axis follows the
   font size (font-optical-sizing: auto), so the headline gets the sharp display cut
   and small heads get the sturdier text cut. */
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-variable-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
/* Fallbacks, so swapping in the webfonts changes no line count (tested with the fonts blocked
   against loaded at 360, 390, 834 and 1440). Each face uses metric-compatible local fonts:
   Times New Roman = Liberation Serif = Tinos, Arial = Liberation Sans = Arimo; Roboto (Android)
   has its own faces. size-adjust matches advance widths measured on this page's own text;
   ascent/descent are the webfonts' (Source Serif 4: 1.036 / .335; Schibsted Grotesk: .977 /
   .258), divided by size-adjust. Source Serif's optical sizes make its width depend on size,
   so the serif fallback is split by role: big heads, capability titles, reading text. */
@font-face { font-family: "Source Serif fb head"; src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("Tinos Bold"); font-weight: 550 900; size-adjust: 96%; ascent-override: 107.9%; descent-override: 34.9%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif fb head"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Tinos"); font-weight: 100 549; size-adjust: 102%; ascent-override: 101.6%; descent-override: 32.8%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif fb title"; src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("Tinos Bold"); font-weight: 550 900; size-adjust: 104.5%; ascent-override: 99.1%; descent-override: 32.1%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif fb title"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Tinos"); font-weight: 100 549; size-adjust: 104.5%; ascent-override: 99.1%; descent-override: 32.1%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif fb read"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Tinos"); font-weight: 100 449; size-adjust: 110.6%; ascent-override: 93.7%; descent-override: 30.3%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif fb read"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Tinos"); font-weight: 450 549; size-adjust: 112.5%; ascent-override: 92.1%; descent-override: 29.8%; line-gap-override: 0%; }
@font-face { font-family: "Schibsted fb"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"); font-weight: 100 549; size-adjust: 104.4%; ascent-override: 93.5%; descent-override: 24.7%; line-gap-override: 0%; }
@font-face { font-family: "Schibsted fb"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"); font-weight: 550 900; size-adjust: 99.3%; ascent-override: 98.3%; descent-override: 26.0%; line-gap-override: 0%; }
@font-face { font-family: "Schibsted fb android"; src: local("Roboto"), local("Roboto-Regular"); font-weight: 100 549; size-adjust: 104.3%; ascent-override: 93.6%; descent-override: 24.7%; line-gap-override: 0%; }
@font-face { font-family: "Schibsted fb android"; src: local("Roboto Bold"), local("Roboto-Bold"), local("Roboto"); font-weight: 550 900; size-adjust: 107%; ascent-override: 91.3%; descent-override: 24.1%; line-gap-override: 0%; }

:root {
  --ink: #0D1430;
  --navy: #213666;
  --blue: #577DCF;
  --blue-2: #A9BDE8;
  --blue-3: #3D5DA6;
  --mustard: #E39F21;
  --white: #FFFFFF;
  --mute: #C9D3EA; /* 12.1:1 on ink */

  --display: "Source Serif 4", "Source Serif fb head", Georgia, serif;
  --display-title: "Source Serif 4", "Source Serif fb title", Georgia, serif; /* capability titles and numerals */
  --display-read: "Source Serif 4", "Source Serif fb read", Georgia, serif; /* the two reading paragraphs */
  --text: "Schibsted Grotesk", "Schibsted fb", "Schibsted fb android", Arial, sans-serif;

  --m: clamp(20px, 5vw, 88px);
  --gut: clamp(16px, 2vw, 32px);
  --sec: clamp(96px, 13vw, 208px);
  --lead: clamp(1.125rem, 1rem + .45vw, 1.375rem);
  --read: clamp(1.3125rem, 1.05rem + .8vw, 1.875rem); /* serif reading size: the problem paragraph and "Our standard" */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --frame: 53; /* logo stroke ratio, 5.3% of a square's side, in a 1000 viewBox */

  /* Hero sizing, so the seam and the square landing on it are in view on arrival.
     --bar: the header row. --top: the headline's top padding.
     The headline is a two-line lockup of equal measure: "Auditable AI" at --d
     (4.93em wide at 600, -0.02em, with the A-I pair opened) over "for critical decisions."
     at 0.573 --d (also 4.91em of --d). --d divides the width it may use by 5.05 (2.3% to spare).
     Side by side, the Albers stack stands beside the whole headline, its top on the line set by
     --cap (the cap line of "Auditable AI", or its baseline in the 641-1179 band): the stack takes the screen height below the header (stack plus 0.26 of it below
     the seam fits the screen), and the headline takes the width left of the stack itself (the
     plate's left 36% is the square's landing column, empty above the seam).
     --hb: the headline block, used where the plate sits under it (portrait tablets, phones).
     --overhang: how far the square hangs below the seam. */
  --bar: calc(2 * clamp(20px, 2.4vw, 36px) + clamp(128px, 12vw, 176px) * .2716);
  --top: clamp(16px, 1.5vw, 24px);
  --cw: calc(min(100vw, 1600px) - 2 * var(--m));
  --lede: 0px;
  /* --cap: where the stack's top sits, in --d below the headline's line box: the cap line of
     "Auditable AI" (0.167, measured 0.164-0.169) on wide screens, its baseline (0.83) on the
     narrower side-by-side band, where the text is taller than cap line plus stack can be. */
  --cap: .167;
  --stack: max(140px, calc((100svh - var(--bar) - var(--top) - var(--cap) * 19svh) / 1.26)); /* 60% of the square shows below the seam; 19svh bounds --d */
  --plate-w: min(calc((var(--cw) - 11 * var(--gut)) * 7 / 12 + 6 * var(--gut)), calc(var(--stack) * 1.56));
  --d: min(11rem, 19svh, calc((var(--cw) - var(--plate-w) * .641 - 40px) / 5.05));
  --hb: calc(1.72 * var(--d) + var(--top) + clamp(32px, 3vw, 48px));
  --overhang: calc(var(--plate-w) * .128);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: clamp(1.0625rem, .98rem + .3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--navy);
  background: var(--ink);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--m); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; font-optical-sizing: auto; }
h2 { font-size: clamp(2.875rem, 1.4rem + 6.2vw, 7.75rem); line-height: .96; letter-spacing: -0.022em; text-wrap: balance; }

:focus-visible { outline: 3px solid var(--mustard); outline-offset: 4px; }
.standard :focus-visible, .contact :focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute; left: var(--m); top: -100px; z-index: 10;
  background: var(--white); color: var(--ink); padding: 12px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

.plate svg { width: 100%; height: auto; overflow: visible; }

/* ---------- Hero ---------- */
/* Above the opening field in paint order, so the square that straddles the seam sits on both fields. */
.site-head { background: var(--navy); color: var(--white); }
.hero {
  position: relative; z-index: 2; background: var(--navy); color: var(--white); overflow-x: clip;
}
.hero__bar { display: flex; align-items: center; justify-content: space-between; padding-block: clamp(20px, 2.4vw, 36px); }
.logo { display: block; }
.logo img { width: clamp(128px, 12vw, 176px); height: auto; }
.site-head nav ul { display: flex; gap: clamp(20px, 3vw, 44px); }
.site-head nav a {
  font-weight: 600; font-size: 1rem; text-decoration: none;
  padding-block: 10px; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 0 2px no-repeat;
  transition: background-size .35s var(--ease);
}
.site-head nav a:hover { background-size: 100% 2px; }

.hero__body {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut);
  grid-template-rows: auto 1fr; /* a taller plate grows the lede's row, never the gap under the headline */
  /* Side by side the stack stands on the seam and its top sits on the --cap line: the body is
     exactly that tall (the text is kept shorter, see the lede), so the seam follows from the stack. */
  min-height: calc(var(--top) + var(--cap) * var(--d) + var(--plate-w) / 1.56);
}
.hero__text { display: contents; }
/* Row 1: the headline. Row 2: the lede. The plate spans both, standing on the seam. */
.hero h1 { grid-column: 1 / -1; grid-row: 1; padding-top: var(--top); margin-bottom: clamp(32px, 3vw, 48px); position: relative; z-index: 1; }
.hero__lede {
  grid-column: 1 / span 6; grid-row: 2; align-self: start; position: relative; z-index: 1;
  padding-bottom: 32px;
}
/* One statement in two lines of equal measure, so no word is ever left alone:
   the claim large and white, the scope smaller in blue-2. */
.hero h1 { font-size: var(--d); letter-spacing: -0.02em; }
.hero h1 > span { display: block; white-space: nowrap; }
/* The display cut at every size, so the width in em never changes. */
.h1-main { line-height: .98; color: var(--white); font-variation-settings: "opsz" 60; }
.h1-a { margin-right: .025em; } /* opens the A–I pair, which the −0.02em tracking closes to ~1.5px */
.h1-post {
  font-size: calc(var(--d) * .573); /* "for critical decisions." at 500 is 8.56em: the same measure as line 1 */
  font-weight: 500; line-height: 1.12; letter-spacing: 0;
  color: var(--blue-2); /* 6.2:1 on navy */
  margin-top: calc(var(--d) * .02);
  font-variation-settings: "opsz" 60;
}
.hero__sub {
  /* Its size follows the screen height too, so on short laptops it stays no taller than the stack.
     Side by side the lede stops 32px short of the square's landing edge (0.936 of the plate
     from the content's right edge), so the square never sits beside it, and is balanced. */
  max-width: min(36ch, calc(var(--cw) - var(--plate-w) * .936 - 32px));
  text-wrap: balance;
  font-size: clamp(1.0625rem, min(1rem + .5vw, 2.7svh), 1.4375rem); line-height: 1.5;
  color: #E8EDF8; /* 10.0:1 on navy */
}

/* The stack stands on the seam between the hero and the opening field. */
.plate--hero {
  grid-column: 6 / -1; grid-row: 1 / span 2; align-self: end; justify-self: end;
  /* The viewBox is 1.56 times as wide as the stack is tall. */
  width: var(--plate-w); /* the same width the bookend is placed from */
}
.plate--hero .h1 { fill: var(--ink); }
.plate--hero .h2 { fill: var(--blue-3); }
.plate--hero .h3 { fill: var(--blue); }
.plate--hero .h-slot { fill: none; stroke: var(--ink); stroke-width: 21; } /* 5.3% of 400: the logo's frame */
.plate--hero .h-mus { fill: var(--mustard); transform: translate(-760px, 350px); }

@media (prefers-reduced-motion: no-preference) {
  /* Each layer is a squeegee pass: wiped on from the top, a few units off
     register, then settling into register. */
  .plate--hero .h1, .plate--hero .h2, .plate--hero .h3 { animation: pass .8s var(--ease) both; }
  .plate--hero .h1 { animation-delay: .05s; }
  .plate--hero .h2 { animation-delay: .3s; }
  .plate--hero .h3 { animation-delay: .55s; }
  .plate--hero .h-mus { animation: wipe .6s var(--ease) .8s both, draw-out 1.1s cubic-bezier(.7, 0, .15, 1) 1.6s both; }
  .plate--hero .h-slot { animation: wipe .45s var(--ease) 1.15s both; } /* printed under the square, so its leaving uncovers the hole */
}
/* Phones: the seam is usually below the fold, so the square is held in the stack (a
   complete image on arrival) and is drawn out only when its landing place is on screen
   (the script adds .is-landing). Without the script it simply stays in the stack. */
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .plate--hero .h-mus { animation: wipe .6s var(--ease) .8s both; transform: none; }
  .hero.is-landing .plate--hero .h-mus { animation: draw-out-phone 1.1s cubic-bezier(.7, 0, .15, 1) both; transform: translate(var(--land-x, -760px), 350px); }
}
/* Phones with reduced motion: "drawn out" can't be told without motion, so the square
   rests in the stack, complete, rather than cropped at the fold. */
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .plate--hero .h-mus { transform: none; }
}
/* After the draw-out has run once (the script adds .is-done), the square stops animating, so a
   rotation across the 640px query doesn't replay its wipe and draw-out (its animation list differs
   on either side of the query; the other layers' doesn't, so they never replay). Its base transform
   is the final one: on the seam, on phones in the stack, or on the margin once .is-landing is set. */
.hero.is-done .plate--hero .h-mus[class] { animation: none; }
@keyframes pass {
  0% { clip-path: inset(0 0 100% 0); transform: translate(6px, 5px); }
  72% { clip-path: inset(0 0 0 0); transform: translate(6px, 5px); }
  100% { clip-path: inset(0 0 0 0); transform: translate(0, 0); }
}
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes draw-out { from { transform: translate(0, 0); } to { transform: translate(-760px, 350px); } }
/* Phones land on the page margin: --land-x is set by the script from the plate's real position. */
@keyframes draw-out-phone { from { transform: translate(0, 0); } to { transform: translate(var(--land-x, -760px), 350px); } }

/* ---------- The problem ---------- */
/* A sentence-heading, then the page's one long read, in the
   serif's text cut (opsz follows the size) at a book measure. */
.opening { background: var(--white); color: var(--navy); padding-block: var(--sec); overflow-x: clip; }
/* The hero's square hangs into this field: keep at least 64px between it and the text. */
.opening { padding-top: max(var(--sec), calc(var(--overhang) + 64px)); }
.opening__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); align-items: start; }
.opening__text { grid-column: 7 / -1; grid-row: 2; }
/* The problem's heading: a sentence, so smaller than the one-line section heads, and held to
   two lines with no word alone (measured: 16.8em long, so 11em gives two balanced lines). */
.opening h2 { grid-column: 1 / -1; grid-row: 1; font-size: clamp(1.875rem, 1.1rem + 4.2vw, 5.5rem); line-height: 1.02; max-width: 11em; margin-bottom: clamp(48px, 6vw, 96px); }
.opening__text p {
  font-family: var(--display-read); font-weight: 400; font-optical-sizing: auto;
  font-size: var(--read); line-height: 1.48; letter-spacing: -0.003em;
  max-width: 31em; /* about 60 characters a line */
  hanging-punctuation: first;
}
/* A field you can't count at a glance, bleeding off the left and the bottom of the section. */
.plate--sheet {
  grid-column: 1 / span 5; grid-row: 2;
  margin-left: calc(-1 * var(--m));
  margin-bottom: calc(-1 * var(--sec));
  margin-top: .45em; /* the sheet's top meets the first line's cap height */
  font-size: var(--read);
}
.plate--sheet .fr { fill: none; stroke: var(--blue-2); stroke-width: 5.3; } /* quiet field: the mustard is the only loud thing */
.plate--sheet .in, .plate--sheet .s-over { fill: var(--blue); }
.plate--sheet .s-mus { fill: var(--mustard); }
/* --p (0 to 1) follows the reading of the text; without JS it is 1. */
.plate--sheet { --p: 1; }
.plate--sheet .s-over {
  transform-box: fill-box; transform-origin: 50% 0;
  transform: scaleY(calc(1 - clamp(0, var(--p) * 2 - .3, 1)));
}
.plate--sheet .mark--hid .s-mus {
  transform: translate(calc(clamp(0, var(--p) * 2.2 - 1.1, 1) * 34px), calc(clamp(0, var(--p) * 2.2 - 1.1, 1) * 34px));
}

/* ---------- Research ---------- */
.research { background: var(--ink); color: var(--white); padding-block: var(--sec); }
/* The heading at poster scale. From 1180px the intro sits in the list's own column (8-12) with
   its last baseline on the heading's baseline; below that it follows the heading directly. */
.research__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); margin-bottom: clamp(56px, 7vw, 112px); }
.research h2 { grid-column: 1 / -1; }
.research__intro { grid-column: 1 / -1; margin-top: 24px; font-size: var(--lead); line-height: 1.45; color: var(--mute); max-width: 34rem; }
@media (min-width: 1180px) {
  .research__head { align-items: last baseline; }
  .research h2 { grid-column: 1 / span 7; grid-row: 1; white-space: nowrap; }
  .research__intro { grid-column: 8 / -1; grid-row: 1; margin-top: 0; }
}
.print h3 { font-family: var(--display-title); font-size: var(--h3); line-height: 1.12; letter-spacing: -0.012em; margin-bottom: .6em; text-wrap: balance; max-width: 24ch; }
.print p { color: var(--mute); max-width: 34rem; line-height: 1.62; }

/* The four capabilities are text: a numeral, a title and a paragraph under a hairline, in an
   even rhythm. A numbered document, read in order; no icons beside the items. */
.prints { display: grid; counter-reset: cap; }
/* COPY.md numbers the four capabilities: the numerals hang in their own column, in the
   serif at the title's size, blue-2, so titles and bodies share one left edge. The numeral is
   generated with empty alt text, since the list itself already tells a screen reader its order. */
.print {
  --h3: clamp(1.5rem, 1.05rem + 1.3vw, 2.25rem);
  counter-increment: cap;
  display: grid; grid-template-columns: calc(var(--h3) * 1.25) minmax(0, 1fr); align-items: start;
}
.print::before {
  content: counter(cap); content: counter(cap) / "";
  font-family: var(--display-title); font-weight: 500; font-size: var(--h3); line-height: 1.12;
  color: var(--blue-2); font-variant-numeric: lining-nums;
}
.print { padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid #2C3760; transition: border-color .4s var(--ease); } /* hairline, decorative */
.print:last-child { border-bottom: 1px solid #2C3760; }
.print__text { max-width: 38rem; }

/* The figure's one place below 1024px and without the script: the plate's four states as a
   contact sheet, one navy sheet bleeding off the right margin (as the proof sheet bleeds left),
   four frames across, 2x2 on phones. */
.plate--states {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px;
  background: var(--ink); /* the gutters between frames */
  margin-right: calc(-1 * var(--m)); margin-bottom: clamp(48px, 6vw, 80px);
}
.plate--states .st { background: var(--navy); }
.plate--states svg { width: 100%; height: auto; }
.st-blue { fill: var(--blue); }
.st-b2 { fill: var(--blue-2); }
.st-b3 { fill: var(--blue-3); }
.st-w { fill: var(--white); }
.st-m { fill: var(--mustard); }
.st-frame { fill: none; stroke: var(--blue-2); stroke-width: 42; }
.st-gap { fill: none; stroke: var(--blue-2); stroke-width: 5; stroke-dasharray: 14 11; }

/* Live (1024px and up, with the script): one plate, pinned, that changes as each capability
   reaches the eye line. With reduced motion the changes are instant (no transitions). */
.plate--live { display: none; }
.research.is-live .plate--states { display: none; }
.research.is-live .research__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
.research.is-live .plate--live {
  display: block; grid-column: 1 / span 6; grid-row: 1;
  position: sticky; align-self: start;
  width: min(100%, 72vh);
  top: 14vh;
}
.research.is-live .prints { grid-column: 8 / -1; grid-row: 1; }
/* Part of the section's bottom padding (24vh) moves inside the pinned area, so the plate stays pinned
   while the last capability is current. The section is no taller. */
.research.is-live .prints { margin-bottom: 24vh; } /* grows the grid row, which bounds the sticky plate */
.research.is-live { padding-bottom: max(64px, calc(var(--sec) - 24vh)); }
/* The only cue for the capability the plate shows: its hairline steps to blue-2. The text never changes. */
.research.is-live .print.is-current { border-top-color: var(--blue-2); }

.plate--live .lv-sheet { fill: var(--navy); }
.plate--live .lv-sq, .plate--live .lv-mus {
  transform-box: view-box; transform-origin: 0 0;
  transition: transform .8s var(--ease), opacity .5s var(--ease), fill .6s var(--ease);
}
.plate--live .lv-frame, .plate--live .lv-gap { opacity: 0; transition: opacity .5s var(--ease); }
.plate--live .lv-frame { fill: none; stroke: var(--blue-2); stroke-width: 42; }
.plate--live .lv-sq { fill: var(--blue); }
.plate--live .lv-gap { fill: none; stroke: var(--blue-2); stroke-width: 5; stroke-dasharray: 14 11; }
.plate--live .lv-mus { fill: var(--mustard); }

/* ---------- Our standard ---------- */
.standard { position: relative; background: var(--blue); color: var(--ink); padding-block: var(--sec); overflow: hidden; }
.standard__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
.standard__text { grid-column: 1 / span 6; }
.standard h2 { margin-bottom: clamp(40px, 5vw, 72px); white-space: nowrap; width: max-content; } /* one line: "Our standard ∎" (7.2em) is wider than six columns but clear of the open square */
/* The heading ends the way the wordmark does. */
/* The heading's ∎ (decorative, aria-hidden) is drawn as the wordmark's mustard square:
   one mark, square in any font, sitting on the baseline. The character stays for copying. */
.qed-mark { display: inline-block; width: .36em; height: .36em; background: var(--mustard); vertical-align: baseline; color: transparent; overflow: hidden; line-height: 0; }
/* Serif at reading size (21px on small phones, larger elsewhere). Ink on blue is 4.52:1, AA for
   normal text with little margin, so do not lighten --blue or the ink. */
.standard__text p { font-family: var(--display-read); font-weight: 500; font-size: var(--read); line-height: 1.42; max-width: 26em; }
/* What is still open: a huge empty square, bleeding off the right and the bottom. */
.plate--open { position: absolute; left: 55%; top: 26%; width: max(62vw, 720px); }
.plate--open rect, .plate--frame rect { fill: none; stroke: var(--ink); stroke-width: var(--frame); }

/* ---------- Contact ---------- */
.contact { position: relative; z-index: 1; background: var(--mustard); color: var(--ink); padding-block: var(--sec); }
/* At least 48px between the button and the bookend's upper half. */
.contact { padding-bottom: max(var(--sec), calc(var(--plate-w) * .1923 + 48px)); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
.contact h2 { grid-column: 1 / -1; margin-bottom: clamp(40px, 5vw, 72px); }
.contact__text { grid-column: 1 / span 7; }
.contact p { font-size: clamp(1.25rem, .95rem + .85vw, 1.75rem); line-height: 1.42; max-width: 34ch; } /* the grotesk, as the page turns to people */
.contact p a { text-decoration-thickness: 2px; text-underline-offset: .18em; transition: text-decoration-thickness .2s var(--ease); }
.contact p a:hover { text-decoration-thickness: 4px; }
/* The page's one button: ink on mustard (8.0:1), white text on ink (18.1:1). */
.button {
  display: inline-flex; align-items: center; height: 56px; padding-inline: 30px;
  margin-top: clamp(32px, 3.2vw, 48px);
  background: var(--ink); color: var(--white);
  font-weight: 650; font-size: 1.0625rem; text-decoration: none;
  box-shadow: inset 0 0 0 2px var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.button:hover { background: transparent; color: var(--ink); }
.plate--frame {
  /* The hero's slot again, at the size of the hero's 600-unit layer (0.385 of the plate),
     in the column the square landed in, half on mustard and half on the footer's ink.
     Its left edge is the hero square's landing edge (0.064 of the plate from its left). */
  --size: calc(var(--plate-w) * .3846);
  position: absolute; width: var(--size); bottom: calc(var(--size) / -2);
  right: calc(max(0px, (100vw - 1600px) / 2) + var(--m) + var(--plate-w) * .5513);
}
.plate--frame rect { stroke: var(--white); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--mute); font-size: .9375rem; }
.foot__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: clamp(48px, 5vw, 72px); }
/* Clear the lower half of the bookend frame that stands on this seam. */
.foot__row { padding-top: max(clamp(48px, 5vw, 72px), calc(var(--plate-w) * .1923 + 32px)); }
.foot__mark { display: flex; align-items: center; gap: 16px; }
.foot__mark img { width: 28px; height: 28px; }
.foot ul { display: flex; gap: 28px; }
.foot a { text-decoration: none; padding: 8px; margin-inline: -8px; } /* bigger tap target, same layout */
.foot a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .opening__text { grid-column: 1 / -1; }
  .plate--sheet { grid-column: 1 / -1; grid-row: 3; margin-top: 64px; margin-right: calc(-1 * var(--m)); aspect-ratio: 924 / 615; overflow: hidden; } /* six rows */
  .standard__text { grid-column: 1 / -1; }
  .standard { display: flex; flex-direction: column; padding-bottom: 0; }
  .plate--open { order: 2; position: relative; left: 28%; top: auto; width: 100%; margin-top: 64px; margin-bottom: -36%; }
}
/* Hero stacked (lede above the plate): portrait tablets and all phones. */
@media (max-width: 1023px) and (max-aspect-ratio: 1/1), (max-width: 640px) {
  :root {
    --lede: 220px; /* the two-sentence lede, without a button */
    --d: min(11rem, calc(var(--cw) / 5.05));
    --stack: max(140px, calc((100svh - var(--bar) - var(--hb) - var(--lede)) / 1.32));
    --plate-w: min(calc(100vw - var(--m)), calc(var(--stack) * 1.56));
  }
  .hero__lede { grid-column: 1 / -1; padding-bottom: 40px; }
  .hero__sub { max-width: 34ch; text-wrap: pretty; }
  .hero__body { min-height: 0; }
  .plate--hero { grid-column: 1 / -1; grid-row: 3; margin-right: calc(-1 * var(--m)); width: var(--plate-w); }
  /* The bookend lines up with the hero square, which bleeds to the edge here. */
  .plate--frame { right: calc(max(0px, (100vw - 1600px) / 2) + var(--plate-w) * .5513); }
}

@media (max-width: 640px) {
  /* Phones are sized by width: scrolling is the native gesture, so the plate's job is
     to be big enough to promise what is below, not to fit the seam on screen. */
  :root { --stack: min(64vw, 280px); }
  .hero__bar { padding-block: 16px; flex-wrap: wrap; row-gap: 16px; } /* the nav's focus ring clears the wordmark */
  /* Three nav items don't fit beside the logo: they take their own row under it. */
  .site-head nav { width: 100%; }
  .site-head nav ul { gap: 22px; }
  .site-head nav a { font-size: .9375rem; }
  .hero h1 { margin-bottom: 24px; }
  .hero__lede { padding-bottom: 28px; }
  /* Nobody sees the hero echo here: the bookend keeps to the right margin, clear of the footer mark. */
  .plate--frame { right: var(--m); }
  .hero__sub { font-size: 1.0625rem; color: var(--mute); } /* 7.8:1 on navy */
  /* Phones: the contact sheet is 2x2, so each frame is about 45% of the column. */
  .plate--states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__text { grid-column: 1 / -1; }
  .foot__row { flex-direction: column; align-items: flex-start; }
}


/* The narrower side-by-side band: the lede needs more lines than cap line plus stack leaves,
   so the whole band hangs the stack from the headline's baseline instead. */
@media (min-width: 641px) and (max-width: 1179px) {
  :root { --cap: .83; }
}

@media (max-width: 399px) {
  :root { --m: 16px; }
}

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

/* ---------- 404 (production only) ---------- */
/* The hero's navy field with a section head, and one link home. */
.notfound { background: var(--navy); color: var(--white); padding-block: clamp(48px, 8vw, 128px) var(--sec); min-height: 56svh; }
.notfound h1 { font-size: clamp(2.875rem, 1.4rem + 6.2vw, 7.75rem); line-height: .96; letter-spacing: -0.022em; margin-bottom: clamp(32px, 4vw, 56px); }
.notfound p { font-size: var(--lead); }
.notfound a { color: var(--blue-2); text-decoration-thickness: 2px; text-underline-offset: .18em; transition: text-decoration-thickness .2s var(--ease); } /* 6.2:1 on navy */
.notfound a:hover { text-decoration-thickness: 4px; }
/* No bookend stands on this footer's seam. */
.notfound + .foot .foot__row { padding-top: clamp(48px, 5vw, 72px); }
