/* The sections of the other pages in the old site's design (Oct 23), built from the Home parts (old-bridge.css):
   the Box for every card, the section heading block, the photo-and-text split, the dark box, the closing.
   Spacing on the same scale: 8, 16, 24, 32, 48 inside sections, 96 between them (64 on phones). */

/* ---------- shared bits ---------- */
.ph { display: block; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-panel); }
.sec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px var(--sp-4); margin-top: var(--sp-4); }
.sec-note { margin-top: var(--sp-3); color: var(--ink-2); font-size: var(--fs-body-sm); }
.paras > * + * { margin-top: var(--sp-2); }
.sec-head > .paras { margin-top: var(--sp-2); }
/* a section's desktop and phone wordings (the approved frames have different text at each width) */
.only-m { display: none; }
@media (max-width: 980px) {
  .only-d { display: none !important; }
  .only-m { display: revert; }
  div.only-m { display: block; }
}

/* ---------- animations (Lottie): the poster first, the animation over it once it plays (rp-lottie.js) ---------- */
.lt-media { position: relative; aspect-ratio: 448 / 400; overflow: hidden; background: var(--ground-3); }
.lt-media picture, .lt-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lt-media svg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.lt-media.is-live picture { visibility: hidden; }
/* the AI role orbs: the still first, the loop fading in over it (pages/ai.js, rp-stage-orbs.js) */
[data-orb] { position: relative; }
[data-orb] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
[data-orb].is-live video { opacity: 1; }

/* ---------- cards: a row of boxes; with an animation or picture flush at the top (.card-m) or with a line icon (.card-t) ---------- */
.box-grid { display: grid; gap: var(--sp-2); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.box-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
.box-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.box-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-m { display: flex; flex-direction: column; }
.card-m > .lt-media, .card-m > .ph, .card-m > .card-media { flex: 0 0 auto; border-bottom: 1px solid var(--line-soft); }
.card-m > .ph img { border-radius: 0; aspect-ratio: 448 / 400; height: auto; }
.media-wide .card-m > .lt-media { aspect-ratio: 680 / 472; }
.card-in { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1 1 auto; }
.card-in > *, .card-t > * { margin-top: 0; }
.card-h { font-family: var(--sans); font-size: var(--fs-headline-sm); line-height: 1.25; letter-spacing: -.01em; font-weight: 500; color: inherit; }
.card-h a { color: inherit; text-decoration: none; }
.card-h a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card-in > * + *, .card-t > * + * { margin-top: var(--sp-1); }
.card-t > .ico + *, .card-in > .ico + * { margin-top: var(--sp-3); }
.card-in > .eyebrow + *, .card-t > .eyebrow + * { margin-top: var(--sp-1); }
.card-in p, .card-t p { color: var(--ink-2); }
.card-in > a:last-child, .card-t > a:last-child { margin-top: auto; padding-top: var(--sp-3); align-self: flex-start; }
.card-t { display: flex; flex-direction: column; }

/* ---------- points on the dark box: hairline columns (the old .trio) ---------- */
.points-panel .sec-head + * { margin-top: var(--sp-5) !important; }
.points-panel .t-h2 { color: #fff; }
.points-panel .trio { margin-top: 0; }
.points-panel .trio.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.points-panel .trio > div > * { margin-top: 0; }
.points-panel .trio > div > * + * { margin-top: var(--sp-1); }
.points-panel .trio .ico + * { margin-top: var(--sp-3); }
.points-panel .trio p { color: var(--on-dark-2); }
.box-dark .ico { background: rgba(255, 255, 255, .08); border-color: var(--on-dark-line); color: #fff; }
.box-dark .lede { color: var(--on-dark-2); }
.box-dark .t-h2 .serif, .box-dark h2 .serif { background: var(--spectrum-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent; padding-right: .06em; }

/* ---------- photo (or animation) beside the text; .flip puts the photo on the right ---------- */
.media-split-in > .ph { width: 100%; }
.media-split-in > .ph img { aspect-ratio: 564 / 600; height: auto; }
.media-split-in > .lt-media { width: 100%; aspect-ratio: 680 / 472; border-radius: var(--r-panel); border: 1px solid var(--line); }
.media-split.flip .media-split-in > :first-child { order: 2; }
.media-split .sec-head > .btn, .media-split .sec-head > a { margin-top: var(--sp-4); }

/* ---------- dark box with a photo: text left, photo right (the old dark panel) ---------- */
.rules-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-5); align-items: center; }
.rules-in .t-h2 { color: #fff; }
.rules-media .ph img, .rules-media .lt-media { aspect-ratio: 1 / 1; height: auto; border-radius: 12px; }
.rules-media .lt-media { border: 0; }

/* ---------- photo and a dark box side by side (the AI Receptionist demo line) ---------- */
.price-row > .ph img { aspect-ratio: 688 / 520; height: 100%; }
.demo-card .big { font-family: var(--serif); font-style: italic; }

/* ---------- closing: links under the buttons, the page's last line ---------- */
.closing-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-4); }
.closing-plain .closing-note { max-width: 60ch; margin-inline: auto; }

/* ---------- tablets and phones ---------- */
@media (max-width: 980px) {
  .box-grid, .box-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
  .rules-in { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .media-split.flip .media-split-in > :first-child { order: 0; }
  .points-panel .trio.cols-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .box-grid, .box-grid.cols-2, .box-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .card-in { padding: var(--sp-3); }
  .card-t > .ico + *, .card-in > .ico + * { margin-top: var(--sp-2); }
  .points-panel .sec-head + * { margin-top: var(--sp-4) !important; }
  .closing-links { gap: var(--sp-1) var(--sp-3); }
}

/* the old .trio's 28 px insets on the 32 scale; two columns wrap cleanly */
.points-panel .trio > div { padding: var(--sp-4) var(--sp-4) 0 0; }
.points-panel .trio > div + div { padding-left: var(--sp-4); }
.points-panel .trio.cols-2 { row-gap: var(--sp-4); }
.points-panel .trio.cols-2 > div:nth-child(odd) { border-left: 0; padding-left: 0; }
@media (max-width: 980px) {
  .points-panel .trio > div, .points-panel .trio > div + div { padding: var(--sp-3) 0 0; }
}
.sec-after { margin-top: var(--sp-4); max-width: 60ch; }
.sec-after + .sec-actions { margin-top: var(--sp-3); }

/* ---------- AI team hub: the six roles with their orbs; the channels; the decision row ---------- */
.s-hub .card-m > .card-media { aspect-ratio: 1 / 1; }
.s-hub .card-m > .card-media picture, .s-hub .card-m > .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-row { display: grid; grid-template-columns: minmax(0, 688fr) minmax(0, 448fr); gap: var(--sp-2); }
.feat-row > .lt-media { aspect-ratio: auto; min-height: 100%; border-radius: var(--r-panel); border: 1px solid var(--line); }
.feat-row > .lt-media::before { content: ""; display: block; padding-top: 83%; }
.feat-box { display: flex; flex-direction: column; justify-content: center; }

/* ---------- stage pages: the process animation in a box; the AI role cards with their orbs ---------- */
.process-box { display: flex; justify-content: center; }
.process-box > .lt-media { width: 100%; max-width: 760px; aspect-ratio: 1360 / 944; background: transparent; }
/* Oct 24, as main's stg-process under the overview hero: the animation on its own, up to 1120 wide, rounded, no outer box */
.s-process .process-box.box { padding: 0; border: 0; background: none; }
.s-process .process-box > .lt-media { max-width: 1120px; border-radius: var(--r-panel); background: linear-gradient(180deg, #d9dbe0 0%, #ecedf0 100%); }
.s-cards .card-m > .stg-orb { aspect-ratio: 16 / 9; }
.s-cards .card-m > .stg-orb picture, .s-cards .card-m > .stg-orb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* a box with a heading, a line and a button (Your team stays in control, Based in New York) */
.control-box .sec-head { max-width: 62ch; }
.control-box .sec-head > .btn, .control-box .sec-head > a { margin-top: var(--sp-4); }

/* ---------- practice pages: steps as a list beside the step (the flow, vertical) ---------- */
.flow-v .flow-stage { display: grid; grid-template-columns: minmax(240px, 4fr) minmax(0, 8fr); gap: var(--sp-5); align-items: start; }
.flow-v .flow-tabs { grid-template-columns: minmax(0, 1fr); gap: 0; }
.flow-v .flow-tab { padding: var(--sp-2) 0 var(--sp-2) var(--sp-3); gap: var(--sp-2); font-size: var(--fs-body-lg); }
.flow-v .flow-tab::before, .flow-v .flow-tab::after { top: 0; bottom: 0; left: 0; right: auto; width: 2px; height: auto; }
.flow-v .flow-tab::after { transform-origin: center top; transform: scaleY(var(--fill, 0)); }
.flow-ic { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--ground-2);
  border: 1px solid var(--line); color: var(--ink-3); transition: color .2s ease, background-color .2s ease; }
.flow-ic svg { width: 18px; height: 18px; stroke-width: 1.6; }
.flow-v .flow-tab[aria-selected="true"] .flow-ic { background: #fff; color: var(--ink); }
.flow-v.is-tabs .flow-panels { margin-top: 0; }
.flow-v .flow-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.flow-media { position: relative; border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line); background: var(--ground-3); }
.flow-media > .lt-media { position: absolute; inset: 0; aspect-ratio: auto; }
.flow-media .lt-media img { object-fit: contain; }
.flow-v .flow-card { justify-content: center; }
.flow-v .flow-card .card-in { padding: 0; }
.flow-v .flow-card .card-h { font-size: var(--fs-headline-md); }
.flow-v.is-scrolly .flow-panel { height: clamp(320px, calc(100svh - var(--head-h) - 140px), 520px); }
.flow-v:not(.is-scrolly) .flow-media { min-height: 360px; }

/* ---------- Who it's for: the practice rows (a box each, an arrow tile at the end) ---------- */
.rows-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-5); align-items: start; }
.rows-in > .sec-head + * { margin-top: 0 !important; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.row-box { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); color: var(--ink); text-decoration: none;
  transition: border-color .15s ease; }
.row-box:hover { border-color: rgba(28, 29, 33, .3); }
.row-box:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.row-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-t p { color: var(--ink-2); }
.row-ar { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  transition: background-color .15s ease, color .15s ease; }
.row-ar svg { width: 14px; height: 14px; }
.row-box:hover .row-ar { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- About: the team, a box each with the photo flush at the top ---------- */
/* Oct 24: each headshot shows from its top edge, so the head isn't cut, with the face centred in a 332:300 frame (the
   photos are main's 332 x 448 exports). The LinkedIn link sits on the photo's top-right corner, as in main's design,
   right over the badge main baked into those exports (24px in, 32px square at the photo's 332px width), so that badge
   never shows. Sizes follow the card width (container units), so the link stays on the badge at every width. */
.team-card { position: relative; container-type: inline-size; }
.team-card .team-ph img { aspect-ratio: 332 / 300; height: auto; border-radius: 0; object-position: 50% 0; }
.team-card .card-in > .member-in { position: absolute; top: calc(21 / 332 * 100cqw); right: calc(21 / 332 * 100cqw);
  width: max(30px, calc(38 / 332 * 100cqw)); height: max(30px, calc(38 / 332 * 100cqw)); margin: 0 !important; }
.team-card .card-in > .card-h { font-size: var(--fs-headline-sm); }
.member-in { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-top: var(--sp-3) !important; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); color: var(--ink); align-self: flex-start; }
.member-in svg { width: 16px; height: 16px; }
.member-in:hover { background: var(--ink); color: #fff; }
.control-box .story-press img { height: 16px; width: auto; }

/* ---------- utility pages (Contact, legal, FAQs): the dark band without a photo ---------- */
main > section.hero.hero-plain { padding: 0 !important; }
.hero-plain { background-color: var(--dark); background-image: var(--dark-grad); color: #fff; }
.hp-in { padding-block: var(--sp-5) calc(var(--sp-5) * 2); max-width: 760px; }
.hero-plain h1 { color: #fff; font-size: var(--fs-display-lg); max-width: 18ch; }
.hero-plain h1 .serif { background: var(--spectrum-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .06em; }
.hero-plain .lede { margin-top: var(--sp-3); color: var(--on-dark-2); }
.hero-plain { padding-top: var(--sp-5) !important; }

/* ---------- Contact: the two ways to reach us, the form ---------- */
.link-box { display: flex; flex-direction: column; align-items: flex-start; min-height: 220px; color: var(--ink); text-decoration: none; transition: border-color .15s ease; }
.link-box:hover { border-color: rgba(28, 29, 33, .3); }
.link-box > .ico + * { margin-top: var(--sp-3); }
.link-box-d { margin-top: var(--sp-1); color: var(--ink-2); }
.link-box-l { margin-top: auto; padding-top: var(--sp-3); display: inline-flex; align-items: center; gap: var(--sp-1); font-weight: 500; font-size: var(--fs-title-sm);
  border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-box-l svg { width: 14px; height: 14px; }
.form-box { max-width: 880px; }
.form-box > h2 + form { margin-top: var(--sp-4); }
.ct-fields { display: flex; flex-direction: column; gap: var(--sp-3); }
.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-2); }
.form-box .f { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.form-box .f > label { font-size: var(--fs-body-sm); font-weight: 600; }
.form-box .f label small { font-size: inherit; font-weight: 400; color: var(--ink-2); }
.form-box .f .req { color: #a2332f; }
.form-box .f input, .form-box .f textarea { display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: #fff; font: inherit; font-size: var(--fs-body-md); color: var(--ink); }
.form-box .f textarea { height: 140px; padding: 12px 14px; resize: vertical; }
.form-box .f input:hover, .form-box .f textarea:hover { border-color: rgba(28, 29, 33, .3); }
.form-box .f input:focus, .form-box .f textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28, 29, 33, .08); }
.form-box .ferr { display: none; font-size: var(--fs-caption); color: #a2332f; }
.form-box .f.err input, .form-box .f.err textarea { border-color: #a2332f; box-shadow: 0 0 0 3px #f6e1e0; }
.form-box .f.err .ferr { display: block; }
.form-box .ct-send { margin-top: var(--sp-4); }

/* ---------- legal pages and FAQs: "On this page" beside the document (rp-legal.js marks the row being read) ---------- */
/* the approved markup has no .wrap, so the document takes the page width and gutter itself */
.lg > .lg-doc { box-sizing: border-box; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.lg-doc { display: grid; grid-template-columns: minmax(220px, 4fr) minmax(0, 8fr); grid-template-areas: "head head" "toc body";
  column-gap: var(--sp-5); row-gap: var(--sp-5); align-items: start; }
.lg-head { grid-area: head; display: flex; flex-direction: column; gap: var(--sp-2); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line); }
.lg-head > * { margin: 0; }
.lg-title { font-size: var(--fs-display-lg); line-height: 1.08; letter-spacing: -.022em; font-weight: 400; max-width: 20ch; }
.lg-sub { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); color: var(--ink-2); max-width: 60ch; }
.lg-updated { font-size: var(--fs-body-sm); color: var(--ink-2); }
.lg-updated strong { font-weight: 600; color: var(--ink); }
.lg-toc { grid-area: toc; position: sticky; top: calc(var(--head-h) + var(--sp-3)); max-height: calc(100vh - var(--head-h) - 48px); overflow-y: auto;
  overscroll-behavior: contain; scrollbar-width: thin; }
.lg-toc-label { margin: 0 0 var(--sp-2); padding-left: var(--sp-2); font-size: var(--fs-label-lg); line-height: var(--lh-label); letter-spacing: var(--ls-label);
  text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.lg-toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lg-toc-list a { display: flex; gap: var(--sp-2); padding: 10px var(--sp-2); border-radius: var(--r-card); border: 1px solid transparent; font-size: var(--fs-body-sm);
  line-height: 1.4; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.lg-toc-list a:hover { color: var(--ink); }
.lg-toc-list a.is-current { color: var(--ink); background: var(--ground-2); border-color: var(--line); }
.lg-toc-n { flex: 0 0 20px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lg-body { grid-area: body; display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
.lg-secs { display: flex; flex-direction: column; gap: var(--sp-5); }
.lg-sec { display: flex; flex-direction: column; gap: var(--sp-2); scroll-margin-top: calc(var(--head-h) + var(--sp-4)); }
.lg-sec > *, .lg-subsec > * { margin: 0; }
.lg-subsec { display: flex; flex-direction: column; gap: var(--sp-1); scroll-margin-top: calc(var(--head-h) + var(--sp-4)); }
.lg-h { display: flex; align-items: baseline; gap: 12px; font-family: var(--sans); font-size: var(--fs-headline-md); line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.lg-n { flex: 0 0 auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lg-h3 { font-family: var(--sans); font-size: var(--fs-body-lg); line-height: 1.4; font-weight: 600; }
.lg-body p, .lg-body li { color: var(--ink-2); }
.lg-body a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lg-body a:hover { color: var(--ink-2); }
.lg-short { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--ground-2); }
.lg-short > * { margin: 0; }
.lg-short h2 { font-family: var(--sans); font-size: var(--fs-headline-sm); line-height: 1.25; font-weight: 500; }
.lg-list, .lg-olist { list-style: none; margin: 0; padding: 0; }
.lg-list > li { position: relative; padding-left: var(--sp-3); }
.lg-list > li + li, .lg-olist > li + li { margin-top: var(--sp-1); }
.lg-list > li::before { content: "•"; position: absolute; left: 0; top: 0; width: var(--sp-3); text-align: center; color: var(--ink-3); }
.lg-olist { counter-reset: lg-ol; }
.lg-olist > li { position: relative; padding-left: var(--sp-3); counter-increment: lg-ol; }
.lg-olist > li::before { content: counter(lg-ol) "."; position: absolute; left: 0; top: 0; width: 18px; text-align: right; font-weight: 600; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { html:has(.lg) { scroll-behavior: smooth; } }

/* FAQ cards: boxes; the question is a button with a "+" tile (pages/faqs.js opens one at a time) */
.lg .faq-list { display: flex; flex-direction: column; gap: var(--sp-1); }
.lg .faq { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--ground-2); padding: 0; }
.lg .faq-q { margin: 0; font: inherit; }
.lg .faq-btn { display: flex; align-items: center; gap: var(--sp-3); width: 100%; padding: var(--sp-3); border: 0; border-radius: var(--r-panel); background: none;
  text-align: left; font: inherit; font-size: var(--fs-body-lg); line-height: 1.4; font-weight: 500; color: var(--ink); cursor: pointer; }
.lg .faq-qt { flex: 1 1 auto; min-width: 0; }
.lg .faq-ic { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  color: var(--ink); transition: background-color .15s ease, color .15s ease, transform .2s ease; }
.lg .faq-ic svg { width: 14px; height: 14px; }
.lg .faq-btn:hover .faq-ic { background: var(--ink); color: #fff; border-color: var(--ink); }
.lg .faq.is-open .faq-ic { transform: rotate(45deg); }
.lg .faq-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.lg .faq-a-in p { margin: 0; padding: 0 var(--sp-3) var(--sp-3); color: var(--ink-2); max-width: 68ch; }
.faq-js .lg .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-js .lg .faq-a-in { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .3s; }
.faq-js .lg .is-open .faq-a { grid-template-rows: 1fr; }
.faq-js .lg .is-open .faq-a-in { visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .faq-js .lg .faq-a, .faq-js .lg .faq-a-in, .lg .faq-ic { transition: none; } }

/* ---------- tablets and phones ---------- */
@media (max-width: 980px) {
  .feat-row { grid-template-columns: minmax(0, 1fr); }
  .rows-in { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .flow-v .flow-stage { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .flow-v .flow-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 var(--sp-1); }
  .flow-v .flow-tab { padding: var(--sp-2) 0 0; justify-content: center; }
  .flow-v .flow-tab::before, .flow-v .flow-tab::after { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; }
  .flow-v .flow-tab::after { transform-origin: left center; transform: scaleX(var(--fill, 0)); }
  .flow-v .flow-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .flow-v .flow-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 0; }
  .flow-v .flow-media { aspect-ratio: 4 / 3; border-radius: var(--r-panel) var(--r-panel) 0 0; border-bottom: 0; height: auto; }
  .flow-v.is-scrolly .flow-panel { height: auto; }
  .flow-v.is-scrolly .flow-media { aspect-ratio: auto; height: clamp(180px, 34svh, 320px); }
  .flow-v .flow-card.box { border-radius: 0 0 var(--r-panel) var(--r-panel); }
  .lg-doc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "toc" "body"; row-gap: var(--sp-4); }
  .lg-toc { position: static; max-height: none; overflow: visible; }
  .lg-head { padding-bottom: var(--sp-4); }
}
@media (max-width: 640px) {
  .ct-row { grid-template-columns: minmax(0, 1fr); }
  .row-box { padding: var(--sp-2) var(--sp-3); gap: var(--sp-2); }
  .hp-in { padding-block: var(--sp-4) var(--sp-5); }
  .lg-short { padding: var(--sp-3); }
  .lg .faq-btn { padding: var(--sp-2) var(--sp-3); }
  .flow-v .flow-ic { width: 32px; height: 32px; }
}

/* the old base pads every <section> 96 above and below; the legal documents' own sections and the FAQ groups are inside the page */
.lg section { padding-block: 0; }
.team-card .card-in > a.member-in { padding-top: 0; }
/* the animations' own background, so a still that doesn't fill its slot runs on without a seam */
.lt-media { background: linear-gradient(180deg, #d9dbe0 0%, #ecedf0 100%); }
.lg .faq-list { border-top: 0; }
/* spacing fixes (Oct 23 measurements) */
.rules-in > .sec-head + * { margin-top: 0 !important; }                 /* the grid gap is the space */
.flow-card .card-in > a:last-child { margin-top: var(--sp-3); padding-top: 0; }
.row-t { gap: var(--sp-1); }
.s-control .story-press { white-space: normal; align-items: center; flex-wrap: wrap; row-gap: var(--sp-1); }
@media (max-width: 640px) {
  /* phones: the team two across; point boxes compact (icon beside the text, as the old site's compact cards) */
  .s-team .box-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-1); }
  .s-team .card-in { padding: var(--sp-2); }
  .s-team .card-in p { font-size: var(--fs-body-sm); }
  .s-points .card-t { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--sp-2); row-gap: 4px; align-content: start; }
  .s-points .card-t > .ico { grid-row: 1 / span 3; width: 40px; height: 40px; border-radius: 10px; }
  .s-points .card-t > .ico svg { width: 20px; height: 20px; }
  .s-points .card-t > .ico + * { margin-top: 0; }
  .s-points .card-t > * + * { margin-top: 0; }
  .s-points .box-grid { gap: var(--sp-1); }
}

/* ---------- service page hero (option 05, Oct 23): words left on white, the page's photo right in a rounded box,
   one of the page's own animations floating over the photo's lower left. ---------- */
main > section.hero.hero-media { padding: 0 !important; }
.hm-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--sp-5); align-items: center;
  min-height: clamp(560px, calc(100svh - var(--head-h)), 820px); padding-block: var(--sp-5); }
.hm-copy > * { margin: 0; }
.hero-media .eyebrow { display: flex; width: fit-content; color: var(--ink-3); }
.hero-media h1 { margin-top: var(--sp-3); max-width: none; color: var(--ink); font-size: var(--fs-display-xl); line-height: 1.04;
  letter-spacing: -.025em; font-weight: 400; text-wrap: balance; }
.hero-media h1 .serif { color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }
.hero-media .lede { margin-top: var(--sp-3); max-width: 42ch; color: var(--ink-2); }
.hero-media .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--sp-4); }
.hero-media .hero-fine { margin-top: var(--sp-3); max-width: none; font-size: 13px; color: var(--ink-3); }
.hm-media { position: relative; padding-left: 72px; }
.hm-photo { position: relative; aspect-ratio: 5 / 4.4; border-radius: var(--r-panel); overflow: hidden; background: var(--ground-3); }
.hm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-float { position: absolute; left: 0; bottom: 40px; width: min(300px, 52%); border-radius: var(--r-panel); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 24px 48px -16px rgba(28, 29, 33, .28); }
/* a desktop-style animation keeps its own shape and gets a little more width; a page without its own animation
   shows the photo alone, filling the column */
.hm-float.is-wide { width: min(360px, 60%); }
.hm-media.no-float { padding-left: 0; }
/* the card on the photo's right corner, for photos whose person stands left of centre */
.hm-media.is-flip { padding-left: 0; padding-right: 72px; }
.hm-media.is-flip .hm-float { left: auto; right: 0; }
@media (max-width: 980px) {
  .hm-media.is-flip { padding-right: 0; }
  .hm-media.is-flip .hm-float { right: 16px; }
  .hm-cols { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-4); min-height: 0; padding-block: 40px var(--sp-4); }
  .hm-media { padding-left: 0; }
  .hm-float { left: 16px; bottom: 16px; width: min(300px, 44%); }
}
@media (max-width: 640px) {
  .hero-media h1 { font-size: clamp(2.375rem, 9vw, 3rem); }
  .hero-media .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hm-photo { aspect-ratio: 4 / 3.6; }
}

/* ---------- About hero (Oct 24): the original old site's About hero (.page-hero.team-hero), words centred on white ---------- */
.page-hero.team-hero { text-align: center; }
.page-hero.team-hero .eyebrow { display: flex; width: fit-content; margin-inline: auto; color: var(--ink-3); }
.page-hero.team-hero .lede { max-width: 46ch; color: var(--ink-2); }
.page-hero.team-hero .hero-cta { justify-content: center; margin-top: var(--sp-4); }

/* Role orbs drawn in CSS (Oct 24): replace the orb videos, whose compression showed as blocks. Sharp at every size and
   screen density, and a few hundred bytes instead of ~0.5 MB each. One colour per role (--c strong, --c2 light,
   --c3 the iridescent accent), taken from the old orbs. A glass bubble with a thick, brushed coloured edge on one side,
   an iridescent inner swirl, a thin white rim and a glint; the edge sways, the swirl turns slowly and the orb breathes. Reduced motion: still. */
.orb-art { position: absolute; inset: 0; overflow: hidden; container-type: size;
  background: linear-gradient(180deg, #dfe3e8 0%, #eef0ec 100%); }
.orb { --d: 60cqmin; position: absolute; left: 50%; top: 50%; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  animation: orb-breathe 5s ease-in-out infinite alternate; }
.orb > i { position: absolute; inset: 0; border-radius: 50%; display: block; }
/* soft colour glow just outside the edge */
.orb-glow { inset: -10% !important; background: radial-gradient(closest-side, color-mix(in srgb, var(--c2) 45%, transparent) 62%, transparent 100%);
  filter: blur(calc(var(--d) * .05)); opacity: .8; }
/* the thick brushed edge: a wide ring, heaviest on one side, a little off centre, soft */
.orb-stroke { inset: 0 6% -4% -10% !important;
  background: conic-gradient(from 150deg, color-mix(in srgb, var(--c) 10%, transparent) 0deg, color-mix(in srgb, var(--c) 85%, transparent) 60deg, var(--c) 105deg, color-mix(in srgb, var(--c) 60%, var(--c2)) 160deg, color-mix(in srgb, var(--c2) 55%, transparent) 240deg, color-mix(in srgb, var(--c) 10%, transparent) 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent 62%, #000 78%, #000 88%, transparent 100%); mask: radial-gradient(closest-side, transparent 62%, #000 78%, #000 88%, transparent 100%);
  filter: blur(calc(var(--d) * .045)); animation: orb-sway-edge 6s ease-in-out infinite alternate; }
/* the glass: bright in the middle, tinted toward the edge */
.orb-body { inset: 4% !important; background: radial-gradient(circle at 44% 40%, rgb(255 255 255 / .5) 0 20%, color-mix(in srgb, var(--c2) 40%, rgb(255 255 255 / .2)) 58%, color-mix(in srgb, var(--c2) 70%, transparent) 86%, transparent 100%); }
/* iridescent swirl inside the glass: soft coloured blobs that drift round */
.orb-swirl { inset: 12% !important;
  background: radial-gradient(ellipse 46% 30% at 38% 64%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%),
              radial-gradient(ellipse 34% 26% at 66% 34%, color-mix(in srgb, var(--c3) 50%, transparent), transparent 70%),
              radial-gradient(ellipse 30% 40% at 64% 70%, color-mix(in srgb, var(--c2) 75%, transparent), transparent 70%);
  filter: blur(calc(var(--d) * .05)); animation: orb-turn 18s linear infinite reverse; }
/* thin white rim, strongest top right */
.orb-rim { inset: 6% !important; border: max(1.5px, calc(var(--d) * .011)) solid rgb(255 255 255 / .95);
  -webkit-mask: conic-gradient(from 300deg, #000 0deg 110deg, rgb(0 0 0 / .25) 170deg 300deg, #000 360deg); mask: conic-gradient(from 300deg, #000 0deg 110deg, rgb(0 0 0 / .25) 170deg 300deg, #000 360deg);
  filter: blur(.4px); }
/* a curved glint across the glass */
.orb-glint { inset: 30% 26% 14% 22% !important; border: 0 solid rgb(255 255 255 / .85); border-top-width: max(1px, calc(var(--d) * .012));
  filter: blur(.7px); transform: rotate(-38deg); animation: orb-sway 7s ease-in-out infinite alternate; }
@keyframes orb-turn { to { transform: rotate(360deg); } }
@keyframes orb-breathe { from { transform: scale(.97); } to { transform: scale(1.03); } }
@keyframes orb-sway-edge { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes orb-sway { from { transform: rotate(-44deg); } to { transform: rotate(-30deg); } }
@media (prefers-reduced-motion: reduce) { .orb, .orb > i { animation: none !important; } }
/* the orb's box on the cards: square on the AI team page, 16:9 on the visit pages (as the stills were) */
.orb-box { position: relative; overflow: hidden; }
.hub-orb.orb-box { aspect-ratio: 1 / 1; }

/* Oct 24: the orbs are drawn live with WebGL (assets/js/rp-orbs.js); the CSS orb stays underneath as the fallback */
.orb-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.orb-art.has-gl > .orb { display: none; }

/* About team (Oct 24): each person's background under the role, set off by a hairline */
.team-card .card-in > .team-bg { margin-top: var(--sp-2) !important; padding-top: var(--sp-2); border-top: 1px solid var(--line); font-size: var(--fs-body-sm); color: var(--ink-2);
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }   /* long words fit the half-width cards on the smallest phones */

/* Oct 24: the service heroes' card is a still screenshot of the real app (old site's product shots) instead of an
   animation. Wider cards for list-like screens, narrower for the square / portrait ones (calendar, portal, membership). */
.hm-float.hm-shot { width: min(380px, 62%); background: #fff; }
.hm-float.hm-shot.is-tall { width: min(300px, 50%); }
.hm-float.hm-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 980px) {
  .hm-float.hm-shot { width: min(340px, 58%); }
  .hm-float.hm-shot.is-tall { width: min(260px, 46%); }
}
