/* ============================================================
   Careific - marketing site stylesheet
   Built on Brand Identity v1.2 (sage / lavender / slate, Plus Jakarta Sans)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

:root {
  /* Sage - primary identity */
  --sage-300: #A8D5BA;
  --sage-500: #6FBA8A;
  --sage-700: #3f8a5d;
  /* Lavender - secondary voice (intelligence) */
  --lav-300: #D5B8E0;
  --lav-500: #B891C9;
  --lav-700: #7d5d92;
  /* Mark-only */
  --muddy: #797992;
  /* Neutrals */
  --slate: #27303f;
  --ink-900: #0e0e10;
  --ink-700: #27272a;
  --ink-500: #52525b;
  --ink-400: #71717a;
  --ink-300: #a1a1aa;
  --ink-200: #d4d4d8;
  --ink-100: #e8e8ea;
  --bg: #f4f4f5;
  --paper: #ffffff;
  /* Dark theme surfaces */
  --abyss: #0e1217;
  --slate-deep: #1a212c;

  /* Derived surfaces */
  --sage-tint: #eef7f1;
  --sage-tint-2: #e2f0e8;
  --lav-tint: #f5eef8;
  --slate-tint: #f0f2f5;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(39, 48, 63, .04), 0 1px 0.1875rem rgba(39, 48, 63, .06);
  --shadow-md: 0 2px 0.25rem rgba(39, 48, 63, .04), 0 0.5rem 1.5rem -6px rgba(39, 48, 63, .10);
  --shadow-lg: 0 0.25rem 0.5rem rgba(39, 48, 63, .04), 0 1.5rem 3.5rem -12px rgba(39, 48, 63, .16);

  --r-sm: 0.5rem;
  --r-md: 0.875rem;
  --r-lg: 1.375rem;
  --r-xl: 2rem;

  --maxw: 73.75rem;
  --gut: clamp(1.25rem, 5vw, 4rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--slate);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3.25rem, 6.5vw, 6rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 4.5vw, 4.25rem); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lav-700);
  display: inline-flex;
  align-items: center;
  gap: .55em;
}
.eyebrow::before {
  content: "";
  width: 1.125rem; height: 1px;
  background: var(--lav-500);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }

h1, h2, h3 { color: var(--slate); line-height: 1.08; letter-spacing: -.02em; }

.display {
  font-weight: 300;
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.h-xl { font-weight: 300; font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.03em; }
.h-lg { font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.h-md { font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -.01em; }
.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-500);
  font-weight: 400;
}
.dot { color: var(--lav-500); }          /* trailing period accent */
.dot-sage { color: var(--sage-500); }
em.brand-em, .brand-em { font-style: normal; font-weight: 700; color: var(--slate); }
.muted { color: var(--ink-500); }
.text-sage { color: var(--sage-700); }
.text-lav { color: var(--lav-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .98rem;
  padding: .82em 1.4em; border-radius: 62.4375rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--sage-700); color: #fff; box-shadow: 0 0.375rem 1.125rem -6px rgba(63,138,93,.5); }
.btn-primary:hover { filter: brightness(1.22) saturate(1.15); color: #fff; transform: translateY(-2px); box-shadow: 0 0.75rem 1.75rem -6px rgba(63,138,93,.65); }
.btn-ghost { background: transparent; color: var(--sage-700); border-color: var(--sage-500); }
.btn-ghost:hover { border-color: var(--sage-700); color: var(--sage-700); background: var(--sage-tint); transform: translateY(-2px); box-shadow: 0 0.625rem 1.5rem -8px rgba(111,186,138,.4); }
.btn-light { background: #fff; color: var(--slate); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 0.625rem 1.625rem -6px rgba(111,186,138,.4); }
.btn-ghost-lav { background: var(--lav-tint); color: var(--lav-700); border-color: var(--lav-500); }
.btn-ghost-lav:hover { background: #efe0f5; border-color: var(--lav-700); color: var(--lav-700); transform: translateY(-2px); box-shadow: 0 0.625rem 1.5rem -6px rgba(184,145,201,.5); }
body.dark .btn-ghost-lav { background: rgba(184,145,201,.14); color: #fff; border-color: var(--lav-300); }
body.dark .btn-ghost-lav:hover { background: rgba(184,145,201,.26); border-color: var(--lav-300); color: #fff; transform: translateY(-2px); box-shadow: 0 0.625rem 1.625rem -6px rgba(184,145,201,.4); }
.btn-lg { font-size: 1.05rem; padding: 1em 1.7em; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--sage-700); }
.link-arrow svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(0.25rem); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,244,245,.82);
  backdrop-filter: saturate(140%) blur(0.875rem);
  -webkit-backdrop-filter: saturate(140%) blur(0.875rem);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-stuck { border-color: var(--ink-100); background: rgba(244,244,245,.92); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 4.75rem; gap: 1.5rem; }
.nav .brand-logo { height: 1.875rem; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  font-weight: 500; font-size: .96rem; color: var(--ink-700);
  padding: .55em .85em; border-radius: var(--r-sm);
  transition: color .2s, background .2s; position: relative;
}
.nav-link:hover { color: var(--sage-700); background: var(--sage-tint); }
.nav-cta { margin-left: 0.5rem; }

/* dropdown */
.has-menu { position: relative; }
.has-menu > .nav-link { display: inline-flex; align-items: center; gap: .3em; }
.has-menu > .nav-link svg { width: .8em; height: .8em; transition: transform .25s var(--ease); }
.has-menu:hover > .nav-link svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 0.625rem); left: 50%; transform: translateX(-50%) translateY(0.5rem);
  background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 0.625rem; min-width: 20rem;
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.has-menu:hover .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* invisible bridge across the trigger→menu gap so hover isn't lost in transit */
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 0.875rem; }
.menu-item { display: flex; gap: 0.75rem; padding: 0.6875rem 0.75rem; border-radius: var(--r-sm); transition: background .18s; }
.menu-item:hover { background: var(--sage-tint); }
.menu-ico { flex: 0 0 2.125rem; height: 2.125rem; border-radius: 0.5625rem; display: grid; place-items: center; background: var(--sage-tint-2); color: var(--sage-700); }
.menu-ico svg { width: 1.125rem; height: 1.125rem; }
.menu-ico.lav { background: var(--lav-tint); color: var(--lav-700); }
.menu-title { font-weight: 600; font-size: .92rem; color: var(--slate); display: block; }
.menu-desc { font-size: .8rem; color: var(--ink-400); line-height: 1.35; display: block; margin-top: 2px; }

/* mobile nav */
.nav-toggle { display: none; background: none; border: 1px solid var(--ink-200); border-radius: var(--r-sm); width: 2.625rem; height: 2.625rem; place-items: center; cursor: pointer; }
.nav-toggle svg { width: 1.375rem; height: 1.375rem; color: var(--slate); }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 4.75rem 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--ink-100); padding: 1rem var(--gut) 1.5rem;
    transform: translateY(-120%); transition: transform .35s var(--ease); box-shadow: var(--shadow-md); }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: .8em .6em; font-size: 1.05rem; }
  .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0.25rem 0 0.5rem 0.75rem; min-width: 0; }
  .menu::before { display: none; }
  .has-menu:hover > .nav-link svg { transform: none; }
  .nav-cta { margin: 0.625rem 0 0; }
  .nav-toggle { display: grid; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3.5rem, 8vw, 6.25rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { max-width: 40rem; }
.hero h1 { margin: 1.375rem 0 0; }
.hero .lead { margin-top: 1.625rem; max-width: 33em; }
.hero-actions { margin-top: 2.25rem; display: flex; gap: 0.875rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1.375rem; font-size: .85rem; color: var(--ink-400); display: flex; align-items: center; gap: .5em; }
.hero-note .mk { width: 1rem; height: 1rem; }

/* soft sage atmosphere behind hero */
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: auto auto -6% 50%;
  width: 73.75rem; height: 48.75rem; transform: translate(-42%, 0);
  background: radial-gradient(closest-side, rgba(111,186,138,.36), rgba(111,186,138,.10) 46%, rgba(111,186,138,0) 70%);
  filter: blur(0.625rem); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: -10% -10% auto auto;
  width: 40rem; height: 40rem;
  background: radial-gradient(closest-side, rgba(184,145,201,.26), rgba(184,145,201,0) 72%);
  filter: blur(0.25rem); pointer-events: none;
}

/* hero visual - product-style card */
.hero-visual { position: relative; }
.glass-card {
  background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.gc-top { display: flex; align-items: center; gap: 0.625rem; padding: 0.875rem 1.125rem; border-bottom: 1px solid var(--ink-100); background: linear-gradient(180deg,#fff, #fcfdfc); }
.gc-dot { width: 0.5625rem; height: 0.5625rem; border-radius: 50%; background: var(--ink-200); }
.gc-title { font-size: .8rem; font-weight: 600; color: var(--ink-400); margin-left: 0.25rem; letter-spacing: .02em; }
.gc-body { padding: 1.25rem; display: grid; gap: 0.75rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.statlet { background: var(--bg); border: 1px solid var(--ink-100); border-radius: var(--r-md); padding: 0.875rem; }
.statlet .k { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); display: flex; align-items: center; gap: .4em; }
.statlet .v { font-size: 1.9rem; font-weight: 300; letter-spacing: -.02em; margin-top: 0.375rem; line-height: 1; display: block; }
.statlet .s { font-size: .8rem; color: var(--ink-400); margin-top: 0.3125rem; display: block; }
.statlet.alert .k { color: var(--sage-700); }
.bar { height: 0.375rem; border-radius: 6.1875rem; background: var(--ink-100); overflow: hidden; margin-top: 0.625rem; }
.bar > i { display: block; height: 100%; border-radius: 6.1875rem; background: linear-gradient(90deg, var(--sage-500), var(--sage-700)); }
.feed { display: grid; gap: 0.5rem; }
.feed-row { display: flex; align-items: center; gap: 0.75rem; background: var(--bg); border: 1px solid var(--ink-100); border-radius: var(--r-md); padding: 0.75rem 0.875rem; }
.feed-row .pip { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: 0 0 auto; }
.feed-row .lbl { font-size: .86rem; font-weight: 600; }
.feed-row .meta { font-size: .8rem; color: var(--ink-400); margin-left: auto; }
.pip.sage { background: var(--sage-500); } .pip.amber { background: #d97706; } .pip.rose { background: #dc2626; } .pip.lav { background: var(--lav-500); }
.insight {
  border: 1px solid var(--lav-300); background: linear-gradient(180deg, var(--lav-tint), #fff);
  border-radius: var(--r-md); padding: 0.875rem 1rem;
}
.insight .k { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lav-700); display: flex; align-items: center; gap: .45em; }
.insight .t { font-size: .9rem; font-weight: 600; margin-top: 0.4375rem; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 100%; }
}

/* ---------- Mark motif bits ---------- */
.mk { display: inline-block; }
.mk-bullet { width: 1rem; height: 1rem; flex: 0 0 auto; }
.divider-mark { display: flex; align-items: center; justify-content: center; gap: 1.125rem; color: var(--ink-200); }
.divider-mark::before, .divider-mark::after { content: ""; height: 1px; flex: 1; background: var(--ink-100); }
.divider-mark .mk { width: 1.375rem; height: 1.375rem; }

/* ---------- Logo strip ---------- */
.trust { text-align: center; }
.trust .eyebrow { justify-content: center; }
.trust-tags { display: flex; flex-wrap: wrap; gap: 0.625rem 0.75rem; justify-content: center; margin-top: 1.375rem; }
.tag {
  font-size: .82rem; font-weight: 600; color: var(--ink-500);
  background: var(--paper); border: 1px solid var(--ink-100); border-radius: 62.4375rem;
  padding: .55em 1.1em; box-shadow: var(--shadow-sm);
}
.tag strong { color: var(--slate); }

/* ---------- Feature cards ---------- */
.sec-head { max-width: 42.5rem; }
.sec-head .h-xl { margin-top: 1rem; }
.sec-head .lead { margin-top: 1.125rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 3.25rem; }
.card {
  background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  padding: 1.875rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; display: flex; flex-direction: column; gap: 0.875rem;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sage-300); }
.card .ico { width: 3.125rem; height: 3.125rem; border-radius: 0.8125rem; display: grid; place-items: center; background: var(--sage-tint-2); color: var(--sage-700); }
.card .ico.lav { background: var(--lav-tint); color: var(--lav-700); }
.card .ico svg { width: 1.5rem; height: 1.5rem; }
.card h3 { font-weight: 600; font-size: 1.25rem; }
.card p { color: var(--ink-500); font-size: .98rem; }
.card .link-arrow { margin-top: auto; }
.card.span-2 { grid-column: span 2; }

@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .card.span-2 { grid-column: auto; } }

/* ---------- Split feature (alternating) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip .split-media { order: 2; }
.split + .split { margin-top: clamp(3.5rem, 8vw, 6.875rem); }
.split-copy .h-lg { margin-top: 0.875rem; }
.split-copy .lead { margin-top: 0.875rem; font-size: 1.08rem; }
.check-list { margin-top: 1.625rem; display: grid; gap: 0.875rem; }
.check-list li { list-style: none; display: flex; gap: 0.75rem; align-items: flex-start; font-size: .98rem; color: var(--ink-700); }
.check-list .mk-bullet { margin-top: 0.1875rem; }
.check-list b { color: var(--slate); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.flip .split-media { order: 0; } }

/* panel used as media */
.panel {
  background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 1.375rem; display: grid; gap: 0.75rem;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel-head .t { font-weight: 600; font-size: .95rem; }
.panel-head .live { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-700); display: flex; align-items: center; gap: .4em; }
.panel-head .live::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--sage-500); box-shadow: 0 0 0 0.1875rem rgba(111,186,138,.25); }
.row-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.8125rem 0.875rem; border: 1px solid var(--ink-100); border-radius: var(--r-md); background: var(--bg); }
.row-item .pip { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: 0 0 auto; }
.row-item .lbl { font-size: .88rem; font-weight: 600; }
.row-item .sub { font-size: .8rem; color: var(--ink-400); }
.row-item .right { margin-left: auto; font-size: .8rem; font-weight: 600; }
.right.over { color: #dc2626; } .right.soon { color: #d97706; } .right.ok { color: var(--sage-700); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--slate); color: #fff; border-radius: var(--r-xl); padding: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: auto -5% -40% auto; width: 28.75rem; height: 28.75rem;
  background: radial-gradient(50% 50% at 50% 50%, rgba(111,186,138,.35), transparent 70%); }
.cta-band::after { content: ""; position: absolute; inset: -30% auto auto -5%; width: 22.5rem; height: 22.5rem;
  background: radial-gradient(50% 50% at 50% 50%, rgba(184,145,201,.28), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band .h-xl { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.72); margin-top: 1rem; max-width: 32em; }
.cta-band .hero-actions { margin-top: 2rem; }
.cta-band .eyebrow { color: var(--lav-300); }
.cta-band .eyebrow::before { background: var(--lav-300); }
.cta-band .btn-ghost { color: var(--sage-300); border-color: var(--sage-300); }
.cta-band .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); box-shadow: 0 0.625rem 1.5rem -6px rgba(111,186,138,.4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate); color: rgba(255,255,255,.7); padding-block: clamp(3.5rem, 7vw, 5.25rem) 2.25rem; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem 2rem; }
.foot-brand .brand-logo { height: 1.875rem; }
.foot-brand p { margin-top: 1.125rem; font-size: .92rem; max-width: 26em; color: rgba(255,255,255,.6); }
.foot-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lav-300); margin-bottom: 1rem; }
.foot-col a { display: block; font-size: .92rem; padding: 0.375rem 0; color: rgba(255,255,255,.72); transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: rgba(255,255,255,.5); }
.foot-bottom .legal a { color: rgba(255,255,255,.55); margin-left: 1.125rem; }
.foot-bottom .legal a:hover { color: #fff; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .form-shell { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4375rem; margin-bottom: 1.125rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--slate); }
.field .req { color: var(--lav-700); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: .98rem; color: var(--slate);
  background: var(--paper); border: 1px solid var(--ink-200); border-radius: var(--r-md);
  padding: .8em .95em; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage-500); box-shadow: 0 0 0 0.25rem rgba(111,186,138,.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--ink-400); margin-top: 0.375rem; }
.form-success { display: none; background: var(--sage-tint); border: 1px solid var(--sage-300); border-radius: var(--r-md); padding: 1.125rem 1.25rem; color: var(--sage-700); font-weight: 600; gap: 0.75rem; align-items: center; }
.form-success.show { display: flex; }
.contact-aside { background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--r-lg); padding: 1.875rem; box-shadow: var(--shadow-sm); }
.contact-aside .ci { display: flex; gap: 0.875rem; padding: 1rem 0; border-bottom: 1px solid var(--ink-100); }
.contact-aside .ci:last-child { border-bottom: none; }
.contact-aside .ci .ico { width: 2.625rem; height: 2.625rem; border-radius: 0.6875rem; background: var(--sage-tint-2); color: var(--sage-700); display: grid; place-items: center; flex: 0 0 auto; }
.contact-aside .ci .ico svg { width: 1.25rem; height: 1.25rem; }
.contact-aside .ci > span:last-child { display: flex; flex-direction: column; }
.contact-aside .ci .k { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); }
.contact-aside .ci .v { display: block; font-weight: 600; color: var(--slate); margin-top: 0.1875rem; }
.contact-aside .ci .v a:hover { color: var(--sage-700); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.25rem, 4vw, 3.5rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; z-index: -1; inset: 0 -10% auto 40%;
  width: 43.75rem; height: 31.25rem; background: radial-gradient(50% 50% at 50% 50%, rgba(111,186,138,.16), transparent 70%); }
.page-hero .display, .page-hero .h-xl { margin-top: 1.125rem; max-width: 16ch; }
.page-hero .lead { margin-top: 1.375rem; max-width: 40ch; }
.breadcrumb { font-size: .82rem; color: var(--ink-400); display: flex; gap: .5em; align-items: center; }
.breadcrumb a:hover { color: var(--sage-700); }
.breadcrumb svg { width: .9em; height: .9em; }

/* ---------- Misc ---------- */
.bg-paper { background: var(--paper); }
.bg-sage { background: var(--sage-tint); }
.rule { height: 1px; background: var(--ink-100); border: none; }
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink-100); border: 1px solid var(--ink-100); border-radius: var(--r-lg); overflow: hidden; }
.kpi-strip--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .kpi-strip.kpi-strip--3 { grid-template-columns: 1fr; } }
.kpi { background: var(--paper); padding: 1.75rem 1.5rem; }
.kpi .v { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.kpi .v .dot { font-weight: 300; }
.kpi .k { font-size: .85rem; color: var(--ink-500); margin-top: 0.625rem; }
@media (max-width: 760px) { .kpi-strip { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   MOBILE - general hardening (applies across all pages)
   ===================================================================== */
@media (max-width: 640px) {
  /* Hardcoded <br> in headings are tuned for desktop line balance;
     let copy reflow naturally once the column gets this narrow. */
  h1 br, h2 br { display: none; }

  /* Panel header: badge/live-indicator was squeezing against a long
     title on one row - stack them instead of letting both shrink. */
  .panel-head { flex-direction: column; align-items: flex-start; gap: 0.375rem; }

  /* Row items: give the status its own line rather than compressing
     both the label and the status into two cramped columns. */
  .row-item { flex-wrap: wrap; row-gap: 0.25rem; }
  .row-item .right { margin-left: 0; flex-basis: 100%; padding-left: 1.25rem; }

  /* Hero stat cards: 3-up grid gets too tight under ~22.5rem */
  .stat-row { gap: 0.5rem; }
}
@media (max-width: 420px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation ---------- */
html.js .reveal { opacity: 0; transform: translateY(1.125rem); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.skip-link { position: absolute; left: -999px; top: 0.5rem; background: #fff; padding: 0.625rem 1rem; border-radius: 0.5rem; z-index: 200; }
.skip-link:focus { left: 1rem; }

/* ---------- Dark feature section (slate + halo) - balance pass ---------- */
.section--slate {
  background:
    radial-gradient(45rem 31.25rem at 86% -12%, rgba(184,145,201,.34), transparent 62%),
    radial-gradient(40rem 27.5rem at 4% 114%, rgba(111,186,138,.24), transparent 64%),
    var(--slate);
  color: #fff;
}
.section--slate .eyebrow { color: var(--lav-300); }
.section--slate .eyebrow::before { background: var(--lav-300); }
.section--slate .h-lg, .section--slate .h-xl, .section--slate h2 { color: #fff; }
.section--slate .lead { color: rgba(255,255,255,.74); }
.section--slate .check-list li { color: rgba(255,255,255,.82); }
.section--slate .check-list b, .section--slate .split-copy b { color: #fff; }
.section--slate .dot { color: var(--sage-300); }
.section--slate .panel { background: var(--paper); color: var(--slate); }

/* dark cards (Platform on slate) */
.section--slate .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); }
.section--slate .card:hover { border-color: rgba(168,213,186,.45); box-shadow: 0 1.125rem 2.5rem -20px rgba(0,0,0,.6); }
.section--slate .card h3 { color: #fff; }
.section--slate .card p { color: rgba(255,255,255,.70); }
.section--slate .card .ico { background: rgba(168,213,186,.16); color: var(--sage-300); }
.section--slate .link-arrow { color: var(--sage-300); }
.section--slate .dot-sage { color: var(--sage-300); }

/* dark KPI strip */
.section--slate .kpi-strip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.12); }
.section--slate .kpi { background: rgba(255,255,255,.03); }
.section--slate .kpi .v { color: #fff; }
.section--slate .kpi .k { color: rgba(255,255,255,.62); }

/* =====================================================================
   ATMOSPHERE - reusable fog / glow / haze decoration
   Drop <div class="atmosphere"><span class="fog f1"></span>... inside any
   position:relative; overflow:hidden container to get the cinematic glow.
   ===================================================================== */
.atmosphere { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.atmosphere {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.atmosphere + .wrap { position: relative; z-index: 1; }
.atmosphere .fog { position: absolute; border-radius: 50%; filter: blur(2.875rem); opacity: .75; mix-blend-mode: screen; }
.atmosphere .f1 { width: 62vw; height: 62vw; max-width: 45rem; max-height: 45rem; left: -14%; top: -22%;
  background: radial-gradient(circle, rgba(184,145,201,.55), transparent 65%); animation: atm-drift1 28s var(--ease) infinite alternate; }
.atmosphere .f2 { width: 50vw; height: 50vw; max-width: 38.75rem; max-height: 38.75rem; right: -12%; top: 4%;
  background: radial-gradient(circle, rgba(111,186,138,.42), transparent 62%); animation: atm-drift2 34s var(--ease) infinite alternate; }
.atmosphere .f3 { width: 44vw; height: 44vw; max-width: 32.5rem; max-height: 32.5rem; left: 22%; bottom: -26%;
  background: radial-gradient(circle, rgba(125,93,146,.40), transparent 65%); animation: atm-drift3 30s var(--ease) infinite alternate; }
@keyframes atm-drift1 { to { transform: translate(6%,5%) scale(1.12); } }
@keyframes atm-drift2 { to { transform: translate(-8%,-4%) scale(1.08); } }
@keyframes atm-drift3 { to { transform: translate(5%,-6%) scale(1.15); } }
.atmosphere .haze { position: absolute; inset: 0; opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"); }
.atmosphere .vignette { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 38%, transparent 50%, rgba(8,10,14,.5) 100%); }
.atmosphere.tight .fog { opacity: .4; }
@media (prefers-reduced-motion: reduce) { .atmosphere .fog { animation: none; } }

/* =====================================================================
   DARK THEME - marketing pages (body.dark)
   ===================================================================== */
body.dark { background: var(--abyss); color: rgba(255,255,255,.86); }
body.dark .hero::before, body.dark .hero::after, body.dark .page-hero::before { content: none; }

body.dark .site-header { background: rgba(14,18,23,.7); border-color: rgba(255,255,255,.08); }
body.dark .site-header.is-stuck { background: rgba(14,18,23,.9); border-color: rgba(255,255,255,.1); }
body.dark .nav-link { color: rgba(255,255,255,.78); }
body.dark .nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
body.dark .menu { background: var(--slate-deep); border-color: rgba(255,255,255,.1); box-shadow: 0 1.875rem 4.375rem -18px rgba(0,0,0,.6); }
body.dark .menu-item:hover { background: rgba(255,255,255,.06); }
body.dark .menu-title { color: #fff; }
body.dark .menu-desc { color: rgba(255,255,255,.55); }
body.dark .menu-ico { background: rgba(168,213,186,.15); }
body.dark .menu-ico.lav { background: rgba(184,145,201,.18); }
body.dark .nav-toggle { border-color: rgba(255,255,255,.2); }
body.dark .nav-toggle svg { color: #fff; }
@media (max-width: 900px) { body.dark .nav-links { background: var(--slate-deep); border-color: rgba(255,255,255,.1); } }

body.dark h1, body.dark h2, body.dark h3 { color: #fff; }
body.dark .lead { color: rgba(255,255,255,.68); }
body.dark .muted { color: rgba(255,255,255,.55); }
body.dark .eyebrow { color: var(--lav-300); }
body.dark .eyebrow::before { background: var(--lav-300); }
body.dark .eyebrow.eyebrow--white { color: #fff; }
body.dark .eyebrow.eyebrow--white::before { background: rgba(255,255,255,.55); }
body.dark .panel-head .live { color: var(--sage-300); }
body.dark .bg-paper { background: transparent; }
body.dark .breadcrumb { color: rgba(255,255,255,.45); }
body.dark .breadcrumb a:hover { color: var(--sage-300); }
body.dark .breadcrumb span[style*="var(--slate)"] { color: #fff !important; }
body.dark .dot { color: var(--sage-300); }
body.dark .hero-note { color: rgba(255,255,255,.5); }

body.dark .btn-light { background: #fff; color: var(--slate); }
body.dark .link-arrow { color: var(--sage-300); }

body.dark .tag { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.72); }
body.dark .tag strong { color: #fff; }

body.dark .card, body.dark .glass-card, body.dark .panel, body.dark .contact-aside, body.dark .word-tile {
  background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); color: #fff;
}
body.dark .card:hover, body.dark .word-tile:hover { border-color: rgba(168,213,186,.42); box-shadow: 0 1.125rem 2.5rem -20px rgba(0,0,0,.7); }
body.dark .card p, body.dark .check-list li, body.dark .word-tile p { color: rgba(255,255,255,.66); }
body.dark .check-list b, body.dark .split-copy b { color: #fff; }
body.dark .card .ico { background: rgba(168,213,186,.16); color: var(--sage-300); }
body.dark .card .ico.lav { background: rgba(184,145,201,.18); color: var(--lav-300); }

body.dark .gc-top { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
body.dark .gc-title { color: rgba(255,255,255,.55); }
body.dark .gc-dot { background: rgba(255,255,255,.2); }
body.dark .statlet, body.dark .feed-row, body.dark .row-item { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
body.dark .statlet .k, body.dark .feed-row .meta, body.dark .statlet .s { color: rgba(255,255,255,.5); }
body.dark .bar { background: rgba(255,255,255,.1); }
body.dark .insight { background: rgba(184,145,201,.1); border-color: rgba(184,145,201,.4); }
body.dark .insight .k { color: var(--lav-300); }
body.dark .insight .t { color: #fff; }

body.dark .kpi-strip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.1); }
body.dark .kpi { background: rgba(255,255,255,.02); }
body.dark .kpi .v { color: #fff; }
body.dark .kpi .k { color: rgba(255,255,255,.6); }

body.dark .field input, body.dark .field select, body.dark .field textarea {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.2); color: #fff;
}
body.dark .field input::placeholder, body.dark .field textarea::placeholder { color: rgba(255,255,255,.35); }
body.dark .field select option { color: #111; }
body.dark .field label { color: rgba(255,255,255,.85); }
body.dark .form-note { color: rgba(255,255,255,.45); }
body.dark .contact-aside .ci .v { color: #fff; }
body.dark .contact-aside .ci .k { color: rgba(255,255,255,.5); }
body.dark .contact-aside .ci .v a:hover { color: var(--sage-300); }
body.dark .form-success { background: rgba(111,186,138,.14); border-color: rgba(111,186,138,.4); color: var(--sage-300); }

body.dark .cta-band { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12); }

body.dark .site-footer { background: var(--slate-deep); border-top: 1px solid rgba(255,255,255,.06); }
body.dark .foot-bottom { border-color: rgba(255,255,255,.08); }
body { color-scheme: light; }
body.dark { color-scheme: dark; }

/* =====================================================================
   WORD TILES - value-proposition tiles (messaging pass)
   ===================================================================== */
.word-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.625rem,1fr)); gap: 1.125rem; margin-top: 2.75rem; }
.word-tile {
  background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--r-lg); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.word-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.word-tile .ico { width: 2.875rem; height: 2.875rem; border-radius: 0.75rem; display: grid; place-items: center; background: var(--sage-tint-2); color: var(--sage-700); }
.word-tile .ico.lav { background: var(--lav-tint); color: var(--lav-700); }
body.dark .word-tile .ico { background: rgba(168,213,186,.16); color: var(--sage-300); }
body.dark .word-tile .ico.lav { background: rgba(184,145,201,.18); color: var(--lav-300); }
.word-tile .ico svg { width: 1.375rem; height: 1.375rem; }
.word-tile h3 { font-size: 1.16rem; font-weight: 600; line-height: 1.28; letter-spacing: -.01em; }
.word-tile p { font-size: .93rem; line-height: 1.5; color: var(--ink-500); }
body.dark .word-tile p { color: rgba(255,255,255,.66); }
.word-tile .link-arrow { margin-top: auto; font-size: .92rem; }

/* =====================================================================
   FACE PLACEHOLDERS - human/photo stand-ins until real photography lands
   ===================================================================== */
.face-ph {
  border-radius: 50%; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(184,145,201,.28), rgba(111,186,138,.22));
  border: 1px solid var(--ink-100); color: var(--ink-400);
}
body.dark .face-ph { border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.55); }
.face-ph svg { width: 44%; height: 44%; }
.face-ph.sm { width: 2.5rem; height: 2.5rem; }
.face-ph.md { width: 3.75rem; height: 3.75rem; }
.face-ph.lg { width: 5.75rem; height: 5.75rem; }
.face-cluster { display: flex; align-items: center; }
.face-cluster .face-ph { margin-left: -14px; box-shadow: 0 0 0 0.1875rem var(--paper); }
body.dark .face-cluster .face-ph { box-shadow: 0 0 0 0.1875rem var(--abyss); }
.face-cluster .face-ph:first-child { margin-left: 0; }
.face-cluster figcaption, .face-caption { font-size: .8rem; color: var(--ink-400); margin-top: 0.625rem; }
body.dark .face-cluster figcaption, body.dark .face-caption { color: rgba(255,255,255,.45); }

.photo-ph {
  border-radius: var(--r-lg); min-height: 13.75rem; display: grid; place-items: center; text-align: center;
  gap: 0.625rem; padding: 1.5rem; background: linear-gradient(160deg, rgba(184,145,201,.12), rgba(111,186,138,.09));
  border: 1px dashed var(--ink-200); color: var(--ink-400);
}
body.dark .photo-ph { background: linear-gradient(160deg, rgba(184,145,201,.14), rgba(111,186,138,.1)); border-color: rgba(255,255,255,.24); color: rgba(255,255,255,.42); }
.photo-ph svg { width: 2.375rem; height: 2.375rem; margin-inline: auto; }
.photo-ph span { font-size: .8rem; letter-spacing: .01em; max-width: 22ch; }

/* atmosphere glow is a dark-mode device; screen-blend does nothing useful on paper */
body:not(.dark) .atmosphere { display: none; }

/* =====================================================================
   THEME TOGGLE
   ===================================================================== */
.theme-toggle {
  width: 2.375rem; height: 2.375rem; border-radius: 50%; border: 1px solid var(--ink-100); background: var(--paper);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-700); flex: 0 0 auto;
  transition: border-color .2s, transform .2s;
}
.theme-toggle:hover { border-color: var(--sage-500); transform: translateY(-1px); }
.theme-toggle svg { width: 1.125rem; height: 1.125rem; }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
body.dark .theme-toggle { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
body.dark .theme-toggle .ic-sun { display: block; }
body.dark .theme-toggle .ic-moon { display: none; }

/* logo swap (light vs dark wordmark) */
.brand-logo.logo-dark { display: none; }
body.dark .brand-logo.logo-light { display: none; }
body.dark .brand-logo.logo-dark { display: inline-block; }

/* =====================================================================
   HERO CAROUSEL - graphics / real humans / product screens
   ===================================================================== */
.carousel { position: relative; height: 30rem; touch-action: pan-y; }
.carousel-slide { height: 100%; }
.carousel-slide .glass-card { height: 100%; display: flex; flex-direction: column; }
.carousel-slide .gc-body,
.carousel-slide .gc-illustration-body,
.carousel-slide .gc-quote-body,
.carousel-slide .gc-faces-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.carousel-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease); transform: translateY(0.375rem);
}
.carousel-slide.is-active { position: relative; opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.125rem; }
.carousel-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: var(--ink-100); transition: background .2s, transform .2s; }
.carousel-dot.is-active { background: var(--sage-500); transform: scale(1.3); }
body.dark .carousel-dot { background: rgba(255,255,255,.18); }
body.dark .carousel-dot.is-active { background: var(--sage-500); }

.gc-illustration-body { padding: 2.125rem 1.375rem 1.875rem; display: grid; place-items: center; gap: 1.125rem; text-align: center; }
.gc-illustration-body svg { width: 100%; max-width: 16.25rem; height: auto; }
.gc-illustration-caption { font-size: .92rem; color: var(--ink-500); max-width: 28ch; }
body.dark .gc-illustration-caption { color: rgba(255,255,255,.6); }

.gc-faces-body { padding: 1.625rem 1.375rem 1.875rem; display: grid; gap: 1.125rem; }
.face-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.face-tile { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.face-tile .photo-ph { min-height: 4.5rem; width: 100%; aspect-ratio: 1; border-radius: 0.875rem; padding: 0; }
.face-tile .photo-ph svg { width: 1.625rem; height: 1.625rem; margin: 0; }
.face-tile span { font-size: .8rem; color: var(--ink-400); font-weight: 600; }
body.dark .face-tile span { color: rgba(255,255,255,.5); }
.gc-faces-caption { font-size: .84rem; color: var(--ink-500); text-align: center; }
body.dark .gc-faces-caption { color: rgba(255,255,255,.55); }

.gc-quote-body { padding: 2.25rem 1.75rem; display: flex; flex-direction: column; gap: 1rem; justify-content: center; min-height: 26.25rem; }
.gc-quote-mark { width: 2rem; height: 1.5rem; color: var(--lav-500); opacity: .55; }
body.dark .gc-quote-mark { color: var(--lav-300); opacity: .7; }
.gc-quote-text { font-size: 1.4rem; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; color: var(--slate); }
body.dark .gc-quote-text { color: #fff; }
.gc-quote-attr { display: flex; align-items: center; gap: 0.875rem; margin-top: 0.375rem; }
.gc-quote-who { font-size: .82rem; color: var(--ink-500); line-height: 1.5; }
.gc-quote-who em { display: block; font-style: normal; font-size: .8rem; color: var(--ink-400); margin-top: 2px; }
body.dark .gc-quote-who { color: rgba(255,255,255,.62); }
body.dark .gc-quote-who em { color: rgba(255,255,255,.42); }

@media (max-width: 760px) { .carousel { min-height: 35rem; } .face-grid { grid-template-columns: repeat(3, 1fr); } }

/* =====================================================================
   ROSIE MARK — big glowing/pulsing sparkle cluster (locked v2.0 geometry)
   ===================================================================== */
.rosie-mark-big { position: relative; display: grid; place-items: center; min-height: 20rem; }
.rosie-mark-big .rosie-glow {
  position: absolute; width: 70%; padding-bottom: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,145,201,.55), transparent 70%);
  filter: blur(1.875rem); animation: rosieGlow 2.4s ease-in-out infinite;
}
.rosie-mark-big svg { width: 100%; max-width: 20rem; height: auto; position: relative; }
.rosie-mark-big .spark-main { transform-box: fill-box; transform-origin: center; animation: rosiePulse 2.4s ease-in-out infinite; }
.rosie-mark-big .spark-c1 { transform-box: fill-box; transform-origin: center; animation: rosieTwinkle 2.4s ease-in-out infinite; animation-delay: .4s; }
.rosie-mark-big .spark-c2 { transform-box: fill-box; transform-origin: center; animation: rosieTwinkle 2.4s ease-in-out infinite; animation-delay: .8s; }
@keyframes rosiePulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.07); opacity: .88; } }
@keyframes rosieTwinkle { 0%, 100% { opacity: .3; transform: scale(.88); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes rosieGlow { 0%, 100% { opacity: .45; } 50% { opacity: .8; } }
@media (prefers-reduced-motion: reduce) {
  .rosie-mark-big .rosie-glow, .rosie-mark-big .spark-main, .rosie-mark-big .spark-c1, .rosie-mark-big .spark-c2 { animation: none; }
}

/* =====================================================================
   INSIGHT CAROUSEL — rotating "things Rosie catches" cards
   ===================================================================== */
.insight-carousel { height: auto; min-height: 10.625rem; }
.insight-carousel .carousel-slide { height: auto; }
.insight-big {
  display: flex; align-items: flex-start; gap: 1rem; max-width: 40rem; margin: 0 auto; text-align: left;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg);
  padding: 1.625rem 1.875rem; box-shadow: 0 1rem 2.375rem -16px rgba(0,0,0,.55);
}
.insight-big .pip { width: 0.625rem; height: 0.625rem; border-radius: 50%; margin-top: 0.5rem; flex: 0 0 auto; }
.insight-cat { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lav-300); margin-bottom: 0.375rem; }
.insight-headline { font-size: 1.28rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; color: #fff; }
.insight-sub { display: block; font-size: .86rem; color: rgba(255,255,255,.55); margin-top: 0.5rem; }
@media (max-width: 640px) { .insight-headline { font-size: 1.1rem; } .insight-big { text-align: center; flex-direction: column; align-items: center; padding: 1.5rem 1.375rem; } .insight-big .pip { margin-top: 0; } }

/* Sequenced enter/exit: slide in from the right, drop away before the next enters */
.carousel--slide-drop .carousel-slide {
  transform: translateX(3.125rem); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.carousel--slide-drop .carousel-slide.is-active { transform: translateX(0); }
.carousel--slide-drop .carousel-slide.is-leaving {
  position: absolute; inset: 0; opacity: 0; visibility: visible; pointer-events: none;
  transform: translateY(2.25rem); transition: opacity .38s var(--ease), transform .38s var(--ease);
}

/* =====================================================================
   TICKER - continuous "Rosie catches it" loop (no timers, no dots)
   Cards use margin-right instead of flex gap so translateX(-50%)
   lands exactly on the duplicated set and the loop has no seam.
   ===================================================================== */
.ticker {
  overflow: hidden; padding: 0.5rem 0 0.875rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: tickerScroll 50s linear infinite; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk-card {
  flex: 0 0 auto; width: 21.25rem; margin-right: 1.125rem;
  display: flex; align-items: center; gap: 1.125rem; padding: 1.25rem 1.375rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); box-shadow: 0 1rem 2.25rem -18px rgba(0,0,0,.6);
}
.tk-graphic { width: 4.25rem; height: 4.25rem; border-radius: 1rem; flex: 0 0 auto; display: grid; place-items: center; }
.tk-graphic svg { width: 2.875rem; height: 2.875rem; }
.tk-graphic.rose  { background: rgba(220,38,38,.16);  color: #f87171; }
.tk-graphic.amber { background: rgba(217,119,6,.18);  color: #fbbf24; }
.tk-graphic.lav   { background: rgba(184,145,201,.2); color: var(--lav-300); }
.tk-graphic.sage  { background: rgba(111,186,138,.18); color: var(--sage-300); }
.tk-text { display: flex; flex-direction: column; min-width: 0; }
.tk-cat { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.tk-title { font-size: 1.08rem; font-weight: 600; line-height: 1.3; color: #fff; margin-top: 0.25rem; }
.tk-sub { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 0.25rem; }
/* light mode: the cards were drawn for the dark canvas, so give them paper, ink and deeper icon tones */
body:not(.dark) .tk-card { background: var(--paper); border-color: var(--ink-100); box-shadow: var(--shadow-md); }
body:not(.dark) .tk-cat { color: var(--ink-400); }
body:not(.dark) .tk-title { color: var(--slate); }
body:not(.dark) .tk-sub { color: var(--ink-500); }
body:not(.dark) .tk-graphic.rose  { background: #fde8e8; color: #c2410c; }
body:not(.dark) .tk-graphic.amber { background: #fdf0d5; color: #b45309; }
body:not(.dark) .tk-graphic.lav   { background: var(--lav-tint); color: var(--lav-700); }
body:not(.dark) .tk-graphic.sage  { background: var(--sage-tint-2); color: var(--sage-700); }
@media (max-width: 640px) {
  .tk-card { width: 17.5rem; padding: 1rem 1.125rem; gap: 0.875rem; }
  .tk-graphic { width: 3.5rem; height: 3.5rem; border-radius: 0.875rem; }
  .tk-graphic svg { width: 2.375rem; height: 2.375rem; }
  .ticker-track { animation-duration: 40s; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-track { animation: none; }
}

/* Rosie hero mark placement (Insights page): nudged 30% of the way toward the
   header "Request a demo" CTA and shown at 75% size. Hidden once the hero
   stacks on mobile so it doesn't push content down. */
.rosie-mark-big { transform: translate(2.8125rem, -112px) scale(.75); }
@media (max-width: 880px) { .rosie-mark-big { display: none; } }

/* CTA glows live on the SECTION background, not inside the framed box */
.cta-band::before, .cta-band::after { content: none; }
.section--cta-glow { position: relative; overflow: hidden; }
.section--cta-glow::before, .section--cta-glow::after {
  content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none; z-index: 0;
}
/* closest-side ellipses reach full transparency exactly at their own box edge,
   and each box sits fully inside the section, so nothing can ever be clipped */
.section--cta-glow::before { left: 0; width: 55%;
  background: radial-gradient(closest-side at 30% 35%, rgba(184,145,201,.26), transparent); }
.section--cta-glow::after { right: 0; width: 55%;
  background: radial-gradient(closest-side at 70% 65%, rgba(111,186,138,.24), transparent); }
body:not(.dark) .section--cta-glow::before { background: radial-gradient(closest-side at 30% 35%, rgba(184,145,201,.2), transparent); }
body:not(.dark) .section--cta-glow::after { background: radial-gradient(closest-side at 70% 65%, rgba(111,186,138,.18), transparent); }
.section--cta-glow > .wrap { position: relative; z-index: 1; }

/* Research-backed KPI sources */
.kpi-strip--3 .kpi { display: flex; flex-direction: column; }
.kpi .src { display: block; margin-top: auto; padding-top: 0.875rem; font-size: .8rem; line-height: 1.45; color: rgba(255,255,255,.5); }
.kpi .src { position: relative; }
.src-btn {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0; background: none; border: 0;
  font: inherit; font-size: .8rem; color: rgba(255,255,255,.62); cursor: help;
  border-bottom: 1px dashed rgba(255,255,255,.3);
}
.src-btn svg { width: 0.875rem; height: 0.875rem; flex: 0 0 auto; }
.src-btn:hover, .src-btn:focus-visible, .src.is-open .src-btn { color: #fff; border-bottom-color: var(--sage-300); outline: none; }
.src-pop {
  position: absolute; left: 0; bottom: calc(100% + 0.5rem); width: min(18.75rem, 100%); z-index: 5;
  padding: 0.75rem 0.875rem; border-radius: 0.75rem; font-size: .8rem; line-height: 1.5; color: rgba(255,255,255,.88);
  background: #11151b; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 1rem 2.125rem -12px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(0.25rem); transition: opacity .18s, transform .18s, visibility .18s;
}
.src-pop em { font-style: normal; color: #fff; }
.src:hover .src-pop, .src:focus-within .src-pop, .src.is-open .src-pop { opacity: 1; visibility: visible; transform: none; }

/* =====================================================================
   ANYWHERE - mobile-first / simple / adopted / omnichannel
   ===================================================================== */
.any-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.125rem; margin-top: 2.75rem; }
.any-tile { padding: 1.625rem 1.5rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--ink-100); }
body.dark .any-tile { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
.any-ico { width: 3.25rem; height: 3.25rem; border-radius: 0.875rem; display: grid; place-items: center; background: var(--sage-tint-2); color: var(--sage-700); margin-bottom: 1rem; }
body.dark .any-ico { background: rgba(111,186,138,.16); color: var(--sage-300); }
.any-ico svg { width: 1.625rem; height: 1.625rem; }
.any-tile h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.any-tile p { margin-top: 0.5rem; font-size: .95rem; line-height: 1.55; color: var(--ink-500); }
body.dark .any-tile p { color: rgba(255,255,255,.66); }
@media (max-width: 980px) { .any-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .any-grid { grid-template-columns: 1fr; } }

/* Compact strip version for interior pages */
.any-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.75rem; padding: 1.375rem 1.625rem;
  border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--ink-100); }
body.dark .any-strip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.any-strip span { display: inline-flex; align-items: center; gap: 0.625rem; font-size: .95rem; font-weight: 600; color: var(--slate); }
body.dark .any-strip span { color: #fff; }
.any-strip svg { width: 1.375rem; height: 1.375rem; color: var(--sage-700); flex: 0 0 auto; }
body.dark .any-strip svg { color: var(--sage-300); }

/* =====================================================================
   ROSIE CHAT - phone-framed conversation mock (lavender = Rosie only)
   ===================================================================== */
.phone {
  width: 100%; max-width: 22.5rem; margin: 0 auto; border-radius: 2.5rem; padding: 0.75rem;
  background: #0b0e12; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 2.5rem 5rem -30px rgba(0,0,0,.7), 0 0 0 0.375rem rgba(255,255,255,.03);
}
.phone-screen { border-radius: 1.875rem; overflow: hidden; background: #151a21; display: flex; flex-direction: column; }
.phone-notch { width: 6rem; height: 1.375rem; border-radius: 0 0 0.875rem 0.875rem; background: #0b0e12; margin: 0 auto; }
.chat-head { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 1rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.chat-head .av { width: 2.125rem; height: 2.125rem; border-radius: 50%; display: grid; place-items: center; background: rgba(184,145,201,.2); }
.chat-head .av svg { width: 1.25rem; height: 1.25rem; }
.chat-head b { display: block; font-size: .92rem; color: #fff; }
.chat-head small { display: block; font-size: .8rem; color: rgba(255,255,255,.5); }
.chat-body { padding: 1rem 0.875rem; display: flex; flex-direction: column; gap: 0.625rem; }
.bub { max-width: 86%; padding: 0.625rem 0.8125rem; border-radius: 1rem; font-size: .86rem; line-height: 1.45; }
.bub.me { align-self: flex-end; background: var(--sage-700); color: #fff; border-bottom-right-radius: 0.3125rem; }
.bub.rosie { align-self: flex-start; background: rgba(184,145,201,.16); border: 1px solid rgba(184,145,201,.3); color: rgba(255,255,255,.92); border-bottom-left-radius: 0.3125rem; }
.bub.rosie .cite { display: block; margin-top: 0.375rem; font-size: .8rem; color: var(--lav-300); }
.bub .acts { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.5rem; }
.bub .acts span { font-size: .8rem; font-weight: 600; padding: 0.3125rem 0.625rem; border-radius: 62.4375rem; background: rgba(184,145,201,.2); color: #fff; border: 1px solid rgba(184,145,201,.4); }
.bub ul { margin: 0.375rem 0 0 1rem; }
.chat-input { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0.75rem 0.875rem; padding: 0.5625rem 0.5625rem 0.5625rem 0.875rem; border-radius: 62.4375rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: rgba(255,255,255,.45); }
.chat-input i { flex: 1; font-style: normal; }
.chat-input b { width: 1.875rem; height: 1.875rem; border-radius: 50%; display: grid; place-items: center; background: var(--lav-500); }
.chat-input b svg { width: 0.9375rem; height: 0.9375rem; color: #fff; }

/* Balanced heading wraps: avoids one-word orphan lines at every screen width */
h1, h2, h3 { text-wrap: balance; }

/* Rules-engine hero card (Operational Excellence) */
.rule-row { display: grid; grid-template-columns: 5.75rem 1fr; gap: 0.875rem; align-items: baseline; padding: 0.8125rem 0.875rem; border: 1px solid var(--ink-100); border-radius: var(--r-md); background: var(--bg); }
.rule-row + .rule-row { margin-top: 0; }
.rule-row .rk { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lav-700); }
.rule-row .rv { font-size: .95rem; font-weight: 600; color: var(--slate); }
.rule-foot { margin-top: 0.875rem; font-size: .8rem; color: var(--ink-400); }
body.dark .rule-row { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
body.dark .rule-row .rk { color: var(--lav-300); }
body.dark .rule-row .rv { color: #fff; }
body.dark .rule-foot { color: rgba(255,255,255,.5); }
@media (max-width: 480px) { .rule-row { grid-template-columns: 1fr; gap: 0.25rem; } }

/* Safety tiles use Rosie lavender (Rosie surface) */
.guard-grid .any-ico { background: var(--lav-tint); color: var(--lav-700); }
body.dark .guard-grid .any-ico { background: rgba(184,145,201,.18); color: var(--lav-300); }

/* Animated hero chat (Insights) */
.hero-chat { max-width: 21.25rem; }
.hero-chat .chat-body { height: 23.75rem; justify-content: flex-end; overflow: hidden; }
.hero-chat .bub { opacity: 0; transform: translateY(0.75rem); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.hero-chat .bub.show { opacity: 1; transform: none; }
.hero-chat .chat-body.fading .bub { opacity: 0; transition-duration: .5s; }
.hero-chat .chat-input i.typed { color: #fff; }
.bub.typing { display: inline-flex; gap: 0.3125rem; padding: 0.75rem 0.875rem; }
.bub.typing i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--lav-300); animation: typingDot 1s infinite ease-in-out; }
.bub.typing i:nth-child(2) { animation-delay: .15s; } .bub.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 880px) { .hero-chat { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-chat .bub { opacity: 1; transform: none; } .bub.typing i { animation: none; } }

/* Tighter rhythm: compact strips and the CTA band no longer stack big gaps */
.section--strip { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.section--cta-glow { padding-block: clamp(3rem, 6vw, 5.5rem); }

/* AI-native comparison (homepage) */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.75rem; }
.vs-card { padding: 1.75rem 1.875rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--ink-100); }
.vs-card.us { border: 2px solid var(--sage-500); box-shadow: 0 1.125rem 2.75rem -20px rgba(63,138,93,.45); }
body.dark .vs-card { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.1); }
body.dark .vs-card.us { background: rgba(111,186,138,.07); border-color: rgba(111,186,138,.55); }
.vs-tag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); }
.vs-card.us .vs-tag { color: var(--sage-700); }
body.dark .vs-tag { color: rgba(255,255,255,.5); }
body.dark .vs-card.us .vs-tag { color: var(--sage-300); }
.vs-tag .mk { width: 1rem; height: 1rem; }
.vs-card ul { list-style: none; margin-top: 1.125rem; display: grid; gap: 0.875rem; }
.vs-card li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1rem; line-height: 1.45; color: var(--ink-500); }
.vs-card.us li { color: var(--slate); font-weight: 500; }
body.dark .vs-card li { color: rgba(255,255,255,.55); }
body.dark .vs-card.us li { color: #fff; }
.vs-ic { width: 1.5rem; height: 1.5rem; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: var(--ink-100); color: var(--ink-400); }
.vs-card.us .vs-ic { background: var(--sage-500); color: #fff; }
body.dark .vs-ic { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }
.vs-ic svg { width: 0.875rem; height: 0.875rem; }
.hp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.hp { padding: 1.375rem 1.5rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--ink-100); }
body.dark .hp { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.1); }
.hp b { display: block; font-size: 1.08rem; color: var(--slate); }
body.dark .hp b { color: #fff; }
.hp span { display: block; margin-top: 0.375rem; font-size: .94rem; line-height: 1.5; color: var(--ink-500); }
body.dark .hp span { color: rgba(255,255,255,.62); }
@media (max-width: 820px) { .vs-grid, .hp-row { grid-template-columns: 1fr; } }

/* Medication pass on a phone (Medications page) */
.pass-list { padding: 0.75rem; display: grid; gap: 0.625rem; }
.pass-row { display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; padding: 0.75rem; border-radius: 0.875rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.pass-row b { display: block; font-size: .92rem; color: #fff; }
.pass-row small { display: block; font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 2px; }
.pass-row em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--sage-300); }
.pass-row.warn em { color: #fbbf24; }
.pass-row.done { opacity: .7; }
.pass-btns { display: flex; gap: 0.375rem; }
.pass-btns i { font-style: normal; font-size: .8rem; font-weight: 700; padding: 0.5rem 0.75rem; border-radius: 0.625rem; background: rgba(255,255,255,.08); color: #fff; }
.pass-btns i.g { background: var(--sage-700); }
.pass-list + * { margin-bottom: 0; }

/* =====================================================================
   TEXT SIZE: Standard / Large. Everything is sized in rem, so one root
   change magnifies text, cards, mockups, icons, and spacing together.
   ===================================================================== */
html.large { font-size: 125%; }
.size-toggle {
  height: 2.375rem; min-width: 2.375rem; padding: 0 .6rem; border-radius: 999px; border: 1px solid var(--ink-100); background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 1px; cursor: pointer; color: var(--ink-700);
  font: inherit; font-weight: 700; line-height: 1; transition: border-color .2s, transform .2s, background .2s;
}
.size-toggle:hover { border-color: var(--sage-500); transform: translateY(-1px); }
.size-toggle .a1 { font-size: .8rem; }
.size-toggle .a2 { font-size: 1.1rem; }
html.large .size-toggle { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }
body.dark .size-toggle { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
html.large body.dark .size-toggle { background: var(--sage-700); border-color: var(--sage-700); }
.nav-tools { display: inline-flex; align-items: center; gap: .5rem; }

/* Carousel sizes to its tallest slide (all slides share one grid cell), so every
   slide stays the same size and the dots stay put at ANY text size. */
.carousel { height: auto; display: grid; }
.carousel-slide, .carousel-slide.is-active { position: relative; inset: auto; grid-area: 1 / 1; height: auto; }
.carousel-dots { grid-row: 2; }
@media (max-width: 760px) { .carousel { min-height: 0; } }

/* Large text: collapse to the hamburger menu earlier so the bigger nav never cramps */
@media (max-width: 1280px) {
  html.large .nav-links { position: fixed; inset: 4.75rem 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--ink-100); padding: 1rem var(--gut) 1.5rem;
    transform: translateY(-120%); transition: transform .35s var(--ease); box-shadow: var(--shadow-md); }
  html.large .nav-links.open { transform: translateY(0); }
  html.large .nav-link { padding: .8em .6em; font-size: 1.05rem; }
  html.large .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0.25rem 0 0.5rem 0.75rem; min-width: 0; }
  html.large .menu::before { display: none; }
  html.large .nav-cta { margin: 0.625rem 0 0; }
  html.large .nav-toggle { display: grid; }
  html.large body.dark .nav-links { background: var(--slate-deep); border-color: rgba(255,255,255,.1); }
}

/* Header: text-size + theme buttons always visible in the bar (never hidden in the menu) */
.nav { justify-content: flex-start; }
.nav > a:first-child { margin-right: auto; }
.nav-toggle { order: 5; }
.nav-links .nav-cta--menu { display: none; }
.nav-cta--bar { margin-left: 0; }
@media (max-width: 900px) {
  .nav { gap: .625rem; }
  .nav-cta--bar { display: none; }
  .nav-links .nav-cta--menu { display: inline-flex; }
}
@media (max-width: 1280px) {
  html.large .nav { gap: .625rem; }
  html.large .nav-cta--bar { display: none; }
  html.large .nav-links .nav-cta--menu { display: inline-flex; }
}

/* =====================================================================
   MOBILE / iOS PASS (iPhone, iPad Mini, iPad)
   ===================================================================== */
html { -webkit-tap-highlight-color: rgba(111,186,138,.18); }
/* Safe areas: keep content clear of the notch / Dynamic Island in landscape */
.wrap { padding-left: max(var(--gut), env(safe-area-inset-left)); padding-right: max(var(--gut), env(safe-area-inset-right)); }
.site-footer { padding-bottom: max(0px, env(safe-area-inset-bottom)); }
/* iOS zooms the page when a form field is under 16px - keep them at 16px+ */
.field input, .field select, .field textarea { font-size: max(1rem, 16px); }

/* Mobile menu: never taller than the screen, scrolls on its own, background locked */
@media (max-width: 900px) {
  .nav-links { max-height: calc(100dvh - 4.75rem); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
}
@media (max-width: 1280px) {
  html.large .nav-links { max-height: calc(100dvh - 4.75rem); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
}
body.menu-open { overflow: hidden; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

/* iPad desktop-width nav: dropdowns open on tap (there is no hover on touch) */
.has-menu.open .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-menu.open > .nav-link svg { transform: rotate(180deg); }

/* Touch devices: every tappable thing meets Apple's 44px minimum */
@media (pointer: coarse) {
  .nav-toggle, .theme-toggle { width: 2.75rem; height: 2.75rem; }
  .size-toggle { height: 2.75rem; min-width: 2.75rem; }
  .nav > a:first-child, .breadcrumb a, .foot-bottom .legal a, .contact-aside .ci .v a, .src-btn, .link-arrow { min-height: 44px; display: inline-flex; align-items: center; }
  .foot-col a { min-height: 44px; display: flex; align-items: center; }
  .foot-col h4 + a { margin-top: 0; }
  .foot-bottom .legal { gap: 1.25rem; }
  .carousel-dots { gap: 0; margin-top: .25rem; }
  .carousel-dot { width: 44px; height: 44px; background: transparent !important; transform: none !important; position: relative; }
  .carousel-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: .5rem; height: .5rem; border-radius: 50%;
    transform: translate(-50%,-50%); background: var(--ink-100); transition: background .2s, transform .2s; }
  body.dark .carousel-dot::before { background: rgba(255,255,255,.22); }
  .carousel-dot.is-active::before { background: var(--sage-500); transform: translate(-50%,-50%) scale(1.35); }
}
/* No "stuck" hover lift after a tap on touch screens */
@media (hover: none) {
  .card:hover, .word-tile:hover, .any-tile:hover, .btn:hover, .theme-toggle:hover, .size-toggle:hover { transform: none; }
}
@media (pointer: coarse) { .breadcrumb a, .foot-bottom .legal a { min-width: 44px; justify-content: center; } }

/* ---------- Phones: cleaner layouts ---------- */
@media (max-width: 560px) {
  /* Equal, full-width buttons instead of two ragged stacked pills */
  .hero-actions { gap: .75rem; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  /* CTA band: less inner padding so copy gets the width */
  .cta-band { padding: 2.25rem 1.375rem; }
  /* Hero dashboard: keep the 3 stats side by side, compact, instead of 3 tall rows */
  .stat-row, .stat-row { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .statlet { padding: .75rem .7rem; }
  .statlet .k { font-size: .8rem; letter-spacing: .02em; line-height: 1.25; }
  .statlet .v { font-size: 1.6rem; }
  .statlet .s { font-size: .8rem; line-height: 1.3; }
  /* Feature tiles: icon beside the text, so four tiles don't fill four screens */
  .any-tile { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.25rem; }
  .any-tile .any-ico { grid-row: 1 / span 2; margin-bottom: 0; width: 2.75rem; height: 2.75rem; }
  .any-tile p { margin-top: .25rem; }
}
/* iPad Mini / iPad portrait: no stranded tile, comparisons stay side by side */
@media (min-width: 561px) and (max-width: 980px) {
  .word-tiles { grid-template-columns: 1fr 1fr; }
  .word-tiles > .word-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 641px) and (max-width: 820px) {
  .vs-grid { grid-template-columns: 1fr 1fr; }
  .hp-row { grid-template-columns: repeat(3, 1fr); }
  .vs-card { padding: 1.5rem; }
}

/* Grid columns may shrink below their content's natural width (prevents Large-text blowouts) */
.hero-grid > *, .split > *, .word-tiles > *, .any-grid > *, .vs-grid > *, .hp-row > *, .stat-row > *, .kpi-strip > *, .cards > * { min-width: 0; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 560px) {
  .statlet .k { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .8rem; }
  html.large .stat-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 390px) { .stat-row { gap: .375rem; } .statlet { padding: .7rem .5rem; } .gc-body { padding-inline: .875rem; } }

/* =====================================================================
   LEGAL / PORTAL PAGES (Privacy, Terms, Employee Portal)
   Long-form reading: narrow measure, generous line height, clear headings.
   ===================================================================== */
.doc-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.wrap.col { max-width: 48rem; }
.doc-hero h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; margin-top: .75rem; }
.doc-hero .updated { margin-top: 1rem; font-size: .95rem; color: var(--ink-500); }
body.dark .doc-hero .updated { color: rgba(255,255,255,.6); }
.doc-body { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.doc-body h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; margin: 2.5rem 0 .75rem; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { font-size: 1.05rem; line-height: 1.75; color: var(--ink-700); }
body.dark .doc-body p, body.dark .doc-body li { color: rgba(255,255,255,.78); }
.doc-body p + p { margin-top: 1rem; }
.doc-body ul { margin: .75rem 0 1rem 1.25rem; }
.doc-body li + li { margin-top: .4rem; }
.doc-body a, .card-panel a { color: var(--sage-700); text-decoration: underline; text-underline-offset: 2px; }
body.dark .doc-body a, body.dark .card-panel a { color: var(--sage-300); }
.doc-body strong, .doc-body b { color: var(--slate); }
body.dark .doc-body strong, body.dark .doc-body b { color: #fff; }
.callout { margin: 1.25rem 0; padding: 1.25rem 1.375rem; border-radius: var(--r-md); background: var(--lav-tint); border: 1px solid var(--lav-300); }
body.dark .callout { background: rgba(184,145,201,.1); border-color: rgba(184,145,201,.35); }
.callout .h { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--slate); }
body.dark .callout .h { color: #fff; }
.use-list { list-style: none; margin-left: 0 !important; display: grid; gap: .75rem; }
.use-list li { display: flex; gap: .75rem; align-items: flex-start; }
.use-list .mk { width: 1.125rem; height: 1.125rem; margin-top: .35rem; flex: 0 0 auto; }
/* Portal */
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 64rem; }
.card-panel { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--ink-100); }
body.dark .card-panel { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
.card-panel h2 { font-size: 1.4rem; font-weight: 600; }
.card-panel .sub { margin: .35rem 0 1.5rem; color: var(--ink-500); }
body.dark .card-panel .sub { color: rgba(255,255,255,.6); }
.req { color: var(--lav-500); }
.consent { display: flex; gap: .75rem; align-items: flex-start; margin: .5rem 0 1rem; }
.consent input { width: 1.375rem; height: 1.375rem; margin-top: .15rem; flex: 0 0 auto; accent-color: var(--sage-700); }
.consent label { font-size: .95rem; line-height: 1.55; color: var(--ink-700); }
body.dark .consent label { color: rgba(255,255,255,.8); }
.disclosure { font-size: .88rem; line-height: 1.6; color: var(--ink-500); }
body.dark .disclosure { color: rgba(255,255,255,.58); }
.form-success { align-items: flex-start; gap: .75rem; }
body.dark .form-success { background: rgba(111,186,138,.12); border-color: rgba(111,186,138,.4); color: #fff; }
@media (max-width: 820px) { .portal-grid { grid-template-columns: minmax(0, 1fr); } }
@media (pointer: coarse) { .consent label { padding-block: .25rem; } }
.consent input { font-size: 16px; }
.doc-hero:has(+ section > .portal-grid) .wrap.col { max-width: 64rem; }

/* =====================================================================
   FIND YOUR FIT - facility-type selector (Who We Serve)
   Every panel is real HTML. Only when JS is running (html.js) are the
   inactive panels hidden, so crawlers and no-JS readers see everything.
   ===================================================================== */
.fit-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0 2rem; }
.fit-opt {
  position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.375rem; min-height: 5.5rem;
  border-radius: var(--r-lg); background: var(--paper); border: 2px solid var(--ink-100); color: var(--slate);
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; cursor: pointer;
}
.fit-opt:hover { border-color: var(--sage-500); transform: translateY(-2px); }
.fit-opt.is-active { border-color: var(--sage-500); background: var(--sage-tint); box-shadow: 0 14px 32px -18px rgba(63,138,93,.55); }
body.dark .fit-opt { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); color: #fff; }
body.dark .fit-opt.is-active { background: rgba(111,186,138,.1); border-color: var(--sage-500); }
.fit-ico { width: 3rem; height: 3rem; border-radius: 14px; flex: 0 0 auto; display: grid; place-items: center; background: var(--sage-tint-2); color: var(--sage-700); }
body.dark .fit-ico { background: rgba(111,186,138,.16); color: var(--sage-300); }
.fit-ico svg { width: 1.6rem; height: 1.6rem; }
.fit-txt { display: flex; flex-direction: column; gap: .2rem; padding-right: 1.75rem; }
.fit-txt b { font-size: 1.08rem; font-weight: 700; line-height: 1.25; }
.fit-txt small { font-size: .9rem; line-height: 1.35; color: var(--ink-500); }
body.dark .fit-txt small { color: rgba(255,255,255,.62); }
.fit-check { position: absolute; top: .9rem; right: .9rem; width: 1.5rem; height: 1.5rem; padding: .25rem; border-radius: 50%;
  background: var(--sage-700); color: #fff; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.fit-opt.is-active .fit-check { opacity: 1; transform: none; }
.fit-opt:focus-visible { outline: 3px solid var(--lav-500); outline-offset: 3px; }
.fit-panel { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--ink-100); scroll-margin-top: 6rem; }
body.dark .fit-panel { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
.fit-panel + .fit-panel { margin-top: 1.25rem; }
.fit-panel h3 { margin-top: .75rem; }
.fit-panel .link-arrow { margin-top: 1.25rem; }
/* JS on: show one panel at a time, with a gentle transition */
html.js .fit-panel:not(.is-active) { display: none; }
html.js .fit-panel.is-active { animation: fitIn .45s var(--ease); }
@keyframes fitIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.js .fit-panel.is-active { animation: none; } }
@media (max-width: 820px) { .fit-opts { grid-template-columns: minmax(0, 1fr); gap: .75rem; } .fit-opt { min-height: 4.5rem; } }
@media (hover: none) { .fit-opt:hover { transform: none; } }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Circle of care diagram */
.coc { max-width: 27.5rem; margin: 0 auto; }
.coc svg { width: 100%; height: auto; display: block; }
.coc-ring { fill: none; stroke: var(--sage-500); stroke-width: 1.5; stroke-dasharray: 4 7; opacity: .7; }
.coc-spokes path { stroke: var(--ink-200); stroke-width: 1.5; }
body.dark .coc-spokes path { stroke: rgba(255,255,255,.16); }
.coc-center { fill: var(--sage-700); }
.coc-t { font: 700 17px var(--font); fill: #fff; }
.coc-s { font: 500 12px var(--font); fill: rgba(255,255,255,.8); }
.coc-node circle { fill: var(--paper); stroke: var(--sage-500); stroke-width: 2; }
.coc-node.lav circle { stroke: var(--lav-500); }
.coc-node text { font: 600 13px var(--font); fill: var(--slate); }
body.dark .coc-node circle { fill: #1b2129; }
body.dark .coc-node text { fill: #fff; }

/* Numbered steps (Making the switch) */
.steps { list-style: none; max-width: 46rem; margin: 2.5rem auto 0; display: grid; gap: 1rem; }
.step { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.375rem 1.5rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--ink-100); }
body.dark .step { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
.step-n { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; background: var(--sage-700); color: #fff; }
.step h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.step p { margin-top: .3rem; color: var(--ink-500); line-height: 1.55; }
body.dark .step p { color: rgba(255,255,255,.66); }

/* Leadership (About) */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 56rem; margin: 2.5rem auto 0; }
.person { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.5rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--ink-100); }
body.dark .person { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
.person h3 { font-size: 1.2rem; font-weight: 600; }
.person-role { display: block; margin-top: .15rem; font-size: .88rem; font-weight: 600; color: var(--sage-700); }
body.dark .person-role { color: var(--sage-300); }
.person p { margin-top: .6rem; color: var(--ink-500); line-height: 1.55; }
body.dark .person p { color: rgba(255,255,255,.66); }
.people-note { text-align: center; margin-top: 1rem; font-size: .85rem; color: var(--ink-400); }
@media (max-width: 720px) { .people { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   REGULATION EXPLAINERS
   ===================================================================== */
.reg-toc { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: 1.25rem; }
.reg-toc span { font-size: .9rem; font-weight: 600; color: var(--ink-500); }
.reg-toc a { font-size: .95rem; font-weight: 600; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--ink-100); background: var(--paper); color: var(--sage-700); min-height: 44px; display: inline-flex; align-items: center; }
.reg-toc a:hover { border-color: var(--sage-500); }
body.dark .reg-toc span { color: rgba(255,255,255,.6); }
body.dark .reg-toc a { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: var(--sage-300); }
.reg-note { font-size: .95rem; line-height: 1.6; padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--bg); border: 1px dashed var(--ink-200); color: var(--ink-500); }
body.dark .reg-note { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.66); }
.reg-sec { margin-top: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 6rem; }
.reg-sec h2 { margin-top: .5rem; }
.reg-sec > .lead { margin-top: .75rem; max-width: 40rem; }
.reg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; margin-top: 1.75rem; }
.reg-card { display: flex; flex-direction: column; padding: 1.5rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--ink-100); }
body.dark .reg-card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
.reg-tag { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sage-700); }
body.dark .reg-tag { color: var(--sage-300); }
.reg-card h3 { font-size: 1.2rem; font-weight: 600; margin-top: .35rem; }
.reg-steps { list-style: none; margin: 1rem 0 .5rem; display: grid; gap: .75rem; }
.reg-steps li { display: grid; gap: .2rem; padding-left: .875rem; border-left: 3px solid var(--sage-500); }
.reg-when { font-weight: 700; font-size: 1rem; color: var(--slate); }
.reg-what { font-size: .97rem; line-height: 1.5; color: var(--ink-500); }
body.dark .reg-when { color: #fff; }
body.dark .reg-what { color: rgba(255,255,255,.7); }
.reg-card .reg-src { margin-top: auto; padding-top: .75rem; position: relative; }
.reg-src .src-btn { color: var(--ink-500); border-bottom-color: var(--ink-200); }
.reg-src .src-btn:hover, .reg-src .src-btn:focus-visible, .reg-src.is-open .src-btn { color: var(--slate); border-bottom-color: var(--sage-500); }
body.dark .reg-src .src-btn { color: rgba(255,255,255,.62); border-bottom-color: rgba(255,255,255,.3); }
body.dark .reg-src .src-btn:hover, body.dark .reg-src.is-open .src-btn { color: #fff; }
.reg-plain { margin-top: 1.25rem; font-size: 1.02rem; line-height: 1.6; color: var(--ink-700); max-width: 44rem; }
body.dark .reg-plain { color: rgba(255,255,255,.78); }
.reg-callout { margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--r-md); background: rgba(217,119,6,.08); border: 1px solid rgba(217,119,6,.35); line-height: 1.6; color: var(--ink-700); }
body.dark .reg-callout { background: rgba(217,119,6,.12); color: rgba(255,255,255,.85); }
.reg-helps { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--sage-tint); line-height: 1.55; color: var(--ink-700); }
.reg-helps .mk { width: 1.125rem; height: 1.125rem; margin-top: .2rem; flex: 0 0 auto; }
body.dark .reg-helps { background: rgba(111,186,138,.1); color: rgba(255,255,255,.82); }

/* Collapsed (phone/tablet) menu: submenus sit in the normal flow. Desktop dropdown
   positioning must never apply here, including iOS "sticky hover" after a tap. */
@media (max-width: 900px) {
  .nav-links .has-menu .menu, .nav-links .has-menu:hover .menu, .nav-links .has-menu:focus-within .menu, .nav-links .has-menu.open .menu { transform: none; left: auto; }
}
@media (max-width: 1280px) {
  html.large .nav-links .has-menu .menu, html.large .nav-links .has-menu:hover .menu, html.large .nav-links .has-menu:focus-within .menu, html.large .nav-links .has-menu.open .menu { transform: none; left: auto; }
}

/* =====================================================================
   REAL PRODUCT SCREENSHOTS (from the prototype)
   ===================================================================== */
.app-shot { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--ink-100); box-shadow: var(--shadow-lg); }
body.dark .app-shot { border-color: rgba(255,255,255,.14); box-shadow: 0 30px 70px -28px rgba(0,0,0,.8); }
.app-shot-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .875rem; background: #f4f5f6; border-bottom: 1px solid #e6e8ea; }
.app-shot-bar span { width: .55rem; height: .55rem; border-radius: 50%; background: #d4d7db; }
.app-shot-bar b { margin-left: .5rem; font-size: .8rem; font-weight: 600; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-shot img { display: block; width: 100%; height: auto; }
.any-shot { max-width: 52rem; margin: 2.5rem auto 0; }
.any-shot-cap { text-align: center; margin-top: 1rem; font-size: .95rem; color: var(--ink-500); }
body.dark .any-shot-cap { color: rgba(255,255,255,.6); }

/* Screenshot slides in the hero carousel: fill the card, anchored to the top */
.shot-card { overflow: hidden; }
.shot-card .shot-img { display: block; width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top left; background: #fff; }

/* Carousel back / forward controls */
.carousel-nav { grid-row: 2; display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1rem; }
.carousel-nav .carousel-dots { margin-top: 0; }
.carousel-arrow { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--paper); border: 1px solid var(--ink-100); color: var(--slate); transition: border-color .2s, transform .2s; }
.carousel-arrow:hover { border-color: var(--sage-500); transform: translateY(-1px); }
.carousel-arrow svg { width: 1.25rem; height: 1.25rem; }
body.dark .carousel-arrow { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
@media (hover: none) { .carousel-arrow:hover { transform: none; } }

/* =====================================================================
   HOMEPAGE HERO - centered, no images, small glowing mark with a pulse
   ===================================================================== */
.hero--center { text-align: center; }
.hero-center { max-width: 52rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-center .eyebrow { justify-content: center; }
.hero-center .hero-actions { justify-content: center; }
.hero-center .hero-note { justify-content: center; }
.hero-mark { position: relative; width: 4.5rem; height: 4.5rem; margin-bottom: 1.75rem; display: grid; place-items: center; }
.hero-mark img { position: relative; width: 4.5rem; height: 4.5rem; animation: markBreathe 3.2s ease-in-out infinite; }
.hero-mark-glow { position: absolute; inset: -60%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(111,186,138,.55), rgba(184,145,201,.28) 55%, transparent);
  filter: blur(14px); animation: markGlow 3.2s ease-in-out infinite; }
@keyframes markBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes markGlow { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
body:not(.dark) .hero-mark-glow { opacity: .7; }
@media (prefers-reduced-motion: reduce) { .hero-mark img, .hero-mark-glow { animation: none; } }
@media (max-width: 560px) { .hero-center .hero-actions .btn { flex: 1 1 100%; } }

/* "human" highlight (sage) */
.hl-sage { color: var(--sage-700); }
body.dark .hl-sage { color: var(--sage-300); }

/* AI-native: the Careific checklist standing alone, centered */
.vs-grid--solo { grid-template-columns: minmax(0, 40rem); justify-content: center; }
@media (max-width: 820px) { .vs-grid--solo { grid-template-columns: minmax(0, 1fr); } }
/* Copy on the right, visual on the left (text still comes first on phones) */
.split.copy-right .split-copy { order: 2; }
@media (max-width: 820px) { .split.copy-right .split-copy { order: 0; } }

/* Homepage hero glows: lavender raised; sage sits half-visible at the bottom-right on load and parallaxes up on scroll */
.hero--center .atmosphere .f1 { top: -42%; }
.hero--center .atmosphere .f2 { top: auto; bottom: calc(-1 * min(9vw, 7rem) - min(25vw, 19.375rem)); right: calc(-1 * min(25vw, 19.375rem)); opacity: .95; }

/* ===== Rosie chat introduction (hover the logo for 2s; long-press on phones) ===== */
/* ---------- Rosie easter-egg chat (iPhone Messages style) ---------- */
.rosie-overlay { position:fixed; inset:0; z-index:300; display:none; align-items:center; justify-content:center;
  background:rgba(14,18,23,.55); backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); padding:16px; }
.rosie-overlay.open { display:flex; animation:rosieFade .25s ease forwards; }
.rosie-overlay:focus { outline:none; }
@media (min-width:600px){ .rosie-overlay { padding:28px; } }
@keyframes rosieFade { from{opacity:0} to{opacity:1} }

/* contained, fully-rounded card at every size; capped so the whole box (corners included) always fits */
.imsg { width:100%; max-width:420px; height:min(660px, 86vh); background:#fff; display:flex; flex-direction:column; overflow:hidden;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif;
  border-radius:30px; box-shadow:0 30px 70px -18px rgba(14,18,23,.6);
  transform:translateY(28px); opacity:0; animation:rosieUp .5s var(--ease) .04s forwards; }
@media (min-width:600px){ .imsg { border-radius:40px; box-shadow:0 40px 90px -20px rgba(14,18,23,.7), 0 0 0 10px #111418, 0 0 0 11px #2a2f36; } }
@keyframes rosieUp { to { transform:none; opacity:1; } }

/* contact bar: centered avatar+name in flow (proper space above), back chevron pinned left */
.imsg-bar { position:relative; display:flex; flex-direction:column; align-items:center; padding:26px 14px 16px;
  background:rgba(248,248,250,.92); backdrop-filter:saturate(150%) blur(14px); border-bottom:1px solid rgba(0,0,0,.08); }
.imsg-back { position:absolute; left:10px; top:50%; transform:translateY(-50%);
  width:38px; height:38px; border:none; background:transparent; color:var(--lav-700); cursor:pointer;
  display:grid; place-items:center; border-radius:10px; -webkit-tap-highlight-color:transparent; }
.imsg-back:focus { outline:none; }
.imsg-back:focus-visible { outline:2px solid var(--lav-500); outline-offset:2px; }
.imsg-back svg { width:24px; height:24px; }
.imsg-peer { display:flex; flex-direction:column; align-items:center; gap:7px; pointer-events:none; }
.imsg-ava { width:50px; height:50px; border-radius:50%; display:grid; place-items:center;
  background:linear-gradient(150deg,var(--lav-500),var(--lav-700)); box-shadow:0 3px 9px -2px rgba(125,93,146,.6); }
.imsg-ava svg { width:31px; height:31px; }
.imsg-ava svg path { fill:#fff; }
.imsg-name { display:flex; align-items:center; gap:2px; font-size:1.02rem; font-weight:600; color:#1c1c1e; }
.imsg-name svg { width:13px; height:13px; color:#c4c4c8; }
.imsg-spacer { display:none; }

.imsg-thread { flex:1; overflow-y:auto; padding:18px 16px 18px; display:flex; flex-direction:column; align-items:flex-end; gap:9px; background:#fff; }
.imsg-time { align-self:center; font-size:.68rem; color:#8e8e93; margin:2px 0 14px; }
.imsg-time b { color:#8e8e93; font-weight:700; }

.rosie-msg { display:none; max-width:76%; background:var(--lav-700); color:#fff; font-size:1.04rem; line-height:1.34;
  padding:9px 15px; border-radius:20px; position:relative; }
.rosie-msg.show { display:block; animation:rosieMsg .4s var(--ease); }
.rosie-msg.show:last-of-type { border-bottom-right-radius:7px; }
.rosie-msg.show:last-of-type::before { content:""; position:absolute; bottom:0; right:-7px; width:15px; height:19px; background:var(--lav-700); border-bottom-left-radius:18px; }
.rosie-msg.show:last-of-type::after { content:""; position:absolute; bottom:0; right:-12px; width:12px; height:19px; background:#fff; border-bottom-left-radius:14px; }
@keyframes rosieMsg { from{ opacity:0; transform:translateY(9px) scale(.96);} to{ opacity:1; transform:none; } }

.rosie-typing { display:none; align-self:flex-end; align-items:center; gap:5px; background:var(--lav-700); padding:14px 16px; border-radius:20px; border-bottom-right-radius:7px; }
.rosie-typing.show { display:inline-flex; }
.rosie-typing span { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.85); animation:rosieDot 1.25s ease-in-out infinite; }
.rosie-typing span:nth-child(2){ animation-delay:.18s; }
.rosie-typing span:nth-child(3){ animation-delay:.36s; }
@keyframes rosieDot { 0%,60%,100%{ transform:translateY(0); opacity:.45; } 30%{ transform:translateY(-5px); opacity:1; } }

.imsg-input { display:flex; align-items:center; gap:9px; padding:9px 12px 16px; border-top:1px solid rgba(0,0,0,.07); background:#fff; }
.imsg-plus { flex:0 0 auto; width:32px; height:32px; border-radius:50%; background:#e9e9eb; color:#8e8e93; display:grid; place-items:center; }
.imsg-plus svg { width:18px; height:18px; }
.imsg-field { flex:1; border:1px solid #d6d6da; border-radius:18px; padding:8px 14px; color:#a0a0a6; font-size:.95rem; }
.imsg-send { flex:0 0 auto; width:32px; height:32px; border-radius:50%; background:var(--lav-700); color:#fff; display:grid; place-items:center; }
.imsg-send svg { width:18px; height:18px; }

@media (prefers-reduced-motion:reduce){
  .imsg, .rosie-msg.show, .rosie-overlay.open { animation:none; }
  .imsg { transform:none; opacity:1; }
  .rosie-typing span { animation:none; }
}


.brand { position: relative; }
.hero-mark { cursor: default; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.egg-hover .hero-mark img { filter: drop-shadow(0 0 10px rgba(184,145,201,.95)) brightness(1.12); transition: filter 2s linear; }
.rosie-overlay { background: rgba(10,12,16,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Bold, simple compliance panel (homepage) */
.simple-status { padding: 1.5rem; border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--ink-100); }
body.dark .simple-status { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
.simple-status h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; color: var(--slate); }
body.dark .simple-status h3 { color: #fff; }
.simple-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--r-lg);
  border-left: 3px solid; background: var(--bg); font-size: 1.15rem; font-weight: 600; color: var(--slate); }
.simple-row + .simple-row { margin-top: .75rem; }
body.dark .simple-row { background: rgba(255,255,255,.04); color: #fff; }
.simple-row.amber { border-color: #f59e0b; } .simple-row.rose { border-color: #ef4444; } .simple-row.sage { border-color: var(--sage-500); }
.simple-badge { flex: 0 0 auto; padding: .4rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: transparent; border: 1.5px solid currentColor; }
.simple-row.amber .simple-badge { color: #d97706; } .simple-row.rose .simple-badge { color: #dc2626; } .simple-row.sage .simple-badge { color: var(--sage-700); }
body.dark .simple-row.amber .simple-badge { color: #fbbf24; } body.dark .simple-row.rose .simple-badge { color: #f87171; } body.dark .simple-row.sage .simple-badge { color: var(--sage-300); }
@media (max-width: 480px) { .simple-row { font-size: 1.02rem; padding: .95rem 1rem; } }

/* Circle of Care section (homepage): Careific is the whole circle */
.coc2 { max-width: 30rem; margin: 0 auto; }
.coc2 svg { width: 100%; height: auto; display: block; }
.coc2-ring { fill: rgba(111,186,138,.06); stroke: var(--sage-500); stroke-width: 2.5; }
.coc2-label { font: 700 15px var(--font); letter-spacing: .18em; text-transform: uppercase; fill: var(--sage-700); }
body.dark .coc2-label { fill: var(--sage-300); }
.coc2-spoke { stroke: var(--ink-200); stroke-width: 1.25; }
body.dark .coc2-spoke { stroke: rgba(255,255,255,.14); }
.coc2-center { fill: var(--sage-700); }
.coc2-ct { font: 700 17px var(--font); fill: #fff; }
.coc2-node circle { fill: var(--paper); stroke: var(--sage-500); stroke-width: 1.75; }
.coc2-node text { font: 600 12.5px var(--font); fill: var(--slate); }
body.dark .coc2-node circle { fill: #1b2129; }
body.dark .coc2-node text { fill: #fff; }
/* Greyed-out secondary triptych */
.word-tiles--muted .word-tile { opacity: .62; filter: saturate(.35); transition: opacity .25s, filter .25s; }
.word-tiles--muted .word-tile:hover, .word-tiles--muted .word-tile:focus-within { opacity: 1; filter: none; }

/* AI-native tree: Rosie at the top, everything flowing up into her */
.tree { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; }
.tree-top { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1.25rem 2rem; border-radius: var(--r-lg);
  background: var(--lav-tint); border: 1.5px solid var(--lav-500); color: var(--slate); text-align: center; position: relative; z-index: 1; }
body.dark .tree-top { background: rgba(184,145,201,.12); color: #fff; }
.tree-top b { font-size: 1.25rem; }
.tree-top small { font-size: .9rem; color: var(--ink-500); }
body.dark .tree-top small { color: rgba(255,255,255,.65); }
.tree-ava { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: rgba(184,145,201,.2); margin-bottom: .35rem; }
.tree-ava svg { width: 1.9rem; height: 1.9rem; fill: var(--lav-500); }
/* trunk + bus */
.tree-bus { width: 100%; max-width: 62rem; height: 3.25rem; position: relative; }
.tree-bus::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 1.5rem; background: var(--lav-500); transform: translateX(-50%); }
.tree-bus::after { content: ""; position: absolute; left: 10%; right: 10%; top: 1.5rem; height: 2px; background: var(--lav-500); }
.tree-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; width: 100%; max-width: 62rem; }
.tree-box { position: relative; padding: 1.15rem 1rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--ink-100); text-align: center; }
.tree-box::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 1.75rem; background: var(--lav-500); transform: translateX(-50%); }
.tree-box::after { content: ""; position: absolute; left: 50%; bottom: calc(100% + 1.1rem); width: .5rem; height: .5rem; border-top: 2px solid var(--lav-500); border-left: 2px solid var(--lav-500); transform: translateX(-50%) rotate(45deg); }
body.dark .tree-box { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
.tree-box b { display: block; font-size: 1.02rem; color: var(--slate); }
.tree-box span { display: block; margin-top: .3rem; font-size: .88rem; color: var(--ink-500); }
body.dark .tree-box b { color: #fff; } body.dark .tree-box span { color: rgba(255,255,255,.62); }
.tree-cap { margin-top: 1.75rem; text-align: center; color: var(--ink-500); max-width: 40rem; }
body.dark .tree-cap { color: rgba(255,255,255,.62); }
@media (max-width: 980px) { .tree-row { grid-template-columns: repeat(2, 1fr); } .tree-bus::after { display: none; } .tree-box::after { display: none; } }
@media (max-width: 520px) { .tree-row { grid-template-columns: 1fr; } .tree-box::before { height: 1rem; } .tree-bus { height: 2rem; } }

/* =====================================================================
   THE PILE - "Compliance fails quietly": text hangs back while real-looking paperwork stacks up
   ===================================================================== */
.pile-section { min-height: 175vh; }
.pile-section > .wrap { min-height: 175vh; }
.pile-sticky { position: sticky; top: 8vh; height: 84vh; display: flex; align-items: center; }
.pile-split { width: 100%; align-items: center; grid-template-columns: minmax(0, .72fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 3vw, 3rem); }
.pile-copy { will-change: transform; }
.pile-stage { position: relative; height: 74vh; min-height: 30rem; width: calc(100% + 5vw); }
.doc {
  position: absolute; left: var(--l); top: var(--t); z-index: var(--z); width: 17rem; padding: .85rem .95rem 1rem; border-radius: .2rem;
  background: #fcfcf9; color: #1f2329; border: 1px solid #dedcd2; box-shadow: 0 20px 44px -16px rgba(0,0,0,.6), 0 2px 5px rgba(0,0,0,.1);
  font-family: Georgia, "Times New Roman", serif; line-height: 1.25;
  transform: translate3d(0, -60vh, 0) rotate(calc(var(--r) * -1)) scale(.97); opacity: 0;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}
.doc.is-in { transform: translate3d(0, 0, 0) rotate(var(--r)) scale(1); opacity: 1; }
.doc h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: .35rem 0 .45rem; }
.doc small { display: block; font-size: .62rem; color: #6b7280; margin: -.25rem 0 .4rem; font-family: var(--font); }
.doc header { display: grid; gap: 1px; border-bottom: 1px solid #1f2329; padding-bottom: .2rem; }
.doc .agency { font-size: .5rem; text-transform: uppercase; letter-spacing: .03em; }
.doc .dept { font-size: .46rem; text-transform: uppercase; color: #4b5563; }
.doc footer { margin-top: .5rem; font-size: .5rem; color: #4b5563; font-family: var(--font); }
.frow { display: grid; grid-template-columns: 5.2rem 1fr; gap: .4rem; align-items: baseline; padding: .18rem 0; border-bottom: 1px solid #cfcdc3; }
.frow label { font-size: .5rem; text-transform: uppercase; font-family: var(--font); color: #374151; }
.fv { font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; font-size: .74rem; color: #1d3a8a; }
.fcheck { display: flex; flex-wrap: wrap; gap: .4rem .7rem; margin: .45rem 0 .1rem; font-size: .55rem; font-family: var(--font); }
.fcheck i { display: inline-block; width: .6rem; height: .6rem; border: 1px solid #1f2329; margin-right: .25rem; vertical-align: -1px; position: relative; }
.fcheck i.on::after { content: "✓"; position: absolute; left: -.05rem; top: -.35rem; font-size: .7rem; color: #1d3a8a; }
.fsig { display: flex; gap: 1rem; margin-top: .9rem; }
.fsig span { flex: 1; border-top: 1px solid #1f2329; font-size: .48rem; text-transform: uppercase; padding-top: .15rem; font-family: var(--font); color: #374151; }
.doc table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: .58rem; }
.doc th, .doc td { border: 1px solid #cfcdc3; padding: .18rem .28rem; text-align: left; vertical-align: top; }
.doc th { background: #efeee6; font-weight: 700; text-transform: uppercase; font-size: .5rem; letter-spacing: .02em; }
.doc td { font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; color: #1d3a8a; }
.doc-mar { width: 21rem; } .doc-mar td, .doc-mar th { padding: .12rem .18rem; font-size: .5rem; text-align: center; } .doc-mar td.mn { text-align: left; font-family: var(--font); color: #1f2329; white-space: nowrap; } .doc-mar td.mn i { color: #6b7280; font-style: normal; }
.doc-cal { width: 18rem; }
.calh, .calg { display: grid; grid-template-columns: repeat(7, 1fr); font-family: var(--font); }
.calh span { font-size: .5rem; text-align: center; font-weight: 700; color: #4b5563; padding: .1rem 0; border-bottom: 1px solid #1f2329; }
.calg .cd { min-height: 1.9rem; border: 1px solid #cfcdc3; font-size: .5rem; padding: .1rem .15rem; }
.calg .cd em { display: block; font-style: normal; font-size: .44rem; color: #1d3a8a; font-family: "Bradley Hand", "Segoe Print", cursive; line-height: 1.1; }
.doc-stamp { position: absolute; right: .7rem; bottom: 1.3rem; padding: .18rem .45rem; border: 2px solid #c1272d; color: #c1272d; font-size: .68rem; font-weight: 800; letter-spacing: .1em; border-radius: .2rem; transform: rotate(-9deg); opacity: .85; font-family: var(--font); }
@media (max-width: 820px) {
  .pile-section, .pile-section > .wrap { min-height: 190vh; }
  .pile-sticky { top: 5vh; height: 90vh; align-items: flex-start; padding-top: .5rem; }
  .pile-split { grid-template-columns: minmax(0, 1fr); }
  .pile-stage { height: 52vh; min-height: 20rem; width: calc(100% + 2rem); margin-left: -1rem; }
  .doc { width: 12.5rem; padding: .6rem .7rem .7rem; } .doc-mar { width: 14rem; } .doc-cal { width: 13rem; }
}
@media (prefers-reduced-motion: reduce) { .doc { transition: none; } }
html:not(.js) .doc { transform: rotate(var(--r)); opacity: 1; }
.pile-section { overflow-x: clip; }  /* clip (not hidden) keeps position: sticky working */
/* Hover a document: it lifts to the top and shows its own compliance clock */
.doc:not(.is-in) { pointer-events: none; }
.doc { cursor: pointer; outline: none; }
.doc.is-in:hover, .doc.is-in:focus-visible, .doc.is-in.is-open { z-index: 300; transform: translate3d(0, -6px, 0) rotate(var(--r)) scale(1.04); box-shadow: 0 30px 60px -18px rgba(0,0,0,.75), 0 0 0 3px rgba(111,186,138,.55); transition-duration: .2s; }
.doc-tip { position: absolute; left: 50%; bottom: calc(100% + .6rem); width: 15rem; transform: translateX(-50%) rotate(calc(var(--r) * -1)) translateY(6px); transform-origin: bottom center;
  padding: .7rem .85rem; border-radius: .6rem; background: #14181f; color: #fff; font-family: var(--font); font-size: .82rem; line-height: 1.35; text-align: left;
  border-left: 4px solid; box-shadow: 0 16px 34px -12px rgba(0,0,0,.8); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.doc-tip b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.62); font-weight: 700; margin-bottom: .2rem; }
.doc-tip span { display: block; font-weight: 700; font-size: .95rem; }
.doc-tip.rose { border-color: #ef4444; } .doc-tip.rose span { color: #f87171; }
.doc-tip.amber { border-color: #f59e0b; } .doc-tip.amber span { color: #fbbf24; }
.doc-tip.sage { border-color: var(--sage-500); } .doc-tip.sage span { color: var(--sage-300); }
.doc.is-in:hover .doc-tip, .doc.is-in:focus-visible .doc-tip, .doc.is-in.is-open .doc-tip { opacity: 1; transform: translateX(-50%) rotate(calc(var(--r) * -1)) translateY(0); }
.pile-hint { margin-top: 1.25rem; font-size: .92rem; color: var(--ink-400); }
body.dark .pile-hint { color: rgba(255,255,255,.5); }
@media (hover: none) { .pile-hint::before { content: "Tap"; } .pile-hint { font-size: 0; } .pile-hint::before, .pile-hint::after { font-size: .92rem; } .pile-hint::after { content: " a document. Every one runs on its own clock, and none of them line up."; } }
/* Tables stay inside their paper */
.doc table { table-layout: fixed; }
.doc td, .doc th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-mar { width: 23rem; } .doc-mar table { font-size: .46rem; } .doc-mar td, .doc-mar th { padding: .1rem .08rem; font-size: .46rem; } .doc-mar th:first-child, .doc-mar td.mn { width: 5.6rem; font-size: .5rem; }
.doc-log table td, .doc-log table th { font-size: .52rem; padding: .16rem .2rem; }
/* Three pillars: larger and bolder */
.word-tiles--bold .word-tile { padding: 2.25rem 2rem 2.4rem; }
.word-tiles--bold .ico { width: 3.5rem; height: 3.5rem; border-radius: 1rem; }
.word-tiles--bold .ico svg { width: 1.7rem; height: 1.7rem; }
.word-tiles--bold h3 { font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; margin-top: 1.25rem; }
.word-tiles--bold p { font-size: 1.08rem; line-height: 1.6; margin-top: .75rem; }
@media (max-width: 640px) { .word-tiles--bold h3 { font-size: 1.35rem; } .word-tiles--bold .word-tile { padding: 1.75rem 1.5rem 1.9rem; } }
.doc-log table tr > *:first-child { width: 26%; } .doc-log table td:first-child { white-space: normal; }
/* Close the gap between "Care is human work" and the pile */
.pile-section { padding-top: 0; }
.pile-sticky { top: 8vh; height: 74vh; align-items: flex-start; padding-top: 4vh; }
.pile-split { align-items: start; }
.pile-copy { margin-top: 9vh; }
.pile-sticky { padding-top: 2vh; }
.pile-section { margin-top: -2.5rem; }
@media (max-width: 820px) { .pile-copy { margin-top: 0; } }
/* Simple divider: a hairline that fades out at both ends */
.divider { display: flex; justify-content: center; padding: 1.5rem 0 0; }
.divider span { display: block; width: min(22rem, 60%); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--sage-500) 30%, var(--lav-500) 70%, transparent); opacity: .8; }
/* Pillars after the human-work section: sit close to it, then breathe before the pile */
.section + .section--tight .word-tiles--bold { margin-top: 0; }
/* Circle of Care, redesigned */
.coc3 { max-width: 32rem; margin: 0 auto; }
.coc3 svg { width: 100%; height: auto; display: block; overflow: visible; }
.coc3-fill { fill: rgba(111,186,138,.05); }
body.dark .coc3-fill { fill: rgba(255,255,255,.025); }
.coc3-ring { fill: none; stroke: url(#coc3Ring); stroke-width: 3; }
.coc3-ring2 { fill: none; stroke: var(--sage-500); stroke-width: 1.25; stroke-dasharray: 3 7; opacity: .55; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: coc3spin 90s linear infinite; }
.coc3-label { font: 700 14px var(--font); letter-spacing: .3em; text-transform: uppercase; fill: var(--sage-700); }
body.dark .coc3-label { fill: var(--sage-300); }
.coc3-spoke { fill: none; stroke: var(--sage-500); stroke-width: 1.4; opacity: .45; }
.coc3-dot { fill: var(--sage-500); }
.coc3-center { fill: var(--sage-700); }
.coc3-center-ring { fill: none; stroke: var(--sage-300); stroke-width: 1.5; opacity: .6; }
.coc3-ct { font: 700 15px var(--font); fill: #fff; }
.coc3-node { animation: coc3float 5.5s ease-in-out infinite; animation-delay: var(--d); }
.coc3-pill { fill: var(--paper); stroke: var(--ink-100); stroke-width: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.18)); }
body.dark .coc3-pill { fill: #1b2129; stroke: rgba(255,255,255,.14); filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)); }
.coc3-ic { fill: var(--sage-700); }
.coc3-node text { font: 600 13px var(--font); fill: var(--slate); }
body.dark .coc3-node text { fill: #fff; }
@keyframes coc3float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes coc3spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .coc3-node, .coc3-ring2 { animation: none; } }
/* Three pillars: wider than the text column, titles on one line */
.word-tiles--bold { width: min(84rem, 100vw - 3rem); margin-left: 50%; transform: translateX(-50%); gap: 1.5rem; }
.word-tiles--bold h3 { white-space: nowrap; font-size: clamp(1.25rem, 1.55vw, 1.55rem); }
@media (max-width: 980px) { .word-tiles--bold { width: 100%; margin-left: 0; transform: none; } .word-tiles--bold h3 { white-space: normal; } }

/* =====================================================================
   AI-NATIVE FLOW: every source -> bracket -> Rosie -> one living record
   ===================================================================== */
.flow { display: grid; grid-template-columns: minmax(0, 1.05fr) 1.75rem minmax(2.5rem, 7rem) 5.5rem minmax(2.5rem, 7rem) minmax(0, 29rem); align-items: center; margin-top: 3rem; }
.fl-src { list-style: none; display: grid; gap: .9rem; }
.fl-src li { display: flex; align-items: center; gap: .9rem; font-size: 1.05rem; font-weight: 600; color: var(--slate); min-height: 3rem; }
body.dark .fl-src li { color: #fff; }
.fl-ic { width: 2.75rem; height: 2.75rem; flex: 0 0 auto; border-radius: .8rem; display: grid; place-items: center; color: var(--sage-700); background: var(--sage-tint); border: 1px solid rgba(111,186,138,.3); }
body.dark .fl-ic { color: var(--sage-300); background: rgba(111,186,138,.12); }
.fl-ic svg { width: 1.2rem; height: 1.2rem; }
.fl-t { white-space: nowrap; }
.fl-line { flex: 1; height: 1.5px; min-width: 1.25rem; background: var(--ink-200); position: relative; transform-origin: left; }
body.dark .fl-line { background: rgba(255,255,255,.3); }
.fl-line::before { content: ""; position: absolute; left: -2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--sage-500); }
/* the bracket: a rounded right-hand bracket with a tick at its middle */
.fl-bracket { align-self: stretch; position: relative; margin: 1.45rem 0; }
.fl-bracket::before { content: ""; position: absolute; left: 0; right: .9rem; top: 0; bottom: 0; border: 2px solid var(--ink-200); border-left: 0; border-radius: 0 1.1rem 1.1rem 0; }
body.dark .fl-bracket::before { border-color: rgba(255,255,255,.4); }
.fl-bracket::after { content: ""; position: absolute; right: 0; top: 50%; width: .95rem; height: 2px; margin-top: -1px; background: var(--ink-200); }
body.dark .fl-bracket::after { background: rgba(255,255,255,.4); }
.fl-arrow { height: 2px; background: var(--ink-200); position: relative; margin: 0 .35rem; transform-origin: left; }
body.dark .fl-arrow { background: rgba(255,255,255,.38); }
.fl-arrow::after { content: ""; position: absolute; right: -1px; top: 50%; width: .6rem; height: .6rem; border-top: 2px solid; border-right: 2px solid; border-color: inherit; transform: translateY(-50%) rotate(45deg); color: var(--ink-200); border-color: var(--ink-200); }
body.dark .fl-arrow::after { border-color: rgba(255,255,255,.38); }
.fl-rosie { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.fl-rosie-dot { width: 5rem; height: 5rem; border-radius: 50%; display: grid; place-items: center; background: #2a2233; border: 1.5px solid rgba(184,145,201,.6); box-shadow: 0 0 40px 4px rgba(184,145,201,.18); }
body:not(.dark) .fl-rosie-dot { background: #f4eef8; border-color: #d9c6e6; }
.fl-rosie-dot svg { width: 2.5rem; height: 2.5rem; fill: #E6D3EE; }
body:not(.dark) .fl-rosie-dot svg { fill: #9b77b3; }
.fl-rosie small { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lav-700); }
body.dark .fl-rosie small { color: #D5B8E0; }
/* the living record with a face rail */
.fl-card { border-radius: 1.25rem; overflow: hidden; background: var(--paper); border: 1px solid var(--ink-100); box-shadow: var(--shadow-lg); }
body.dark .fl-card { background: #161b22; border-color: rgba(255,255,255,.1); box-shadow: 0 30px 60px -24px rgba(0,0,0,.75); }
.fl-rail { display: flex; justify-content: space-between; align-items: flex-end; gap: .25rem; padding: 1rem 1.1rem .85rem; border-bottom: 1px solid var(--ink-100); background: var(--bg); }
body.dark .fl-rail { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.08); }
.fr { display: flex; flex-direction: column; align-items: center; gap: .35rem; opacity: .5; }
.fr small { font-size: .7rem; color: var(--ink-500); }
body.dark .fr small { color: rgba(255,255,255,.6); }
.fr-face { position: relative; width: 2.75rem; height: 2.75rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; }
.fr-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fr.is-on { opacity: 1; }
.fr.is-on .fr-face { width: 3.6rem; height: 3.6rem; font-size: 1.05rem; font-weight: 800; background: linear-gradient(135deg, #8fc7a3, #3f8a5d); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--sage-500); }
body.dark .fr.is-on .fr-face { box-shadow: 0 0 0 3px #161b22, 0 0 0 5px var(--sage-500); }
.fr.is-on small { font-weight: 700; color: var(--slate); }
body.dark .fr.is-on small { color: #fff; }
.fl-who { padding: 1.1rem 1.4rem .9rem; }
.fl-who b { display: block; font-size: 1.35rem; color: var(--slate); }
body.dark .fl-who b { color: #fff; }
.fl-who span { display: block; margin-top: .2rem; font-size: .9rem; color: var(--ink-500); }
body.dark .fl-who span { color: rgba(255,255,255,.58); }
.fc-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1.4rem; border-top: 1px solid var(--ink-100); }
body.dark .fc-row { border-color: rgba(255,255,255,.08); }
.fc-row span { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); }
body.dark .fc-row span { color: rgba(255,255,255,.5); }
.fc-row b { font-size: .95rem; text-align: right; color: var(--slate); }
body.dark .fc-row b { color: #fff; }
/* the flow draws itself in */
html.js .flow .fl-line { transform: scaleX(0); transition: transform .55s var(--ease); transition-delay: calc(var(--i) * .12s); }
html.js .flow .fl-bracket { opacity: 0; transition: opacity .4s ease .75s; }
html.js .flow .fl-arrow { transform: scaleX(0); transition: transform .45s var(--ease); }
html.js .flow .fl-arrow.a1 { transition-delay: 1s; } html.js .flow .fl-arrow.a2 { transition-delay: 1.6s; }
html.js .flow .fl-rosie { opacity: 0; transform: scale(.8); transition: opacity .4s ease 1.3s, transform .5s var(--ease) 1.3s; }
html.js .flow .fl-card { opacity: 0; transform: translateX(16px); transition: opacity .5s ease 1.9s, transform .6s var(--ease) 1.9s; }
html.js .flow.in .fl-line, html.js .flow.in .fl-arrow { transform: none; }
html.js .flow.in .fl-bracket, html.js .flow.in .fl-rosie, html.js .flow.in .fl-card { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .flow * { transition: none !important; } }
/* tablet and phone: stack top to bottom */
@media (max-width: 1060px) {
  .flow { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; }
  .fl-src { width: min(100%, 26rem); }
  .fl-line, .fl-bracket { display: none; }
  .fl-arrow { width: 2px; height: 2.5rem; margin: .6rem 0; transform-origin: top; }
  .fl-arrow::after { right: 50%; top: auto; bottom: -1px; transform: translateX(50%) rotate(135deg); }
  html.js .flow .fl-arrow { transform: scaleY(0); }
  .fl-card { width: min(100%, 29rem); }
}
/* list + bracket travel together so the bracket spans first line to last */
.flow { grid-template-columns: auto minmax(2.5rem, 7rem) 5.5rem minmax(2.5rem, 7rem) minmax(0, 29rem); justify-content: center; }
.fl-in { display: flex; align-items: stretch; }
.fl-src li { padding-right: 0; }
.fl-line { min-width: 2.5rem; }
.fl-bracket { width: 1.9rem; margin: 1.5rem 0; }
.fl-bracket::before { right: 1rem; border-radius: 0 1rem 1rem 0; }
@media (max-width: 1060px) { .fl-in { display: block; width: min(100%, 26rem); } .flow { justify-content: stretch; } }
@media (max-width: 1060px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .fl-in, .fl-src, .fl-card { width: 100%; max-width: 29rem; margin-inline: auto; }
  .fl-t { white-space: normal; }
  .fl-rail { gap: 0; padding: .85rem .6rem .7rem; }
  .fr-face { width: 2.2rem; height: 2.2rem; font-size: .7rem; }
  .fr.is-on .fr-face { width: 3rem; height: 3rem; }
  .fr small { font-size: .62rem; }
  .fc-row { padding: .65rem 1rem; } .fl-who { padding: 1rem 1rem .8rem; }
}

/* Hero: mark 50% larger; on load the mark fades in, then the headline and copy slide up */
.hero-mark { width: 6.75rem; height: 6.75rem; margin-bottom: 2rem; }
.hero-mark img { width: 6.75rem; height: 6.75rem; }
.hero-center > .reveal { transition: none; }                      /* the hero runs its own entrance */
.hero-mark { animation: heroMarkIn 1s ease-out both; opacity: 0; }
.hero-center > :not(.hero-mark) { animation: heroSlideUp .9s cubic-bezier(.22, 1, .36, 1) both; }
.hero-center > h1:not(.hero-mark) { animation-delay: .75s; }
.hero-center > .lead:not(.hero-mark) { animation-delay: .95s; }
.hero-center > .hero-actions:not(.hero-mark) { animation-delay: 1.15s; }
.hero-center > .hero-note:not(.hero-mark) { animation-delay: 1.3s; }
@keyframes heroMarkIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes heroSlideUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-mark, .hero-center > :not(.hero-mark) { animation: none; opacity: 1; } }
/* convergence point: the Careific mark on lavender */
.fl-rosie-dot img { width: 2.75rem; height: 2.75rem; display: block; }
.fr-face { background: #3a3f48; }   /* neutral base behind photos; initials show only if a photo fails */

/* Phone pile: pinned copy clears the header, and the section ends soon after the last sheet lands */
@media (max-width: 820px) {
  .pile-section, .pile-section > .wrap { min-height: 150vh; }
  .pile-sticky { top: 5.5rem; height: calc(100vh - 6rem); padding-top: .25rem; }
  .pile-stage { height: 50vh; min-height: 19rem; }
  .pile-copy { margin-top: 0; }
}

/* AI flow: each source reaches Careific on its own line (desktop, JS). The bracket remains only as the no-JS fallback. */
@media (min-width: 1061px) {
  html.js .flow { position: relative; grid-template-columns: auto 11rem 5.5rem minmax(2.5rem, 7rem) minmax(0, 29rem); }
  html.js .fl-in { display: block; }
  html.js .fl-line, html.js .fl-bracket { display: none; }
  html.js .fl-arrow.a1 { visibility: hidden; }
  html.js .fl-src li { min-height: 3.6rem; }
}
.fl-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.fl-svg path:not(.fl-comet):not(.fl-comet-glow):not(.fl-bolt):not(.fl-bolt-glow):not(.fl-outpath):not(.fl-arc):not(.fl-arc-glow) { fill: none; stroke: var(--ink-200); stroke-width: 1.6; stroke-linecap: round; }
.fl-svg circle { fill: var(--sage-500); }
body.dark .fl-svg path:not(.fl-comet):not(.fl-comet-glow):not(.fl-bolt):not(.fl-bolt-glow):not(.fl-outpath):not(.fl-arc):not(.fl-arc-glow) { stroke: rgba(255,255,255,.34); }
html.js .flow .fl-svg path:not(.fl-comet):not(.fl-comet-glow):not(.fl-bolt):not(.fl-bolt-glow):not(.fl-outpath):not(.fl-arc):not(.fl-arc-glow) { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset .8s var(--ease); transition-delay: calc(var(--i) * .13s); }
html.js .flow .fl-svg circle { opacity: 0; transition: opacity .3s ease; transition-delay: calc(var(--i) * .13s); }
html.js .flow.in .fl-svg path:not(.fl-comet):not(.fl-comet-glow):not(.fl-bolt):not(.fl-bolt-glow):not(.fl-outpath):not(.fl-arc):not(.fl-arc-glow) { stroke-dashoffset: 0; }
html.js .flow.in .fl-svg circle { opacity: 1; }
html.js .flow .fl-rosie { transition-delay: .9s, .9s; }
html.js .flow .fl-arrow.a2 { transition-delay: 1.3s; }
html.js .flow .fl-card { transition-delay: 1.6s, 1.6s; }
@media (prefers-reduced-motion: reduce) { html.js .flow .fl-svg path { stroke-dasharray: none; } html.js .flow .fl-svg circle { opacity: 1; } }

/* =====================================================================
   CIRCLE OF CARE - scroll story (pinned; scroll advances the steps)
   ===================================================================== */
.cs { position: relative; }
html.js .cs { min-height: calc(9 * 42vh + 100vh); }
html.js .cs-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.cs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; width: 100%; }
.cs-copy .h-xl { margin-bottom: 1.25rem; }
.cs-caps { position: relative; min-height: 9.5rem; }
.cs-cap h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--slate); }
body.dark .cs-cap h3 { color: #fff; }
.cs-cap p { margin-top: .6rem; font-size: 1.08rem; line-height: 1.6; color: var(--ink-500); max-width: 34rem; }
body.dark .cs-cap p { color: rgba(255,255,255,.66); }
html.js .cs-cap { position: absolute; inset: 0 auto auto 0; width: 100%; opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s var(--ease); pointer-events: none; }
html.js .cs-cap.is-on { opacity: 1; transform: none; }
html:not(.js) .cs-cap + .cs-cap { margin-top: 1.5rem; }
.cs-dots { display: flex; gap: .45rem; margin-top: 1.5rem; }
.cs-dots span { width: .5rem; height: .5rem; border-radius: 50%; background: var(--ink-200); transition: background .3s, transform .3s; }
body.dark .cs-dots span { background: rgba(255,255,255,.2); }
.cs-dots span.is-on { background: var(--sage-500); transform: scale(1.3); }
html:not(.js) .cs-dots { display: none; }
.cs-fig { margin: 0; max-width: 30rem; width: 100%; justify-self: center; }
.cs-svg { width: 100%; height: auto; display: block; overflow: visible; }
/* graphic pieces */
.cs-ring { fill: rgba(111,186,138,.05); stroke: var(--sage-500); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transition: opacity .6s ease, transform .8s var(--ease), filter .6s ease; }
.cs-label { font: 700 15px var(--font); letter-spacing: .18em; text-transform: uppercase; fill: var(--sage-700); transition: opacity .5s ease; }
body.dark .cs-label { fill: var(--sage-300); }
.cs-spoke { stroke: var(--ink-200); stroke-width: 1.25; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset .6s var(--ease), stroke .4s ease, stroke-width .4s ease; }
body.dark .cs-spoke { stroke: rgba(255,255,255,.16); }
.cs-center { fill: var(--sage-700); transition: fill .4s ease; }
.cs-ct { font: 700 17px var(--font); fill: #fff; }
.cs-pulse { fill: none; stroke: #f59e0b; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cs-node { transform-box: fill-box; transform-origin: center; transition: opacity .5s ease, transform .6s var(--ease); }
.cs-node circle { fill: var(--paper); stroke: var(--sage-500); stroke-width: 1.75; transition: fill .4s ease, stroke .4s ease; }
.cs-node text { font: 600 12.5px var(--font); fill: var(--slate); transition: fill .4s ease; }
body.dark .cs-node circle { fill: #1b2129; }
body.dark .cs-node text { fill: #fff; }
/* states driven by data-step on the section */
html.js .cs-node { opacity: 0; transform: scale(.6); }
html.js .cs-node.is-on { opacity: 1; transform: none; }
html.js .cs-spoke.is-on { stroke-dashoffset: 0; }
html.js .cs-ring, html.js .cs-label { opacity: 0; }
html.js .cs-ring { transform: scale(1.06); }
html.js .cs[data-ring="1"] .cs-ring, html.js .cs[data-ring="1"] .cs-label { opacity: 1; }
html.js .cs[data-ring="1"] .cs-ring { transform: none; }
html:not(.js) .cs-spoke { stroke-dashoffset: 0; }
/* the ripple */
.cs[data-alert="1"] .cs-center { fill: #d97706; }
.cs[data-alert="1"] .cs-pulse { animation: csPulse 1.6s ease-out infinite; }
@keyframes csPulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
.cs-node.is-lit circle { fill: var(--sage-700); stroke: var(--sage-500); }
.cs-node.is-lit text { fill: #fff; }
.cs-spoke.is-lit { stroke: var(--sage-500); stroke-width: 2.25; }
.cs[data-done="1"] .cs-ring { filter: drop-shadow(0 0 18px rgba(111,186,138,.55)); }
.cs[data-done="1"] .cs-center { fill: var(--sage-700); }
@media (max-width: 900px) {
  html.js .cs { min-height: calc(9 * 34vh + 100vh); }
  html.js .cs-sticky { height: 100vh; align-items: flex-start; padding-top: 5.5rem; }
  .cs-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .cs-fig { max-width: min(20rem, 60vw); order: -1; }
  .cs-copy .h-xl { font-size: 1.6rem; margin-bottom: .5rem; }
  .cs-caps { min-height: 8rem; }
  .cs-cap h3 { font-size: 1.2rem; } .cs-cap p { font-size: .98rem; }
}
@media (prefers-reduced-motion: reduce) { .cs-node, .cs-spoke, .cs-ring, .cs-cap { transition: none !important; } .cs-pulse { animation: none; } }
/* AI flow: larger, cleaner record card */
@media (min-width: 1061px) { html.js .flow { grid-template-columns: auto 11rem 5.5rem minmax(2.5rem, 7rem) minmax(0, 33rem); } }
.fl-card { border-radius: 1.5rem; }
.fl-rail { padding: 1.35rem 1.4rem 1.15rem; gap: .5rem; }
.fr-face { width: 3.1rem; height: 3.1rem; font-size: .88rem; }
.fr.is-on .fr-face { width: 4.1rem; height: 4.1rem; font-size: 1.15rem; }
.fr small { font-size: .78rem; }
.fl-who { padding: 1.6rem 1.8rem 1.1rem; }
.fl-who b { font-size: 1.75rem; letter-spacing: -.01em; }
.fc-row { padding: 1.05rem 1.8rem; }
.fc-row span { font-size: .82rem; }
.fc-row b { font-size: 1.08rem; }
@media (max-width: 1060px) { .fl-card { max-width: 31rem; } .fl-who { padding: 1.2rem 1.2rem .8rem; } .fl-who b { font-size: 1.45rem; } .fc-row { padding: .85rem 1.2rem; } }
.fl-rail { padding: 1.25rem 1rem 1.05rem; gap: .3rem; }
.fr-face { width: 2.7rem; height: 2.7rem; }
.fr.is-on .fr-face { width: 3.7rem; height: 3.7rem; }
.fr small { font-size: .74rem; }
/* Cleaner sheets */
.doc { padding: .8rem .9rem .85rem; width: 15.5rem; }
.doc header { border-bottom: 1px solid #1f2329; padding-bottom: .15rem; }
.doc .agency { font-size: .48rem; letter-spacing: .06em; }
.doc h4 { font-size: .8rem; margin: .4rem 0 .5rem; line-height: 1.2; }
.doc footer { margin-top: .45rem; }
.doc-mar { width: 19rem; } .doc-cal { width: 15rem; }
.calg .cd { min-height: 1.15rem; font-size: .48rem; }
.doc-form .frow { padding: .22rem 0; }
/* One consistent clock for every sheet: color + bar say it before the words do */
.doc-tip { width: 15.5rem; padding: .75rem .85rem .7rem; display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center; border-left: 0; }
.tip-clock { grid-row: 1 / span 2; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid currentColor; position: relative; }
.tip-clock::before { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: .45rem; margin-left: -1px; margin-top: -.45rem; background: currentColor; transform-origin: bottom center; }
.tip-clock::after { content: ""; position: absolute; left: 50%; top: 50%; width: .35rem; height: 2px; margin-top: -1px; background: currentColor; }
.doc-tip strong { font-size: 1rem; font-weight: 800; line-height: 1.15; }
.doc-tip .tip-bar { display: block; height: .4rem; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: .3rem; }
.doc-tip .tip-bar b { display: block; height: 100%; border-radius: 999px; background: currentColor; }
.doc-tip small { grid-column: 1 / -1; margin-top: .45rem; font-size: .76rem; color: rgba(255,255,255,.62); font-weight: 600; letter-spacing: .01em; }
.doc-tip em { grid-column: 1 / -1; margin-top: .35rem; font-style: normal; font-size: .7rem; font-weight: 700; color: #D5B8E0; letter-spacing: .04em; text-transform: uppercase; }
.doc-tip em::before { content: "✦ "; }
.doc-tip.rose, .doc-tip.rose strong, .doc-tip.rose .tip-clock, .doc-tip.rose .tip-bar b { color: #f87171; }
.doc-tip.amber, .doc-tip.amber strong, .doc-tip.amber .tip-clock, .doc-tip.amber .tip-bar b { color: #fbbf24; }
.doc-tip.sage, .doc-tip.sage strong, .doc-tip.sage .tip-clock, .doc-tip.sage .tip-bar b { color: #A8D5BA; }
.doc-tip.rose { box-shadow: 0 16px 34px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(248,113,113,.35); }
.doc-tip.amber { box-shadow: 0 16px 34px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(251,191,36,.35); }
.doc-tip.sage { box-shadow: 0 16px 34px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(168,213,186,.35); }
.doc.is-in:hover, .doc.is-in:focus-visible, .doc.is-in.is-open { box-shadow: 0 30px 60px -18px rgba(0,0,0,.75), 0 0 0 3px var(--ring, rgba(111,186,138,.55)); }
.doc[data-tone="rose"] { --ring: rgba(248,113,113,.7); } .doc[data-tone="amber"] { --ring: rgba(251,191,36,.7); } .doc[data-tone="sage"] { --ring: rgba(111,186,138,.7); }
@media (prefers-reduced-motion: no-preference) { .doc-tip.rose .tip-clock::before { animation: tipTick 1s steps(4) infinite; } }
@keyframes tipTick { to { transform: rotate(360deg); } }
.doc.tip-below .doc-tip { bottom: auto; top: calc(100% + .6rem); transform-origin: top center; transform: translateX(-50%) rotate(calc(var(--r) * -1)) translateY(-6px); }
.doc.tip-below.is-in:hover .doc-tip, .doc.tip-below.is-in:focus-visible .doc-tip, .doc.tip-below.is-in.is-open .doc-tip { transform: translateX(-50%) rotate(calc(var(--r) * -1)) translateY(0); }
@media (min-width: 821px) { .pile-sticky { top: 6rem; height: calc(100vh - 7rem); } .pile-stage { height: 66vh; } }
@media (min-width: 821px) { .pile-section, .pile-section > .wrap { min-height: 205vh; } }
/* Circle of care story: cleaner bubbles, flowing spokes, urgent red, and the mark left behind at the end */
.cs-node text { font: 600 12px var(--font); }
.cs-node circle { stroke-width: 1.6; }
.cs-spoke { fill: none; stroke-dasharray: 190; stroke-dashoffset: 190; stroke-linecap: round; }
.cs-node.is-on { animation: csFloat 6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes csFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.cs-pulse { stroke: #ef4444; stroke-width: 2.5; }
.cs[data-alert="1"] .cs-center { fill: #dc2626; }
.cs[data-alert="1"] .cs-pulse { animation: csPulse 1.2s ease-out infinite; }
.cs[data-alert="1"] .cs-node.is-lit circle { fill: #b91c1c; stroke: #ef4444; }
.cs[data-alert="1"] .cs-spoke.is-lit { stroke: #ef4444; }
.cs-mark { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.85); transition: opacity 1.2s ease, transform 1.2s var(--ease); }
.cs[data-done="1"] .cs-mark { opacity: .14; transform: none; }
body:not(.dark) .cs[data-done="1"] .cs-mark { opacity: .18; }
@media (prefers-reduced-motion: reduce) { .cs-node.is-on { animation: none; } }
body.dark .cs-node.is-lit circle { fill: var(--sage-700); stroke: var(--sage-500); }
body.dark .cs-node.is-lit text { fill: #fff; }
.cs[data-done="1"] .cs-mark { opacity: .12; }
.cs[data-done="1"] .cs-mark { opacity: .15; }
body:not(.dark) .cs[data-done="1"] .cs-mark { opacity: .22; }
/* Phones: compact pillars, and breathing room before the pile */
@media (max-width: 640px) {
  .word-tiles--bold { gap: .75rem; }
  .word-tiles--bold .word-tile { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; padding: 1.1rem 1.15rem 1.2rem; }
  .word-tiles--bold .ico { width: 2.5rem; height: 2.5rem; border-radius: .75rem; margin: 0; grid-row: 1; }
  .word-tiles--bold .ico svg { width: 1.25rem; height: 1.25rem; }
  .word-tiles--bold h3 { font-size: 1.15rem; margin: 0; grid-row: 1; }
  .word-tiles--bold p { grid-column: 1 / -1; font-size: .95rem; line-height: 1.5; margin-top: .55rem; }
}
@media (max-width: 820px) {
  .pile-section { margin-top: 0; padding-top: 3rem; }
  .pile-stage { height: 44vh; min-height: 17rem; }
}
/* Simpler sheets: a title, one detail, and ruled lines */
.doc { padding: .8rem .9rem .8rem; width: 14.5rem; }
.doc h4 { font-size: .8rem; margin: 0 0 .5rem; }
.doc .rule { display: block; height: 1px; background: #cfcdc3; margin: .75rem 0 0; }
.doc footer { margin-top: .6rem; }
.doc-mar { width: 16rem; } .doc-cal { width: 14rem; }
.calg .cd { min-height: 1.1rem; font-size: .48rem; }
/* Circle story: five steps, lines within a step appear one after another */
html.js .cs { min-height: calc(5 * 62vh + 100vh); }
.cs-cap ul { list-style: none; margin-top: .7rem; display: grid; gap: .45rem; }
.cs-cap li { font-size: 1.06rem; line-height: 1.5; color: var(--ink-500); padding-left: 1.1rem; position: relative; }
.cs-cap li::before { content: ""; position: absolute; left: 0; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--sage-500); }
body.dark .cs-cap li { color: rgba(255,255,255,.7); }
html.js .cs-cap li { opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s var(--ease); transition-delay: calc(.25s + var(--k) * .35s); }
html.js .cs-cap.is-on li { opacity: 1; transform: none; }
.cs-caps { min-height: 12rem; }
@media (max-width: 900px) { html.js .cs { min-height: calc(5 * 50vh + 100vh); } .cs-caps { min-height: 10rem; } .cs-cap li { font-size: .95rem; } }
/* Rosie sparkle icons */
.ico svg[viewBox="0 0 100 100"] { width: 1.5rem; height: 1.5rem; }

/* Circle story: Maria's face at the center; bubbles fade in without growing; tighter scroll */
.cs-face { pointer-events: none; }
html.js .cs-node { transform: none; }
html.js .cs-node.is-on { animation: none; }
html.js .cs { min-height: calc(5 * 38vh + 100vh); }
@media (max-width: 900px) { html.js .cs { min-height: calc(5 * 34vh + 100vh); } }

/* AI flow: shorter overall, wider card, lines that all start at one edge, a bigger Careific circle */
@media (min-width: 1061px) {
  html.js .flow { grid-template-columns: auto 9rem 7rem minmax(2.5rem, 6rem) minmax(0, 38rem); margin-top: 2rem; }
  html.js .fl-src li { min-height: 2.9rem; }
}
.fl-src { gap: .5rem; }
.fl-src li { font-size: 1rem; min-height: 2.9rem; }
.fl-ic { width: 2.4rem; height: 2.4rem; }
.fl-rosie-dot { width: 7rem; height: 7rem; box-shadow: 0 0 70px 14px rgba(184,145,201,.32), 0 0 0 1px rgba(184,145,201,.5); }
.fl-rosie-dot img { width: 3.6rem; height: 3.6rem; }
.fc-grid { display: grid; grid-template-columns: 1fr 1fr; }
.fc-grid .fc-row { flex-direction: column; align-items: flex-start; gap: .2rem; padding: .9rem 1.4rem; border-top: 1px solid var(--ink-100); }
.fc-grid .fc-row:nth-child(odd) { border-right: 1px solid var(--ink-100); }
body.dark .fc-grid .fc-row, body.dark .fc-grid .fc-row:nth-child(odd) { border-color: rgba(255,255,255,.08); }
.fc-grid .fc-row b { text-align: left; font-size: 1.02rem; }
.fl-who { padding: 1.2rem 1.4rem .9rem; }
.fl-who b { font-size: 1.5rem; }
.fl-rail { padding: 1rem 1rem .85rem; }
@media (max-width: 1060px) { .fc-grid { grid-template-columns: 1fr; } .fc-grid .fc-row:nth-child(odd) { border-right: 0; } }
@media (min-width: 1061px) {
  html.js .flow { width: min(84rem, 100vw - 3rem); margin-left: 50%; transform: translateX(-50%); grid-template-columns: auto 9rem 7rem minmax(2.5rem, 6rem) minmax(0, 40rem); }
  .fc-grid .fc-row:first-child { grid-column: 1 / -1; border-right: 0; }
  .fc-grid .fc-row:first-child b { font-size: 1.1rem; }
}
/* center the wide blocks with margins instead of transforms (no layout overflow) */
@media (min-width: 1061px) { html.js .flow { margin-left: calc((100% - min(84rem, 100vw - 3rem)) / 2); transform: none; } }
@media (min-width: 981px) { .word-tiles--bold { margin-left: calc((100% - min(84rem, 100vw - 3rem)) / 2); transform: none; } }
@media (min-width: 1061px) {
  .fc-grid { grid-template-columns: repeat(3, 1fr); }
  .fc-grid .fc-row { border-right: 1px solid var(--ink-100); }
  body.dark .fc-grid .fc-row { border-right-color: rgba(255,255,255,.08); }
  .fc-grid .fc-row:nth-child(odd) { border-right: 1px solid var(--ink-100); }
  .fc-grid .fc-row:first-child, .fc-grid .fc-row:last-child, .fc-grid .fc-row:nth-child(4) { border-right: 0; }
  .fc-grid .fc-row:first-child, .fc-grid .fc-row:last-child { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .fc-grid .fc-row:last-child b { font-size: 1.1rem; }
}
/* the label hangs below the circle without adding to its height, so the arrow meets the circle dead center */
.fl-rosie { position: relative; }
.fl-rosie small { position: absolute; top: calc(100% + .55rem); left: 50%; transform: translateX(-50%); white-space: nowrap; }
.fl-svg { z-index: 0; }
.fl-rosie, .fl-card, .fl-src, .fl-arrow { position: relative; z-index: 1; }

/* =====================================================================
   FOUR DOORS - the solutions, as an invitation rather than a brochure
   ===================================================================== */
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.75rem; }
.door { position: relative; display: flex; flex-direction: column; min-height: 17rem; padding: 1.5rem 1.5rem 1.4rem; border-radius: 1.25rem; text-decoration: none; color: var(--slate);
  background: var(--paper); border: 1px solid var(--ink-100); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
body.dark .door { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: #fff; }
.door:hover, .door:focus-visible { transform: translateY(-4px); border-color: var(--sage-500); box-shadow: 0 24px 50px -24px rgba(63,138,93,.5); outline: none; }
.door.lav:hover, .door.lav:focus-visible { border-color: var(--lav-500); box-shadow: 0 24px 50px -24px rgba(125,93,146,.55); }
.door-n { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--ink-400); }
body.dark .door-n { color: rgba(255,255,255,.4); }
.door-ico { width: 3.25rem; height: 3.25rem; margin-top: auto; border-radius: 1rem; display: grid; place-items: center; background: var(--sage-tint); color: var(--sage-700); }
body.dark .door-ico { background: rgba(111,186,138,.14); color: var(--sage-300); }
.door.lav .door-ico { background: var(--lav-tint); color: var(--lav-700); }
body.dark .door.lav .door-ico { background: rgba(184,145,201,.16); color: var(--lav-300); }
.door-ico svg { width: 1.5rem; height: 1.5rem; }
.door-t { margin-top: 1.1rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.door-s { margin-top: .45rem; font-size: .98rem; line-height: 1.45; color: var(--ink-500); }
body.dark .door-s { color: rgba(255,255,255,.62); }
.door-go { position: absolute; top: 1.25rem; right: 1.25rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ink-100); color: var(--slate); transition: background .25s, color .25s, transform .25s; }
body.dark .door-go { border-color: rgba(255,255,255,.16); color: #fff; }
.door-go svg { width: 1rem; height: 1rem; }
.door:hover .door-go, .door:focus-visible .door-go { background: var(--sage-700); border-color: var(--sage-700); color: #fff; transform: translate(2px, -2px); }
.door.lav:hover .door-go, .door.lav:focus-visible .door-go { background: var(--lav-700); border-color: var(--lav-700); }
@media (max-width: 1060px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* phones: one row you swipe through, with the next door peeking in */
@media (max-width: 640px) {
  .doors { display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem 1.25rem 1rem; margin: 2rem -1.25rem 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .doors::-webkit-scrollbar { display: none; }
  .door { flex: 0 0 78%; scroll-snap-align: start; min-height: 15rem; }
  html.js .door.reveal { opacity: 1; transform: none; }
}
@media (hover: none) { .door:hover { transform: none; } }
.door-ico { margin-top: 1.5rem; }
.door-t { margin-top: auto; padding-top: 2.5rem; }
/* Circle story: graphic on the left, words on the right (phones keep the graphic on top) */
@media (min-width: 901px) { .cs-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } .cs-copy { order: 2; } .cs-fig { order: 1; } }
/* the pile: a real heap, tighter and taller */
@media (min-width: 821px) { .pile-stage { height: 70vh; } .doc { width: 15rem; } }
/* the last straw: lands last, on top, a little heavier */
.doc--straw { width: 16.5rem; box-shadow: 0 34px 60px -18px rgba(0,0,0,.8), 0 3px 8px rgba(0,0,0,.14); transition-duration: .85s; }
.doc--straw.is-in { animation: strawLand .85s var(--ease); }
@keyframes strawLand { 0% { transform: translate3d(0,-60vh,0) rotate(6deg) scale(1.04); } 80% { transform: translate3d(0,6px,0) rotate(var(--r)) scale(1); } 100% { transform: translate3d(0,0,0) rotate(var(--r)) scale(1); } }
.doc--straw .doc-stamp { font-size: .8rem; border-width: 2.5px; }
@media (prefers-reduced-motion: reduce) { .doc--straw.is-in { animation: none; } }
/* CTA phone button */
.cta-phone svg { width: 1.1rem; height: 1.1rem; margin-right: .5rem; }
/* Tighter hand-off between the pile and the circle story */
@media (min-width: 821px) { .pile-section, .pile-section > .wrap { min-height: 178vh; } }
html.js .cs-sticky { align-items: flex-start; padding-top: 6.5rem; }
.cs { padding-top: 0; }
@media (min-width: 901px) { html.js .cs { min-height: calc(5 * 38vh + 100vh - 8rem); } }
@media (min-width: 821px) {
  .pile-sticky { height: auto; padding-bottom: 1rem; }
  .pile-section, .pile-section > .wrap { min-height: 150vh; }
}
html.js .cs-sticky { padding-top: 5.5rem; }
@media (min-width: 901px) { .cs-grid { align-items: start; } .cs-copy { padding-top: .5rem; } }
@media (min-width: 821px) { .pile-stage { height: 62vh; } }

/* =====================================================================
   BOOK A TIME - weekday calendar + slots inside the demo form
   ===================================================================== */
.book { margin-bottom: 1.5rem; padding: 1.25rem 1.25rem 1.1rem; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--ink-100); }
body.dark .book { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.12); }
.book-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.book-eyebrow { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-700); }
body.dark .book-eyebrow { color: var(--sage-300); }
.book h3 { font-size: 1.15rem; font-weight: 600; margin-top: .25rem; }
.book p { font-size: .92rem; color: var(--ink-500); margin-top: .3rem; line-height: 1.5; }
body.dark .book p { color: rgba(255,255,255,.6); }
.book-pick { flex: 0 0 auto; padding: .5rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--sage-700); color: #fff; }
.book-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: 1rem; }
.book-day { padding: .6rem .25rem; border-radius: .75rem; border: 1px solid var(--ink-100); background: var(--paper); text-align: center; cursor: pointer; line-height: 1.2; min-height: 44px; }
.book-day small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); }
.book-day b { display: block; font-size: 1.05rem; margin-top: .15rem; }
body.dark .book-day { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #fff; }
.book-day:hover { border-color: var(--sage-500); }
.book-day.is-on { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }
.book-day.is-on small { color: rgba(255,255,255,.8); }
.book-week { grid-column: 1 / -1; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); margin-top: .35rem; }
.book-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1rem; }
.book-time { padding: .6rem .5rem; border-radius: .6rem; border: 1px solid var(--ink-100); background: var(--paper); font-size: .92rem; font-weight: 600; cursor: pointer; min-height: 44px; }
body.dark .book-time { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #fff; }
.book-time:hover { border-color: var(--sage-500); }
.book-time.is-on { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }
.book-tz { grid-column: 1 / -1; font-size: .8rem; color: var(--ink-400); }
@media (max-width: 560px) { .book-times { grid-template-columns: repeat(3, 1fr); } .book-day b { font-size: .95rem; } }
body.dark .book-day.is-on, body.dark .book-time.is-on { background: var(--sage-700); border-color: var(--sage-500); color: #fff; }
/* Solutions cards: quieter and shorter */
.door { min-height: 0; padding: 1.5rem 1.5rem 1.5rem; }
.door-ico { margin-top: 0; }
.door-t { margin-top: 1.1rem; padding-top: 0; }
@media (max-width: 640px) { .door { min-height: 0; } }
/* Circle story: pin lower, in line with where the compliance section sits */
@media (min-width: 901px) { html.js .cs-sticky { padding-top: clamp(9rem, 20vh, 13rem); } }

/* Pile: copy centered, sheets landing left and right of it */
.pile-center { position: relative; width: 100%; min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.pile-center .pile-copy { position: relative; z-index: 2; text-align: center; max-width: 34rem; margin: 0 !important; transform: none !important; }
.pile-center .pile-copy .lead { margin-inline: auto; }
.pile-center .pile-stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; margin: 0; }
@media (min-width: 821px) { .pile-sticky { display: block; } }
@media (max-width: 820px) {
  .pile-center { min-height: 0; display: block; }
  .pile-center .pile-stage { position: relative; height: 50vh; min-height: 19rem; margin-top: 1rem; }
}
/* Circle story: icon bubbles, a face that starts ring-sized and shrinks, and a day-long timeline */
.cs-me { transform-box: fill-box; transform-origin: center; transition: transform 1s var(--ease); }
html.js .cs[data-step="0"] .cs-me { transform: scale(4.7); }
html.js .cs[data-step="0"] .cs-ring, html.js .cs[data-step="0"] .cs-spokes { opacity: 0; }
.cs-ico { stroke: var(--sage-700); }
body.dark .cs-ico { stroke: var(--sage-300); }
.cs-node.is-lit .cs-ico { stroke: #fff; }
.cs[data-alert="1"] .cs-node.is-lit .cs-ico { stroke: #fff; }
.cs-tl { list-style: none; position: relative; margin-top: 1.25rem; padding-left: 7.25rem; }
.cs-tl::before { content: ""; position: absolute; left: 6.25rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--ink-100); }
body.dark .cs-tl::before { background: rgba(255,255,255,.12); }
.cs-tl-item { position: relative; padding: 0 0 1.1rem 0; }
.cs-tl-item time { position: absolute; left: -7.25rem; top: .15rem; width: 5.25rem; text-align: right; font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-400); }
body.dark .cs-tl-item time { color: rgba(255,255,255,.5); }
.cs-tl-item::before { content: ""; position: absolute; left: -1.35rem; top: .45rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--sage-500); box-shadow: 0 0 0 3px var(--bg); }
body.dark .cs-tl-item::before { box-shadow: 0 0 0 3px #0e1217; }
.cs-tl-item p { font-size: 1rem; line-height: 1.5; color: var(--ink-500); }
.cs-tl-item p b { color: var(--slate); font-weight: 700; }
body.dark .cs-tl-item p { color: rgba(255,255,255,.7); } body.dark .cs-tl-item p b { color: #fff; }
.cs-tl-item.is-alert::before { background: #dc2626; }
.cs-tl-item.is-alert p b { color: #ef4444; }
html.js .cs-tl-item { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s var(--ease); }
html.js .cs-tl-item.is-on { opacity: 1; transform: none; }
@media (max-width: 900px) { .cs-tl { padding-left: 5.5rem; } .cs-tl::before { left: 4.6rem; } .cs-tl-item time { left: -5.5rem; width: 3.9rem; font-size: .74rem; } .cs-tl-item::before { left: -1.2rem; } .cs-tl-item p { font-size: .93rem; } }
@media (prefers-reduced-motion: reduce) { .cs-me { transition: none; } }
/* AI flow: ants marching into Careific, a bolt out to the card (only once the lines have drawn) */
.fl-ant { fill: var(--sage-500); opacity: 0; transition: opacity .6s ease 2.6s; }
.fl-bolt { fill: var(--lav-500); opacity: 0; transition: opacity .6s ease 3s; filter: drop-shadow(0 0 6px rgba(184,145,201,.9)); }
.fl-outpath { fill: none; stroke: none; }
html.js .flow.in .fl-ant { opacity: .95; }
html.js .flow.in .fl-bolt { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .fl-ant, .fl-bolt { display: none; } }
@media (min-width: 821px) { .pile-center .pile-stage { left: 50%; width: 100vw; transform: translateX(-50%); } }
.cs-node .cs-ico circle, .cs-node .cs-ico rect, .cs-node .cs-ico path { fill: none !important; stroke: var(--sage-700); stroke-width: 1.8; }
body.dark .cs-node .cs-ico circle, body.dark .cs-node .cs-ico rect, body.dark .cs-node .cs-ico path { stroke: var(--sage-300); }
.cs-node.is-lit .cs-ico circle, .cs-node.is-lit .cs-ico rect, .cs-node.is-lit .cs-ico path { stroke: #fff !important; }
/* Circle story: smaller bubbles, hover labels; timeline shorter */
.cs-node { cursor: default; outline: none; }
.cs-lbl { font: 700 11.5px var(--font); fill: var(--slate); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
body.dark .cs-lbl { fill: #fff; stroke: #0e1217; }
.cs-node:hover .cs-lbl, .cs-node:focus .cs-lbl, .cs-node.is-open .cs-lbl { opacity: 1; }
.cs-node:hover circle, .cs-node:focus circle { stroke-width: 2.4; }
.cs-tl { margin-top: 1rem; }
.cs-tl-item { padding-bottom: .8rem; }
/* AI flow: glowing ants and bolt */
.fl-ant { filter: drop-shadow(0 0 4px rgba(111,186,138,.95)) drop-shadow(0 0 8px rgba(111,186,138,.5)); }
.fl-bolt { filter: drop-shadow(0 0 6px rgba(184,145,201,1)) drop-shadow(0 0 14px rgba(184,145,201,.6)); }
/* AI flow dots: slower, with tails; the outbound one is lavender */
.fl-ant circle { fill: var(--sage-500); }
.fl-ant .fl-tail { fill: none; stroke: url(#flTailSage); stroke-width: 3; stroke-linecap: round; }
.fl-bolt circle { fill: var(--lav-500); }
.fl-bolt .fl-tail { fill: none; stroke: url(#flTailLav); stroke-width: 4; stroke-linecap: round; }
.fl-ant { filter: drop-shadow(0 0 4px rgba(111,186,138,.8)); }
.fl-bolt { filter: drop-shadow(0 0 6px rgba(184,145,201,.9)) drop-shadow(0 0 12px rgba(184,145,201,.5)); }
.fl-ant { filter: drop-shadow(0 0 3px rgba(111,186,138,.7)); }
/* Comets: a bright head with a soft glowing tail that follows the line's curve */
.fl-comet, .fl-comet-glow, .fl-bolt, .fl-bolt-glow { fill: none; stroke-linecap: round; opacity: 0; transition: opacity .6s ease 2.6s; filter: none; }
.fl-comet { stroke: #A8D5BA; stroke-width: 2.6; }
.fl-comet-glow { stroke: var(--sage-500); stroke-width: 9; filter: blur(4px); }
.fl-bolt { stroke: #D5B8E0; stroke-width: 3.4; }
.fl-bolt-glow { stroke: var(--lav-500); stroke-width: 12; filter: blur(5px); }
html.js .flow.in .fl-comet, html.js .flow.in .fl-bolt { opacity: 1; }
html.js .flow.in .fl-comet-glow { opacity: .75; }
html.js .flow.in .fl-bolt-glow { opacity: .85; }
@media (prefers-reduced-motion: reduce) { .fl-comet, .fl-comet-glow, .fl-bolt, .fl-bolt-glow { display: none; } }
/* Careific circle: a left-to-right light sweep and a right-side flare, in time with the flow */
.fl-rosie-dot { position: relative; overflow: visible; }
.fl-rosie-dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none;
  background: radial-gradient(circle at var(--sx, -30%) 50%, rgba(213,184,224,.55), rgba(184,145,201,.18) 28%, transparent 55%);
  animation: rosieSweep 2.8s cubic-bezier(.5, 0, .5, 1) infinite; }
.fl-rosie-dot::after { content: ""; position: absolute; inset: -.35rem; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(184,145,201,.45), 1.2rem 0 2.2rem -.6rem rgba(184,145,201,0);
  animation: rosieFlare 2.8s cubic-bezier(.5, 0, .5, 1) infinite; }
.fl-rosie-dot img { position: relative; z-index: 1; }
@keyframes rosieSweep { 0% { --sx: -30%; opacity: .0; } 15% { opacity: 1; } 55% { --sx: 50%; opacity: 1; } 100% { --sx: 135%; opacity: 0; } }
@property --sx { syntax: '<percentage>'; inherits: false; initial-value: -30%; }
@keyframes rosieFlare { 0%, 35% { box-shadow: 0 0 0 0 rgba(184,145,201,.35), 1.2rem 0 2.2rem -.6rem rgba(184,145,201,0); transform: scale(1); }
  60% { box-shadow: 0 0 0 .3rem rgba(184,145,201,0), 1.4rem 0 2.6rem -.5rem rgba(184,145,201,.75); transform: scale(1.02); }
  100% { box-shadow: 0 0 0 .6rem rgba(184,145,201,0), 2.2rem 0 3rem -.4rem rgba(184,145,201,0); transform: scale(1); } }
html.js .flow:not(.in) .fl-rosie-dot::before, html.js .flow:not(.in) .fl-rosie-dot::after { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .fl-rosie-dot::before, .fl-rosie-dot::after { animation: none; } }
/* The sweep and flare run on the same clock as the outbound comet: the flare peaks the instant it leaves */
.fl-rosie-dot::before, .fl-rosie-dot::after { animation: none; opacity: 0; }
.fl-rosie-dot.is-sweeping::before { animation: rosieSweep2 2.8s cubic-bezier(.5, 0, .5, 1) infinite; opacity: 1; }
.fl-rosie-dot.is-sweeping::after { animation: rosieFlare2 2.8s linear infinite; opacity: 1; }
@keyframes rosieSweep2 { 0% { --sx: -30%; opacity: .25; } 100% { --sx: 118%; opacity: 1; } }
@keyframes rosieFlare2 {
  0%   { box-shadow: 0 0 0 .1rem rgba(184,145,201,.35), 1.4rem 0 2.6rem -.5rem rgba(184,145,201,.85); }
  22%  { box-shadow: 0 0 0 .6rem rgba(184,145,201,0), 2.2rem 0 3rem -.4rem rgba(184,145,201,0); }
  70%  { box-shadow: 0 0 0 0 rgba(184,145,201,0), 1rem 0 2.2rem -.6rem rgba(184,145,201,0); }
  100% { box-shadow: 0 0 0 .1rem rgba(184,145,201,.35), 1.4rem 0 2.6rem -.5rem rgba(184,145,201,.85); } }
html.js .flow:not(.in) .fl-rosie-dot::before, html.js .flow:not(.in) .fl-rosie-dot::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .fl-rosie-dot.is-sweeping::before, .fl-rosie-dot.is-sweeping::after { animation: none; opacity: 0; } }
/* Undo the circle sweep and flare on the AI flow */
.fl-rosie-dot::before, .fl-rosie-dot::after, .fl-rosie-dot.is-sweeping::before, .fl-rosie-dot.is-sweeping::after { content: none !important; animation: none !important; }
/* Circle story: grow the face by its geometry rather than by scaling, so the outline stays the same weight */
.cs-me, html.js .cs[data-step="0"] .cs-me { transform: none; }
.cs-center, .cs-face, .cs-clip, .cs-pulse { transition: r 1s var(--ease), x 1s var(--ease), y 1s var(--ease), width 1s var(--ease), height 1s var(--ease); }
html.js .cs[data-step="0"] .cs-center { r: 229px; }
html.js .cs[data-step="0"] .cs-pulse { r: 229px; }
html.js .cs[data-step="0"] .cs-clip { r: 226.5px; }
html.js .cs[data-step="0"] .cs-face { x: 13px; y: 13px; width: 454px; height: 454px; }
@media (prefers-reduced-motion: reduce) { .cs-center, .cs-face, .cs-clip, .cs-pulse { transition: none; } }
/* A restrained light crosses the Careific circle left to right, arriving at the edge as the comet launches */
.fl-rosie-dot::before { content: "" !important; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--sx, -20%) 50%, rgba(213,184,224,.5), rgba(184,145,201,.16) 30%, transparent 58%); animation: none !important; }
.fl-rosie-dot::after { content: "" !important; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: .9rem 0 1.6rem -.5rem rgba(184,145,201,.9); animation: none !important; }
.fl-rosie-dot.is-sweeping::before { animation: careSweep 2.8s cubic-bezier(.45, 0, .55, 1) 1 forwards !important; }
.fl-rosie-dot.is-sweeping::after { animation: careEdge 2.8s linear 1 forwards !important; }
@keyframes careSweep { 0% { --sx: -20%; opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { --sx: 112%; opacity: 0; } }
@keyframes careEdge { 0%, 78% { opacity: 0; } 96% { opacity: .9; } 100% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .fl-rosie-dot::before, .fl-rosie-dot::after { content: none !important; } }
/* A visible light travels across the circle: brighter, and moved by transform (works everywhere) */
.fl-rosie-dot { overflow: hidden; }
.fl-rosie-dot::before { content: "" !important; position: absolute; left: 50%; top: 50%; width: 160%; height: 160%; inset: auto; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(230,211,238,.95), rgba(184,145,201,.45) 40%, rgba(184,145,201,0) 72%);
  transform: translate(-125%, -50%); animation: none !important; }
.fl-rosie-dot.is-sweeping::before { animation: careSweep2 2.8s cubic-bezier(.45, 0, .55, 1) 1 forwards !important; }
@keyframes careSweep2 { 0% { transform: translate(-125%, -50%); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translate(25%, -50%); opacity: 0; } }
.fl-rosie-dot::after { content: none !important; }
.fl-rosie-dot img { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .fl-rosie-dot::before { content: none !important; } }
.fl-rosie-dot.is-sweeping::before { content: "" !important; }
.fl-rosie-dot::before, .fl-rosie-dot.is-sweeping::before { inset: auto; left: 50%; top: 50%; width: 150%; height: 150%;
  background: radial-gradient(closest-side, rgba(236,222,242,1), rgba(184,145,201,.55) 38%, rgba(184,145,201,0) 70%); }
@keyframes careSweep2 { 0% { transform: translate(-120%, -50%); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translate(20%, -50%); opacity: 0; } }
/* Softer light, timed to hand off to the comet at the right edge */
.fl-rosie-dot::before, .fl-rosie-dot.is-sweeping::before { background: radial-gradient(closest-side, rgba(236,222,242,.55), rgba(184,145,201,.28) 38%, rgba(184,145,201,0) 70%); }
.fl-rosie-dot.is-sweeping::before { animation: careSweep3 1.6s cubic-bezier(.4, 0, .6, 1) 1 forwards !important; }
@keyframes careSweep3 { 0% { transform: translate(-120%, -50%); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(22%, -50%); opacity: 0; } }
/* between runs the comet rests out of sight */
.fl-bolt, .fl-bolt-glow { stroke-dashoffset: 48; }

.fl-rosie-dot.is-sweeping::before { animation-duration: 3.2s !important; }

/* the light's center arrives at the right edge at ~77% of its run, which is when the comet launches */
@keyframes careSweep3 { 0% { transform: translate(-120%, -50%); opacity: 0; } 10% { opacity: 1; } 77% { transform: translate(-6%, -50%); opacity: 1; } 100% { transform: translate(22%, -50%); opacity: 0; } }

/* =====================================================================
   THE CLOCKS - "Compliance fails quietly": every deadline on its own clock
   ===================================================================== */
.ck-sec { position: relative; }
html.js .ck-sec { min-height: 230vh; }
.ck-sticky { position: relative; min-height: 80vh; }
html.js .ck-sticky { position: sticky; top: 0; height: 100vh; min-height: 0; display: flex; align-items: center; justify-content: center; }
.ck-copy { position: relative; z-index: 3; text-align: center; max-width: 36rem; padding: 0 1.25rem; }
.ck-copy .lead { margin-inline: auto; position: relative; min-height: 3.4em; }
.ck-cap { display: block; opacity: 0; transition: opacity .5s ease, transform .5s var(--ease); transform: translateY(6px); position: absolute; left: 0; right: 0; top: 0; }
.ck-sec[data-phase="0"] .ck-cap[data-phase="0"], .ck-sec[data-phase="1"] .ck-cap[data-phase="1"], .ck-sec[data-phase="2"] .ck-cap[data-phase="2"] { opacity: 1; transform: none; }
html:not(.js) .ck-cap { position: static; opacity: 1; transform: none; }
.ck-field { position: absolute; inset: 0; z-index: 1; }
.ck { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) translateY(var(--py, 0px)); display: grid; justify-items: center; gap: .45rem; cursor: default; outline: none;
  --size: calc(2.6rem + (var(--d) - 1) * 1.6rem); opacity: calc(.45 + var(--d) * .18); transition: opacity .4s ease; will-change: transform; }
.ck-face { position: relative; width: var(--size); height: var(--size); border-radius: 50%; border: 2px solid var(--sage-500); background: rgba(111,186,138,.06); box-shadow: 0 0 0 0 rgba(239,68,68,0); transition: border-color .5s ease, box-shadow .6s ease, background .5s ease; }
.ck-face::before, .ck-face::after { content: ""; position: absolute; left: 50%; top: 50%; }
.ck-h, .ck-m { position: absolute; left: 50%; top: 50%; width: 2px; background: var(--sage-300); border-radius: 2px; transform-origin: 50% 100%; }
.ck-h { height: 28%; margin-left: -1px; transform: translateY(-100%) rotate(var(--ha, 0deg)); }
.ck-m { height: 40%; margin-left: -1px; transform: translateY(-100%) rotate(var(--ma, 0deg)); opacity: .9; }
.ck-face b { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--sage-300); }
body:not(.dark) .ck-h, body:not(.dark) .ck-m, body:not(.dark) .ck-face b { background: var(--sage-700); }
.ck-lbl { font-size: calc(.66rem + var(--d) * .06rem); font-weight: 600; color: var(--ink-500); white-space: nowrap; letter-spacing: .01em; }
body.dark .ck-lbl { color: rgba(255,255,255,.62); }
.ck.is-red .ck-face { border-color: #ef4444; background: rgba(239,68,68,.08); box-shadow: 0 0 22px 2px rgba(239,68,68,.35); }
.ck.is-red .ck-h, .ck.is-red .ck-m, .ck.is-red .ck-face b { background: #f87171; }
.ck.is-red .ck-lbl { color: #f87171; }
.ck.is-red { opacity: 1; }
/* hover card, same clock format as before */
.ck-tip { position: absolute; left: 50%; bottom: calc(100% + .5rem); transform: translateX(-50%) translateY(6px); width: 12.5rem; padding: .6rem .75rem; border-radius: .6rem; background: #14181f; color: #fff; text-align: left; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; box-shadow: 0 16px 34px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(168,213,186,.35); z-index: 5; }
.ck-tip strong { display: block; font-size: .9rem; font-weight: 800; color: #A8D5BA; }
.ck-tip small { display: block; margin-top: .25rem; font-size: .74rem; color: rgba(255,255,255,.62); font-weight: 600; }
.ck.is-red .ck-tip { box-shadow: 0 16px 34px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(248,113,113,.45); } .ck.is-red .ck-tip strong { color: #f87171; }
.ck:hover .ck-tip, .ck:focus .ck-tip, .ck.is-open .ck-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.ck:hover { z-index: 6; }
@media (max-width: 820px) {
  html.js .ck-sec { min-height: 190vh; }
  html.js .ck-sticky { padding-top: 5rem; align-items: flex-start; }
  .ck-copy { margin-top: 28vh; }
  .ck { --size: calc(2rem + (var(--d) - 1) * 1rem); }
  .ck[style*="--d:1"] .ck-lbl { display: none; }
  .ck-lbl { font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) { .ck { transition: none; } .ck-face, .ck-cap { transition: none; } }
.ck { --size: calc(3rem + (var(--d) - 1) * 1.9rem); }
.ck-face { border-width: 2.25px; }
@media (max-width: 820px) { .ck { --size: calc(2.1rem + (var(--d) - 1) * 1.1rem); } }
.ck-sec { overflow-x: clip; }
@media (max-width: 820px) {
  html.js .ck-sticky { padding-top: 6rem; }
  .ck-copy { margin-top: 0; }
  .ck { left: calc(10% + var(--x) * 0.8); top: calc(42% + var(--y) * 0.55); }
  .ck-copy .h-xl { font-size: 1.9rem; } .ck-copy .lead { font-size: 1rem; }
}
@media (max-width: 820px) { .ck { top: calc(27% + var(--y) * 0.62); } }
/* Light runs around the rim instead of through the middle */
.fl-rosie-dot::before, .fl-rosie-dot.is-sweeping::before { content: none !important; }
.fl-rosie-dot { overflow: visible; }
.fl-arc, .fl-arc-glow { fill: none; stroke-linecap: round; opacity: 0; transition: opacity .6s ease 2.6s; }
.fl-arc { stroke: #E6D3EE; stroke-width: 3; }
.fl-arc-glow { stroke: var(--lav-500); stroke-width: 11; filter: blur(5px); }
html.js .flow.in .fl-arc { opacity: 1; }
html.js .flow.in .fl-arc-glow { opacity: .8; }
.fl-rosie { z-index: 1; } .fl-svg { z-index: 2; }
.fl-svg path.fl-arc, .fl-svg path.fl-arc-glow { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .fl-arc, .fl-arc-glow { display: none; } }
/* Clocks: the sheet under each clock, the tally, and the people who pick things up */
.ck { gap: .35rem; }
.ck-doc { display: grid; gap: .1rem; width: 7.2rem; padding: .4rem .5rem .45rem; border-radius: .25rem; background: #fbfbf7; color: #1f2329; box-shadow: 0 10px 22px -12px rgba(0,0,0,.8); font-family: Georgia, serif; position: relative; text-align: left; transform: rotate(calc(var(--i) * 1.7deg - 9deg)); transition: box-shadow .4s ease; }
.ck-doc b { font-size: .56rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; }
.ck-doc i { font: .6rem "Bradley Hand", "Segoe Print", cursive; color: #1d3a8a; }
.ck-doc em { position: absolute; right: .3rem; bottom: .3rem; font: 800 .48rem var(--font); letter-spacing: .08em; padding: .1rem .3rem; border: 1.5px solid #c1272d; color: #c1272d; border-radius: .15rem; transform: rotate(-8deg); opacity: 0; transition: opacity .3s ease; }
.ck.is-red .ck-doc em { opacity: .9; }
.ck.is-red .ck-doc { box-shadow: 0 10px 22px -12px rgba(0,0,0,.8), 0 0 0 1.5px rgba(239,68,68,.6); }
.ck[style*="--d:1"] .ck-doc { display: none; }           /* the far clocks keep only their label */
.ck-tally { margin: 1.1rem auto 0; display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); font-size: .9rem; color: var(--ink-500); }
body:not(.dark) .ck-tally { background: var(--paper); border-color: var(--ink-100); }
body.dark .ck-tally { color: rgba(255,255,255,.7); }
.ck-tally b { font-size: 1.1rem; color: #f87171; min-width: 1.2em; text-align: right; transition: color .4s ease; }
.ck-bar { width: 6rem; height: .35rem; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
body:not(.dark) .ck-bar { background: var(--ink-100); }
.ck-bar i { display: block; height: 100%; width: 0; background: #ef4444; border-radius: 999px; transition: width .5s var(--ease), background .4s ease; }
.ck-sec[data-phase="2"] .ck-tally b { color: var(--sage-300); } .ck-sec[data-phase="2"] .ck-bar i { background: var(--sage-500); }
body:not(.dark) .ck-sec[data-phase="2"] .ck-tally b { color: var(--sage-700); }
/* phase 2: the clocks settle to sage and each item lands with a person */
.ck-sec[data-phase="2"] .ck.is-red .ck-face { border-color: var(--sage-500); background: rgba(111,186,138,.1); box-shadow: 0 0 18px 2px rgba(111,186,138,.25); }
.ck-sec[data-phase="2"] .ck.is-red .ck-h, .ck-sec[data-phase="2"] .ck.is-red .ck-m, .ck-sec[data-phase="2"] .ck.is-red .ck-face b { background: var(--sage-300); }
.ck-sec[data-phase="2"] .ck.is-red .ck-lbl { color: var(--sage-300); }
.ck-sec[data-phase="2"] .ck.is-red .ck-doc em { border-color: var(--sage-700); color: var(--sage-700); }
.ck-sec[data-phase="2"] .ck.is-red .ck-doc { box-shadow: 0 10px 22px -12px rgba(0,0,0,.8), 0 0 0 1.5px rgba(111,186,138,.6); }
.ck-people { position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%) translateY(16px); z-index: 4; display: flex; gap: 1rem; opacity: 0; transition: opacity .6s ease, transform .6s var(--ease); pointer-events: none; }
.ck-sec[data-phase="2"] .ck-people { opacity: 1; transform: translateX(-50%); }
.ck-person { width: 13.5rem; padding: .85rem .95rem; border-radius: 1rem; background: var(--paper); border: 1px solid var(--ink-100); display: grid; grid-template-columns: 2.4rem 1fr; column-gap: .65rem; align-items: center; }
body.dark .ck-person { background: rgba(20,24,31,.92); border-color: rgba(255,255,255,.12); }
.ck-ava { grid-row: 1 / span 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #8fc7a3, #3f8a5d); }
.ck-person b { font-size: .95rem; color: var(--slate); } body.dark .ck-person b { color: #fff; }
.ck-person small { font-size: .72rem; color: var(--ink-400); } body.dark .ck-person small { color: rgba(255,255,255,.5); }
.ck-person ul { grid-column: 1 / -1; list-style: none; margin-top: .55rem; display: grid; gap: .25rem; }
.ck-person li { display: flex; justify-content: space-between; gap: .5rem; font-size: .76rem; color: var(--ink-500); padding-left: 1rem; position: relative; }
body.dark .ck-person li { color: rgba(255,255,255,.72); }
.ck-person li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-500); font-weight: 800; }
.ck-person li span { color: var(--ink-400); white-space: nowrap; } body.dark .ck-person li span { color: rgba(255,255,255,.5); }
@media (max-width: 1100px) { .ck-person { width: 11.5rem; } }
@media (max-width: 820px) { .ck-doc { display: none; } .ck-people { position: static; transform: none; flex-direction: column; align-items: stretch; gap: .5rem; margin: 1rem 1.25rem 0; } .ck-sec[data-phase="2"] .ck-people { transform: none; } .ck-person { width: auto; } .ck-tally { font-size: .82rem; } }
/* arcs and comet share one weight and color so the hand-off reads as one stroke */
.fl-bolt { stroke: #E6D3EE; stroke-width: 3; }
.fl-bolt-glow { stroke: var(--lav-500); stroke-width: 11; filter: blur(5px); }
/* Lighter comets, arcs, and bolt */
.fl-comet { stroke-width: 1.6; stroke: rgba(168,213,186,.9); }
.fl-comet-glow { stroke-width: 6; filter: blur(3.5px); }
html.js .flow.in .fl-comet-glow { opacity: .45; }
.fl-arc, .fl-bolt { stroke-width: 1.8; stroke: rgba(230,211,238,.9); }
.fl-arc-glow, .fl-bolt-glow { stroke-width: 7; filter: blur(4px); }
html.js .flow.in .fl-arc-glow, html.js .flow.in .fl-bolt-glow { opacity: .5; }

/* =====================================================================
   ONE WEEK IN CAREIFIC - "Compliance fails quietly"
   ===================================================================== */
.wk-sec { position: relative; }
html.js .wk-sec { min-height: 220vh; }
.wk-sticky { position: relative; padding: 2rem 0; }
html.js .wk-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem; padding: 6rem 1.25rem 2rem; }
.wk-copy { text-align: center; max-width: 36rem; }
.wk-copy .lead { margin-inline: auto; }
.wk-board { width: min(76rem, 100%); border-radius: 1.25rem; background: var(--paper); border: 1px solid var(--ink-100); box-shadow: var(--shadow-lg); overflow: hidden; }
body.dark .wk-board { background: #151a21; border-color: rgba(255,255,255,.1); box-shadow: 0 30px 60px -24px rgba(0,0,0,.75); }
.wk-head { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1.1rem; font-size: .82rem; color: var(--ink-500); border-bottom: 1px solid var(--ink-100); }
body.dark .wk-head { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.08); }
.wk-score { font-weight: 700; color: var(--slate); transition: color .3s ease; } body.dark .wk-score { color: #fff; }
.wk-days { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; padding: .75rem; }
.wk-day { position: relative; border-radius: .8rem; background: var(--bg); padding: .6rem .55rem .7rem; min-height: 14rem; transition: background .4s ease; }
body.dark .wk-day { background: rgba(255,255,255,.035); }
.wk-day.is-today { background: rgba(184,145,201,.08); }
.wk-dh { display: flex; gap: .4rem; align-items: baseline; font-size: .82rem; margin-bottom: .55rem; }
.wk-dh b { color: var(--slate); } .wk-dh span { color: var(--ink-400); } body.dark .wk-dh b { color: #fff; } body.dark .wk-dh span { color: rgba(255,255,255,.45); }
.wk-chip { position: relative; display: grid; grid-template-columns: 1.5rem 1fr auto; align-items: center; gap: .45rem; margin-top: .45rem; padding: .5rem .55rem; border-radius: .6rem; background: var(--paper); border: 1px solid var(--ink-100); font-size: .8rem; color: var(--slate); transition: border-color .4s ease, background .4s ease, color .4s ease, transform .4s var(--ease); }
body.dark .wk-chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #fff; }
.wk-ava { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-size: .58rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #8fc7a3, #3f8a5d); }
.wk-t { line-height: 1.2; }
.wk-st { width: .9rem; height: .9rem; border-radius: 50%; border: 1.5px solid var(--ink-200); transition: all .4s ease; }
body.dark .wk-st { border-color: rgba(255,255,255,.25); }
.wk-chip.is-done { border-color: rgba(111,186,138,.6); background: rgba(111,186,138,.1); }
.wk-chip.is-done .wk-st { border-color: var(--sage-500); background: var(--sage-700); box-shadow: inset 0 0 0 2px #fff; }
.wk-chip.is-slip { border-color: rgba(239,68,68,.7); background: rgba(239,68,68,.1); }
.wk-chip.is-slip .wk-st { border-color: #ef4444; background: #ef4444; }
.wk-chip.is-slip::after { content: "Flagged for " attr(data-who); position: absolute; left: 2.5rem; bottom: -1.05rem; font-size: .62rem; font-weight: 700; letter-spacing: .04em; color: #f87171; text-transform: uppercase; }
.wk-chip.is-slip { margin-bottom: 1.1rem; }
.wk-chip.is-now { transform: translateY(-2px); border-color: rgba(184,145,201,.7); }
.wk-line { position: absolute; top: .75rem; bottom: .75rem; left: var(--lx, 10%); width: 2px; background: var(--lav-500); box-shadow: 0 0 12px rgba(184,145,201,.9); border-radius: 2px; pointer-events: none; transition: left .15s linear; }
.wk-line i { position: absolute; left: 50%; top: -1.35rem; transform: translateX(-50%); font: 700 .6rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--lav-500); font-style: normal; white-space: nowrap; }
.wk-sec[data-phase="2"] .wk-score { color: var(--sage-700); } body.dark .wk-sec[data-phase="2"] .wk-score { color: var(--sage-300); }
@media (max-width: 900px) {
  html.js .wk-sec { min-height: 200vh; }
  html.js .wk-sticky { justify-content: flex-start; padding-top: 5.5rem; gap: 1rem; }
  .wk-copy .h-xl { font-size: 1.9rem; } .wk-copy .lead { font-size: 1rem; }
  .wk-board { width: 100%; }
  .wk-days { grid-template-columns: repeat(5, 11rem); overflow: visible; transform: translateX(var(--bx, 0)); transition: transform .15s linear; padding: .75rem .75rem 1.5rem; }
  .wk-board { overflow: hidden; }
  .wk-day { min-height: 12rem; }
  .wk-line { top: .75rem; bottom: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .wk-line, .wk-days, .wk-chip, .wk-day, .wk-st { transition: none; } }

/* =====================================================================
   A DAY IN THE APP - "Compliance isn't a binder. It's the whole day."
   ===================================================================== */
.dy-sec { position: relative; }
html.js .dy-sec { min-height: calc(6 * 48vh + 100vh); }
.dy-sticky { position: relative; padding: 3rem 0; }
html.js .dy-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 0; }
.dy-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; width: 100%; }
.dy-copy .h-xl { margin-bottom: .75rem; }
.dy-copy .lead { max-width: 32rem; }
.dy-beats { list-style: none; margin-top: 1.5rem; display: grid; gap: .35rem; }
.dy-beat { display: grid; grid-template-columns: 5.25rem 1fr; gap: .75rem; padding: .55rem .75rem; border-radius: .75rem; transition: background .35s ease, opacity .35s ease; opacity: .45; }
.dy-beat time { font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-400); padding-top: .15rem; }
.dy-beat b { display: block; font-size: 1.02rem; color: var(--slate); }
.dy-beat p { font-size: .9rem; line-height: 1.45; color: var(--ink-500); margin-top: .15rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .35s ease; }
body.dark .dy-beat time { color: rgba(255,255,255,.45); } body.dark .dy-beat b { color: #fff; } body.dark .dy-beat p { color: rgba(255,255,255,.66); }
.dy-beat.is-on { opacity: 1; background: var(--sage-tint); }
body.dark .dy-beat.is-on { background: rgba(111,186,138,.1); }
.dy-beat.is-on time { color: var(--sage-700); } body.dark .dy-beat.is-on time { color: var(--sage-300); }
.dy-beat.is-on p { max-height: 6rem; opacity: 1; }
.dy-beat.is-past { opacity: .7; }
html:not(.js) .dy-beat, html:not(.js) .dy-beat p { opacity: 1; max-height: none; }
.dy-fig { margin: 0; }
.dy-stage { position: relative; aspect-ratio: 1400 / 1000; background: #f4f5f6; overflow: hidden; }
.dy-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: translateY(14px) scale(1.01); transition: opacity .55s ease, transform .7s var(--ease); }
.dy-shot.is-on { opacity: 1; transform: none; }
.dy-shot.is-past { opacity: 0; transform: translateY(-10px) scale(1.01); }
html:not(.js) .dy-stage { aspect-ratio: auto; } html:not(.js) .dy-shot { position: static; opacity: 1; transform: none; height: auto; }
@media (max-width: 1000px) {
  html.js .dy-sec { min-height: calc(6 * 40vh + 100vh); }
  html.js .dy-sticky { align-items: flex-start; padding-top: 5.5rem; }
  .dy-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .dy-fig { order: -1; }
  .dy-copy .h-xl { font-size: 1.6rem; margin-bottom: .4rem; } .dy-copy .lead { font-size: .95rem; }
  .dy-beats { margin-top: .75rem; gap: .2rem; }
  .dy-beat { grid-template-columns: 4.5rem 1fr; padding: .4rem .6rem; } .dy-beat b { font-size: .92rem; } .dy-beat p { font-size: .84rem; }
  .dy-beat:not(.is-on) p { display: none; }
  .dy-stage { aspect-ratio: 1400 / 800; }
}
@media (prefers-reduced-motion: reduce) { .dy-shot, .dy-beat, .dy-beat p { transition: none; } }
/* Week board: hover or tap an item to see the real screen where it gets done */
.wk-chip { cursor: default; outline: none; }
.wk-pop { position: absolute; left: 50%; bottom: calc(100% + .6rem); transform: translateX(-50%) translateY(6px); width: 22rem; max-width: 80vw; border-radius: .8rem; overflow: hidden; background: #fff; border: 1px solid var(--ink-100); box-shadow: 0 24px 50px -16px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s var(--ease); z-index: 30; }
.wk-pop-bar { display: flex; align-items: center; gap: .3rem; padding: .35rem .6rem; background: #eef0f2; border-bottom: 1px solid #e2e5e8; }
.wk-pop-bar i { width: .45rem; height: .45rem; border-radius: 50%; background: #c9ced3; }
.wk-pop-bar b { margin-left: .5rem; font-size: .66rem; font-weight: 700; color: #4b5563; letter-spacing: .02em; }
.wk-pop img { display: block; width: 100%; height: 12rem; object-fit: cover; object-position: top; }
.wk-chip:hover .wk-pop, .wk-chip:focus .wk-pop, .wk-chip.is-open .wk-pop { opacity: 1; transform: translateX(-50%) translateY(0); }
.wk-chip:hover, .wk-chip:focus, .wk-chip.is-open { z-index: 31; border-color: var(--lav-500); }
.wk-day:nth-child(1) .wk-pop { left: 0; transform: translateX(0) translateY(6px); } .wk-day:nth-child(1) .wk-chip:hover .wk-pop, .wk-day:nth-child(1) .wk-chip:focus .wk-pop, .wk-day:nth-child(1) .wk-chip.is-open .wk-pop { transform: translateX(0) translateY(0); }
.wk-day:nth-child(5) .wk-pop { left: auto; right: 0; transform: translateX(0) translateY(6px); } .wk-day:nth-child(5) .wk-chip:hover .wk-pop, .wk-day:nth-child(5) .wk-chip:focus .wk-pop, .wk-day:nth-child(5) .wk-chip.is-open .wk-pop { transform: translateX(0) translateY(0); }
.wk-days { overflow: visible; }
.wk-board { overflow: visible; }
@media (max-width: 900px) { .wk-board { overflow: hidden; } .wk-pop { width: 16rem; } .wk-pop img { height: 9rem; } }
/* the day section lives on the Compliance page now */
.dy-sec { margin-top: 0; }

/* =====================================================================
   RHYTHMS - "Compliance fails quietly": four timelines, four speeds, one TODAY line
   ===================================================================== */
.rh-sec { position: relative; overflow-x: clip; }
html.js .rh-sec { min-height: 240vh; }
.rh-sticky { position: relative; padding: 3rem 1.25rem; }
html.js .rh-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem; padding: 6rem 1.25rem 2rem; }
.rh-copy { text-align: center; max-width: 36rem; }
.rh-copy .lead { margin-inline: auto; position: relative; min-height: 3.4em; }
.rh-cap { display: block; position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s var(--ease); }
.rh-sec[data-phase="0"] .rh-cap[data-phase="0"], .rh-sec[data-phase="1"] .rh-cap[data-phase="1"], .rh-sec[data-phase="2"] .rh-cap[data-phase="2"] { opacity: 1; transform: none; }
html:not(.js) .rh-cap { position: static; opacity: 1; transform: none; }
.rh-board { width: min(76rem, 100%); border-radius: 1.25rem; background: var(--paper); border: 1px solid var(--ink-100); box-shadow: var(--shadow-lg); overflow: hidden; }
body.dark .rh-board { background: #151a21; border-color: rgba(255,255,255,.1); box-shadow: 0 30px 60px -24px rgba(0,0,0,.75); }
.rh-head { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1.1rem; font-size: .82rem; color: var(--ink-500); border-bottom: 1px solid var(--ink-100); }
body.dark .rh-head { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.08); }
.rh-score { font-weight: 700; color: var(--slate); } body.dark .rh-score { color: #fff; }
.rh-bands { position: relative; display: grid; gap: .6rem; padding: .9rem .75rem 1rem; }
.rh-band { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: .75rem; }
.rh-name { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); }
body.dark .rh-name { color: rgba(255,255,255,.45); }
.rh-track { position: relative; height: 3.1rem; border-radius: .75rem; background: var(--bg); overflow: hidden; }
body.dark .rh-track { background: rgba(255,255,255,.035); }
.rh-items { position: absolute; left: 0; top: 50%; transform: translate(var(--tx, 0px), -50%); display: flex; gap: .5rem; padding-left: 28%; white-space: nowrap; will-change: transform; }
.rh-chip { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .6rem .42rem .42rem; border-radius: .6rem; background: var(--paper); border: 1px solid var(--ink-100); font-size: .78rem; color: var(--slate); transition: border-color .35s ease, background .35s ease, color .35s ease; }
body.dark .rh-chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #fff; }
.rh-ava { width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: .52rem; font-weight: 800; font-style: normal; color: #fff; background: linear-gradient(135deg, #8fc7a3, #3f8a5d); }
.rh-st { width: .75rem; height: .75rem; border-radius: 50%; border: 1.5px solid var(--ink-200); transition: all .35s ease; margin-left: .15rem; }
body.dark .rh-st { border-color: rgba(255,255,255,.25); }
.rh-chip.is-done { border-color: rgba(111,186,138,.6); background: rgba(111,186,138,.1); }
.rh-chip.is-done .rh-st { border-color: var(--sage-500); background: var(--sage-700); box-shadow: inset 0 0 0 2px #fff; }
.rh-chip.is-slip { border-color: rgba(239,68,68,.7); background: rgba(239,68,68,.1); }
.rh-chip.is-slip .rh-st { border-color: #ef4444; background: #ef4444; }
.rh-chip.is-slip::after { content: "Flagged"; position: absolute; left: .45rem; bottom: -.9rem; font-size: .55rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #f87171; }
.rh-line { position: absolute; top: .9rem; bottom: 1rem; left: calc(7.25rem + 0.28 * (100% - 8.75rem)); width: 2px; background: var(--lav-500); box-shadow: 0 0 12px rgba(184,145,201,.9); border-radius: 2px; pointer-events: none; }
.rh-line i { position: absolute; left: 50%; top: -1.25rem; transform: translateX(-50%); font: 700 .6rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--lav-500); font-style: normal; }
.rh-sec[data-phase="2"] .rh-score { color: var(--sage-700); } body.dark .rh-sec[data-phase="2"] .rh-score { color: var(--sage-300); }
@media (max-width: 820px) {
  html.js .rh-sec { min-height: 210vh; }
  html.js .rh-sticky { justify-content: flex-start; padding-top: 5.5rem; gap: 1rem; }
  .rh-copy .h-xl { font-size: 1.9rem; } .rh-copy .lead { font-size: 1rem; }
  .rh-band { grid-template-columns: 1fr; gap: .25rem; }
  .rh-name { font-size: .62rem; }
  .rh-track { height: 2.7rem; }
  .rh-chip { font-size: .72rem; padding: .35rem .5rem .35rem .35rem; }
  .rh-line { left: 28%; top: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .rh-items, .rh-chip, .rh-st, .rh-cap { transition: none; } }

/* Rhythms: more air between bands, nothing clipped, half the scroll */
html.js .rh-sec { min-height: 150vh; }
.rh-bands { gap: 1.15rem; padding: 1.1rem .75rem 1.3rem; }
.rh-track { height: 4rem; overflow: hidden; }
.rh-chip { padding: .5rem .7rem .5rem .5rem; font-size: .8rem; }
.rh-chip.is-slip::after { bottom: -1rem; }
.rh-items { top: calc(50% - .45rem); }                 /* leave room below each chip for its Flagged label */
.rh-track { border-radius: .85rem; }
.rh-line { top: 1.1rem; bottom: 1.3rem; }
.rh-copy .lead { min-height: 3.6em; }
@media (max-width: 820px) { html.js .rh-sec { min-height: 140vh; } .rh-track { height: 3.5rem; } .rh-bands { gap: .9rem; } }
/* Rhythms, simpler and quicker */
html.js .rh-sec { min-height: 115vh; }
.rh-copy .lead { min-height: 0; }
.rh-chip.is-slip::after { content: none; }
.rh-items { top: 50%; gap: .6rem; padding-left: 30%; }
.rh-track { height: 3.5rem; }
.rh-bands { gap: .9rem; padding: 1rem .75rem 1.1rem; }
.rh-line { top: 1rem; bottom: 1.1rem; }
@media (max-width: 820px) { html.js .rh-sec { min-height: 110vh; } }
/* Rhythms: fewer, fuller items */
.rh-chip { padding: .5rem .8rem .5rem .55rem; gap: .55rem; }
.rh-ava { width: 1.55rem; height: 1.55rem; font-size: .58rem; }
.rh-txt { display: grid; line-height: 1.15; text-align: left; }
.rh-txt b { font-size: .84rem; font-weight: 700; }
.rh-txt small { font-size: .7rem; color: var(--ink-400); } body.dark .rh-txt small { color: rgba(255,255,255,.5); }
.rh-chip.is-done .rh-txt small { color: var(--sage-700); } body.dark .rh-chip.is-done .rh-txt small { color: var(--sage-300); }
.rh-chip.is-slip .rh-txt small { color: #f87171; }
.rh-track { height: 4.1rem; }
.rh-items { gap: .7rem; padding-left: 30%; }
.rh-line { top: 1rem; bottom: 1.1rem; }
@media (max-width: 820px) { .rh-track { height: 3.8rem; } .rh-txt b { font-size: .78rem; } .rh-txt small { font-size: .64rem; } }

/* =====================================================================
   COMPLIANCE - still: a hand-driven carousel of the work, no motion
   ===================================================================== */
.cp-carousel { height: auto; margin-top: 2.5rem; outline: none; }
.cp-stage { position: relative; }
.cp-carousel .carousel-slide { position: absolute; inset: 0; transition: none; transform: none; }
.cp-carousel .carousel-slide.is-active { position: relative; }
.cp-fig { margin: 0; max-width: 64rem; margin-inline: auto; }
.cp-img { display: block; width: 100%; height: auto; max-height: 34rem; object-fit: cover; object-position: top; }
.cp-cap { max-width: 44rem; margin: 1.25rem auto 0; text-align: center; }
.cp-cap b { display: block; font-size: 1.2rem; color: var(--slate); }
.cp-cap span { display: block; margin-top: .3rem; font-size: 1rem; line-height: 1.5; color: var(--ink-500); }
body.dark .cp-cap b { color: #fff; } body.dark .cp-cap span { color: rgba(255,255,255,.66); }
.cp-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.cp-nav .carousel-dots { margin: 0; }
.cp-nav .carousel-prev, .cp-nav .carousel-next { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ink-100); background: var(--paper); color: var(--slate); cursor: pointer; }
.cp-nav .carousel-prev svg, .cp-nav .carousel-next svg { width: 1.1rem; height: 1.1rem; }
body.dark .cp-nav .carousel-prev, body.dark .cp-nav .carousel-next { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.cp-nav .carousel-prev:hover, .cp-nav .carousel-next:hover { border-color: var(--sage-500); }
.carousel-dot:focus-visible { outline: 2px solid var(--sage-500); outline-offset: 2px; }
@media (max-width: 820px) { .cp-img { max-height: 22rem; } .cp-cap b { font-size: 1.05rem; } .cp-cap span { font-size: .92rem; } }

/* Compliance carousel: half-size image, one bold line beneath */
.cp-fig { max-width: 32rem; }
.cp-img { max-height: 17rem; }
.cp-cap { margin-top: 1.4rem; }
.cp-cap b { font-size: 1.6rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
@media (max-width: 820px) { .cp-fig { max-width: 100%; } .cp-img { max-height: 14rem; } .cp-cap b { font-size: 1.25rem; } }

/* Hero mark: the teaser's emblem, exactly - its glow, its bloom, its resolve - at a larger size */
.hero-mark { width: clamp(11rem, 18vw, 14rem); height: auto; aspect-ratio: 1; margin-bottom: 2rem; animation: none; opacity: 1; }
.hero-mark img { width: 100%; height: auto; filter: drop-shadow(0 6px 30px rgba(111,186,138,.35)); opacity: .12; transform: scale(1.12); animation: emblemResolve 2.4s var(--ease) .25s forwards; }
.hero-mark-glow { inset: -60%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(111,186,138,.45), rgba(184,145,201,.22) 45%, transparent 70%);
  filter: blur(26px); opacity: 0; animation: emblemBloom 2.6s var(--ease) .3s forwards; }
.hero-mark img { position: relative; z-index: 1; }
body:not(.dark) .hero-mark-glow { opacity: 0; animation: emblemBloom 2.6s var(--ease) .3s forwards; }
@keyframes emblemResolve {
  0%   { opacity: .10; filter: blur(26px) brightness(.5) drop-shadow(0 0 0 transparent); transform: scale(1.12); }
  60%  { opacity: .85; filter: blur(4px) brightness(.92); }
  100% { opacity: 1; filter: blur(0) brightness(1) drop-shadow(0 8px 34px rgba(111,186,138,.4)); transform: scale(1); } }
@keyframes emblemBloom { 0% { opacity: 0; transform: scale(.6); } 55% { opacity: 1; } 100% { opacity: .85; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero-mark img { opacity: 1; transform: none; filter: drop-shadow(0 8px 34px rgba(111,186,138,.4)); animation: none; }
  .hero-mark-glow { opacity: .85; animation: none; } }
/* exact teaser size for the emblem */
.hero-mark { width: clamp(180px, 26vw, 285px); margin: 0 auto 2.25rem; }

/* Hero: the teaser's atmosphere, exactly - drifting fog, grain, vignette */
.hero--center { isolation: isolate; overflow: hidden; }
.hero--center .fog { position: absolute; inset: -20%; z-index: -2; pointer-events: none; filter: blur(8px); }
.hero--center .fog span { position: absolute; border-radius: 50%; opacity: .5; mix-blend-mode: screen; }
.hero--center .fog .f1 { width: 60vw; height: 60vw; left: 5%; top: 10%; background: radial-gradient(circle, rgba(121,121,146,.5), transparent 65%); animation: fogDrift1 26s var(--ease) infinite alternate; }
.hero--center .fog .f2 { width: 50vw; height: 50vw; right: 0%; top: 30%; background: radial-gradient(circle, rgba(39,48,63,.9), transparent 60%); animation: fogDrift2 32s var(--ease) infinite alternate; }
.hero--center .fog .f3 { width: 46vw; height: 46vw; left: 25%; bottom: 0%; background: radial-gradient(circle, rgba(125,93,146,.34), transparent 65%); animation: fogDrift3 30s var(--ease) infinite alternate; }
@keyframes fogDrift1 { to { transform: translate(8%, 6%) scale(1.15); } }
@keyframes fogDrift2 { to { transform: translate(-10%, -5%) scale(1.1); } }
@keyframes fogDrift3 { to { transform: translate(6%, -8%) scale(1.2); } }
.hero--center .haze { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"); }
.hero--center .vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 55% at 50% 42%, transparent 45%, rgba(8,10,14,.55) 100%); }
body:not(.dark) .hero--center .fog span { opacity: .28; mix-blend-mode: multiply; }
body:not(.dark) .hero--center .vignette { background: radial-gradient(60% 55% at 50% 42%, transparent 45%, rgba(20,24,31,.12) 100%); }
@media (prefers-reduced-motion: reduce) { .hero--center .fog span { animation: none; } }
/* (correct selectors for the hero's own fog structure) */
.hero.hero--center .atmosphere { position: absolute; inset: -20%; z-index: -2; pointer-events: none; filter: blur(8px); transform: none; }
.hero.hero--center .atmosphere .fog { position: absolute; border-radius: 50%; opacity: .5; mix-blend-mode: screen; transform: none; filter: none; }
.hero.hero--center .atmosphere .fog.f1 { width: 60vw; height: 60vw; left: 5%; top: 10%; right: auto; bottom: auto; background: radial-gradient(circle, rgba(121,121,146,.5), transparent 65%); animation: fogDrift1 26s var(--ease) infinite alternate; }
.hero.hero--center .atmosphere .fog.f2 { width: 50vw; height: 50vw; right: 0%; top: 30%; left: auto; bottom: auto; background: radial-gradient(circle, rgba(39,48,63,.9), transparent 60%); animation: fogDrift2 32s var(--ease) infinite alternate; }
.hero.hero--center .atmosphere .fog.f3 { width: 46vw; height: 46vw; left: 25%; bottom: 0%; top: auto; right: auto; background: radial-gradient(circle, rgba(125,93,146,.34), transparent 65%); animation: fogDrift3 30s var(--ease) infinite alternate; }
.hero.hero--center > .haze { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"); }
.hero.hero--center > .vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: block; background: radial-gradient(60% 55% at 50% 42%, transparent 45%, rgba(8,10,14,.55) 100%); }
body:not(.dark) .hero.hero--center .atmosphere .fog { opacity: .28; mix-blend-mode: multiply; }
body:not(.dark) .hero.hero--center > .vignette { background: radial-gradient(60% 55% at 50% 42%, transparent 45%, rgba(20,24,31,.12) 100%); }
@media (prefers-reduced-motion: reduce) { .hero.hero--center .atmosphere .fog { animation: none; } }

.hl-lav { color: var(--lav-500); }
body:not(.dark) .hl-lav { color: var(--lav-700); }

/* Hero: second line smaller; the section title below sized up to pair with it */
.hero h1 .h1-sub { display: block; font-size: .64em; margin-top: .12em; letter-spacing: -.025em; }
.h-xl.h-xl--hero { font-size: clamp(2.4rem, 5.4vw, 4.3rem); letter-spacing: -.035em; line-height: 1.04; }
/* Equal partners: the hero title and "Intelligence at the heart of care" share one size and weight */
.hero h1 .h1-sub { font-size: 1em; margin-top: 0; letter-spacing: inherit; }
.h-xl.h-xl--hero { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 300; }
/* Circle story: bigger timeline text; white bubbles with words, in varied sizes */
.cs-tl-item p { font-size: 1.25rem; line-height: 1.45; }
.cs-tl-item time { font-size: .95rem; top: .3rem; width: 5.6rem; }
.cs-tl { padding-left: 7.75rem; } .cs-tl::before { left: 6.6rem; } .cs-tl-item::before { left: -1.5rem; top: .6rem; }
.cs-tl-item { padding-bottom: 1.1rem; }
.cs-node circle { fill: #fff; stroke: var(--sage-500); stroke-width: 1.8; }
body.dark .cs-node circle { fill: #fff; }
.cs-node .cs-ico circle, .cs-node .cs-ico rect, .cs-node .cs-ico path { stroke: var(--sage-700); }
body.dark .cs-node .cs-ico circle, body.dark .cs-node .cs-ico rect, body.dark .cs-node .cs-ico path { stroke: var(--sage-700); }
.cs-word { font-family: var(--font); font-weight: 700; fill: var(--slate); letter-spacing: -.01em; pointer-events: none; }
body.dark .cs-word { fill: var(--slate); }
.cs-node.is-lit circle, body.dark .cs-node.is-lit circle { fill: var(--sage-700); stroke: var(--sage-500); }
.cs-node.is-lit .cs-word { fill: #fff; }
.cs[data-alert="1"] .cs-node.is-lit circle { fill: #b91c1c; stroke: #ef4444; }
.cs-lbl { display: none; }
.cs-node:hover circle { stroke-width: 2.6; }
@media (max-width: 900px) { .cs-tl-item p { font-size: 1.02rem; } .cs-tl-item time { font-size: .8rem; width: 4.2rem; } .cs-tl { padding-left: 5.8rem; } .cs-tl::before { left: 4.9rem; } }
.cs-node text.cs-word, body.dark .cs-node text.cs-word { fill: var(--slate); font-weight: 700; }
.cs-node.is-lit text.cs-word, body.dark .cs-node.is-lit text.cs-word { fill: #fff; }
/* satellites without outlines */
.cs-node circle, body.dark .cs-node circle { stroke: none; }
.cs-node:hover circle { stroke: none; filter: brightness(.96); }
.cs-node.is-lit circle, body.dark .cs-node.is-lit circle { stroke: none; }
/* Circle story: icons centered, words beside the bubbles, white connections */
.cs-node text.cs-word, body.dark .cs-node text.cs-word { font: 700 11px var(--font); fill: var(--slate); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; letter-spacing: 0; }
body.dark .cs-node text.cs-word { fill: #fff; stroke: #0e1217; }
.cs-node.is-lit text.cs-word, body.dark .cs-node.is-lit text.cs-word { fill: var(--sage-300); }
body:not(.dark) .cs-node.is-lit text.cs-word { fill: var(--sage-700); }
.cs-spoke, body.dark .cs-spoke { stroke: rgba(255,255,255,.55); }
body:not(.dark) .cs-spoke { stroke: var(--ink-300); }
.cs-spoke.is-lit, body.dark .cs-spoke.is-lit { stroke: #fff; stroke-width: 2; }
.cs[data-alert="1"] .cs-spoke.is-lit { stroke: #ef4444; }

/* AI flow: Careific circle 40% smaller, no label */
.fl-rosie-dot { width: 4.2rem; height: 4.2rem; box-shadow: 0 0 44px 8px rgba(184,145,201,.3), 0 0 0 1px rgba(184,145,201,.5); }
.fl-rosie-dot img { width: 2.15rem; height: 2.15rem; }
.fl-rosie small { display: none; }
@media (min-width: 1061px) { html.js .flow { grid-template-columns: auto 9rem 4.5rem minmax(2.5rem, 6rem) minmax(0, 40rem); } }
/* Resident card: a lavender border with a soft, slow pulse */
.fl-card { border-color: rgba(184,145,201,.55) !important; position: relative; }
.fl-card::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; border: 1px solid rgba(184,145,201,.0);
  box-shadow: 0 0 0 0 rgba(184,145,201,.35), 0 0 28px 0 rgba(184,145,201,.18); animation: cardPulse 3.2s ease-in-out infinite; }
html.js .flow:not(.in) .fl-card::after { animation: none; opacity: 0; }
@keyframes cardPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,145,201,.35), 0 0 24px 0 rgba(184,145,201,.16); }
  50%      { box-shadow: 0 0 0 5px rgba(184,145,201,0), 0 0 40px 4px rgba(184,145,201,.32); } }
body:not(.dark) .fl-card { border-color: rgba(125,93,146,.45) !important; }
@media (prefers-reduced-motion: reduce) { .fl-card::after { animation: none; } }
/* Compliance carousel: bigger screens again (about three quarters of the original) */
.cp-fig { max-width: 50rem; }
.cp-img { max-height: 27rem; }
@media (max-width: 820px) { .cp-fig { max-width: 100%; } .cp-img { max-height: 16rem; } }

/* =====================================================================
   DEEPER PAGES - the homepage's language: centered big-type heroes, real screens, calm cards
   ===================================================================== */
.page-hero--center .hero-grid { display: block; text-align: center; }
.page-hero--center .hero-copy { max-width: 46rem; margin: 0 auto; }
.page-hero--center .breadcrumb { justify-content: center; }
.page-hero--center .hero-actions { justify-content: center; }
.page-hero--center .lead { margin-inline: auto; }
.page-hero--center .hero-shot { margin: 2.75rem auto 0; max-width: 50rem; }
.page-hero--center .hero-shot img { display: block; width: 100%; height: auto; max-height: 27rem; object-fit: cover; object-position: top; }
.page-hero--center .h-xl { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -.035em; }
@media (max-width: 820px) { .page-hero--center .hero-shot img { max-height: 16rem; } }
/* centered heroes without a hero-grid wrapper */
.page-hero--center > .wrap { text-align: center; }
.page-hero--center > .wrap > .h-xl, .page-hero--center > .wrap > .lead { margin-inline: auto; max-width: 46rem; }
.page-hero--center > .wrap > .breadcrumb, .page-hero--center > .wrap > .hero-actions { justify-content: center; }
.page-hero--center > .wrap > .lead { max-width: 40rem; }

/* =====================================================================
   LEGAL PAGES - Privacy Policy, Terms of Service
   ===================================================================== */
.legal-dates { font-size: .92rem; color: var(--ink-400); margin: .5rem auto 1rem; }
body.dark .legal-dates { color: rgba(255,255,255,.5); }
.legal-grid { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.legal-toc { position: sticky; top: 6.5rem; }
.legal-toc-in { padding: 1rem 1.1rem; border-radius: 1rem; background: var(--paper); border: 1px solid var(--ink-100); }
body.dark .legal-toc-in { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
.legal-toc b { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); margin-bottom: .6rem; }
.legal-toc ol { list-style: none; display: grid; gap: .3rem; max-height: 60vh; overflow: auto; }
.legal-toc li a { font-size: .86rem; color: var(--ink-500); text-decoration: none; line-height: 1.35; }
body.dark .legal-toc li a { color: rgba(255,255,255,.66); } .legal-toc li a:hover { color: var(--sage-700); } body.dark .legal-toc li a:hover { color: var(--sage-300); }
.legal-toc-other { margin-top: .9rem; font-size: .84rem; color: var(--ink-400); } .legal-toc-other a { color: var(--sage-700); } body.dark .legal-toc-other a { color: var(--sage-300); }
.legal-body { max-width: 46rem; }
.legal-summary { padding: 1.25rem 1.4rem; border-radius: 1rem; background: var(--sage-tint); border: 1px solid rgba(111,186,138,.3); margin-bottom: 2.5rem; }
body.dark .legal-summary { background: rgba(111,186,138,.08); }
.legal-summary b { display: block; font-size: 1rem; margin-bottom: .5rem; color: var(--slate); } body.dark .legal-summary b { color: #fff; }
.legal-summary ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.legal-summary li, .legal-summary p { font-size: .95rem; line-height: 1.5; color: var(--ink-500); } body.dark .legal-summary li, body.dark .legal-summary p { color: rgba(255,255,255,.72); }
.legal-summary p { margin-top: .8rem; font-size: .84rem; }
.legal-sec { padding-top: 1.75rem; scroll-margin-top: 6.5rem; }
.legal-sec h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .75rem; color: var(--slate); } body.dark .legal-sec h2 { color: #fff; }
.legal-sec h3 { font-size: 1.05rem; font-weight: 700; margin: 1.2rem 0 .4rem; color: var(--slate); } body.dark .legal-sec h3 { color: #fff; }
.legal-sec p, .legal-sec li { font-size: 1.02rem; line-height: 1.65; color: var(--ink-500); } body.dark .legal-sec p, body.dark .legal-sec li { color: rgba(255,255,255,.72); }
.legal-sec p + p { margin-top: .8rem; } .legal-sec ul, .legal-sec ol { padding-left: 1.3rem; margin: .6rem 0 .9rem; display: grid; gap: .4rem; }
.legal-sec b { color: var(--slate); } body.dark .legal-sec b { color: #fff; }
.legal-sec a { color: var(--sage-700); } body.dark .legal-sec a { color: var(--sage-300); }
@media (max-width: 900px) { .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .legal-toc { position: static; } .legal-toc ol { max-height: none; } }
/* AI Insights: the Rosie chat phone sits centered under the hero copy */
.page-hero--center .hero-visual { margin: 2.5rem auto 0; display: flex; justify-content: center; }
/* Solutions heroes: copy on the left, the screen or the Rosie phone on the right */
@media (min-width: 981px) {
  .page-hero--split > .wrap, .page-hero--split .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; text-align: left; }
  .page-hero--split .hero-copy, .page-hero--split > .wrap > .h-xl, .page-hero--split > .wrap > .lead { margin: 0; max-width: 34rem; }
  .page-hero--split .breadcrumb, .page-hero--split .hero-actions { justify-content: flex-start; }
  .page-hero--split .h-xl { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
  .page-hero--split .hero-shot, .page-hero--split .hero-visual { margin: 0; max-width: none; justify-self: end; width: 100%; }
  .page-hero--split .hero-shot img { max-height: 32rem; }
  .page-hero--split .hero-visual { justify-content: center; }
}
.page-hero--split .hero-shot img { max-height: 36rem; }

/* =====================================================================
   ONE CANVAS - no background seams between sections, on any page
   ===================================================================== */
.hero, .hero.hero--center, .page-hero, .section, .section--slate, .section--tight, .section--cta-glow, .trust-strip, .cp-sec, .cs, .doors-sec, .rh-sec, .wk-sec, .dy-sec { background: transparent !important; }
.section--slate { color: inherit; }
body:not(.dark) .section--slate .h-lg, body:not(.dark) .section--slate .h-xl, body:not(.dark) .section--slate h2, body:not(.dark) .section--slate h3 { color: var(--slate); }
body:not(.dark) .section--slate .lead, body:not(.dark) .section--slate p { color: var(--ink-500); }
.hero.hero--center { overflow: visible; }                     /* the fog fades out past the hero instead of stopping at its edge */
.hero.hero--center > .vignette, .hero.hero--center > .haze { display: none; }
body { overflow-x: clip; }
.site-footer, body.dark .site-footer { background: transparent; border-top: 1px solid rgba(255,255,255,.08); }
body:not(.dark) .site-footer { border-top-color: var(--ink-100); color: var(--ink-500); }
body:not(.dark) .site-footer a, body:not(.dark) .site-footer b, body:not(.dark) .site-footer strong { color: var(--slate); }
.page-hero::before { content: none; }
.divider { padding: 1.25rem 0 0; }
.hero.hero--center { overflow-x: clip; overflow-y: visible; }

/* =====================================================================
   THE DIGITAL BINDER - pages you flip
   ===================================================================== */
.binder { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0; border-radius: 1.1rem; overflow: hidden; background: #1b2129; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 60px -24px rgba(0,0,0,.75); outline: none; }
body:not(.dark) .binder { background: #2b3340; }
.bd-spine { background: #3f8a5d; color: #fff; padding: 1rem .9rem; display: flex; flex-direction: column; gap: .9rem; }
.bd-cover { padding-bottom: .8rem; border-bottom: 1px solid rgba(255,255,255,.25); }
.bd-name { display: block; font-weight: 800; font-size: 1rem; line-height: 1.15; }
.bd-sub { display: block; font-size: .68rem; opacity: .8; margin-top: .25rem; }
.bd-tabs { display: grid; gap: .25rem; }
.bd-tab { text-align: left; font: 600 .72rem var(--font); color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); border: 0; border-radius: .4rem; padding: .4rem .55rem; cursor: pointer; line-height: 1.2; }
.bd-tab.is-on { background: #fbfbf7; color: #1f2329; }
.bd-book { position: relative; padding: 1.1rem 1.1rem 3.2rem; background: #10141a; perspective: 1400px; }
body:not(.dark) .bd-book { background: #e9ebee; }
.bd-stage { position: relative; aspect-ratio: 17 / 11; }
.bd-page { position: absolute; inset: 0; transform-origin: left center; transform: rotateY(-180deg); opacity: 0; transition: transform .6s var(--ease), opacity .25s ease .2s; pointer-events: none; backface-visibility: hidden; }
.bd-page.is-on { transform: none; opacity: 1; pointer-events: auto; transition: transform .6s var(--ease), opacity .2s ease; }
.bd-page.is-past { transform: rotateY(-180deg); opacity: 0; }
.bd-page.is-next { transform: rotateY(0) translateX(6px); opacity: 0; }
.bd-sheet { position: absolute; inset: 0; background: #fcfcf9; color: #1d2229; border-radius: .25rem; padding: 1rem 1.2rem; font-family: Georgia, "Times New Roman", serif; box-shadow: 0 14px 30px -14px rgba(0,0,0,.8), inset 2px 0 0 #e7e5da; overflow: hidden; }
.bd-sheet header { border-bottom: 1px solid #1f2329; padding-bottom: .2rem; }
.bd-sheet .agency { font-family: var(--font); font-size: .5rem; letter-spacing: .06em; text-transform: uppercase; color: #444; }
.bd-sheet h4 { font-size: .95rem; margin: .6rem 0 .5rem; text-transform: uppercase; letter-spacing: .01em; }
.bd-sheet .frow { display: grid; grid-template-columns: 8rem 1fr; gap: .5rem; align-items: baseline; padding: .28rem 0; border-bottom: 1px solid #d8d6cb; }
.bd-sheet label { font-family: var(--font); font-size: .58rem; text-transform: uppercase; letter-spacing: .04em; color: #555; }
.bd-sheet .fv { font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; color: #1d3a8a; font-size: .86rem; }
.bd-sheet .rule { display: block; height: 1px; background: #d8d6cb; margin-top: .9rem; }
.bd-sheet footer { position: absolute; left: 1.2rem; bottom: .8rem; font-family: var(--font); font-size: .55rem; color: #666; }
.bd-sheet .doc-stamp { position: absolute; right: 1rem; bottom: .8rem; transform: rotate(-8deg); border: 2px solid #3f8a5d; color: #3f8a5d; font: 800 .62rem var(--font); letter-spacing: .1em; padding: .15rem .4rem; border-radius: .2rem; }
.bd-nav { position: absolute; left: 1.1rem; right: 1.1rem; bottom: .85rem; display: flex; align-items: center; justify-content: center; gap: .9rem; }
.bd-prev, .bd-next { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; }
body:not(.dark) .bd-prev, body:not(.dark) .bd-next { border-color: var(--ink-200); background: #fff; color: var(--slate); }
.bd-prev svg, .bd-next svg { width: 1rem; height: 1rem; }
.bd-prev:hover, .bd-next:hover { border-color: var(--sage-500); }
.bd-count { font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.65); min-width: 3rem; text-align: center; }
body:not(.dark) .bd-count { color: var(--ink-500); }
@media (max-width: 700px) { .binder { grid-template-columns: 1fr; } .bd-spine { flex-direction: row; flex-wrap: wrap; align-items: center; } .bd-cover { border-bottom: 0; border-right: 1px solid rgba(255,255,255,.25); padding: 0 .8rem 0 0; } .bd-tabs { display: flex; flex-wrap: wrap; gap: .3rem; } .bd-stage { aspect-ratio: 4 / 3; } .bd-sheet .frow { grid-template-columns: 6rem 1fr; } }
@media (prefers-reduced-motion: reduce) { .bd-page { transition: none; } }

/* The day section as an auto-cycling carousel (not scroll-driven) */
html.js .dy-auto { min-height: 0; }
html.js .dy-auto .dy-sticky { position: static; height: auto; padding: 0; }
.dy-auto .dy-grid { align-items: center; }
.dy-auto .dy-beat { cursor: pointer; }
.dy-auto .dy-progress { height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 1rem; }
body:not(.dark) .dy-auto .dy-progress { background: var(--ink-100); }
.dy-auto .dy-progress i { display: block; height: 100%; width: 0; background: var(--sage-500); }
.dy-auto.is-running .dy-progress i { animation: dyBar var(--dy-dur, 4.5s) linear forwards; }
@keyframes dyBar { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .dy-auto.is-running .dy-progress i { animation: none; width: 100%; } }
.split--stack { grid-template-columns: minmax(0, 1fr) !important; gap: 2rem !important; }
.split--stack .split-copy { max-width: 46rem; margin: 0 auto; text-align: center; }
.split--stack .split-copy .check-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; }
.split--stack .split-media { max-width: 62rem; margin: 0 auto; width: 100%; }
.binder { grid-template-columns: 13rem minmax(0, 1fr); }
.bd-stage { aspect-ratio: 16 / 10; }
.bd-sheet { padding: 1.4rem 1.8rem; }
.bd-sheet h4 { font-size: 1.15rem; margin: .8rem 0 .7rem; }
.bd-sheet .frow { grid-template-columns: 10rem 1fr; padding: .4rem 0; }
.bd-sheet label { font-size: .66rem; } .bd-sheet .fv { font-size: 1.05rem; } .bd-sheet .agency { font-size: .56rem; }
.bd-sheet footer { font-size: .62rem; }

/* =====================================================================
   RESIDENT BINDER - the whole binder, as it looks in Careific
   ===================================================================== */
.bk { outline: none; }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 .25rem 1rem; }
.bk-head b { display: block; font-size: 1.05rem; color: var(--slate); } body.dark .bk-head b { color: #fff; }
.bk-head span { display: block; font-size: .8rem; color: var(--ink-400); margin-top: .15rem; } body.dark .bk-head span { color: rgba(255,255,255,.5); }
.bk-stage { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 2.6rem; align-items: center; gap: .75rem; padding: 1.5rem 1rem; border-radius: 1.25rem; background: #e9ebee; }
body.dark .bk-stage { background: #1b2129; }
.bk-book { position: relative; margin: 0 auto; width: min(100%, 36rem); perspective: 1600px; }
.bk-page { position: relative; display: none; transform-origin: left center; }
.bk-page.is-on { display: block; animation: bkTurn .55s var(--ease); }
@keyframes bkTurn { from { transform: rotateY(-70deg); opacity: 0; } to { transform: none; opacity: 1; } }
.bk-sheet { position: relative; aspect-ratio: 17 / 22; background: #fff; border-radius: .2rem; box-shadow: 0 24px 50px -22px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.08); padding: 2.4rem 2.4rem 2.2rem 3.2rem; color: #1d2229; font-family: var(--font); overflow: hidden; }
.bk-rings { position: absolute; left: -.55rem; top: 14%; bottom: 14%; width: 1.1rem; display: flex; flex-direction: column; justify-content: space-between; }
.bk-rings i { display: block; width: 1.1rem; height: 1.6rem; border-radius: .55rem; border: 3px solid #b9bdc3; background: linear-gradient(90deg, #e9ebee 50%, #fff 50%); }
.bk-foot { position: absolute; left: 3.2rem; right: 2.4rem; bottom: .9rem; display: flex; justify-content: space-between; font-size: .58rem; color: #777; }
.bk-foot img { width: .7rem; height: .7rem; vertical-align: -1px; margin-right: .2rem; }
.bp-cover { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 1rem; }
.bp-ava { position: relative; width: 5.4rem; height: 5.4rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #3f8a5d; background: #e3f0e8; box-shadow: 0 0 0 .35rem #f1f7f3; }
.bp-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bp-kicker { margin-top: 1rem; font-size: .62rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #6fba8a; }
.bp-cover h3 { font-size: 1.6rem; font-weight: 800; margin-top: .35rem; letter-spacing: -.01em; }
.bp-cover p { font-size: .82rem; color: #555; margin-top: .4rem; line-height: 1.5; }
.bp-note { margin-top: 1.1rem; padding: .6rem .9rem; border: 1px solid #dfe2e6; border-radius: .5rem; font-size: .66rem; color: #555; }
.bp-note small { font-size: .6rem; color: #888; }
.bp-mark { position: absolute; right: 2.4rem; bottom: 2.6rem; width: 2rem; height: 2rem; opacity: .9; }
.bp-form { height: 100%; }
.bp-agency { font-size: .52rem; letter-spacing: .08em; text-transform: uppercase; color: #555; border-bottom: 1px solid #1d2229; padding-bottom: .3rem; }
.bp-form h4 { font-size: 1rem; font-weight: 800; margin: .7rem 0 .55rem; }
.bp-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: .6rem; align-items: baseline; padding: .32rem 0; border-bottom: 1px solid #e6e4dc; }
.bp-row span { font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #666; }
.bp-row b { font-weight: 500; font-size: .8rem; color: #1d2229; }
.bp-two { display: grid; grid-template-columns: 1fr 6rem; gap: 1rem; align-items: start; }
.bp-photo { display: grid; justify-items: center; gap: .3rem; border: 1px solid #d9d8cf; padding: .4rem; font-size: .55rem; color: #666; text-transform: uppercase; letter-spacing: .06em; }
.bp-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.bp-rule { display: block; height: 1px; background: #e6e4dc; margin-top: .9rem; }
.bp-code { position: absolute; left: 3.2rem; bottom: 2.4rem; font-size: .58rem; color: #777; }
.bp-stamp { position: absolute; right: 2.4rem; bottom: 2.3rem; transform: rotate(-8deg); border: 2px solid #3f8a5d; color: #3f8a5d; font: 800 .62rem var(--font); letter-spacing: .12em; padding: .15rem .45rem; border-radius: .2rem; }
.bk-tabs { position: absolute; left: calc(100% - .15rem); top: 1.6rem; bottom: 1.6rem; width: 1.75rem; display: flex; flex-direction: column; gap: .3rem; }
.bk-tab { flex: 1; min-height: 0; border: 0; border-radius: 0 .45rem .45rem 0; padding: 0; cursor: pointer; writing-mode: vertical-rl; font: 700 .58rem var(--font); letter-spacing: .04em; color: #2b3340; opacity: .85; box-shadow: 1px 2px 4px rgba(0,0,0,.12); transition: transform .2s var(--ease), opacity .2s; }
.bk-tab:hover { opacity: 1; transform: translateX(2px); } .bk-tab.is-on { opacity: 1; transform: translateX(3px); font-weight: 800; }
.bk-tab.t-0 { background: #cfe8d8; } .bk-tab.t-1 { background: #e4d5ea; } .bk-tab.t-2 { background: #f6e3b4; } .bk-tab.t-3 { background: #cfe0f3; } .bk-tab.t-4 { background: #f6cfc9; } .bk-tab.t-5 { background: #cfe8d8; } .bk-tab.t-6 { background: #cfe8d8; } .bk-tab.t-7 { background: #e4d5ea; } .bk-tab.t-8 { background: #f6e3b4; } .bk-tab.t-9 { background: #cfe0f3; }
.bk-prev, .bk-next { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--ink-100); background: #fff; color: var(--slate); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); }
body.dark .bk-prev, body.dark .bk-next { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.bk-prev svg, .bk-next svg { width: 1.1rem; height: 1.1rem; }
.bk-prev:hover, .bk-next:hover { border-color: var(--sage-500); }
.bk-count { margin: -1.1rem auto 0; width: max-content; position: relative; z-index: 2; padding: .35rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--ink-100); font-size: .78rem; font-weight: 700; color: var(--slate); box-shadow: 0 6px 16px -8px rgba(0,0,0,.3); }
body.dark .bk-count { background: #242b35; border-color: rgba(255,255,255,.14); color: #fff; }
@media (max-width: 700px) { .bk-stage { grid-template-columns: 1fr; padding: 1rem .6rem 1.4rem; } .bk-prev, .bk-next { display: none; } .bk-sheet { padding: 1.6rem 1.4rem 2rem 2.2rem; } .bp-row { grid-template-columns: 6rem 1fr; } .bk-tabs { width: 1.35rem; } .bk-tab { font-size: .5rem; } .bp-two { grid-template-columns: 1fr 4.5rem; } }
@media (prefers-reduced-motion: reduce) { .bk-page.is-on { animation: none; } }
.has-menu > span.nav-link { cursor: default; }
.bk-sheet h3, .bk-sheet h4, body.dark .bk-sheet h3, body.dark .bk-sheet h4 { color: #1d2229; }

/* Resident Binder: real page turns around the spine */
.bk-book { perspective: 2400px; perspective-origin: 50% 50%; }
.bk-pages { position: relative; aspect-ratio: 17 / 22; transform-style: preserve-3d; }
.bk-page { position: absolute; inset: 0; display: block !important; transform-origin: 0% 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform; animation: none !important;
  transition: transform .8s cubic-bezier(.55, .06, .22, 1); }
.bk-page.is-turned { transform: rotateY(-180deg); }
.bk-page .bk-sheet { aspect-ratio: auto; position: absolute; inset: 0; }
/* the shadow that sweeps across a page as it lifts */
.bk-page::after { content: ""; position: absolute; inset: 0; border-radius: .2rem; pointer-events: none; opacity: 0; transition: opacity .8s ease;
  background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,.04) 30%, rgba(0,0,0,0) 60%); }
.bk-page.is-turning::after { opacity: 1; }
/* the page beneath darkens a touch near the spine while a page is lifting over it */
.bk-page.is-under::after { opacity: .6; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0) 35%); }
.bk-count { transition: opacity .2s ease; }
@media (prefers-reduced-motion: reduce) { .bk-page { transition: none; } .bk-page::after { transition: none; } }
/* the page lifts toward the reader as it turns, over the page beneath */
.bk-pages { transform-style: flat; }
.bk-page.is-turned { transform: rotateY(180deg); }
/* a page turn you can watch: longer, evenly paced, seen in perspective */
.bk-book { perspective: none; }
.bk-pages { perspective: 2000px; perspective-origin: 50% 50%; }
.bk-page { transition: transform 1.05s cubic-bezier(.42, .05, .36, 1); }
.bk-page::after { transition: opacity 1.05s ease; }

/* Resident Binder: two-sided sheets turning around the rings, as in Careific */
.bk-stage { perspective: 2600px; }
.bk-book { perspective: none; }
.bk-pages { perspective: none; transform-style: preserve-3d; }
.bk-page { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.42, .05, .3, 1); will-change: transform; display: block !important; animation: none !important; }
.bk-page.is-turned { transform: rotateY(-180deg); }
.bk-page.is-turned:not(.is-turning) { visibility: hidden; }
.bk-page.is-turning { z-index: 900 !important; }
.bk-page::after { content: none; }
.bk-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 3px 8px 8px 3px; background: #fff; box-shadow: 0 2px 14px rgba(20,20,25,.16); overflow: hidden; }
.bk-front .bk-sheet { position: absolute; inset: 0; aspect-ratio: auto; box-shadow: none; border-radius: inherit; }
.bk-back { transform: rotateY(180deg); background: #fbfaf7; display: flex; align-items: center; justify-content: center; }
.bk-back img { width: 5.5rem; height: 5.5rem; opacity: .10; }
.bk-page.is-turning .bk-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.14), rgba(0,0,0,0) 30%); animation: bkCurlShade .75s ease; pointer-events: none; }
@keyframes bkCurlShade { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 0; } }
/* the rings sit over the spine, above every page */
.bk-rings { z-index: 950; left: -.6rem; }
.bk-foot-nav { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: -1.1rem; position: relative; z-index: 2; }
.bk-foot-nav .bk-count { margin: 0; }
.bk-home { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--ink-100); font: 700 .78rem var(--font); color: var(--slate); cursor: pointer; box-shadow: 0 6px 16px -8px rgba(0,0,0,.3); }
.bk-home svg { width: .9rem; height: .9rem; }
.bk-home:hover { border-color: var(--sage-500); color: var(--sage-700); }
body.dark .bk-home { background: #242b35; border-color: rgba(255,255,255,.14); color: #fff; } body.dark .bk-home:hover { color: var(--sage-300); }
@media (prefers-reduced-motion: reduce) { .bk-page { transition: none; } .bk-page.is-turning .bk-front::after { animation: none; } }
/* Resident Binder on the page's own canvas, no stage color */
.bk-stage, body.dark .bk-stage { background: transparent; border-radius: 0; padding: 1.5rem 0; }
/* crisp at rest: 3D only exists while a page is turning */
.bk-stage, body.dark .bk-stage { perspective: none; }
.bk-pages { transform-style: flat; }
.bk-page { transform-style: flat; will-change: auto; }
.bk-face { backface-visibility: visible; -webkit-backface-visibility: visible; }
.bk:not(.is-flipping) .bk-back { visibility: hidden; }
.bk.is-flipping .bk-stage { perspective: 2600px; }
.bk.is-flipping .bk-pages { transform-style: preserve-3d; }
.bk.is-flipping .bk-page { transform-style: preserve-3d; will-change: transform; }
.bk.is-flipping .bk-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.split--media-left .split-media { order: -1; }
@media (max-width: 980px) { .split--media-left .split-media { order: 0; } }
/* AI Insights guard-rail tiles: the homepage's lavender lift on hover */
.guard-grid .any-tile { transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease; }
.guard-grid .any-tile:hover, .guard-grid .any-tile:focus-visible { transform: translateY(-4px); border-color: var(--lav-500); box-shadow: 0 24px 50px -24px rgba(125,93,146,.55); outline: none; }
@media (hover: none) { .guard-grid .any-tile:hover { transform: none; } }

/* ---------- The Resident Binder, shown as stills (the live binder is kept for walkthroughs) ---------- */
.bs { max-width: 72rem; margin: clamp(1.5rem, 4vw, 3rem) auto 0; }
.bs-spread { display: block; }
.bs-spread img { display: block; width: 100%; height: auto; }
.bs-spread { position: relative; }
/* James's photo sits in the Face Sheet's photo box; the still carries a soft silhouette underneath */
.bs-spread .bs-photo { position: absolute; display: block; object-fit: cover; left: 86.535%; top: 15.128%; width: 6.761%; height: 13.181%; }
@media (max-width: 699.98px) { .bs-spread { max-width: 22rem; margin-inline: auto; } .bs-spread .bs-photo { left: 77.946%; top: 15.135%; width: 13.673%; height: 13.194%; } }
