/* Mindlabz site styles (v2 redesign). Plain CSS, no build step.
   Palette comes from the logo: red, charcoal navy, white. */
:root {
  --bg: #ffffff;
  --tint: #f6f7f9;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #55627a;
  --line: #e4e8ef;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-soft: #fef2f2;
  --red-line: #fecaca;
  --navy: #0f172a;
  --on-navy: #f1f5f9;
  --on-navy-muted: #a7b3c9;
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-lg: 28px;
  --r: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 18px 40px -18px rgba(15, 23, 42, 0.22);
  --shadow-red: 0 14px 30px -12px rgba(220, 38, 38, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.015em; }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--red); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(44px, 6vw, 76px) 0; }
.rule { border-top: 1px solid var(--line); }
.tint { background: var(--tint); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--red-soft); border: 1px solid var(--red-line);
  font: 600 0.74rem/1.3 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--red-dark);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.eyebrow span { color: var(--muted); font-weight: 500; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 58ch; margin-top: 20px; }
.head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lede { margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 22px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-dark); }
.btn-primary::after { content: "\2192"; transition: transform 0.2s var(--ease); }
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 11px 18px; font-size: 0.9rem; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.link-arrow { color: var(--red); font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; display: inline-block; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.25s, box-shadow 0.25s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 28px -18px rgba(15, 23, 42, 0.4); }
.bar { display: flex; align-items: center; gap: 30px; height: 76px; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 8px 13px; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { background: var(--red-soft); color: var(--red-dark); }
.bar-end { display: flex; align-items: center; gap: 18px; }
.tel { font: 600 0.92rem var(--sans); text-decoration: none; white-space: nowrap; }
.tel:hover { color: var(--red); }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: 600 0.9rem var(--sans); }
.menu summary::-webkit-details-marker { display: none; }
.menu .burger { width: 18px; height: 12px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); position: relative; }
.menu .burger::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid var(--ink); }
.menu[open] summary { border-color: var(--ink); }
.menu-panel { position: absolute; left: 0; right: 0; top: 76px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 24px; }
.menu-panel a.item { display: block; padding: 15px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 1.3rem var(--display); }
.menu-panel a.item[aria-current="page"] { color: var(--red); }
.menu-panel .menu-foot { display: grid; gap: 12px; margin-top: 20px; }
.menu-panel .tel { font-size: 1.05rem; text-align: center; padding: 6px; }

/* Hero */
.hero { position: relative; padding: clamp(44px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(620px 420px at 88% 8%, rgba(220, 38, 38, 0.13), transparent 70%),
    radial-gradient(520px 380px at 4% 96%, rgba(15, 23, 42, 0.06), transparent 70%),
    radial-gradient(rgba(15, 23, 42, 0.09) 1px, transparent 1px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-media { position: relative; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row li::before { content: "\2713"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-size: 0.66rem; font-weight: 700; }

/* Dashboard illustration in the hero */
.dash { position: relative; background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 40px 80px -36px rgba(15, 23, 42, 0.65); overflow: hidden; }
.dash::after { content: ""; position: absolute; right: -90px; bottom: -110px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(rgba(220, 38, 38, 0.5), transparent 68%); pointer-events: none; }
.dash-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--on-navy-muted); }
.live { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f87171; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(248, 113, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); } }
.dash-main { margin: 26px 0 6px; }
.dash-main small { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-navy-muted); }
.dash-main b { display: block; font: 600 clamp(3.4rem, 7vw, 5rem)/1 var(--display); letter-spacing: -0.04em; color: #fff; margin: 8px 0 6px; }
.dash-main p { font-size: 0.9rem; color: var(--on-navy-muted); max-width: 30ch; }
.spark { width: 100%; height: 86px; margin: 14px 0 4px; display: block; }
.spark .ln { fill: none; stroke: #f87171; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 620; stroke-dashoffset: 0; }
.spark .ar { fill: url(#sparkfill); }
.js .spark .ln { stroke-dashoffset: 620; transition: stroke-dashoffset 2s var(--ease) 0.3s; }
.js .spark .ar { opacity: 0; transition: opacity 1.2s 1.2s; }
.js .dash.in .spark .ln { stroke-dashoffset: 0; }
.js .dash.in .spark .ar { opacity: 1; }
.dash-tiles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.dash-tiles div { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 14px; }
.dash-tiles b { display: block; font: 600 1.55rem/1 var(--display); color: #fff; letter-spacing: -0.02em; }
.dash-tiles span { display: block; margin-top: 6px; font-size: 0.74rem; line-height: 1.35; color: var(--on-navy-muted); }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.chip small { display: block; font-weight: 400; color: var(--muted); font-size: 0.74rem; }
.chip .seal { width: 34px; height: 34px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font: 700 0.62rem var(--sans); border: 1px solid var(--red-line); flex: none; }
.chip-a { left: -26px; bottom: -22px; }
.chip-b { right: -18px; top: 70px; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ISO badge: a certification mark, not a statistic */
.badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 0.86rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.badge .seal { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 0.58rem var(--sans); }
.badge small { color: var(--muted); font-weight: 400; }
.on-green .badge { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.on-green .badge .seal { background: var(--red); }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: clamp(36px, 5vw, 68px) 0 0; }
.page-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 460px; z-index: -1; background: radial-gradient(560px 360px at 90% 0%, rgba(220, 38, 38, 0.11), transparent 70%), radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px) 0 0 / 26px 26px; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.crumbs { font-size: 0.84rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero img { border-radius: var(--r-lg); aspect-ratio: 16 / 11; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.page-hero.wide img { aspect-ratio: 21 / 8; margin-top: 44px; }

/* Partner logos: every logo visible, wrapped, named in alt text */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.logos li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; height: 88px; display: grid; place-items: center; padding: 16px 18px; transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s; }
.logos li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--red-line); }
.logos img { max-height: 50px; max-width: 100%; width: auto; object-fit: contain; }

/* Steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; counter-increment: step; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.steps li:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--red-line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--red); color: #fff; font: 600 1.25rem var(--display); box-shadow: var(--shadow-red); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 53px; left: 88px; right: -22px; border-top: 2px dashed var(--red-line); }
.steps h3 { margin: 20px 0 8px; }
.steps p { color: var(--muted); }

/* Service cards (home) */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; text-decoration: none; overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--red-line); }
.svc::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--red-soft); transition: transform 0.5s var(--ease); z-index: 0; }
.svc:hover::after { transform: scale(1.5); }
.svc > * { position: relative; z-index: 1; }
.svc .ico { width: 54px; height: 54px; border-radius: 16px; background: #fff; border: 1px solid var(--red-line); color: var(--red); display: grid; place-items: center; margin-bottom: 22px; }
.svc .ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc p { color: var(--muted); margin-top: 10px; }
.svc .more { margin-top: auto; padding-top: 22px; color: var(--red); font-weight: 600; font-size: 0.94rem; }
.svc .more::after { content: " \2192"; display: inline-block; transition: transform 0.2s var(--ease); }
.svc:hover .more::after { transform: translateX(5px); }
.svc.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.svc.dark p { color: var(--on-navy-muted); }
.svc.dark::after { background: rgba(220, 38, 38, 0.35); }
.svc.dark .ico { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #f87171; }
.svc.dark .more { color: #f87171; }
.svc.dark .tags li { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); color: var(--on-navy); }

/* Split and service rows (inner pages) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split img { border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.rows { display: grid; gap: 14px; margin-top: clamp(32px, 4vw, 56px); }
.row { display: grid; grid-template-columns: 56px 1fr 1.4fr 44px; gap: 24px; align-items: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.row:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--red-line); }
.row .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); font: 600 0.95rem var(--display); }
.row h3 { padding-top: 8px; transition: color 0.15s; }
.row:hover h3 { color: var(--red); }
.row p { color: var(--muted); }
.row .go { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: 0.2s; }
.row:hover .go { background: var(--red); border-color: var(--red); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 0.78rem; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--muted); background: var(--tint); }

/* Dark band */
.on-green { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; }
.on-green::before { content: ""; position: absolute; left: -160px; top: -200px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(rgba(220, 38, 38, 0.28), transparent 68%); pointer-events: none; }
.on-green > * { position: relative; }
.on-green .lede, .on-green p { color: var(--on-navy-muted); }
.on-green .eyebrow { background: rgba(220, 38, 38, 0.16); border-color: rgba(248, 113, 113, 0.35); color: #fca5a5; }
.on-green h2, .on-green h4 { color: #fff; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.features li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 22px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--r); background: rgba(255, 255, 255, 0.04); transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease); }
.features li:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(248, 113, 113, 0.5); transform: translateX(6px); }
.features .l { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--red); color: #fff; font: 600 0.95rem var(--display); }
.features h4 { margin-bottom: 4px; }
.features.light li { border-color: var(--line); background: var(--card); }
.features.light li:hover { border-color: var(--red-line); background: var(--card); box-shadow: var(--shadow); }
.features.light .l { background: var(--red-soft); color: var(--red); }
.features.light p { color: var(--muted); }
.features.cols { grid-template-columns: repeat(3, 1fr); }
.features.cols li { grid-template-columns: 1fr; }
.features.cols li:hover { transform: translateY(-5px); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.stats li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.stats li:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stats b { display: block; font: 600 clamp(2.6rem, 4.4vw, 3.6rem)/1 var(--display); letter-spacing: -0.04em; }
.stats li:first-child { background: var(--red); border-color: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.stats li:first-child span { color: #fee2e2; }
.stats span { display: block; margin-top: 14px; font-size: 0.92rem; color: var(--muted); max-width: 22ch; }

/* Cards */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--red-line); }
.card .brand-logo { height: 54px; width: auto; margin-bottom: 24px; }
.card h3 { margin: 4px 0 10px; }
.card p { color: var(--muted); }
.card .eyebrow { margin-bottom: 10px; background: var(--tint); border-color: var(--line); color: var(--muted); }
.card .eyebrow::before { background: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.card-foot .reviews { display: flex; gap: 14px; align-items: center; }
.card-foot .reviews img { height: 26px; width: auto; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; }
.quotes figure { margin: 0; background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.quotes figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quotes blockquote { margin: 0; font: 500 1.16rem/1.5 var(--display); letter-spacing: -0.01em; }
.quotes blockquote::before { content: "\201C"; display: block; color: var(--red); font: 700 3.4rem/0.7 var(--display); margin-bottom: 6px; }
.quotes figcaption { margin-top: 20px; font-size: 0.86rem; font-weight: 500; color: var(--muted); }

.cta-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cta-2 > div { padding: clamp(30px, 4vw, 52px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--tint); }
.cta-2 > div:first-child { position: relative; overflow: hidden; background: linear-gradient(135deg, #dc2626, #991b1b); border-color: transparent; color: #fff; box-shadow: var(--shadow-red); }
.cta-2 > div:first-child::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 44px solid rgba(255, 255, 255, 0.09); }
.cta-2 > div:first-child > * { position: relative; z-index: 1; }
.cta-2 > div:first-child p { color: #fee2e2; }
.cta-2 > div:first-child .eyebrow { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.cta-2 > div:first-child .eyebrow::before { background: #fff; }
.cta-2 > div:first-child .btn-primary { background: #fff; color: var(--red-dark); box-shadow: none; }
.cta-2 h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 4px 0 12px; }
.cta-2 p { color: var(--muted); margin-bottom: 26px; max-width: 44ch; }

/* Prose pages */
.wrap.narrow, .wrap.prose { max-width: 820px; }
.legal-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.legal-hero .lede { max-width: none; text-align: left; hyphens: manual; }
.lede a { color: var(--red); white-space: nowrap; }
.legal-hero + .section-tight { padding-top: clamp(28px, 4vw, 44px); }
.prose p { margin-bottom: 1.1em; color: #334155; }
.prose h2 { font-size: 1.6rem; margin: 1.7em 0 0.5em; }
.prose h3 { font-size: 1.2rem; margin: 1.4em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; color: #334155; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--red); hyphens: none; -webkit-hyphens: none; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.facts div { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.facts dt { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--red-dark); }
.facts dd { margin: 8px 0 0; font: 500 1.15rem/1.35 var(--display); letter-spacing: -0.01em; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-list li { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.contact-list small { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 4px; }
.contact-list a, .contact-list span { text-decoration: none; font: 500 1.15rem/1.35 var(--display) !important; }
.contact-list a:hover { color: var(--red); }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; box-shadow: var(--shadow); }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 14px 16px; border: 1px solid #cbd5e1; border-radius: 12px; background: var(--bg); font: 400 1rem var(--sans); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14); }
.form small { color: var(--muted); font-size: 0.82rem; }
.form small a { color: var(--red); }

/* Human check on the contact form */
.captcha { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 18px; margin: 0; background: var(--tint); }
.captcha legend { font-size: 0.86rem; font-weight: 600; padding: 0 6px; }
.captcha legend strong, .captcha-error span { color: var(--red); }
.captcha-opts { display: flex; gap: 12px; margin-top: 6px; }
.captcha-opts label { position: relative; margin: 0; cursor: pointer; }
.captcha-opts input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; padding: 0; cursor: pointer; }
.captcha-opts svg { display: block; width: 62px; height: 62px; padding: 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: border-color 0.15s, background 0.15s, stroke 0.15s, transform 0.15s; }
.captcha-opts label:hover svg { border-color: var(--red-line); transform: translateY(-2px); }
.captcha-opts input:checked ~ svg { border-color: var(--red); background: var(--red-soft); stroke: var(--red); }
.captcha-opts input:focus-visible ~ svg { outline: 3px solid var(--red); outline-offset: 3px; }
.captcha-error { margin-top: 12px; font-size: 0.86rem; font-weight: 600; color: var(--red-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.form-status { padding: 14px 16px; border-radius: 12px; background: var(--red-soft); border: 1px solid var(--red-line); font-size: 0.92rem; font-weight: 500; }
.form-status.ok { background: #f0fdf4; border-color: #bbf7d0; }
.form-status a { color: var(--red); font-weight: 600; }

/* Cookie banner, tick lists, policy table */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 760px; margin-inline: auto; background: var(--navy); color: var(--on-navy); border-radius: var(--r); padding: 22px 24px; box-shadow: 0 30px 70px -20px rgba(15, 23, 42, 0.7); display: grid; gap: 16px; animation: cookie-in 0.5s var(--ease) both; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(24px); } }
.cookie h2 { font-size: 1.15rem; color: #fff; }
.cookie p { font-size: 0.9rem; color: var(--on-navy-muted); margin-top: 6px; }
.cookie a { color: #fca5a5; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie .btn { padding: 12px 20px; font-size: 0.92rem; }
.cookie .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.cookie .btn-ghost:hover { border-color: #fff; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--on-navy); cursor: pointer; }
.linklike:hover { color: #f87171; }
.legal nav { flex-wrap: wrap; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: 0.68rem; font-weight: 700; }
.card a { color: var(--red); }
.ctable { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.94rem; }
.ctable th, .ctable td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.ctable th { background: var(--tint); font-weight: 600; }
.ctable code { font-size: 0.86rem; background: var(--red-soft); padding: 2px 6px; border-radius: 6px; }
@media (max-width: 600px) { .ctable { display: block; overflow-x: auto; } }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding: clamp(52px, 6vw, 84px) 0 28px; font-size: 0.93rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.site-footer .logo img { height: 38px; margin-bottom: 18px; }
.site-footer h2 { font: 600 0.76rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: #7c8aa0; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-navy); text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: #f87171; }
.legal { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.84rem; }
.legal nav { display: flex; gap: 20px; }

/* Tiles: principle cards, growth loop, workstreams */
.grid-4, .grid-3 { display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: tile; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; counter-increment: tile; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--red-line); }
.tile h3 { font-size: 1.22rem; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 0.96rem; }
.numbered .tile::before { content: counter(tile, decimal-leading-zero); display: block; font: 600 0.9rem var(--display); color: var(--red); margin-bottom: 16px; }
.tile .k { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 14px; }
.tile.accent { background: linear-gradient(135deg, #dc2626, #991b1b); border-color: transparent; color: #fff; }
.tile.accent::before { display: none !important; }
.tile.accent p { color: #fee2e2; margin-bottom: 16px; }
.tile.accent .link-arrow { color: #fff; }
.loop .tile:not(:last-child)::after { content: "\2192"; position: absolute; right: -19px; top: 50%; translate: 0 -50%; z-index: 2; display: grid; place-items: center; width: 20px; height: 34px; color: var(--red); font-weight: 700; }
.loop .tile h3 { font-size: 1.5rem; }
.loop-note { margin-top: 26px; padding: 18px 22px; border-radius: var(--r); background: var(--navy); color: #fff; font: 500 1.08rem/1.4 var(--display); display: flex; gap: 12px; align-items: center; }
.loop-note span { color: #f87171; font-size: 1.5rem; line-height: 1; }
.crosses { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.crosses li { position: relative; padding-left: 34px; color: var(--muted); }
.crosses li::before { content: "\2715"; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--red-soft); border: 1px solid var(--red-line); color: var(--red); font-size: 0.68rem; font-weight: 700; }
.split .lede + .lede { margin-top: 16px; }
.split .lede strong { color: var(--ink); }
@media (max-width: 1060px) { .grid-4 { grid-template-columns: 1fr 1fr; } .loop .tile::after { display: none !important; } }
@media (max-width: 700px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

/* Justified body copy: both edges of each paragraph line up. Headings, buttons and labels stay as they are. */
.lede, .prose p, .prose li, .tile p, .card p, .svc p, .steps p, .features p, .row p, .cta-2 p, .dash-main p, .site-footer .foot-grid > :first-child p {
  text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto;
}
.head.center .lede { text-align: center; }

/* Motion (only active when site.js runs and the visitor allows motion) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .logos li[data-reveal] { transform: scale(0.92); }
.js .logos li[data-reveal].in { transform: none; }
.split img, .page-hero img { transition: transform 0.7s var(--ease); }
.split img:hover { transform: scale(1.02); }
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .chip-a { animation: float 6s ease-in-out infinite; }
  .chip-b { animation: float 7s ease-in-out 1s infinite; }
}

/* Responsive */
@media (max-width: 1060px) {
  .nav, .bar-end { display: none; }
  .menu { display: block; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .chip-a { left: -8px; }
  .chip-b { right: -8px; }
  .features.cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .page-hero-grid, .split, .cards-2, .quotes, .cta-2, .contact-grid, .bento, .features.cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 22px; }
  .row .desc { grid-column: 1 / -1; margin-top: 8px; }
  .row .go { display: none; }
  .page-hero.wide img { aspect-ratio: 16 / 9; }
  .chip { position: static; margin-top: 12px; animation: none; }
}
@media (max-width: 520px) {
  .btn-row .btn { width: 100%; }
  .badge small { display: none; }
  .form { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .stats li { padding: 22px 18px; }
  .dash { padding: 20px; }
  .dash-tiles { grid-template-columns: 1fr; }
  .dash-tiles div { display: flex; align-items: baseline; gap: 10px; }
  .dash-tiles span { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
