/* =========================================================================
   Primary brand system, from "Brand Identity Style Guide" 08/2022
   (brand/brand-guide.pdf). Page refs in comments (p.N).
   ========================================================================= */

/* --- Typography (p.16–18): URW Geometric; fallback Montserrat ----------- */
@font-face { font-family: "URW Geometric"; src: url("../fonts/URWGeometric-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; ascent-override: 98%; descent-override: 36%; line-gap-override: 0%; }
@font-face { font-family: "URW Geometric"; src: url("../fonts/URWGeometric-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; ascent-override: 98%; descent-override: 36%; line-gap-override: 0%; }
@font-face { font-family: "URW Geometric"; src: url("../fonts/URWGeometric-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; ascent-override: 98%; descent-override: 36%; line-gap-override: 0%; }
@font-face { font-family: "URW Geometric"; src: url("../fonts/URWGeometric-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; ascent-override: 98%; descent-override: 36%; line-gap-override: 0%; }
/* Size-matched fallback (Arial scaled to URW Geometric's widths) so text doesn't re-wrap when the web font arrives */
@font-face { font-family: "URW Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); font-weight: 400; size-adjust: 90%; ascent-override: 108%; descent-override: 40%; line-gap-override: 0%; }
@font-face { font-family: "URW Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); font-weight: 500; size-adjust: 90.2%; ascent-override: 108%; descent-override: 40%; line-gap-override: 0%; }
@font-face { font-family: "URW Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"); font-weight: 600; size-adjust: 83.8%; ascent-override: 117%; descent-override: 43%; line-gap-override: 0%; }
@font-face { font-family: "URW Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"); font-weight: 700; size-adjust: 84%; ascent-override: 117%; descent-override: 43%; line-gap-override: 0%; }

:root {
  /* Primary colors + families, lightest → darkest (p.14) */
  --blue-50: #e9f1fb;   --blue-200: #abd0ff;   --blue-400: #4896f9;   --blue: #1125f6;   --blue-700: #1022a0;
  --purple-50: #ede9fb; --purple-200: #c1b4f3; --purple-400: #947ce9; --purple: #6544e0; --purple-700: #4c00c6;
  --aqua-50: #eefbf9;   --aqua-200: #bfebe2;   --aqua-400: #8fdbcd;   --aqua: #60ccb7;   --aqua-700: #2e948e;
  --yellow-50: #fff9db; --yellow-200: #fff2b4; --yellow-400: #ffea80; --yellow: #ffd401; --yellow-700: #ffae03;
  --orange-50: #ffefe8; --orange-200: #fdb89a; --orange-400: #fc834f; --orange: #fb4e03; --orange-700: #c71a00;
  --red-50: #ffdde4;    --red-200: #fc9aae;    --red-400: #f94d72;    --red: #f70235;    --red-700: #ad052d;

  /* Neutral palette (p.15): composition backgrounds are White or Dark Blue */
  --dark-blue: #08173a;
  --white: #fff;
  --grey-50: #ecf0f1;   /* Light Grey, also the filled-cloud tone on p.2–3 */
  --grey-200: #cbd0d4;  /* Medium Grey */
  --grey-400: #8a9298;  /* Dark Grey */
  --grey-700: #50535c;  /* Grey */

  --ink: var(--dark-blue);
  --ink-soft: var(--grey-700);

  --font: "URW Geometric", "URW Fallback", system-ui, sans-serif;

  /* Type scale: guide ratios (Headline L 40/40, Medium 18/24, Body 10/13,
     Subheadline 7/9 tracking 200) scaled for screen */
  --fs-display: clamp(2.75rem, 1.6rem + 4.2vw, 4.75rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .6vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .35vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-eyebrow: .8125rem;

  --radius: 20px;
  --radius-lg: 32px;
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: var(--white); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.5; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.04; letter-spacing: -.015em; }
p { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--blue); color: #fff; padding: .75rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Subheadline: Regular, tracking 200 (p.16) */
.eyebrow { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.lead { font-size: var(--fs-lead); font-weight: 500; line-height: 1.33; }

/* --- Buttons --------------------------------------------------------------*/
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 1rem/1 var(--font); padding: 1rem 1.6rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-outline { border-color: var(--dark-blue); color: var(--dark-blue); }
.btn-outline:hover { background: var(--dark-blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--yellow); color: var(--dark-blue); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --- Utility bar + header -------------------------------------------------*/
.utility { background: var(--dark-blue); color: #fff; font-size: var(--fs-small); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .55rem; }
.utility a { color: #fff; text-decoration: none; font-weight: 500; }
.utility a:hover { text-decoration: underline; }
.utility .pill { border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .2rem .75rem; margin-left: .5rem; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--grey-50); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: 84px; }
/* Clear space = heart width (p.11); logo never recolored/stretched (p.12) */
.logo { display: block; padding: 6px 0; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a { color: var(--dark-blue); text-decoration: none; font-weight: 500; padding: .5rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--blue); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; }

/* --- Announcement: celebratory, not an alert (soft heart-palette tint) -----*/
.announce { background: linear-gradient(90deg, var(--aqua-50), var(--blue-50) 50%, var(--purple-50)); border-bottom: 1px solid rgba(8,23,58,.06); }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: .9rem 1.1rem; padding-block: .7rem; font-size: .95rem; text-align: center; flex-wrap: wrap; }
.announce .tag { display: inline-flex; align-items: center; gap: .4rem; background: var(--yellow); color: var(--dark-blue); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .7rem .3rem .55rem; border-radius: 999px; }
.announce .tag img { width: 16px; height: auto; }
.announce .msg strong { font-weight: 600; }
.announce-cta { display: inline-flex; align-items: center; gap: .35rem; background: var(--blue); color: #fff; font-weight: 600; font-size: .875rem; text-decoration: none; padding: .45rem .95rem; border-radius: 999px; transition: background-color .15s ease; }
.announce-cta:hover { background: var(--blue-700); }
.announce-cta span { transition: transform .15s ease; }
.announce-cta:hover span { transform: translateX(3px); }

/* --- Decorative system: clouds, one-line, connectors (p.2–6, 21, 25) -------*/
.deco { position: absolute; pointer-events: none; }
.cloud-fill { fill: var(--grey-50); }
.cloud-line { fill: none; stroke: var(--grey-200); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }

/* Section connectors: layered wave or cloud bank, optional riding one-line.
   Fills may stretch; the riding stroke keeps a constant weight. */
/* svg overhangs the box by 2px so its bottom fill, not the --top background, meets the next section (no hairline) */
.divider { display: flow-root; background: var(--top); line-height: 0; position: relative; margin-top: -1px; }
.divider svg { margin-bottom: -2px; }
.divider svg { display: block; width: 100%; height: clamp(56px, 8vw, 120px); overflow: visible; }
.divider .front { fill: var(--bottom); }
.divider .back { fill: var(--back, var(--bottom)); opacity: var(--back-op, .38); }
.divider .ride { fill: none; stroke: var(--ride, var(--blue)); stroke-width: 2.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* scale with width so wide screens never crop the cloud tops; narrow screens crop the sides instead */
.divider.clouds svg { height: auto; aspect-ratio: 1440 / 260; min-height: 120px; overflow: hidden; }
.divider.clouds .back { opacity: var(--back-op, .5); }

/* Line art draws in on scroll (paths use pathLength=1) */
.js [data-draw] .ln { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.3,.6,.25,1); }
.js [data-draw].is-drawn .ln { stroke-dashoffset: 0; }
.js .stats[data-draw] .stat:nth-child(2) .ln, .js .communities[data-draw] .community:nth-child(2) .ln { transition-delay: .15s; }
.js .stats[data-draw] .stat:nth-child(3) .ln, .js .communities[data-draw] .community:nth-child(3) .ln { transition-delay: .3s; }
.js .stats[data-draw] .stat:nth-child(4) .ln, .js .communities[data-draw] .community:nth-child(4) .ln { transition-delay: .45s; }
.js .communities[data-draw] .community:nth-child(5) .ln { transition-delay: .6s; }

/* Organic crops from the original site's blob masks */
.blob-1, .blob-2, .blob-3, .blob-4 { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.blob-1 { -webkit-mask-image: url("../brand/mask-01.svg"); mask-image: url("../brand/mask-01.svg"); }
.blob-2 { -webkit-mask-image: url("../brand/mask-02.svg"); mask-image: url("../brand/mask-02.svg"); }
.blob-3 { -webkit-mask-image: url("../brand/mask-03.svg"); mask-image: url("../brand/mask-03.svg"); }
.blob-4 { -webkit-mask-image: url("../brand/mask-04.svg"); mask-image: url("../brand/mask-04.svg"); }

/* --- Hero -----------------------------------------------------------------*/
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 3vw, 2.5rem); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; z-index: 2; }
.hero h1 { font-size: var(--fs-display); margin-block: 1.1rem 1.5rem; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { color: var(--ink-soft); max-width: 34ch; }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.25rem; }
.hero-illu { width: 112%; max-width: none; margin-right: -8%; }

/* --- Section scaffolding --------------------------------------------------*/
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); overflow: hidden; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); margin-top: 1rem; }
.section-head p { margin-top: 1.25rem; color: var(--ink-soft); font-size: 1.125rem; }
.on-dark { background: var(--dark-blue); color: #fff; }
.on-dark .eyebrow { color: var(--aqua-200); }
.on-blue { background: var(--blue); color: #fff; }
.tint-blue { background: var(--blue-50); }

/* --- Hello / mission (mirrors guide p.2) ----------------------------------*/
.hello .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.scene { display: block; width: 100%; height: auto; overflow: visible; }
.hello h2 { font-size: clamp(3.5rem, 2rem + 6vw, 6.5rem); color: var(--orange); letter-spacing: -.02em; margin-top: .5rem; }
.hello .statement { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.32; margin-top: 1.25rem; max-width: 30ch; }
.hello .statement strong { font-weight: 700; }
.hello .sub { margin-top: 1.5rem; color: var(--ink-soft); max-width: 52ch; }
.hello .link-arrow { margin-top: 1.75rem; }
.hello-copy { padding-top: clamp(1rem, 3vw, 3rem); }

/* --- Partners ---------------------------------------------------------------*/
.partners { padding-block: 3.5rem; }
.partners p { text-align: center; color: var(--ink-soft); font-weight: 500; }
.logo-row { display: grid; grid-template-columns: repeat(8, 1fr); align-items: center; justify-items: center; gap: 2rem; margin-top: 2rem; }
.logo-row img { height: 48px; width: 100%; max-width: 128px; object-fit: contain; filter: grayscale(1); mix-blend-mode: multiply; opacity: .8; transition: filter .2s, opacity .2s; }
@media (max-width: 64rem) { .logo-row { grid-template-columns: repeat(4, 1fr); } }
.logo-row img:hover { filter: none; opacity: 1; }

/* --- Products: each product owns a color family (p.14) ----------------------*/
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.product + .product { margin-top: clamp(4rem, 8vw, 7rem); }
.product:nth-child(even) .product-media { order: 2; }
/* Screenshot sits on an organic tinted blob instead of a box */
.product-media { position: relative; padding: clamp(1.75rem, 5vw, 4rem) clamp(1rem, 3vw, 2.5rem); -webkit-mask: none; mask: none; }
.product-media::before { content: ""; position: absolute; inset: 0; background: var(--fam-tint); -webkit-mask: inherit; mask: inherit; }
.product-media.blob-1::before { -webkit-mask: url("../brand/mask-01.svg") center / 100% 100% no-repeat; mask: url("../brand/mask-01.svg") center / 100% 100% no-repeat; }
.product-media.blob-2::before { -webkit-mask: url("../brand/mask-02.svg") center / 100% 100% no-repeat; mask: url("../brand/mask-02.svg") center / 100% 100% no-repeat; }
.product-media.blob-3::before { -webkit-mask: url("../brand/mask-03.svg") center / 100% 100% no-repeat; mask: url("../brand/mask-03.svg") center / 100% 100% no-repeat; }
.product-media img { position: relative; z-index: 1; }
.product h3 { font-size: var(--fs-h2); margin-block: .9rem 1.1rem; }
.product p { color: var(--ink-soft); font-size: 1.125rem; max-width: 46ch; }
.product .points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .65rem; }
.product .points li { display: flex; gap: .7rem; align-items: baseline; }
.product .points li::before { content: ""; flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--fam); transform: translateY(-.05rem); }
.product .name { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1rem; letter-spacing: .02em; color: var(--fam-dark); }
.product .name::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--fam); }
.fam-blue   { --fam: var(--blue);   --fam-dark: var(--blue);       --fam-tint: var(--blue-50); }
/* Aqua text uses #247a75: the guide's darkest aqua (#2e948e) is 3.7:1 on white, below WCAG AA (4.5:1) */
.fam-aqua   { --fam: var(--aqua);   --fam-dark: #247a75;           --fam-tint: var(--aqua-50); }
.fam-purple { --fam: var(--purple); --fam-dark: var(--purple);     --fam-tint: var(--purple-50); }
.fam-orange { --fam: var(--orange); --fam-dark: var(--orange-700); --fam-tint: var(--orange-50); }
.fam-yellow { --fam: var(--yellow); --fam-dark: #7a5a00;           --fam-tint: var(--yellow-50); }
.fam-red    { --fam: var(--red);    --fam-dark: var(--red-700);    --fam-tint: var(--red-50); }

/* --- Stats (on Dark Blue) ---------------------------------------------------*/
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { border-top: 4px solid var(--fam); padding-top: 1.5rem; }
.stat .mono { width: 64px; height: 64px; color: var(--fam); margin-bottom: 1rem; }
.stat .num { font-size: clamp(2.75rem, 1.8rem + 3vw, 4.25rem); font-weight: 700; line-height: 1; color: var(--fam); letter-spacing: -.02em; }
.stat .label { margin-top: .6rem; font-size: 1.125rem; color: #fff; }
.stat.fam-blue { --fam: var(--blue-400); }
.stat.fam-purple { --fam: var(--purple-400); }
.capabilities { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 3.5rem; }
.capabilities span { border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 500; }
.stats-note { margin-top: 1.5rem; color: rgba(255,255,255,.78); max-width: 60ch; font-size: 1.125rem; }
.dark-line { position: absolute; right: 0; bottom: 0; width: 55%; height: auto; overflow: visible; }
.on-dark .cloud-fill, .on-blue .cloud-fill { fill: var(--blue-700); }
.on-dark .cloud-fill { fill: #16295a; }
.on-dark .cloud-line, .on-blue .cloud-line { stroke: rgba(255,255,255,.7); }

/* --- Communities ------------------------------------------------------------*/
.communities { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.community { grid-column: span 2; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--grey-50); transition: transform .2s ease, box-shadow .2s ease; }
.community:nth-child(4), .community:nth-child(5) { grid-column: span 3; }
.community:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(8,23,58,.45); }
/* Image area keeps the first layout's proportions; animated line icon replaces the stock photo */
.community .art { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--fam-tint); color: var(--fam); overflow: hidden; }
.community:nth-child(4) .art, .community:nth-child(5) .art { aspect-ratio: 16 / 8; }
.community .art .mono { position: relative; width: clamp(96px, 34%, 150px); height: auto; aspect-ratio: 1; }
.community.fam-yellow .art { color: #e0b400; }
.community .art .cloud-white { fill: #fff; opacity: .9; }
.community:hover .art .mono { transform: translateY(-4px); transition: transform .3s ease; }
.community .body { padding: 1.5rem 1.6rem 1.75rem; border-top: 6px solid var(--fam); flex: 1; display: flex; flex-direction: column; }
.community h3 { font-size: var(--fs-h3); }
.community p { margin-top: .6rem; color: var(--ink-soft); }
.community .link-arrow { margin-top: auto; padding-top: 1.25rem; color: var(--fam-dark); }

/* --- Testimonials -----------------------------------------------------------*/
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.quote { background: var(--fam-tint); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.75rem); display: flex; flex-direction: column; }
.quote .mark { font-size: 5rem; line-height: .6; font-weight: 700; color: var(--fam); height: 2.2rem; }
.quote blockquote { margin: 0; font-size: 1.1875rem; line-height: 1.45; font-weight: 500; }
.quote figcaption { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(8,23,58,.1); }
.quote { margin: 0; }
.quote figcaption img { width: 64px; height: 64px; object-fit: cover; }
.quote .who { font-weight: 700; }
.quote .role { font-size: var(--fs-small); color: var(--ink-soft); }

/* --- Why us -----------------------------------------------------------------*/
.why .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.why p { color: var(--ink-soft); font-size: 1.125rem; margin-top: 1.25rem; }
.why h2 { font-size: var(--fs-h2); margin-top: 1rem; }
.why .illu { width: 112%; max-width: none; margin-left: -4%; }

/* --- CTA band (Blue, like p.4 / business cards p.27) ------------------------*/
.cta { padding-block: clamp(5rem, 10vw, 8.5rem); text-align: left; }
.cta .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
.cta h2 { font-size: clamp(2.75rem, 1.6rem + 4vw, 4.75rem); }
.cta h2 span { display: block; color: var(--yellow); }
.cta p { margin-top: 1.25rem; font-size: var(--fs-lead); color: rgba(255,255,255,.88); max-width: 38ch; }
.cta .actions { margin-top: 2.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.cta .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--blue); }
.cta .scene { width: 88%; margin-left: auto; }

/* --- Footer (Dark Blue + white logo, p.8) -----------------------------------*/
.site-footer { background: var(--dark-blue); color: rgba(255,255,255,.82); padding-block: 4.5rem 2rem; font-size: .9375rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
.footer-grid h2, .footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 1.5rem; }
.footer-brand address { font-style: normal; line-height: 1.6; }
.social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.social a:hover { background: #fff; color: var(--dark-blue); text-decoration: none; }
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; margin-top: 3rem; }
.footer-badges img { width: auto; display: block; }
.footer-badges .b-hitrust { height: 30px; }
.footer-badges .b-hipaa { height: 64px; }
.footer-badges .b-access { height: 40px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.15); font-size: var(--fs-small); }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* --- Motion -----------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  .js [data-draw] .ln { transition: none; stroke-dashoffset: 0; }
  .btn, .community { transition: none; }
}

/* --- Responsive (keeps the existing 56rem layout switch) --------------------*/
@media (max-width: 64rem) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .communities { grid-template-columns: repeat(2, 1fr); }
  .community, .community:nth-child(4), .community:nth-child(5) { grid-column: span 1; }
  .community:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 56rem) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 84px; left: 0; right: 0; background: #fff; padding: .5rem var(--gutter) 1.25rem; border-bottom: 1px solid var(--grey-50); box-shadow: 0 16px 24px -16px rgba(8,23,58,.25); }
  .nav.open a { padding: .9rem 0; border-bottom: 1px solid var(--grey-50); }
  .hero .wrap, .hello .wrap, .product, .why .wrap, .cta .wrap { grid-template-columns: 1fr; }
  .product:nth-child(even) .product-media { order: 0; }
  .hero-illu { width: 100%; margin: 0; }
  .hello .scene { max-width: 380px; margin-inline: auto; }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta .scene { width: 60%; max-width: 300px; margin: 1rem auto 0; }
  .why .illu { width: 100%; margin: 0; }
}
@media (max-width: 40rem) {
  .utility .find { display: none; }
  .communities { grid-template-columns: 1fr; }
  .community:nth-child(5) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* CTA: balloon scene sits at the bottom so its line runs under the buttons, through the padding */
.cta .wrap { align-items: end; }
.cta { padding-bottom: clamp(7rem, 12vw, 10rem); }
.deco { z-index: 0; }

/* Overlap QA fixes (automated line/text collision audit, 1440 / 900 / 375) */
@media (max-width: 64rem) {
  /* the Hello line's long sweep would run under the wrapped copy: keep the loop inside the art column */
  .hello .scene { overflow: hidden; }
}
@media (max-width: 56rem) {
  /* stacked layout: the stats line would cross the note */
  .dark-line { display: none; }
}
@media (max-width: 80rem) { .hello .scene { overflow: hidden; } }

/* Closing CTA: the balloon line sweeps left beneath the buttons, always layered behind the copy */
.cta .wrap > div:first-child { position: relative; z-index: 2; }
.cta .scene { position: relative; z-index: 1; }
.cta .btn-ghost { background: var(--blue); }
.cta .btn-ghost:hover { background: #fff; }
@media (min-width: 56.01rem) { .cta .wrap > div:first-child { padding-bottom: clamp(2.5rem, 4vw, 3.75rem); } }

/* Homepage hero: animated balloon scene (line draws in, balloon floats, clouds drift, rays pulse, a dot runs the line) */
.hero-scene { display: block; width: 108%; max-width: none; margin-right: -6%; overflow: visible; position: relative; z-index: 1; }
.hero .hero-copy { position: relative; z-index: 2; }
.hero-scene .float { animation: hs-rise 1.4s cubic-bezier(.2,.7,.2,1) both, hs-bob 7s 1.4s ease-in-out infinite; }
.hero-scene .balloon { transform-box: fill-box; transform-origin: 50% 90%; animation: hs-sway 9s 1.4s ease-in-out infinite; }
.hero-scene .ray { transform-box: fill-box; transform-origin: center; opacity: 0; animation: hs-ray 2.8s calc(1.6s + var(--d)) ease-in-out infinite; }
.hero-scene .drift { animation: hs-drift 18s ease-in-out infinite alternate; }
.hero-scene .d2 { animation-duration: 24s; animation-direction: alternate-reverse; }
.hero-scene .d3 { animation-duration: 14s; }
.hero-scene .tail { transition-duration: 2.4s; }
@keyframes hs-rise { from { transform: translateY(46px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hs-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes hs-sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes hs-ray { 0%, 100% { opacity: 0; transform: scale(.6); } 35%, 60% { opacity: 1; transform: scale(1); } }
@keyframes hs-drift { from { transform: translateX(-18px); } to { transform: translateX(22px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-scene .float, .hero-scene .balloon, .hero-scene .drift { animation: none; }
  .hero-scene .ray { animation: none; opacity: 1; }
  .hero-scene .pulse { display: none; }
}
.hello-illu { display: block; width: 100%; max-width: 34rem; height: auto; margin-inline: auto; }
@media (max-width: 56rem) { .hero-scene { width: 100%; margin: 1rem 0 0; } .hello-illu { max-width: 22rem; } }
@media (min-width: 56.01rem) {
  .hero .wrap { align-items: end; }
  .hero { padding-bottom: clamp(4.5rem, 7vw, 6.5rem); }
}
@media (max-width: 56rem) { .hero { padding-bottom: clamp(3.5rem, 9vw, 5rem); } }

/* Homepage 1-2-3: the three jobs as a flow */
.jobs-flow { position: relative; margin: 0 auto clamp(4rem, 8vw, 6.5rem); max-width: 68rem; }
.jobs-line { position: absolute; left: 0; top: 0; width: 100%; height: 64px; overflow: visible; pointer-events: none; }
.jobs-line path, .jobs-loop path { fill: none; stroke: var(--ink, #08173a); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.jobs-loop path { stroke: var(--blue); stroke-dasharray: 2 9; }
.js .jobs-flow .jobs-line, .js .jobs-flow .jobs-loop { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.3,.6,.25,1); }
.js .jobs-flow .jobs-loop { clip-path: inset(0 0 0 100%); transition-delay: 1.1s; }
.js .jobs-flow.is-drawn .jobs-line, .js .jobs-flow.is-drawn .jobs-loop { clip-path: inset(0 0 0 0); }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); position: relative; }
.job a { display: flex; flex-direction: column; align-items: center; height: 100%; color: inherit; text-decoration: none; }
.job-num { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--fam); color: #fff;
  font-size: 1.75rem; font-weight: 700; box-shadow: 0 0 0 8px #fff; transition: transform .25s ease; }
.fam-aqua .job-num { background: var(--aqua); }
.js .jobs-flow .job-num { transform: scale(.4); opacity: 0; transition: transform .45s cubic-bezier(.3,1.5,.5,1), opacity .3s ease; }
.js .jobs-flow.is-drawn .job-num { transform: none; opacity: 1; }
.js .jobs-flow.is-drawn .job:nth-child(2) .job-num { transition-delay: .4s; }
.js .jobs-flow.is-drawn .job:nth-child(3) .job-num { transition-delay: .8s; }
.job-card { margin-top: 1.25rem; flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem;
  padding: 1.75rem 1.5rem 1.6rem; border-radius: var(--radius-lg, 24px); background: var(--fam-tint); transition: transform .25s ease, box-shadow .25s ease; }
.job-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--fam-dark); margin-bottom: .35rem; }
.job-verb { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fam-dark); }
.job-what { font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); font-weight: 700; line-height: 1.25; color: var(--ink); }
.job-how { color: var(--ink-soft); font-size: .975rem; line-height: 1.5; max-width: 28ch; }
.job-more { margin-top: auto; padding-top: .6rem; font-weight: 600; color: var(--fam-dark); }
.job a:hover .job-card, .job a:focus-visible .job-card { transform: translateY(-4px); box-shadow: 0 24px 40px -30px rgba(8,23,58,.45); }
.job a:hover .job-num { transform: scale(1.06); }
.jobs-loop { height: 56px; margin-top: -.25rem; }
.jobs-loop svg { display: block; width: 100%; height: 100%; overflow: visible; }
.jobs-loop-label { text-align: center; margin-top: -.6rem; font-weight: 600; color: var(--blue); }
.loop-ic { display: inline-block; font-size: 1.15em; margin-right: .2rem; }
/* detail rows carry the same numbers */
.product .name .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fam); color: #fff; font-size: .9rem; font-weight: 700; }
.fam-aqua.product .name .n { background: var(--aqua); }
.product .name:has(.n)::before { display: none; }
.product[id] { scroll-margin-top: 7rem; }
@media (max-width: 48rem) {
  .jobs-line, .jobs-loop { display: none; }
  .jobs { grid-template-columns: 1fr; gap: 1.25rem; }
  .jobs::before { content: ""; position: absolute; left: 31px; top: 32px; bottom: 32px; border-left: 2.5px solid var(--ink, #08173a); }
  .job a { flex-direction: row; align-items: flex-start; gap: 1rem; }
  .job-num { flex: none; box-shadow: 0 0 0 6px #fff; }
  .job-card { margin-top: 0; align-items: flex-start; text-align: left; }
  .jobs-loop-label { margin-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .jobs-flow .jobs-line, .js .jobs-flow .jobs-loop { clip-path: none; transition: none; }
  .js .jobs-flow .job-num { transform: none; opacity: 1; transition: none; }
}

/* Logo drawn inline (crisp vector, no image resampling) */
.logo-svg { display: block; height: 34px; width: auto; overflow: visible; }
.footer-brand .logo-svg { margin-bottom: 1.5rem; }
/* whole-pixel utility bar so the sticky header (and its logo) sit on the pixel grid */
.utility .wrap { padding-block: 0; height: 40px; }
.announce .wrap { min-height: 58px; }
.job-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: .2rem 0 .1rem; }
.job-tags span { padding: .25rem .65rem; border-radius: 999px; background: #fff; color: var(--fam-dark); font-size: .8rem; font-weight: 600; line-height: 1.3; }
@media (max-width: 48rem) { .job-tags { justify-content: flex-start; } }

/* H1 keyword line (folded hero eyebrow) */
h1 .kicker { display: block; margin-bottom: 1rem; font-family: inherit; font-size: var(--fs-eyebrow); font-weight: 500; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.on-dark h1 .kicker, .on-blue h1 .kicker { color: var(--aqua-200); }

/* Homepage "Hello" section: one left edge, a calmer type scale, illustration balanced against the copy */
.hello .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2.5rem, 6vw, 5.5rem); }
.hello-copy { padding-top: 0; max-width: 38rem; text-align: left; }
.hello h2 { font-size: clamp(3.25rem, 2rem + 4.5vw, 5.5rem); line-height: .95; margin: .75rem 0 0; }
.hello .statement { text-align: left; margin: 1.5rem 0 0; max-width: 34ch; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.4; font-weight: 400; color: var(--dark-blue); }
.hello .statement strong { display: block; margin-top: .6rem; font-weight: 700; }
.hello .sub { margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--grey-50); max-width: 46ch; font-size: 1.0625rem; line-height: 1.6; }
.hello .link-arrow { display: inline-flex; margin-top: 1.25rem; font-size: 1.0625rem; }
.hello-illu { max-width: 30rem; }
@media (max-width: 56rem) { .hello .wrap { grid-template-columns: 1fr; gap: 1.5rem; } .hello-copy { max-width: none; } .hello .statement { max-width: none; } }
@media (max-width: 56rem) { .hello > .deco, .hello svg.deco { display: none; } }

/* No hanging single words: balance short display text, avoid orphans in body copy */
h1, h2, h3, h4, .eyebrow, .name, .kicker, .statement, .section-head p, .pm-lead, .job-what { text-wrap: balance; }
p, li, dd, figcaption, blockquote, .job-how, .label { text-wrap: pretty; }
