/* ---------- Company pages (about, team, partners, brand) ----------
   After Superpower's Manifesto, Careers and Reviews pages: a statement that darkens word by
   word as you scroll, one narrow column of reading text, people listed as rows, and
   filterable card grids. Loads after product.css, which supplies the page frame,
   section heads, tables and the form. */

/* Narrow reading column */
.cread { max-width: 640px; margin-inline: auto; }
.cread > * + * { margin-top: 20px; }
.cread p { font-size: var(--text-lg); line-height: var(--leading-lg); color: var(--ink-2); }
.cread h2 { font-size: var(--text-xl); font-weight: 400; line-height: var(--leading-xl); letter-spacing: var(--tracking-tight); }
.cread .eyebrow { margin-bottom: -8px; }

/* ---------- About hero: photos on a slowly turning globe around the headline (company.js) ---------- */
.cglobe { overflow: hidden; }
.cglobe__stage {
  --card: clamp(84px, 9.2vw, 216px);
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(640px, calc(100vh - var(--nav-h)), 1200px);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.cglobe__stage.is-dragging { cursor: grabbing; }
.cglobe__center { position: relative; z-index: 500; width: min(100%, 960px); padding: 0 16px; text-align: center; pointer-events: none; }
.cglobe__title { font-size: clamp(44px, 8.5vw, 144px); font-weight: 300; line-height: 0.82; letter-spacing: -0.045em; }
.cglobe__title span { display: block; white-space: nowrap; }
.cglobe__dek { max-width: 420px; margin: 28px auto 0; font-size: var(--text-lg); line-height: 1.45; color: var(--ink-2); }
.cglobe__photos { position: absolute; inset: 0; list-style: none; }
.cglobe__photo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card);
  margin: 0;
  overflow: hidden;
  border-radius: clamp(16px, 1.9vw, 40px);
  background: var(--surface-card);
  translate: -50% -50%;
  will-change: transform, opacity, filter;
}
.cglobe__photo img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.no-js .cglobe__photos { display: none; }

/* ---------- Left-aligned two-tone hero (Careers) ---------- */
.chero { padding: 96px 0 64px; }
.chero__title { max-width: 820px; font-size: var(--text-3xl); font-weight: 400; line-height: var(--leading-3xl); letter-spacing: var(--tracking-tight); }
.chero__title span { color: var(--ink-soft); }
.chero .lead { max-width: 620px; margin-top: 24px; color: var(--muted); }
.chero .actions { margin-top: 32px; }

/* Wide picture under the hero */
.cwide {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: var(--text-sm);
}

.cwide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cwide--low { aspect-ratio: 2000 / 641; }  /* Team page: a low, wide band (about 400px tall at full width) */

/* ---------- Stats row (Manifesto "Fast forward a few years") ---------- */
.cstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 64px; list-style: none; }
.cstats li { display: flex; flex-direction: column; min-height: 220px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface-card); }
.cstats .icon { font-size: 22px; color: var(--ink-soft); }
.cstats b { margin-top: auto; font-size: clamp(48px, 5vw, 72px); font-weight: 400; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cstats b small { margin-left: 4px; font-size: 0.4em; letter-spacing: -0.01em; color: var(--ink-soft); }
.cstats li > span { min-height: 2lh; margin-top: 12px; color: var(--ink-2); } /* same label height keeps the numbers on one line */
.cstats__src { margin-top: 10px; font-size: 12px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong, #d9d9d9); text-underline-offset: 3px; }
.cstats__src:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- Numbered principles ---------- */
.cvalues { display: grid; list-style: none; }
.cvalues li { display: grid; grid-template-columns: 64px 1fr; gap: 8px 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.cvalues li:last-child { border-bottom: 1px solid var(--line); }
.cvalues small { grid-row: span 2; padding-top: 6px; font-size: var(--text-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.cvalues h3 { font-size: var(--text-xl); font-weight: 400; letter-spacing: var(--tracking-tight); }
.cvalues p { color: var(--muted); }

/* ---------- Milestones ---------- */
.cmiles { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; list-style: none; }
.cmiles li { position: relative; padding-top: 40px; }
.cmiles li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.cmiles li::after { content: ""; position: absolute; top: 7px; left: 16px; right: -32px; height: 2px; background: var(--line); }
.cmiles li:last-child::before { background: var(--ink); }
.cmiles li:last-child::after { display: none; }
.cmiles small { font-size: var(--text-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.cmiles h3 { margin-top: 4px; font-size: var(--text-lg); font-weight: 400; }
.cmiles p { margin-top: 4px; color: var(--muted); }

/* ---------- Link cards ---------- */
.clinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.clinks a { display: flex; flex-direction: column; gap: 8px; min-height: 240px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface-card); color: var(--ink); text-decoration: none; transition: transform 0.3s var(--ease); }
.clinks a:hover { transform: translateY(-4px); }
.clinks h3 { font-size: var(--text-xl); font-weight: 400; letter-spacing: var(--tracking-tight); }
.clinks p { color: var(--muted); }
.clinks span { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 500; color: var(--accent-ink); }
.clinks a:hover span .icon { transform: translateX(4px); }
.clinks span .icon { transition: transform 0.2s var(--ease); }

/* ---------- Photos ---------- */
.cpic { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-card); }
.cpic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cstory { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 64px; align-items: center; }
.cstory .cread { margin: 0; }
.cstory .actions { margin-top: 32px; }
.cstory__pic { aspect-ratio: 4 / 5; }
.cgallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.cgallery li { margin: 0; }
.cgallery .cpic { aspect-ratio: 1; }
.cgallery--tall .cpic { aspect-ratio: 4 / 5; }
.cgallery figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.cgallery-wrap { margin-top: 64px; }

/* Filter tabs: pills in a grey track (company.js) */
.cfilter { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--radius-full); background: var(--surface-card); }
.cfilter button { padding: 8px 14px; border: 0; border-radius: var(--radius-full); background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.cfilter button:hover { color: var(--ink); }
.cfilter button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-raised); }
.cbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.cbar h2 { font-size: var(--text-xl); font-weight: 400; letter-spacing: var(--tracking-tight); }
[data-cat][hidden] { display: none !important; }

/* People grid: studio portraits in their own colour. Leadership large, everyone else small. */
.cpeople { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px 16px; list-style: none; }
.cpeople--lg { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cpeople li[hidden] { display: none; }
.section.section--snug { padding-top: 0; }  /* follows another people section */
.cpeople__item { position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; color: inherit; text-decoration: none; }
.cpeople__pic {
  position: relative;
  grid-column: 1 / -1;
  aspect-ratio: 1;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: var(--radius-md);
  isolation: isolate;
}
.cpeople__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 0.6s var(--ease); }
.cpeople__item:hover .cpeople__pic img, .cpeople__item:focus-visible .cpeople__pic img { transform: scale(1.03); }
.cpeople__name { grid-column: 1; font-weight: 500; line-height: 1.3; }
.cpeople__role, .cpeople__extra { grid-column: 1 / -1; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.cpeople__extra { margin-top: 2px; color: var(--muted); }
.cpeople__arrow { grid-column: 2; grid-row: 2; align-self: start; color: var(--muted); transition: color 0.2s var(--ease); }
.cpeople__arrow.bico { font-size: 18px; margin-top: 2px; } /* LinkedIn mark (sections.css .bico) */
.cpeople__item:hover .cpeople__arrow, .cpeople__item:focus-visible .cpeople__arrow { color: #0a66c2; }
.cpeople--lg .cpeople__name { font-size: var(--text-lg); }
.cpeople--lg .cpeople__role { font-size: 15px; }

/* ---------- Partner cards ---------- */
.ctypes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; }
.ctypes li { display: flex; flex-direction: column; gap: 8px; min-height: 320px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface-card); }
.ctypes__pic { margin: -20px -20px 8px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); }
.ctypes__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ctypes li:hover .ctypes__pic img { transform: scale(1.04); }
.ctypes__pic + h3 { margin-top: 8px; }
.ctypes small { font-size: var(--text-xs); color: var(--muted); }
.ctypes h3 { margin-top: 40px; font-size: var(--text-lg); font-weight: 400; }
.ctypes p { color: var(--ink-2); }
.ctypes .link { margin-top: auto; }

.coffer { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; list-style: none; }
.coffer li { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line); }
.coffer b { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.coffer b .icon { font-size: 18px; color: var(--ok); }
.coffer span { color: var(--muted); }

.cdir { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; }
.cdir li { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: var(--radius-lg); background: var(--surface-card); }
.cdir__logo { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius-md); background: var(--surface); color: var(--ink-soft); font-size: var(--text-sm); }
.cdir b { padding: 8px 12px 0; font-weight: 400; }
.cdir span { padding: 0 12px 12px; font-size: 14px; color: var(--muted); }

.cjoin { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.csteps { display: grid; gap: 24px; margin-top: 40px; list-style: none; }
.csteps li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; }
.csteps .num { grid-row: span 2; }
.csteps b { font-size: var(--text-lg); font-weight: 400; }
.csteps p { color: var(--muted); }
.cjoin .pform { background: var(--surface-card); }
.cjoin .pform input, .cjoin .pform select, .cjoin .pform textarea { background: var(--surface); }
.pform textarea { min-height: 120px; padding: 12px 14px; border: 0; border-radius: var(--radius-xs); background: var(--surface-card); color: var(--ink); font: inherit; font-size: 15px; resize: vertical; }
.pform textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- Brand ---------- */
.clogos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; }
.clogos li { display: flex; flex-direction: column; padding: 8px; border-radius: var(--radius-lg); background: var(--surface-card); }
.clogos__art { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius-md); background: var(--surface); }
.clogos__art--dark { background: var(--ink); }
.clogos__art img { width: 46%; height: auto; }
.clogos__art .ink { filter: brightness(0) opacity(0.93); }
.clogos__art .is-mark { width: auto; height: 46%; }
.clogos__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 12px 8px; }
.clogos__foot b { font-weight: 400; }
.clogos__foot div { display: flex; gap: 8px; }
.cdl { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-full); background: var(--surface); color: var(--ink); font-size: 13px; text-decoration: none; transition: background-color 0.2s ease; }
.cdl:hover { background: var(--surface-tile); }
.cdl .icon { font-size: 15px; }
.cdl[aria-disabled="true"] { color: var(--ink-soft); pointer-events: none; }

.cswatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; }
.cswatches li { display: flex; flex-direction: column; padding: 8px; border-radius: var(--radius-lg); background: var(--surface-card); }
.cswatches i { aspect-ratio: 1; border-radius: var(--radius-md); background: var(--c); box-shadow: inset 0 0 0 1px var(--line); }
.cswatches b { padding: 16px 8px 0; font-weight: 400; }
.cswatches span { padding: 2px 8px; font-size: 13px; color: var(--muted); }
.cswatches code { padding: 0 8px 8px; font-size: 12px; color: var(--ink-2); }

.ctype { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ctype > div { padding: 32px; border-radius: var(--radius-lg); background: var(--surface-card); }
.ctype b { display: block; font-size: 96px; font-weight: 400; line-height: 1; letter-spacing: var(--tracking-tight); }
.ctype h3 { margin-top: 32px; font-size: var(--text-lg); font-weight: 400; }
.ctype p { color: var(--muted); }
.ctype small { display: block; margin-top: 24px; font-size: 15px; line-height: 1.6; color: var(--ink-2); word-break: break-all; }

.crules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; }
.crules li { display: flex; flex-direction: column; padding: 8px; border-radius: var(--radius-lg); background: var(--surface-card); }
.crules__art { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); background: var(--surface); }
.crules__art img { width: 60%; filter: brightness(0) opacity(0.93); }

.crules p { display: flex; align-items: center; gap: 8px; padding: 16px 8px 8px; font-size: 15px; }
.crules .icon { font-size: 18px; }
.crules .do { color: var(--ok); }
.crules .dont { color: var(--danger); }

.cpress { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.cpress > div { padding: 32px; border-radius: var(--radius-lg); background: var(--surface-card); }
.cpress h3 { font-size: var(--text-lg); font-weight: 400; }
.cpress p { margin-top: 12px; color: var(--ink-2); }
.cpress .actions { margin-top: 24px; }

/* ---------- Carriers: where BlueMind sits between carrier and advisor ---------- */
.rsteps--4 { grid-template-columns: repeat(4, 1fr); }
/* One soft card: four stops on a line, data travelling along it, BlueMind lit in the middle */
.cflow { position: relative; overflow: hidden; padding: 56px 48px 48px; border-radius: 24px; background: var(--surface-card); isolation: isolate; }
.cflow::before { content: ""; position: absolute; z-index: -1; left: 37.5%; top: -40px; width: 340px; height: 260px; margin-left: -170px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--blue-500) 22%, transparent), transparent); filter: blur(10px); pointer-events: none; }
.cflow__row { --icon: 64px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
/* the line through the icon centres, from the first stop to the last */
.cflow__row::before { content: ""; position: absolute; top: calc(var(--icon) / 2); left: 12.5%; right: 12.5%; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 14%, transparent), color-mix(in srgb, var(--blue-500) 55%, transparent) 37.5%, color-mix(in srgb, var(--ink) 14%, transparent)); }
.cflow__row::after { content: ""; position: absolute; top: calc(var(--icon) / 2 - 1px); left: 12.5%; width: 96px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--blue-500) 50%, transparent); filter: blur(0.5px); opacity: 0; animation: cflow-run 6s cubic-bezier(0.45, 0, 0.55, 1) infinite; will-change: left, opacity; }
/* a soft pulse that slides along the line, passing behind each stop */
@keyframes cflow-run { 0% { left: 12.5%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(87.5% - 96px); opacity: 0; } }
.cflow__node { display: grid; align-content: start; justify-items: center; gap: 4px; padding: 0 12px; text-align: center; }
.cflow__icon { position: relative; z-index: 1; display: grid; place-items: center; width: var(--icon); height: var(--icon); margin-bottom: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px var(--surface-card), 0 1px 2px rgba(18, 18, 18, 0.06); color: var(--ink-2); font-size: 26px; }
.cflow__icon .icon { font-size: 26px; }
.cflow__node--bm .cflow__icon { background: var(--ink); box-shadow: 0 0 0 6px var(--surface-card), 0 12px 28px -10px color-mix(in srgb, var(--blue-500) 70%, transparent); }
.cflow__node b { font-size: var(--text-lg); font-weight: 400; letter-spacing: -0.01em; }
.cflow__node small { max-width: 240px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.cflow__lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.cflow__lane { padding: 24px 28px; border-radius: var(--radius-md); background: #fff; }
.cflow__dir { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; font-weight: 500; color: var(--accent-ink); }
.cflow__lane:last-child .cflow__dir { justify-content: flex-end; }
.cflow__lane ul { display: grid; gap: 12px; list-style: none; }
.cflow__lane li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.cflow__lane li .icon { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--blue-500) 10%, #fff); color: var(--accent-ink); font-size: 11px; }
.cflow__note { margin-top: 16px; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .cflow__row::after { animation: none; display: none; } }

/* ---------- Contact: details left, form right ---------- */
.ccontact { align-items: start; }
.ccontact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; padding-top: 8px; }
.ccontact__block h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
.ccontact__block h2 .icon { font-size: 18px; color: var(--accent-ink); }
.ccontact__block address, .ccontact__block p { font-size: var(--text-lg); font-style: normal; line-height: 1.5; color: var(--ink); }
.ccontact__block a { color: inherit; text-decoration: none; }
.ccontact__block a:hover { color: var(--accent-ink); }
.pform__check { display: flex !important; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; }
.pform__check input { flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 0; accent-color: var(--ink); }
.pform__check a { color: var(--ink); }
.pform__check span { min-width: 0; } /* one flex item for the whole sentence, so it wraps as text */

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ctypes, .cdir, .crules { grid-template-columns: repeat(2, 1fr); }
  .rsteps--4 { grid-template-columns: repeat(2, 1fr); }
  .rsteps--4 .rstep:nth-child(3n + 1) { padding-left: 28px; border-left: 1px solid var(--line); }
  .rsteps--4 .rstep:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cswatches { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .cstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* minmax(0, …): a plain 1fr track can't shrink below its content */
  .cstats li { min-height: 168px; padding: 20px; }
  .cstats li > span { min-height: 3lh; }
  .clinks, .cjoin, .cpress, .ctype, .clogos { grid-template-columns: minmax(0, 1fr); }
  .coffer { grid-template-columns: 1fr; }
  .ccontact { gap: 40px; }
  .chero { padding: 56px 0 40px; }
  .cflow { padding: 40px 24px 24px; }
  .cflow::before { left: 75%; }
  .cflow__row { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .cflow__row::before, .cflow__row::after { display: none; }
  .cflow__lanes { grid-template-columns: 1fr; margin-top: 36px; }
  .cflow__lane:last-child .cflow__dir { justify-content: flex-start; }
  .cwide { aspect-ratio: 4 / 3; }
  .cwide--low { aspect-ratio: 16 / 9; }
  .cwide--low > img { object-position: 70% 50%; }
  .cstory { grid-template-columns: 1fr; gap: 40px; }
  .cpeople { grid-template-columns: repeat(3, 1fr); }
  .cpeople--lg { grid-template-columns: repeat(2, 1fr); } /* four leaders: 2 x 2 */
  .cglobe__stage { --card: 76px; height: 600px; }
  .cglobe__photo { border-radius: 14px; }
  .cglobe__dek { margin-top: 20px; font-size: 16px; }
  .cglobe__center { z-index: 1001; } /* narrow screens: photos pass behind the headline so it stays readable */
  .cstory__pic { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .ctypes, .cdir, .crules, .cswatches { grid-template-columns: 1fr 1fr; }
  .ctypes { grid-template-columns: 1fr; }
  .ctypes li { min-height: 0; }
  .cmiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; margin-inline: -16px; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .cmiles::-webkit-scrollbar { display: none; }
  .cmiles li { scroll-snap-align: start; }
  .cgallery { grid-template-columns: 1fr 1fr; }
  .cpeople, .cpeople--lg { grid-template-columns: 1fr 1fr; gap: 32px 12px; }
  .cgallery li:nth-child(3) { display: none; }
  .rsteps--4 { grid-template-columns: 1fr; }
  .ccontact__info { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rsteps--4 .rstep { padding-left: 0; }
  .cflow { padding: 28px 16px 16px; border-radius: 20px; }
  .cflow::before { left: 30%; }
  /* stops stack, the line runs down through the icons */
  .cflow__row { --icon: 52px; grid-template-columns: 1fr; row-gap: 20px; }
  .cflow__row::before { display: block; top: 26px; bottom: 26px; left: calc(var(--icon) / 2 + 8px); right: auto; width: 1px; height: auto; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 14%, transparent), color-mix(in srgb, var(--blue-500) 55%, transparent) 33%, color-mix(in srgb, var(--ink) 14%, transparent)); }
  .cflow__node { grid-template-columns: var(--icon) 1fr; grid-template-rows: auto auto; justify-items: start; align-items: center; column-gap: 16px; row-gap: 2px; padding: 0 8px; text-align: left; }
  .cflow__icon { grid-row: 1 / 3; margin: 0; }
  .cflow__icon .icon { font-size: 22px; }
  .cflow__node b { align-self: end; font-size: 17px; }
  .cflow__node small { align-self: start; max-width: none; }
  .cflow__lane { padding: 20px; }

}

/* ---------- Resources ---------- */
.rjump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.rjump a { padding: 8px 16px; border-radius: var(--radius-full); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; color: var(--ink); text-decoration: none; transition: background-color .2s, color .2s; }
.rjump a:hover { background: var(--ink); color: #fff; }
#guides, #watch, #reading, #blog, #help { scroll-margin-top: calc(var(--nav-h, 80px) + 16px); }
.cbar p { color: var(--muted); }

.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.rgrid--2 { grid-template-columns: repeat(2, 1fr); }
.rcard > a { display: flex; flex-direction: column; height: 100%; padding: 28px; border-radius: var(--radius-lg); background: var(--surface-card); color: var(--ink); text-decoration: none; transition: transform .3s var(--ease-drawer, ease), box-shadow .3s; }
.rcard > a:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -24px color-mix(in srgb, var(--slate-900) 40%, transparent); }
.rcard__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 32px; border-radius: 14px; background: var(--surface); font-size: 24px; color: var(--accent-ink); }
.rcard__kind { font-size: 13px; color: var(--muted); }
.rcard h3 { margin-top: 6px; font-size: var(--text-lg, 20px); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.rcard p { margin-top: 10px; color: var(--muted); line-height: 1.5; }
.rcard__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 28px; font-weight: 500; color: var(--accent-ink); }
.rcard > a:hover .rcard__go .icon { transform: translate(2px, -2px); }
.rcard__go .icon { transition: transform .2s; }
.rcard--dark > a { background: var(--ink); color: #fff; }
.rcard--dark .rcard__icon { background: rgba(255, 255, 255, 0.1); color: #fff; }
.rcard--dark .rcard__kind, .rcard--dark p { color: rgba(255, 255, 255, 0.7); }
.rcard--dark .rcard__go { color: #fff; }

.rposts { list-style: none; border-top: 1px solid var(--line); }
.rpost { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rpost small { font-size: 14px; color: var(--muted); }
.rpost b { font-size: var(--text-lg, 20px); font-weight: 400; letter-spacing: -0.01em; }
.rpost .icon { font-size: 20px; color: var(--muted); transition: transform .2s, color .2s; }
.rpost:hover b { color: var(--accent-ink); }
.rpost:hover .icon { color: var(--accent-ink); transform: translate(2px, -2px); }

@media (max-width: 900px) {
  .rgrid { grid-template-columns: repeat(2, 1fr); }
  .rpost { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .rpost small { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .rgrid, .rgrid--2 { grid-template-columns: 1fr; }
  .rcard > a { padding: 24px; }
  .rcard__icon { margin-bottom: 24px; }
}

/* ---------- Blog and legal pages ---------- */
.rpost__text { display: grid; gap: 4px; }
.rpost__text span { font-size: 15px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rposts--full .rpost { padding: 28px 0; }

.post { padding: 96px 0 24px; }
.post__head { max-width: 760px; }
.post__back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 40px; font-size: 14px; color: var(--muted); text-decoration: none; }
.post__back:hover { color: var(--ink); }
.post__meta { font-size: 14px; color: var(--muted); }
.post__title { margin-top: 12px; font-size: var(--text-2xl); font-weight: 400; line-height: 1.15; letter-spacing: var(--tracking-tight); text-wrap: balance; }
.post__head .lead { margin-top: 20px; color: var(--muted); }
.post--legal .post__title { margin-top: 8px; }
.post--legal { padding-bottom: 120px; }
@media (max-width: 700px) { .post--legal { padding-bottom: 80px; } }
.post__body { max-width: 760px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }

.prose { font-size: 17px; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: var(--text-xl); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.prose h3 { margin-top: 1.6em; font-size: 20px; font-weight: 500; line-height: 1.3; }
.prose h4 { margin-top: 1.4em; font-size: 17px; font-weight: 600; }
.prose h2 strong, .prose h3 strong, .prose h4 strong { font-weight: inherit; }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border-radius: var(--radius-md); }
.prose blockquote { padding-left: 20px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-md); }
.prose hr { border: 0; border-top: 1px solid var(--line); }

@media (max-width: 600px) {
  .post { padding-top: 48px; }
  .post__back { margin-bottom: 28px; }
  .post__body { margin-top: 32px; padding-top: 28px; }
  .prose { font-size: 16px; }
}
.post__video { max-width: 960px; margin-top: 48px; }
.post__video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-lg); background: var(--ink); }
.prose iframe[src*="podbean"] { aspect-ratio: auto; height: 150px; border-radius: var(--radius-md); }

/* ---------- Blog index ---------- */
/* Covers: one soft tint per topic (same family as the home page's pain chips) with a large duotone icon */
.bcover { --t: #d8ecf9; --i: #2f6fd6; position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-lg); background: radial-gradient(120% 90% at 85% 10%, #fff 0%, transparent 55%), var(--t); }
.bcover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--i) 18%, transparent) 1px, transparent 1.5px); background-size: 18px 18px; mask-image: linear-gradient(135deg, transparent 30%, #000); opacity: 0.6; }
.bcover .icon { position: relative; z-index: 1; font-size: clamp(56px, 6vw, 88px); color: var(--i); transition: transform 0.5s var(--ease-drawer, ease); }
.bcover__chip { position: absolute; z-index: 1; top: 16px; left: 16px; padding: 6px 12px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.85); font-size: 13px; font-weight: 500; color: var(--ink); backdrop-filter: blur(6px); }
.bcover--pink { --t: #fbdcef; --i: #b8327f; }
.bcover--blue { --t: #d8ecf9; --i: #2363c9; }
.bcover--yellow { --t: #f3e9b5; --i: #8a6a00; }
.bcover--green { --t: #dcf1e2; --i: #2c7a48; }
.bcover--lilac { --t: #e6e3f7; --i: #5b4bc4; }
.bcover--lg { aspect-ratio: auto; min-height: 100%; }
/* Lummi photo covers */
.bcover--photo { background: var(--t); }
.bcover--photo::after { display: none; }
.bcover--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-drawer, ease); }
.bfeature:hover .bcover--photo img, .bcard a:hover .bcover--photo img { transform: scale(1.04); }
.post__cover { max-width: 960px; margin-top: 40px; }
.post__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface-card); }
.post__cover + .post__body { border-top: 0; padding-top: 0; }
.bcover--lg .icon { font-size: clamp(96px, 11vw, 160px); }

.bfeature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: stretch; padding: 12px; border-radius: 28px; background: var(--surface-card); color: var(--ink); text-decoration: none; }
.bfeature .bcover { min-height: 380px; }
.bfeature__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 32px 40px 32px 0; }
.bfeature__title { font-size: var(--text-2xl); font-weight: 400; line-height: 1.15; letter-spacing: var(--tracking-tight); text-wrap: balance; }
.bfeature__text { font-size: var(--text-lg); line-height: 1.5; color: var(--muted); }
.bfeature__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 500; color: var(--accent-ink); }
.bfeature__go .icon { transition: transform 0.25s ease; }
.bfeature:hover .bfeature__go .icon { transform: translateX(4px); }
.bfeature:hover .bcover .icon, .bcard a:hover .bcover .icon { transform: scale(1.08) rotate(-4deg); }

.bbar { align-items: center; }
.bfilter button span { margin-left: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; list-style: none; }
.bgrid > li[hidden] { display: none; }
.bcard a { display: grid; gap: 12px; color: var(--ink); text-decoration: none; }
.bcard .bcover { margin-bottom: 8px; }
.bcard__meta { font-size: 13px; color: var(--muted); }
.bcard h3 { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; transition: color 0.2s ease; }
.bcard a:hover h3 { color: var(--accent-ink); }
.bcard p { font-size: 15px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bmore { margin-top: 56px; text-align: center; }
.bmore[hidden] { display: none; }

/* Post page: topic pill next to the date */
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.post__cat { padding: 4px 10px; border-radius: var(--radius-full); background: var(--t, #d8ecf9); font-size: 13px; font-weight: 500; color: var(--ink); }
.post__cat--pink { --t: #fbdcef; } .post__cat--blue { --t: #d8ecf9; } .post__cat--yellow { --t: #f3e9b5; }
.post__cat--green { --t: #dcf1e2; } .post__cat--lilac { --t: #e6e3f7; }

@media (max-width: 900px) {
  .bfeature { grid-template-columns: 1fr; gap: 0; }
  .bfeature .bcover { min-height: 260px; }
  .bfeature__body { padding: 28px 20px 24px; }
  .bgrid { grid-template-columns: repeat(2, 1fr); }
  .bbar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .bgrid { grid-template-columns: 1fr; gap: 40px; }
  .bfilter { flex-wrap: nowrap; max-width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; overflow-x: auto; border-radius: 0; background: none; scrollbar-width: none; }
  .bfilter::-webkit-scrollbar { display: none; }
  .bfilter button { flex: none; background: var(--surface-card); }
  .bfeature .bcover { min-height: 200px; }
  .bfeature__title { font-size: var(--text-xl); }
}
.nf__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Partners: winding partnership timeline. A blue line snakes down through alternating circles;
   company.js draws it as you scroll and adds .is-in to each entry when the line reaches it. */
.cbar h2 span { color: var(--ink-soft); }
.cbar--center { justify-content: center; text-align: center; }
.ctl-wrap { position: relative; max-width: 980px; margin: 0 auto; padding: 88px 0 72px; }
.ctl__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ctl__line { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ctl__line--base { stroke: var(--blue-50); }
.ctl__line--draw { stroke: var(--blue-500); }
.ctl__head { fill: var(--blue-500); stroke: var(--surface); stroke-width: 3; }
.ctl { position: relative; list-style: none; }
.ctl__item { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 56px; }
.ctl__item + .ctl__item { margin-top: 280px; }
.ctl__item:nth-child(even) .ctl__media { grid-column: 2; grid-row: 1; justify-self: start; }
.ctl__item:nth-child(even) .ctl__text { grid-column: 1; grid-row: 1; text-align: right; justify-self: end; }
.ctl__item:nth-child(odd) .ctl__media { justify-self: end; }

.ctl__media { --s: 240px; position: relative; display: grid; place-items: center; width: var(--s); height: var(--s); }
/* Circle: clean and flat. One hairline ring, plenty of white around a large logo. */
.ctl__logo { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); overflow: hidden; }
.ctl__logo img { width: 66%; height: 66%; object-fit: contain; }

.ctl__text { max-width: 320px; }
.ctl__date { display: block; font-size: var(--text-xl); font-weight: 500; line-height: 1.1; letter-spacing: var(--tracking-tight); color: var(--ink); }
.ctl__text h3 { margin-top: 10px; font-size: var(--text-lg); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
.ctl__text p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* Reveal: only when the script runs and motion is allowed */
.js .ctl-wrap.is-live .ctl__media { transform: scale(0.6); opacity: 0; transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.25), opacity 0.4s ease; }
.js .ctl-wrap.is-live .ctl__text { transform: translateY(16px); opacity: 0; transition: transform 0.5s ease 0.12s, opacity 0.5s ease 0.12s; }
.js .ctl-wrap.is-live .is-in .ctl__media, .js .ctl-wrap.is-live .is-in .ctl__text { transform: none; opacity: 1; }

/* Phones: circles down the left, text beside them, the line sways between */
@media (max-width: 700px) {
  .ctl-wrap { padding: 56px 0 48px; }
  .ctl__item, .ctl__item:nth-child(even) { grid-template-columns: auto 1fr; column-gap: 28px; }
  .ctl__item + .ctl__item { margin-top: 168px; }
  .ctl__item .ctl__media, .ctl__item:nth-child(n) .ctl__media { grid-column: 1; grid-row: 1; justify-self: start; --s: 128px; margin-left: 8px; }
  .ctl__item .ctl__text, .ctl__item:nth-child(n) .ctl__text { grid-column: 2; grid-row: 1; text-align: left; justify-self: start; }
  .ctl__logo { font-size: 11px; }
  .ctl__date { font-size: var(--text-lg); }
  .ctl__text h3 { font-size: 17px; margin-top: 6px; }
  .ctl__text p { font-size: 14px; }
  .ctl__line { stroke-width: 4; }
}


/* Partners: programs and memberships, logo tiles in two groups */
.cprog { display: grid; gap: 16px; max-width: 1040px; margin: 0 auto; }
.cprog__label { margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--muted); text-align: center; }
.cprog__label:first-child { margin-top: 0; }
.cprog__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; }
.cprog__grid li { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 192px; padding: 24px 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-xl, 24px); background: var(--surface); }
.cprog__logo { display: grid; place-items: center; height: 64px; }
.cprog__logo img { display: block; width: 150px; height: var(--h, 44px); object-fit: contain; }
.cprog__grid b { font-size: 15px; font-weight: 500; text-align: center; }
@media (max-width: 700px) {
  .cprog__grid { gap: 10px; }
  .cprog__grid li { width: calc(50% - 5px); padding: 20px 12px 16px; }
}

/* How we work (Team): what we do / what we don't. White, large type, no rules or icons. */
.cvals__head { max-width: 900px; margin-bottom: 80px; }
.cvals__head .eyebrow { margin-bottom: 16px; }
.cvals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 80px; }
.cvals__title { margin-bottom: 32px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.cvals__strike { text-decoration: line-through; text-decoration-thickness: 2px; }
.cvals__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: 18px 32px; } /* rows line up across both columns */
.cvals__list li { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.35; letter-spacing: -0.01em; color: var(--ink-2); }
.cvals__col--dont .cvals__list li { color: var(--muted); }
@media (max-width: 1000px) {
  .cvals { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .cvals__head { margin-bottom: 56px; }
  .cvals__title { margin-bottom: 24px; }
}
@media (max-width: 560px) {
  .cvals__list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; gap: 14px; }
}
/* Very narrow phones (320px): the big stat numbers need the full width */
@media (max-width: 360px) {
  .cstats { grid-template-columns: minmax(0, 1fr); }
  .cstats li { min-height: 0; }
  .cstats li > span { min-height: 0; }
}
