/* ── Union marketing site ────────────────────────────────────────────────
   One family (Untitled Sans), hairlines, quiet motion, and one accent with
   one meaning: it appears only where someone says yes. Every public page is composed from these classes. */

@font-face { font-family: "Untitled Sans"; src: url("/fonts/untitled-sans/UntitledSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Untitled Sans"; src: url("/fonts/untitled-sans/UntitledSans-RegularItalic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Untitled Sans"; src: url("/fonts/untitled-sans/UntitledSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Untitled Sans"; src: url("/fonts/untitled-sans/UntitledSans-MediumItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --cream: #FAF8F3;
  --paper: #FFFFFF;
  --ink: #161514;
  --ink-2: #2E2C29;
  --muted: #5F5B55;
  --faint: #6F6A63;
  --line: rgba(22, 21, 20, 0.10);
  --line-2: rgba(22, 21, 20, 0.20);
  --tint: rgba(22, 21, 20, 0.05);
  --tint-2: rgba(22, 21, 20, 0.08);
  --surface: var(--cream);
  --accent: #2F4FB8;
  --accent-dark: #8DA2F2;
  --accent-tint: rgba(47, 79, 184, 0.09);
  --shadow: 0 1px 2px rgba(22, 21, 20, 0.04), 0 24px 48px -28px rgba(22, 21, 20, 0.22);
  --shadow-lg: 0 2px 4px rgba(22, 21, 20, 0.04), 0 40px 80px -40px rgba(22, 21, 20, 0.28);
  --font: "Untitled Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 56px;
  --gutter: 1.5rem;
  --max: 82rem;
}
.band-light {
  --cream: #FAF8F3; --paper: #FFFFFF; --ink: #161514; --ink-2: #2E2C29; --muted: #5F5B55; --faint: #6F6A63;
  --line: rgba(22, 21, 20, 0.10); --line-2: rgba(22, 21, 20, 0.20); --tint: rgba(22, 21, 20, 0.05); --tint-2: rgba(22, 21, 20, 0.08);
  --surface: #FAF8F3; --shadow: 0 1px 2px rgba(22, 21, 20, 0.04), 0 24px 48px -28px rgba(22, 21, 20, 0.22);
  background: var(--cream); color: var(--ink);
}
html.dark, .band-dark {
  --cream: #121110;
  --paper: #1A1917;
  --ink: #F3F1EC;
  --ink-2: #E4E1DA;
  --muted: rgba(243, 241, 236, 0.66);
  --faint: rgba(243, 241, 236, 0.50);
  --line: rgba(243, 241, 236, 0.12);
  --line-2: rgba(243, 241, 236, 0.24);
  --tint: rgba(243, 241, 236, 0.06);
  --tint-2: rgba(243, 241, 236, 0.10);
  --surface: #121110;
  --accent: var(--accent-dark);
  --accent-tint: rgba(141, 162, 242, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 48px -28px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}
.band-dark { background: var(--cream); color: var(--ink); }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol, dl, dd, dt, figure { margin: 0; padding: 0; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--cream); }
.nums { font-variant-numeric: tabular-nums; }
.strong, b, strong { font-weight: 500; color: var(--ink); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.ic { width: 1em; height: 1em; flex: none; }
.text-center { text-align: center; }
:is(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: 999px; }

/* ── Type ─────────────────────────────────────────────────────────────── */
.display {
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: clamp(2.17rem, 1.12rem + 4.62vw, 5.18rem);
  text-wrap: balance;
}
.h2 {
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(1.47rem, 0.91rem + 1.96vw, 2.52rem);
  text-wrap: balance;
}
.h3 {
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-size: 1.1875rem;
}
.lead { font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem); line-height: 1.42; text-wrap: pretty; max-width: 34rem; }
.body { font-size: 1.0625rem; line-height: 1.58; text-wrap: pretty; }
.small { font-size: 0.8125rem; line-height: 1.5; }
.kicker { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem; }
.intro .h2 { max-width: 20ch; }
.intro .lead { margin-top: 1.5rem; }
.intro .arrow { margin-top: 1.5rem; }
.intro.center { text-align: center; }
.intro.center .h2, .intro.center .lead { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 1rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; } .mt-16 { margin-top: 4rem; }
.max-30 { max-width: 30rem; } .max-34 { max-width: 34rem; } .max-40 { max-width: 40rem; }

/* ── Layout ───────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 46rem; }
.section { padding: 5.5rem 0; }
.section.rule { border-top: 1px solid var(--line); }
.section.tight { padding: 3.5rem 0; }
.section.flush { padding-top: 3rem; }
.split { display: grid; gap: 3rem; }
.split > * { min-width: 0; }
.split.center { align-items: center; }
.cards { display: grid; gap: 1.25rem; }
.cols-2 { display: grid; gap: 2.5rem; }
.grid-3 { display: grid; gap: 2.5rem; }
.close { text-align: center; padding: 7rem 0; }
.close .h2 { margin: 0 auto; }
.close .body { max-width: 28rem; margin: 1.5rem auto 0; }
.close .cta-row, .close .arrow { margin-top: 2rem; }
@media (min-width: 640px) {
  :root { --gutter: 2rem; }
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  :root { --gutter: 2.5rem; }
  .section { padding: 8rem 0; }
  .section.tight { padding: 4.5rem 0; }
  .close { padding: 9rem 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1.35fr; gap: 5rem; }
  .split.even { grid-template-columns: 1fr 1fr; }
  .split.flip > :first-child { order: 2; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .sticky { position: sticky; top: calc(var(--nav-h) + 2.5rem); align-self: start; }
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav.is-surface, .nav.is-open {
  background: color-mix(in srgb, var(--cream) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-color: var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav-brand { display: inline-flex; width: fit-content; }
/* The lockup: the folded band and the word, in the site's own face. */
.lockup { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); }
.lockup .um { width: 1.25rem; height: 1.25rem; }
.lockup-word { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.nav-links { display: none; gap: 2rem; }
.nav-links a, .nav-session, .nav-menu a { font-size: 0.9375rem; font-weight: 400; color: var(--muted); transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-session:hover, .nav-links a[aria-current], .nav-menu a[aria-current] { color: var(--ink); }
html.framed .nav { top: var(--top-bar, 40px); }
html.framed .hero, html.framed .page-hero { padding-top: calc(var(--nav-h) + 6rem); }
.nav-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 1.25rem; }
.nav-session { display: none; }
.nav-burger { position: relative; width: 2.25rem; height: 2.25rem; margin-right: -0.5rem; display: grid; place-items: center; }
.nav-burger span { position: absolute; left: 0.6rem; right: 0.6rem; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
.nav-burger span:first-child { top: 0.85rem; }
.nav-burger span:last-child { bottom: 0.85rem; }
.nav.is-open .nav-burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav-burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.nav-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.nav.is-open .nav-menu { grid-template-rows: 1fr; }
.nav-menu-inner { overflow: hidden; display: flex; flex-direction: column; padding: 0 var(--gutter); }
.nav.is-open .nav-menu-inner { padding-bottom: 1.25rem; border-top: 1px solid var(--line); }
.nav-menu a { padding: 0.75rem 0; font-size: 1.0625rem; }
@media (min-width: 640px) { .nav-session { display: inline; } }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-burger, .nav-menu { display: none; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 4.5rem) 0 3.5rem; }
.hero-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(22, 21, 20, 0.16) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 42% 20%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 55% at 42% 20%, #000 0%, transparent 80%);
  opacity: 0.6;
}
.hero-face {
  position: absolute; z-index: 0; pointer-events: none;
  right: -22%; top: 1%; width: min(74vw, 46rem); aspect-ratio: 1;
  opacity: 0.38;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
}
.hero-face canvas { width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 3.5rem; align-items: end; }
.hero-copy .lead { margin-top: 1.75rem; max-width: 33rem; }
.hero-actions { margin-top: 2.25rem; }
.hero-side { position: relative; justify-self: stretch; }
.hero-thread { width: min(100%, 26rem); margin-left: auto; box-shadow: var(--shadow-lg); }
.w { display: inline-block; }
html.js .w { opacity: 0; transform: translateY(0.3em); animation: rise 0.9s var(--ease) forwards; animation-delay: var(--d, 0ms); }
/* The line: from the ask in the headline, down the margin, to the closing ask.
   client/site.js lays it out from the page and draws it with scroll. The long
   vertical run is a composited bar scaled with scroll; only the two short
   ends are stroked paths, so drawing never repaints the page. */
.page { position: relative; }
.line { position: absolute; inset: 0; z-index: 3; pointer-events: none; color: var(--accent); display: none; }
html.js .line.is-laid { display: block; }
.line-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.line-svg path { fill: none; stroke: currentColor; stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.line-run { position: absolute; width: 1.5px; margin-left: -0.75px; background: currentColor; clip-path: inset(0 0 100% 0); will-change: clip-path; }
/* The line ends by drawing the mark, the left foot where the line arrives
   (client/site.js places it and sizes it to the closing heading). */
.line-mark { position: absolute; left: 0; top: 0; width: var(--size, 2.5rem); height: var(--size, 2.5rem); }
.line-mark .um { width: 100%; height: 100%; color: var(--ink); }
/* The tip rides the end of the line as it draws: a dot with a faint halo. */
.line-tip { position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: currentColor; will-change: transform; opacity: 0; transition: opacity 0.3s var(--ease); }
.line-tip::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid currentColor; opacity: 0.35; }
.line:is(.is-drawing.is-moving, .is-heading) .line-tip { opacity: 1; }
/* A ring where each section rule crosses the line; it fills as the tip passes. */
.line-stop { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; border: 1.5px solid currentColor; background: var(--cream); box-sizing: border-box; transition: background 0.4s var(--ease); }
.line-stop.is-past { background: currentColor; }
.line.is-short .line-run, .line.is-short .line-mark, .line.is-short .line-tip, .line.is-short .line-stop { display: none; }
html.js .hero-copy [data-reveal] { transition-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (min-width: 768px) {
  .hero { padding: calc(var(--nav-h) + 7rem) 0 5rem; }
  .hero-face { right: -6%; top: -2%; width: min(50vw, 48rem); opacity: 0.5; }
}
@media (min-width: 1024px) {
  .hero { min-height: 100svh; display: flex; align-items: center; }
  .hero-inner { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
  .hero-side { min-height: 34rem; display: flex; align-items: flex-end; }
  .hero-thread { margin-bottom: -2.5rem; }
}

/* Hero figure candidates (pages/home.mjs HEROES). The stack pins a figure
   above the hero thread; the thread stays the product demo in every option. */
:root { --warm: #C2643C; --warm-tint: rgba(194, 100, 60, 0.12); }
.hero-stack { position: relative; width: min(100%, 26rem); margin-left: auto; }
.hero-stack .hero-thread { position: relative; z-index: 1; width: 100%; }
.hero-meet, .hero-photo, .hero-intro { display: none; }
.mono { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; font-size: 0.8125rem; font-weight: 500; color: #fff; flex: none; }
.mono-a { background: var(--warm); }
.mono-b { background: var(--accent); }

/* Two lines, two people, one meeting point that runs down into the thread. */
.hero-meet { position: absolute; left: -10rem; width: 38rem; bottom: 100%; aspect-ratio: 560 / 176; pointer-events: none; }
.hero-meet svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-meet path { fill: none; stroke-width: 1.4px; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: meet-draw 1.6s var(--ease) forwards; }
.meet-a { stroke: var(--warm); animation-delay: 0.9s !important; }
.meet-b { stroke: var(--accent); animation-delay: 1.05s !important; }
.meet-ab { stroke: var(--ink); animation-delay: 2.3s !important; animation-duration: 0.5s !important; }
.meet-knot { fill: var(--cream); stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; opacity: 0; animation: rise 0.5s var(--ease) 2.2s forwards; }
.meet-tag { position: absolute; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.75rem 0.3rem 0.3rem; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); font-size: 0.875rem; white-space: nowrap; opacity: 0; animation: meet-fade 0.7s var(--ease) 0.7s forwards; }
.meet-tag .faint { margin-left: 0.125rem; }
.meet-tag-a { left: 10.7%; top: 19%; transform: translate(-50%, -50%); }
.meet-tag-b { left: 89.3%; top: 19%; transform: translate(-50%, -50%); animation-delay: 0.85s; }
@keyframes meet-draw { to { stroke-dashoffset: 0; } }
@keyframes meet-fade { to { opacity: 1; } }

/* A warm, faceless photograph behind the thread. */
.hero-photo { position: absolute; margin: 0; right: -4rem; bottom: calc(100% - 4rem); width: 32rem; aspect-ratio: 2 / 1; border-radius: 1.25rem; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9) sepia(0.08); }
.hero-photo.is-art { border-radius: 0; -webkit-mask-image: radial-gradient(ellipse 54% 56% at 50% 50%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 54% 56% at 50% 50%, #000 72%, transparent 100%); }
.hero-photo.is-art img { mix-blend-mode: multiply; filter: none; }
.hero-photo + .hero-thread { left: -1.5rem; }
/* Narrow screens: the picture is a strip the thread overlaps. */
@media (max-width: 1023.98px) {
  .hero-stack { width: 100%; }
  .hero-photo { display: block; position: relative; right: auto; bottom: auto; width: 100%; margin-bottom: -2.5rem; }
  .hero-photo + .hero-thread { left: 0; width: calc(100% - 1.5rem); margin-left: auto; }
}

/* Type: places people were introduced across, set large and quiet. */
.hero-type { position: absolute; z-index: 0; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); top: calc(var(--nav-h) + 1.5rem); display: none; flex-direction: column; align-items: flex-end; gap: 0.25rem; pointer-events: none; }
.hero-type p { display: flex; align-items: center; gap: 1rem; font-size: clamp(1.75rem, 2.6vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); opacity: 0.13; white-space: nowrap; }
.hero-type p:nth-child(1) { opacity: 0.5; }
.hero-type p:nth-child(n+4) { display: none; }
.hero-type-link { display: inline-block; width: 2.5rem; height: 1.5px; background: currentColor; position: relative; }
.hero-type p:nth-child(1) .hero-type-link { background: var(--warm); }
html.js .hero-type p { transform: translateX(1.5rem); animation: type-in 1.2s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 300ms); }
@keyframes type-in { to { transform: none; } }

/* A finished introduction, pinned above the conversation that led to it. */
.hero-intro { position: absolute; left: -8rem; right: 6rem; bottom: calc(100% - 1rem); margin: 0; padding: 1rem 1.125rem; box-shadow: var(--shadow-lg); }
.hero-intro-pair { display: flex; align-items: center; gap: 0.5rem; }
.hero-intro-pair .mono { width: 2.25rem; height: 2.25rem; font-size: 0.9375rem; }
.hero-intro-link { flex: 1; height: 1.5px; background: linear-gradient(90deg, var(--warm), var(--accent)); }
.hero-intro-names { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.75rem; font-size: 0.8125rem; line-height: 1.35; }
.hero-intro-names > div { display: flex; flex-direction: column; }
.hero-intro-names > div:last-child { text-align: right; }
.hero-intro-status { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.875rem; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.hero-intro-yes { color: var(--accent); font-weight: 500; }

@media (min-width: 1024px) {
  .hero-meet, .hero-photo, .hero-intro { display: block; }
  .hero-type { display: flex; }
  .hero-stack { margin-bottom: -2.5rem; }
  .hero-stack .hero-thread { margin-bottom: 0; }
}

/* Warmth touch: warmer paper, ink and shadow; sunlight instead of graph paper. */
html.t-palette {
  --cream: #F7F1E7; --paper: #FFFDF8; --ink: #211B16; --ink-2: #3A312A; --muted: #685B4F; --faint: #76695C;
  --line: rgba(70, 45, 20, 0.12); --line-2: rgba(70, 45, 20, 0.22); --tint: rgba(110, 70, 30, 0.06); --tint-2: rgba(110, 70, 30, 0.09);
  --shadow: 0 1px 2px rgba(60, 35, 15, 0.05), 0 24px 48px -28px rgba(60, 35, 15, 0.26);
  --shadow-lg: 0 2px 4px rgba(60, 35, 15, 0.05), 0 40px 80px -40px rgba(60, 35, 15, 0.32);
}
html.t-palette .hero-dots { background-image: radial-gradient(ellipse 70% 60% at 85% 0%, rgba(240, 196, 140, 0.28), transparent 70%), radial-gradient(ellipse 50% 50% at 10% 100%, rgba(194, 100, 60, 0.07), transparent 70%); background-size: auto; -webkit-mask-image: none; mask-image: none; opacity: 1; }

/* Small hero for interior pages */
.page-hero { padding: calc(var(--nav-h) + 4.5rem) 0 3.5rem; }
.page-hero .display { max-width: 13ch; }
.split .display { max-width: none; font-size: clamp(1.96rem, 0.98rem + 3.08vw, 3.92rem); }
.page-hero .lead { margin-top: 1.75rem; max-width: 36rem; }
.page-hero .cta { margin-top: 2.25rem; }
.page-hero .h2 + .small { margin-top: 1rem; }
@media (min-width: 768px) { .page-hero { padding: calc(var(--nav-h) + 7rem) 0 5rem; } }

/* ── Actions ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem; border-radius: 999px; font-weight: 500; white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s, background-color 0.2s;
}
.btn-lg { height: 3.5rem; padding: 0 1.5rem 0 1.75rem; font-size: 1rem; }
.btn-md { height: 2.75rem; padding: 0 1.25rem; font-size: 0.9375rem; }
.btn-pill { height: 2rem; padding: 0 0.875rem; font-size: 0.875rem; }
.btn-sm { height: 2rem; padding: 0 0.875rem; font-size: 0.8125rem; gap: 0.4rem; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-yes { background: var(--accent); color: #F6F8FF; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.cta-row > .btn-ghost { padding-inline: 1.5rem; background: var(--paper); }
/* Hover motion only where a pointer can hover; a tap on a phone would leave it stuck. */
@media (hover: hover) and (pointer: fine) {
  a.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -14px rgba(22, 21, 20, 0.55); }
  a.btn-pill:hover { box-shadow: 0 8px 18px -12px rgba(22, 21, 20, 0.55); }
}
a.btn:active { transform: scale(0.97); }
.btn-num { font-weight: 400; opacity: 0.62; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.close .cta-row, .intro.center .cta-row { justify-content: center; }
.arrow { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 500; font-size: 0.9375rem; color: var(--ink); transition: color 0.2s; }
.arrow .ic { transition: transform 0.25s var(--ease); }
.arrow:hover { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .arrow:hover .ic { transform: translateX(3px); } }
.qr {
  display: flex; align-items: center; gap: 1.25rem; width: fit-content; margin-top: 1.25rem; padding: 1rem 1.25rem 1rem 1rem;
  border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow);
  animation: fade 0.35s var(--ease);
}
.qr[hidden] { display: none; }
.qr-code svg { width: 6.5rem; height: 6.5rem; color: var(--ink); }
.qr-text { display: grid; gap: 0.25rem; }
.close .qr, .intro.center .qr { margin-left: auto; margin-right: auto; }
/* The Union phone app under a closing ask (ui.mjs appCta): quieter than the
   ask above it. Each store's badge at its 40px minimum, black on light, white on dark. */
.app-cta { margin-top: 2.5rem; scroll-margin-top: 6rem; }
.app-cta-store { display: grid; justify-items: center; gap: 0.875rem; }
.app-cta-store[hidden] { display: none; }
.app-cta-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.app-badge { display: inline-flex; border-radius: 7px; transition: transform 0.16s var(--ease); }
.app-badge img { height: 2.5rem; width: auto; }
.app-badge-dark, html.dark .app-badge-light, .band-dark .app-badge-light { display: none; }
html.dark .app-badge-dark, .band-dark .app-badge-dark { display: block; }
a.app-badge:active { transform: scale(0.97); }
.app-cta .qr { margin-top: 0; }
/* The app inside the story (ui.mjs appMoment): left in its text column. */
.app-moment { display: grid; justify-items: start; gap: 0.875rem; margin-top: 2rem; }
.app-moment [data-app-stores][hidden] { display: none; }
.app-moment .app-cta-badges { justify-content: flex-start; }
.app-moment .qr { margin-top: 0; padding: 0; border: 0; background: none; box-shadow: none; gap: 1rem; }
.app-moment .qr-code svg { width: 4.5rem; height: 4.5rem; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.proof { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.proof > p { text-wrap: balance; }
.proof .logos { gap: 1.25rem 2rem; }
.proof .logos img { height: 1.25rem; }

/* ── Blocks ───────────────────────────────────────────────────────────── */
.point { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.point-index { font-size: 0.8125rem; color: var(--faint); margin-bottom: 1.25rem; }
.point .h3 { margin-bottom: 0.6rem; }
.points { display: grid; gap: 2.25rem; }
@media (min-width: 640px) { .points.two { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; } }
@media (min-width: 768px) { .points.three { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; } }

.card {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px;
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  transition: border-color 0.3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--tint), transparent 62%);
}
/* Cards are not links, so hover lights them without lifting them. */
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--line-2); }
  .card:hover::before { opacity: 1; }
}
.card-figure { position: relative; height: 20rem; overflow: hidden; padding: 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, transparent, var(--tint)); }
.card-figure::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.25rem; background: linear-gradient(to bottom, transparent, var(--cream)); pointer-events: none; }
.card-figure .ui { box-shadow: 0 1px 2px rgba(22, 21, 20, 0.05), 0 16px 32px -20px rgba(22, 21, 20, 0.2); }
.card-figure .dia { margin: 0; }
.card-body { position: relative; padding: 1.5rem 1.5rem 1.625rem; }
.card-body .h3 { margin-bottom: 0.5rem; }
.card-body .body { font-size: 0.9375rem; }
.panel { border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--paper) 62%, transparent); padding: 1.5rem; }
@media (min-width: 768px) { .panel { padding: 2.5rem; } }
.panel .ui { box-shadow: var(--shadow); }

.tier { display: grid; gap: 0.75rem; }
.tier-price { font-weight: 500; letter-spacing: -0.035em; line-height: 1; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin: 0.5rem 0 0.75rem; }
.intel { list-style: none; border-top: 1px solid var(--line); }
.intel li { display: grid; gap: 0.35rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }

.figs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1rem; }
/* Label above value; values share one baseline even when a label wraps. */
.fig { display: flex; flex-direction: column-reverse; justify-content: flex-start; }
.fig-value { font-weight: 400; letter-spacing: -0.04em; line-height: 1; font-size: clamp(2rem, 1.2rem + 3.2vw, 4rem); }
.fig .small { margin-top: 0.6rem; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; padding: 1.25rem 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { flex: none; margin-top: 0.3rem; color: var(--faint); transition: transform 0.3s var(--ease); }
.faq-item summary:hover .faq-plus, .faq-item[open] .faq-plus { color: var(--ink); }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-a { padding: 0 0 1.375rem; max-width: 38rem; }
/* The answer opens and closes in height where the browser can animate
   details; elsewhere it opens with a fade and closes at once. */
.faq-item { interpolate-size: allow-keywords; }
.faq-item::details-content { block-size: 0; overflow-y: clip; opacity: 0; transition: block-size 0.3s var(--ease), opacity 0.3s var(--ease), content-visibility 0.3s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; opacity: 1; }
@supports not selector(::details-content) { .faq-item[open] .faq-a { animation: fade 0.4s var(--ease); } }

.xlist { list-style: none; border-top: 1px solid var(--line); }
.xlist li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.5; }
.xlist .ic { color: var(--faint); margin-top: 0.4rem; }

.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; list-style: none; }
.logos img { height: 1.5rem; width: auto; max-width: 6.5rem; user-select: none; filter: brightness(0) opacity(0.42); transition: filter 0.3s var(--ease); }
html.dark .logos img, .band-dark .logos img { filter: brightness(0) invert(1) opacity(0.5); }
.logos li:hover img { filter: none; }
.logos img.h-4 { height: 1rem; } .logos img.h-8 { height: 2rem; }
/* A long row set as an even grid, so it never ends on a short line. */
.logos-grid { display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; justify-items: start; }
@media (max-width: 639px) { .logos-grid { grid-template-columns: repeat(5, auto); column-gap: 1rem; } }

.team { list-style: none; }
.team-row { display: grid; gap: 0.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.team-name { display: flex; flex-direction: column; gap: 0.25rem; }
.team-row-tight { padding: 1rem 0; align-items: baseline; }
@media (min-width: 768px) { .team-row { grid-template-columns: 15rem 1fr; gap: 2rem; } }

.record { border-top: 1px solid var(--line); }
.record div { display: grid; gap: 0.25rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .record div { grid-template-columns: 12rem 1fr; gap: 1.5rem; align-items: baseline; } }

/* ── Product mock-ups ─────────────────────────────────────────────────── */
.ui {
  font-size: 0.8125rem; line-height: 1.45; text-align: left; overflow: hidden;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.ui-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; border-bottom: 1px solid var(--line); }
.ui-head > .strong { flex: 1; }
.ui-head-text { display: flex; flex-direction: column; line-height: 1.3; }
.av { flex: none; width: 2rem; height: 2rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 0.75rem; background: var(--tint); color: var(--ink); }
.av-u { background: var(--ink); color: var(--cream); }
.av-u .mark { width: 1.05rem; height: 1.05rem; }
.av-masked, .masked { background: repeating-linear-gradient(135deg, var(--tint-2) 0 3px, transparent 3px 7px); }
.masked { display: inline-block; height: 0.75rem; width: 6.5rem; border-radius: 4px; }
/* A name in a thread: covered until both sides said yes, then it opens. */
.name { position: relative; display: inline-block; }
.name-mask { position: absolute; inset: 0.1em 0 0.05em; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--tint-2) 0 3px, var(--tint) 3px 7px); transform: scaleX(0); opacity: 0; transform-origin: right center; transition: transform 0.7s var(--ease), opacity 0.5s var(--ease); }
.name-text { transition: opacity 0.6s var(--ease) 0.25s; }
/* Only a thread that is playing covers a name, so no script or reduced motion shows it plainly. */
html.js .is-playing .name:not(.is-open) .name-mask { transform: none; opacity: 1; transition: none; }
html.js .is-playing .name:not(.is-open) .name-text { opacity: 0; }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; height: 1.5rem; padding: 0 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; flex: none; }
.chip .ic { width: 0.8em; height: 0.8em; }
.chip-yes, .chip-ok { background: var(--accent); color: #F6F8FF; border-color: var(--accent); }
.chip-no, .chip-quiet { opacity: 0.55; }
.chip-app { height: 1rem; padding: 0 0.3rem; font-size: 0.5625rem; border: 0; border-radius: 3px; background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.8); }

.thread { position: relative; display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem; min-height: 15rem; }
.msg-wrap { display: flex; flex-direction: column; gap: 0.35rem; }
.msg-wrap-you { align-items: flex-end; }
.msg-wrap-union { align-items: flex-start; }
.msg-wrap-union + .msg-wrap-you, .msg-wrap-you + .msg-wrap-union { margin-top: 0.3rem; }
.msg { max-width: 86%; padding: 0.6rem 0.875rem; border-radius: 1.125rem; font-size: 0.875rem; line-height: 1.42; }
.msg-you { background: var(--ink); color: var(--cream); border-bottom-right-radius: 0.35rem; }
.msg-union { background: var(--tint); border-bottom-left-radius: 0.35rem; }
.msg-time { align-self: center; font-size: 0.6875rem; margin: 0.35rem 0 0.1rem; }
html.js .ui-thread.is-playing .msg-wrap { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
html.js .ui-thread.is-playing .msg-wrap.is-in { opacity: 1; transform: none; }
/* Out of the flow: it sits over the next reply's slot, so showing it moves nothing. */
.typing { position: absolute; left: 1rem; top: 1rem; display: flex; gap: 4px; padding: 0.8rem 0.875rem; opacity: 0; transform: translateY(4px) scale(0.96); transform-origin: left bottom; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); pointer-events: none; }
.typing.is-on { opacity: 1; transform: none; }
.typing[hidden] { display: none; }
.typing span { width: 6px; height: 6px; border-radius: 99px; background: var(--faint); opacity: 0.5; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.brief-rows { padding: 0.25rem 1rem; }
.brief-row { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.brief-row:last-child { border-bottom: 0; }
.brief-row dd { color: var(--ink); }
.brief-asked { padding: 0.875rem 1rem 1rem; border-top: 1px solid var(--line); background: var(--tint); display: grid; gap: 0.2rem; }
.brief-asked p { margin-bottom: 0.4rem; }
.brief-asked p:last-child { margin-bottom: 0; }

.list-rows { list-style: none; }
.list-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row.is-yes { background: var(--accent-tint); }
.list-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.list-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.shape-body { padding: 1rem; display: grid; gap: 0.75rem; }
.shape-body > p { font-size: 0.875rem; line-height: 1.45; }
.shape-name { display: flex; align-items: center; gap: 0.75rem; }
.shape-name .masked { width: 5rem; flex: none; }
.shape-name .faint { display: inline-flex; align-items: center; gap: 0.35rem; }
.shape-actions { display: flex; gap: 0.5rem; margin-top: 0.25rem; }

.mail-meta { padding: 0.875rem 1rem; border-bottom: 1px solid var(--line); display: grid; gap: 0.3rem; }
.mail-meta div { display: grid; grid-template-columns: 3.75rem 1fr; gap: 0.5rem; }
.mail-body { padding: 1rem 1rem 1.125rem; display: grid; gap: 0.6rem; font-size: 0.875rem; line-height: 1.45; }

.ui-slack { background: #1A1D21; color: #D1D2D3; border-color: rgba(255, 255, 255, 0.1); }
.ui-slack .strong { color: #fff; }
.ui-slack .faint { color: rgba(255, 255, 255, 0.45); }
.slack-head { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.8rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.slack-lines { list-style: none; padding: 1rem; display: grid; gap: 1rem; }
.slack-lines li { display: flex; gap: 0.7rem; }
.slack-lines .av { border-radius: 6px; width: 2.1rem; height: 2.1rem; }
.slack-lines .av-slack { background: #4A154B; color: #fff; }
.slack-lines .av-u { background: #F3F1EC; color: #161514; }
.slack-meta { display: flex; align-items: baseline; gap: 0.4rem; line-height: 1.2; }
.slack-lines p { font-size: 0.875rem; line-height: 1.4; margin-top: 0.15rem; }
.slack-mention { color: #1D9BD1; background: rgba(29, 155, 209, 0.15); border-radius: 3px; padding: 1px 2px; }

.orders { list-style: none; }
.orders li { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); display: grid; gap: 0.2rem; }
.orders li:last-child { border-bottom: 0; }
.order-top { display: flex; justify-content: space-between; }
.order-co { font-size: 0.9375rem; color: var(--ink); }
.order-cp { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }

/* ── Diagrams ─────────────────────────────────────────────────────────── */
.dia { color: var(--ink); }
.dia .yes { color: var(--accent); }
.dia-svg { width: 100%; height: auto; }
html.js .dia[data-kind="draw"] :is(path, line, polyline, circle, rect, ellipse):not(.dot) {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
html.js .dia[data-kind="draw"].is-in :is(path, line, polyline, circle, rect, ellipse):not(.dot) { stroke-dashoffset: 0; }
html.js .dia .dot { opacity: 0; transition: opacity 0.9s var(--ease); transition-delay: calc(var(--d, 0ms) + 200ms); }
html.js .dia.is-in .dot { opacity: 1; }
html.js .dia[data-kind="fade"] .lit { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(900ms + var(--d, 0ms)); }
html.js .dia[data-kind="fade"].is-in .lit { opacity: 1; transform: none; }
.dia-world { max-width: 46rem; margin: 0 auto; }
.dia-match { max-width: 35rem; margin: 0 auto; width: 100%; }
.dia-legend { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.25rem 0.75rem 0; }
.dia-key { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8125rem; line-height: 1.35; }
.dia-key svg { flex: none; margin-top: 0.15rem; }
.dia-key span { display: block; color: var(--faint); font-weight: 500; }
.dia-key b { display: block; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.dia-label { font-family: var(--font); font-size: 11.5px; font-weight: 500; fill: var(--faint); letter-spacing: 0.01em; }
.dia-count { fill: var(--ink); font-variant-numeric: tabular-nums; }
.dia-tick { font-family: var(--font); font-size: 10.5px; fill: var(--faint); }
.dia-initials { font-family: var(--font); font-size: 12px; font-weight: 500; fill: var(--ink); }
.dia-callout { font-family: var(--font); font-size: 11.5px; font-weight: 500; fill: var(--ink); }
.chart-note { margin-top: 0.75rem; }
/* Home network band: the intro and its figures on the left, the growth chart
   beside them, the map full width below both. */
.net-split .fig-value { font-size: clamp(2rem, 1.1rem + 2.2vw, 3rem); }
@media (min-width: 1024px) { .net-split { grid-template-columns: 1fr 1fr; } }
/* Drawings scale with their column, so on a phone their text scales up to stay legible. */
@media (max-width: 639px) {
  .dia-label, .dia-callout { font-size: 16px; }
  .dia-tick { font-size: 15px; }
  .dia-initials { font-size: 17px; }
}

/* ── Reveal ───────────────────────────────────────────────────────────── */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.95s var(--ease), transform 0.95s var(--ease); transition-delay: var(--d, 0ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js .dia[data-reveal] { transform: none; }

/* ── Customer story quotes (lib/ui.mjs storyQuotes, client/stories.js) ── */
.stories-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.stories-quotes { display: grid; gap: 3rem 2rem; }
.story-quote { display: flex; flex-direction: column; gap: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink); }
.story-quote-text { margin: 0; font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; }
.story-quote-hang { display: inline-block; width: 0.42em; margin-left: -0.42em; }
.story-quote-who { display: flex; align-items: center; gap: 0.875rem; margin-top: auto; font-size: 0.875rem; line-height: 1.35; }
.story-quote-who > span { display: flex; flex-direction: column; min-width: 0; }
.story-quote-who img { width: 2.75rem; height: 2.75rem; border-radius: 999px; object-fit: cover; object-position: 50% 30%; background: #142148; flex: none; }
.story-quote-go { margin-left: auto; color: var(--faint); transition: transform 0.25s var(--ease), color 0.2s; }
@media (hover: hover) and (pointer: fine) {
  .story-quote:hover .story-quote-go { color: var(--ink); transform: translateX(3px); }
}
/* One quote alone is set larger, across the measure. */
.stories-quotes[data-count="1"] .story-quote-text { font-size: clamp(1.5rem, 1rem + 2vw, 2.52rem); line-height: 1.12; letter-spacing: -0.025em; max-width: 26ch; text-wrap: balance; }
@media (min-width: 768px) {
  .stories-quotes[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
  .stories-quotes[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
.footer-brand { grid-column: span 2; display: flex; flex-direction: column; gap: 1rem; }
.footer-brand .lockup .um { width: 1.125rem; height: 1.125rem; }
.footer-brand .lockup-word { font-size: 1rem; }
.footer-brand .small { max-width: 17rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.8125rem; color: var(--muted); transition: color 0.2s; width: fit-content; }
.footer-col a:hover { color: var(--ink); }
.footer-title { font-size: 0.8125rem; font-weight: 500; margin-bottom: 0.15rem; }
@media (min-width: 768px) {
  .footer { padding: 4.5rem 0 4rem; }
  .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ── Legal prose ──────────────────────────────────────────────────────── */
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; }
.prose p { color: var(--muted); margin-bottom: 0.9rem; line-height: 1.6; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ── Union for Slack ──────────────────────────────────────────────────── */
.slack-add { display: inline-block; line-height: 0; border-radius: 6px; }
.slack-add img { height: 40px; width: auto; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }

/* ── Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Fewer and gentler, not none: things still fade in, nothing travels. */
  html.js [data-reveal] { transform: none; transition: opacity 0.4s var(--ease); transition-delay: var(--d, 0ms); }
  html.js .w { transform: none; animation: appear 0.4s var(--ease) forwards; animation-delay: var(--d, 0ms); }
  html.js .dia[data-kind="fade"] .lit { transform: none; }
  html.js .dia[data-kind="draw"] :is(path, line, polyline, circle, rect, ellipse):not(.dot) { stroke-dashoffset: 0; transition: none; }
  .qr, .faq-item[open] .faq-a { animation-name: appear; }
  .faq-item::details-content { transition: opacity 0.2s var(--ease), content-visibility 0.2s allow-discrete; }
  .btn, .arrow .ic, .faq-plus { transition: none; }
  a.btn:hover, a.btn:active, .arrow:hover .ic { transform: none; }
}
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

.line-art { margin: 0; color: var(--ink); pointer-events: none; }
.line-art svg { display: block; width: 100%; height: 100%; }
.line-art-hero { width: 17rem; height: 12rem; margin: 0 auto 1.5rem; }
.home-lines .hero-side { min-height: 0; }
.home-lines .hero-stack { margin-bottom: 0; }
.home-lines .hero-dots { display: none; }
.line-break-wrap { padding-top: 3rem; }
.line-art-break { width: 100%; }
.home-lines .line-break-wrap + .section { border-top: 0; }
.home-lines .split:has(.line-step) { display: block; }
.home-lines .points:has(.line-step) { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.line-step .line-art { height: 10rem; margin: 0 auto 2rem; }
.line-step .line-art-say { width: 3.2rem; }
.line-step .line-art-match { width: 10rem; }
.line-step .line-art-intro { width: 10rem; }
.line-close-wrap { padding-top: 4rem; }
.line-art-close { width: 16rem; height: 15rem; margin: 0 auto; }
.home-lines .close { border-top: 0; padding-top: 2rem; }
@media (max-width: 767px) {
  .home-lines .points:has(.line-step) { grid-template-columns: 1fr; gap: 2.5rem; }
  .line-step { display: grid; grid-template-columns: 5rem 1fr; gap: 1.25rem; align-items: start; }
  .line-step .line-art { width: 5rem; height: 7rem; margin: 1.25rem 0 0; }
  .line-step .line-art-say { width: 2.25rem; justify-self: center; }
  .line-art-hero { width: 14rem; height: 12rem; }
  .line-break-wrap { padding-top: 2rem; }
  .line-art-close { width: 12rem; height: 12rem; }
}
.line-art path { stroke: currentColor; stroke-width: 0.65px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.page:has(.home-lines) .line { display: none !important; }
.hero:is([data-hero="lines-one"], [data-hero="lines-pen"]) .hero-photo { position: relative; right: auto; bottom: auto; width: 18rem; height: 12rem; margin: 0 auto 1.5rem; aspect-ratio: auto; mask-image: none; -webkit-mask-image: none; mix-blend-mode: multiply; }
.hero:is([data-hero="lines-one"], [data-hero="lines-pen"]) .hero-photo img { object-fit: contain; }
.hero:is([data-hero="lines-one"], [data-hero="lines-pen"]) .hero-side { min-height: 0; }
.page:has(.hero:is([data-hero="lines-one"], [data-hero="lines-pen"])) .line { display: none !important; }

/* Full-page line drawing (home.mjs BACKDROPS): fixed behind every section,
   scaled past the viewport so its lines run off each edge. Opaque bands and
   cards cover it; the open page shows it faintly. */
.page-bg { position: fixed; inset: -6vmax; z-index: -1; pointer-events: none; background: var(--bg) center / cover no-repeat; opacity: var(--bg-o); }
.page:has(.page-bg) .hero-dots, .page:has(.page-bg) .line { display: none !important; }
.page:has(.page-bg) .hero-side { min-height: 0; }
@media (max-width: 767px) { .page-bg { inset: -4vmax -60vw; } }
/* Figure drawings are already cropped at the frame; overscaling cuts their heads off. */
@media (min-width: 768px) { .page-bg[data-set="lines-v3"] { inset: 0; } }

/* ── Entry form: the homepage's one way in (lib/ui.mjs entryForm) ───────── */
.entry { position: relative; display: grid; gap: 0.625rem; max-width: 34rem; }
.entry-row { display: flex; gap: 0.625rem; }
.field {
  width: 100%; min-width: 0; height: 3.5rem; padding: 0 1.375rem; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color 0.2s var(--ease);
}
.field::placeholder { color: var(--faint); }
.field:focus { outline: none; border-color: var(--ink); }
.field[aria-invalid="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.entry-row .field { flex: 1 1 auto; }
.entry button.btn { flex-shrink: 0; cursor: pointer; border: 0; font: inherit; font-weight: 500; }
.entry button.btn:active { transform: scale(0.97); }
.entry button.btn { justify-content: center; }
.entry button.btn[aria-busy="true"] { cursor: progress; }
.entry-dots { display: flex; gap: 5px; }
.entry-dots span { width: 6px; height: 6px; border-radius: 99px; background: currentColor; animation: blink 1.2s infinite; }
.entry-dots span:nth-child(2) { animation-delay: 0.2s; }
.entry-dots span:nth-child(3) { animation-delay: 0.4s; }
/* Turnstile's slot (src/lib/turnstile.ts) takes room only while Cloudflare shows its box. */
.entry-check:not([data-shown]) { position: absolute; }
.entry-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.entry-msg { margin: 0.125rem 0 0 1.375rem; color: var(--ink-2); }
.ways [data-way]:not([hidden]) { display: grid; gap: 0.875rem; }
.home-log { display: grid; gap: 0.5rem; width: 100%; max-width: 34rem; }
.home-log p { margin: 0; max-width: 28rem; padding: 0.7rem 1rem; border-radius: 1.25rem; line-height: 1.45; }
.home-log .mine { justify-self: end; background: var(--ink); color: var(--paper); }
.home-log .theirs { justify-self: start; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.entry.is-done .entry-want, .entry.is-done .entry-row { display: none; }
.entry.is-done .entry-msg { margin-left: 0; font-size: 1rem; color: var(--ink); }
.entry-close { margin: 2.25rem auto 0; text-align: left; }
.entry-close.is-done .entry-msg { text-align: center; }
/* The text-us button beside an entry form (pages/home.mjs orText): the quieter of the two ways in. */
.entry-or { margin-top: 1rem; }
.close .entry-or .cta-row { margin-top: 0; }

/* ── Broker characters (lib/ui.mjs) ───────────────────────────────────────
   The art is printed on cream paper; multiply drops the paper into the page
   so each character sits on the site itself, unframed. */
.pt-byline a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pt-byline a:hover { text-decoration-color: var(--ink); }
.pt-byline img { border-radius: 999px; box-shadow: 0 0 0 1px var(--line); object-fit: cover; flex: none; }
.ui-head-face { width: 2.5rem; height: 2.5rem; border-radius: 999px; object-fit: cover; object-position: 50% 30%; flex: none; box-shadow: 0 0 0 1px var(--line); }

/* Hero: one character, the height of the screen, behind the conversation. */
.broker-portrait { display: block; color: inherit; text-decoration: none; }
.broker-portrait img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.hero-broker { position: relative; z-index: 0; width: min(100%, 30rem); margin: -1rem auto -4rem;
  -webkit-mask-image: radial-gradient(ellipse 52% 50% at 50% 48%, #000 66%, transparent 100%); mask-image: radial-gradient(ellipse 52% 50% at 50% 48%, #000 66%, transparent 100%); }
.hero[data-hero="broker"] .hero-inner { z-index: 1; }
@media (min-width: 1024px) {
  .hero[data-hero="broker"] .hero-inner { position: static; }
  .hero-broker { position: absolute; margin: 0; width: auto; height: min(88%, 52rem); aspect-ratio: 1; right: -3rem; bottom: 0;
    -webkit-mask-image: radial-gradient(ellipse 58% 52% at 56% 50%, #000 66%, transparent 100%); mask-image: radial-gradient(ellipse 58% 52% at 56% 50%, #000 66%, transparent 100%); }
  .hero-broker img { height: 100%; width: auto; }
  .hero[data-hero="broker"] .hero-side { position: relative; z-index: 1; }
  .hero[data-hero="broker"] .hero-thread { width: min(100%, 23rem); margin-left: 0; margin-right: auto; transform: translate(-6rem, 1.5rem); }
}
/* Below a wide screen the face would sit under the conversation: slide the portrait right. */
@media (min-width: 1024px) and (max-width: 1679px) {
  .hero-broker { right: -12rem; }
  .hero[data-hero="broker"] .hero-thread { width: min(100%, 21rem); transform: translate(-6rem, 1.5rem); }
}
/* Narrow desktops: no room for the face beside the conversation, so the
   portrait sits smaller at the top right and the conversation starts below
   his chin, clear of the headline. */
@media (min-width: 1024px) and (max-width: 1365px) {
  .hero-broker { right: -3rem; top: calc(var(--nav-h) + 0.5rem); bottom: auto; height: 25rem; }
  .hero[data-hero="broker"] .hero-side { min-height: 0; padding-top: 12rem; }
  .hero[data-hero="broker"] .hero-thread { transform: translate(-1rem, 0); margin-bottom: 0; }
}

/* Cast row: the characters as small faces beside one line. */
.cast-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cast-row > p { flex: 1 1 22rem; max-width: 40rem; }
.cast-faces { display: flex; list-style: none; padding: 0; margin: 0; }
.cast-faces li + li { margin-left: -0.5rem; }
.cast-faces a { display: block; border-radius: 999px; box-shadow: 0 0 0 2px var(--cream); transition: transform 200ms var(--ease); }
.cast-faces a:hover { transform: translateY(-2px); }
.cast-faces img { display: block; width: 2.5rem; height: 2.5rem; border-radius: 999px; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .cast-faces a { transition: none; } }

.pt-byline { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.75rem; max-width: 34rem; }
.pt-byline img { width: 36px; height: 36px; }
.pt-byline p { font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
.ui .pt-byline { gap: 0.625rem; max-width: none; margin: 0; padding: 0.75rem 1rem; border-top: 1px solid var(--line); }
.ui .pt-byline img { width: 28px; height: 28px; }
.ui .pt-byline p { font-size: 0.75rem; color: var(--faint); }

.pt-spot { margin-top: 2.25rem; }
.pt-spot figure { display: flex; align-items: flex-end; gap: 1.25rem; }
.pt-spot img { width: 11rem; height: 11rem; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.pt-spot figcaption { max-width: 18ch; padding-bottom: 0.25rem; font-size: 0.8125rem; line-height: 1.45; color: var(--faint); }

/* The Union mark in motion. src/lib/brand/mark.ts draws it, markMotion.ts
   drives the light; the static site (site/build.mjs) and the Next app
   (globals.css) both load this file. With no script and no motion the mark
   is whole and still. */

/* On ink the light lifts the band toward paper; on cream (the dark tone) it
   is a passing shade. The back of the band is already pale, so there the
   light moves toward the page itself. */
.um { display: block; flex: none; overflow: visible; aspect-ratio: 1; --um-light: color-mix(in oklab, currentColor 30%, #fffaf0); --um-light-back: #fffdf8; }
.um-dark, html.dark .um { --um-light: color-mix(in oklab, currentColor 45%, #000); --um-light-back: #000; }
.um-d { fill: none; stroke: currentColor; stroke-width: 420; }
.um-back { opacity: 0.45; }
.um-back .um-d { stroke-width: 470; }

/* The light: a short soft dash that runs the loop of the band. Its place and
   strength are set by markMotion.ts; at rest it is out. */
.um-light { opacity: 0; pointer-events: none; }
.um-s { fill: none; stroke: var(--um-light); stroke-width: 560; stroke-dasharray: 0.09 0.91; }
.um-light-back { opacity: 0.6; }
.um-light-back .um-s { stroke: var(--um-light-back); }

/* First page of a visit: the legs come down from the apex, then the back of
   the band unrolls from both feet and the two halves meet in the middle.
   html[data-um-intro] is set by MARK_INTRO_GATE before the page paints. */
@keyframes um-down { from { stroke-dashoffset: 1; } }
@keyframes um-in { from { stroke-dashoffset: -1; } }
@keyframes um-word { from { opacity: 0; transform: translateX(-0.35em); clip-path: inset(0 100% 0 0); } }
html[data-um-intro] .um-intro .um-d { stroke-dasharray: 1 2; }
html[data-um-intro] .um-intro :is(.um-fl, .um-fr) { animation: um-down 900ms cubic-bezier(0.55, 0, 0.1, 1) 150ms both; }
html[data-um-intro] .um-intro :is(.um-bl, .um-br) { animation: um-in 760ms cubic-bezier(0.3, 0.1, 0.1, 1) 830ms both; }
html[data-um-intro] .um-intro ~ .um-word { animation: um-word 1000ms cubic-bezier(0.2, 0.7, 0.2, 1) 760ms both; }

/* Pen: the mark drawn as one continuous stroke, up the left leg, over the
   apex, down the right, then back along the bottom to where it began. Each
   piece waits for the one before; undrawn, they retract in reverse, faster. */
.um-pen .um-d { stroke-dasharray: 1 2; transition: stroke-dashoffset var(--t) var(--e, linear) var(--w); }
.um-pen .um-fl { stroke-dashoffset: -1; --t: 200ms; --w: 420ms; }
.um-pen .um-fr { stroke-dashoffset: 1; --t: 200ms; --w: 220ms; }
.um-pen .um-br { stroke-dashoffset: -1; --t: 110ms; --w: 110ms; }
.um-pen .um-bl { stroke-dashoffset: 1; --t: 110ms; --w: 0ms; }
.um-pen.is-drawn .um-d { stroke-dashoffset: 0; }
.um-pen.is-drawn .um-fl { --t: 480ms; --w: 0ms; --e: cubic-bezier(0.4, 0, 1, 1); }
.um-pen.is-drawn .um-fr { --t: 480ms; --w: 480ms; }
.um-pen.is-drawn .um-br { --t: 270ms; --w: 960ms; }
.um-pen.is-drawn .um-bl { --t: 340ms; --w: 1230ms; --e: cubic-bezier(0, 0, 0.3, 1); }

@media (prefers-reduced-motion: reduce) {
  .um .um-d, .um-word { animation: none !important; transition: none !important; stroke-dashoffset: 0 !important; }
  .um-light { display: none; }
}

/* The assembly figure (lib/motion/assembly.mjs, client/motion/assembly.js).
   The default is the finished mark with both people beneath it; the script
   takes over from there. */
.asm { margin: 0 auto; width: 100%; max-width: 560px; color: var(--ink); }
.asm-stage { position: relative; }
.asm-svg { width: 100%; height: auto; aspect-ratio: 1574.6 / 1394.6; }

/* Who is who: each person stands under their own foot (the feet sit at
   18.5% and 81.5% of the figure's width). Neutral discs, you in ink and
   Maya in a muted tone. */
.asm-foot { position: relative; height: 4.75rem; margin-top: 0.9rem; }
.asm-tag { position: absolute; top: 0; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; width: max-content; max-width: 46%; text-align: center; }
.asm-tag-you { left: 18.5%; }
.asm-tag-maya { left: 81.5%; }
.asm-tag-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.asm .mono-a { background: var(--ink); color: var(--cream); }
.asm .mono-b { background: var(--muted); color: var(--cream); }
.asm-name { font-size: 0.875rem; font-weight: 500; }
.asm-what { font-size: 0.8125rem; color: var(--muted); text-wrap: balance; }

/* Wide screens: the figure stays beside the steps while they scroll, and the
   step being told is the one at full strength. */
@media (min-width: 1024px) {
  .split.center > .asm { align-self: start; position: sticky; top: max(calc(var(--nav-h) + 1.5rem), calc(50vh - 300px)); }
  .split:has(> .asm) .points { gap: 5.5rem; }
}
/* Room between the steps while the story plays: the column's height is the
   figure's sticky range, so this gives each beat a third of a screen of
   scroll. Without script or motion the figure stands still and the steps keep
   their natural spacing. */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  html.js .split:has(> .asm) .points { gap: max(5.5rem, 36vh); }
  html.js .points.asm-steps .point.is-in { transition: opacity 0.6s var(--ease), transform 0.95s var(--ease); transition-delay: 0ms; }
  html.js .points.asm-steps .point.is-in:not(.is-active) { opacity: 0.35; }
}
@media (max-width: 1023.98px) {
  .asm { max-width: 480px; }
}
@media (max-width: 479.98px) {
  .asm-foot { height: 5.5rem; }
  .asm-tag { gap: 0.3rem; max-width: 40%; width: auto; min-width: 8.5rem; }
  .asm-name { font-size: 0.8125rem; }
  .asm-what { font-size: 0.75rem; }
}
