/* Reach Institute Thinktank — site styles
   Tokens first; everything below uses them. */

:root {
  /* Paper, ink and one vermilion accent. Mint belongs to the app: it appears only inside
     the app's own screens (the demo phone, the screenshots) and in the logo mark. */
  --paper: oklch(0.972 0.006 85);
  --paper-2: oklch(0.945 0.008 85);
  --card: oklch(0.995 0.003 85);               /* notes, sheets and form fields lying on the paper */
  --line: oklch(0.85 0.008 80);
  --ink: oklch(0.2 0.006 60);
  --ink-2: oklch(0.36 0.006 60);
  --muted: oklch(0.46 0.006 60);
  --night: oklch(0.18 0.005 60);
  --night-2: oklch(0.235 0.006 60);
  --night-line: oklch(0.33 0.006 60);
  --night-deep: oklch(0.12 0.004 60);          /* phone bezel, deepest shadow */
  --rim: oklch(0.55 0.006 60);                 /* hairline that lifts a dark phone off a dark ground */
  --neutral: oklch(0.7 0.006 60);              /* the undecided share in sample charts */
  --on-night: oklch(0.96 0.004 85);
  --on-night-muted: oklch(0.78 0.006 85);
  --seal: oklch(0.52 0.19 30);                 /* vermilion: the stamp, links, the current page, focus */
  --seal-on-night: oklch(0.74 0.15 35);
  --link: oklch(0.5 0.14 250);                 /* links: blue words with a blue line underneath */
  --link-on-night: oklch(0.8 0.09 240);
  --sky: oklch(0.64 0.12 238);                 /* the focus ring */
  --sky-on-night: oklch(0.8 0.09 235);
  --sky-soft: oklch(0.87 0.055 235);           /* a text selection */
  --error: oklch(0.5 0.17 28);                 /* form errors, and the app's "反対" inside UI samples */

  /* the app's own colours */
  --mint: oklch(0.87 0.105 156);
  --mint-deep: oklch(0.80 0.13 155);
  --forest: oklch(0.49 0.09 160);

  --font-body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  /* Headings are set in LINE Seed JP, the typeface of the chat app: the home page opens with a
     chat message. It comes in 400 and 800 here, so a heading that asks for 500 is drawn with 400
     and one that asks for 900 with 800. */
  --font-display: "LINE Seed JP", "BIZ UDPGothic", "Hiragino Sans", sans-serif;

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.9vw, 3.125rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.4vw, 4.75rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --wrap: 72rem;
  --header-h: 4rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.85;
  font-feature-settings: "palt" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.3; letter-spacing: 0.01em; }
h1, h2, h3, .statement { word-break: auto-phrase; text-wrap: balance; }
.page-head__lead { word-break: auto-phrase; }
p, li { line-break: strict; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-night :focus-visible { outline-color: var(--sky-on-night); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0.5rem;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s, transform 0.45s var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
}
/* the group's own logo: the mark with its wordmark (source/Photos/ReachLogo横.png, trimmed, white made transparent) */
.brand img { width: auto; height: clamp(1.9rem, 5.2vw, 2.4rem); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand__name small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.site-nav ul { display: flex; gap: 0.25rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s;
}
.site-nav a:hover { background: color-mix(in oklch, var(--ink) 7%, transparent); }
.site-nav a[aria-current="page"] { font-weight: 400; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  padding: 0 0.25rem;
  font-size: 0.9375rem;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}
.contact-link:hover { text-decoration-thickness: 2px; }
.contact-link[aria-current="page"] { font-weight: 400; text-decoration-thickness: 2px; }
.ext { width: 0.8em; height: 0.8em; flex: none; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid color-mix(in oklch, var(--ink) 25%, transparent);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
}
.menu-btn__bars { position: relative; width: 14px; height: 10px; }
.menu-btn__bars::before, .menu-btn__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.25s var(--ease-out);
}
.menu-btn__bars::before { top: 1px; }
.menu-btn__bars::after { bottom: 1px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 52rem) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    transform: translateY(-0.5rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0s 0.25s;
  }
  .site-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.2s, transform 0.3s var(--ease-out), visibility 0s;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    width: 100%;
    min-height: 3.25rem;
    padding: 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .site-nav a[aria-current="page"]::after { content: ""; width: 0.5rem; height: 0.5rem; margin-left: auto; border-radius: 50%; background: var(--ink); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 36rem) {
  .brand__name small { display: none; }
  .menu-btn { padding: 0 0.75rem; }
}
@media (max-width: 26rem) {
  .site-header .wrap { gap: 0.5rem; }
  .contact-link { flex: none; }
  .menu-btn { width: 44px; padding: 0; justify-content: center; flex: none; }
  .menu-btn__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* ---------- primary CTA ----------
   Adapted from Uiverse.io by cssbuttons-io, "massive-mayfly-74" (MIT License)
   https://uiverse.io/cssbuttons-io/massive-mayfly-74
   Changes: link instead of button, width follows text, circle grows via clip-path
   (no width animation), focus-visible parity, reduced-motion, tokens. */

.cta {
  --cta-d: 3.25rem;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: var(--cta-d);
  padding: 0 1.6rem 0 calc(var(--cta-d) + 1rem);
  color: var(--ink);
  font-weight: 400;
  font-size: var(--step-0);
  text-decoration: none;
  transition: color 0.45s var(--ease-out);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  border-radius: 999px;
  clip-path: inset(0 calc(100% - var(--cta-d)) 0 0 round 999px);
  transition: clip-path 0.55s var(--ease-out);
}
.cta__arrow {
  position: absolute;
  left: calc(var(--cta-d) / 2 - 0.65rem);
  top: 50%;
  width: 1.1rem;
  height: 2px;
  margin-top: -1px;
  background: transparent;
  transition: transform 0.55s var(--ease-out), background-color 0.3s;
}
.cta__arrow::before {
  content: "";
  position: absolute;
  right: 0;
  top: -0.3rem;
  width: 0.62rem;
  height: 0.62rem;
  border-top: 2px solid var(--paper);
  border-right: 2px solid var(--paper);
  transform: rotate(45deg);
}
.cta:hover, .cta:focus-visible { color: var(--paper); }
.cta:hover::before, .cta:focus-visible::before { clip-path: inset(0 0 0 0 round 999px); }
.cta:hover .cta__arrow, .cta:focus-visible .cta__arrow { transform: translateX(0.9rem); background: var(--paper); }
.cta:focus-visible { border-radius: 999px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 400;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- pinned scene ----------
   A phone that stays put while its captions change (the screen tour on the Reach page).
   Without JS, with reduced motion, or in a window too short to hold the phone, this is an
   ordinary section: every screen with its caption underneath. site.js adds .is-scrolly to
   turn it into a sticky stage and marks the current step with .is-active. */

.pin { position: relative; }
.pin__body { padding-block: clamp(3rem, 7vw, 5rem); background: var(--night); color: var(--on-night); }
.pin__head h2 { font-size: var(--step-3); font-weight: 500; }
.pin__steps > li {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
.pin__steps > li + li { border-top: 1px solid var(--night-line); }
.pin__shot { margin: 0; }
.pin__shot img {
  width: min(100%, 17rem);
  margin-inline: auto;
  filter: drop-shadow(0 0 1px var(--rim)) drop-shadow(0 24px 40px color-mix(in oklch, var(--night-deep) 70%, transparent));
}
.pin__label { margin-bottom: 0.75rem; font-size: var(--step--1); font-weight: 400; color: var(--on-night-muted); }
.pin__cap h3 { font-size: var(--step-2); font-weight: 500; line-height: 1.4; }
.pin__cap h3 + p { margin-top: 1rem; max-width: 30em; color: var(--on-night-muted); }
.pin__foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--night-line);
  font-size: 0.75rem;
  color: var(--on-night-muted);
}
@media (max-width: 52rem) {
  .pin__steps > li { grid-template-columns: 1fr; }
  .pin__shot img { width: min(80%, 16rem); }
}

/* the sticky stage */
.pin.is-scrolly { height: calc((var(--pin-len) + 1) * 100svh); }
.pin.is-scrolly .pin__stage {
  --dev-h: min(74svh, 46rem);
  --dev-w: calc(var(--dev-h) * 0.46);
  --dev-top: calc((100svh - var(--dev-h)) / 2 + 1rem);
  --dx: calc(min(16vw, 14rem) * -1);
  --cap-left: calc(50% + var(--dx) + var(--dev-w) / 2 + clamp(2rem, 5vw, 5rem));
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--night);
}
.pin.is-scrolly .pin__body { position: absolute; inset: 0; padding: 0; background: none; }
.pin.is-scrolly .pin__body > .wrap { position: relative; height: 100%; }
.pin.is-scrolly .pin__steps > li { display: block; padding: 0; border: 0; }
.pin.is-scrolly .pin__shot {
  position: absolute;
  top: var(--dev-top);
  left: 50%;
  width: var(--dev-w);
  height: var(--dev-h);
  margin-left: calc(var(--dev-w) / -2);
  opacity: 0;
  transform: translate3d(var(--dx), 0, 0);
  transition: opacity 0.5s var(--ease-out);
}
.pin.is-scrolly .pin__shot img { width: 100%; height: 100%; object-fit: contain; }
.pin.is-scrolly li.is-active .pin__shot { opacity: 1; }

.pin.is-scrolly .pin__cap {
  position: absolute;
  top: 50%;
  left: var(--cap-left);
  width: min(26rem, 34vw);
  opacity: 0;
  transform: translate3d(0, calc(-50% + 16px), 0);
  transition: opacity 0.45s var(--ease-out), transform 0.7s var(--ease-out);
}
.pin.is-scrolly li.is-active .pin__cap { opacity: 1; transform: translate3d(0, -50%, 0); }

/* the section title sits above the captions, level with the top of the phone */
.pin.is-scrolly .pin__head { position: absolute; top: var(--dev-top); left: var(--cap-left); width: min(26rem, 34vw); }
.pin.is-scrolly .pin__head h2 { font-size: var(--step-1); }
.pin.is-scrolly .pin__foot {
  position: absolute;
  inset: auto var(--gutter) clamp(0.75rem, 2.5svh, 1.75rem);
  margin: 0;
  padding-top: 0.9rem;
}

@media (max-width: 52rem) {
  .pin.is-scrolly .pin__stage {
    --dev-h: min(50svh, 30rem);
    --dev-top: calc(var(--header-h) + 1.5svh);
    --dx: 0px;
  }
  .pin.is-scrolly .pin__cap {
    top: calc(var(--dev-top) + var(--dev-h) + 0.9rem);
    right: var(--gutter);
    left: var(--gutter);
    width: auto;
    text-align: center;
    transform: translate3d(0, 16px, 0);
  }
  .pin.is-scrolly li.is-active .pin__cap { transform: none; }
  .pin.is-scrolly .pin__label { margin-bottom: 0.25rem; }
  .pin.is-scrolly .pin__cap h3 { font-size: clamp(1.2rem, 3.1svh, 1.6rem); }
  .pin.is-scrolly .pin__cap h3 + p { margin: 0.4rem auto 0; font-size: 0.9375rem; line-height: 1.7; }
  .pin.is-scrolly .pin__foot { padding-top: 0; border-top: 0; font-size: 0.75rem; text-align: center; }
  .pin.is-scrolly .pin__head {
    width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

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

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: var(--step-3); font-weight: 500; }
.section-head p { margin-top: 1rem; color: var(--ink-2); font-size: var(--step-1); line-height: 1.8; }

/* ---------- reach: the demo's two columns ---------- */

.flow { background: var(--paper); }


.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.stage__text { max-width: 30rem; }
.stage__text h3 { margin-top: 0.5rem; font-size: var(--step-2); font-weight: 500; }
.stage__text p { margin-top: 1rem; color: var(--ink-2); }

@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 52rem) {
  .stage { grid-template-columns: 1fr; }
}

/* ---------- reach: voices ----------
   Plain version (no script, reduced motion, or a window too short for the stage): the
   heading beside a list of sample voices. The last one is followed by what became of it:
   an issue, a proposal with its receipt stamp, and a reply.
   With .is-scrolly the list is a feed on a stage that stays put, and it travels with the
   scroll (--y). site.js stops one voice in the middle (--hold) while the rest pass and fade
   (--q), then plays what became of it in the space underneath, one object at a time
   (data-act on the held voice: 1 issue, 2 proposal, 3 stamped, 4 reply). */

.voices { margin-top: calc(var(--header-h) * -1); background: var(--paper); }
.voices__stage {
  --pad-top: calc(var(--header-h) + clamp(1.5rem, 5svh, 3.5rem));
  padding: var(--pad-top) 0 clamp(3rem, 7svh, 5rem);
}
.voices__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
/* beside a long list, the heading stays in view */
.voices__text { position: sticky; top: calc(var(--header-h) + 2rem); }

.voices__text h1 {
  font-size: clamp(2rem, 1rem + 3.2vw, 4rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.015em;
}
.voices__lead { margin-top: 1.5rem; max-width: 26em; font-size: var(--step-1); line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; } /* breaks only at the <wbr> marks */
.voices__note { margin-top: 1.5rem; font-size: 0.75rem; line-height: 1.7; color: var(--muted); }
.voices__foot, .voices__room { display: none; }

.voices__stream { display: grid; gap: 0.9rem; }
.voices__stream > li { position: relative; width: min(100%, 22rem); }
.voices__stream > li:nth-child(even) { justify-self: end; }
.voices__stream > .voices__held { order: 1; } /* in the plain list, its story comes last */
.voice {
  --vp: 0.95rem;
  --vx: 1.2rem;
  position: relative;
  padding: var(--vp) var(--vx) 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem 1.25rem 1.25rem 0.3rem;
  background: var(--card);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.voices__stream > li:nth-child(even) > .voice { border-radius: 1.25rem 1.25rem 0.3rem 1.25rem; }
.voice__who { display: block; margin-bottom: 0.2rem; font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.voice__dots { display: none; }

/* the voice that is carried through */
.voices__held > .voice {
  border-color: var(--night);
  background: var(--night);
  color: var(--on-night);
  box-shadow: 0 24px 48px -18px color-mix(in oklch, var(--ink) 55%, transparent);
}
.voices__held > .voice > .voice__who { color: var(--on-night-muted); }

/* what became of it: an issue, a proposal on paper, a reply */
.voices__acts { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.act__tag { font-size: 0.75rem; font-weight: 400; line-height: 1.5; color: var(--muted); }
.act__title {
  margin-top: 0.1rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
  word-break: auto-phrase;
  text-wrap: balance;
}

.act--issue { padding: 0.85rem 1.1rem 0.9rem; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--card); }
.act__bar { display: flex; gap: 2px; height: 0.55rem; margin-top: 0.7rem; }
.act__bar i { border-radius: 99px; background: var(--ink); }
.act__bar i:nth-child(1) { flex: 62; }
.act__bar i:nth-child(2) { flex: 26; background: var(--neutral); }
.act__bar i:nth-child(3) { flex: 12; background: var(--seal); }
.act__split { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 0.5rem; margin-top: 0.4rem; font-size: 0.75rem; line-height: 1.6; color: var(--ink-2); }
.act__split span::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--ink);
}
.act__split span:nth-child(2)::before { background: var(--neutral); }
.act__split span:nth-child(3)::before { background: var(--seal); }
.act__split b { color: var(--ink); }

/* The proposal is a sheet of paper: square corners, one of them folded, a place for the stamp.
   The paper is cut to shape, so its shadow comes from a filter (a box-shadow would be cut too). */
.act--draft {
  --fold: 1.15rem;
  position: relative;
  padding: 0.85rem 1.1rem 0.6rem;
  filter: drop-shadow(0 0 0.5px var(--muted)) drop-shadow(0 10px 10px color-mix(in oklch, var(--ink) 16%, transparent));
}
.act--draft::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--card);
  clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%);
}
.act--draft::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--fold);
  height: var(--fold);
  background: var(--line);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.act__paras {
  display: grid;
  gap: 0.05rem;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.7;
}
.act__paras li { display: grid; grid-template-columns: 2.5em minmax(0, 1fr); column-gap: 0.6rem; }
.act__paras b { color: var(--muted); }
.act__to {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.act__to b { margin-left: 0.6em; font-size: 0.8125rem; color: var(--ink); }

/* the receipt stamp: vermilion ink, pressed a little askew */
.seal {
  position: relative;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px dashed transparent;
  border-radius: 50%;
  transform: rotate(-9deg);
}
.seal > span {
  position: absolute;
  inset: -1.5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--seal);
  border-radius: 50%;
  color: var(--seal);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  mix-blend-mode: multiply;
}
.seal > span::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--seal);
  border-radius: 50%;
}

.act--reply { justify-self: start; width: 92%; }

.act__bar i:nth-child(2), .act__split span:nth-child(2), .act__paras li:nth-child(2), .voice__dots i:nth-child(2) { --n: 1; }
.act__bar i:nth-child(3), .act__split span:nth-child(3), .act__paras li:nth-child(3), .voice__dots i:nth-child(3) { --n: 2; }

@media (max-width: 52rem) {
  .voices__grid { grid-template-columns: 1fr; }
  .voices__text { position: static; }
  .voices__stream { width: min(100%, 24rem); margin-inline: auto; }
}

/* the stage */
.voices.is-scrolly { height: var(--scene-h, 440svh); }
.voices.is-scrolly .voices__stage { position: sticky; top: 0; height: 100svh; padding-bottom: 0; overflow: hidden; }
.voices.is-scrolly .voices__grid { height: 100%; align-items: stretch; }
.voices.is-scrolly .voices__text { position: static; align-self: center; margin-bottom: 6svh; }

/* The feed runs the full height of the stage and fades out at both ends, so a voice is
   never sliced by an edge. It bleeds sideways into the gutter to leave room for the shadow. */
.voices.is-scrolly .voices__flow {
  position: relative;
  height: 100svh;
  margin: calc(var(--pad-top) * -1) calc(var(--gutter) * -1) 0;
}
.voices.is-scrolly .voices__feed {
  --fade-top: calc(var(--header-h) + 1.5rem);
  --fade-bottom: 4.5rem;
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent 100%);
}
/* the part of the feed, clear of both fades, where the held voice and its story sit; site.js measures it */
.voices.is-scrolly .voices__room {
  display: block;
  position: absolute;
  top: calc(var(--fade-top) + 0.5rem);
  right: 0;
  bottom: calc(var(--fade-bottom) + 0.5rem);
  left: 0;
  visibility: hidden;
  pointer-events: none;
}
.voices.is-scrolly .voices__stream {
  position: absolute;
  top: calc(var(--fade-top) + 0.5rem);
  left: var(--gutter);
  right: var(--gutter);
  transform: translate3d(0, var(--y, 0px), 0);
  will-change: transform;
}
.voices.is-scrolly .voices__stream > li { opacity: calc(1 - var(--q, 0)); }
.voices.is-scrolly .voices__stream > li.is-kept { transform: translate3d(0, var(--hold, 0px), 0); }
.voices.is-scrolly .voices__stream > .voices__held { z-index: 1; order: 0; opacity: 1; }

.voices.is-scrolly .voices__held > .voice {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: none;
  transition: background-color 0.45s var(--ease-out), border-color 0.45s var(--ease-out), color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.voices.is-scrolly .voices__held > .voice > .voice__who { color: var(--muted); transition: color 0.45s var(--ease-out); }
.voices.is-scrolly .voices__held.is-held > .voice {
  border-color: var(--night);
  background: var(--night);
  color: var(--on-night);
  box-shadow: 0 24px 48px -18px color-mix(in oklch, var(--ink) 55%, transparent);
}
.voices.is-scrolly .voices__held.is-held > .voice > .voice__who { color: var(--on-night-muted); }

/* other people saying the same thing: two more notes fan out from behind the held one */
.voices.is-scrolly .voices__held::before,
.voices.is-scrolly .voices__held::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 1.25rem 1.25rem 0.3rem 1.25rem;
  background: var(--card);
  opacity: 0;
  transition: opacity 0.3s linear, transform 0.5s var(--ease-out);
}
.voices.is-scrolly .voices__held[data-act]:not([data-act="0"])::after {
  opacity: 1;
  transform: translate(-0.45rem, -0.55rem) rotate(-2deg);
  transition-delay: 0.05s;
}
.voices.is-scrolly .voices__held[data-act]:not([data-act="0"])::before {
  opacity: 1;
  transform: translate(-0.85rem, -1.05rem) rotate(-4.5deg);
  transition-delay: 0.16s;
}

/* its story plays in one spot underneath: the three objects share a cell and take turns */
.voices.is-scrolly .voices__acts { position: absolute; top: 100%; right: 0; left: 0; gap: 0; margin-top: 0; padding-top: 0.75rem; }
.voices.is-scrolly .act { grid-area: 1 / 1; align-self: start; opacity: 0; transition: opacity 0.25s linear, transform 0.4s var(--ease-out); }
.voices.is-scrolly .act--issue { transform: translateY(1rem); }
.voices.is-scrolly .act--draft { transform: translateY(1.75rem) rotate(-2.5deg); transform-origin: 20% 100%; }
.voices.is-scrolly .act--reply { transform: translateY(0.9rem) scale(0.96); transform-origin: 0 100%; }

.voices.is-scrolly [data-act="1"] .act--issue,
.voices.is-scrolly [data-act="2"] .act--draft,
.voices.is-scrolly [data-act="3"] .act--draft,
.voices.is-scrolly [data-act="4"] .act--reply {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s var(--ease-out) 0.14s, transform 0.75s var(--ease-out) 0.14s;
}
/* done with: each one leaves upward, the way it is headed */
.voices.is-scrolly [data-act="2"] .act--issue,
.voices.is-scrolly [data-act="3"] .act--issue,
.voices.is-scrolly [data-act="4"] .act--issue { transform: translateY(-0.6rem) scale(0.97); }
.voices.is-scrolly [data-act="4"] .act--draft { transform: translate(0.9rem, -1.4rem) rotate(2deg); }

/* the issue: the three shares fill in, then their figures */
.voices.is-scrolly .act__bar i { clip-path: inset(0 100% 0 0 round 99px); transition: clip-path 0.2s linear; }
.voices.is-scrolly .act__split span { opacity: 0; transition: opacity 0.2s linear; }
.voices.is-scrolly [data-act]:not([data-act="0"]) .act__bar i {
  clip-path: inset(0 0 0 0 round 99px);
  transition: clip-path 0.7s var(--ease-out) calc(0.5s + var(--n, 0) * 0.16s);
}
.voices.is-scrolly [data-act]:not([data-act="0"]) .act__split span {
  opacity: 1;
  transition: opacity 0.4s var(--ease-out) calc(0.75s + var(--n, 0) * 0.16s);
}

/* the proposal: its three paragraphs are written in, left to right */
.voices.is-scrolly .act__paras li { clip-path: inset(0 100% 0 0); transition: clip-path 0.2s linear; }
.voices.is-scrolly [data-act="2"] .act__paras li,
.voices.is-scrolly [data-act="3"] .act__paras li,
.voices.is-scrolly [data-act="4"] .act__paras li {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.65s var(--ease-out) calc(0.55s + var(--n, 0) * 0.22s);
}

/* delivered: the stamp comes down on the empty ring */
.voices.is-scrolly .seal { border-color: var(--line); transition: border-color 0.2s linear; }
.voices.is-scrolly .seal > span { opacity: 0; transform: scale(1.5); transition: opacity 0.15s linear, transform 0.2s linear; }
.voices.is-scrolly [data-act="3"] .seal,
.voices.is-scrolly [data-act="4"] .seal { border-color: transparent; transition-delay: 0.3s; }
.voices.is-scrolly [data-act="3"] .seal > span,
.voices.is-scrolly [data-act="4"] .seal > span {
  opacity: 1;
  transform: none;
  transition: opacity 0.12s linear 0.3s, transform 0.32s var(--ease-out) 0.3s;
}

/* the reply: someone is typing, then the words arrive */
.voices.is-scrolly .voice__dots {
  position: absolute;
  top: calc(var(--vp) + 2.15rem);
  left: var(--vx);
  display: flex;
  gap: 0.3rem;
  opacity: 0;
}
.voices.is-scrolly .voice__dots i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--muted); }
.voices.is-scrolly .voice__say { opacity: 0; transition: opacity 0.15s linear; }
.voices.is-scrolly [data-act="4"] .voice__dots { animation: voice-typing 1.15s linear both; }
.voices.is-scrolly [data-act="4"] .voice__dots i { animation: voice-dot 0.5s ease-in-out calc(0.2s + var(--n, 0) * 0.12s) 2 both; }
.voices.is-scrolly [data-act="4"] .voice__say { opacity: 1; transition: opacity 0.5s var(--ease-out) 1.15s; }
@keyframes voice-typing { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes voice-dot { 0%, 100% { opacity: 0.35; transform: none; } 50% { opacity: 1; transform: translateY(-0.15rem); } }

@media (max-width: 52rem) {
  /* one column: the heading scrolls away first, then the feed has the whole screen */
  .voices.is-scrolly .voices__stage { --pad-top: calc(var(--header-h) + 0.5rem); position: static; height: 100%; overflow: visible; }
  .voices.is-scrolly .voices__grid { display: block; }
  .voices.is-scrolly .voices__text { margin-bottom: 0; padding-bottom: 0.75rem; }
  .voices.is-scrolly .voices__flow { position: sticky; top: 0; margin-top: 0; }
  .voices.is-scrolly .voices__feed { --fade-top: 1.25rem; --fade-bottom: 2rem; bottom: 2.5rem; }
  .voices.is-scrolly .voices__room { top: calc(var(--header-h) + 0.75rem); }
  /* keep the feed to a readable width in the middle rather than edge to edge */
  .voices.is-scrolly .voices__stream {
    top: calc(var(--fade-top) + 0.25rem);
    right: auto;
    left: 50%;
    width: min(calc(100% - var(--gutter) * 2), 24rem);
    transform: translate3d(-50%, var(--y, 0px), 0);
  }
  .voices.is-scrolly .voices__stream > li { width: min(100%, 19rem); }
  /* the heading's note has scrolled away by now, so the stage carries its own */
  .voices.is-scrolly .voices__foot {
    position: absolute;
    right: var(--gutter);
    bottom: 0;
    left: var(--gutter);
    display: flex;
    align-items: center;
    height: 2.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--ink-2);
  }
}
@media (max-width: 34rem) {
  .voices.is-scrolly .voices__lead { margin-top: 0.6rem; font-size: 0.9375rem; line-height: 1.7; }
  .voices.is-scrolly .voices__note { margin-top: 0.4rem; font-size: 0.8125rem; }
  .voices.is-scrolly .voice { --vp: 0.75rem; --vx: 1rem; padding-bottom: 0.85rem; }
}

/* the voices arrive one after another; the list items themselves stay free for site.js to move */
.js .voices__stream.stagger > * { transform: none; transition: none; }
.js .voices__stream.stagger:not(.is-in) > * { opacity: 1; }
.js .voices__stream.stagger > * > .voice { opacity: 0; transform: translateY(18px); }
.js .voices__stream.stagger.is-in > * > .voice {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out) calc(var(--i, 0) * 70ms), transform 0.8s var(--ease-out) calc(var(--i, 0) * 70ms),
    background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.voices__stream > :nth-child(7) { --i: 6; }
.voices__stream > :nth-child(8) { --i: 7; }

/* ---------- reach: pretend post demo ---------- */

@media (max-width: 52rem) {
  .demo .stage { gap: 1.5rem; }
  .demo .stage__text { display: contents; }
  .demo__copy { order: 1; }
  .demo-phone { order: 2; }
  .demo__note { order: 3; margin-top: 0; }
}
.demo__note { margin-top: 1.5rem; max-width: 26rem; font-size: 0.75rem; line-height: 1.7; color: var(--muted); }

.demo-phone {
  display: flex;
  flex-direction: column;
  justify-self: center;
  width: min(100%, 22rem);
  min-height: 27rem;
  padding: 1.5rem 1.25rem;
  background: var(--night);
  color: var(--on-night);
  border: 0.5rem solid var(--night-deep);
  border-radius: 2.75rem;
  box-shadow: 0 30px 60px -20px color-mix(in oklch, var(--ink) 45%, transparent);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.demo-screen { flex: 1 1 auto; animation: panel-in 0.45s var(--ease-out); }
.demo-screen[hidden] { display: none; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-size: 1rem; }
.demo-label { margin-bottom: 0.4rem; font-size: 0.75rem; font-weight: 400; color: var(--mint); }

.demo-text {
  min-height: 9.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--night-line);
  border-radius: 1rem;
  background: var(--night-2);
  font-size: 1rem;
  line-height: 1.7;
}
.demo-text:empty::before { content: attr(data-empty); color: var(--on-night-muted); }
.demo-count { margin-top: 0.35rem; text-align: right; font-size: 0.75rem; color: var(--on-night-muted); font-variant-numeric: tabular-nums; }
.demo-hint { margin-top: 0.75rem; font-size: 0.75rem; color: var(--on-night-muted); }
.demo-samples { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.demo-samples button, .demo-issue .ui__stance button {
  min-height: 44px;
  border: 1px solid var(--night-line);
  background: transparent;
  color: var(--on-night);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.demo-samples button { padding: 0 1rem; border-radius: 999px; font-size: 0.875rem; }
.demo-samples button:hover, .demo-issue .ui__stance button:hover { border-color: var(--mint); }
.demo-samples button[aria-pressed="true"] { background: var(--on-night); border-color: var(--on-night); color: var(--night); font-weight: 400; }
/* the phone's own buttons: "post" on the first screen, and the one that moves the demo on */
.demo-post, .demo-next {
  width: 100%;
  min-height: 3rem;
  margin-top: 1.25rem;
  border: 0;
  border-radius: 1rem;
  background: var(--mint-deep);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s var(--ease-out);
}
.demo-post:active, .demo-next:active { transform: scale(0.98); }
.demo-next[hidden] { display: none; }
.demo-post:disabled { opacity: 0.4; cursor: not-allowed; }


.demo-issue { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--night-line); animation: panel-in 0.45s var(--ease-out); }
.demo-issue .ui__title { font-size: 1.1875rem; }
.demo-issue .ui__stance button { padding: 0.5rem 0.25rem; border-radius: 0.75rem; font-size: 0.8125rem; line-height: 1.4; }
.demo-issue .ui__stance button[aria-pressed="true"] { background: var(--on-night); border-color: var(--on-night); color: var(--night); font-weight: 400; }

.demo-paras { display: grid; gap: 0.9rem; margin: 1.1rem 0; }
.demo-paras li { display: grid; grid-template-columns: 3.6rem 1fr 2.6rem; align-items: center; gap: 0.6rem; font-size: 0.8125rem; }
.demo-paras i { height: 0.45rem; border-radius: 99px; background: var(--night-line); overflow: hidden; }
/* the bar is revealed by a clip rather than by growing, so nothing is re-laid out while it moves */
.demo-paras b {
  display: block;
  height: 100%;
  background: var(--mint-deep);
  clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0 round 99px);
  transition: clip-path 0.7s var(--ease-out);
}
.demo-paras em { font-style: normal; text-align: right; color: var(--mint); font-variant-numeric: tabular-nums; }
.demo-phone .ui__steps li { transition: color 0.3s; }
.demo-phone .ui__title + .ui__steps { margin-top: 1.1rem; }

/* sample UI, drawn to match the app */
.ui__row { display: flex; align-items: center; gap: 0.75rem; }
.ui__avatar {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--night-2); border: 1px solid var(--night-line);
  font-weight: 400; font-size: 0.875rem;
}
.ui__meta { font-size: 0.75rem; color: var(--on-night-muted); line-height: 1.4; }
.ui__meta b { display: block; color: var(--on-night); font-size: 0.875rem; }
.ui__chip {
  margin-left: auto;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--mint) 18%, transparent);
  color: var(--mint);
  font-size: 0.75rem;
  white-space: nowrap;
}
.ui__body { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.85; }
.ui__title { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.45; }
.ui__sub { margin-top: 0.6rem; color: var(--on-night-muted); font-size: 0.875rem; }
.ui__stance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1.25rem; }
.ui__stance div {
  padding: 0.6rem 0.4rem; text-align: center;
  border: 1px solid var(--night-line); border-radius: 0.75rem;
  font-size: 0.8125rem; line-height: 1.4;
}
.ui__stance b { display: block; font-size: 1.125rem; font-family: var(--font-display); }
.ui__bar { display: flex; gap: 3px; height: 8px; margin-top: 0.9rem; border-radius: 99px; overflow: hidden; }
.ui__bar span:nth-child(1) { flex: 62; background: var(--mint-deep); }
.ui__bar span:nth-child(2) { flex: 26; background: var(--neutral); }
.ui__bar span:nth-child(3) { flex: 12; background: var(--seal-on-night); }
.ui__line { display: block; height: 0.5rem; margin-top: 0.45rem; border-radius: 99px; background: var(--night-line); }
.ui__line--s { width: 55%; }
.ui__line--m { width: 78%; }
.ui__steps { display: grid; gap: 0.6rem; margin-top: 1.1rem; }
.ui__steps li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.9rem; border-radius: 0.8rem; background: var(--night-2);
}
.ui__steps svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--mint); }
.ui__steps .is-wait { color: var(--on-night-muted); }
.ui__steps .is-wait svg { color: var(--on-night-muted); }
.ui__reply {
  margin-top: 1.1rem; padding: 1rem 1.1rem; border-radius: 1rem 1rem 1rem 0.3rem;
  background: var(--night-2); border: 1px solid var(--night-line);
}
.ui__reply small { color: var(--mint); font-size: 0.75rem; }
.ui__reply p { margin-top: 0.35rem; }

/* ---------- news ---------- */

.status { background: var(--paper-2); }
.status__foot { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; color: var(--ink-2); font-size: 0.9375rem; }

.news-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.news-head h2 { font-size: var(--step-3); font-weight: 500; }

.news-list { border-top: 2px solid var(--ink); }
.news-row a {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.news-row__meta { display: flex; align-items: center; gap: 0.75rem; }
.news-row time, .news-feature time, .article__meta time {
  font-size: 0.875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
/* news titles break only where their author marked a break (｜ in the Markdown title) */
.news-row__title, .news-feature h2, .article__head h1, .pager { word-break: keep-all; overflow-wrap: anywhere; }
.news-row__title { font-size: var(--step-1); font-weight: 400; line-height: 1.6; text-wrap: balance; }
.news-row a:hover .news-row__title { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
@media (max-width: 52rem) {
  .news-row a { grid-template-columns: minmax(0, 1fr); }
  .news-row__meta { grid-column: 1 / -1; }
}

.tag { font-size: 0.75rem; font-weight: 400; line-height: 1.6; white-space: nowrap; color: var(--muted); }

/* generated covers: a crop of the Reach mark, different for every post */
.cover { aspect-ratio: 1200 / 630; border-radius: var(--radius); overflow: hidden; }
.cover svg { display: block; width: 100%; height: 100%; }
.cover--notice { background: var(--paper-2); color: var(--line); }
.cover--dev { background: var(--night); color: var(--night-line); }
.cover--act { background: var(--card); color: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }

.news-page { padding-bottom: clamp(4rem, 8vw, 6rem); }
.news-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.news-feature__meta { display: flex; align-items: center; gap: 0.75rem; }
.news-feature h2 { margin-top: 0.9rem; font-size: var(--step-2); font-weight: 500; line-height: 1.45; }
.news-feature h2 a { text-decoration: none; }
.news-feature h2 a::after { content: ""; position: absolute; inset: 0; }
.news-feature:hover h2 a { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 2px; }
.news-feature__text > p:last-child { margin-top: 1rem; color: var(--ink-2); }
.news-feature .cover { transition: transform 0.6s var(--ease-out); }
.news-feature:hover .cover { transform: scale(1.015); }
@media (max-width: 52rem) { .news-feature { grid-template-columns: 1fr; } }

/* article */
.article__head { padding-block: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.article__head > * { max-width: 46rem; }
.crumbs ol { display: flex; flex-wrap: wrap; font-size: 0.875rem; }
.crumbs li + li::before { content: "/"; margin: 0 0.6rem; color: var(--muted); align-self: center; }
.crumbs li { display: inline-flex; }
.crumbs ol { margin-left: -0.35rem; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.35rem; color: var(--ink-2); text-underline-offset: 0.3em; }
.article__meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.article__head h1 { margin-top: 1rem; font-size: min(var(--step-3), 7.2vw); font-weight: 900; line-height: 1.35; } /* on a phone, small enough for the longest marked phrase of a title */
.article__lead { margin-top: 1.25rem; font-size: var(--step-1); line-height: 1.85; color: var(--ink-2); }
.article__cover .cover { aspect-ratio: 1200 / 400; }
.article__body { max-width: 40rem; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem); font-size: 1.0625rem; }
.article__body > * + * { margin-top: 1.3em; }
.article__body h2 { margin-top: 2.4em; font-size: var(--step-2); font-weight: 500; }
.article__body h3 { margin-top: 2em; font-size: var(--step-1); font-weight: 500; }
.article__body ul, .article__body ol { padding-left: 1.4em; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li + li { margin-top: 0.5em; }
.article__body li:has(> strong:first-child) { color: var(--ink-2); }
.article__body strong { color: var(--ink); }
.article__body li::marker { color: var(--muted); font-weight: 400; }
.article__body a { text-underline-offset: 0.3em; }
.article__body a:hover { text-decoration-thickness: 2px; }

.article__pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  padding-block: 0 clamp(4rem, 8vw, 6rem);
}
.article__pager::before { content: ""; grid-column: 1 / -1; height: 1px; margin-bottom: 1rem; background: var(--line); }
.pager { display: block; padding: 0.75rem 0; text-decoration: none; font-weight: 400; line-height: 1.6; }
.pager small { display: block; margin-bottom: 0.3rem; font-size: 0.8125rem; font-weight: 400; color: var(--muted); }
.pager:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.pager--prev small::before { content: "← "; }
.pager--next { grid-column: 2; text-align: right; }
.pager--next small::after { content: " →"; }
.article__all { grid-column: 1 / -1; }
@media (max-width: 40rem) {
  .article__pager { grid-template-columns: 1fr; }
  .pager--next { grid-column: 1; text-align: left; }
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 6.5rem);
  align-items: start;
}
.contact h1 { --fit-max: 3.125rem; font-size: var(--step-3); font-weight: 900; line-height: 1.18; white-space: nowrap; }
.contact__note { margin-top: 2rem; font-size: 0.9375rem; color: var(--ink-2); max-width: 26rem; }
.contact__note a { text-underline-offset: 0.3em; }
.contact__panel {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--paper-2);
  border-radius: var(--radius);
}
@media (max-width: 52rem) { .contact { grid-template-columns: 1fr; } }

.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field + .field { margin-top: 1.75rem; }
.field > label, .field legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  padding: 0;
  font-weight: 400;
}
.field__req, .field__opt { font-size: 0.75rem; font-weight: 400; padding: 0 0.5rem; border-radius: 999px; line-height: 1.7; }
.field__req { background: var(--ink); color: var(--paper); }
.field__opt { color: var(--ink-2); border: 1px solid var(--line); }
.field input[type="email"], .field textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid color-mix(in oklch, var(--ink) 28%, transparent);
  border-radius: 0.8rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.7;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 10rem; }
.field input:hover, .field textarea:hover { border-color: color-mix(in oklch, var(--ink) 50%, transparent); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--ink); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__help { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-2); }
.field__err { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 400; color: var(--error); }

.topics { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.topics label { position: relative; }
.topics input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topics span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1.5px solid color-mix(in oklch, var(--ink) 28%, transparent);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.9375rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.topics input:hover + span { border-color: var(--ink); }
.topics input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 400; }
.topics input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cta--button { border: 0; background: none; font: inherit; font-weight: 400; cursor: pointer; }
.cta--button:disabled { cursor: progress; opacity: 0.7; }
.form-status { font-size: 0.9375rem; color: var(--error); }
.form-status a { color: inherit; font-weight: 400; }
.form-done h2 { font-size: var(--step-2); font-weight: 500; }
.form-done p { margin-top: 1rem; color: var(--ink-2); }
.form-done .text-link { margin-top: 1rem; }
.form-done:focus { outline: none; }

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


.site-footer {
  background: var(--night);
  color: var(--on-night-muted);
  font-size: 0.875rem;
  padding-block: 3.5rem 2.5rem;
}
.site-footer a { color: var(--on-night); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: var(--on-night); }
.site-footer .brand__name small { color: var(--on-night-muted); }
.site-footer .brand img { filter: brightness(0) invert(1); opacity: 0.92; } /* one colour, light, on the dark footer */
.footer__about { margin-top: 1rem; max-width: 26rem; line-height: 1.8; }
.footer__links { display: grid; gap: 0.25rem; align-content: start; }
.footer__links a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  text-decoration-thickness: 1px; text-underline-offset: 0.35em; width: fit-content;
}
.footer__links a:hover { text-decoration-thickness: 2px; }
.footer__links svg { width: 1.1rem; height: 1.1rem; }
.footer__copy { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--night-line); font-size: 0.75rem; }
@media (max-width: 40rem) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- subpage shared ---------- */

.page-head { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: var(--step-4); font-weight: 900; line-height: 1.18; }
.page-head__lead { margin-top: 1.5rem; max-width: 36em; font-size: var(--step-1); line-height: 1.85; color: var(--ink-2); }

.prose { max-width: 38em; }
.prose p + p { margin-top: 1.2em; }

.goals li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem clamp(2rem, 5vw, 4rem);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.goals li:last-child { border-bottom: 1px solid var(--line); }
.goals h3 { font-size: var(--step-2); font-weight: 500; line-height: 1.4; }
.goals p { color: var(--ink-2); }
@media (max-width: 52rem) { .goals li { grid-template-columns: 1fr; } }

.ainote { max-width: 40rem; }
.ainote p + p { margin-top: 1rem; }
.ainote p { color: var(--ink-2); }

/* ---------- line icons (one set, 48px grid, 2.4 stroke) ---------- */

@property --ico-bg {
  syntax: "<color>";
  inherits: true;
  initial-value: oklch(0.978 0.006 150);
}
.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico .dot { fill: currentColor; stroke: none; }
.ico .occlude { fill: var(--ico-bg, var(--paper)); }

/* ---------- reach page: the Reach line ---------- */

.reach-hero {
  background: var(--paper);
  --ico-bg: var(--paper);
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.reach-hero__head h1, .reach-hero__head h2 {
  --fit-max: 5.75rem;
  font-size: clamp(2.5rem, 1.6rem + 4.4vw, 5.75rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.route {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1200 / 440;
  margin-top: clamp(1rem, 3vw, 2rem);
}
.route__map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route__map--narrow { display: none; }
.route__track { fill: none; stroke: var(--ink); stroke-width: 14; }
.route__map--narrow .route__track { stroke-width: 6; }
.route__chev { fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.route__train { fill: var(--seal); stroke: var(--paper); stroke-width: 6; }
.route__map--narrow .route__train { stroke-width: 3; }

.route__stops { position: absolute; inset: 0; }
.stop {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8.4%;
  transform: translate(-50%, -50%);
}
.stop__ring {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  border: clamp(4px, 0.55vw, 7px) solid var(--ink);
  color: var(--ink);
  --ico-bg: var(--paper);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), --ico-bg 0.35s var(--ease-out), transform 0.5s var(--ease-out);
}
.stop.is-lit .stop__ring { background: var(--ink); color: var(--paper); --ico-bg: var(--ink); transform: scale(1.1); }
.stop__ring .ico { width: 54%; height: 54%; }
.stop__label {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  text-align: center;
}
.stop__label b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 0.7rem + 1.7vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
}
.stop__label small { display: block; margin-top: 0.4rem; font-size: 0.875rem; color: var(--ink-2); }
/* upper stops carry their name above the ring, lower stops below: the inside of the loop stays clear */
.stop:not(.stop--low) .stop__label { top: auto; bottom: calc(100% + 0.8rem); }
@supports (font-size: 1cqi) {
  /* sized from the diagram, so the names stay inside it and never run into the heading above */
  .stop__label { top: calc(100% + clamp(0.4rem, 1.1cqi, 0.8rem)); }
  .stop:not(.stop--low) .stop__label { top: auto; bottom: calc(100% + clamp(0.4rem, 1.1cqi, 0.8rem)); }
  .stop__label b { font-size: clamp(1rem, 3.2cqi, 2.4rem); }
  .stop__label small { margin-top: clamp(0.2rem, 0.5cqi, 0.4rem); font-size: clamp(0.75rem, 1.55cqi, 0.875rem); line-height: 1.4; }
}
@media (max-width: 52rem) {
  .stop__label small {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

.reach-hero__lead {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 34em;
  font-size: var(--step-1);
  line-height: 1.85;
}

@media (max-width: 40rem) {
  .route { aspect-ratio: 400 / 210; }
  .route__map--wide { display: none; }
  .route__map--narrow { display: block; }
  .stop { left: var(--mx); top: var(--my); width: 13%; }
  .stop__ring { border-width: 3px; }
  .stop__label { top: calc(100% + 0.35rem); }
  .stop:not(.stop--low) .stop__label { bottom: calc(100% + 0.35rem); }
  .stop__label b { font-size: 0.9375rem; }
  .stop__label small {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

.goals li { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; }
@media (max-width: 52rem) {
  .goals li { grid-template-columns: 1fr; }
}

/* about page */
.statement {
  --fit-max: 3.125rem;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.4;
  max-width: 18em;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
}
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

.charter { margin-top: 2rem; border-top: 1px solid var(--line); }
.charter li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }

.story { padding-block: clamp(5rem, 12vw, 9rem); background: var(--paper-2); }
.story__text {
  max-width: 21em;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 0.75rem + 2.4vw, 3.125rem);
  font-weight: 500;
  line-height: 1.55;
  word-break: auto-phrase;
}


/* the members stand side by side; each column is the photo, who they are and their own message (no pop-up) */
.members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 2px solid var(--ink); }
.member { word-break: keep-all; overflow-wrap: anywhere; }
.member__photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.member__role { margin-top: 1.25rem; font-size: var(--step--1); line-height: 1.4; color: var(--muted); }
.member__name { margin-top: 0.2rem; font-size: var(--step-3); font-weight: 500; line-height: 1.3; letter-spacing: 0.06em; }
.member__facts { margin-top: 0.5rem; color: var(--ink-2); }
.member__facts span { display: block; }
@media (max-width: 52rem) { .members { grid-template-columns: 1fr; gap: clamp(2.5rem, 8vw, 3.5rem); } }

/* the member's message: a letter in the shape of the site's speech bubble, signed in a brush hand */
.message {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  padding: clamp(1.25rem, 3.5vw, 2.25rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 1.75rem);
  border: 1.5px solid var(--ink);
  border-radius: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem) 0.4rem;
  background: var(--card);
}
.message__label { margin-bottom: 0.75rem; font-size: var(--step--1); line-height: 1.4; color: var(--muted); }
.message blockquote { margin: 0; max-width: 31em; line-height: 2.05; }
.message blockquote p + p { margin-top: 1em; }
.message__sign { margin-top: 1.25rem; text-align: right; font-family: "Yuji Syuku", var(--font-display); font-size: var(--step-2); line-height: 1.5; letter-spacing: 0.1em; }

/* the mark of the app: a phone and the word "app". It heads whatever is about the app Reach, so the
   app is not taken for the group of the same name. */
.apptag { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: var(--step-0); font-weight: 500; line-height: 1.4; }
.apptag__pic { flex: none; width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.voices__app { margin-bottom: 0.9rem; }

/* a button that goes somewhere */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.5rem 1.6rem;
  border: 1.5px solid var(--ink);
  border-radius: 0.9rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: var(--step-0);
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover, .btn:focus-visible { background: var(--paper); color: var(--ink); }
.on-night .btn { border-color: var(--on-night); background: var(--on-night); color: var(--night); }
.on-night .btn:hover, .on-night .btn:focus-visible { background: var(--night); color: var(--on-night); }

/* home: the app the group is building has a section of its own, dark like the app's screens */
.appband { padding-block: clamp(4rem, 9vw, 7rem); background: var(--night); color: var(--on-night); }
.appband__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.appband .apptag { color: var(--on-night-muted); }
.appband h2 { margin-top: 0.6rem; font-size: min(var(--step-3), 8.4vw); font-weight: 500; line-height: 1.4; }
.appband__text { margin-top: 1.25rem; max-width: 30em; line-height: 1.95; color: var(--on-night-muted); }
.appband__go { margin-top: 1.75rem; }
.appband__shot { justify-self: center; width: min(15rem, 100%); border: 0.45rem solid var(--night-deep); border-radius: 2rem; box-shadow: 0 0 0 1px var(--rim); }
@media (max-width: 40rem) {
  .appband__grid { grid-template-columns: 1fr; }
  .appband__shot { width: min(13rem, 70%); }
}


/* privacy */
.policy { max-width: 42rem; counter-reset: pol; }
.policy section { padding-block: 1.75rem; border-top: 1px solid var(--line); }
.policy h2 { font-size: var(--step-1); font-weight: 500; }
.policy p { margin-top: 0.6rem; color: var(--ink-2); }

.band-paper2 { background: var(--paper-2); }

/* ---------- motion ----------
   Everything here is opt-in: it only applies once the inline head script has set .js,
   and all of it is switched off under prefers-reduced-motion. Content is never hidden
   without a way back: site.js removes .js if it fails to load. */

/* .reveal and .stagger no longer fade in (v14). The classes remain as hooks: site.js still marks
   them .is-in, which the voices feed on the Reach page uses for its own arrival. */
.stagger > :nth-child(2) { --i: 1; }
.stagger > :nth-child(3) { --i: 2; }
.stagger > :nth-child(4) { --i: 3; }
.stagger > :nth-child(5) { --i: 4; }
.stagger > :nth-child(6) { --i: 5; }

/* headings come up line by line from behind a mask */
.line { display: block; clip-path: inset(-0.12em -100vw -0.2em -100vw); }
.line > span { display: block; }

/* A heading with .fit sizes itself from its container (.fitbox) so that its longest line,
   --chars full-width characters, always sits on one row: never cut, never one stray character. */
.fitbox { container-type: inline-size; }
@supports (font-size: 1cqi) {
  .fit.lines { font-size: clamp(1.5rem, calc(94cqi / var(--chars)), var(--fit-max, 4.75rem)); }
  .fit.lines .line { white-space: nowrap; }
}
.js .lines .line > span {
  transform: translateY(130%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .lines.is-in .line > span { transform: none; }
.lines .line:nth-child(2) > span { --i: 1; }
.lines .line:nth-child(3) > span { --i: 2; }

/* long statements darken phrase by phrase as they are scrolled through */
.js [data-fill].is-armed > span { opacity: 0.2; transition: opacity 0.5s var(--ease-out); }
.js [data-fill].is-armed > span.is-lit { opacity: 1; }

/* header tucks away on the way down */
.site-header.is-hidden { transform: translateY(-100%); }

/* the Reach line draws itself once, then the stops arrive, then the train leaves */
.route__map--wide .route__track { --len: 2200; }
.route__map--narrow .route__track { --len: 789; }
.js .route.is-armed .route__track { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.js .route.is-armed.is-drawn .route__track { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s cubic-bezier(0.65, 0, 0.35, 1); }
.js .route.is-armed .stop { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
.js .route.is-armed.is-drawn .stop {
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(0.45s + var(--i, 0) * 0.14s);
}
.route .stop:nth-child(2) { --i: 1; }
.route .stop:nth-child(3) { --i: 2; }
.route .stop:nth-child(4) { --i: 3; }
.route .stop:nth-child(5) { --i: 4; }
.js .route.is-armed .route__chev, .js .route.is-armed .route__train { opacity: 0; transition: opacity 0.6s; }
.js .route.is-armed.is-running .route__chev, .js .route.is-armed.is-running .route__train { opacity: 1; }

/* moving between pages: a short cross-fade where the browser supports it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .lines .line > span { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* on the app page the loop follows the voices scene, so it no longer sits under the header */
.reach-hero--after { margin-top: 0; padding-top: clamp(3.5rem, 7vw, 6rem); }

/* ---------- v14 home: the vision and the four missions ----------
   No vermilion on this page. A voice is always drawn as a speech bubble: the title is one, and
   small ones appear in the pictures. Every rule describes the finished state; the "before"
   states are in the motion block at the end, so with reduced motion or without script the
   page is simply the finished page. */

/* Line breaks: the text is written in short phrases with <wbr> between them, and lines break
   only there (and after punctuation). No word is cut in two, in any browser. */
.home, .footer__about { word-break: keep-all; overflow-wrap: anywhere; }
.home :is(h1, h2, h3, h4) { word-break: keep-all; }
.nb { white-space: nowrap; } /* a few words that must stay on one line */

/* line icons (Lucide, ISC licence; the files are in source/raw/icons-lucide) */
.pic { flex: none; width: clamp(2.5rem, 4.5vw, 3.5rem); height: auto; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

/* a voice */
.vb {
  display: inline-grid;
  place-items: center;
  padding: 0.6em 0.9em;
  border-radius: 0.85em 0.85em 0.85em 0.2em;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step--1);
  line-height: 1.2;
  white-space: nowrap;
}

/* opening: a student's message. It is edited the way one edits on a computer: the old words are
   selected and typed over. Then the mark is built beside it. The opening has the first screen
   to itself. */
.opening { --p: 1; display: grid; align-content: center; min-height: calc(100svh - var(--header-h)); padding-block: clamp(1rem, 3svh, 2.5rem) clamp(1.5rem, 5svh, 3.5rem); }
.opening__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  grid-template-areas: "say crest" "lead crest";
  gap: 0 clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.say { grid-area: say; align-self: end; }
.say__who { margin: 0 0 0.4rem 0.5rem; font-size: var(--step--1); line-height: 1.4; color: var(--muted); }
.bubble {
  padding: clamp(1rem, 2.4vw, 1.75rem) clamp(1.25rem, 3.4vw, 2.75rem);
  border: 1.5px solid var(--ink);
  border-radius: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.5rem, 3.5vw, 2.75rem) 0.4rem;
  background: var(--card);
}
.say__edited { margin: 0.4rem 0.75rem 0 0; text-align: right; font-size: 0.75rem; line-height: 1.4; color: var(--muted); }
.edit {
  font-size: clamp(1.5rem, 5vw, 4.5rem);
  font-size: clamp(1.5rem, min(calc(98cqi / 9), 12svh), 4.5rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}
.edit__line { display: block; white-space: nowrap; }
.ed__from { display: none; position: relative; isolation: isolate; }
.ed__from::before { /* the selection, as a text editor shows it */
  content: "";
  position: absolute;
  inset: 0.1em -0.02em 0.04em;
  z-index: -1;
  background: var(--sky-soft);
  transform: scaleX(0);
  transform-origin: 100% 50%;
}
.caret { position: relative; display: inline-block; width: 0; height: 1em; vertical-align: -0.14em; }
.caret::after {
  content: "";
  position: absolute;
  top: -0.06em;
  bottom: -0.06em;
  left: 0.02em;
  width: max(2px, 0.045em);
  background: var(--ink);
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.opening__lead { grid-area: lead; align-self: start; margin-top: clamp(1.25rem, 3vw, 2rem); max-width: 30em; font-size: var(--step-1); line-height: 1.85; color: var(--ink-2); }

/* the mark, built once on arrival: the round voice, the pillars from the inside out, the beams */
.crest {
  --c: clamp(0, calc((var(--p) - 0.6) / 0.08), 1);    /* voice */
  --i: clamp(0, calc((var(--p) - 0.66) / 0.1), 1);    /* inner pillars */
  --o: clamp(0, calc((var(--p) - 0.72) / 0.1), 1);    /* outer pillars */
  --b: clamp(0, calc((var(--p) - 0.82) / 0.1), 1);    /* beams */
  grid-area: crest;
  justify-self: center;
  width: min(100%, 17rem, 38svh);
  margin: 0;
}
/* the proportions are measured from the group's logo (source/Photos/reachinstitutethinktank-icon-c.png) */
.crest__mark { position: relative; aspect-ratio: 341 / 315; }
.crest__mark > span { position: absolute; background: var(--forest); }
.crest__beam { left: 0; width: 100%; height: 10.5%; clip-path: inset(0 calc((1 - var(--b)) * 50%)); }
.crest__beam--top { top: 0; }
.crest__beam--base { top: 89.5%; }
.crest__pillar { top: 22.9%; width: 10.3%; height: 60.3%; clip-path: inset(calc((1 - var(--i)) * 50%) 0); }
.crest__pillar--1 { left: 4.1%; }
.crest__pillar--2 { left: 24.3%; }
.crest__pillar--3 { left: 65.7%; }
.crest__pillar--4 { left: 85.9%; }
.crest__pillar--1, .crest__pillar--4 { clip-path: inset(calc((1 - var(--o)) * 50%) 0); }
.crest__voice { top: 42.9%; left: 40.5%; width: 19.35%; height: 20.95%; border-radius: 50%; clip-path: circle(calc(var(--c) * 50%)); }

/* vision: a seesaw. It leans to the side of the older generations' voices; voices sent from a
   phone land on the younger side and it comes level. */
.vision { background: var(--paper-2); padding-block: clamp(4rem, 9vw, 7rem); }
.vision h2 { font-size: min(var(--step-3), 8.2vw); font-weight: 500; line-height: 1.4; white-space: nowrap; }
.vision__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.seesaw { container-type: inline-size; margin: 0; }
.seesaw__art { position: relative; height: 45cqi; margin-top: 4cqi; }
.seesaw__art::after { content: ""; position: absolute; top: 36cqi; right: 2cqi; left: 20cqi; height: 1.5px; background: var(--line); } /* the ground */
.seesaw__phone { position: absolute; top: 5cqi; left: 2cqi; width: 10cqi; }
.seesaw__phone .pic { display: block; width: 100%; }
.seesaw__pivot { position: absolute; top: 30cqi; left: 54cqi; width: 8cqi; height: 6cqi; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.seesaw__plank { position: absolute; top: 28.8cqi; left: 24cqi; width: 68cqi; height: 1.2cqi; border-radius: 1cqi; background: var(--ink); }
.sv { /* one voice on the seesaw */
  --dx: 0cqi;
  --dy: 0cqi;
  --t: 0s;
  position: absolute;
  bottom: calc(100% + 1.7cqi);
  width: 7.5cqi;
  height: 5.2cqi;
  border-radius: 1.5cqi;
  background: var(--ink);
}
.sv::after { /* the tail of the speech bubble; the bubble stands on it */
  content: "";
  position: absolute;
  top: calc(100% - 0.1cqi);
  left: 1.2cqi;
  width: 1.8cqi;
  height: 1.7cqi;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.sv--y1, .sv--y3 { left: 1.5cqi; }
.sv--y2, .sv--y4 { left: 10cqi; }
.sv--o1, .sv--o3 { right: 1.5cqi; }
.sv--o2, .sv--o4 { right: 10cqi; }
.sv--y3, .sv--y4, .sv--o3, .sv--o4 { bottom: calc(100% + 8.9cqi); }
.sv--o1, .sv--o2, .sv--o3, .sv--o4 { background: var(--neutral); }
.sv--o1::after, .sv--o2::after, .sv--o3::after, .sv--o4::after { right: 1.2cqi; left: auto; clip-path: polygon(0 0, 100% 0, 100% 100%); }
/* where each arriving voice starts (beside the phone), measured from where it lands, and when it leaves */
.sv--y2 { --dx: -24cqi; --dy: -6.5cqi; --t: 0.18s; }
.sv--y4 { --dx: -24cqi; --dy: 0.7cqi; --t: 1.08s; }
.sv--y3 { --dx: -15.5cqi; --dy: -0.5cqi; --t: 1.98s; }
.seesaw__label { position: absolute; top: 38.5cqi; font-size: max(0.75rem, 2.5cqi); line-height: 1.3; white-space: nowrap; color: var(--ink-2); transform: translateX(-50%); }
.seesaw__label--phone { top: 16cqi; left: 7cqi; }
.seesaw__label--young { left: 33.5cqi; }
.seesaw__label--old { left: 82.5cqi; }
.terms { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.term h3 { padding-top: 1rem; border-top: 2px solid var(--ink); font-size: var(--step-2); font-weight: 500; line-height: 1.45; }
.term p { margin-top: 0.6rem; max-width: 28em; color: var(--ink-2); }
@media (max-width: 52rem) { .vision__grid { grid-template-columns: 1fr; } }

/* what the group is doing: four missions, each laid out its own way */
.doing { padding-top: clamp(4.5rem, 10vw, 8rem); }
.doing h2 { font-size: var(--step-2); font-weight: 500; }
.doing p { margin-top: 0.75rem; color: var(--ink-2); }
/* a mission heading is sized so that its longest phrase (ten characters) fits its column */
.fitcol { container-type: inline-size; }
.mission { font-size: min(var(--step-3), 9.6cqi); font-weight: 500; line-height: 1.4; }

/* mission 1: the dark band is the place where policy is made. A voice goes there from the
   students; what is heard there comes back. */
.m1 { margin-top: clamp(2.5rem, 6vw, 4rem); padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--night); color: var(--on-night); }
.lanes { max-width: 50rem; margin: clamp(2rem, 5vw, 3rem) 0 0; }
.lanes__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(0.75rem, 3vw, 2rem); align-items: center; }
.lanes__end { display: grid; justify-items: center; gap: 0.4rem; text-align: center; font-size: var(--step--1); line-height: 1.4; white-space: nowrap; }
.lanes__track { container-type: inline-size; position: relative; height: 7.5rem; }
.lanes .vb { font-size: var(--step-0); }
.lanes .pic { width: clamp(2.75rem, 5vw, 3.75rem); }
.lanes__track::before, .lanes__track::after { content: ""; position: absolute; right: 0; left: 0; border-top: 1.5px dashed var(--night-line); }
.lanes__track::before { top: 1.7rem; }
.lanes__track::after { bottom: 1.7rem; }
.lanes__go, .lanes__back { position: absolute; left: 0; z-index: 1; }
.lanes__go { top: 0.4rem; background: var(--on-night); color: var(--night); transform: translateX(calc(100cqi - 100%)); }
.lanes__back { bottom: 0.4rem; background: var(--night); color: var(--on-night); box-shadow: inset 0 0 0 1.5px var(--on-night-muted); border-radius: 0.85em 0.85em 0.2em 0.85em; }
.m1__acts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.m1__acts h4 { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; line-height: 1.5; }
.m1__acts p { margin-top: 0.4rem; max-width: 26em; line-height: 1.9; color: var(--on-night-muted); }
@media (max-width: 40rem) { .m1__acts { grid-template-columns: 1fr; } }

/* mission 2: one complaint, and the proposal it is written up as */
.m2 { padding-block: clamp(4.5rem, 10vw, 8rem); }
.m2__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.m2__body, .m3__body, .m4__body { margin-top: 1rem; max-width: 30em; color: var(--ink-2); }
.mission + p { margin-top: 1.5rem; }
.case { display: grid; gap: 1.25rem; margin: 0; }
.case__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(0.75rem, 2vw, 1.25rem); align-items: start; }
.case__row .pic { width: clamp(2.25rem, 4vw, 3rem); margin-top: 1.5rem; }
.case__label { margin-bottom: 0.35rem; font-size: var(--step--1); line-height: 1.4; color: var(--muted); }
.case__post { width: fit-content; max-width: calc(13.6em + 2.4rem); text-wrap: balance; padding: 0.85rem 1.2rem; border-radius: 1.3rem 1.3rem 1.3rem 0.35rem; background: var(--paper-2); font-size: var(--step-1); line-height: 1.7; color: var(--ink-2); }
.case__paper { padding: 1rem 1.3rem 0.6rem; border: 1.5px solid var(--ink); background: var(--card); }
.case__paper p:first-child { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; line-height: 1.5; }
.case__note { margin-top: 0.5rem; text-align: right; font-size: 0.6875rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 52rem) { .m2__grid { grid-template-columns: 1fr; } }

/* mission 3: a student grows, past knowing, thinking and talking it over, up to the line where
   the vote begins */
.m3 { background: var(--paper-2); padding-block: clamp(4.5rem, 10vw, 8rem); }
.m3__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.growth { margin: 0; }
.growth__art { position: relative; width: min(100%, 21rem); height: 18.25rem; margin-inline: auto; }
.growth__goal {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 2.75rem;
  border-bottom: 1.5px dashed var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.2;
}
.growth__goal .pic { width: 1.9rem; }
.growth__marks { position: absolute; top: 2.75rem; bottom: 2.5rem; left: 0; width: 6.75rem; border-right: 1.5px solid var(--ink); }
.growth__marks li { position: absolute; right: 0; padding-right: 1rem; font-size: var(--step--1); line-height: 1; white-space: nowrap; transform: translateY(50%); }
.growth__marks li::after { content: ""; position: absolute; top: 50%; right: 0; width: 0.6rem; border-top: 1.5px solid var(--ink); }
.growth__marks li:nth-child(1) { bottom: 85%; }
.growth__marks li:nth-child(2) { bottom: 65%; }
.growth__marks li:nth-child(3) { bottom: 45%; }
.growth__person { position: absolute; top: 2.75rem; bottom: 2.5rem; left: 9.5rem; width: 4.25rem; transform-origin: 50% 100%; }
.growth__person i { position: absolute; top: 0; left: 50%; width: 3rem; height: 3rem; margin-left: -1.5rem; border-radius: 50%; background: var(--ink); }
.growth__person b { position: absolute; top: 3.5rem; right: 0; bottom: 0; left: 0; border-radius: 2rem 2rem 0.35rem 0.35rem; background: var(--ink); }
.growth__now { position: absolute; bottom: 0; left: 11.625rem; font-size: var(--step--1); line-height: 1.4; white-space: nowrap; color: var(--ink-2); transform: translateX(-50%); }
@media (max-width: 52rem) { .m3__grid { grid-template-columns: 1fr; } }

/* mission 4: learn, research, think, propose, in that order from the top */
.m4 { padding-block: clamp(4.5rem, 10vw, 8rem); }
.m4__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}
.stack { display: flex; flex-direction: column; max-width: 24rem; }
.stack li {
  --n: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: -1.5px;
  padding: 1rem 1.4rem 1.05rem;
  border: 1.5px solid var(--ink);
  background: var(--card);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.3;
}
.stack .pic { width: 1.9rem; }
.stack li:nth-child(2) { --n: 1; }
.stack li:nth-child(3) { --n: 2; }
.stack li:nth-child(4) { --n: 3; }
@media (max-width: 52rem) {
  .m4__grid { grid-template-columns: 1fr; align-items: start; }
  .m4__grid > div { order: -1; }
}

/* who runs it */
.run {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 3rem;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.run__who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
}
.run__who span { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: 0; color: var(--muted); }
.run__who b { white-space: nowrap; }
.run__note { max-width: 30em; color: var(--ink-2); }

@media (max-width: 52rem) {
  /* one column: the message and the mark share the first screen, the introduction follows */
  .opening { align-content: start; }
  .opening__grid { grid-template-columns: 1fr; grid-template-areas: "say" "crest" "lead"; gap: clamp(0.75rem, 2.5svh, 1.75rem); }
  .crest { width: min(56vw, 16rem, 32svh); }
  .opening__lead { margin-top: 0; }
}

/* The "before" states. The opening plays once on arrival (site.js); every figure with data-scene
   plays once when it is well inside the window (site.js adds .is-in) and then stays finished. */
@media (prefers-reduced-motion: no-preference) {
  /* opening: the message as it was first written, until each part has been typed over */
  .js .opening:not(.is-done) .ed:not(.is-typed) .ed__to { display: none; }
  .js .opening:not(.is-done) .ed:not(.is-typed) .ed__from { display: inline; }
  .ed.is-sel .ed__from::before { transform: scaleX(1); transition: transform 0.36s steps(4, jump-end); }
  .ed--a.is-sel .ed__from::before { transition-duration: 0.01s; }
  .ed.is-sel > .caret { visibility: hidden; }
  .say__edited { transition: opacity 0.6s linear; }
  .js .opening:not(.is-done) .say__edited { opacity: 0; }

  /* vision: three voices leave the phone for the younger side, and the plank comes level */
  .js .seesaw[data-scene] .seesaw__plank { transform: rotate(8deg); }
  .js .seesaw[data-scene] :is(.sv--y2, .sv--y3, .sv--y4) { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.4); }
  /* one clock for both: a voice takes 0.72s to arrive and lands at 0.9s, 1.8s and 2.7s, which are
     25%, 50% and 75% of the plank's 3.6s. The plank starts to move on exactly those marks. */
  .js .seesaw.is-in .seesaw__plank { animation: seesaw-level 3.6s both; }
  .js .seesaw.is-in :is(.sv--y2, .sv--y3, .sv--y4) { animation: sv-fly 0.72s cubic-bezier(0.4, 0, 0.9, 0.75) var(--t) both; }

  /* mission 1: the voice goes over, then what was heard comes back */
  .js .lanes[data-scene] .lanes__go { transform: none; }
  .js .lanes[data-scene] .lanes__back { transform: translateX(calc(100cqi - 100%)); }
  .js .lanes.is-in .lanes__go { transform: translateX(calc(100cqi - 100%)); transition: transform 1.5s var(--ease-out) 0.2s; }
  .js .lanes.is-in .lanes__back { transform: none; transition: transform 1.5s var(--ease-out) 1.5s; }

  /* mission 2: the proposal is typed in */
  .js [data-scene] .ch { opacity: 0; transition: opacity 0.14s linear calc(0.4s + var(--c, 0) * 60ms); }
  .js .is-in .ch { opacity: 1; }

  /* mission 3: the student grows up to the first word and stops for a moment, then to the next,
     and so on up to the line; each word darkens as the head reaches it */
  .js .growth[data-scene] .growth__person { transform: scale(0.26); }
  .js .growth[data-scene] :is(.growth__marks li, .growth__goal span, .growth__goal .pic) { opacity: 0.3; }
  .js .growth.is-in .growth__person { animation: grow-steps 4.3s both; }
  .js .growth.is-in :is(.growth__marks li, .growth__goal span, .growth__goal .pic) { opacity: 1; transition: opacity 0.4s linear; }
  .js .growth.is-in .growth__marks li:nth-child(3) { transition-delay: 0.75s; }
  .js .growth.is-in .growth__marks li:nth-child(2) { transition-delay: 1.75s; }
  .js .growth.is-in .growth__marks li:nth-child(1) { transition-delay: 2.75s; }
  .js .growth.is-in :is(.growth__goal span, .growth__goal .pic) { transition-delay: 3.8s; }

  /* mission 4: the rows come in from the top, each one unrolling downward */
  .js .stack[data-scene] li { clip-path: inset(0 -2px 100% -2px); transition: clip-path 0.6s var(--ease-out) calc(0.1s + var(--n) * 0.3s); }
  .js .stack.is-in li { clip-path: inset(-2px); }
}
@keyframes grow-steps {
  0%, 5% { transform: scale(0.26); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
  19%, 28% { transform: scale(0.45); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }  /* 知る */
  42%, 51% { transform: scale(0.65); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }  /* 考える */
  65%, 74% { transform: scale(0.85); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }  /* 対話する */
  90%, 100% { transform: scale(1); }
}
@keyframes sv-fly {
  from { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.4); }
  25% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes seesaw-level {
  0% { transform: rotate(8deg); animation-timing-function: linear; }
  25% { transform: rotate(8deg); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }   /* the first voice lands */
  37% { transform: rotate(5.4deg); animation-timing-function: linear; }
  50% { transform: rotate(5.4deg); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); } /* the second */
  62% { transform: rotate(2.7deg); animation-timing-function: linear; }
  75% { transform: rotate(2.7deg); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); } /* the third */
  87%, 100% { transform: rotate(0deg); }
}

/* ---------- weight ----------
   Bold is not how this site points at things. Only the main heading of a page other than the
   home page is heavy. Everything else is told apart by size, by ink against grey, by a rule
   above it, or by colour. */
b, strong { font-weight: inherit; }
.act__to b, .act__split b { color: var(--ink); }
.act__paras b { color: var(--muted); }
/* links in the text are blue, words and line; the header's contact link and the footer's links keep the colour of their surroundings */
.text-link, .contact__note a, .article__body a { color: var(--link); text-decoration-color: currentColor; text-decoration-thickness: 1.5px; }
.on-night .text-link { color: var(--link-on-night); }
.contact-link, .footer__links a { text-decoration: none; }
.contact-link:hover, .footer__links a:hover { text-decoration: underline; text-underline-offset: 0.35em; }
