/* ==========================================================================
   Qolsum website, v5. The rules behind these values are in DESIGN.md.
    1. Fonts            7. Pill nav             13. Process (pinned steps)
    2. Tokens           8. Footer               14. Page parts (added per page)
    3. Base             9. Hero                 15. Forms, notices, legal pages
    4. Layout          10. Org screens (mockups) 16. Motion, reduced motion, page transitions
    5. Type            11. Logo marquee         17. Helpers
    6. Buttons, links  12. Scatter (before/after)
   No gradients, no glow. One accent (teal). One dark section per page (.band--deep).
   ========================================================================== */

/* 1. Fonts: Geist for text and interface, Qolsum Serif (a renamed subset of Source Serif 4,
   see fonts/OFL.txt) for headings. The fallbacks are sized to match so text doesn't jump. */
@font-face {
  font-family: "Qolsum Serif";
  src: url("/fonts/qolsum-serif.woff2") format("woff2");
  font-weight: 380 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  ascent-override: 95%;
  descent-override: 28%;
  line-gap-override: 0%;
  size-adjust: 104.5%;
}
@font-face {
  font-family: "Serif Fallback";
  src: local("Georgia"), local("Times New Roman");
  ascent-override: 90%;
  descent-override: 26%;
  line-gap-override: 0%;
  size-adjust: 97%;
}

/* 2. Tokens */
:root {
  /* palette: Qolsum's brand colours. The three hues of the logo, left to right, and the surfaces and
     navy of the original site. Used flat: no gradients (the logo is the only gradient on the page). */
  --blue: #1AB8F0;
  --teal: #10C0C4;
  --green: #06CA7A;
  --blue-ink: #0A759B;            /* the three hues deepened until text passes 4.5:1 on white and sky */
  --teal-ink: #0A797B;
  --green-ink: #047D4B;
  --white: #FFFFFF;
  --sky: #EEF8FE;                 /* the alternate band, the footer, quiet fills */
  --ink: #0A2233;                 /* navy: headings */
  --ink-muted: #48606E;           /* body text */
  --ink-soft: #56707E;            /* captions, inactive steps (4.9:1 on sky) */
  --line: #D6E6EE;
  --line-strong: #B4CCD8;
  --field-line: #7E97A5;          /* 3:1 on white: form field outlines */
  --teal-wash: #E2F5F6;
  --teal-ink-deep: #08676A;       /* links, pressed or hovered */
  --on-brand: #04202B;            /* text on the bright brand colours */
  --deep: #06202B;                /* the one dark section */
  --deep-raised: #0C2D3B;
  --deep-text: #EAF5F9;
  --deep-muted: #9DB8C4;
  --danger: #B42318;

  /* what components read: set per surface (section 4) */
  --bg: var(--white);
  --surface: var(--white);
  --fg: var(--ink);
  --fg-2: var(--ink-muted);
  --fg-3: var(--ink-soft);
  --rule: var(--line);
  --accent: var(--teal-ink);      /* links, eyebrows, selected states, the focus ring */
  --accent-hover: var(--teal-ink-deep);
  --accent-wash: var(--teal-wash);
  --fill: var(--teal);            /* the button, the selected tab: the brand teal with navy text */
  --fill-hover: #0DADB1;
  --on-fill: var(--on-brand);

  /* type */
  --serif: "Qolsum Serif", "Serif Fallback", Georgia, serif;
  --sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --t-display: clamp(2.625rem, 1.55rem + 4.6vw, 5.25rem);
  --t-h2: clamp(2rem, 1.35rem + 2.7vw, 3.5rem);
  --t-h3: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  --t-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-eyebrow: 0.78125rem;
  --w-display: 440;
  --w-h2: 450;

  /* space, grid, shape */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(72px, 40px + 6vw, 140px);
  --max: 1240px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --gap: 24px;
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-pill: 999px;
  --shadow-screen: 0 1px 2px rgb(10 34 51 / 0.06), 0 18px 40px -24px rgb(10 34 51 / 0.28);
  --shadow-nav: 0 1px 2px rgb(10 34 51 / 0.06), 0 10px 28px -18px rgb(10 34 51 / 0.32);
  --nav-h: 56px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 120ms;
  --dur-2: 220ms;
  --dur-3: 480ms;
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 40px);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--fg-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 0;
}
body > main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
::selection { background: var(--teal-wash); color: var(--ink); }
.band--deep ::selection { background: var(--teal); color: var(--deep); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
input, textarea, select { caret-color: var(--accent); accent-color: var(--accent); }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* 4. Layout and surfaces */
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.band { padding-block: var(--section-y); background: var(--bg); color: var(--fg-2); }
.band--sky { --bg: var(--sky); }
.band--deep {
  --bg: var(--deep);
  --surface: var(--deep-raised);
  --fg: var(--deep-text);
  --fg-2: var(--deep-muted);
  --fg-3: var(--deep-muted);
  --rule: rgb(234 245 249 / 0.14);
  --accent: var(--teal);
  --accent-hover: #3FD3D6;
  --accent-wash: rgb(16 192 196 / 0.14);
  --fill: var(--teal);
  --fill-hover: #3FD3D6;
  --on-fill: var(--deep);
  color-scheme: dark;
}
.band--flush-top { padding-top: 0; }
.band--flush-bottom { padding-bottom: 0; }
@media (max-width: 599px) {
  :root { --gap: 16px; }
}

/* a section head: eyebrow, heading, lead. Left aligned; the lead can sit to the right of the heading */
.head { display: grid; gap: var(--s-4); max-width: 46rem; }
.head + * { margin-top: var(--s-7); }
.head .lead { margin-top: var(--s-2); }
.head--split { max-width: none; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.head--split > :not(.head__aside) { grid-column: 1 / span 7; }
.head--split .head__aside { grid-column: 9 / -1; grid-row: 1 / span 3; align-self: end; }
@media (max-width: 899px) {
  .head--split { grid-template-columns: 1fr; }
  .head--split > :not(.head__aside), .head--split .head__aside { grid-column: 1; grid-row: auto; }
}

/* 5. Type */
h1, h2, h3, h4 { margin: 0; color: var(--fg); font-family: var(--serif); font-optical-sizing: auto; text-wrap: balance; }
h1, .display {
  font-size: var(--t-display);
  font-weight: var(--w-display);
  line-height: 1.02;
  letter-spacing: -0.022em;
}
h2, .h2 {
  font-size: var(--t-h2);
  font-weight: var(--w-h2);
  line-height: 1.08;
  letter-spacing: -0.018em;
}
h3, .h3 {
  font-size: var(--t-h3);
  font-weight: 480;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h4 { font-family: var(--sans); font-size: var(--t-body); font-weight: 600; line-height: 1.4; }
.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--fg-2); max-width: 38rem; text-wrap: pretty; }
.small { font-size: var(--t-small); line-height: 1.5; }
.muted { color: var(--fg-3); }
.num { font-variant-numeric: lining-nums tabular-nums; }
strong, b { font-weight: 600; color: var(--fg); }
p { text-wrap: pretty; }

/* 6. Buttons and links. One button style; everything else is a text link. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--on-fill);
  font-family: var(--sans);
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-1) ease;
}
.btn:hover { background: var(--fill-hover); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transition: text-decoration-color var(--dur-1) ease;
}
.link:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.link svg { width: 14px; height: 14px; }

/* 7. Pill nav: floats over the page; one button, the language switch, three links */
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none;
}
.skip-link:focus-visible { top: 12px; outline-color: var(--teal); }

.nav {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 50;
  padding-inline: var(--gutter);
  pointer-events: none;
  view-transition-name: site-nav;
}
.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-1);
  width: fit-content;
  max-width: 100%;
  min-height: var(--nav-h);
  margin-inline: auto;
  padding: 8px 8px 8px 22px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid rgb(10 34 51 / 0.08);
  box-shadow: var(--shadow-nav);
  color: var(--ink);
}
.nav__logo { display: block; padding: 8px 14px 8px 0; margin-right: var(--s-2); border-radius: var(--r-pill); }
.wordmark { display: block; width: 104px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a, .nav__lang {
  display: inline-flex; align-items: center;
  min-height: 38px; padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--ink); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  transition: background-color var(--dur-1) ease;
}
.nav__links a:hover, .nav__lang:hover { background: var(--sky); }
.nav__links a[aria-current="page"] { background: var(--teal-wash); color: var(--accent); }
.nav__lang { margin-left: var(--s-2); padding: 0 12px; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.04em; color: var(--ink-muted); }
.nav__lang::before { content: ""; width: 1px; height: 20px; background: var(--line); margin: 0 14px 0 -12px; }
.nav__cta { margin-left: var(--s-2); }
.nav__toggle {
  display: none;
  place-items: center;
  width: 40px; height: 40px; margin-left: 2px;
  border: 0; border-radius: var(--r-pill);
  background: var(--sky); cursor: pointer;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 16px; height: 1.5px; border-radius: 2px; background: var(--ink);
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) ease;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -5px; }
.nav__bars::after { top: 5px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav__menu {
  pointer-events: auto;
  width: 100%;
  max-width: 520px;
  margin: 8px auto 0;
  padding: 8px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgb(10 34 51 / 0.08);
  box-shadow: var(--shadow-nav);
}
.nav__menu a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 0 16px; border-radius: 12px;
  color: var(--ink); font-size: 1.0625rem; font-weight: 500; text-decoration: none;
}
.nav__menu a:hover { background: var(--sky); }
.nav__menu a[aria-current="page"] { color: var(--accent); background: var(--teal-wash); }
.nav__menu .nav__menu-lang { border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; margin-top: 4px; color: var(--ink-muted); }
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .nav__pill { width: 100%; max-width: 520px; padding-left: 18px; }
  .nav__lang { margin-left: auto; padding: 0 10px; }
  .nav__lang::before { content: none; }
  .nav__cta { margin-left: 4px; }
}
@media (max-width: 599px) {
  .nav__pill { padding-left: 16px; }
  .nav__logo { padding-right: 4px; margin-right: 0; }
  .nav__logo .wordmark { width: 92px; }
  .nav__lang { padding: 0 8px; }
}
@media (max-width: 369px) {
  .nav__cta { display: none; }
}
.nav__menu .nav__menu-cta, .nav__menu .nav__menu-cta[aria-current="page"] { margin-top: 6px; justify-content: center; background: var(--fill); color: var(--on-fill); font-weight: 600; border-radius: var(--r-pill); }
.nav__menu .nav__menu-cta:hover { background: var(--fill-hover); }
/* the open phone menu dims the page behind it; a tap there closes it (js/site.js) */
body.menu-open::before { content: ""; position: fixed; inset: 0; z-index: 40; background: rgb(10 34 51 / 0.32); animation: dim-in 300ms ease; }
.motion .nav__menu:not([hidden]) { animation: menu-in 340ms var(--ease-out); transform-origin: 50% 0; }
@keyframes dim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* 8. Footer: quiet, on mist; no button (the page's own closing call to action sits above it) */
.footer {
  --bg: var(--sky);
  background: var(--bg);
  color: var(--fg-2);
  padding: var(--s-9) 0 var(--s-7);
  font-size: var(--t-small);
}
.footer__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--rule);
}
.footer__brand { grid-column: 1 / span 5; display: grid; gap: var(--s-3); align-content: start; }
.footer__brand .wordmark { width: 128px; }
.footer__brand p { max-width: 24rem; }
.footer__nav, .footer__contact { display: grid; gap: var(--s-2); align-content: start; }
.footer__nav { grid-column: 7 / span 3; }
.footer__contact { grid-column: 10 / span 3; }
.footer h2 { font-family: var(--sans); font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: var(--s-2); }
.footer a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer a:hover { color: var(--accent); text-decoration: underline; }
.footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer__contact svg { width: 16px; height: 16px; fill: currentColor; }
.footer__legal { display: grid; gap: var(--s-3); padding-top: var(--s-6); color: var(--fg-3); font-size: 0.875rem; }
.footer__legal address { font-style: normal; color: var(--fg-2); }
.footer__policies { display: flex; flex-wrap: wrap; gap: 4px 20px; }
@media (max-width: 599px) { .footer__policies { flex-direction: column; align-items: flex-start; gap: 6px; } .footer__nav a, .footer__contact a, .footer__policies a { padding-block: 3px; } }
.footer__legal p { max-width: 72ch; }
@media (max-width: 899px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__nav { grid-column: 1 / span 6; }
  .footer__contact { grid-column: 7 / span 6; }
}
@media (max-width: 479px) {
  .footer__nav, .footer__contact { grid-column: 1 / -1; }
}

/* 9. Hero: heading and lead side by side, the client logos under them. The live demo is on
   Financial Advisors only (owner's decision, November 6, 2026); the lead links to it. */
.hero { padding-top: calc(12px + var(--nav-h) + clamp(56px, 3vw + 40px, 96px)); padding-bottom: 0; overflow: clip; }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  grid-template-areas: "t t t t t t t t a a a a";
  padding-bottom: clamp(8px, 2vw, 24px);
}
.hero__title { grid-area: t; display: grid; gap: var(--s-4); }
.hero__title h1 { max-width: 14ch; }
.hero__aside { grid-area: a; align-self: end; display: grid; justify-items: start; gap: var(--s-4); padding-bottom: 6px; }
.hero__aside .lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }
@media (max-width: 1023px) {
  .hero__grid { grid-template-areas: "t t t t t t t t t t t t" "a a a a a a a a a a a a"; }
  .hero__aside { margin-top: var(--s-5); max-width: 36rem; }
}

/* 10. Org screens: Salesforce Lightning, drawn in HTML. Their colours are Salesforce's own (from
   demos/household-360.css), kept inside .org so they never reach the site's chrome. Each screen
   adapts to its own width (container queries), not the window's. */
.org {
  --sf-bg: #F3F3F5;
  --sf-card: #FFFFFF;
  --sf-line: #E3E6EC;
  --sf-line-2: #EEF0F4;
  --sf-ink: #16213B;
  --sf-ink-2: #3E4A63;
  --sf-muted: #5B6580;
  --sf-brand: #0B5CD5;
  --sf-brand-soft: #EAF2FF;
  --sf-nav: #16325C;
  --sf-nav-2: #1D3F72;
  --sf-violet: #7B3FE4;
  --sf-violet-soft: #F2EBFF;
  --sf-green: #24703D;
  --sf-green-soft: #E6F4EA;
  --sf-red: #C23934;
  --sf-red-soft: #FDECEA;
  --sf-amber: #8A5300;
  --sf-amber-soft: #FFF4E0;
  --sf-teal: #0B8A8A;
  position: relative;
  container: org / inline-size;
  color: var(--sf-ink);
}
.org__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--sf-bg);
  border: 1px solid rgb(10 34 51 / 0.1);
  box-shadow: var(--shadow-screen);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  font-variant-numeric: lining-nums tabular-nums;
  text-align: left;
  color: var(--sf-ink);
  user-select: none;
}
.org__frame b, .org__frame strong { color: inherit; }
.band--deep .org__frame { border-color: rgb(255 255 255 / 0.12); box-shadow: 0 24px 60px -30px rgb(0 0 0 / 0.6); }
.org__badge {
  display: inline-flex; align-items: center; align-self: center; flex: none;
  margin-left: auto; height: 20px; padding: 0 8px; border-radius: var(--r-pill);
  background: #FFF4E0; color: #7A4A00;
  font-size: 11px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
}
.sf-bar .org__badge { background: rgb(255 255 255 / 0.16); color: #FFFFFF; }
.sf-bar .sf-tools + .org__badge, .sf-bar .org__badge + .sf-tools { margin-left: 0; }
.org__cap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px;
  margin-top: var(--s-4);
  font-size: var(--t-small); color: var(--fg-3);
}
.org__cap p { max-width: 52ch; }

/* the Lightning shell */
.sf-bar {
  display: flex; align-items: center; gap: 14px;
  height: 44px; padding: 0 16px;
  background: var(--sf-nav); color: #FFFFFF;
}
.sf-cloud svg { width: 30px; height: 21px; }
.sf-grid-ico { width: 16px; height: 16px; opacity: 0.85; }
.sf-app { min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-search {
  flex: 1; max-width: 420px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 10px;
  border-radius: 6px; border: 1px solid rgb(255 255 255 / 0.25);
  background: var(--sf-nav-2); color: rgb(255 255 255 / 0.75);
  white-space: nowrap; overflow: hidden;
}
.sf-search svg { width: 13px; height: 13px; }
.sf-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.sf-tools svg { width: 16px; height: 16px; }
.sf-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; color: var(--sf-nav); font-size: 11px; font-weight: 700; }
.sf-tabs {
  display: flex; gap: 2px; height: 36px; padding: 0 12px;
  background: var(--sf-card); border-bottom: 1px solid var(--sf-line);
  color: var(--sf-ink-2); font-size: 12px; font-weight: 500;
}
.sf-tabs span { display: flex; align-items: center; padding: 0 10px; border-bottom: 3px solid transparent; white-space: nowrap; }
.sf-tabs .is-on { border-bottom-color: var(--sf-brand); color: var(--sf-ink); font-weight: 600; }
.sf-page { display: grid; gap: 10px; padding: 12px; }
.sf-card { background: var(--sf-card); border: 1px solid var(--sf-line); border-radius: var(--r-sm); min-width: 0; }
.sf-card__h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.sf-card__h .sf-va { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--sf-brand); }
.sf-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; color: #FFFFFF; font-size: 12px; font-weight: 700; }
.sf-ico svg { width: 13px; height: 13px; }
.sf-ico--green { background: #2E844A; }
.sf-ico--violet { background: var(--sf-violet); }
.sf-ico--brand { background: var(--sf-brand); }
.sf-ico--orange { background: #E3803B; }
.sf-ico--pink { background: #D8487B; }
.sf-ico--teal { background: var(--sf-teal); }

.sf-muted { color: var(--sf-muted); }
.sf-id { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: -0.01em; }

/* record header */
.sf-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.sf-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--sf-violet); color: #FFFFFF; }
.sf-icon svg { width: 20px; height: 20px; }
.sf-head__name { min-width: 0; }
.sf-head__name small { display: block; color: var(--sf-muted); font-size: 11px; }
.sf-head__name b { display: block; color: var(--sf-ink); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.sf-btns { display: flex; gap: 6px; margin-left: auto; }

/* key figures */
.sf-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 11px 0; }
.sf-kpis > div { padding: 0 14px; border-left: 1px solid var(--sf-line-2); min-width: 0; }
.sf-kpis > div:first-child { border-left: 0; }
.sf-kpis span { display: block; color: var(--sf-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-kpis b { display: block; color: var(--sf-ink); font-size: 14px; font-weight: 600; white-space: nowrap; }

/* the body: accounts and activity on the left, members and tasks on the right */
.sf-cols { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); grid-template-areas: "acc mem" "act tsk"; gap: 10px; align-items: start; }
.sf-accounts { grid-area: acc; }
.sf-members { grid-area: mem; }
.sf-activity { grid-area: act; }
.sf-tasks { grid-area: tsk; }

.sf-table { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 1.05fr) minmax(0, 0.95fr); }
.sf-table > span { padding: 7px 12px; border-top: 1px solid var(--sf-line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-table > .sf-th { padding-block: 6px; background: #F8F9FB; border-top: 1px solid var(--sf-line); border-bottom: 1px solid var(--sf-line); color: var(--sf-ink-2); font-size: 11px; font-weight: 600; }
.sf-table .sf-r { text-align: right; }
.sf-table > span:nth-child(-n+4) { border-top: 0; }

.sf-obj { display: block; font-size: 11px; color: var(--sf-ink-2); }

.sf-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--sf-line-2); }
.sf-list > li > div { min-width: 0; }
.sf-list b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-list small { display: block; color: var(--sf-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-av { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--sf-violet-soft); color: var(--sf-violet); font-size: 10px; font-weight: 700; }

.sf-box { width: 14px; height: 14px; border: 1.5px solid #8A94AB; border-radius: 3px; background: #FFFFFF; }
.sf-badge { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 4px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.sf-badge--done { background: var(--sf-green-soft); color: var(--sf-green); }
.sf-badge--prog { background: var(--sf-amber-soft); color: var(--sf-amber); }
.sf-badge--open { background: var(--sf-brand-soft); color: var(--sf-brand); }
.sf-badge--late { background: var(--sf-red-soft); color: var(--sf-red); }
.sf-badge--new { background: var(--sf-violet-soft); color: var(--sf-violet); }

/* narrow screens show less, never smaller type */
@container org (max-width: 400px) { .sf-grid-ico { display: none; } }
.org__badge--narrow { display: none; }
@container org (max-width: 760px) {
  .sf-bar .org__badge--narrow { display: inline-flex; margin-left: 10px; order: 9; }
  .sf-tabs, .sf-search, .sf-tools svg { display: none; }
  .sf-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .sf-kpis > div:nth-child(4) { border-left: 0; }
  .sf-cols { grid-template-columns: minmax(0, 1fr); grid-template-areas: "acc" "mem" "tsk"; }
  .sf-activity { display: none; }
}
@container org (max-width: 520px) {
  .sf-bar { gap: 10px; padding: 0 12px; }
  .sf-bar .org__badge, .sf-avatar, .sf-cloud { flex: none; }
  .sf-app { font-size: 12px; }
  .sf-btns { display: none; }
  .sf-head__name b { font-size: 16px; }
  .sf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-kpis > div:nth-child(3), .sf-kpis > div:nth-child(5) { border-left: 0; }
  .sf-kpis > div:nth-child(4) { border-left: 1px solid var(--sf-line-2); }
  .sf-kpis > div:nth-child(n+5) { display: none; }
  .sf-table { grid-template-columns: minmax(0, 1fr) auto; }
  .sf-table > .sf-c2, .sf-table > .sf-c3 { display: none; }
  .sf-table > span:nth-child(-n+4) { border-top: 0; }
  .sf-accounts .sf-table > span:nth-child(n+17) { display: none; }
  .sf-tasks .sf-list > li:nth-child(n+4) { display: none; }
}

/* 11. Client logos: a slow marquee (motion only), a still row otherwise */
.marquee { padding-block: clamp(48px, 5vw, 80px); }
.marquee__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-4); margin-bottom: var(--s-5); }
.marquee__head .eyebrow { color: var(--fg-3); }
.marquee:focus-visible { outline-offset: -3px; border-radius: 0; }   /* the strip takes keyboard focus so it can be paused */
.motion .marquee { cursor: pointer; }
.marquee__viewport { overflow: hidden; }
.marquee__track { display: flex; width: max-content; }
.marquee__list { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; }
.marquee__list li { display: flex; align-items: center; height: 40px; }
.marquee__list img { width: auto; height: 26px; max-width: 150px; object-fit: contain; opacity: 0.72; }
.marquee__list .tall img { height: 34px; }
.band--deep .marquee__list img { filter: brightness(0) invert(1); opacity: 0.7; }
.marquee__list--copy { display: none; }
@media (max-width: 599px) {
  .marquee__list { gap: 22px 36px; }
  .marquee__list img { height: 22px; max-width: 120px; }
  .marquee__list .tall img { height: 30px; }
}

/* 12. Scatter: seven places become one record. Static before/after in two columns; with motion,
   the chips travel into the record's rows once (js/site.js). */
.scatter__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr);
  align-items: center;
  column-gap: var(--gap);
}
.scatter__label { display: block; margin-bottom: var(--s-4); font-size: var(--t-small); font-weight: 600; color: var(--fg); }
.scatter__label span { display: block; font-weight: 400; color: var(--fg-3); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--fg);
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2;
}
.chip small { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--fg-3); }
.chip__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); }
.chip__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip__icon img { width: 34px; height: 34px; border-radius: 9px; }
.chip__icon--logo { background: none; }
/* a loose cloud: chips sit a little off the line, as things do on a desk */
.chips .chip:nth-child(1) { rotate: -2deg; }
.chips .chip:nth-child(2) { rotate: 1.5deg; margin-top: 10px; }
.chips .chip:nth-child(3) { rotate: 1deg; margin-left: 18px; }
.chips .chip:nth-child(4) { rotate: -1.5deg; margin-top: 6px; }
.chips .chip:nth-child(5) { rotate: 2deg; margin-left: 8px; }
.chips .chip:nth-child(6) { rotate: -1deg; margin-top: 12px; }
.chips .chip:nth-child(7) { rotate: 1.5deg; margin-left: 24px; }
.scatter__arrow { display: grid; place-items: center; color: var(--fg-3); }
.scatter__arrow svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.sf-record .sf-head { border-bottom: 1px solid var(--sf-line); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.sf-rows > li { display: grid; grid-template-columns: 24px minmax(0, 7.5rem) minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--sf-line-2); font-size: 12.5px; }
.sf-rows > li:first-child { border-top: 0; }
.sf-rows .sf-ico { width: 24px; height: 24px; }
.sf-rows dt, .sf-rows .k { color: var(--sf-muted); font-weight: 500; }
.sf-rows .v { position: relative; color: var(--sf-ink); font-weight: 600; }
.sf-rows .v small { font-weight: 400; color: var(--sf-muted); font-size: 12px; }
.sf-record .sf-head__name small { font-size: 12px; }
.sf-record .org__frame { background: var(--sf-card); }
.sf-record .sf-rows { padding: 4px 0; }

@media (max-width: 899px) {
  .scatter__stage { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-5); }
  .scatter__arrow { rotate: 90deg; }
  .chips .chip { margin: 0; }
}
@media (max-width: 599px) {
  .chips { gap: 10px 8px; }
  .chip { padding: 6px 14px 6px 6px; font-size: 0.875rem; gap: 8px; }
  .chip small { display: none; }
  .chip__icon { width: 28px; height: 28px; }
  .chip__icon svg { width: 16px; height: 16px; }
  .chip__icon img { width: 28px; height: 28px; border-radius: 7px; }
  .sf-rows > li { grid-template-columns: 24px minmax(0, 6.5rem) minmax(0, 1fr); padding: 9px 12px; align-items: start; }
  .sf-rows .v { white-space: normal; }
  .sf-rows .v small { display: block; }
}

/* the moving version (js/site.js adds .is-armed; each row gets .is-filled as its chip lands) */
.scatter.is-armed .sf-rows .v, .scatter.is-armed .sf-rows .v small { color: transparent; transition: color 360ms var(--ease-out); }
.scatter.is-armed .sf-rows .v::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 68%; height: 8px; border-radius: 4px; background: var(--sf-line-2);
  transition: opacity 200ms ease;
}
.scatter.is-armed .sf-rows li:nth-child(even) .v::before { width: 52%; }
.scatter.is-armed .sf-rows li.is-filled .v { color: var(--sf-ink); }
.scatter.is-armed .sf-rows li.is-filled .v small { color: var(--sf-muted); }
.scatter.is-armed .sf-rows li.is-filled .v::before { opacity: 0; }
.scatter.is-armed .sf-rows li.is-filled .sf-ico { animation: row-land 420ms var(--ease-out); }
.chip.is-retired { color: var(--fg-3); border-style: dashed; background: transparent; transition: color 360ms ease, background-color 360ms ease; }
.chip.is-retired .chip__icon { background: transparent; color: var(--fg-3); }
.chip.is-retired .chip__icon img { filter: grayscale(1); opacity: 0.6; }
.chip-flight { position: absolute; z-index: 5; margin: 0; pointer-events: none; will-change: transform, opacity; }
@keyframes row-land { from { scale: 0.6; } 60% { scale: 1.12; } to { scale: 1; } }

/* 13. Process: three steps. Wide windows with motion: the steps stay pinned on the left while the
   screen on the right changes with the scroll. js/site.js switches this on (.is-pinned) and sets the
   step (data-step) as the scroll passes each third; the change itself is a timed cross-fade, smooth at
   any scroll speed. The line beside the steps fills with the scroll (scroll-driven animation, or --p).
   With no script, reduced motion or a narrow window: each step with its own screen, one after another. */
.process__list { display: grid; gap: var(--s-8); margin-top: var(--s-7); }
.process__step { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-5); align-items: center; }
.process__text { grid-column: 1 / span 4; display: grid; gap: var(--s-3); align-content: start; }
.process__num { font-family: var(--sans); font-size: var(--t-small); font-weight: 600; color: var(--step-ink, var(--accent)); font-variant-numeric: tabular-nums; }
/* the three steps take the logo's three colours, left to right: blue, teal, green */
.process__step:nth-child(1) { --step-ink: var(--blue-ink); }
.process__step:nth-child(2) { --step-ink: var(--teal-ink); }
.process__step:nth-child(3) { --step-ink: var(--green-ink); }
.process__text p { max-width: 30rem; }
.process__screen { grid-column: 6 / -1; }
.process__track { position: relative; }
.process__mark { display: none; }
@media (max-width: 899px) {
  .process__step { grid-template-columns: minmax(0, 1fr); }
  .process__text, .process__screen { grid-column: 1; }
}

@media (min-width: 1024px) and (min-height: 640px) {
  .process.is-pinned { padding-block: 0; }
  .process.is-pinned .process__track { height: 340vh; view-timeline: --process block; }
  /* where each step takes over: at one third and two thirds of the pinned scroll (the window's middle line
     crosses a marker; js/site.js watches them with an IntersectionObserver) */
  .process.is-pinned .process__mark { display: block; position: absolute; left: 0; width: 1px; pointer-events: none; }
  .process.is-pinned .process__mark[data-mark="1"] { top: 0; height: 38.2%; }
  .process.is-pinned .process__mark[data-mark="2"] { top: 38.2%; height: 23.6%; }
  .process.is-pinned .process__mark[data-mark="3"] { top: 61.8%; height: 38.2%; }
  .process.is-pinned .process__pin {
    position: sticky; top: 0;
    height: 100vh;
    display: flex; align-items: center;
    padding-top: calc(12px + var(--nav-h));
  }
  .process.is-pinned .process__layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    column-gap: var(--gap);
    align-items: start;
  }
  .process.is-pinned .head { grid-column: 1 / span 5; grid-row: 1; margin-bottom: var(--s-6); }
  .process.is-pinned .head h2 { font-size: clamp(2rem, 1.2rem + 1.8vw, 3rem); }
  .process.is-pinned .process__list, .process.is-pinned .process__step { display: contents; }

  /* the line beside the steps: grey track, a fill that follows the scroll continuously, in the step's colour */
  .process.is-pinned .process__bar {
    display: block; position: relative; grid-column: 1; grid-row: 2 / span 3; justify-self: start;
    width: 2px; height: 100%; border-radius: 2px; background: var(--rule); overflow: hidden;
  }
  .process.is-pinned .process__bar::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--step-fill, var(--teal));
    transition: background-color 600ms ease;
    transform-origin: 50% 0; transform: scaleY(var(--p, 0));
  }

  /* the steps: the one in view is ink and opens its text with an ease; the others wait in grey */
  .process.is-pinned .process__text {
    grid-column: 1 / span 5;
    display: grid; grid-template-rows: auto auto 0fr; gap: 0;
    padding: 14px 0 14px 26px;
    transition: grid-template-rows 700ms var(--ease-out);
  }
  .process.is-pinned .process__step:nth-child(1) .process__text { grid-row: 2; }
  .process.is-pinned .process__step:nth-child(2) .process__text { grid-row: 3; }
  .process.is-pinned .process__step:nth-child(3) .process__text { grid-row: 4; }
  .process.is-pinned .process__num { color: var(--fg-3); transition: color 500ms ease; }
  .process.is-pinned .process__text h3 { margin-top: 4px; color: var(--fg-3); transition: color 500ms ease; }
  .process.is-pinned .process__text > p {
    min-height: 0; overflow: hidden; margin: 0; padding-top: 8px;
    opacity: 0; transform: translateY(6px);
    transition: opacity 400ms ease, transform 700ms var(--ease-out);
  }
  .process.is-pinned[data-step="1"] .process__step:nth-child(1) .process__text,
  .process.is-pinned[data-step="2"] .process__step:nth-child(2) .process__text,
  .process.is-pinned[data-step="3"] .process__step:nth-child(3) .process__text { grid-template-rows: auto auto 1fr; }
  .process.is-pinned[data-step="1"] .process__step:nth-child(1) .process__num,
  .process.is-pinned[data-step="2"] .process__step:nth-child(2) .process__num,
  .process.is-pinned[data-step="3"] .process__step:nth-child(3) .process__num { color: var(--step-ink); }
  .process.is-pinned[data-step="1"] { --step-fill: var(--blue); }
  .process.is-pinned[data-step="2"] { --step-fill: var(--teal); }
  .process.is-pinned[data-step="3"] { --step-fill: var(--green); }
  .process.is-pinned[data-step="1"] .process__step:nth-child(1) .process__text h3,
  .process.is-pinned[data-step="2"] .process__step:nth-child(2) .process__text h3,
  .process.is-pinned[data-step="3"] .process__step:nth-child(3) .process__text h3 { color: var(--fg); }
  .process.is-pinned[data-step="1"] .process__step:nth-child(1) .process__text > p,
  .process.is-pinned[data-step="2"] .process__step:nth-child(2) .process__text > p,
  .process.is-pinned[data-step="3"] .process__step:nth-child(3) .process__text > p { opacity: 1; transform: none; transition-delay: 160ms, 120ms; }

  /* the screens: a slow cross-fade; the one leaving moves the way the page moves */
  .process.is-pinned .process__screen {
    grid-column: 7 / -1;
    grid-row: 1 / span 4;
    align-self: center;
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    visibility: hidden;
    transition: opacity 380ms ease, transform 800ms var(--ease-out), visibility 0s linear 800ms;
  }
  .process.is-pinned[data-step="2"] .process__step:nth-child(1) .process__screen,
  .process.is-pinned[data-step="3"] .process__step:nth-child(-n+2) .process__screen { transform: translateY(-28px) scale(0.985); }
  .process.is-pinned[data-step="1"] .process__step:nth-child(1) .process__screen,
  .process.is-pinned[data-step="2"] .process__step:nth-child(2) .process__screen,
  .process.is-pinned[data-step="3"] .process__step:nth-child(3) .process__screen {
    opacity: 1; transform: none; visibility: visible;
    transition: opacity 700ms ease 240ms, transform 950ms var(--ease-out) 200ms, visibility 0s;
  }
}
/* where the browser has scroll-driven animations, the fill follows the scroll in CSS alone */
@supports (animation-timeline: view()) {
  @media (min-width: 1024px) and (min-height: 640px) {
    .process.is-pinned .process__bar::after {
      transform: scaleY(0);
      animation: process-fill linear both;
      animation-timeline: --process;
      animation-range: contain 0% contain 100%;
    }
  }
}
@keyframes process-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.process__bar { display: none; }

/* the three process screens */
.sf-doc { padding: 18px 20px 20px; background: var(--sf-card); }
.sf-doc__title { display: block; margin: 0 0 2px; font-size: 17px; font-weight: 700; color: var(--sf-ink); letter-spacing: -0.01em; }
.sf-doc .sf-meta { color: var(--sf-muted); font-size: 11.5px; }
.sf-doc dl { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0; margin-top: 14px; border-top: 1px solid var(--sf-line-2); }
.sf-doc dt, .sf-doc dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--sf-line-2); }
.sf-doc dt { color: var(--sf-muted); font-weight: 600; font-size: 11.5px; }
.sf-doc dd { color: var(--sf-ink); font-size: 12.5px; }
.sf-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sf-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; background: var(--sf-bg); border: 1px solid var(--sf-line); font-size: 11px; font-weight: 500; color: var(--sf-ink-2); }
.sf-tag--warn { background: var(--sf-amber-soft); border-color: transparent; color: var(--sf-amber); }

.sf-schema { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0; background: var(--sf-card); }
.sf-canvas {
  position: relative;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 30px; align-content: center;
  padding: 26px 22px;
  background: #F7F8FA;
  border-right: 1px solid var(--sf-line);
}
.sf-obj-box { position: relative; z-index: 1; background: #FFFFFF; border: 1px solid #C9D1DE; border-radius: 6px; font-size: 11px; }
.sf-obj-box b { display: block; padding: 6px 9px; border-bottom: 1px solid var(--sf-line); font-size: 11.5px; color: var(--sf-ink); }
.sf-obj-box span { display: block; padding: 3px 9px; color: var(--sf-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-obj-box span:last-child { padding-bottom: 7px; }
.sf-obj-box--main { grid-column: 1 / -1; justify-self: center; width: 56%; border-color: var(--sf-brand); }
.sf-obj-box--main b { background: var(--sf-brand-soft); color: var(--sf-brand); border-radius: 5px 5px 0 0; }
.sf-canvas::before, .sf-canvas::after { content: ""; position: absolute; z-index: 0; border: 1px solid #9AA6BA; border-bottom: 0; }
.sf-canvas::before { left: 25%; right: 25%; top: 30%; height: 20%; }
.sf-canvas::after { left: 50%; top: 30%; height: 42%; width: 0; border-right: 0; }
.sf-flow { padding: 16px 18px; }
.sf-flow ol { margin-top: 10px; display: grid; gap: 0; counter-reset: flow; }
.sf-flow li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 0 0 14px; counter-increment: flow; }
.sf-flow li::before { content: counter(flow); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sf-brand-soft); color: var(--sf-brand); font-size: 11px; font-weight: 700; }
.sf-flow li:not(:last-child)::after { content: ""; position: absolute; left: 10.5px; top: 24px; bottom: 2px; width: 1px; background: var(--sf-line); }
.sf-flow li b { display: block; font-size: 12px; }
.sf-flow li small { display: block; color: var(--sf-muted); font-size: 11px; }

.sf-plan { background: var(--sf-card); }
.sf-plan__h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--sf-line); }
.sf-plan__h b { font-size: 14px; }
.sf-plan__h .sf-badge { margin-left: auto; }
.sf-progress { display: flex; gap: 3px; padding: 12px 16px 2px; }
.sf-progress i { flex: 1; height: 5px; border-radius: 3px; background: #2E844A; }
.sf-progress i.is-next { background: var(--sf-line); }
.sf-checks > li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--sf-line-2); }
.sf-checks > li:first-child { border-top: 0; }
.sf-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #2E844A; color: #FFFFFF; }
.sf-check svg { width: 10px; height: 10px; }
.sf-check--todo { background: #FFFFFF; border: 1.5px solid #8A94AB; }
.sf-checks small { color: var(--sf-muted); font-size: 11px; }
.sf-msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; margin: 6px 12px 12px; padding: 10px 12px; border-radius: 8px; background: var(--sf-bg); border: 1px solid var(--sf-line); }
.sf-msg .sf-av { width: 28px; height: 28px; background: var(--accent); color: #FFFFFF; border-radius: 7px; }
.sf-msg b { font-size: 12px; }
.sf-msg b span { margin-left: 6px; font-weight: 400; color: var(--sf-muted); font-size: 11px; }
.sf-msg p { margin-top: 2px; font-size: 12px; color: var(--sf-ink-2); }
@container org (max-width: 560px) {
  .sf-schema { grid-template-columns: minmax(0, 1fr); }
  .sf-canvas { border-right: 0; border-bottom: 1px solid var(--sf-line); }
  .sf-doc dl { grid-template-columns: minmax(0, 1fr); }
  .sf-doc dt { padding-bottom: 0; border-bottom: 0; }
}

/* 14. Page parts */

/* tick lists: what we build */
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--fg-2); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  rotate: -45deg; translate: 0 -2px;
}

/* proof: the four numbers and the two testimonials */
.ledger {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.ledger li { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-6) var(--s-5) var(--s-6) 0; }
.ledger li + li { padding-left: var(--s-5); border-left: 1px solid var(--rule); }
.ledger__num {
  font-family: var(--serif); font-size: clamp(2.75rem, 1.8rem + 3vw, 4.5rem); font-weight: 420;
  line-height: 1; letter-spacing: -0.02em; color: var(--fg);
  font-variant-numeric: lining-nums tabular-nums;
}
.ledger__label { font-size: var(--t-small); color: var(--fg-2); max-width: 14rem; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); margin-top: var(--s-8); }
.quote { display: grid; gap: var(--s-5); align-content: space-between; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); font-weight: 420;
  line-height: 1.38; letter-spacing: -0.008em; color: var(--fg); text-wrap: pretty;
}
.quote figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.quote__who { display: grid; font-size: var(--t-small); color: var(--fg-3); }
.quote__who b { color: var(--fg); font-weight: 600; }
.quote__who small { font-size: 0.8125rem; }
.quote figcaption img { width: auto; height: 22px; opacity: 0.75; }
/* the person who said it: round photo beside the name (Pierre Rizk) */
.quote__person { flex: 1 1 12rem; display: flex; align-items: center; gap: var(--s-3); min-width: 0; }   /* on a narrow phone the logo drops to the next line */
.quote figcaption .quote__photo { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; opacity: 1; background: #0B0F4A; }
@media (max-width: 899px) {
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ledger li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .quotes { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
}
@media (max-width: 419px) {
  .ledger li { padding: var(--s-5) var(--s-3) var(--s-5) 0; }
  .ledger li + li { padding-left: var(--s-3); }
  .ledger li:nth-child(3) { padding-left: 0; }
}

/* tabs: pills that scroll sideways on a phone */
.tabs {
  display: flex; gap: 6px; padding: 4px; margin-bottom: var(--s-6);
  width: fit-content; max-width: 100%;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--rule);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--fg-2); font-size: 0.9375rem; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease;
}
.tab:hover { color: var(--fg); background: var(--bg); }
.tab[aria-selected="true"] { background: var(--fill); color: var(--on-fill); font-weight: 600; }
.tab:focus-visible { outline-offset: -2px; }
.js [data-tabs]:not(.is-ready) [role="tabpanel"]:not(:first-of-type) { display: none; }

/* one cloud: what we build, with a screen where we have one */
.cloud {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-6);
  align-items: center; padding: var(--s-7) 0 0; border-top: 1px solid var(--rule);
}
.cloud:focus-visible { outline-offset: 8px; }
.cloud__text { grid-column: 1 / span 5; display: grid; gap: var(--s-4); align-content: start; }
.cloud__text p { max-width: 34rem; }
.cloud__text .ticks { margin-top: var(--s-2); }
.cloud__text .link { margin-top: var(--s-2); justify-self: start; }
.cloud__screen { grid-column: 7 / -1; }
.cloud--text { align-items: start; }
.cloud--text .cloud__text { grid-column: 1 / span 6; }
.cloud__list { grid-column: 8 / -1; grid-template-columns: minmax(0, 1fr); padding-top: 6px; }
.js [data-tabs].is-ready .cloud { animation: panel-in 520ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html:not(.js) .cloud + .cloud, [data-tabs]:not(.is-ready) .cloud + .cloud { margin-top: var(--s-7); }
@media (max-width: 899px) {
  .cloud__text, .cloud__screen, .cloud--text .cloud__text, .cloud__list { grid-column: 1 / -1; }
}

/* a pipeline board (RealCapital) */
.sf-kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.sf-lane { display: grid; gap: 6px; align-content: start; min-width: 0; }
.sf-lane > b { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 6px; background: #E5E9F0; font-size: 11.5px; }
.sf-lane > b span { color: var(--sf-muted); font-weight: 500; }
.sf-deal { display: grid; gap: 2px; padding: 9px 10px; border-radius: 6px; background: var(--sf-card); border: 1px solid var(--sf-line); border-left: 3px solid var(--sf-brand); min-width: 0; }
.sf-deal.is-hot { border-left-color: #E3803B; }
.sf-deal b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-deal small { color: var(--sf-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container org (max-width: 520px) {
  .sf-kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* who we are */
.partners__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-7); align-items: start; }
.partners .head { grid-column: 1 / span 6; }
.partners__list { grid-column: 8 / -1; display: grid; gap: 0; margin-top: var(--s-2); }
.partners__list > div { display: grid; gap: 6px; padding: var(--s-5) 0; border-top: 1px solid var(--rule); }
.partners__list > div:last-child { border-bottom: 1px solid var(--rule); }
.partners__list dt { font-weight: 600; color: var(--fg); }
.partners__list dd { margin: 0; }
@media (max-width: 899px) {
  .partners .head, .partners__list { grid-column: 1 / -1; }
}

/* the closing call to action, once per page */
.close__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-6); align-items: end; }
.close h2 { grid-column: 1 / span 7; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem); }
.close__action { grid-column: 9 / -1; display: grid; gap: var(--s-5); }
.close__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
@media (max-width: 899px) {
  .close h2, .close__action { grid-column: 1 / -1; }
}

/* page heroes (every page but home): heading block under the floating nav */
.hero--page { padding-bottom: 0; }
.hero--page .head { margin-bottom: clamp(40px, 4vw, 64px); }
.hero--page .head h1 { max-width: 16ch; }

/* living illustrations: a landscape with characters standing on it (js/motion.js draws over each
   picture; the picture stays underneath as the fallback, and nothing moves for reduced motion) */
.media { position: relative; }
.scene { position: relative; width: 100%; pointer-events: none; }
.scene > .media > img { width: 100%; }
.scene .scene__actor { position: absolute; min-width: 64px; }
.scene__actor img { width: 100%; }
.actor--boy-hero { left: 15.6%; width: 13.3%; bottom: 20%; }
.actor--girl { left: 25.5%; width: 12.1%; bottom: 2%; }
.actor--mascot { left: 20.8%; width: 17.7%; bottom: 7%; }
.actor--boy-end { left: 70%; width: 13%; bottom: 12%; }
.scene--hero { margin-top: clamp(8px, 2vw, 32px); }
.scene--gap { margin-top: clamp(32px, 5vw, 72px); }
.scene--adv { margin-top: clamp(-40px, -2vw, 0px); }
.scene--end { margin-top: clamp(-280px, -15vw, -40px); }
.fa-form .form-layout { position: relative; z-index: 1; }
/* the illustrated pages: their landscapes are painted for white, so the page is white */
.page-fa, .page-rc { --bg: var(--white); }
.q-motion-canvas, .q-motion-overlay { position: absolute; pointer-events: none; }
.q-motion-canvas { opacity: 0; }
.q-motion-on > .q-motion-canvas { opacity: 1; }
.q-motion-on > img { opacity: 0 !important; }
.q-motion-overlay svg { display: block; width: 100%; height: 100%; overflow: hidden; }

/* the live demo window (Financial Advisors) */
.q-live {
  padding: 8px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgb(10 34 51 / 0.1);
  box-shadow: var(--shadow-screen);
  scroll-margin-top: calc(var(--nav-h) + 32px);
}
.q-live__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 6px 10px 12px; }
.q-live__name { font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.q-live__name span { margin-left: 8px; padding: 2px 8px; border-radius: var(--r-pill); background: #FFF4E0; color: #7A4A00; font-size: 0.75rem; font-weight: 600; }
/* the window's title is the demo's heading (h2): it keeps the size of a window title */
.q-live__name h2 { display: inline; font: inherit; letter-spacing: normal; color: inherit; text-wrap: pretty; }
/* what the demo shows, in words, under its caption */
.q-live__steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4) var(--gap);
  margin-top: var(--s-5);
  font-size: var(--t-small); line-height: 1.5; color: var(--fg-3);
}
.q-live__steps li { padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.q-live__steps b { font-weight: 600; color: var(--fg); }
@media (max-width: 1199px) { .q-live__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .q-live__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .q-live__steps { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); } }
.q-live__open { margin-left: auto; font-size: 0.875rem; }
.q-live__screen { position: relative; height: clamp(480px, 76vh, 820px); height: clamp(480px, 76svh, 820px); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #F3F3F5; }
.q-live__screen iframe { display: block; width: 100%; height: 100%; border: 0; }
.q-live__start { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; border-radius: inherit; background: rgb(10 34 51 / 0.06); cursor: pointer; transition: background-color var(--dur-2) ease; }
.q-live__start:hover { background: rgb(10 34 51 / 0.02); }
.q-live__start span {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--white); font-size: 1rem; font-weight: 600;
  box-shadow: 0 16px 30px -18px rgb(10 34 51 / 0.6);
  transition: transform var(--dur-2) var(--ease-out);
}
.q-live__start:hover span, .q-live__start:focus-visible span { transform: scale(1.04); }
.q-live__start:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

/* migration */
.migration__art { max-width: 1040px; margin: 0 auto; }
.migration__art img { width: 100%; }
.sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--gap); margin-top: var(--s-7); }
.sources li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--s-4); align-items: start; padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.sources img { width: 52px; height: 52px; border-radius: 12px; }
.sources h3 { font-size: 1.25rem; margin-bottom: 6px; }
.sources p { font-size: var(--t-small); }
@media (max-width: 899px) { .sources { grid-template-columns: minmax(0, 1fr); } }

/* accordion (native details, one open at a time) */
.acc { border-top: 1px solid var(--rule); }
.acc details { border-bottom: 1px solid var(--rule); }
.acc summary {
  position: relative; display: flex; align-items: center; min-height: 64px; padding: 14px 44px 14px 0;
  list-style: none; cursor: pointer; color: var(--fg);
  font-family: var(--serif); font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); font-weight: 460; line-height: 1.25;
  transition: color var(--dur-1) ease;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg;
  transition: rotate 450ms var(--ease-out), margin 450ms var(--ease-out);
}
.acc details[open] summary::after { rotate: 225deg; margin-top: -2px; }
.acc summary:hover { color: var(--accent); }
.acc details[open] summary { color: var(--accent); }
.acc summary:focus-visible { outline-offset: -2px; border-radius: 6px; }
.acc__body { display: grid; gap: var(--s-3); padding: 0 0 var(--s-5); }
.acc__body .ticks { gap: 8px; font-size: var(--t-small); }
/* opening and closing are animated by js/site.js (smooth heights, one item at a time) */
.acc__body { overflow: hidden; }

/* capabilities: the accordion and the screen that follows it */
.caps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-6); align-items: start; }
.caps__list { grid-column: 1 / span 5; }
.caps__screens { grid-column: 7 / -1; position: sticky; top: calc(12px + var(--nav-h) + 24px); }
/* the screens sit on top of each other, so swapping them never changes the height; a soft cross-fade */
.caps__screens { display: grid; align-items: start; }
.caps__screens > figure { grid-area: 1 / 1; }
/* the pictures from the previous site (they carry their own background and frame) */
.caps__picture { margin: 0; }
.caps__picture img { display: block; width: 100%; height: auto; }
html:not(.js) .caps__screens > figure:not(:first-child) { display: none; }
.js .caps__screens > figure {
  transition: opacity 340ms ease, transform 700ms var(--ease-out), visibility 0s linear 700ms;
}
.js .caps__screens > figure:not(.is-active) { opacity: 0; transform: translateY(14px) scale(0.99); visibility: hidden; pointer-events: none; }
.js .caps__screens > figure.is-active { opacity: 1; transform: none; visibility: visible; transition: opacity 600ms ease 220ms, transform 800ms var(--ease-out) 180ms, visibility 0s; }
@media (max-width: 899px) {
  .caps__list, .caps__screens { grid-column: 1 / -1; }
  .caps__screens { position: static; }
}

.sf-list .sf-tag { min-width: 58px; justify-content: center; }
.sf-list > li > b { font-size: 12.5px; }

.sf-table--share { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 0.8fr); }
.sf-table--share .ok { color: var(--sf-green); font-weight: 600; }
.sf-table--share .ro { color: var(--sf-brand); font-weight: 600; }
.sf-table--share .no { color: var(--sf-muted); }
.sf-goal { display: grid; gap: 10px; padding: 14px 16px; }
.sf-goal__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sf-goal__h b { font-size: 14px; }
.sf-goal__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sf-goal__nums small { display: block; color: var(--sf-muted); font-size: 11px; }
.sf-goal__nums b { font-size: 13px; }
.sf-bar-track { height: 8px; border-radius: 4px; background: var(--sf-line-2); overflow: hidden; }
.sf-bar-track i { display: block; height: 100%; border-radius: 4px; background: #2E844A; }
.w35 { width: 35%; } .w50 { width: 50%; }
@container org (max-width: 520px) {

  .sf-table--share { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; }
  .sf-table--share > span { padding-inline: 8px; }
}

/* points: short claims in three columns, no cards */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--gap); }
.points li { display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.points h3 { font-size: 1.375rem; }
@media (max-width: 899px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .points { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }

/* videos: click to play; the files are on this site */
.videos__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-7); align-items: center; }
.videos .head { grid-column: 1 / span 5; }
.videos__list { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.video-facade { position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--r-md); background: #000; }
.video-facade img, .video-facade video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-facade video { object-fit: contain; }
.video-facade > button { position: absolute; inset: 0; z-index: 1; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }
.video-facade > button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.video-facade--16x9 { aspect-ratio: 16 / 9; }
.video-facade--9x16 { aspect-ratio: 9 / 16; }
.video-facade__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 68px; height: 68px; padding-left: 4px; border-radius: 50%;
  background: var(--white); color: var(--ink); box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.5);
  transition: scale var(--dur-2) var(--ease-out);
}
.video-facade__play svg { width: 26px; height: 26px; }
.video-facade:hover .video-facade__play, .video-facade > button:focus-visible .video-facade__play { scale: 1.08; }
.video-facade.is-playing > img { display: none; }
@media (max-width: 899px) {
  .videos .head, .videos__list { grid-column: 1 / -1; }
}
@media (max-width: 419px) { .videos__list { gap: 12px; } }

/* Real Estate: the street scene in a flat sky panel; the clouds, bushes and cars move (js/motion.js) */
.rc-hero { padding-bottom: var(--section-y); }
.rc-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-7); align-items: center; }
.rc-hero__text { grid-column: 1 / span 6; display: grid; gap: var(--s-5); justify-items: start; }
.rc-hero__text h1 { max-width: 13ch; }
.rc-city { grid-column: 7 / -1; border-radius: 24px; overflow: hidden; background: #CDEBFA; }
.rc-city img { width: 100%; margin: -13% 0 -9%; }
.q-car { animation: q-drive 17s linear infinite; }
.q-car--left { animation-name: q-drive-left; animation-duration: 13s; }
@keyframes q-drive { from { transform: translateX(-230px); } to { transform: translateX(1730px); } }
@keyframes q-drive-left { from { transform: translateX(1730px); } to { transform: translateX(-230px); } }
.q-car--1 { color: #FFC727; transform: translateX(200px); animation-delay: -2s; }
.q-car--2 { color: #E4E7EA; transform: translateX(720px); animation-delay: -8s; }
.q-car--3 { color: #07C978; transform: translateX(1180px); animation-delay: -13.5s; }
.q-car--4 { color: #1AB8E8; transform: translateX(1020px); animation-delay: -4s; }
.q-car--5 { color: #F2F5F7; transform: translateX(520px); animation-delay: -10s; }
@media (max-width: 899px) {
  .rc-hero__text, .rc-city { grid-column: 1 / -1; }
}

/* the video, and the mascot who hops in from the side, then keeps hopping */
.rc-video-section { position: relative; overflow: clip; }
.rc-video__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-7); align-items: center; }
.rc-video-section .head { grid-column: 1 / span 5; }
.rc-video { grid-column: 7 / -1; }
.rc-video { container-type: inline-size; }
.rc-video .video-facade__play { left: 56%; top: 83%; width: clamp(40px, 8cqw, 72px); height: clamp(40px, 8cqw, 72px); }
.rc-video .video-facade__play svg { width: 40%; height: 40%; }
@media (max-width: 899px) {
  .rc-video-section .head, .rc-video { grid-column: 1 / -1; }
}
.rc-astro { position: absolute; left: max(2vw, calc(50% - 720px)); bottom: clamp(8px, 1.2vw, 18px); width: clamp(110px, 11vw, 180px); z-index: 0; pointer-events: none; }
.rc-video__grid { position: relative; z-index: 1; }
@media (max-width: 1199px) { .rc-astro { display: none; } }
@media (min-width: 1200px) { .rc-video-section .head { padding-bottom: clamp(120px, 12vw, 200px); } }
.rc-astro__run { position: relative; }
.rc-astro__run::before {
  content: ""; position: absolute; left: 14%; right: 18%; bottom: -3%; height: 6%;
  border-radius: 50%; background: rgb(6 32 43 / 0.22); filter: blur(4px);
  animation: rc-hop-shadow 3.6s infinite;
}
.rc-astro img { position: relative; width: 100%; transform-origin: 50% 100%; animation: rc-hop 3.6s infinite; }
.motion .rc-astro__run { transition: transform 1.5s cubic-bezier(0.3, 0.55, 0.35, 1); }
.motion:not(.reveal-done) .rc-astro:not(.in) .rc-astro__run { transform: translateX(-50vw); }
.motion:not(.reveal-done) .rc-astro:not(.in) img, .motion:not(.reveal-done) .rc-astro:not(.in) .rc-astro__run::before { animation: none; }
.motion .rc-astro.in img { animation: rc-hop-in 1.5s 1, rc-hop 3.6s 1.5s infinite; }
.motion .rc-astro.in .rc-astro__run::before { animation: rc-hop-in-shadow 1.5s 1, rc-hop-shadow 3.6s 1.5s infinite; }
@keyframes rc-hop {
  0%, 46%, 100% { transform: translateY(0) rotate(0deg) scale(1, 1); }
  4% { transform: translateY(0) rotate(1deg) scale(1.06, 0.92); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  14% { transform: translateY(-15%) rotate(-5deg) scale(0.97, 1.04); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.3); }
  23% { transform: translateY(0) rotate(-1deg) scale(1.07, 0.91); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  32% { transform: translateY(-8%) rotate(3deg) scale(0.98, 1.03); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.3); }
  40% { transform: translateY(0) rotate(0deg) scale(1.04, 0.96); }
  73% { transform: translateY(0) rotate(1.5deg) scale(1.012, 0.988); }
}
@keyframes rc-hop-shadow {
  0%, 46%, 73%, 100% { transform: scale(1); opacity: 1; }
  4% { transform: scale(1.04); opacity: 1; animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  14% { transform: scale(0.6); opacity: 0.4; animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.3); }
  23% { transform: scale(1.05); opacity: 1; animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  32% { transform: scale(0.78); opacity: 0.65; animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.3); }
  40% { transform: scale(1.03); opacity: 1; }
}
@keyframes rc-hop-in {
  0% { transform: translateY(0) rotate(-6deg) scale(1, 1); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  16% { transform: translateY(-18%) rotate(-8deg) scale(0.97, 1.04); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.3); }
  33% { transform: translateY(0) rotate(-3deg) scale(1.06, 0.92); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  49% { transform: translateY(-13%) rotate(-6deg) scale(0.97, 1.04); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.3); }
  66% { transform: translateY(0) rotate(-2deg) scale(1.05, 0.94); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  80% { transform: translateY(-7%) rotate(-3deg) scale(0.98, 1.02); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.3); }
  92% { transform: translateY(0) rotate(0deg) scale(1.04, 0.96); }
  100% { transform: translateY(0) rotate(0deg) scale(1, 1); }
}
@keyframes rc-hop-in-shadow {
  0%, 33%, 66%, 92%, 100% { transform: scale(1); opacity: 1; }
  16% { transform: scale(0.55); opacity: 0.35; }
  49% { transform: scale(0.66); opacity: 0.5; }
  80% { transform: scale(0.82); opacity: 0.7; }
}

/* a team feed (RealCapital) */
.sf-feed { padding: 4px 0; }
.sf-post { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-top: 1px solid var(--sf-line-2); }
.sf-post:first-child { border-top: 0; }
.sf-post .sf-av { width: 28px; height: 28px; }
.sf-post b { font-size: 12.5px; }
.sf-post b span { margin-left: 6px; font-weight: 400; color: var(--sf-muted); font-size: 11px; }
.sf-post p { margin-top: 3px; font-size: 12.5px; color: var(--sf-ink-2); }
.sf-post .sf-tag { margin-top: 6px; }

/* a story in three steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--gap); }
.steps li { display: grid; gap: var(--s-3); align-content: start; padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.story__logo { align-self: end; }
.story__logo img { width: auto; height: 32px; opacity: 0.8; }
@media (max-width: 899px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* a large single quote, with a photo */
.quote--large { max-width: 980px; }
.quote--large blockquote p { font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2.125rem); line-height: 1.32; }
.quote--large figcaption { justify-content: flex-start; gap: var(--s-4); }
.quote--large figcaption .quote__photo { width: 64px; height: 64px; }
.quote--large .quote__logo { margin-left: auto; height: 26px; width: auto; }
.band--deep .quote__logo, .band--deep .quote figcaption img.quote__logo { filter: brightness(0) invert(1); opacity: 0.75; }

.motion .rc-astro[data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none; }

/* 15. Forms, notices, legal pages */
.form-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-7); align-items: start; }
.form-layout > .head { grid-column: 1 / span 5; }
.form-layout > .form { grid-column: 7 / -1; }
@media (max-width: 899px) {
  .form-layout > .head, .form-layout > .form { grid-column: 1 / -1; }
}
.form {
  display: grid; gap: 18px;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--rule);
}
.form__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-size: var(--t-small); font-weight: 600; color: var(--fg); }
.field .req { margin-left: 6px; font-weight: 400; font-size: 0.8125rem; color: var(--fg-3); }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--field-line); border-radius: 10px; background: var(--white);
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink-muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--teal-wash); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.fieldset-plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: var(--t-small); color: var(--fg-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.check--consent { align-items: flex-start; }
.check--consent input { flex: none; margin-top: 3px; }
.consent { display: grid; gap: 6px; }
.consent .notice { padding-left: 28px; }
.form .btn { justify-self: start; margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { font-size: 0.875rem; line-height: 1.55; color: var(--fg-3); }
.notice a { font-weight: 500; }
.notice--form { max-width: 62ch; }

/* contact */
.contact__more { display: grid; gap: var(--s-3); margin-top: var(--s-4); max-width: 38rem; color: var(--fg-2); text-wrap: pretty; }
.contact__ways { display: grid; gap: 0; margin-top: var(--s-6); border-top: 1px solid var(--rule); }
.contact__ways li { display: grid; gap: 4px; padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.contact__ways li > span { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.contact__ways .link { justify-self: start; }
.contact .form-layout { padding-bottom: var(--section-y); }

/* thank-you and not-found */
.message-page { min-height: 70vh; padding-bottom: var(--section-y); }
.message-page__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); }
.message-page__links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }

/* a testimonial shown in translation says so */
.quote__tr { font-size: 0.8125rem; font-weight: 400; color: var(--fg-3); }

/* the IA Tech Meetup sign-up brings its own styles (css/meetup.css); this fits it under the nav */
.meetup { padding-top: calc(12px + var(--nav-h) + clamp(40px, 5vw, 72px)); }
.meetup .evf h1, .meetup .evf h2, .meetup .evf h3 { font-family: var(--sans); letter-spacing: normal; text-wrap: wrap; }

/* legal pages (privacy, terms, accessibility, legal notice) */
.container--narrow { max-width: calc(48rem + 2 * var(--gutter)); }
.legal-hero { padding-bottom: clamp(32px, 4vw, 56px); }
.legal-hero h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); }
.legal-hero .lead { margin-top: var(--s-4); max-width: 62ch; }
.legal-meta { margin-top: var(--s-4); font-size: 0.875rem; color: var(--fg-3); }
.legal-body { padding-top: 0; }
.prose { color: var(--fg-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); scroll-margin-top: calc(12px + var(--nav-h) + 24px); }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; line-height: 1.3; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.45em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); }
.prose address { font-style: normal; }
.prose a { font-weight: 500; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--white); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.prose th { background: var(--sky); color: var(--ink); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
/* on a phone a table becomes one card per row: each value under its column's name (data-label, from build.py) */
@media (max-width: 767px) {
  .prose .table-wrap { position: relative; overflow: visible; border: 0; border-radius: 0; background: none; }
  .prose table, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .prose tbody { display: grid; gap: 10px; }
  .prose tbody tr { border: 1px solid var(--rule); border-radius: var(--r-sm); overflow: hidden; background: var(--white); }
  .prose tbody th { white-space: normal; padding: 10px 14px; }
  .prose tbody td { padding: 10px 14px; border-bottom: 0; }
  .prose tbody td + td { border-top: 1px solid var(--rule); }
  .prose td[data-label]::before {
    content: attr(data-label); content: attr(data-label) / "";
    display: block; margin-bottom: 2px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3);
  }
}
.prose .callout { padding: 16px 18px; border-radius: var(--r-sm); border: 1px solid var(--rule); background: var(--white); }
.toc { padding: 18px 20px; border-radius: var(--r-sm); border: 1px solid var(--rule); background: var(--white); }
.toc ol { list-style: decimal; padding-left: 1.3em; display: grid; gap: 4px; }
.toc p { font-weight: 600; color: var(--ink); margin-bottom: 8px; }

/* 16. Motion. Everything above is the finished, still state. html.motion is set by js/boot.js before
   the page paints, only when scripts run and the visitor has not asked for reduced motion. */

/* scroll reveal: blocks rise into place once as they enter the window (js/site.js adds .in) */
.motion [data-reveal] { transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.motion:not(.reveal-done) [data-reveal]:not(.in) { opacity: 0; transform: translateY(28px); filter: blur(3px); }
.motion:not(.reveal-done) .ledger [data-reveal]:not(.in) { transform: translateY(16px); }

/* the marquee runs only with motion, and stops whenever something else moves */
.motion .marquee__list { flex-wrap: nowrap; padding-right: 56px; }
.motion .marquee__list--copy { display: flex; }
.motion .marquee__track { animation: marquee 70s linear infinite; }
.motion .marquee:hover .marquee__track,
.motion .marquee:focus-within .marquee__track,
.motion .marquee.is-paused .marquee__track,
.motion.is-busy .marquee__track { animation-play-state: paused; }
@media (max-width: 599px) { .motion .marquee__list { padding-right: 36px; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* page to page: a short cross-fade; the nav stays put */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: ease; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .motion [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .q-car, .rc-astro img, .rc-astro__run::before { animation: none !important; }
}

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