/* =========================================================
   S GROUP — v2
   Concept: the plant lifecycle (Set up, Run, Protect, Certify).
   Bright white pages, cool mist surfaces, brand violet + sky
   from the S-mark, colour photography, rounded media frames.
   ========================================================= */

@font-face { font-family: "Bricolage Grotesque"; src: url(../fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(../fonts/public-sans.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #ffffff;
  --mist: #f3f4f9;
  --mist-2: #e8eaf4;
  --ink: #15153a;
  --slate: #575c76;
  --line: #e1e4ee;
  --violet: #4f46b5;
  --violet-deep: #3b3392;
  --violet-soft: #ecebfa;
  --sky: #2fa9e2;
  --sky-soft: #e3f3fb;
  --signal: #e59a00;
  --signal-soft: #fff4dc;
  --ok: #1f8a5b;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r-lg: 28px;
  --r: 16px;
  --r-sm: 10px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 2px rgba(21, 21, 58, .04), 0 12px 32px -12px rgba(21, 21, 58, .14);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet-deep); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type scale ---------- */
.t-hero { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 5.1rem); font-weight: 720; letter-spacing: -.022em; line-height: 1; }
.t-1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.7rem); font-weight: 700; letter-spacing: -.02em; }
.t-2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.7rem); font-weight: 680; letter-spacing: -.016em; }
.t-3 { font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--slate); max-width: 58ch; }
.muted { color: var(--slate); }
.small { font-size: .92rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--violet); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--mist { background: var(--mist); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(36px, 5vw, 60px); }
.head > div { max-width: 760px; display: grid; gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split > * { min-width: 0; }
.stack { display: grid; gap: 20px; align-content: start; }
.stack-lg { display: grid; gap: 32px; align-content: start; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1.1 var(--body); text-decoration: none; cursor: pointer; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--violet); color: #fff; box-shadow: 0 8px 20px -8px rgba(79, 70, 181, .6); }
.btn--primary:hover { background: var(--violet-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--violet-deep); }
.btn--light:hover { background: var(--sky-soft); color: var(--violet-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.chip--auth::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.chip--approved { background: var(--signal-soft); color: #7a5300; }
.chip--approved svg { width: 15px; height: 15px; color: var(--signal); }
.chip--stage { background: var(--violet-soft); color: var(--violet-deep); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; padding-top: env(safe-area-inset-top, 0px); }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(21, 21, 58, .3); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { height: 40px; width: auto; }
.brand b { font-family: var(--display); font-size: 1.32rem; font-weight: 750; letter-spacing: -.02em; line-height: 1; }
.brand small { display: block; font-family: var(--body); font-size: .68rem; font-weight: 500; color: var(--slate); letter-spacing: .02em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav__drop > button { color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 999px; font: 500 .97rem/1 var(--body); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .2s; }
.nav > a:hover, .nav__drop > button:hover, .nav__drop.open > button { background: var(--mist); }
.nav > a[aria-current="page"], .nav__drop > button[aria-current="page"] { color: var(--violet); }
.nav__drop { position: relative; }
.nav__drop > button svg { width: 14px; height: 14px; transition: transform .3s; }
.nav__drop.open > button svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 12px); left: 50%; width: min(1040px, 92vw); transform: translate(-42%, 8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 1.1fr; gap: 24px; }
.nav__drop.open .mega { opacity: 1; visibility: visible; transform: translate(-42%, 0); }
.mega h4 { font-family: var(--body); font-size: .8rem; font-weight: 700; color: var(--slate); letter-spacing: .02em; margin-bottom: 10px; }
.mega ul { display: grid; gap: 2px; }
.mega a { display: block; padding: 8px 10px; margin-inline: -10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; line-height: 1.3; }
.mega a:hover { background: var(--mist); color: var(--violet); }
.mega__cta { background: var(--violet-soft); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; align-content: start; }
.mega__cta p { font-size: .92rem; color: var(--slate); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta .tel { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.header-cta .btn { padding: 11px 20px; font-size: .95rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 16px; } .menu-toggle span:nth-child(2) { top: 21px; } .menu-toggle span:nth-child(3) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.drawer { position: fixed; inset: 0; top: calc(77px + env(safe-area-inset-top, 0px)); z-index: 90; background: #fff; overflow-y: auto; padding: 20px var(--gutter-r) 40px var(--gutter); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.menu-open .drawer { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary, .drawer > a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-family: var(--display); font-size: 1.4rem; font-weight: 650; color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; border-bottom: 1px solid var(--line); }
.drawer details summary { border-bottom: 0; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details ul { padding: 0 0 16px; display: grid; gap: 4px; }
.drawer details a { color: var(--slate); text-decoration: none; padding: 6px 0; display: block; }
.drawer .btn { margin-top: 24px; width: 100%; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; background: radial-gradient(closest-side, rgba(47, 169, 226, .12), transparent 70%); z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto auto -30% -20%; width: 55vw; height: 55vw; background: radial-gradient(closest-side, rgba(79, 70, 181, .1), transparent 70%); z-index: -1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero h1 .w { display: inline-block; }
.hero .lede { margin-top: 26px; }
.hero .btn-row { margin-top: 34px; }
.hero__media { position: relative; }
.hero__frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--mist-2); box-shadow: var(--shadow); }
.hero__frame video, .hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 4px; font-size: .9rem; max-width: 260px; }
.float-card b { font-family: var(--display); font-size: 1.05rem; font-weight: 650; }
.float-card--a { left: -28px; bottom: 36px; }
.float-card--b { right: -18px; top: 30px; }
.float-card .row { display: flex; align-items: center; gap: 10px; }
.float-card .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--signal-soft); color: var(--signal); flex: none; }
.float-card .ico svg { width: 20px; height: 20px; }
.float-card .ico--ok { background: #e3f5ec; color: var(--ok); }
.trust { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--slate); font-size: .92rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--violet); }

/* ---------- Logo marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 56px; width: max-content; animation: marquee 80s linear infinite; padding-block: 8px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 44px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .3s, opacity .3s; }
.marquee img:hover { filter: none; opacity: 1; }
.logos-caption { text-align: center; color: var(--slate); font-size: .92rem; margin-bottom: 22px; }

/* ---------- Alert band (OSH Code) ---------- */
.alert { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; padding: 22px 26px; border-radius: var(--r-lg); background: linear-gradient(100deg, var(--violet-soft), var(--sky-soft)); }
.alert__badge { padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--violet-deep); font-weight: 700; font-size: .82rem; }
.alert p { font-size: 1.02rem; }
.alert b { font-family: var(--display); font-weight: 650; }

/* ---------- Lifecycle ---------- */
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; margin-bottom: 28px; }
.stages::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.stages .rail { position: absolute; left: 0; top: 23px; height: 2px; background: linear-gradient(90deg, var(--violet), var(--sky)); width: 0; transition: width .6s var(--ease); }
.stage-tab { position: relative; background: none; border: 0; text-align: left; padding: 0 16px 0 0; cursor: pointer; font: inherit; color: var(--slate); }
.stage-tab .num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-family: var(--display); font-weight: 700; color: var(--slate); position: relative; z-index: 1; transition: all .35s var(--ease); }
.stage-tab b { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-top: 16px; letter-spacing: -.01em; }
.stage-tab span.d { display: block; font-size: .92rem; margin-top: 4px; max-width: 26ch; }
.stage-tab[aria-selected="true"] .num { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 0 0 6px var(--violet-soft); }
.stage-tab:hover .num { border-color: var(--violet); }
.stage-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-top: 12px; }
.stage-panel[hidden] { display: none; }
.svc-card { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .25s, box-shadow .3s, transform .3s var(--ease); }
.svc-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.svc-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; }
.svc-card .ico svg { width: 24px; height: 24px; }
.svc-card h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.01em; }
.svc-card p { color: var(--slate); font-size: .95rem; line-height: 1.5; }
.svc-card .link-arrow { margin-top: 4px; font-size: .92rem; color: var(--violet); }

/* ---------- Navigator ---------- */
.nav-tool { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.nav-tool__q { padding: clamp(24px, 4vw, 44px); background: var(--ink); color: #fff; display: grid; gap: 26px; align-content: start; }
.nav-tool__q h2 { color: #fff; }
.nav-tool__q .muted { color: rgba(255, 255, 255, .7); }
.q { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; }
.q legend { font-weight: 600; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-size: .92rem; transition: all .2s; }
.opt input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.opt:hover span { border-color: rgba(255, 255, 255, .6); }
.nav-tool__a { padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; align-content: start; }
.nav-tool__a h3 { font-size: 1.3rem; }
.result-list { display: grid; gap: 10px; }
.result { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--mist); animation: pop .4s var(--ease) both; }
.result .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; margin-top: 1px; }
.result .tick svg { width: 14px; height: 14px; }
.result b { display: block; font-weight: 600; font-size: .98rem; line-height: 1.35; }
.result small { color: var(--slate); font-size: .85rem; }
.result a { font-size: .85rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.disclaimer { font-size: .82rem; color: var(--slate); }

/* ---------- Proof / stats ---------- */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.proof--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proof__item { padding: 28px 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.proof__item b { font-family: var(--display); font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.2rem); font-weight: 750; letter-spacing: -.03em; line-height: 1; color: var(--violet); font-variant-numeric: tabular-nums; }
.proof__item span { color: var(--slate); font-size: .95rem; line-height: 1.45; }
.media-frame { border-radius: var(--r-lg); overflow: hidden; background: var(--mist-2); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.collage { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(380px, 46vw, 560px); }
.collage .media-frame:first-child { grid-row: span 2; }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ind { display: grid; gap: 14px; padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; }
.ind:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; color: var(--ink); }
.ind b { font-family: var(--display); font-size: 1.1rem; font-weight: 650; }
.ind .logos { display: flex; gap: 10px; align-items: center; height: 30px; }
.ind .logos img { height: 26px; width: auto; max-width: 64px; object-fit: contain; filter: grayscale(1); opacity: .7; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { padding: 26px 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; position: relative; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--violet); background: var(--violet-soft); border-radius: 999px; padding: 4px 10px; justify-self: start; }
.step h3 { font-size: 1.15rem; font-weight: 650; }
.step p { color: var(--slate); font-size: .95rem; line-height: 1.55; }

/* ---------- Leadership ---------- */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.person .ph { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: linear-gradient(170deg, var(--mist), var(--mist-2)); }
.person .ph img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.person h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 650; letter-spacing: 0; margin-top: 16px; }
.person .role { color: var(--violet); font-size: .88rem; font-weight: 600; margin-top: 4px; }
.person p { color: var(--slate); font-size: .9rem; margin-top: 8px; line-height: 1.5; }
.founder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--mist); }
.founder .ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5; background: var(--mist-2); }
.founder .ph img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.quote { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 600; line-height: 1.22; letter-spacing: -.015em; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 24px 22px; color: var(--slate); max-width: 72ch; }

/* ---------- CTA + form ---------- */
.cta-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); background: linear-gradient(135deg, var(--violet) 0%, #3d58c9 55%, var(--sky) 130%); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta-panel::after { content: ""; position: absolute; right: -40px; bottom: -80px; width: 280px; aspect-ratio: 180/415; background: url(../img/s-mark-light.png) center/contain no-repeat; opacity: .16; z-index: -1; }
.cta-panel h2 { color: #fff; }
.cta-panel .lede { color: rgba(255, 255, 255, .85); }
.cta-panel .contact-quick { display: grid; gap: 10px; margin-top: 8px; }
.cta-panel .contact-quick a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.cta-panel .contact-quick svg { width: 18px; height: 18px; }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; background: #fff; color: var(--ink); padding: clamp(20px, 3vw, 32px); border-radius: var(--r); position: relative; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .88rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--mist); border: 1.5px solid transparent; border-radius: var(--r-sm); padding: 12px 14px; transition: border-color .2s, background .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: #fff; }
.field .err { font-size: .82rem; color: #b42318; }
.field.invalid input, .field.invalid textarea { border-color: #b42318; }
.form .btn { width: 100%; }
.form-note { font-size: .82rem; color: var(--slate); }
.form-status { grid-column: 1 / -1; padding: 12px 14px; border-radius: var(--r-sm); background: #e3f5ec; color: #14532d; font-size: .95rem; }

/* ---------- Page hero (inner) ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--slate); margin-bottom: 22px; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--violet); }
.page-hero { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 50vw; height: 50vw; background: radial-gradient(closest-side, rgba(47, 169, 226, .1), transparent 70%); z-index: -1; }
.page-hero .lede { margin-top: 22px; }
.page-hero .chips { margin-top: 22px; }
.page-hero .btn-row { margin-top: 30px; }
.page-hero__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5/4; background: var(--mist-2); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

/* ---------- Service detail ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-radius: var(--r); border: 1px solid var(--line); background: #fff; margin-top: -40px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.facts > div { padding: 22px 24px; display: grid; gap: 4px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: .82rem; font-weight: 600; color: var(--slate); }
.facts dd { margin: 0; font-weight: 600; line-height: 1.4; }
.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.scope li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--mist); line-height: 1.45; }
.scope li svg { width: 22px; height: 22px; color: var(--violet); margin-top: 1px; }
.scope-group + .scope-group { margin-top: 28px; }
.scope-group h3 { font-family: var(--body); font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--slate); }
.needs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.needs li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.needs li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--sky); margin-top: .55em; flex: none; transform: rotate(45deg); }
.side-card { position: sticky; top: 100px; padding: 26px; border-radius: var(--r-lg); background: var(--mist); display: grid; gap: 14px; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-layout > * { min-width: 0; }
.tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabs [role="tab"] { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: 600 .95rem var(--body); color: var(--ink); transition: all .2s; }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs [role="tabpanel"] > p { margin-bottom: 16px; color: var(--slate); }
.tabs [role="tabpanel"] .scope { grid-template-columns: 1fr; }

/* ---------- Article ---------- */
.article { max-width: 760px; }
.article h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 48px 0 16px; }
.article p { margin-bottom: 16px; }
.article ul.bullets { margin: 0 0 20px; display: grid; gap: 10px; }
.article ul.bullets li { padding-left: 22px; position: relative; }
.article ul.bullets li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.compare { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--mist); font-weight: 700; }
.table-wrap { overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--line); }
.callout { padding: 18px 20px; border-radius: var(--r); background: var(--signal-soft); color: #5a3d00; font-size: .95rem; margin: 24px 0; }
.sources { font-size: .88rem; color: var(--slate); display: grid; gap: 6px; }

/* ---------- Clients page ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: 500 .92rem var(--body); color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ind-block { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding-block: 36px; border-top: 1px solid var(--line); }
.ind-block[hidden] { display: none; }
.ind-block h2 { font-size: 1.4rem; }
.ind-block .uses { margin-top: 12px; display: grid; gap: 6px; font-size: .9rem; }
.ind-block .uses a { text-decoration: none; }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.logo-wall div { height: 96px; border-radius: var(--r-sm); background: var(--mist); display: grid; place-items: center; padding: 14px 18px; }
.logo-wall img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-cards > div { padding: 20px 22px; border-radius: var(--r); background: var(--mist); display: grid; gap: 4px; }
.contact-cards b { font-size: .85rem; color: var(--slate); font-weight: 600; }
.contact-cards a, .contact-cards p { font-size: 1.08rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-cards a:hover { color: var(--violet); }
.contact-page .form { background: var(--mist); }
.contact-page .field input, .contact-page .field select, .contact-page .field textarea { background: #fff; }
.map { margin-top: 0; height: clamp(320px, 40vw, 480px); border-radius: var(--r-lg); overflow: hidden; background: var(--mist-2); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); padding-top: clamp(64px, 8vw, 96px); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 36px; }
.footer-grid h4 { font-family: var(--body); font-size: .85rem; font-weight: 700; color: var(--slate); margin-bottom: 14px; }
.footer-grid ul { display: grid; gap: 8px; font-size: .93rem; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--violet); }
.footer-grid address { font-style: normal; font-size: .93rem; line-height: 1.65; color: var(--slate); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--slate); }
.wa { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 80; width: 54px; height: 54px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(31, 168, 85, .6); transition: transform .3s var(--ease); }
.wa:hover { transform: scale(1.06); color: #fff; }
.wa svg { width: 28px; height: 28px; }

/* ---------- Motion ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav, .header-cta .tel { display: none; }
  .menu-toggle { display: block; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .svc-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
@media (max-width: 880px) {
  .hero__grid, .split, .nav-tool, .cta-panel, .founder, .contact-grid { grid-template-columns: 1fr; }
  .hero__frame { aspect-ratio: 4 / 3.4; }
  .float-card--a { left: 12px; bottom: 12px; }
  .float-card--b { right: 12px; top: 12px; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  .stages::before, .stages .rail { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr; margin-top: 0; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .scope { grid-template-columns: 1fr; }
  .ind-block { grid-template-columns: 1fr; gap: 16px; }
  .alert { grid-template-columns: 1fr; }
  .collage { height: 420px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header-cta .btn { display: none; }
  .brand small { display: none; }
  .steps, .proof, .proof.proof--2 { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-card { max-width: 210px; font-size: .82rem; padding: 12px 14px; }
  .float-card--b { display: none; }
  .result { grid-template-columns: 24px minmax(0, 1fr); }
  .result a { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.footer-base a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-base a:hover { color: var(--violet); }
