/*
  @CODE-LABEL v1
  id: thirdsinfo-style
  parent: thirdsinfo
  scope: module
  name: Page styling
  does: The whole visual treatment -- paper palette, serif prose measure, the step/clip grid, the deck presentation and its controls, and the phone-width collapse.
  for: Reach for this to change how the page looks. There is no build step and no preprocessor; it is one stylesheet loaded directly.
  reuse: THIS FILE IS IN TWO LAYERS AND THE ORDER IS LOAD-BEARING. Everything outside the `.js-deck` blocks styles the page as STACKED, SCROLLABLE SLIDES -- that is what a reader with no scripting, a crawler, a reader mode and the printer get, and it must stay readable on its own. The `.js-deck` rules, which app.js switches on by putting that class on <html>, are what turn the same markup into one-slide-at-a-time. Never move a base typographic rule inside a `.js-deck` block or the no-script page loses it. Fonts are system stacks on purpose -- the page loads nothing from a third-party origin, so do not introduce a webfont link. Colours are declared once as custom properties at :root; the contrast of --ink-muted on --paper was checked and is the floor, so darken rather than lighten if it changes. THE SLIDE, NOT ITS INNER DIV, IS THE SCROLLER when a slide is taller than the viewport, and app.js resets both scrollTops on every flip -- a slide that opened half-scrolled from the previous one reads as a broken page. The step grid does NOT alternate sides in the deck: alternation reads as rhythm down a scrolling page and as a jump-cut when each slide replaces the last.
  stack: css3, custom properties, grid
  tags: css, layout, responsive, typography, deck
  updated: 2026-09-15
*/

:root {
  --paper: #fbfaf7;
  --paper-alt: #f2f0e9;
  --ink: #1c1b18;
  --ink-muted: #56534b;
  --rule: #ddd8ce;
  --accent: #14496b;
  --accent-soft: #e7eef4;
  --measure: 34rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 4.25rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--serif);
  overflow-wrap: break-word;
}

a { color: var(--accent); }
a:focus-visible,
button:focus-visible,
.slide:focus-visible,
.skip:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.slide:focus { outline: none; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  padding: .75rem 1rem;
  z-index: 40;
}
.skip:focus { left: 0; }

/* ---------- slides, stacked (the no-script base) ---------- */

.slide {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--rule);
}
.slide:first-child { border-top: 0; }

.slide-inner {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
}

.slide-title {
  font: 400 clamp(1.75rem, 4vw, 2.5rem)/1.15 var(--serif);
  letter-spacing: -.015em;
  margin: 0 0 1.25rem;
}

/* A section opener carries more air than a content slide. It used to carry a
   tint as well, to mark the start of a section on a scrolling page; with one
   opener left in the deck that tint read as a single slide flickering a
   different colour, so the paper is now uniform throughout. */
.kind-section-open .slide-title { margin-bottom: 1rem; }

.band-intro {
  max-width: var(--measure);
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

/* The "How it works" opener lists the seven steps; each is a deep link to its
   own slide, which app.js turns into a flip and a no-script reader into a
   scroll. Base layer on purpose -- the list must read without scripting. */
.step-list {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: var(--measure);
}

.step-list li {
  counter-increment: step;
  display: flex;
  gap: .875rem;
  align-items: baseline;
  padding: .625rem 0;
  border-top: 1px solid var(--rule);
}

.step-list li:last-child { border-bottom: 1px solid var(--rule); }

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  font: 600 .75rem/1.4 var(--sans);
  letter-spacing: .1em;
  color: var(--accent);
  flex: 0 0 auto;
}

.step-list a { text-decoration-thickness: 1px; text-underline-offset: .15em; }

.step-list-note {
  color: var(--ink-muted);
  font-size: .9375rem;
}

/* Two stills that belong side by side: a narrow index and the thing it points
   at. The index keeps its own width rather than taking half the column. */
.pair { display: grid; gap: 1.25rem; }

@media (min-width: 40rem) {
  .pair {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    align-items: start;
  }
}

.pair img { max-height: 54vh; width: 100%; object-fit: contain; }

/* A prose slide that carries one graphic: text and figure share the width
   instead of the figure sitting under a narrow reading column. */
.split { display: grid; gap: 2.5rem; }

.glyph { margin: 0; align-self: center; }

.glyph-svg { display: block; width: 100%; height: auto; }

.glyph-eq {
  font: italic 400 96px/1 var(--serif);
  fill: var(--ink);
}

.glyph figcaption {
  font: .875rem/1.5 var(--sans);
  color: var(--ink-muted);
  margin-top: 1rem;
  max-width: 24rem;
}

/* A photograph used as a band, cropped rather than scaled: it sets a tone and
   is not something to study. */
.banner { margin: 2rem 0 0; }

.banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(30vh, calc(100vh - 39rem));
  object-fit: cover;
  object-position: center 38%;
  border-radius: 3px;
}

.banner figcaption {
  font: .75rem/1.5 var(--sans);
  color: var(--ink-muted);
  margin-top: .5rem;
}

/* ---------- the document viewer ---------- */

/* Opens over the deck so a reader can actually read a delivered list. The
   markup is a plain link to the image, so with no scripting the file just
   opens -- these rules only dress the version app.js takes over. */
.zoom { display: block; cursor: zoom-in; }

.zoom-hint {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .15em;
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(16, 18, 20, .93);
}

.viewer-scroll {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 3.5rem 1.5rem;
}

.viewer-img {
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  cursor: zoom-in;
  border-radius: 2px;
}

.viewer.is-zoomed .viewer-img {
  max-width: none;
  max-height: none;
  cursor: grab;
}

.viewer.is-dragging .viewer-img { cursor: grabbing; }

.viewer-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 1;
  font: 600 .75rem/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: .6rem 1rem;
  cursor: pointer;
}

.viewer-close:hover { background: rgba(255, 255, 255, .2); }

.viewer-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  margin: 0;
  text-align: center;
  font: .8125rem/1.4 var(--sans);
  color: rgba(255, 255, 255, .62);
  pointer-events: none;
}

/* The deck behind it must not scroll while the viewer is open. */
.viewer-open, .viewer-open body { overflow: hidden; }

/* The company mark closes the deck: the same file the website serves in its
   header (logo-full-light.png), self-hosted here because the CSP admits no
   external origin. NOTE the SVGs in the website folder are an OLDER mark and
   are not what the site shows -- take the logo from the live header, not from
   whatever is lying beside it. */
.footer-logo {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  margin: 0 0 1.5rem;
}

/* The closing slide is a sign-off, not a paragraph: centre it in deck mode,
   where it is the last thing on screen. */
.js-deck .kind-footer .wrap { text-align: center; }
.js-deck .kind-footer .footer-logo { margin-inline: auto; }
.js-deck .kind-footer .prose p { margin-inline: auto; }

/* ---------- the agreement gate ---------- */

/* THE DECK IS HIDDEN BY CSS, NOT BY SCRIPT. Hiding it in JavaScript would
   leave the whole page readable to anyone with scripting off, which is the
   opposite of a gate. The cost is that with no scripting the page shows only
   the terms -- stated in the <noscript> there. This is a click-through
   agreement, not an access control: the markup is still in the file a reader
   has already downloaded. If the content must be unreadable without consent,
   it has to be served after consent, not revealed after it. */
.deck, .deck-nav, .progress, .wordmark { display: none; }

.agreed .deck { display: block; }
.agreed .wordmark { display: block; }
.agreed .gate { display: none; }

/* Last in the document so the page still opens with its own h1, lifted over
   everything here. */
.gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 3rem 1.5rem;
  background: var(--paper-alt);
}

.gate-inner {
  max-width: 44rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem) 2.75rem;
  box-shadow: 0 1px 2px rgba(20, 24, 28, .05), 0 12px 32px rgba(20, 24, 28, .07);
}

.gate h2 {
  font: 400 clamp(1.5rem, 3.4vw, 2rem)/1.2 var(--serif);
  margin: 0 0 1.5rem;
}

.gate-terms p {
  font-size: .9375rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.gate-terms p:last-child { margin-bottom: 0; }

.gate-agree {
  margin-top: 2rem;
  font: 600 .9375rem/1 var(--sans);
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: .95rem 1.5rem;
  cursor: pointer;
}

.gate-agree:hover { background: #10395400; background: #103954; }

.gate-noscript {
  margin: 1.25rem 0 0;
  font: .875rem/1.5 var(--sans);
  color: var(--ink-muted);
}

/* ---------- deck furniture ---------- */

/* A running wordmark gives every slide the same anchor, the way a deck master
   does. Deck mode only: stacked on a scrolling page it would follow the reader
   down the document and cover the prose. */
.wordmark { display: none; }

.js-deck.agreed .wordmark {
  display: block;
  position: fixed;
  top: 1.75rem;
  left: 2rem;
  margin: 0;
  z-index: 3;
  font: 600 .75rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  pointer-events: none;
}

/* ---------- cover ---------- */

/* The cover carries the artefact the product works on. Single column until
   there is room for the plan to read as an image rather than a thumbnail. */
.cover-hero { margin: 2.5rem 0 0; }

.cover-hero img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(20, 24, 28, .06), 0 8px 24px rgba(20, 24, 28, .07);
}

/* ---------- dense prose ---------- */

/* Merged sections carry three former slides of text. Two columns keep them on
   one screen; the subheads are what makes that scannable rather than a wall. */
.prose-head {
  font: 600 .8125rem/1.4 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.75rem 0 .5rem;
  break-after: avoid;
}

.prose-head:first-child { margin-top: 0; }

.is-dense .prose p { max-width: none; }

/* ---------- title slide ---------- */

.eyebrow {
  font: 600 .8125rem/1.4 var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}

.slide h1 {
  font: 400 clamp(3rem, 9vw, 4.75rem)/1 var(--serif);
  letter-spacing: -.02em;
  margin: 0 0 1.75rem;
}

.lede {
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.45;
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.payoff {
  max-width: var(--measure);
  margin: 0 0 2.25rem;
  padding-left: 1.125rem;
  border-left: 3px solid var(--accent);
}

.status-note {
  max-width: 40rem;
  margin: 0;
  font-size: .9375rem;
  color: var(--ink-muted);
}

/* ---------- steps ---------- */

.step-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.step-num,
.section-label {
  font: 600 .75rem/1.4 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .5rem;
}

.step-text p { max-width: var(--measure); }

.aside {
  font-size: .9375rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  padding-top: .875rem;
  margin-top: 1.25rem;
}

/* ---------- clips ---------- */

.clip { margin: 0; }
.clip.is-missing { display: none; }

.clip-video,
.clip img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.clip figcaption {
  font: .875rem/1.5 var(--sans);
  color: var(--ink-muted);
  margin-top: .625rem;
}

/* ---------- prose slides ---------- */

.prose { max-width: 42rem; }
.prose p { max-width: var(--measure); }
.prose p:first-child { margin-top: 0; }

.note {
  font-size: .9375rem;
  color: var(--ink-muted);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: .875rem 1.125rem;
  margin: 0 0 1.5rem;
  max-width: 40rem;
}

.kind-footer .prose p {
  max-width: 44rem;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ---------- the deck, switched on by app.js ---------- */

.js-deck,
.js-deck body { height: 100%; }

.js-deck body { overflow: hidden; }

.js-deck .deck {
  position: fixed;
  inset: 0;
}

.js-deck .slide {
  position: absolute;
  inset: 0;
  display: none;
  border-top: 0;
  /* The SLIDE scrolls, not its inner div -- see the label. */
  overflow-y: auto;
  padding: 3.5rem 1.5rem calc(var(--nav-h) + 1.5rem);
}

.js-deck .slide.is-current {
  display: flex;
  align-items: center;
  animation: slide-in .22s ease-out both;
}

.js-deck .slide-inner { margin: auto; }

/* A text-only slide centres a reading column rather than pinning prose to
   the left of a 68rem block with the other half empty. The step slides keep
   the full width, because they carry a clip in the second column. */
.js-deck .kind-prose .slide-inner,
.js-deck .kind-section-open .slide-inner,
.js-deck .kind-footer .slide-inner { max-width: 46rem; }

@keyframes slide-in {
  from { opacity: 0; transform: translateY(.5rem); }
  to   { opacity: 1; transform: none; }
}

/* ---------- deck controls ---------- */

.deck-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: linear-gradient(to top, var(--paper) 62%, rgba(251, 250, 247, 0));
  z-index: 30;
}

.nav-btn {
  font: 1.25rem/1 var(--sans);
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-btn:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.nav-btn:disabled {
  opacity: .32;
  cursor: default;
}

.nav-count {
  font: .8125rem/1 var(--sans);
  letter-spacing: .06em;
  color: var(--ink-muted);
  margin: 0;
  min-width: 4.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.deck-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rule);
  z-index: 30;
}
.deck-progress > div {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .22s ease-out;
}

/* ---------- wide ---------- */

@media (min-width: 900px) {
  .step-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 3.5rem;
  }

  /* Set by app.js when a clip's sources all failed: with nothing in the
     second column, the prose should use the full measure rather than sit in
     a narrow column beside a gap. */
  /* A step whose figure is the artefact itself — a delivered document — reads
     better across the full slide than in a column beside the prose. */
  .js-deck .kind-step.is-wide .slide-inner { max-width: 72rem; }
  .kind-step.is-wide .step-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }

  /* Two columns of prose across the top buy the document the height it needs
     to be read rather than merely shown. */
  .js-deck .kind-step.is-wide .step-text { columns: 2; column-gap: 3rem; }
  .js-deck .kind-step.is-wide .step-text p { max-width: none; break-inside: avoid; }
  .js-deck .kind-step.is-wide .step-num,
  .js-deck .kind-step.is-wide .slide-title { column-span: all; }

  /* The document has to fit the slide whole -- a deliverable cut off at the
     bottom edge reads as a page that failed to load. */
  .js-deck .kind-step.is-wide .clip img {
    max-height: min(49vh, calc(100vh - 30rem));
    width: auto;
    max-width: min(100%, 62rem);
    margin-inline: auto;
  }

  .step-grid.is-textonly { grid-template-columns: minmax(0, 1fr); }
  .step-grid.is-textonly .step-text p { max-width: 40rem; }

  /* The cover reads as a spread: what it is on the left, what it works on to
     the right. */
  .js-deck .kind-title .slide-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: center;
    max-width: 68rem;
  }

  .js-deck .kind-title .cover-hero { margin: 0; }

  /* A merged section gets the full width and two columns rather than a narrow
     column that runs off the bottom of the slide. */
  .js-deck .kind-prose.is-dense .slide-inner { max-width: 62rem; }

  .js-deck .kind-prose.has-figure .slide-inner { max-width: 64rem; }

  .kind-prose.has-figure .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    gap: 3.5rem;
    align-items: center;
  }

  .js-deck .kind-prose.is-dense .prose {
    max-width: none;
    columns: 2;
    column-gap: 3rem;
  }

  .js-deck .kind-prose.is-dense .prose p { break-inside: avoid; }
}

/* ---------- narrow ---------- */

@media (max-width: 899px) {
  .step-text { order: 2; }
  .clip { order: 1; }
}

@media (max-width: 480px) {
  .slide { padding: 2.5rem 1.125rem; }
  .js-deck .slide { padding: 2.5rem 1.125rem calc(var(--nav-h) + 1rem); }
  .nav-count { min-width: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- print: the whole deck, in order ---------- */

@media print {
  .js-deck body { overflow: visible; }
  .js-deck .deck { position: static; }
  .js-deck .slide {
    position: static;
    display: block !important;
    animation: none;
    overflow: visible;
    padding: 1.5rem 0;
    page-break-after: always;
    break-after: page;
  }
  .deck-nav,
  .deck-progress,
  .clip { display: none; }
}
