/* ── 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;
}
.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; }

/* ── Type ─────────────────────────────────────────────────────────────── */
.display {
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: clamp(3.1rem, 1.6rem + 6.6vw, 7.4rem);
  text-wrap: balance;
}
.h2 {
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem);
  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; }
.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; max-width: 34rem; }
.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-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: 74rem; margin: 0 auto; padding: 0 var(--gutter); }
.container.wide { max-width: 82rem; }
.container.narrow { max-width: 46rem; }
.section { padding: 5.5rem 0; }
.section.rule { border-top: 1px solid var(--line); }
.section.tight { padding: 3.5rem 0; }
.split { display: grid; gap: 3rem; }
.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 .cta { margin-top: 2rem; }
.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: 82rem; 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 .mark { height: 1.25rem; width: auto; flex: none; }
.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: 40px; }
html.framed .hero, html.framed .page-hero { padding-top: calc(var(--nav-h) + 6rem); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 1.25rem; }
.nav-session { display: none; }
.pill {
  display: inline-flex; align-items: center; height: 2rem; padding: 0 0.875rem; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-size: 0.875rem; font-weight: 400; white-space: nowrap;
  transition: opacity 0.2s, transform 0.16s var(--ease);
}
.pill:hover { opacity: 0.85; }
.pill:active { transform: scale(0.97); }
.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.4s 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; }
.line-svg circle { fill: currentColor; opacity: 0; transform: scale(0.3); transform-box: fill-box; transform-origin: center; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.line.is-done circle { opacity: 1; transform: none; }
/* 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-drawing .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 circle, .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; }
}

/* 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(2.8rem, 1.4rem + 4.4vw, 5.6rem); }
.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.25s 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-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-cream { background: #F3F1EC; color: #161514; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-lg:hover, .btn-md:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -14px rgba(22, 21, 20, 0.55); }
.btn:active { transform: scale(0.98); }
.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, .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); }
.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, .center .qr { margin-left: auto; margin-right: auto; }
@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 .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: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s 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%);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.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-template-columns: repeat(3, 1fr); gap: 1rem; }
.fig { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.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.35s var(--ease); }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-a { padding: 0 0 1.375rem; max-width: 38rem; }
.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; }

.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; }
@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 svg { width: 0.85rem; height: auto; }
.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 { 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; }
.typing { align-self: flex-start; }
.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; }
.typing { display: flex; gap: 4px; padding: 0.8rem 0.875rem; }
.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; }

.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; }
/* 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; }

/* ── 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 .mark { 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); }

/* ── Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal], html.js .w, html.js .dia .dot, html.js .dia[data-kind="fade"] .lit,
  html.js .dia[data-kind="draw"] :is(path, line, polyline, circle, rect, ellipse),
  html.js .ui-thread.is-playing .msg-wrap { opacity: 1; transform: none; transition: none; animation: none; stroke-dashoffset: 0; }
  .card, .btn, .arrow .ic, .faq-plus { transition: none; }
}
