/* The Wall of Shame. Direction: a board of filled tiles (tasteskill v2, dense-tiles). */

:root {
  --bg: #e5e1d8;
  --surface: #dad5ca;
  --surface-2: #cfc8bb;
  --stone: #d4cec2;
  --ink: #2a1d17;
  --muted: #45362e;
  --accent: #a6221b;
  --accent-deep: #8f1d17;
  --accent-ink: #ffffff;
  --good: #2f5a28;
  --good-deep: #234520;
  --good-text: #2a5124;
  --paper: #f3f0ea;

  --small: 0.875rem;
  --body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --lead: clamp(1.25rem, 1.05rem + 0.75vw, 1.75rem);
  --head: clamp(2.125rem, 1.3rem + 3vw, 4rem);
  --display: clamp(4rem, 9.4vw, 11rem);

  --gap: 8px;
  --edge: 8px;
  --pad: 24px;
  --section: clamp(150px, 12vw, 180px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: var(--body);
  line-height: 1.5;
}
h1, h2, h3, p, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tile-red :focus-visible, .tile-red:focus-visible { outline-color: var(--ink); }

h1, h2, .giant {
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
h2 { font-size: var(--head); text-wrap: balance; }
h3 { font-size: var(--lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
strong { font-weight: 600; }

.tile { background: var(--surface); }
.tile-ink { background: var(--ink); color: var(--bg); }
.tile-red { background: var(--accent); color: var(--accent-ink); }
.tile-stone { background: var(--stone); color: var(--ink); }
.tile-green { background: var(--good); color: var(--accent-ink); }
.tile-green :focus-visible, .tile-green:focus-visible { outline-color: var(--ink); }

/* Buttons: square, flat, one fill. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.button:hover { background: var(--accent-deep); color: var(--accent-ink); }
.button:active { transform: scale(0.97); }
.button-quiet { background: var(--surface-2); color: var(--ink); }
.button-paper { background: var(--paper); color: var(--ink); }
.button-paper:hover { background: var(--ink); color: var(--bg); }
.button-small { min-height: 40px; padding: 0 16px; font-size: var(--small); }
.button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Top row of tiles */
.top {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--gap);
  padding: var(--edge) var(--edge) 0;
  height: calc(60px + var(--edge));
}
.top > * { display: flex; align-items: center; }
.top-mark {
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.top-links { background: var(--surface); padding-left: calc(50vw - 68px - var(--edge)); gap: 28px; }
.top-links a, .top-menu a { text-decoration: none; font-weight: 500; }
.top-links a:hover { text-decoration: underline; }
.top-menu { display: none; }
.top-action {
  background: var(--ink);
  color: var(--bg);
  padding: 0 24px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out);
}
.top-action:hover { background: var(--accent); }

/* Hero: two-by-two board */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1.15fr 1fr;
  grid-template-areas:
    "name name photo-a photo-a"
    "photo-b say top best";
  gap: var(--gap);
  padding: var(--gap) var(--edge) 0;
  height: calc(100svh - 60px - var(--edge));
  min-height: 600px;
  max-height: 1100px;
}
.hero-name { grid-area: name; display: flex; align-items: flex-end; padding: var(--pad); }
.hero-name h1 { font-size: var(--display); font-weight: 500; letter-spacing: -0.05em; line-height: 0.88; }
.hero-name h1 span { display: block; }
.hero-photo { overflow: hidden; background: var(--surface-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-a { grid-area: photo-a; }
.hero-photo-a img { object-position: 50% 20%; }
.hero-photo-b { grid-area: photo-b; }
.hero-photo-b img { object-position: 50% 62%; }
.hero-say, .hero-top, .hero-best { padding: var(--pad); font-size: var(--lead); line-height: 1.2; letter-spacing: -0.01em; }
.hero-say { grid-area: say; }
.hero-best { grid-area: best; }
.hero-top, .hero-best {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: background-color 200ms var(--ease-out);
}
.hero-top { grid-area: top; }
.hero-top:hover { background: var(--accent-deep); }
.hero-best:hover { background: var(--good-deep); }
.hero-top-go { font-size: var(--body); font-weight: 500; text-decoration: underline; }

/* Intro: lead line over four columns */
.intro { padding: var(--section) 20px calc(var(--section) * 0.7); }
.intro-lead { font-size: var(--lead); line-height: 1.25; max-width: 60ch; letter-spacing: -0.01em; }
.intro-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 72px; }
.intro-cols p { color: var(--muted); }
.intro-cols strong { color: var(--ink); }

/* The board: category tabs and banded rows */
.board { padding: 0 var(--edge) var(--section); }
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 12px; }
.board-head h2 span { display: block; }
.soft { color: var(--muted); }
.board-modes { display: flex; gap: 6px; }
.board-body { display: grid; grid-template-columns: 190px 1fr; gap: var(--gap); margin-top: 56px; }
.board-tabs { display: flex; flex-direction: column; gap: 6px; }
.board-tabs button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 64px;
  padding: 8px 16px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.board-tabs button span { font-weight: 500; line-height: 1.2; }
.board-tabs button small { font-size: var(--small); color: var(--muted); }
.board-tabs button:hover { background: var(--surface-2); }
.board-tabs button:active { transform: scale(0.98); }
.board-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.board-tabs button[aria-pressed="true"] small { color: var(--stone); }
.board-main { min-width: 0; }

.lookup { background: var(--accent); color: var(--accent-ink); padding: 20px var(--pad) 18px; margin-bottom: 4px; }
.lookup label { display: block; font-size: var(--lead); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.lookup-row { display: flex; gap: 6px; }
.lookup input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--body);
}
.lookup input::placeholder { color: var(--muted); }
.lookup input:focus-visible { outline-color: var(--ink); }
.lookup .button { min-height: 52px; }
.lookup-status { min-height: 1.5em; margin-top: 8px; font-size: var(--small); }
.lookup-status:empty { display: none; }

.lookup-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4px;
  margin-bottom: var(--gap);
}
.lookup-card[hidden] { display: none; }
.lookup-card > * { padding: var(--pad); }
.lookup-name { background: var(--surface-2); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.lookup-name h3 { font-size: var(--head); letter-spacing: -0.04em; line-height: 0.95; }
.lookup-name a { font-weight: 500; }
.lookup-score { background: var(--ink); color: var(--bg); }
.lookup-score.is-bad { background: var(--accent); color: var(--accent-ink); }
.lookup-score.is-good { background: var(--good); color: var(--accent-ink); }
.lookup-score .num { font-size: var(--display); font-weight: 600; letter-spacing: -0.05em; line-height: 0.85; }
.lookup-worst { grid-column: 1 / -1; background: var(--surface); }
.lookup-bars { grid-column: 1 / -1; background: var(--surface); }
.lookup-good { grid-column: 1 / -1; background: var(--good); color: var(--accent-ink); display: flex; flex-direction: column; gap: 6px; }

.bands { display: flex; flex-direction: column; gap: 4px; }
.band {
  display: grid;
  grid-template-columns: 44px minmax(0, 22%) minmax(0, 1fr) 88px;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 10px 20px;
  background: var(--surface);
  transition: background-color 160ms var(--ease-out);
}
.band:nth-child(even) { background: var(--surface-2); }
.band:hover { background: var(--stone); }
.band-rank { font-size: var(--lead); font-weight: 500; font-variant-numeric: tabular-nums; }
.band-name { font-weight: 600; font-size: var(--body); line-height: 1.2; text-decoration: none; }
.band-name:hover { text-decoration: underline; }
.band-note {
  font-size: var(--small);
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.band-score { text-align: right; font-variant-numeric: tabular-nums; }
.band-score strong { font-size: var(--lead); font-weight: 600; }
.band-score small { font-size: var(--small); color: var(--muted); }
.band-score.is-bad strong { color: var(--accent); }
.band-score.is-good strong { color: var(--good-text); }
.board.is-best .board-tabs button[aria-pressed="true"], .board.is-best .board-modes [aria-pressed="true"] { background: var(--good); color: var(--accent-ink); }
.board.is-best .board-tabs button[aria-pressed="true"] small { color: var(--accent-ink); }
.board.is-best .soft { color: var(--good-text); }
.board-key { margin-top: 6px; font-size: var(--small); color: var(--muted); }
.key { font-weight: 600; padding: 1px 6px; color: var(--accent-ink); }
.key-bad { background: var(--accent); }
.key-good { background: var(--good); }
.all-list span.is-bad { color: var(--accent); font-weight: 600; }
.all-list span.is-good { color: var(--good-text); font-weight: 600; }
.board-note { margin-top: 16px; font-size: var(--small); color: var(--muted); }
.board-note a { color: var(--ink); }

/* Score bars: filled, no outlines */
.bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
  font-size: var(--small);
}
.bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--fill);
  background: var(--accent);
  opacity: 0.22;
  z-index: -1;
  transform-origin: left;
}
.bar::before { background: var(--ink); opacity: 0.14; }
.bar.is-bad { background: var(--accent); color: var(--accent-ink); }
.bar.is-good { background: var(--good); color: var(--accent-ink); }
.bar.is-bad::before, .bar.is-good::before { background: #000; opacity: 0.22; }
.bar-name { font-weight: 500; }
.bar-num { font-variant-numeric: tabular-nums; }

/* Versus: one picture cut across tiles */
.versus { padding: 0 12px var(--section); }
.mosaic {
  --cols: 6;
  --rows: 4;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-auto-rows: calc((100vw - 24px - 5 * var(--gap)) / 6);
  gap: var(--gap);
}
.mosaic-tile {
  grid-column: var(--dc) / span var(--ds);
  grid-row: var(--dr);
  padding: 16px;
  overflow: hidden;
}
.mosaic-tile.mosaic-piece {
  padding: 0;
  overflow: visible;
  perspective: 900px;
  transition: transform 400ms var(--ease-out);
}
.flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 800ms var(--ease-in-out); }
.mosaic-piece.is-flipped .flip { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front {
  background-image: url("/img/indenture.jpg");
  background-size: calc(var(--cols) * 100%) calc(var(--rows) * 100%);
  background-position:
    calc((var(--dc) - 1) / (var(--cols) - 1) * 100%)
    calc((var(--dr) - 1) / (var(--rows) - 1) * 100%);
}
.flip-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
}
.flip-back.is-say { background: var(--paper); color: var(--ink); }
.flip-back.is-say .flip-who { color: var(--muted); font-weight: 500; }
.flip-back.is-say .flip-quote { font-size: var(--lead); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.flip-back.is-terms { background: var(--accent); color: var(--accent-ink); }
.flip-back.is-terms .flip-who { font-weight: 600; }
.flip-short { display: none; }
.flip-back.is-terms .flip-quote { font-weight: 600; }
.flip-who { font-weight: 600; }
.flip-short { display: none; }
.flip-quote { font-size: var(--body); line-height: 1.3; }
.mosaic-title h2 { font-size: var(--head); }
.mosaic-fact { font-size: var(--body); line-height: 1.35; }
.mosaic-go {
  display: flex;
  align-items: flex-end;
  font-size: var(--lead);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: background-color 200ms var(--ease-out);
}
.mosaic-go:hover { background: var(--accent-deep); }
.mosaic-caption { margin-top: 12px; font-size: var(--small); color: var(--muted); }

.pairs { display: flex; flex-direction: column; gap: var(--gap); margin-top: 120px; }
.pair {
  display: grid;
  grid-template-columns: 3fr 4fr 5fr;
  gap: 4px;
}
.pair-head { grid-column: 1; background: var(--surface-2); padding: var(--pad); display: flex; flex-direction: column; gap: 12px; }
.pair-name { font-size: var(--head); letter-spacing: -0.04em; line-height: 0.95; }
.pair-name a { text-decoration: none; }
.pair-name a:hover { text-decoration: underline; }
.pair-score { font-size: var(--small); color: var(--muted); }
.pair-score strong { color: var(--ink); font-size: var(--body); }
.pair-say, .pair-terms { padding: var(--pad); }
.pair-say { grid-column: 2; background: var(--surface); }
.pair-terms { grid-column: 3; background: var(--ink); color: var(--bg); }
.pair-who { font-weight: 600; margin-bottom: 8px; }
.pair-say .pair-big { font-size: var(--lead); line-height: 1.25; }
.pair-check { margin-top: 16px; padding: 16px; background: var(--accent); color: var(--accent-ink); font-size: var(--small); }

/* Proof: large marks on tiles */
.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0 var(--edge) var(--section);
}
.proof-head { grid-column: span 2; padding: var(--pad); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }

.proof-tile {
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--pad);
  background: var(--surface);
  text-decoration: none;
  transition: background-color 160ms var(--ease-out);
}
.proof-tile:nth-of-type(odd) { background: var(--surface-2); }
.proof-tile:hover { background: var(--stone); }
.proof-name { font-size: var(--lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.proof-what { font-size: var(--small); color: var(--muted); }
.proof-fix { grid-column: span 2; padding: var(--pad); font-size: var(--lead); line-height: 1.25; }

/* How a score gets made */
.how {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px 24px;
  padding: 0 20px var(--section);
}
.how-head { grid-column: 1 / span 5; align-self: end; }
.how-head p { margin-top: 24px; max-width: 34ch; }
.how-notary { grid-column: 9 / span 4; aspect-ratio: 4 / 5; overflow: hidden; }
.how-notary img { width: 100%; height: 100%; object-fit: cover; }
.how-diagram { grid-column: 1 / -1; width: 100%; height: auto; }
.sq-pale { fill: var(--surface-2); }
.sq-paler { fill: var(--stone); }
.sq-ink { fill: var(--ink); }
.sq-accent { fill: var(--accent); }
.how-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-steps strong { display: block; font-size: var(--lead); letter-spacing: -0.02em; margin-bottom: 6px; }
.rubric { grid-column: 1 / -1; width: 100%; border-collapse: collapse; font-size: var(--body); }
.rubric caption { text-align: left; font-size: var(--lead); font-weight: 600; letter-spacing: -0.02em; padding-bottom: 16px; }
.rubric th, .rubric td { text-align: left; padding: 14px 16px; vertical-align: top; }
.rubric thead th { font-size: var(--small); color: var(--muted); font-weight: 500; }
.rubric tbody tr:nth-child(odd) { background: var(--surface); }
.rubric tbody tr:nth-child(even) { background: var(--surface-2); }
.rubric td:last-child, .rubric th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.rubric tbody th { font-weight: 600; white-space: nowrap; }
.rubric tfoot { background: var(--ink); color: var(--bg); }
.rubric tfoot td:last-child { font-weight: 600; font-size: var(--lead); }

/* All companies: giant word, filled bars */
.all { max-width: 640px; margin: 0 auto; padding: 0 16px var(--section); container-type: inline-size; }
.giant { font-size: max(var(--display), 30cqw); line-height: 0.8; letter-spacing: -0.06em; white-space: nowrap; }
.all-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.all-bar { background: var(--surface); }
.all-bar summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms var(--ease-out);
}
.all-bar summary::-webkit-details-marker { display: none; }
.all-bar summary::after { content: "+"; font-size: 1.5rem; line-height: 1; margin-left: 16px; transition: transform 200ms var(--ease-out); }
.all-bar[open] summary::after { transform: rotate(45deg); }
.all-bar summary:hover { background: var(--surface-2); }
.all-count { margin-left: auto; color: var(--muted); font-size: var(--small); font-weight: 400; }
.all-bar:not([open]) .all-list, .reveal:not([open]) .post { display: none; }
.all-list { padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.all-list li { display: flex; justify-content: space-between; gap: 16px; }
.all-list a { text-decoration: none; }
.all-list a:hover { text-decoration: underline; }
.all-list span { font-variant-numeric: tabular-nums; }

/* The action tile row */
.ask {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  height: 360px;
  margin: 0 0 var(--gap);
  overflow: clip;
}
.ask-side:first-child { grid-column: 1 / span 2; margin-left: -40px; }
.ask-side:last-child { grid-column: 11 / span 2; margin-right: -40px; }
.ask-photo { overflow: hidden; }
.ask-photo img { width: 100%; height: 100%; object-fit: cover; }
.ask-main { grid-column: 3 / span 8; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 40px; }

.ask-main p { max-width: 52ch; }

/* Footer: the mark built from blocks */
.foot { background: var(--ink); color: var(--bg); padding: var(--gap) var(--edge) 24px; }
.foot-prints { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin-bottom: 40px; }
.foot-print { aspect-ratio: 4 / 3; overflow: hidden; background: var(--muted); }
.foot-print img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.foot-print:hover img { transform: scale(1.05); }
.foot-mark, .foot-cols, .foot-last { margin-left: 12px; margin-right: 12px; }
.foot-mark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34svh;
  min-height: 220px;
  text-decoration: none;
}
.foot-mark span {
  flex: 1;
  height: var(--h);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--display);
  line-height: 0.8;
  letter-spacing: -0.04em;
  padding-bottom: 0.08em;
  transform-origin: bottom;
}
.foot-mark [data-tone="bone"] { background: var(--bg); }
.foot-mark [data-tone="stone"] { background: var(--surface-2); }
.foot-mark [data-tone="red"] { background: var(--accent); }
.foot-cols { display: grid; grid-template-columns: 2fr 2fr 4fr 4fr; gap: 24px; margin-top: 56px; font-size: var(--small); }
.foot-cols > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-head { font-weight: 600; font-size: var(--body); }
.foot-cols a { text-decoration: none; color: var(--bg); }
.foot-cols a:hover { text-decoration: underline; }
.foot-credit, .foot-contact p { color: var(--stone); font-size: var(--body); }
.foot-credit a { text-decoration: underline; }
.foot-last { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; font-size: var(--small); color: var(--stone); }
.foot-last .button { background: var(--bg); color: var(--ink); }
.foot-last .button:hover { background: var(--accent); color: var(--accent-ink); }

/* Shared page boards (company, checked, receipts, 404) */
.page-board {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: minmax(300px, 46svh) minmax(200px, auto);
  grid-template-areas: "name name photo photo" "say say note note";
  gap: var(--gap);
  padding: var(--gap) var(--edge) 0;
}
.page-name { grid-area: name; display: flex; align-items: flex-end; padding: var(--pad); }
.page-name h1 { font-size: var(--display); font-weight: 500; letter-spacing: -0.05em; line-height: 0.88; }
.page-say, .page-note { padding: var(--pad); font-size: var(--lead); line-height: 1.25; text-decoration: none; }
.page-say { grid-area: say; }
.page-note { grid-area: note; }
a.page-note { transition: background-color 200ms var(--ease-out); }
a.page-note:hover { background: var(--accent-deep); }
.page-photo { grid-area: photo; overflow: hidden; }
.page-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Company page */
.co-board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding: var(--gap) var(--edge) 0;
}
.co-name { grid-column: 1 / span 7; min-height: 46svh; display: flex; flex-direction: column; justify-content: space-between; padding: var(--pad); }
.co-name h1 { order: 2; font-size: var(--display); font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; text-wrap: balance; }
.co-name h1.co-name-long { font-size: var(--head); }
.co-name p { order: 1; color: var(--muted); }
.co-score { grid-column: 8 / span 5; padding: var(--pad); display: flex; flex-direction: column; justify-content: space-between; }
.co-score-num { font-size: var(--display); font-weight: 600; letter-spacing: -0.06em; line-height: 0.8; }
.co-score p:last-child { font-size: var(--lead); line-height: 1.2; }
.co-bars { grid-column: 1 / span 7; padding: var(--pad); }
.co-good { grid-column: 1 / -1; order: 5; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; padding: var(--pad); }
.co-good h2 { grid-column: 1 / span 5; font-size: var(--lead); letter-spacing: -0.02em; line-height: 1.1; }
.co-good-cats { grid-column: 1 / span 5; grid-row: 2; display: flex; flex-direction: column; gap: 6px; }
.co-good-cats li { background: var(--good-deep); padding: 10px 14px; }
.co-good-points { grid-column: 7 / span 6; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 14px; }
.co-good-points li { padding-left: 18px; position: relative; }
.co-good-points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--accent-ink); }
.co-worst { grid-column: 8 / span 5; padding: var(--pad); font-size: var(--lead); line-height: 1.25; }
.co-worst.is-long { font-size: var(--body); line-height: 1.45; }

.co-checked, .clauses, .fair, .sourcing { padding: var(--section) 20px 0; }
.co-checked { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.co-checked h2 { grid-column: 1 / -1; margin-bottom: 32px; }
.finding { background: var(--surface); padding: var(--pad); display: flex; flex-direction: column; gap: 12px; }
.co-checked .finding:nth-of-type(1) { background: var(--accent); color: var(--accent-ink); }
.finding-context { color: inherit; }
.finding-src { font-size: var(--small); margin-top: auto; }
.clauses-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: 48px; align-items: end; }
.clauses-head h2 { grid-column: 1 / span 6; }
.clauses-head p { grid-column: 8 / span 5; }
.clause-list { display: flex; flex-direction: column; gap: 4px; }
.clause {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 8px 32px;
  padding: var(--pad);
  background: var(--surface);
}
.clause:nth-child(even) { background: var(--surface-2); }
.clause-plain { font-size: var(--lead); line-height: 1.25; letter-spacing: -0.01em; }
.clause-fine { color: var(--muted); grid-row: span 2; }
.clause-src { font-size: var(--small); align-self: end; }
.fair ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: 32px; }
.fair li { background: var(--stone); padding: var(--pad); }
.sourcing { max-width: 75ch; }
.sourcing h2 { font-size: var(--lead); letter-spacing: -0.02em; margin-bottom: 12px; }
.sourcing p { color: var(--muted); font-size: var(--small); margin-bottom: 8px; max-width: 70ch; }

.pager { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--gap); padding: var(--section) var(--edge) var(--gap); }
.pager-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 140px;
  padding: var(--pad);
  background: var(--surface);
  font-size: var(--lead);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out);
}
.single .pager-tile { font-size: var(--body); }
.pager-tile span { font-size: var(--small); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.pager-tile:hover { background: var(--surface-2); }
.pager-home { background: var(--ink); color: var(--bg); }
.pager-home span { color: var(--stone); }
.pager-home:hover { background: var(--accent); }

/* Checked page */
.method { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: var(--section) 20px; }
.method h2 { grid-column: 1 / span 4; }
.method-steps { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.method-steps strong { display: block; font-size: var(--lead); letter-spacing: -0.02em; margin-bottom: 6px; }
.checked-list { display: flex; flex-direction: column; gap: 96px; padding: 0 var(--edge); }
.checked-co { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gap); }
.checked-co-head { background: var(--ink); color: var(--bg); padding: var(--pad); display: flex; flex-direction: column; gap: 12px; }

.checked-co-head a { text-decoration: none; }
.checked-co-head a:hover { text-decoration: underline; }
.checked-co-head p { color: var(--stone); font-size: var(--small); }
.checked-co-findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.checked-co-findings .finding:nth-child(even) { background: var(--surface-2); }

/* Receipts: catches as tiles */
.receipts { display: flex; flex-direction: column; gap: 48px; padding: var(--section) var(--edge) 0; }
.catch { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gap); }
.catch-head { background: var(--surface); padding: var(--pad); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.catch-face { width: 96px; height: 96px; object-fit: cover; }
.catch-title { font-size: var(--lead); letter-spacing: -0.02em; line-height: 1.1; }
.catch-title a { text-decoration: none; }
.catch-title a:hover { text-decoration: underline; }
.catch-who { font-weight: 500; }
.catch-who span, .catch-label, .catch-note { color: var(--muted); font-size: var(--small); font-weight: 400; }
.catch-posts { display: flex; flex-direction: column; gap: 4px; }
.post { padding: var(--pad); }
.post-now { background: var(--accent); color: var(--accent-ink); }
.post-then { background: var(--ink); color: var(--bg); }
.post figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--small); margin-bottom: 12px; }
.post-when { font-weight: 600; }
.post blockquote p { font-size: var(--lead); line-height: 1.3; white-space: pre-line; overflow-wrap: anywhere; max-width: 42ch; }
.post-long blockquote p { font-size: var(--body); line-height: 1.5; max-width: 68ch; }
.post-photo { margin-top: 16px; max-height: 420px; width: auto; }
.reveal { background: var(--ink); color: var(--bg); }
.reveal summary {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 var(--pad);
  font-size: var(--lead);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.reveal summary::-webkit-details-marker { display: none; }
.reveal summary::after { content: "+"; margin-left: auto; transition: transform 200ms var(--ease-out); }
.reveal[open] summary::after { transform: rotate(45deg); }
.reveal summary:hover { background: #3a2a22; }
.catch-actions { display: flex; gap: 6px; padding-top: 4px; }
.labels { padding: var(--section) 20px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.labels h2 { grid-column: 1 / span 5; }
.labels-list { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 4px; }
.labels-list div { background: var(--surface); padding: 18px var(--pad); }
.labels-list dt { font-weight: 600; font-size: var(--lead); letter-spacing: -0.02em; }
.single .catch { padding: var(--gap) var(--edge) 0; }
.single .catch { grid-template-columns: 1fr; }
.single .catch-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: 12px 32px; padding: 0; background: none; }
.single .catch-face { grid-row: 1 / span 6; width: 100%; height: calc(100svh - 84px); min-height: 480px; max-height: 900px; object-fit: cover; }
.single .catch-head > :not(.catch-face) { grid-column: 2; }
.single .catch-title { font-size: var(--head); letter-spacing: -0.04em; line-height: 0.95; padding-top: var(--pad); }
.single .catch-actions { padding-bottom: var(--pad); }

.toast {
  visibility: hidden;
  position: fixed;
  left: 50%;
  bottom: 24px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  transform: translate(-50%, 160%);
  transition: transform 300ms var(--ease-out);
  z-index: 10;
}
.toast.is-on { visibility: visible; transform: translate(-50%, 0); }

/* Motion. Content is visible without script; travel is added only with script and no reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-line] { display: inline-block; animation: rise 900ms var(--ease-out) both; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
  .js .hero-name h1 [data-line] { display: block; }
  .js [data-rise] { animation: rise 800ms var(--ease-out) both; animation-delay: calc(300ms + var(--i, 0) * 90ms); }
  .js .shutter { animation: shutter 1100ms var(--ease-in-out) both; }
  .js .shutter img { animation: settle 1400ms var(--ease-out) both, drift 24s 1.4s ease-in-out infinite alternate; }
  .hero-photo-b img { animation: drift 30s ease-in-out infinite alternate-reverse; }
  .mosaic-piece:hover { transform: scale(1.04); }
  .js .mosaic.is-in .mosaic-piece { animation: rise 700ms var(--ease-out) both; animation-delay: calc((var(--dc) + var(--dr)) * 50ms); }
  .js .how-diagram .sq { opacity: 0; }
  .js .how-diagram.is-in .sq { animation: fade 600ms var(--ease-out) forwards; animation-delay: calc(var(--d) * 6ms); }
  .js .foot-mark.is-in span { animation: grow 900ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 50ms); }
  .bands .band { animation: rise 500ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 40ms); }
  .co-bars .bar::before, .lookup-card .bar::before { animation: fill 900ms var(--ease-out) both; animation-delay: 400ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shutter { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
@keyframes grow { from { transform: scaleY(0.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: none; } }

/* Tablet */
@media (max-width: 1100px) {
  .top-links { padding-left: 24px; }
  .intro-cols { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof-head, .proof-fix { grid-column: 1 / -1; }
  .pair { grid-template-columns: 1fr 1fr; }
  .pair-head { grid-column: 1 / -1; }
  .pair-say { grid-column: 1; }
  .pair-terms { grid-column: 2; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .method h2, .method-steps { grid-column: 1 / -1; }
  .checked-co { grid-template-columns: 1fr; }
  .single .catch-head { grid-template-columns: 1fr; }
  .single .catch-face { grid-row: auto; height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .single .catch-head > :not(.catch-face) { grid-column: 1; }
}

/* Phone: its own board */
@media (max-width: 760px) {
  :root { --gap: 6px; --pad: 18px; }
  .top { grid-template-columns: 52px 1fr auto; height: auto; }
  .top-links { display: none; }
  .top-action { padding: 0 16px; }
  .top-action-long { display: none; }
  .top-mark { height: 52px; }
  .top-menu { display: block; position: relative; background: var(--surface); }
  .top-menu summary { display: flex; align-items: center; height: 52px; padding: 0 18px; font-weight: 500; cursor: pointer; list-style: none; }
  .top-menu summary::-webkit-details-marker { display: none; }
  .top-menu summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; }
  .top-menu[open] summary::after { content: "–"; }
  .top-menu nav { display: flex; flex-direction: column; background: var(--ink); color: var(--bg); padding: 16px 18px 20px; gap: 14px; position: absolute; left: 0; right: 0; top: 52px; z-index: 5; }

  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: "name name" "photo-a photo-a" "top best" "say say" "photo-b photo-b";
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .hero-name { min-height: 30svh; }
  .hero-photo-a { aspect-ratio: 4 / 3; }
  .hero-photo-b { aspect-ratio: 4 / 3; }
  .hero-top, .hero-best { aspect-ratio: 1; font-size: 1.125rem; padding: 16px; }
  .hero-say { font-size: 1.125rem; padding: 16px; }

  .intro { padding: 80px 16px 64px; }
  .intro-cols { grid-template-columns: 1fr; row-gap: 28px; margin-top: 48px; }

  .board { padding-bottom: 96px; }
  .board-head { flex-direction: column; align-items: stretch; padding: 0 8px; }
  .board-modes .button { flex: 1; }
  .board-body { grid-template-columns: 1fr; margin-top: 32px; }
  .board-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .board-tabs button { min-height: 56px; }
  .board-tabs button:first-child { grid-column: 1 / -1; }
  .band { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "rank name score" "rank note note"; gap: 4px 12px; padding: 14px 16px; }
  .band-rank { grid-area: rank; align-self: start; }
  .band-name { grid-area: name; }
  .band-note { grid-area: note; }
  .band-score { grid-area: score; }
  .lookup { padding: 18px 16px; }
  .lookup-row { flex-direction: column; }
  .lookup-card { grid-template-columns: 1fr; }
  .bars { grid-template-columns: 1fr; }

  .versus { padding: 0 8px 96px; }
  .mosaic { --cols: 3; --rows: 9; grid-auto-rows: calc((100vw - 16px - 2 * var(--gap)) / 3); }
  .mosaic-tile { grid-column: var(--pc) / span var(--ps); grid-row: var(--pr); padding: 12px; }
  .mosaic-desk-only { display: none; }
  .flip-back { padding: 8px 10px; gap: 4px; }
  .flip-long { display: none; }
  .flip-short { display: inline; }
  .flip-back.is-terms .flip-quote { font-weight: 500; }
  .flip-who, .flip-quote, .flip-back.is-say .flip-quote { font-size: var(--small); line-height: 1.25; }
  .flip-front {
    background-position:
      calc((var(--pc) - 1) / (var(--cols) - 1) * 100%)
      calc((var(--pr) - 1) / (var(--rows) - 1) * 100%);
  }
  .mosaic-fact { font-size: 0.9375rem; }
  .js .mosaic.is-in .mosaic-piece { animation-delay: calc((var(--pc) + var(--pr)) * 50ms); }
  .pairs { margin-top: 72px; }
  .pair { grid-template-columns: 1fr; }
  .pair-say, .pair-terms { grid-column: 1; }

  .proof { grid-template-columns: 1fr 1fr; padding-bottom: 96px; }
  .proof-tile:nth-of-type(3n+1) { grid-column: 1 / -1; }
  .proof-tile { aspect-ratio: auto; min-height: 120px; padding: 16px; }

  .how { grid-template-columns: 1fr; gap: 32px; padding-bottom: 96px; }
  .how-head, .how-notary, .how-diagram, .how-steps, .rubric { grid-column: 1; }
  .how-notary { aspect-ratio: 4 / 3; }
  .how-steps { grid-template-columns: 1fr; }
  .rubric thead { display: none; }
  .rubric tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; }
  .rubric th, .rubric td { padding: 4px 16px; }
  .rubric td:not(:last-child) { grid-column: 1 / -1; grid-row: 2; font-size: var(--small); }
  .rubric tbody th { white-space: normal; }

  .all { padding-bottom: 96px; }
  .ask { grid-template-columns: 1fr 1fr; height: auto; margin: 0 0 var(--gap); gap: var(--gap); padding: 0 var(--edge); }
  .ask-main { grid-column: 1 / -1; grid-row: 1; min-height: 300px; padding: 24px; }
  .ask-side:first-child, .ask-side:last-child { grid-column: auto; grid-row: 2; height: 120px; margin: 0; }
  .ask .button { width: 100%; }

  .foot-mark { height: 22svh; min-height: 150px; flex-wrap: wrap; align-content: flex-end; }
  .foot-mark span { flex: 1 0 calc(20% - 4px); height: calc(var(--h) * 0.5); }
  .foot-prints { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .foot-print { grid-column: span 2; }
  .foot-print:nth-child(4), .foot-print:nth-child(5) { grid-column: span 3; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-wide, .foot-contact { grid-column: 1 / -1; }

  .page-board { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-template-areas: "name name" "photo photo" "say note"; }
  .page-name { min-height: 30svh; }
  .page-photo { aspect-ratio: 4 / 3; }
  .page-say, .page-note { font-size: 1.125rem; padding: 16px; }

  .co-board { grid-template-columns: 1fr 1fr; }
  .co-name { grid-column: 1 / -1; min-height: 30svh; }
  .co-score { grid-column: 1 / -1; }
  .co-bars, .co-worst { grid-column: 1 / -1; }
  .co-good { grid-template-columns: 1fr; }
  .co-good h2, .co-good-cats, .co-good-points { grid-column: 1; grid-row: auto; }
  .co-checked, .clauses, .fair, .sourcing { padding: 96px 16px 0; }
  .co-checked { grid-template-columns: 1fr; }
  .clauses-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .clauses-head h2, .clauses-head p { grid-column: 1; }
  .clause { grid-template-columns: 1fr; padding: 18px; }
  .clause-fine { grid-row: auto; }
  .fair ul { grid-template-columns: 1fr; }
  .pager { grid-auto-flow: row; padding-top: 96px; }
  .pager-tile { min-height: 96px; }
  .single .catch-face { aspect-ratio: 1; }

  .method { padding: 96px 16px; }
  .method-steps { grid-template-columns: 1fr; }
  .checked-co { grid-template-columns: 1fr; }

  .receipts { padding-top: 96px; gap: 32px; }
  .catch { grid-template-columns: 1fr; }
  .labels { grid-template-columns: 1fr; padding: 96px 16px; }
  .labels h2, .labels-list { grid-column: 1; }
  .single .catch { padding: var(--gap) var(--edge) 0; }
  .checked-list { gap: 64px; }
  .single .catch-head { grid-template-columns: 1fr; }
  .single .catch-face { grid-row: auto; max-height: none; }
  .single .catch-head > :not(.catch-face) { grid-column: 1; }
  .single .catch-title { font-size: var(--lead); letter-spacing: -0.02em; line-height: 1.1; padding-top: 0; }
}
