/* tethercode.app
   The name is taken literally: braided cords in four colours, one per agent, tied into one knot.
   The photographs carry that idea, so the page itself stays quiet: an indigo field matched to the
   photographs' backdrop for the opening, the story and the close; cool paper for the detail.
   Yellow is used for one thing only: the action. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2?v=a97804dc9fbe") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2?v=19f9c92546aa") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2?v=684ad5b531f8") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* The dark zones (the opening, the teams section, the close): a dark ink with a little blue in it,
     sampled from the rope photographs' backdrop so picture and page have no seam. Royal blue was
     replaced on 2026-11-19: a saturated wall of blue reads as loud, not as calm. */
  --field: #1b202c;
  --field-deep: #13161e;
  --field-ink: #f4f6fa;
  --field-muted: #b6bfce;
  --field-line: #2f3a4c;
  /* what sits on a field: a card's surface, the accent for small labels, the tick marks, a shadow */
  --field-card: rgba(255, 255, 255, 0.05);
  --field-accent: #7fe3cd;
  --field-tick: var(--signal);
  --field-shadow: rgba(5, 7, 12, 0.9);
  --paper: #f1f3f7;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #555f73;
  --rule: #d9dee7;
  --teal: #0c9a7d;
  --tether: #2a56c6;
  --periwinkle: #8f9be8;
  --signal: #ffc93c;
  --signal-deep: #f0b310;
  --signal-ink: #1c1500;
  --ask: #fff2c7;
  --ask-ink: #5a4300;
  --no: #8b93a5;

  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1016;
    --panel: #171c26;
    --ink: #eef1f6;
    --muted: #a5aebd;
    --rule: #283142;
    --teal: #2ccaa9;
    --tether: #8fb0ff;
    --ask: #3a2f08;
    --ask-ink: #ffe08a;
    --no: #6c7586;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1016;
  --panel: #171c26;
  --ink: #eef1f6;
  --muted: #a5aebd;
  --rule: #283142;
  --teal: #2ccaa9;
  --tether: #8fb0ff;
  --ask: #3a2f08;
  --ask-ink: #ffe08a;
  --no: #6c7586;
}

/* The quiet feature bands (what it is, the knowledge engine, confidentiality, the story): white by
   day, because long text reads best dark on light; dark ink at night, one step lighter than the
   page so the bands still stand apart. */
.calm {
  --field: #ffffff; --field-deep: #fbfcfe; --field-ink: var(--ink); --field-muted: var(--muted); --field-line: var(--rule);
  --field-card: var(--paper); --field-accent: var(--teal); --field-tick: var(--teal); --field-shadow: rgba(17, 24, 39, 0.28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .calm { --field: #171c26; --field-deep: #12161e; --field-ink: #f4f6fa; --field-muted: #b6bfce; --field-line: #2f3a4c; --field-card: rgba(255, 255, 255, 0.05); --field-accent: #7fe3cd; --field-tick: var(--signal); --field-shadow: rgba(5, 7, 12, 0.9); }
}
:root[data-theme="dark"] .calm { --field: #171c26; --field-deep: #12161e; --field-ink: #f4f6fa; --field-muted: #b6bfce; --field-line: #2f3a4c; --field-card: rgba(255, 255, 255, 0.05); --field-accent: #7fe3cd; --field-tick: var(--signal); --field-shadow: rgba(5, 7, 12, 0.9); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tether); text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.92em; }
b { font-weight: 650; }

:focus-visible { outline: 3px solid var(--signal-deep); outline-offset: 3px; border-radius: 4px; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--signal); color: var(--signal-ink); padding: 10px 14px; border-radius: 6px;
  font-weight: 650; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---- which reading of the page is showing ---------------------------------------------- */

[data-for] { display: none; }
body:has(#p-all:checked) [data-for~="all"],
body:has(#p-hobbit:checked) [data-for~="hobbit"],
body:has(#p-vulcan:checked) [data-for~="vulcan"],
body:has(#p-hooligan:checked) [data-for~="hooligan"],
body:has(#p-team:checked) [data-for~="team"] { display: revert; }
body:has(#p-all:checked) .button[data-for~="all"],
body:has(#p-hobbit:checked) .button[data-for~="hobbit"],
body:has(#p-vulcan:checked) .button[data-for~="vulcan"],
body:has(#p-hooligan:checked) .button[data-for~="hooligan"],
body:has(#p-team:checked) .button[data-for~="team"] { display: inline-flex; }
@supports not selector(:has(a)) {
  [data-for~="all"] { display: revert; }
  .button[data-for~="all"] { display: inline-flex; }
}

/* ---- buttons --------------------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px;
  border: 2px solid transparent; border-radius: 10px;
  font: 650 17px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease;
}
.button.small { min-height: 40px; padding: 0 16px; font-size: 15px; white-space: nowrap; border-radius: 8px; }
.button.signal { background: var(--signal); color: var(--signal-ink); }
.button.signal:hover { background: var(--signal-deep); }
.button.signal:active { transform: translateY(1px); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.ghost:hover { background: var(--ink); color: var(--paper); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button[data-for] { display: none; }

/* ---- the opening ------------------------------------------------------------------------ */

.field {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--field) 0, var(--field-deep) 100%);
  color: var(--field-ink);
}
/* The bar across the top stays in place while the page scrolls, on every screen size. It stands on
   its own at the top of the page (inside the opening section it scrolled away, because that section
   clips its contents). It runs the full width; the padding keeps its contents on the text column. */
.top {
  position: sticky; top: 0; z-index: 40;
  /* The left edge sits on the text column. The right edge may run 96px past it, which is the room
     the nine links need; the pictures already reach further right than the text. */
  padding: 14px max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad) - 96px)) 14px max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));
  display: flex; align-items: center; gap: 18px;
  background: var(--field); color: var(--field-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}
.wordmark {
  font: 720 25px/1 var(--display); letter-spacing: -0.035em;
  color: inherit; text-decoration: none; margin: 0;
}
.wordmark .dot { color: var(--signal); }
.status {
  padding: 5px 11px; border: 1px solid var(--field-line); border-radius: 999px;
  color: var(--field-muted); font-size: 13.5px; white-space: nowrap;
}
.nav { display: flex; flex: none; gap: 14px; margin-left: auto; }
.nav a { color: var(--field-muted); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--field-ink); }
.nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu { display: none; }
.menu summary {
  list-style: none; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--field-line); border-radius: 8px; color: var(--field-ink);
  font-size: 0; /* the word is for screen readers; three bars are drawn below */
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before { content: ""; width: 18px; height: 2px; border-radius: 1px; background: currentColor; box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor; }
.menu nav {
  position: fixed; z-index: 30; top: 68px; right: var(--pad); width: min(320px, calc(100vw - 2 * var(--pad)));
  padding: 10px; display: grid; gap: 2px; border-radius: 14px;
  background: var(--field-deep); border: 1px solid var(--field-line); box-shadow: 0 30px 60px -20px rgba(5, 7, 12, 0.9);
}
.menu nav a { padding: 11px 12px; border-radius: 8px; color: var(--field-ink); text-decoration: none; font-size: 16px; }
.menu nav a:hover, .menu nav a[aria-current] { background: rgba(255, 255, 255, 0.08); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.theme {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; color: var(--field-muted);
  border: 1px solid var(--field-line); border-radius: 8px; cursor: pointer;
}
.theme:hover { color: var(--field-ink); }

.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(20px, 3.4vw, 44px) var(--pad) clamp(56px, 7vw, 96px);
  min-height: min(760px, 86vh);
}
/* The copy never reaches the knot: the photograph is anchored to the right edge. */
.hero-copy { position: relative; z-index: 2; max-width: min(640px, calc(100vw - 600px)); }
.hero-art {
  position: absolute; z-index: 1; top: 0; bottom: 0;
  right: max(0px, calc((100% - 1760px) / 2)); width: min(60%, 1056px);
  background: url("/assets/img/knot.webp?v=02af46d52729") calc(100% + 96px) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%);
  mask-image: linear-gradient(to right, transparent 0, #000 34%);
}

.chooser { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chooser legend { padding: 0; margin-bottom: 10px; font-size: 15px; color: var(--field-muted); }
.pick { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chooser label {
  padding: 8px 14px; border: 1px solid var(--field-line); border-radius: 999px;
  background: rgba(13, 16, 22, 0.45);
  font-size: 14.5px; font-weight: 550; color: var(--field-ink); cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.chooser label:hover { border-color: var(--field-ink); }
.chooser .pick:checked + label { background: var(--field-ink); color: var(--field-deep); border-color: var(--field-ink); }
.chooser .pick:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 3px; }
.chooser label.reset { border-color: transparent; background: none; color: var(--field-muted); text-decoration: underline; text-underline-offset: 3px; }
.chooser .pick:checked + label.reset { display: none; }

.hero h1 {
  margin-top: 30px;
  font-size: clamp(38px, 4.2vw, 56px); line-height: 1.02; font-weight: 760;
  letter-spacing: -0.035em; text-wrap: balance;
}
/* The default headline is two sentences: how it is today, then what changes. */
.hero h1 .was { display: block; color: var(--field-muted); }
.hero h1 .now { display: block; white-space: nowrap; }
.lede {
  margin-top: 22px; max-width: 560px;
  font-size: clamp(18px, 1.45vw, 20px); line-height: 1.5; color: var(--field-muted);
}

.join { margin-top: 28px; max-width: 560px; }
.join-row { display: flex; gap: 10px; }
.join input[type="email"] {
  flex: 1 1 auto; min-width: 0; min-height: 54px; padding: 0 16px;
  border: 2px solid transparent; border-radius: 10px;
  background: #ffffff; color: #111827; font: 500 17px/1 var(--body);
}
.join input[type="email"]::placeholder { color: #7b819c; }
.join input[type="email"]:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.join-note { margin-top: 12px; font-size: 14.5px; color: var(--field-muted); max-width: 54ch; }
.join-note a { color: var(--field-ink); }
.form-result { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-weight: 550; font-size: 15.5px; }
.form-result.ok { background: #0c9a7d; color: #ffffff; }
.form-result.bad { background: var(--ask); color: var(--ask-ink); }
.works { margin-top: 30px; max-width: 54ch; font-size: 15px; color: var(--field-muted); }
.works b { color: var(--field-ink); font-weight: 600; }


main { position: relative; }

/* ---- paper sections ---------------------------------------------------------------------- */

.band {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) var(--pad) 0;
}
.band > h2, .today-head h2, .deep h2, .deep h1 {
  font-size: clamp(32px, 3.9vw, 52px); line-height: 1.02; font-weight: 740;
  letter-spacing: -0.03em; max-width: 19ch; text-wrap: balance;
}
.section-lede { margin-top: 18px; max-width: 58ch; font-size: 20px; line-height: 1.45; color: var(--muted); }

/* the problem */
.today { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px 56px; align-items: center; }
.tangle {
  -webkit-mask-image: radial-gradient(ellipse 74% 78% at center, #000 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 74% 78% at center, #000 68%, transparent 100%);
}
/* On dark paper the tangle photograph keeps its own light backdrop, so it sits as a tile, like the glyphs. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tangle { -webkit-mask-image: none; mask-image: none; border-radius: 20px; }
}
:root[data-theme="dark"] .tangle { -webkit-mask-image: none; mask-image: none; border-radius: 20px; }
.pains {
  grid-column: 1 / -1; list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px;
}
.pains li { padding: 26px 0 28px; border-top: 3px solid var(--ink); }
.pains li:nth-child(4n + 2) { border-top-color: var(--teal); }
.pains li:nth-child(4n + 3) { border-top-color: var(--signal-deep); }
.pains li:nth-child(4n + 4) { border-top-color: var(--periwinkle); }
.pains li.wide { grid-column: 1 / -1; border-top-color: var(--ink); }
.pains li.wide p { max-width: 70ch; }
.pains h3 { font-size: 23px; line-height: 1.12; font-weight: 700; }
.pains p { margin-top: 10px; color: var(--muted); }

/* ---- the deep bands: what it is, the story, teams ----------------------------------------- */

.deep {
  position: relative; overflow: hidden;
  margin-top: clamp(64px, 8vw, 112px);
  background: linear-gradient(180deg, var(--field) 0, var(--field-deep) 100%);
  color: var(--field-ink);
}
.deep-inner, .story-inner, .teams-inner {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) var(--pad);
  display: grid; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.deep-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
.deep-copy p { margin-top: 20px; font-size: 19px; line-height: 1.52; color: var(--field-muted); max-width: 52ch; }
.deep-copy .adds { margin-top: 24px; font-weight: 650; color: var(--field-ink); }
.deep-copy .adds + .ticks { margin-top: 14px; }
.deep-copy .deal { color: var(--field-ink); font-weight: 550; }
.deep-copy .origin { font-size: 16.5px; }
.deep-copy .origin a { color: var(--field-ink); font-weight: 600; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 550; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.36em; width: 14px; height: 8px;
  border-left: 3px solid var(--field-tick); border-bottom: 3px solid var(--field-tick); transform: rotate(-45deg);
}

.ledger {
  margin: 0; padding: 0;
  background: var(--panel); color: var(--ink);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px -36px var(--field-shadow);
}
.ledger figcaption {
  padding: 14px 20px; border-bottom: 1px solid var(--rule);
  font: 600 14px/1 var(--display); color: var(--muted); letter-spacing: 0;
}
.ledger ol { list-style: none; margin: 0; padding: 8px 0; }
.row {
  display: grid; grid-template-columns: 4px minmax(0, 1fr); column-gap: 14px;
  padding: 11px 20px 11px 16px;
}
.row::before { content: ""; grid-row: 1 / span 2; border-radius: 2px; background: var(--rule); }
.row .who { grid-column: 2; font: 550 12.5px/1.3 var(--mono); color: var(--muted); }
.row .what { grid-column: 2; margin-top: 3px; font-size: 15.5px; line-height: 1.42; }
.row.task::before { background: var(--tether); }
.row.memory::before, .row.map::before { background: var(--teal); }
.row.mail::before { background: var(--periwinkle); }
.row.ask { background: var(--ask); }
.row.ask::before { background: var(--signal-deep); }
.row.ask .who { color: var(--ask-ink); }
.verdicts { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.verdicts .yes, .verdicts .no { padding: 4px 12px; border-radius: 6px; font: 600 12.5px/1.3 var(--body); }
.verdicts .yes { background: var(--ink); color: var(--paper); }
.verdicts .no { border: 1px solid var(--ink); }
.verdicts .where { margin-left: 6px; font-size: 13px; color: var(--ask-ink); }

/* the console tour: one framed screen at a time, chosen by the tabs above it, with the phone
   overlapping the frame's corner. The tabs are radio buttons, so it works with scripts off. */
.tour-box { position: relative; margin-top: 36px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs label {
  padding: 10px 18px; border: 1px solid var(--rule); border-radius: 10px 10px 0 0; border-bottom: 0;
  background: var(--panel); color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer;
}
.tabs label:hover { color: var(--ink); }
#shot-board:checked ~ .tabs label[for="shot-board"],
#shot-mail:checked ~ .tabs label[for="shot-mail"],
#shot-map:checked ~ .tabs label[for="shot-map"],
#shot-know:checked ~ .tabs label[for="shot-know"],
#shot-models:checked ~ .tabs label[for="shot-models"],
#shot-reason:checked ~ .tabs label[for="shot-reason"],
#shot-research:checked ~ .tabs label[for="shot-research"] { background: #0c0f14; border-color: #0c0f14; color: #ffffff; }
#shot-board:focus-visible ~ .tabs label[for="shot-board"],
#shot-mail:focus-visible ~ .tabs label[for="shot-mail"],
#shot-map:focus-visible ~ .tabs label[for="shot-map"],
#shot-know:focus-visible ~ .tabs label[for="shot-know"],
#shot-models:focus-visible ~ .tabs label[for="shot-models"],
#shot-reason:focus-visible ~ .tabs label[for="shot-reason"],
#shot-research:focus-visible ~ .tabs label[for="shot-research"] { outline: 3px solid var(--signal-deep); outline-offset: 2px; }
.frame {
  border-radius: 0 14px 14px 14px; overflow: hidden; background: #0c0f14; border: 1px solid #0c0f14;
  box-shadow: 0 50px 90px -50px rgba(12, 15, 20, 0.75);
}
.frame-top { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: #07090c; }
.frame-top i { width: 11px; height: 11px; border-radius: 50%; background: #2a313d; }
.frame-top span { margin-left: 12px; font: 500 12.5px/1 var(--mono); color: #7d8696; }
.frame img { display: none; width: 100%; height: auto; }
#shot-board:checked ~ .frame img[data-shot="board"],
#shot-mail:checked ~ .frame img[data-shot="mail"],
#shot-map:checked ~ .frame img[data-shot="map"],
#shot-know:checked ~ .frame img[data-shot="know"],
#shot-models:checked ~ .frame img[data-shot="models"],
#shot-reason:checked ~ .frame img[data-shot="reason"],
#shot-research:checked ~ .frame img[data-shot="research"] { display: block; }
.tour-text { margin-top: 22px; max-width: 60ch; min-height: 3.2em; font-size: 19px; line-height: 1.45; }
.tour-text p { display: none; }
#shot-board:checked ~ .tour-text p[data-shot="board"],
#shot-mail:checked ~ .tour-text p[data-shot="mail"],
#shot-map:checked ~ .tour-text p[data-shot="map"],
#shot-know:checked ~ .tour-text p[data-shot="know"],
#shot-models:checked ~ .tour-text p[data-shot="models"],
#shot-reason:checked ~ .tour-text p[data-shot="reason"],
#shot-research:checked ~ .tour-text p[data-shot="research"] { display: block; }
.tour-phone { position: absolute; right: -12px; bottom: -6px; width: 232px; margin: 0; }
.tour-phone img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(12, 15, 20, 0.5)); }
.tour-phone figcaption { margin-top: 10px; font-size: 14px; line-height: 1.35; color: var(--muted); text-align: center; }
.tour-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (min-width: 1021px) {
  .tour .frame { margin-right: 150px; }
  .tour .tour-text { margin-right: 260px; }
}

/* what you cannot do without it: an opening, then six chapters. Each chapter is a heading with its
   cord, one worked example in a panel, and the features as short entries beside it. */
.jump { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.jump a {
  padding: 9px 16px; border: 1px solid var(--ink); border-radius: 999px;
  color: var(--ink); font-size: 15px; font-weight: 550; text-decoration: none;
}
.jump a:hover { background: var(--ink); color: var(--paper); }

.chapter { padding-top: clamp(56px, 6.5vw, 92px); }
.chapter-head {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: center;
  padding-top: 32px; border-top: 3px solid var(--ink);
}
.chapter:nth-of-type(4n + 1) .chapter-head { border-top-color: var(--teal); }
.chapter:nth-of-type(4n + 2) .chapter-head { border-top-color: var(--signal-deep); }
.chapter:nth-of-type(4n + 3) .chapter-head { border-top-color: var(--periwinkle); }
.chapter-head img { width: 96px; height: 96px; border-radius: 20px; background: #f1f3f7; border: 1px solid var(--rule); }
.chapter-head h2, .chapter-head h3 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.04; font-weight: 740; letter-spacing: -0.03em; }
.chapter-head p { margin-top: 10px; max-width: 64ch; font-size: 19px; line-height: 1.45; color: var(--muted); }

.chapter-body {
  margin-top: 40px; display: grid; gap: 40px 56px; align-items: start;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}
.chapter-body.flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
.chapter-body.flip .panel { order: 2; }

.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; }
.feats h3, .feats h4 { margin: 0; font: 700 19px/1.2 var(--display); letter-spacing: -0.015em; }
.feats p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* the worked example */
.panel {
  position: sticky; top: 84px; margin: 0;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(12, 15, 20, 0.55);
}
.panel figcaption {
  padding: 14px 20px; border-bottom: 1px solid var(--rule);
  font: 600 14px/1.3 var(--display); color: var(--muted);
}
.panel figcaption code { color: var(--ink); }
.sheet, .board { margin: 0; padding: 6px 0; }
.sheet > div, .board > div {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px;
  padding: 11px 20px; border-bottom: 1px solid var(--rule);
}
.board > div { grid-template-columns: 118px minmax(0, 1fr); }
.sheet > div:last-child, .board > div:last-child { border-bottom: 0; }
.sheet dt, .board dt { font: 550 12.5px/1.5 var(--mono); color: var(--muted); }
.sheet dd, .board dd { margin: 0; font-size: 15.5px; line-height: 1.45; }
.sheet dd code { font-size: 13.5px; }
.sheet .src { display: block; margin-top: 2px; font-size: 13px; color: var(--teal); }
.sheet .left-out { background: var(--ask); }
.sheet .left-out dt { color: var(--ask-ink); }
.board .child dt { padding-left: 14px; }
.board .child dt::before { content: "\2514\00a0"; }
.state { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 6px; font: 600 12px/1.4 var(--body); white-space: nowrap; }
.state.open { background: var(--teal); color: #ffffff; }
.state.wait { background: var(--ask); color: var(--ask-ink); }
.state.done { border: 1px solid var(--rule); color: var(--muted); }
.panel-foot { padding: 12px 20px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); background: var(--paper); }
.panel .row.ask { border-top: 1px solid var(--rule); }
.screens { list-style: none; margin: 0; padding: 16px 20px 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.screens li { padding: 6px 11px; border: 1px solid var(--rule); border-radius: 8px; font-size: 14.5px; background: var(--paper); }

/* The one feature with a measured result: full width, with the figure beside it. */
.item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; align-items: start; }
.item img { width: 132px; height: 132px; border-radius: 20px; background: #f1f3f7; border: 1px solid var(--rule); }
.item.wide {
  margin-top: 40px; grid-template-columns: 132px minmax(0, 1fr) minmax(220px, 300px); gap: 24px 40px;
  padding: clamp(22px, 3vw, 34px); background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
}
.item.wide h3, .item.wide h4 { margin: 0; font: 700 26px/1.14 var(--display); letter-spacing: -0.02em; max-width: 30ch; }
.item.wide .stat { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.item.wide .stat b {
  display: block; margin-bottom: 8px;
  font: 760 76px/0.9 var(--display); letter-spacing: -0.04em; color: var(--teal);
}
.item p { margin-top: 10px; color: var(--muted); }
.tag {
  display: inline-block; margin-left: 6px; padding: 3px 8px; vertical-align: 3px;
  border: 1px solid var(--tether); border-radius: 6px; color: var(--tether);
  font: 600 12px/1 var(--body); letter-spacing: 0;
}
.nudge { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 19px; }
.nudge a { font-weight: 650; margin-left: 6px; }

/* the knowledge engine: what goes wrong with ordinary AI memory and the answer to each, then five
   chapters whose features are split into what they do for a person and what they do for an agent */
.know-inner { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 8vw, 104px) var(--pad); }
.know .section-lede { color: var(--field-muted); max-width: 64ch; }
.defects { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.defect { padding: 26px 28px 28px; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--field-card); }
.defect h3 { font-size: 24px; line-height: 1.14; font-weight: 700; }
.defect .wrong { margin-top: 12px; color: var(--field-muted); }
.defect .right { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--field-line); }
.defect .right b { font-weight: 650; color: var(--field-accent); }
.creed { margin-top: 48px; max-width: 22ch; font: 740 clamp(28px, 3.4vw, 44px)/1.06 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.know .jump a { border-color: var(--field-line); color: var(--field-ink); }
.know .jump a:hover { background: var(--field-ink); color: var(--field-deep); }
.feats.split { align-items: start; }
.feats.split > div { display: grid; gap: 26px; align-content: start; }
.feats .for { margin: 0; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font: 700 15px/1 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.chapter-head .tag { vertical-align: 6px; }

/* The measured comparison. One dot is one test sample, and its colour says what the judge did with
   it, so a count is shown as what it is. The board keeps a dark ink surface in both themes, like the
   console pictures. Three of the four colours are the site's own rope colours (signal yellow,
   periwinkle, teal) and one is a red; the yellow is far lighter than the red, which keeps the two
   apart for colour-blind readers, and every count is also written out underneath. */
.proof {
  --ig-bg: #121722; --ig-card: #1a202c; --ig-line: #2c3647; --ig-ink: #f4f6fa; --ig-muted: #aab4c6;
  --dot-public: #ff5d52; --dot-low: #ffc93c; --dot-careful: #8f9be8; --dot-right: #3b475b; --dot-caught: #2ccaa9;
  position: relative; margin: 52px 0 0; padding: clamp(20px, 3vw, 40px); border-radius: 22px;
  background: var(--ig-bg); color: var(--ig-ink); border: 1px solid var(--ig-line);
  box-shadow: 0 30px 70px -30px rgba(12, 15, 20, 0.6);
}
.proof.lite { margin-top: 36px; }
.proof figcaption h3 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.04; font-weight: 760; letter-spacing: -0.03em; }
.proof figcaption p { margin-top: 12px; max-width: 76ch; font-size: 18px; line-height: 1.5; color: var(--ig-muted); }
.proof a { color: var(--ig-ink); }
.dot-defs { position: absolute; width: 0; height: 0; }
.p-public { fill: var(--dot-public); }
.p-low { fill: var(--dot-low); }
.p-careful { fill: var(--dot-careful); }
.p-right { fill: var(--dot-right); }
.p-caught { fill: var(--dot-caught); }
.dot-key { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--ig-ink); }
.dot-key li { display: flex; align-items: center; gap: 8px; }
.dot-key li::before, .tally dd::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--dot-right); }
.dot-key .k-public::before, .t-public dd::before { background: var(--dot-public); }
.dot-key .k-low::before, .t-low dd::before { background: var(--dot-low); }
.dot-key .k-careful::before, .t-careful dd::before { background: var(--dot-careful); }
.judges { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.judge { padding: 22px 22px 20px; border: 1px solid var(--ig-line); border-radius: 16px; background: var(--ig-card); }
.judge-name { font-size: 15px; color: var(--ig-muted); }
.judge-name b { margin-right: 8px; font: 760 28px/1 var(--display); letter-spacing: -0.02em; color: var(--ig-ink); }
.bands { margin-top: 8px; }
.band-name { margin: 14px 0 6px; font: 600 13.5px/1.2 var(--body); color: var(--ig-muted); }
.band-name b { margin-left: 6px; color: var(--ig-ink); font: 700 15px/1 var(--display); }
.dots { display: block; width: 100%; height: auto; }
.tally { --big: clamp(52px, 6vw, 84px); margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--ig-line); display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 14px; align-items: start; }
.tally dt { height: var(--big); display: flex; align-items: flex-end; font: 780 clamp(28px, 3vw, 40px)/1 var(--display); letter-spacing: -0.04em; color: var(--ig-ink); }
.tally .t-public dt { font-size: var(--big); line-height: 0.8; }
.tally dd { margin: 8px 0 0; display: flex; gap: 7px; align-items: baseline; font-size: 13.5px; line-height: 1.35; color: var(--ig-muted); }
.tally dd::before { width: 9px; height: 9px; }
.proof-read { margin-top: 22px; max-width: 92ch; font-size: 17px; line-height: 1.5; color: var(--ig-ink); }
.proof-row { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.proof-row .ig:first-child { grid-column: 1 / -1; }
.ig { padding: 22px; border: 1px solid var(--ig-line); border-radius: 16px; background: var(--ig-card); display: flex; flex-direction: column; }
.ig h4 { margin: 0; font: 700 20px/1.2 var(--display); letter-spacing: -0.015em; color: var(--ig-ink); }
.ig p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ig-muted); }
.ig .ig-foot { margin-top: auto; padding-top: 16px; font-size: 14.5px; }
.ig-plain { background: transparent; }
.action-strips { margin-top: 4px; }
.bars { margin: 18px 0 0; display: grid; gap: 14px; }
.bars dt { font: 600 14.5px/1.2 var(--body); color: var(--ig-muted); }
.bars dd { margin: 6px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.track { display: block; height: 14px; border-radius: 4px; background: #232c3b; overflow: hidden; }
.fill { display: block; height: 100%; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--dot-caught); }
.other .fill { background: #6f7b90; }
.fill.p093 { width: 9.3%; }
.fill.p1000 { width: 100%; }
.bars dd b { min-width: 3.6em; text-align: right; font: 760 24px/1 var(--display); letter-spacing: -0.02em; color: var(--ig-ink); white-space: nowrap; }
.proof-foot { margin-top: 22px; max-width: 120ch; font-size: 14px; line-height: 1.5; color: var(--ig-muted); }
.proof-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ig-wide { grid-column: 1 / -1; }
.pair { margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pair > div { padding: 16px 18px; border: 1px solid var(--ig-line); border-radius: 14px; border-top: 3px solid var(--dot-caught); background: #141a24; }
.pair > .other { border-top-color: #6f7b90; }
.pair dt { font: 780 clamp(44px, 5vw, 72px)/0.95 var(--display); letter-spacing: -0.045em; color: var(--ig-ink); white-space: nowrap; }
.pair dt small { margin-left: 4px; font-size: 0.32em; font-weight: 700; letter-spacing: -0.01em; }
.ig-wide .pair dt { font-size: clamp(36px, 4.2vw, 60px); }
.pair > div { min-width: 0; }
.pair dd { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--ig-muted); }
.levels { margin: 18px 0 0; display: grid; gap: 14px; }
.levels dt { font: 600 14.5px/1.2 var(--body); color: var(--ig-muted); }
.levels dd { margin: 6px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.levels dd + dd { margin-top: 5px; }
.levels .track { height: 10px; }
.levels dd b { min-width: 2.2em; text-align: right; font: 700 16px/1 var(--display); color: var(--ig-ink); }
.levels .other .fill { background: #6f7b90; }
.fill.p488 { width: 48.8%; } .fill.p681 { width: 68.1%; } .fill.p692 { width: 69.2%; } .fill.p752 { width: 75.2%; }
.fill.p792 { width: 79.2%; } .fill.p860 { width: 86%; } .fill.p940 { width: 94%; } .fill.p946 { width: 94.6%; } .fill.p992 { width: 99.2%; }
.chips { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.chips li { padding: 10px 14px; border-radius: 10px; background: #141a24; border: 1px solid var(--ig-line); font-size: 14.5px; line-height: 1.4; color: var(--ig-muted); }
.chips b { color: var(--ig-ink); font: 760 17px/1 var(--display); letter-spacing: -0.01em; }
.doc .proof a, .doc .proof b { color: var(--ig-ink); }
.doc .proof { margin-top: 30px; }
/* the home page's comparison: four figures and the way to the full benchmark */
.proof-stats { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.proof-stats li { padding: 16px 18px; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--field-card); font-size: 15px; line-height: 1.4; color: var(--field-muted); }
.proof-stats b { display: block; margin-bottom: 6px; font: 760 24px/1.05 var(--display); letter-spacing: -0.02em; color: var(--field-ink); }
.jump a.primary { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); font-weight: 650; }
.jump a.primary:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: var(--signal-ink); }

/* the home page's doors: one per subject page */
.doors { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.door {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 18px; align-content: start;
  padding: 22px; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--panel); color: var(--ink); text-decoration: none;
}
.door img { grid-row: 1 / span 3; width: 76px; height: 76px; border-radius: 16px; background: #f1f3f7; border: 1px solid var(--rule); }
.door h3 { font-size: 21px; line-height: 1.15; font-weight: 700; }
.door p { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.door .go { font-size: 14.5px; font-weight: 600; color: var(--tether); text-decoration: underline; text-underline-offset: 3px; }
.door:hover { border-color: var(--ink); }

/* a subject page: chapters moved off the home page, under a headline */
.subject > .chapter:first-child { padding-top: clamp(40px, 5vw, 64px); }
.subject > .deep:first-child { margin-top: 0; }
.more { padding-bottom: clamp(56px, 7vw, 96px); }
.more > h2 { font-size: clamp(26px, 2.8vw, 36px); }
.foot-pages { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.foot-pages a { color: var(--ink); }
.panel-foot a, .bench a { color: inherit; }
.guard .creed { max-width: none; }
.guard .creed span { display: block; }

/* a second kind of page: a headline band, then long-form text with tables (the benchmark page) */
.page-hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(28px, 4vw, 56px) var(--pad) clamp(48px, 6vw, 84px); }
.page-hero h1 { max-width: 22ch; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; font-weight: 760; letter-spacing: -0.035em; text-wrap: balance; }
.page-hero .lede { margin-top: 22px; max-width: 64ch; font-size: clamp(18px, 1.45vw, 20px); line-height: 1.5; color: var(--field-muted); }
.crumb { margin-bottom: 18px; font-size: 14.5px; color: var(--field-muted); }
.crumb a { color: var(--field-ink); }
.doc .band { padding-top: clamp(44px, 5vw, 72px); }
.doc .band > p, .doc .band > ul { margin-top: 18px; max-width: 72ch; font-size: 18px; line-height: 1.55; color: var(--muted); }
.doc .band > ul { padding-left: 22px; display: grid; gap: 10px; }
.doc b { color: var(--ink); font-weight: 650; }
.doc a { color: var(--tether); }
.doc .compare tbody th { width: 46%; }
.doc + .closing { margin-top: clamp(56px, 7vw, 96px); }
.closing .team-line { max-width: 60ch; font-size: 18px; }

/* the story */
.story-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
.story h2 { max-width: 16ch; }
.story-copy p { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--field-muted); max-width: 56ch; }
.story-copy .byline { margin-top: 28px; font-size: 15.5px; }
.story-copy .byline a { color: var(--field-ink); font-weight: 600; margin-left: 4px; }
.quotes { display: grid; gap: 14px; align-self: center; }
.quotes-title { font-size: 14.5px; color: var(--field-muted); }
.quotes blockquote {
  margin: 0; padding: 20px 22px; border-radius: 4px 16px 16px 16px;
  background: var(--field-card); border: 1px solid var(--field-line);
  font: 500 17px/1.45 var(--body); color: var(--field-ink);
}
.quotes blockquote:nth-of-type(2) { margin-left: 26px; border-radius: 16px 4px 16px 16px; }

/* three readers */
.reason-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.reason { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.reason img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.reason-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.reason h3 { font-size: 23px; line-height: 1.14; font-weight: 700; }
.reason ul { margin: 16px 0 22px; padding: 0 0 0 18px; }
.reason li { margin-top: 9px; font-size: 16px; }
.reason li::marker { color: var(--teal); }
.textlink { margin-top: auto; color: var(--tether); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body:has(#p-hobbit:checked) .reason[data-reason="hobbit"],
body:has(#p-vulcan:checked) .reason[data-reason="vulcan"],
body:has(#p-hooligan:checked) .reason[data-reason="hooligan"] { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.plain-truth { margin-top: 24px; padding: 22px 26px; border-left: 4px solid var(--teal); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; max-width: 880px; }
.plain-truth h3 { font-size: 19px; }
.plain-truth p { margin-top: 8px; font-size: 16px; }

/* editions */
.plans { margin-top: 38px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan { padding: 30px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; font-weight: 700; }
.price { margin-top: 12px; font-size: 16px; color: var(--muted); }
.price b { font: 760 46px/1 var(--display); letter-spacing: -0.035em; color: var(--ink); margin-right: 6px; }
.plan-for { margin: 14px 0 24px; font-size: 16px; }
.plan .button { margin-top: auto; }
body:has(#p-all:checked) .plan[data-plan="premium"],
body:has(#p-vulcan:checked) .plan[data-plan="premium"],
body:has(#p-hobbit:checked) .plan[data-plan="free"],
body:has(#p-hooligan:checked) .plan[data-plan="free"],
body:has(#p-team:checked) .plan[data-plan="enterprise"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }

.table-wrap { margin-top: 30px; overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font: 700 17px/1.2 var(--display); background: var(--paper); }
.compare tbody th { font-weight: 500; width: 40%; }
.compare td.y { color: var(--teal); font-weight: 650; }
.compare td.n { color: var(--no); }
.helper-note { margin-top: 22px; padding: 22px 26px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); max-width: 920px; }
.helper-note h3 { font-size: 19px; }
.helper-note p { margin-top: 8px; font-size: 16px; }

/* teams */
.teams-art {
  max-width: 1760px; margin: 0 auto;
  height: clamp(220px, 28vw, 380px);
  background: url("/assets/img/anchor.webp?v=b503ae4a9e65") right 22% / min(100%, 1600px) auto no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
.teams-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; padding-top: 12px; }
.teams .section-lede { color: var(--field-muted); }
.claims { margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 34px; }
.claims dt { font: 700 20px/1.2 var(--display); letter-spacing: -0.01em; }
.claims dd { margin: 8px 0 0; font-size: 16px; color: var(--field-muted); }

.contact { padding: 28px; background: var(--panel); color: var(--ink); border-radius: 16px; display: grid; gap: 16px; box-shadow: 0 40px 80px -36px rgba(5, 7, 12, 0.9); }
.contact h3 { font-size: 24px; font-weight: 700; }
.contact label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 550; }
.contact input, .contact select, .contact textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--rule); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--body);
}
.contact textarea { resize: vertical; }
.contact input:focus-visible, .contact select:focus-visible, .contact textarea:focus-visible { outline: 3px solid var(--tether); outline-offset: 1px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
.form-note { font-size: 14px; color: var(--muted); }
.contact .form-result { margin-top: 0; }

/* benchmarks, questions */
.bench-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bench.first { border-style: solid; border-color: var(--teal); background: var(--panel); }
.bench .pending.done { background: var(--teal); color: #ffffff; }
.bench { padding: 26px; border: 2px dashed var(--rule); border-radius: var(--radius); }
.bench h3 { margin-top: 12px; font-size: 21px; font-weight: 700; }
.bench p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.bench .pending { margin: 0; display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--ask); color: var(--ask-ink); font-size: 13px; font-weight: 600; }

.faq-list { margin-top: 30px; max-width: 880px; border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { padding: 20px 36px 20px 0; cursor: pointer; list-style: none; position: relative; font: 680 19px/1.3 var(--display); letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 26px/1 var(--body); color: var(--teal); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 0 22px; max-width: 68ch; color: var(--muted); }

/* ---- the close -------------------------------------------------------------------------- */

.closing {
  position: relative; overflow: hidden; margin-top: clamp(64px, 9vw, 120px);
  background: linear-gradient(180deg, var(--field) 0, var(--field-deep) 100%);
  color: var(--field-ink);
}
.closing::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  right: max(0px, calc((100% - 1760px) / 2)); width: min(56%, 986px);
  background: url("/assets/img/knot.webp?v=02af46d52729") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40%);
  mask-image: linear-gradient(to right, transparent 0, #000 40%);
}
.closing-inner { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 8vw, 112px) var(--pad); }
.closing h2 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1; font-weight: 760; letter-spacing: -0.035em; max-width: 14ch; text-wrap: balance; }
.join.wide { max-width: 600px; margin-top: 30px; }
.plan-pick { border: 0; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.plan-pick label, .check { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--field-ink); cursor: pointer; }
.plan-pick input, .check input { width: 18px; height: 18px; accent-color: var(--signal); }
.check { margin-top: 14px; }
.team-line { margin-top: 26px; color: var(--field-muted); }
.team-line a { color: var(--field-ink); }

.foot { max-width: var(--wrap); margin: 0 auto; padding: 44px var(--pad) 56px; display: grid; gap: 6px; }
.foot .wordmark { font-size: 22px; }
.foot .wordmark .dot { color: var(--teal); }
.tagline { color: var(--muted); }
.foot-note, .foot-links { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* ---- the small pages -------------------------------------------------------------------- */

.single { min-height: 100vh; display: grid; place-items: center; padding: var(--pad);
  background: linear-gradient(180deg, var(--field) 0, var(--field-deep) 100%); color: var(--field-ink); }
.single-box { max-width: 620px; }
.single h1 { margin-top: 26px; font-size: clamp(36px, 5vw, 56px); line-height: 1.02; font-weight: 750; letter-spacing: -0.03em; }
.single p { margin-top: 18px; font-size: 19px; color: var(--field-muted); }
.single .button { margin-top: 28px; }
.single [data-kind], .single [data-why] { display: none; }
.single [data-kind].on, .single [data-why].on { display: block; }

/* ---- the example session plays once, when the page opens --------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-art { animation: settle 1400ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  @keyframes settle {
    from { opacity: 0; transform: translateX(28px) scale(1.03); }
    to { opacity: 1; transform: none; }
  }
}

/* ---- narrower screens ------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero { min-height: 0; padding-bottom: 0; }
  .hero-copy { max-width: 680px; }
  .hero-art {
    position: relative; width: auto; height: 300px; margin: 36px calc(var(--pad) * -1) 0;
    background-position: 78% center;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
  }
}
/* The nine links need about 1120px, which a 1280px window has (a full-HD laptop at 150% scaling is
   one). Below 1260px the menu button takes over. */
@media (max-width: 1259px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .menu { display: block; }
}
@media (max-width: 1020px) {
  .today, .deep-inner, .story-inner, .teams-inner { grid-template-columns: minmax(0, 1fr); }
  .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-body, .chapter-body.flip { grid-template-columns: minmax(0, 1fr); }
  .defects { grid-template-columns: minmax(0, 1fr); }
  .judges, .proof-row, .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .proof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-phone { position: static; width: 220px; margin: 32px auto 0; }
  .chapter-body.flip .panel { order: 0; }
  .chapter .panel { position: static; max-width: 640px; }
  .item.wide { grid-template-columns: 132px minmax(0, 1fr); }
  .item.wide .stat { grid-column: 2; }
  .reason-grid, .plans { grid-template-columns: minmax(0, 1fr); }
  .bench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reason { flex-direction: row; }
  .reason img { width: 40%; aspect-ratio: auto; }
  .closing::after { opacity: 0.35; width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .top { gap: 12px; }
  .status { display: none; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 42px); }
  .hero h1 .now { white-space: normal; }
  .hero-art { height: 240px; background-image: url("/assets/img/knot-960.webp?v=0601b601fcea"); background-size: auto 180%; background-position: 50% 42%; }
  .join-row { flex-direction: column; }
  .pains, .claims, .pair, .feats { grid-template-columns: minmax(0, 1fr); }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair, .proof-stats { grid-template-columns: minmax(0, 1fr); }
  .judge, .ig { padding: 18px 16px; }
  .tabs label { padding: 8px 12px; font-size: 14px; border-radius: 9px; border-bottom: 1px solid var(--rule); }
  .frame { margin-top: 10px; border-radius: 12px; }
  .tour-text { font-size: 17px; }
  .item.wide { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .item.wide h3, .item.wide h4 { font-size: 21px; }
  .item.wide .stat b { font-size: 60px; }
  .bench-grid { grid-template-columns: minmax(0, 1fr); }
  .item img { width: 72px; height: 72px; border-radius: 14px; }
  .chapter-head { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; }
  .chapter-head img { width: 64px; height: 64px; border-radius: 14px; }
  .sheet > div, .board > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .board .child dt { padding-left: 0; }
  .reason { flex-direction: column; }
  .reason img { width: 100%; aspect-ratio: 4 / 3; }
  .quotes blockquote:nth-of-type(2) { margin-left: 0; }
  .button { width: 100%; }
  .button.small { width: auto; padding: 0 12px; font-size: 14px; }
  .chooser label { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 480px) {
  .top .theme { display: none; }
}

/* Past the stage's width the pictures no longer touch the window's edge, so their right edge fades
   out as their left edge already does. */
@media (min-width: 1761px) {
  .hero-art, .closing::after {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 34%, #000 84%, transparent 100%);
  }
  .teams-art {
    -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 9%, #000 30%, #000 88%, transparent 100%), linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, transparent 9%, #000 30%, #000 88%, transparent 100%), linear-gradient(to bottom, #000 62%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
}
