/* =========================================================
   LIFEBETIC AGENCY — Design system
   Layout concept: Swiss editorial grid on a cool clinical ground,
   with navy "deep-tissue" sections for conviction moments and
   real product interfaces as the imagery.
   ========================================================= */

:root {
  /* Color */
  --color-navy: #071A2B;
  --color-navy-2: #0C2740;
  --color-navy-3: #12324F;
  --color-blue: #1267E5;
  --color-blue-hover: #0E57C4;
  --color-accent: #3B82F6;
  --color-teal: #18B6A4;
  --color-teal-soft: #E3F6F3;
  --color-background: #F7F9FC;
  --color-surface: #FFFFFF;
  --color-mist: #EEF3FA;
  --color-text: #0B1728;
  --color-muted: #65758B;
  --color-line: #E1E7F0;
  --color-line-strong: #CBD5E3;
  --color-on-dark: #EAF1FA;
  --color-on-dark-muted: #8FA3BC;
  --color-line-dark: rgba(255, 255, 255, .09);
  --color-warn: #E8A33A;

  /* Type */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-display: clamp(2.6rem, 1.1rem + 3.7vw, 4.75rem);
  --fs-h2: clamp(2rem, 1.2rem + 2.8vw, 3.6rem);
  --fs-h2-xl: clamp(2.4rem, 1.2rem + 4.2vw, 5rem);
  --fs-h3: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
  --fs-lead: clamp(1.1rem, 1rem + .45vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-micro: .72rem;

  /* Space */
  --space-2xs: .25rem;
  --space-xs: .5rem;
  --space-sm: .875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: clamp(5rem, 3rem + 7vw, 9.5rem);
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1320px;

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-ui: 0 1px 2px rgba(7, 26, 43, .06), 0 18px 48px -18px rgba(7, 26, 43, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;

  color-scheme: light;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--color-blue); color: #fff; }

:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--color-teal); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--color-navy); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography helpers ---------- */
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
  line-height: 1.4;
}
.mono-label.accent { color: var(--color-blue); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--color-blue);
  margin-bottom: var(--space-md);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.hero .eyebrow::before { display: none; }
.eyebrow-dark { color: var(--color-teal); }
.display { font-size: var(--fs-display); font-weight: 700; letter-spacing: -.045em; line-height: .98; }
.h2 { font-size: var(--fs-h2); letter-spacing: -.035em; line-height: 1.04; max-width: 18ch; }
.h2-xl { font-size: var(--fs-h2-xl); letter-spacing: -.045em; line-height: 1; max-width: 14ch; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--color-text); max-width: 34ch; font-weight: 500; letter-spacing: -.01em; }
.section-intro { color: var(--color-muted); font-size: var(--fs-lead); line-height: 1.5; max-width: 40ch; letter-spacing: -.005em; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--color-navy); --btn-fg: #fff; --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .975rem; letter-spacing: -.005em; line-height: 1;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn .arrow { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover .arrow, .text-link:hover .arrow, .service-link:hover .arrow, .service:hover .service-link .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--color-blue); }
.btn-primary:hover { --btn-bg: var(--color-blue-hover); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--color-text); --btn-bd: var(--color-line-strong); }
.btn-ghost:hover { --btn-bd: var(--color-text); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--color-navy); }
.btn-light:hover { --btn-bg: var(--color-teal-soft); }
.btn-sm { min-height: 40px; padding: .55rem 1rem; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.arrow path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.text-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--color-blue); }
.text-link .arrow { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.text-link:hover { color: var(--color-blue-hover); }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; padding-top: env(safe-area-inset-top, 0px); }
.scroll-progress span { display: block; height: 2px; width: 100%; background: linear-gradient(90deg, var(--color-blue), var(--color-teal)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
  transition: padding .35s var(--ease);
}
.header-inner {
  display: flex; align-items: center; gap: var(--space-md);
  min-height: 56px;
  border: 1px solid transparent; border-radius: 999px;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), max-width .45s var(--ease), padding .35s var(--ease);
}
.site-header.is-scrolled { padding-top: calc(env(safe-area-inset-top, 0px) + 10px); }
.site-header.is-scrolled .header-inner {
  max-width: 1180px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-color: rgba(7, 26, 43, .08);
  box-shadow: 0 10px 30px -18px rgba(7, 26, 43, .35);
  padding-inline: 8px 8px; padding-left: 22px;
}
.logo { display: inline-flex; align-items: baseline; gap: .35rem; font-weight: 800; letter-spacing: .02em; color: var(--color-navy); line-height: 1; white-space: nowrap; }
.logo-main { font-size: 1.12rem; letter-spacing: .06em; }
.logo-sep { color: var(--color-teal); font-weight: 500; }
.logo-sub { font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .2em; color: var(--color-muted); }
.logo-light { color: #fff; }
.logo-light .logo-sub { color: var(--color-on-dark-muted); }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: .25rem; }
.nav a {
  position: relative; display: inline-flex; padding: .55rem .8rem; border-radius: 999px;
  font-size: .925rem; font-weight: 500; color: var(--color-text);
  transition: color .2s, background-color .2s;
}
.nav a:hover { background: rgba(18, 103, 229, .07); color: var(--color-blue); }
.nav a.is-active { color: var(--color-blue); }
.nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--color-teal); }
.header-cta { margin-left: .5rem; }

.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; align-items: center; justify-content: center; background: var(--color-navy); color: #fff; }
.menu-icon { position: relative; width: 18px; height: 10px; }
.menu-icon i { position: absolute; left: 0; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-icon i:first-child { top: 0; }
.menu-icon i:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--color-background);
  padding: calc(env(safe-area-inset-top, 0px) + 96px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-lg);
  overflow-y: auto;
  animation: menuIn .35s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-links li { border-bottom: 1px solid var(--color-line); }
.mobile-links a { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; font-size: clamp(1.8rem, 8vw, 2.4rem); font-weight: 700; letter-spacing: -.035em; color: var(--color-navy); }
.mobile-links span { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; color: var(--color-blue); letter-spacing: .08em; }
.mobile-menu-foot { display: grid; gap: var(--space-sm); justify-items: center; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header .header-inner { background: transparent; border-color: transparent; box-shadow: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--space-2xl); }
.section-head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.split-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-lg); align-items: end; }
.split-head > * { min-width: 0; }
.split-head .text-link { justify-self: end; }

.dark { background: var(--color-navy); color: var(--color-on-dark); }
.dark .h2, .dark h3 { color: #fff; }
.muted-dark { color: var(--color-on-dark-muted); }
.dark-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--color-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line-dark) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  opacity: .7;
}

/* ---------- Reveal (content is visible at rest; motion only adds offset) ---------- */
.motion-ok [data-reveal] { transition: transform .9s var(--ease), opacity .9s var(--ease); }
.motion-ok [data-reveal].is-pending { transform: translateY(26px); opacity: .3; }
.motion-ok [data-reveal].is-in { transform: none; opacity: 1; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: calc(env(safe-area-inset-top, 0px) + 150px); padding-bottom: clamp(4rem, 2rem + 5vw, 7rem); overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 26, 43, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 26, 43, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 0%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -120px; pointer-events: none;
  background: radial-gradient(circle, rgba(59, 130, 246, .16) 0%, rgba(24, 182, 164, .06) 40%, transparent 68%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { margin-bottom: var(--space-md); color: var(--color-navy); max-width: 15ch; }
.hl { color: var(--color-blue); }
.hl-end { position: relative; display: inline-block; white-space: nowrap; }
.hl-trace { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .2em; overflow: visible; }
.hl-trace path { fill: none; stroke: var(--color-teal); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 0; }
.motion-ok .hl-trace path { animation: trace 2.2s .5s var(--ease) both; }
@keyframes trace { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
.hero .lead { margin-bottom: var(--space-lg); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.trust { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .9rem; font-weight: 600; color: var(--color-navy); }
.trust .mono-label { margin-right: .35rem; }
.trust i { font-style: normal; color: var(--color-teal); }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--color-teal); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--color-teal); opacity: 0; }
.motion-ok .pulse-dot::after { animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Mock stages (scale as a unit) ---------- */
.mock { container-type: inline-size; width: 100%; min-width: 0; }
.stage { position: relative; width: 100%; font-size: calc(100cqw / 60); line-height: 1.35; color: var(--color-text); }
.hero-stage { height: 48em; }
.stage-tag { position: absolute; left: 0; top: .2em; font-size: max(1em, 9px); }
.layer { position: absolute; will-change: transform; transition: transform .6s var(--ease); }
.l-dash { left: 0; top: 3.6em; width: 44em; z-index: 1; }
.l-insight { right: 0; top: 0; width: 21em; z-index: 3; }
.l-phone { right: 1.2em; top: 12.5em; width: 15.5em; z-index: 4; }
.l-appts { left: 4.5em; top: 32.5em; width: 25em; z-index: 3; }
.motion-ok .float-a { animation: floatY 7s ease-in-out infinite; }
.motion-ok .float-b { animation: floatY 9s ease-in-out -2s infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.6em); } }

.ui { background: var(--color-surface); border: 1px solid rgba(7, 26, 43, .08); border-radius: 1em; box-shadow: var(--shadow-ui); overflow: hidden; }
.ui-bar { display: flex; align-items: center; gap: 1em; height: 2.3em; padding-inline: 1em; border-bottom: 1px solid var(--color-line); background: #FBFCFE; }
.ui-bar.dark { background: rgba(255, 255, 255, .03); border-color: var(--color-line-dark); }
.dots { display: flex; gap: .35em; }
.dots i { width: .55em; height: .55em; border-radius: 50%; background: var(--color-line-strong); }
.ui-bar.dark .dots i { background: rgba(255, 255, 255, .15); }
.ui-url { font-family: var(--font-mono); font-size: .72em; color: var(--color-muted); background: var(--color-mist); padding: .2em .8em; border-radius: 99em; }
.ui-bar.dark .ui-url { background: rgba(255, 255, 255, .06); color: var(--color-on-dark-muted); }
.ui-label { font-family: var(--font-mono); font-size: .66em; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); line-height: 1.4; }
.ui-title { font-weight: 700; font-size: 1.15em; letter-spacing: -.02em; color: var(--color-navy); }

.dash-body { display: flex; }
.dash-side { width: 3.4em; padding: 1em 0; display: flex; flex-direction: column; align-items: center; gap: .9em; border-right: 1px solid var(--color-line); }
.dash-side b { width: 1.5em; height: 1.5em; border-radius: .4em; background: var(--color-navy); margin-bottom: .6em; }
.dash-side i { width: 1.2em; height: 1.2em; border-radius: .35em; background: var(--color-mist); }
.dash-side i.on { background: var(--color-blue); }
.dash-main { flex: 1; padding: 1.3em 1.5em 1.4em; min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.1em; }
.seg { display: inline-flex; background: var(--color-mist); border-radius: 99em; padding: .2em; font-family: var(--font-mono); font-size: .62em; }
.seg span { padding: .35em .8em; border-radius: 99em; color: var(--color-muted); }
.seg span.on { background: #fff; color: var(--color-navy); box-shadow: 0 1px 2px rgba(7, 26, 43, .1); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; margin-bottom: 1em; }
.kpi { display: flex; flex-direction: column; gap: .25em; padding: .85em 1em; border: 1px solid var(--color-line); border-radius: .7em; }
.kpi strong { font-size: 1.9em; font-weight: 700; letter-spacing: -.04em; color: var(--color-navy); line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi strong small { font-size: .45em; font-weight: 600; color: var(--color-muted); letter-spacing: 0; }
.delta { font-family: var(--font-mono); font-size: .6em; color: var(--color-muted); }
.delta.up { color: var(--color-teal); }
.chart-card { border: 1px solid var(--color-line); border-radius: .7em; padding: .9em 1em .6em; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5em; }
.legend { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-mono); font-size: .6em; color: var(--color-muted); }
.legend i { width: .9em; height: .6em; background: rgba(24, 182, 164, .25); border-radius: 2px; }
.g-line { stroke: var(--color-line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.g-line.dashed { stroke-dasharray: 3 4; stroke: #D3DCE8; }
.g-txt { font-family: var(--font-mono); font-size: 8px; fill: #8494A8; }
.g-txt.dk { fill: #6E84A0; }
.g-path { fill: none; stroke: var(--color-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.g-dot { fill: #fff; stroke: var(--color-blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
.g-dot.live { fill: var(--color-teal); stroke: #fff; }
.motion-ok .g-dot.live { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(24, 182, 164, 0)); } 50% { filter: drop-shadow(0 0 5px rgba(24, 182, 164, .9)); } }
.motion-ok .g-path.draw { stroke-dasharray: 600; animation: draw 2.4s .3s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }

.ui-insight { padding: 1.1em 1.2em; border-radius: .9em; }
.insight-top { display: flex; align-items: center; gap: .6em; margin-bottom: .55em; }
.ai-badge { display: inline-grid; place-items: center; min-width: 2em; height: 1.5em; padding: 0 .4em; border-radius: .4em; font-family: var(--font-mono); font-size: .62em; font-weight: 500; color: #fff; background: linear-gradient(135deg, var(--color-blue), var(--color-teal)); }
.insight-text { font-size: .92em; font-weight: 600; color: var(--color-navy); line-height: 1.35; letter-spacing: -.01em; margin-bottom: .8em; }
.insight-foot { display: flex; justify-content: space-between; align-items: center; }
.insight-foot .ui-label { color: var(--color-blue); text-transform: none; letter-spacing: 0; font-size: .7em; }
.conf { display: inline-flex; gap: .2em; }
.conf i { width: .9em; height: .3em; border-radius: 1em; background: var(--color-teal); }
.conf i.off { background: var(--color-line); }

.phone { background: var(--color-navy); border-radius: 2.4em; padding: .55em; box-shadow: 0 2px 4px rgba(7, 26, 43, .1), 0 30px 60px -20px rgba(7, 26, 43, .45); position: relative; }
.phone-notch { position: absolute; top: 1em; left: 50%; width: 4.5em; height: 1.1em; margin-left: -2.25em; background: var(--color-navy); border-radius: 1em; z-index: 2; }
.phone-screen { background: var(--color-surface); border-radius: 1.9em; padding: 3em 1.2em 1.3em; min-height: 30em; display: flex; flex-direction: column; gap: 1em; }
.ring { position: relative; width: 9.5em; height: 9.5em; margin: .2em auto 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--color-mist); stroke-width: 7; }
.ring-arc { fill: none; stroke: var(--color-teal); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: calc(264 * (1 - var(--p, .68))); transition: stroke-dashoffset 1.2s var(--ease); }
.ring-arc.teal { stroke: var(--color-teal); }
.ring-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ring-val strong { font-size: 2.3em; font-weight: 800; letter-spacing: -.05em; color: var(--color-navy); font-variant-numeric: tabular-nums; }
.ring-val span { font-family: var(--font-mono); font-size: .58em; color: var(--color-muted); }
.ring-val em { font-style: normal; font-size: .62em; font-weight: 600; color: var(--color-teal); margin-top: .3em; }
.p-rows { display: grid; gap: .55em; }
.p-row { display: flex; align-items: center; gap: .7em; padding: .55em .65em; border-radius: .7em; background: var(--color-background); }
.p-row b { display: block; font-size: .72em; font-weight: 700; color: var(--color-navy); }
.p-row small { display: block; font-size: .62em; color: var(--color-muted); }
.p-ico { width: 1.7em; height: 1.7em; border-radius: .5em; flex: none; }
.c-blue { background: rgba(18, 103, 229, .14); box-shadow: inset 0 0 0 .35em rgba(18, 103, 229, .0), inset 0 0 0 .55em transparent; }
.c-blue { background: radial-gradient(circle at 50% 50%, var(--color-blue) 0 28%, rgba(18, 103, 229, .14) 30%); }
.c-teal { background: radial-gradient(circle at 50% 50%, var(--color-teal) 0 28%, rgba(24, 182, 164, .16) 30%); }
.c-navy { background: radial-gradient(circle at 50% 50%, var(--color-navy) 0 28%, rgba(7, 26, 43, .1) 30%); }
.p-bars { display: flex; align-items: flex-end; gap: .35em; height: 3em; padding-top: .3em; }
.p-bars i { flex: 1; height: var(--h); border-radius: .25em .25em .1em .1em; background: linear-gradient(var(--color-accent), rgba(59, 130, 246, .35)); }

.ui-appts { padding: 1.1em 1.2em .6em; }
.appts-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .6em; }
.ui-appts li { display: grid; grid-template-columns: 3em 2em 1fr auto; align-items: center; gap: .7em; padding: .6em 0; border-top: 1px solid var(--color-line); }
.ui-appts time { font-family: var(--font-mono); font-size: .68em; color: var(--color-muted); }
.av { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--color-mist); color: var(--color-blue); font-size: .62em; font-weight: 700; }
.av2 { background: var(--color-teal-soft); color: #0E8A7C; }
.av3 { background: #F1ECFB; color: #6B4FC8; }
.who { font-size: .76em; font-weight: 700; color: var(--color-navy); line-height: 1.2; }
.who small { display: block; font-weight: 500; color: var(--color-muted); font-size: .85em; }
.pill { display: inline-flex; align-items: center; padding: .25em .65em; border-radius: 99em; font-family: var(--font-mono); font-size: .58em; background: var(--color-mist); color: var(--color-muted); white-space: nowrap; }
.pill.ok { background: var(--color-teal-soft); color: #0B7F72; }
.pill.video { background: rgba(18, 103, 229, .1); color: var(--color-blue); }

/* =========================================================
   INDUSTRIES
   ========================================================= */
.industries { border-block: 1px solid var(--color-line); background: var(--color-surface); }
.industries-inner { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: var(--space-lg); align-items: center; padding-block: 2.2rem; }
.industries h2 { color: var(--color-navy); }
.industry-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.8rem; }
.industry-list li { position: relative; font-size: clamp(1rem, .85rem + .6vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; color: var(--color-navy); text-transform: uppercase; transition: color .25s; }
.industry-list li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .7rem; vertical-align: .2em; border-radius: 50%; background: var(--color-teal); }
.industry-list li:hover { color: var(--color-blue); }

/* =========================================================
   SERVICES
   ========================================================= */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-navy); border-left: 1px solid var(--color-line); }
.service {
  position: relative; display: flex; flex-direction: column; gap: var(--space-sm);
  padding: 1.75rem 1.6rem 1.6rem; border-right: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line);
  background: transparent; transition: background-color .35s var(--ease);
  min-width: 0;
}
.service::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--color-blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.service:hover { background: var(--color-surface); }
.service:hover::before, .service:focus-within::before { transform: scaleX(1); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.2rem; }
.service-glyph svg { width: 40px; height: 40px; fill: none; stroke: var(--color-navy); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.service:hover .service-glyph svg { stroke: var(--color-blue); }
.service h3 { font-size: var(--fs-h3); color: var(--color-navy); }
.service > p { color: var(--color-muted); font-size: var(--fs-small); line-height: 1.55; min-height: 4.65em; }
.caps { display: flex; flex-direction: column; gap: 0; margin-top: .5rem; border-top: 1px dashed var(--color-line-strong); }
.caps li { font-size: .875rem; font-weight: 500; color: var(--color-text); padding: .5rem 0; border-bottom: 1px dashed var(--color-line); display: flex; align-items: center; justify-content: space-between; transition: color .25s, padding .3s var(--ease); }
.caps li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--color-line-strong); transition: background-color .25s; }
.service:hover .caps li { color: var(--color-navy); }
.service:hover .caps li::after { background: var(--color-teal); }
.service-link { margin-top: auto; padding-top: 1.2rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; color: var(--color-blue); }
.service-link .arrow { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.service-link::after { content: ""; position: absolute; inset: 0; }

/* =========================================================
   EXPERTISE
   ========================================================= */
.expertise { overflow: clip; }
.expertise-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 5vw, 7rem); align-items: start; }
.expertise-sticky { position: sticky; top: 130px; }
.expertise-body { display: grid; gap: var(--space-md); min-width: 0; }
.expertise-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--color-on-dark-muted); max-width: 40ch; }
.expertise-lead.strong { color: #fff; font-weight: 600; }
.pillars { margin-top: var(--space-lg); border-top: 1px solid var(--color-line-dark); }
.pillars li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--color-line-dark); transition: background-color .3s; }
.pillar-num { font-family: var(--font-mono); font-size: .8rem; color: var(--color-teal); padding-top: .3rem; }
.pillars h3 { font-size: var(--fs-h3); margin-bottom: .35rem; letter-spacing: -.02em; }
.pillars p { color: var(--color-on-dark-muted); font-size: var(--fs-small); max-width: 44ch; }

/* =========================================================
   WORK / CASES
   ========================================================= */
.case { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; padding-block: clamp(2rem, 1rem + 2vw, 3.5rem); border-top: 1px solid var(--color-line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-reverse .case-visual { order: 2; }
.case-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; transition: transform .6s var(--ease); }
.case-visual .stage { padding: 4em 4em 0; height: 40em; overflow: hidden; }
.case-visual .stage > .ui { border-bottom-left-radius: 0; border-bottom-right-radius: 0; height: 100%; transition: transform .7s var(--ease); }
.case:hover .case-visual .stage > .ui { transform: translateY(-.6em); }
.case-navy { background: linear-gradient(150deg, var(--color-navy) 0%, #0B3263 100%); }
.case-mist { background: linear-gradient(160deg, #E7EEF8 0%, #D9E6F6 100%); }
.case-blue { background: linear-gradient(150deg, var(--color-blue) 0%, #0A4AAE 100%); }
.case-copy { min-width: 0; }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.1rem; }
.concept-badge { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .55rem; border: 1px solid var(--color-warn); color: #9A6514; border-radius: 4px; }
.case-title { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); letter-spacing: -.045em; color: var(--color-navy); margin-bottom: 1rem; }
.case-copy > p { color: var(--color-muted); font-size: 1.05rem; max-width: 40ch; margin-bottom: 1.4rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.6rem; }
.tags li { font-size: .8rem; font-weight: 600; padding: .35rem .7rem; border: 1px solid var(--color-line-strong); border-radius: 99px; color: var(--color-text); }

/* GlucoSync dark UI */
.ui-dark { background: #0A2238; border-color: rgba(255, 255, 255, .08); color: var(--color-on-dark); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
.ui-dark .ui-title { color: #fff; }
.ui-dark .ui-label { color: var(--color-on-dark-muted); }
.gs-body { display: grid; grid-template-columns: minmax(0, 1fr) 14em; gap: 1.2em; padding: 1.5em; }
.gs-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1em; }
.chip-dark { font-family: var(--font-mono); font-size: .6em; padding: .35em .8em; border-radius: 99em; background: rgba(255, 255, 255, .06); color: var(--color-on-dark-muted); }
.agp { width: 100%; }
.agp-grid { stroke: rgba(255, 255, 255, .12); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.agp-outer { fill: rgba(59, 130, 246, .16); }
.agp-inner { fill: rgba(59, 130, 246, .36); }
.agp-median { fill: none; stroke: #7FB0FF; stroke-width: 2; vector-effect: non-scaling-stroke; }
.gs-alert { display: flex; align-items: center; gap: .8em; margin-top: 1em; padding: .8em 1em; border-radius: .7em; background: rgba(24, 182, 164, .1); border: 1px solid rgba(24, 182, 164, .25); }
.gs-alert p { font-size: .78em; color: #CFF3EE; }
.gs-side { display: grid; gap: .8em; align-content: start; }
.gs-tile { display: flex; flex-direction: column; gap: .2em; padding: .9em 1em; border-radius: .7em; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.gs-tile strong { font-size: 1.5em; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.gs-tile small { font-size: .65em; color: var(--color-on-dark-muted); }
.gs-tile .bar { display: block; height: .3em; border-radius: 1em; background: rgba(255, 255, 255, .08); margin-top: .5em; overflow: hidden; }
.gs-tile .bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--color-blue), var(--color-teal)); border-radius: 1em; }

/* Shop UI */
.shop-nav { display: flex; align-items: center; gap: 1.4em; padding: 1em 1.5em; border-bottom: 1px solid var(--color-line); font-size: .75em; color: var(--color-muted); font-weight: 600; }
.shop-nav b { font-size: 1.35em; color: var(--color-navy); letter-spacing: -.03em; margin-right: .4em; }
.shop-search { flex: 1; padding: .5em 1em; border-radius: 99em; background: var(--color-background); border: 1px solid var(--color-line); font-weight: 500; font-size: .9em; }
.cart { color: var(--color-navy); }
.shop-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 2em; margin: 1.2em 1.5em; padding: 1.4em 1.6em; border-radius: .8em; background: linear-gradient(120deg, var(--color-navy), #0E3A6B); color: #fff; }
.shop-hero .ui-label { color: #9CC3F5; }
.shop-h { font-size: 1.45em; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; max-width: 15em; margin-top: .3em; }
.shop-btn { display: inline-flex; white-space: nowrap; padding: .6em 1.1em; border-radius: 99em; background: #fff; color: var(--color-navy); font-size: .72em; font-weight: 700; }
.shop-btn.sm { background: var(--color-blue); color: #fff; }
.shop-cats { display: flex; gap: .5em; padding: 0 1.5em; flex-wrap: wrap; }
.shop-cats span { font-size: .68em; font-weight: 600; padding: .4em .9em; border-radius: 99em; border: 1px solid var(--color-line); color: var(--color-muted); }
.shop-cats span.on { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; padding: 1.2em 1.5em 1.5em; }
.prod { border: 1px solid var(--color-line); border-radius: .8em; padding: .7em; display: flex; flex-direction: column; gap: .5em; }
.prod p { font-size: .76em; font-weight: 700; color: var(--color-navy); line-height: 1.25; }
.prod small { display: block; font-weight: 500; color: var(--color-muted); font-size: .88em; }
.prod b { font-size: .82em; color: var(--color-blue); }
.prod-img { position: relative; height: 8em; border-radius: .55em; background: var(--color-background); display: grid; place-items: center; }
.p1 i { width: 4.4em; height: 4.4em; border-radius: 50%; background: radial-gradient(circle, #fff 0 34%, #D7E3F3 36% 100%); box-shadow: 0 .4em 1em rgba(7, 26, 43, .12); }
.p2 { display: flex; justify-content: center; align-items: center; gap: .3em; }
.p2 i { width: 1.9em; height: 1.9em; border-radius: 50%; background: #F6B26B; box-shadow: inset 0 -.25em 0 rgba(0, 0, 0, .08); }
.p3 i { width: 5.5em; height: 3.6em; border-radius: .7em; background: linear-gradient(160deg, #1D4E89, var(--color-navy)); box-shadow: 0 .4em 1em rgba(7, 26, 43, .2); }

/* MedFlow UI */
.mf-body { display: grid; grid-template-columns: 10em minmax(0, 1fr); height: calc(100% - 2.3em); }
.mf-side { display: flex; flex-direction: column; gap: .2em; padding: 1.2em .8em; border-right: 1px solid var(--color-line); background: #FBFCFE; }
.mf-side b { font-size: .95em; letter-spacing: -.02em; color: var(--color-navy); margin: 0 .5em 1em; }
.mf-side span { font-size: .72em; font-weight: 600; color: var(--color-muted); padding: .55em .8em; border-radius: .5em; }
.mf-side span.on { background: rgba(18, 103, 229, .08); color: var(--color-blue); }
.mf-main { padding: 1.4em 1.6em; min-width: 0; }
.mf-h { font-size: 1.6em; font-weight: 700; letter-spacing: -.035em; color: var(--color-navy); margin: .1em 0 .8em; }
.mf-appt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.1em; align-items: center; padding: 1em 1.1em; border-radius: .8em; border: 1px solid var(--color-line); margin-bottom: 1em; }
.mf-date { display: grid; justify-items: center; width: 3.6em; padding: .4em 0; border-radius: .6em; background: var(--color-navy); color: #fff; line-height: 1.1; }
.mf-date span { font-family: var(--font-mono); font-size: .55em; text-transform: uppercase; color: #9CC3F5; }
.mf-date b { font-size: 1.3em; }
.mf-doc { font-size: .9em; font-weight: 700; color: var(--color-navy); }
.mf-sub { font-size: .7em; color: var(--color-muted); }
.mf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.mf-card { border: 1px solid var(--color-line); border-radius: .8em; padding: .9em 1em; }
.steps { display: grid; gap: .45em; margin-top: .6em; }
.steps li { display: flex; align-items: center; gap: .55em; font-size: .7em; font-weight: 600; color: var(--color-muted); }
.steps li::before { content: ""; width: 1.1em; height: 1.1em; border-radius: 50%; border: 1.5px solid var(--color-line-strong); flex: none; }
.steps li.done { color: var(--color-navy); }
.steps li.done::before { background: var(--color-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; border-color: var(--color-teal); }
.labs { display: grid; gap: .1em; margin-top: .5em; }
.labs li { display: flex; justify-content: space-between; align-items: center; font-size: .72em; font-weight: 600; color: var(--color-navy); padding: .45em 0; border-bottom: 1px solid var(--color-line); }
.labs li:last-child { border-bottom: 0; }
.labs .pill { font-size: .8em; }

/* =========================================================
   OUTCOMES
   ========================================================= */
.outcomes { background: var(--color-surface); border-block: 1px solid var(--color-line); }
.outcomes-head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-navy); }
.metric { padding: 1.4rem 1.5rem 0 0; display: flex; flex-direction: column; gap: 1.4rem; border-right: 1px solid var(--color-line); min-width: 0; }
.metric + .metric { padding-left: 1.5rem; }
.metric:last-child { border-right: 0; }
.metric dd { display: flex; flex-direction: column; gap: .8rem; }
.metric-num { font-size: clamp(3rem, 1.8rem + 4vw, 5.6rem); font-weight: 700; letter-spacing: -.06em; line-height: .95; color: var(--color-navy); font-variant-numeric: tabular-nums; }
.metric-num small { font-size: .45em; color: var(--color-blue); letter-spacing: -.02em; margin-left: .05em; }
.metric-words { font-size: clamp(1.45rem, 1.05rem + 1.25vw, 2.15rem); letter-spacing: -.035em; line-height: 1.1; padding-top: .3em; }
.metric-note { color: var(--color-muted); font-size: var(--fs-small); max-width: 24ch; }

/* =========================================================
   PROCESS
   ========================================================= */
.timeline { position: relative; }
.timeline-line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--color-line-strong); }
.timeline-line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-blue), var(--color-teal)); transform-origin: 0 50%; transform: scaleX(var(--tp, 1)); }
.steps-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
.step { position: relative; padding-top: 2.4rem; min-width: 0; }
.step-dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--color-background); border: 1.5px solid var(--color-blue); transition: background-color .4s, box-shadow .4s; }
.step.is-lit .step-dot { background: var(--color-blue); box-shadow: 0 0 0 5px rgba(18, 103, 229, .14); }
.step-num { display: block; font-family: var(--font-mono); font-size: .78rem; color: var(--color-blue); margin-bottom: .6rem; }
.step h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; color: var(--color-navy); margin-bottom: 1rem; }
.step ul { display: grid; gap: .35rem; }
.step li { font-size: .9rem; color: var(--color-muted); }

/* =========================================================
   TECH
   ========================================================= */
.tech { background: var(--color-surface); border-top: 1px solid var(--color-line); }
.tech-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.tech-copy .section-intro { margin-top: var(--space-md); }
.stack { border-top: 1px solid var(--color-navy); min-width: 0; }
.stack-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1.15rem 0; border-bottom: 1px solid var(--color-line); position: relative; }
.stack-row::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--color-teal); opacity: 0; transition: opacity .3s; }
.stack-row:hover::before { opacity: 1; }
.stack-label { transition: padding .3s var(--ease), color .3s; }
.stack-row:hover .stack-label { padding-left: 14px; color: var(--color-navy); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { font-family: var(--font-mono); font-size: .8rem; padding: .45rem .8rem; border-radius: 6px; border: 1px solid var(--color-line-strong); background: var(--color-background); color: var(--color-navy); transition: border-color .25s, color .25s, background-color .25s; }
.chips li:hover { border-color: var(--color-blue); color: var(--color-blue); background: #fff; }
.chips-tight li { font-size: .75rem; padding: .38rem .65rem; }

/* =========================================================
   SEO
   ========================================================= */
.seo { background: linear-gradient(180deg, var(--color-background) 0%, var(--color-mist) 100%); overflow: hidden; }
.seo-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5.5rem); align-items: center; }
.seo-copy .h2 { max-width: 15ch; }
.seo-copy .section-intro { margin-top: var(--space-md); }
.seo-points { display: grid; gap: .55rem; margin: var(--space-md) 0 var(--space-lg); }
.seo-points li { display: flex; gap: .7rem; align-items: baseline; font-weight: 600; font-size: .98rem; color: var(--color-navy); }
.seo-points li::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 2px; background: var(--color-teal); transform: translateY(-1px) rotate(45deg); }
.seo-stage { padding: 0; }
.seo-ui { padding: 1.6em; }
.seo-top { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin-bottom: 1.2em; }
.illus { font-family: var(--font-mono); font-size: .62em; padding: .35em .8em; border-radius: 99em; background: #FFF6E6; color: #8C5A10; border: 1px solid #F3D9A8; white-space: nowrap; }
.seo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9em; }
.seo-card { border: 1px solid var(--color-line); border-radius: .8em; padding: 1em 1.1em; min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6em; }
.s-growth { grid-column: span 4; }
.s-health { grid-column: span 2; display: flex; flex-direction: column; gap: .6em; }
.s-vis { grid-column: span 3; }
.s-opps { grid-column: span 3; }
.s-content { grid-column: span 6; }
.health-ring { position: relative; width: 5.8em; height: 5.8em; margin: .2em auto; }
.health-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.health-ring .ring-track, .health-ring .ring-arc { stroke-width: 6; }
.health-ring .ring-arc { stroke-dasharray: 201; stroke-dashoffset: calc(201 * (1 - var(--p))); }
.ring-txt { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6em; font-weight: 800; color: var(--color-navy); }
.checks { display: grid; gap: .35em; }
.checks li { display: flex; align-items: center; gap: .5em; font-size: .66em; font-weight: 600; color: var(--color-navy); }
.checks li::before { content: ""; width: 1.1em; height: 1.1em; flex: none; border-radius: 50%; background: var(--color-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.vis { display: grid; gap: .7em; margin-top: .8em; }
.vis li { display: grid; gap: .3em; }
.vis span { font-size: .7em; font-weight: 600; color: var(--color-navy); }
.vis i { display: block; height: .45em; border-radius: 1em; background: linear-gradient(90deg, var(--color-blue), var(--color-accent)); width: var(--w); max-width: 100%; }
.vis i { transform-origin: 0 50%; }
.motion-ok .is-in .vis i { animation: grow 1.2s .2s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.opps { display: grid; gap: .1em; margin-top: .6em; }
.opps li { display: flex; justify-content: space-between; align-items: center; gap: .6em; padding: .5em 0; border-bottom: 1px solid var(--color-line); font-size: .7em; font-weight: 600; color: var(--color-navy); }
.opps li:last-child { border-bottom: 0; }
.intent { font-style: normal; font-family: var(--font-mono); font-size: .82em; padding: .2em .6em; border-radius: 99em; background: rgba(18, 103, 229, .1); color: var(--color-blue); white-space: nowrap; }
.intent.info { background: var(--color-mist); color: var(--color-muted); }
.intent.local { background: var(--color-teal-soft); color: #0B7F72; }
.content-rows { display: grid; gap: .2em; margin-top: .5em; }
.content-rows li { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: .45em 0; border-bottom: 1px solid var(--color-line); font-family: var(--font-mono); font-size: .68em; color: var(--color-navy); }
.content-rows li:last-child { border-bottom: 0; }
.spark { display: inline-flex; align-items: flex-end; gap: .25em; height: 1.8em; }
.spark i { width: .6em; height: var(--h); background: var(--color-teal); border-radius: .15em; opacity: .8; }

/* =========================================================
   SAAS
   ========================================================= */
.saas-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 5vw, 7rem); align-items: start; }
.saas-copy { position: sticky; top: 130px; min-width: 0; }
.saas-copy .section-intro { margin-top: var(--space-md); }
.modules { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-line); display: grid; gap: .9rem; }
.pipeline { position: relative; counter-reset: pl; display: grid; gap: 0; min-width: 0; }
.pipeline li {
  position: relative; counter-increment: pl;
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 1.2rem;
  padding: 1.25rem 1.4rem 1.25rem 1.1rem; margin-bottom: 1.4rem;
  border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface);
  transition: border-color .3s, transform .4s var(--ease);
}
.pipeline li::before {
  content: counter(pl, decimal-leading-zero); grid-row: span 2; align-self: center;
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 10px;
  background: var(--color-background); border: 1px solid var(--color-line);
  font-family: var(--font-mono); font-size: .78rem; color: var(--color-blue);
}
.pipeline li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.1rem + 1.6rem); bottom: -1.45rem; width: 1px; height: 1.4rem;
  background: repeating-linear-gradient(var(--color-blue) 0 3px, transparent 3px 6px);
}
.pipeline li:hover { border-color: var(--color-blue); transform: translateX(4px); }
.pl-k { font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; color: var(--color-navy); text-transform: uppercase; }
.pl-d { font-size: .9rem; color: var(--color-muted); }
.pipeline .pl-end { background: var(--color-navy); border-color: var(--color-navy); margin-bottom: 0; }
.pipeline .pl-end::before { background: var(--color-teal); border-color: var(--color-teal); color: var(--color-navy); font-weight: 500; }
.pipeline .pl-end .pl-k { color: #fff; }
.pipeline .pl-end .pl-d { color: var(--color-on-dark-muted); }

/* =========================================================
   AUDIENCE
   ========================================================= */
.audience { background: var(--color-surface); border-top: 1px solid var(--color-line); }
.audience-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-navy); border-left: 1px solid var(--color-line); }
.audience-grid li { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem 1.5rem 1.8rem; min-height: 11rem; border-right: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); transition: background-color .3s; min-width: 0; }
.audience-grid li .mono-label { margin-bottom: auto; padding-bottom: 2rem; }
.audience-grid h3 { font-size: 1.25rem; color: var(--color-navy); letter-spacing: -.02em; }
.audience-grid p { font-size: .9rem; color: var(--color-muted); }
.audience-grid li:hover { background: var(--color-background); }
.audience-grid li:hover .mono-label { color: var(--color-blue); }

/* =========================================================
   DIFFERENTIATION
   ========================================================= */
.diff { overflow: clip; }
.diff-head { position: relative; margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.diff-sub { margin-top: var(--space-md); font-size: var(--fs-lead); color: var(--color-on-dark-muted); max-width: 32ch; }
.diff-sub strong { color: #fff; font-weight: 600; }
.compare { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--color-line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.compare-col { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); min-width: 0; }
.compare-col h3 { margin-bottom: 1.4rem; }
.compare-them h3 { color: var(--color-on-dark-muted); }
.compare-us { background: linear-gradient(160deg, var(--color-navy-3), var(--color-navy-2)); border-left: 1px solid var(--color-line-dark); }
.compare-us h3 { color: var(--color-teal); }
.compare li { display: flex; align-items: center; gap: .9rem; padding: .95rem 0; border-top: 1px solid var(--color-line-dark); font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); font-weight: 600; letter-spacing: -.01em; }
.compare-them li { color: var(--color-on-dark-muted); font-weight: 500; }
.compare-them li::before { content: ""; width: 12px; height: 1px; background: var(--color-on-dark-muted); flex: none; opacity: .6; }
.compare-us li { color: #fff; }
.compare-us li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--color-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23071A2B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/75% no-repeat; }

/* =========================================================
   INSIGHTS
   ========================================================= */
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, .5rem + 1.5vw, 2rem); }
.article { min-width: 0; }
.article-link { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.article-art { aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius-md); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--color-line); background: var(--color-surface); transition: border-color .3s; }
.article-art svg { width: 70%; fill: none; stroke: var(--color-blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.art-2 { background: var(--color-mist); }
.art-2 svg { stroke: var(--color-navy); }
.art-3 { background: var(--color-navy); border-color: var(--color-navy); }
.art-3 svg { stroke: var(--color-teal); }
.article-meta { display: flex; gap: 1rem; padding-top: .4rem; }
.article h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); letter-spacing: -.025em; line-height: 1.2; color: var(--color-navy); transition: color .25s; }
.article-link:hover h3 { color: var(--color-blue); }
.article-link:hover .article-art { border-color: var(--color-blue); }
.article-link:hover .article-art svg { transform: scale(1.06); }

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta-final { position: relative; overflow: hidden; padding-block: clamp(6rem, 4rem + 8vw, 11rem); text-align: left; }
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-glow { position: absolute; inset: -30%; background:
  radial-gradient(40% 40% at 70% 40%, rgba(18, 103, 229, .45), transparent 70%),
  radial-gradient(30% 30% at 85% 75%, rgba(24, 182, 164, .25), transparent 70%); }
.motion-ok .cta-glow { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-6%, 4%, 0); } }
.cta-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, #000 20%, transparent 80%); }
.dp { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--color-teal); box-shadow: 0 0 12px rgba(24, 182, 164, .8); opacity: .8; }
.motion-ok .dp { animation: blink 3.6s var(--d) ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.cta-inner { position: relative; }
.cta-title { font-size: clamp(2.6rem, 1rem + 5.6vw, 6.2rem); font-weight: 700; letter-spacing: -.05em; line-height: .98; color: #fff; max-width: 15ch; }
.cta-title span { color: transparent; background: linear-gradient(90deg, #8FBDFF, var(--color-teal)); -webkit-background-clip: text; background-clip: text; }
.cta-copy { margin: var(--space-md) 0 var(--space-lg); color: var(--color-on-dark-muted); font-size: var(--fs-lead); max-width: 46ch; }
.cta-final .cta-row { gap: 1.25rem 1.75rem; }
.email-copy { display: inline-flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.email-link { font-weight: 600; font-size: 1.1rem; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 2px; transition: border-color .25s; }
.email-link:hover { border-color: var(--color-teal); }
.copy-btn { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .45rem .75rem; min-height: 32px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .2); color: var(--color-on-dark); transition: border-color .25s, background-color .25s; }
.copy-btn:hover { border-color: var(--color-teal); background: rgba(24, 182, 164, .1); }
.copy-status { font-family: var(--font-mono); font-size: .72rem; color: var(--color-teal); }
.cta-note { margin-top: var(--space-lg); color: var(--color-on-dark-muted); font-size: var(--fs-small); display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.text-link-dark { color: var(--color-teal); }
.text-link-dark:hover { color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #04121F; color: var(--color-on-dark-muted); padding-top: clamp(4rem, 3rem + 3vw, 6rem); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 2rem); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--space-lg); padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.footer-tag { margin-top: 1.6rem; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; color: #fff; }
.footer-tag span { color: var(--color-teal); }
.footer-col h2 { color: var(--color-on-dark-muted); margin-bottom: 1.1rem; font-weight: 500; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a, .footer-bottom a { color: var(--color-on-dark); font-size: .95rem; transition: color .2s; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--color-teal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid var(--color-line-dark); font-size: .85rem; }
.footer-bottom ul { display: flex; gap: 1.4rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 1680px) {
  :root { --container: 1440px; }
}

@media (max-width: 1180px) {
  .nav a { padding: .55rem .6rem; font-size: .88rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service > p { min-height: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding-bottom: 2rem; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3) { padding-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--color-line); }
  .steps-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3rem; }
  .timeline-line { display: none; }
  .step { border-top: 1px solid var(--color-line-strong); padding-top: 2rem; }
  .step-dot { top: -8px; }
}

@media (max-width: 1024px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.is-scrolled .header-inner { padding-left: 18px; }
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 128px); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 14ch; }
  .hero-visual { max-width: 760px; }
  .split-head { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .split-head .text-link { justify-self: start; }
  .expertise-inner, .tech-inner, .seo-inner, .saas-inner { grid-template-columns: minmax(0, 1fr); }
  .expertise-sticky, .saas-copy { position: static; }
  .case, .case-reverse { grid-template-columns: minmax(0, 1fr); }
  .case-reverse .case-visual { order: 0; }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries-inner { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .industry-list { justify-content: flex-start; }
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articles { grid-template-columns: minmax(0, 1fr); }
  .article-link { display: grid; grid-template-columns: 9rem minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 1.1rem; row-gap: .4rem; }
  .article-art { grid-row: span 2; aspect-ratio: 4 / 3; }
  .article-meta { padding-top: 0; gap: .7rem; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare-us { border-left: 0; border-top: 1px solid var(--color-line-dark); }
  .stack-row { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .stack-row::before { display: none; }
  .stack-row:hover .stack-label { padding-left: 0; }
}

@media (max-width: 600px) {
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 112px); }
  .hero h1 { letter-spacing: -.04em; }
  .cta-row .btn { flex: 1 1 100%; }
  .trust { font-size: .85rem; }
  /* Mobile hero visual: a cropped, deliberate composition */
  .hero-stage { height: 44em; }
  .l-dash { width: 50em; top: 3em; }
  .l-insight { display: none; }
  .l-phone { width: 19em; top: 15em; right: 0; }
  .l-appts { left: 0; top: 30.5em; width: 32em; }
  .stage-tag { font-size: 9px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service { padding: 1.5rem 1.25rem; }
  .service-top { margin-bottom: 1.2rem; }
  .caps { flex-direction: row; flex-wrap: wrap; gap: .35rem; border-top: 0; }
  .caps li { padding: .3rem .6rem; border: 1px solid var(--color-line); border-radius: 99px; font-size: .8rem; }
  .caps li::after { display: none; }
  .pillars li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .case-visual .stage { padding: 3em 3em 0; height: 44em; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metric, .metric + .metric { padding: 1.5rem 0; border-right: 0; border-top: 1px solid var(--color-line); }
  .metric:first-child { border-top: 0; }
  .metric dd { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 1rem; }
  .metric-num { font-size: 3.4rem; }
  .metric-words { font-size: 1.5rem; }
  .metric-note { text-align: right; max-width: 16ch; font-size: .85rem; }
  /* Vertical timeline on phones */
  .steps-list { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-left: 2rem; position: relative; }
  .steps-list::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--color-line-strong); }
  .step { border-top: 0; padding: 0 0 2rem; }
  .step-dot { left: -2rem; top: 3px; }
  .step h3 { margin-bottom: .6rem; }
  .step ul { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
  .seo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-growth, .s-content, .s-vis, .s-opps { grid-column: span 2; }
  .s-health { grid-column: span 2; flex-direction: row; align-items: center; }
  .s-health .health-ring { margin: 0; }
  .seo-ui { padding: 1.4em; font-size: 1.35em; }
  .seo-top { flex-wrap: wrap; }
  .audience-grid li { min-height: 9.5rem; padding: 1.2rem 1rem 1.3rem; }
  .audience-grid h3 { font-size: 1.05rem; }
  .audience-grid p { font-size: .82rem; }
  .audience-grid li .mono-label { padding-bottom: 1.2rem; }
  .pipeline li { grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: .9rem; padding: 1rem; }
  .pipeline li::before { width: 2.6rem; height: 2.6rem; }
  .pipeline li:not(:last-child)::after { left: calc(1rem + 1.3rem); }
  .article-link { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .article h3 { font-size: 1.05rem; }
  .cta-title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .cta-final .cta-row { flex-direction: column; align-items: stretch; }
  .email-copy { justify-content: center; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

@media (max-width: 400px) {
  .logo-sub { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .layer { transform: none !important; }
}
