/* static/microsite.css — the Impact Community microsite.
 *
 * Sits on top of /design-system/styles.css and uses only its tokens. No raw
 * hex anywhere in this file: if a colour is needed that the system does not
 * have, that is a conversation about the system, not a local exception.
 *
 * TYPOGRAPHY AND GROUND MATCH THE SITE THIS REPLACES, not design system v2.0.
 *
 * Reversed 2026-09-22 after measuring the original rather than remembering it:
 * body is #141413 THROUGHOUT (not white below a dark hero), every heading is
 * Oswald 300 Light in TITLE CASE at 48/36/28px, and body copy is Inter in
 * white. The system says Oswald is always uppercase at one display size per
 * view; this is a prospect-facing marketing page reproducing an existing
 * design, so the original wins on both counts.
 *
 * Everything is still expressed in system tokens — the ground genuinely is
 * --surface-inverse, and the accent is --w50-blue-bright, which is within a
 * hair of the original's #00C0FF. Weight 300 is written literally because the
 * system tokenises 400 upward and has no --fw-light.
 *
 * No JavaScript runs on this page — the CSP sets script-src 'none' — so
 * anything interactive here is CSS or a native element. Smooth scrolling,
 * the responsive rail and focus states are all CSS.
 */

/* ---- shell ---------------------------------------------------------------- */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--surface-inverse);
  color: var(--text-inverse);
  font-family: var(--font-sans);
}

/* Rules and card edges on a dark ground. --border-subtle is #EDEDED, which is
 * a hairline on white and a glare on Brand Black; the warm dark inks read as
 * the same weight of line against this ground. */
:root {
  --ic-rule:        var(--w50-ink-800);
  --ic-rule-strong: var(--w50-ink-700);
  --ic-dim:         var(--w50-ink-300);
  --ic-dimmer:      var(--w50-ink-400);
  --ic-accent:      var(--w50-blue-bright);
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--surface-inverse);
  color: var(--text-inverse);
  padding: var(--space-3) var(--space-4);
  z-index: 10;
}
.skip:focus { left: var(--space-4); top: var(--space-4); }

:where(a, audio, iframe):focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* ---- the rail ------------------------------------------------------------- */
/* Dark, fixed, and continuous with the hero so the two read as one field —
 * which is how the site this replaces is composed. */

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: var(--surface-inverse);
  color: var(--text-inverse);
  padding: var(--space-8) var(--space-6);
  overflow-y: auto;
  z-index: 5;
}

.rail-logo { display: block; margin-bottom: var(--space-10); }

.rail ul { list-style: none; margin: 0; padding: 0; }
.rail li + li { margin-top: var(--space-1); }

.rail a {
  display: block;
  padding: var(--space-2) var(--space-3);
  margin-left: calc(var(--space-3) * -1);
  color: var(--w50-ink-400);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  border-left: var(--border-thin) solid transparent;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.rail a:hover { color: var(--text-inverse); border-left-color: var(--ic-accent); }

/* The section you are currently reading. Driven by aria-current, which site.js
 * sets — styling the semantic attribute rather than a parallel class means
 * there is one source of truth and a screen reader hears what the eye sees. */
.rail a[aria-current] {
  color: var(--text-inverse);
  border-left-color: var(--ic-accent);
}

/* The disclosure button. Created by site.js, so with no JavaScript it does not
 * exist and the nav below simply stays open. */
.rail-toggle { display: none; }

main { margin-left: 240px; }

@media (max-width: 900px) {
  .rail {
    position: sticky;
    top: 0;
    width: auto;
    padding: var(--space-4) var(--space-5);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--space-4);
    border-bottom: var(--border-thin) solid var(--ic-rule);
  }
  .rail-logo { margin-bottom: 0; }

  /* Shown only when site.js has created it — see .has-toggle. */
  .rail.has-toggle .rail-toggle {
    display: block;
    width: 44px;            /* a real touch target, not a 24px glyph */
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: relative;
  }
  .rail-toggle:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

  /* Three bars from one element: the middle is the span, the outer two are its
   * pseudo-elements. They cross into an X when open, so the control says what
   * pressing it will do. */
  .rail-toggle span,
  .rail-toggle span::before,
  .rail-toggle span::after {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    background: var(--text-inverse);
    transition: transform var(--dur-normal) var(--ease-out),
                opacity var(--dur-fast) var(--ease-out);
  }
  .rail-toggle span { top: 21px; }
  .rail-toggle span::before { content: ''; left: 0; top: -7px; }
  .rail-toggle span::after  { content: ''; left: 0; top: 7px; }

  .rail.is-open .rail-toggle span { background: transparent; }
  .rail.is-open .rail-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .rail.is-open .rail-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

  /* Collapsed only when a button exists to reopen it. Without JavaScript the
   * nav is a plain list and stays visible. */
  .rail.has-toggle ul { display: none; }
  .rail.has-toggle.is-open ul { display: block; }
  .rail ul { grid-column: 1 / -1; }
  .rail li + li { margin-top: 0; }
  .rail a { padding: var(--space-3); margin-left: 0; }

  main { margin-left: 0; }
}

/* Every auto-fit/auto-fill grid below uses minmax(min(Npx, 100%), 1fr) rather
 * than minmax(Npx, 1fr). A bare minimum wider than the container does not
 * shrink — it overflows, and the whole page scrolls sideways. Measured at a
 * 280px viewport: the quote grid computed a 280px column inside a 240px
 * container. min() lets the track collapse to the container on a small phone
 * and behave normally everywhere else.
 */

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

.sec {
  padding: var(--space-16) var(--space-12);
}

/* NO border on the section itself.
 *
 * It used to carry one, and so does .sec h2 below — so every boundary drew
 * TWO parallel rules a few pixels apart, which reads as a rendering fault.
 * The heading's rule is the one that stays: the design system calls for a 1px
 * rule ABOVE a section header, tying the line to the heading rather than to
 * an invisible box edge, and it lands in the right place when a section's
 * first element is not its heading. */

/* Cap the MEASURE, not the section.
 *
 * Without this, a heading and the Brand Black rule above it stretch to
 * whatever the window is — 1264px at a 1600px viewport, and past 1600px on a
 * wide monitor, which is what made the page read as sparse and unfinished.
 * The design system puts body copy at 60–75ch for the same reason; a rule
 * three times that long is the same mistake in a different element.
 *
 * Applied to the section's CHILDREN rather than to .sec itself, so the hero's
 * dark ground and the footer still span the full width while their contents
 * stay in the measure. Content stays left-aligned against the rail rather
 * than centring in the remaining space, which is how the site this replaces
 * is composed. */
.sec > * { max-width: 1160px; }

@media (max-width: 700px) {
  .sec { padding: var(--space-10) var(--space-5); }
}

/* Lines, not boxes: a Brand Black rule above each section heading. */
/* Oswald 300, title case, 36px — matching the original exactly. */
.sec h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.15;
  color: var(--text-inverse);
  margin: 0 0 var(--space-5);
  padding-top: var(--space-5);
  border-top: var(--border-thin) solid var(--ic-rule-strong);
  text-wrap: balance;
}

.lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ic-dim);
  max-width: 68ch;
  margin: 0 0 var(--space-5);
}

.sub {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ic-dimmer);
  margin: var(--space-10) 0 var(--space-4);
}

.pending {
  font-size: 14px;
  color: var(--ic-dimmer);
  border-left: var(--border-thick) solid var(--ic-rule-strong);
  padding-left: var(--space-4);
  margin: 0;
}

/* ---- hero ----------------------------------------------------------------- */

.sec-hero {
  padding-block: var(--space-20);
}

.sec-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: var(--tracking-display, 0.01em);
  color: var(--text-inverse);
  margin: 0 0 var(--space-5);
  text-wrap: balance;
}

.sec-hero .standfirst {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ic-dim);
  max-width: 54ch;
  margin: 0;
}

/* Two layouts, and the solo one is the default because it is what ships.
 * With media, copy and player sit side by side; without, the copy claims the
 * full measure rather than leaving a hole where a video used to be. */
.hero--media .hero-copy { max-width: none; }
@media (min-width: 1000px) {
  .hero--media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: var(--space-12);
    align-items: center;
  }
  .hero--media .quotes { grid-column: 1 / -1; }
}
.hero--solo .hero-copy { max-width: 72ch; }

.hero-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-md);
  display: block;
}

/* ---- quotes --------------------------------------------------------------- */

.quotes { margin-top: var(--space-12); }

.quotes-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ic-accent);
  margin: 0 0 var(--space-5);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-8);
}
.quote-grid--one { grid-template-columns: minmax(0, 60ch); }

.quote { margin: 0; }

.quote blockquote {
  margin: 0 0 var(--space-3);
  font-size: 17px;
  line-height: 1.5;
  /* The rule sits on the quote rather than a box around it. */
  border-left: var(--border-thin) solid var(--ic-accent);
  padding-left: var(--space-5);
}

.quote figcaption {
  font-size: 13px;
  line-height: 1.45;
  padding-left: var(--space-5);
}
.quote figcaption span { display: block; }

/* Inside the dark hero the quote inherits inverse text; elsewhere it does not. */
/* One ground means one treatment — the hero/body split these overrode is gone. */
.quote blockquote { color: var(--w50-ink-200); }
.quote figcaption { color: var(--ic-dimmer); }

/* ---- members -------------------------------------------------------------- */
/* 43 entries, sorted by company. A grid rather than CSS columns: columns break
 * an entry across a boundary, and a name separated from its title is the one
 * failure this list cannot have. */

/* Four columns at full width, not three.
 *
 * Measured against the real roster on 2026-09-23: 260 people at 220
 * companies. Three columns of the old type ran 8,972px — 64% of the entire
 * page. Four columns with this type run 5,832px, inside a 700px scroller.
 *
 * Denser type earns its keep twice over here: it is not just less page, it is
 * more members visible at once inside the box. Four columns at these sizes
 * show about forty people per screenful instead of twenty-four.
 *
 * 190px is the floor that yields four columns once the scroller's gutter and
 * scrollbar are taken out of the measure, and collapses to one on a phone.
 * min(..., 100%) rather than a bare 190px: at 280px viewport a bare minimum
 * overflows the track. */
.members {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
  gap: var(--space-5) var(--space-6);
}

.members li { break-inside: avoid; }
.members li[hidden] { display: none; }

.m-org {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ic-dimmer);
  margin: 0 0 2px;
}
.m-name {
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--text-inverse);
  margin: 0 0 1px;
}
.m-title {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ic-dim);
  margin: 0;
}

/* ---- roster toolbar ------------------------------------------------------- */

.m-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--ic-rule);
}

.m-count {
  margin: 0;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ic-dimmer);
}

/* Reachable by a screen reader, invisible to everyone else. The field's
 * placeholder is a hint, not a label — placeholders vanish on input and are
 * not reliably announced. */
.vh {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.m-find { margin: 0; }
.m-find[hidden] { display: none; }

.m-q {
  font: inherit;
  font-size: 14px;
  width: 260px;
  max-width: 100%;
  padding: var(--space-2) 0;
  color: var(--text-inverse);
  background: transparent;
  border: 0;
  /* Lines not boxes — the same rule the rest of this page follows. */
  border-bottom: 1px solid var(--ic-rule-strong);
}
.m-q::placeholder { color: var(--ic-dimmer); }
.m-q:focus { outline: none; border-bottom-color: var(--ic-accent); }
.m-q::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }

.m-empty { margin: var(--space-8) 0 0; color: var(--ic-dim); font-size: 14px; }
.m-empty[hidden] { display: none; }

/* ---- the roster scroller -------------------------------------------------- */

/* Every member is inside it, which is the point — see the comment in
 * functions/p/[token].js. This is CSS only: no JavaScript is involved in the
 * height, so the box works with site.js blocked. */

.m-scrollwrap { position: relative; }

.m-scroll {
  /* 700px was the brief. min() keeps it from eating a short laptop screen,
   * where a fixed 700px would be most of the window. */
  max-height: min(700px, 70vh);
  overflow-y: auto;

  /* Deliberately NOT overscroll-behavior: contain. Containing it would mean
   * the page stops dead when the cursor is over the roster; leaving the
   * default lets the scroll chain onward once the box bottoms out, which is
   * what makes an inner scroller tolerable mid-page. */

  /* A scrollable region with no focusable children inside it is unreachable
   * by keyboard, so the element takes tabindex="0" in the markup and needs a
   * visible ring when it gets focus that way. */
  scrollbar-width: thin;
  scrollbar-color: var(--ic-rule-strong) transparent;
  /* Just enough to keep a long job title off the scrollbar. Any more and the
   * gutter costs a whole column: at 1200px the measure gives four columns at
   * a 190px floor and three at 200px + 16px of padding. */
  padding-right: var(--space-2);
}
.m-scroll:focus-visible { outline: 2px solid var(--ic-accent); outline-offset: 4px; }

.m-scroll::-webkit-scrollbar { width: 10px; }
.m-scroll::-webkit-scrollbar-track { background: transparent; }
.m-scroll::-webkit-scrollbar-thumb {
  background: var(--ic-rule-strong);
  border-radius: 5px;
  border: 3px solid var(--surface-inverse);
}
.m-scroll::-webkit-scrollbar-thumb:hover { background: var(--ic-dimmer); }

/* A cut-off row at the bottom edge is the honest signal that there is more,
 * and this softens it rather than replacing it. Hidden once the box is at the
 * bottom (site.js) so it never implies content that is not there. */
.m-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--surface-inverse));
  transition: opacity 120ms linear;
}
.m-scrollwrap.is-bottom .m-fade { opacity: 0; }

/* The box applies on a phone too, and shorter.
 *
 * The first cut exempted phones — no height, let the roster run on — on the
 * grounds that a scroll area inside a scroll area is miserable on touch. Then
 * it was measured: one column of 260 people is 18,237px, about twenty-five
 * flicks to get past. That is a worse phone experience than a nested
 * scroller, which iOS and Android both chain out of correctly once it
 * bottoms out.
 *
 * 60vh rather than 70: on a small screen the box needs visible page above and
 * below it, or a thumb that lands anywhere has nothing to grab to move the
 * page itself. */
@media (max-width: 900px) {
  .m-scroll { max-height: 60vh; padding-right: 0; }
  .m-fade { height: 40px; }
}

/* Paper has no scrollbar. */
@media print {
  .m-scroll { max-height: none; overflow: visible; }
  .m-fade, .m-tools { display: none; }
  .members li[hidden] { display: list-item !important; }
}

/* ---- tenets --------------------------------------------------------------- */

/* The grid itself is in the shared split block further down. */

.tenets { list-style: none; margin: 0; padding: 0; }
.tenets li + li {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: var(--border-thin) solid var(--ic-rule);
}
/* 28px Oswald Light, as the original sets its tenet headings. */
.tenets h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  color: var(--text-inverse);
  margin: 0 0 var(--space-2);
}
.tenets p { margin: 0; color: var(--ic-dim); line-height: 1.5; }

.tenets-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  justify-self: end;
  border-radius: var(--radius-md);
}

/* ---- conversations -------------------------------------------------------- */

.replays, .recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-8);
}

/* A replay is a card: portrait left, transport right. The photos arrive at
 * different aspect ratios (249x192 and 393x500), so a fixed box with
 * object-fit: cover is what makes the pair sit level — sizing by width alone
 * would step the two cards to different heights. */
.replay {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  background: var(--w50-ink-900);
  border: var(--border-thin) solid var(--ic-rule);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
@media (max-width: 560px) {
  .replay { grid-template-columns: 84px minmax(0, 1fr); }
}

.replay-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;   /* keep faces in frame when cropping */
  border-radius: var(--radius-sm);
  display: block;
}

.replay-body { min-width: 0; }
.replay-name { font-size: 16px; font-weight: var(--fw-semibold); margin: 0 0 2px; }
.replay-desc { font-size: 13.5px; color: var(--ic-dim); margin: 0 0 var(--space-3); }

/* The native control is what ships in the markup and what remains if
 * /static/player.js does not run. When it does run, it hides this and inserts
 * .pl below. preload="none" stays either way: 8.8 MB across the two files
 * should not download before somebody presses play. */
.replays audio { width: 100%; }
.replays audio.pl-native-hidden { display: none; }

/* ---- the branded transport ---- */

.pl {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
}

.pl-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: var(--border-thin) solid var(--ic-accent);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background var(--dur-fast) var(--ease-out);
}
.pl-play:hover { background: rgb(from var(--ic-accent) r g b / 0.14); }
.pl-play:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* Triangle and bars drawn in CSS rather than shipped as icons — two shapes
 * are not worth a sprite, and an <img> here would need its own colour variant
 * for the dark ground exactly like the wordmark did. */
.pl-play::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--ic-accent);
  transform: translateX(1px);      /* optical centring: a triangle's mass sits left */
}
.pl.is-playing .pl-play::before {
  width: 10px; height: 11px;
  border-width: 0;
  transform: none;
  background: linear-gradient(to right,
    var(--ic-accent) 0 3px, transparent 3px 7px, var(--ic-accent) 7px 10px);
}

.pl-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.pl-seek:disabled { cursor: default; opacity: 0.5; }
.pl-seek:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-pill); }

.pl-seek::-webkit-slider-runnable-track {
  height: 3px; border-radius: 2px; background: var(--w50-ink-700);
}
.pl-seek::-moz-range-track {
  height: 3px; border-radius: 2px; background: var(--w50-ink-700);
}
.pl-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--text-inverse); border: 0;
  margin-top: -4px;
}
.pl-seek::-moz-range-thumb {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--text-inverse); border: 0;
}

.pl-time {
  font-size: 12.5px;
  color: var(--ic-dim);
  font-variant-numeric: tabular-nums;   /* so the row does not jiggle per second */
  white-space: nowrap;
}

.recent li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  border: var(--border-thin) solid var(--ic-rule);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  background: var(--w50-ink-900);
}
/* No photo, no empty column. */
.recent li:not(:has(.recent-photo)) { grid-template-columns: minmax(0, 1fr); }

.recent-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.recent-title { font-size: 16px; font-weight: var(--fw-semibold); margin: 0 0 var(--space-2); line-height: 1.35; }
.recent-guest { font-size: 13.5px; color: var(--ic-dim); margin: 0 0 var(--space-3); }
.recent-topics { font-size: 13px; color: var(--ic-dimmer); margin: 0; }
.recent-topics span { font-weight: var(--fw-semibold); }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ic-dim);
  border: var(--border-thin) solid var(--ic-rule-strong);
  border-radius: var(--radius-pill);
  padding: 2px var(--space-3);
  margin-bottom: var(--space-3);
}

/* ---- the Communities animation -------------------------------------------- */

/* The animation is SQUARE (1200x1200), not 16:9, so it cannot simply fill the
 * measure — at 760px wide it would be 760px tall and shove the quote off the
 * screen. It sits beside the copy on a wide viewport and stacks below it on a
 * narrow one, the same arrangement the tenets and polls sections use. */
/* Copy beside media, as a grid. A float here escaped the section and
 * overlapped the next one's artwork — floats are not contained by their
 * parent, and nothing on this page wants text wrapping around a square. */
.pq { display: grid; gap: var(--space-10); align-items: start; }
@media (min-width: 1000px) {
  .pq--media { grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr); }
}
.pq-copy > .lede:last-child { margin-bottom: 0; }

.anim { margin: 0; }
.anim video {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  background: var(--w50-ink-900);
}


/* ---- roundtables ---------------------------------------------------------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-8);
}
.cards li {
  border: var(--border-thin) solid var(--ic-rule);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  background: var(--w50-ink-900);
}
.cards h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text-inverse);
  margin: 0 0 var(--space-3);
}
.cards p { margin: 0; color: var(--ic-dim); line-height: 1.5; }

/* ---- prose + image -------------------------------------------------------- */

/* Three sections put copy beside a piece of media — tenets, prose_image and
 * awards. The shared half is declared once here; each keeps only what makes
 * it different below. Grouping the selector rather than adding a `split`
 * class to the markup, because two of these three are already signed off and
 * a layout refactor of an approved section buys nothing. */
.tenets-wrap,
.prose-image,
.awards-wrap {
  display: grid;
  gap: var(--space-10);
  /* start, NOT center.
   *
   * The tenets artwork is portrait (797×963) and renders ~650px tall against
   * a tenets list of ~360px. Centring floated the text in the middle of the
   * taller row and left ~150px of dead space above "Peer-only, no vendors",
   * which read as a rendering fault rather than a composition. prose_image
   * overrides this back to center because its two columns are close in
   * height; awards keeps start, since the film is ~200px shorter than the
   * copy beside it. */
  align-items: start;
}
@media (min-width: 1000px) {
  .tenets-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); }
  .prose-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .awards-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.tenets-wrap { gap: var(--space-12); }

.prose-image { align-items: center; }
.prose-image > div { max-width: 60ch; }
.prose-image img { width: 100%; max-width: 620px; height: auto; display: block; justify-self: end; }

/* ---- awards --------------------------------------------------------------- */

.awards-text { max-width: 60ch; }
.awards-text .lede:first-child { margin-top: 0; }

/* Below 1000px the grid is one column and the film sits under the copy, in
 * document order. No max-width there: a phone should get the largest video it
 * can, which is the full measure. */
.video { max-width: 100%; }
.video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-md);
  display: block;
}

/* ---- footer --------------------------------------------------------------- */

.foot {
  border-top: var(--border-thin) solid var(--ic-rule);
  color: var(--ic-dimmer);
  padding: var(--space-12);
  text-align: center;
}
.foot img { opacity: 0.85; margin-bottom: var(--space-5); }
.offices {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--ic-dim);
  margin: 0 0 var(--space-5);
}
.foot .legal { font-size: 12.5px; margin: 0 0 var(--space-2); }
.foot .legal a {
  color: var(--ic-dim);
  text-decoration: none;
  margin: 0 var(--space-3);
  border-bottom: var(--border-thin) solid transparent;
}
.foot .legal a:hover { color: var(--text-inverse); border-bottom-color: var(--ic-accent); }

/* ---- the plain pages (404, expired) --------------------------------------- */

/* Every page that is not the microsite itself: the front door, an unknown
 * path, an expired link, an unrecognised one. One look for all of them, so
 * none of them reads as a server that fell over.
 *
 * box-sizing and dvh together. min-height:100vh plus padding on a content-box
 * body is 100vh + 64px, which gave every one of these pages a scrollbar with
 * nothing below the fold to scroll to; dvh also survives mobile browser chrome
 * appearing and disappearing. */
body.plain {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-8);
}
body.plain h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 var(--space-4);
}
/* Ranged left, like every other piece of copy on this site. A centred gate is
 * the conventional shape and it is the wrong one here — the microsite is
 * left-aligned editorial throughout, and a centred splash reads as a different
 * product. */
body.plain p { color: var(--ic-dim); max-width: 46ch; margin: 0; line-height: 1.5; }
body.plain p + p { margin-top: var(--space-5); }

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

/* The root, and every wrong turn. Sits inside body.plain, which already
 * centres a single column on the dark ground. */

.gate { max-width: 44ch; }

.gate-logo { opacity: 0.9; margin-bottom: var(--space-10); }

/* Selector deliberately doubled up. `body.plain p` is (0,1,2) and a bare
 * `.gate-eyebrow` is (0,1,0), so the 46ch measure won and the rule stopped
 * 144px short of the copy. It looked correct on a phone only because 46ch at
 * 12px and the column width happen to coincide there — which is exactly the
 * kind of thing a desktop-only check misses in the other direction. */
.gate .gate-eyebrow {
  max-width: none;
}

.gate-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ic-dimmer);
  margin: 0 0 var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--ic-rule);
}

/* A touch larger than body.plain's default. This is the only thing on the
 * page, so it carries it. */
.gate h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: var(--space-6); }
