/* Trusty Hound Tech — main stylesheet */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy: #1B2A44;
  --navy-2: #24375A;
  --teal: #1E7F92;
  --teal-light: #5FB3C4;
  --mist: #E8F2F4;
  --text: #46526A;
  --bg: #FAFBF6;
  --white: #FFFFFF;
  --line: #DCE3E8;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "DM Sans", "Segoe UI", Arial, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --nav-h: 120px;
  --nav-h-small: 76px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h-small); -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-top: var(--nav-h); background: var(--bg); color: var(--text); font: 400 1.0625rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: var(--white); padding: .7rem 1rem; border-radius: 10px; font-weight: 500; text-decoration: none; transition: top .2s; }
.skip:focus { top: 1rem; }
::selection { background: var(--teal-light); color: var(--navy); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 30; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--teal), var(--teal-light)); }

/* ---------- Buttons ---------- */
.btn { --bx: 50%; --by: 50%; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 .95rem/1 var(--font-head); text-decoration: none; padding: 1rem 1.6rem; border-radius: 999px; transition: color .25s, background-color .25s, border-color .25s, transform .4s var(--ease-out), box-shadow .3s; will-change: transform; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(120px circle at var(--bx) var(--by), var(--teal-light), var(--teal) 70%); opacity: 0; transition: opacity .3s; }
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 10px 24px -12px rgba(27,42,68,.6); }
.btn-primary:hover { color: var(--white); box-shadow: 0 16px 30px -14px rgba(30,127,146,.75); }
.btn-ghost { color: var(--navy); border: 1.5px solid var(--navy); background: transparent; }
.btn-ghost::before { background: var(--navy); }
.btn-ghost:hover { color: var(--white); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: rgba(250,251,246,.82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--nav-h); transition: height .45s var(--ease-out); }
.logo-link { display: block; flex: none; border-radius: 12px; }
.logo-link img { height: calc(var(--nav-h) - 16px); width: auto; transition: height .45s var(--ease-out), transform .45s var(--ease-out); }
.logo-link:hover img { transform: rotate(-2deg) scale(1.03); }
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -24px rgba(27,42,68,.5); background: rgba(250,251,246,.9); }
.nav.is-scrolled .wrap { height: var(--nav-h-small); }
.nav.is-scrolled .logo-link img { height: calc(var(--nav-h-small) - 12px); }

.nav-links { list-style: none; display: flex; align-items: center; gap: 2.25rem; margin: 0; padding: 0; }
.nav-links a:not(.btn) { position: relative; color: var(--navy); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .35rem 0; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease-out); }
.nav-links a:not(.btn):hover, .nav-links a.is-active { color: var(--teal); }
.nav-links a:not(.btn):hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-links .btn { padding: .8rem 1.3rem; }

.menu-btn { display: none; position: relative; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; flex: none; }
.menu-btn i { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.menu-btn i:first-of-type { top: 19px; }
.menu-btn i:last-of-type { top: 27px; }
.menu-btn[aria-expanded="true"] i:first-of-type { top: 23px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-of-type { top: 23px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(30,127,146,.16) 1.2px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 10%, transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(2rem, 4vw, 3.5rem); }
.hero-title { font-size: clamp(2.35rem, 1.2rem + 3.9vw, 3.75rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; }
.hero .lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.2rem); margin-top: 1.5rem; max-width: 31rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.25rem; }

.art { position: relative; width: 100%; max-width: 610px; margin: 0 auto; aspect-ratio: 940 / 600; --mx: 0; --my: 0; }
.art-glow { position: absolute; left: 50%; top: 52%; width: 72%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(95,179,196,.45), rgba(95,179,196,0) 68%); filter: blur(10px); }
.art-hounds, .art-circuit { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-hounds img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(27,42,68,.18)); }
.art-hounds { transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 8px), 0); transition: transform .9s var(--ease-out); }
.art-circuit { overflow: visible; transform: translate3d(calc(var(--mx) * -6px), calc(var(--my) * -5px), 0); transition: transform .9s var(--ease-out); }
.art-circuit .t { fill: none; stroke: var(--teal); stroke-width: 8.5; stroke-linecap: round; stroke-linejoin: round; }
.art-circuit .nodes circle { fill: var(--bg); stroke: var(--teal); stroke-width: 7; transform-box: fill-box; transform-origin: center; }
.art-circuit .navy { stroke: var(--navy-2); }
.pulse-dot { fill: var(--white); }
.pulse-halo { fill: var(--teal-light); opacity: .55; }

/* Hero entrance — one orchestrated sequence */
.js .hero-title .w > span { transform: translateY(105%); }
.js .hero .lede, .js .hero .actions { opacity: 0; transform: translateY(14px); }
.js .art-hounds { opacity: 0; scale: .92; }
.js .art-glow { opacity: 0; }
.js .art-circuit .t { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); }
.js .art-circuit .nodes circle { scale: 0; }

.is-loaded .hero-title .w > span { transform: none; transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.is-loaded .hero .lede { opacity: 1; transform: none; transition: opacity .8s, transform .8s var(--ease-out); transition-delay: .45s; }
.is-loaded .hero .actions { opacity: 1; transform: none; transition: opacity .8s, transform .8s var(--ease-out); transition-delay: .6s; }
.is-loaded .art-glow { opacity: 1; transition: opacity 1.4s .2s; }
.is-loaded .art-hounds { opacity: 1; scale: 1; transition: opacity .9s .15s, scale 1.1s .15s var(--ease-spring), transform .9s var(--ease-out); }
.is-loaded .art-circuit .t { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease-out); transition-delay: calc(.75s + var(--i) * 60ms); }
.is-loaded .art-circuit .nodes circle { scale: 1; transition: scale .6s var(--ease-spring); transition-delay: calc(1.25s + var(--i) * 60ms); }

/* ---------- Sections shared ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.85rem, 1.2rem + 2vw, 2.6rem); line-height: 1.14; font-weight: 700; letter-spacing: -0.02em; }
.section-head p { margin-top: 1rem; font-size: clamp(1.03rem, 1rem + .2vw, 1.12rem); }

/* Scroll reveal (subtle) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- What we do ---------- */
.services { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service { --sx: 50%; --sy: 0%; position: relative; isolation: isolate; overflow: hidden; padding: 2.25rem 2rem 2.4rem; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s, opacity .8s var(--ease-out); }
.service::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px circle at var(--sx) var(--sy), rgba(95,179,196,.22), transparent 60%); opacity: 0; transition: opacity .4s; }
.service:hover { transform: translateY(-6px); border-color: rgba(30,127,146,.35); box-shadow: 0 28px 50px -30px rgba(27,42,68,.35); }
.js .service.reveal.is-in:hover { transform: translateY(-6px); }
.service:hover::before { opacity: 1; }
.icon { width: 56px; height: 56px; border-radius: 16px; background: var(--mist); display: grid; place-items: center; margin-bottom: 1.5rem; transition: background-color .4s, transform .5s var(--ease-spring); }
.icon svg { width: 28px; height: 28px; stroke: var(--teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.service:hover .icon { background: var(--teal); transform: rotate(-6deg) scale(1.06); }
.service:hover .icon svg { stroke: var(--white); }
.js .service .icon svg > * { stroke-dasharray: 80; stroke-dashoffset: 80; }
.js .service.is-in .icon svg > * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-out) .25s; }
.service h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .6rem; }

/* ---------- Agencies band ---------- */
.agencies { background: var(--navy); color: #C9D3E2; overflow: hidden; }
.agencies::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at 85% 0%, rgba(95,179,196,.14), transparent 60%), radial-gradient(500px circle at 0% 100%, rgba(30,127,146,.18), transparent 60%); }
.agencies .wrap { position: relative; }
.agencies h2, .agencies h3 { color: var(--white); }
.agencies .section-head p { color: #C9D3E2; }
.circuit { position: absolute; right: -30px; top: 30px; width: 260px; opacity: .3; pointer-events: none; overflow: visible; }
.circuit .traces path { fill: none; stroke: var(--teal-light); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.circuit .nodes circle { fill: none; stroke: var(--teal-light); stroke-width: 5; }
.circuit .pulse-dot { fill: var(--white); }
.circuit .pulse-halo { fill: var(--teal-light); opacity: .8; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; position: relative; }
.step { position: relative; padding-top: 4.5rem; }
.step-num { position: absolute; top: 0; left: 0; z-index: 1; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--teal-light); color: var(--teal-light); background: var(--navy); display: grid; place-items: center; font: 700 1.1rem/1 var(--font-head); transition: background-color .5s, color .5s, box-shadow .5s, transform .6s var(--ease-spring); }
.step-num::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--teal-light); opacity: 0; }
.step-link { position: absolute; top: 23px; left: 60px; right: calc(-2.5rem + 12px); height: 2px; border-radius: 2px; background: rgba(95,179,196,.25); overflow: visible; }
.step-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal-light), rgba(95,179,196,.55)); transform: scaleX(0); transform-origin: 0 50%; }
.step-link i { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(95,179,196,.35), 0 0 14px 4px rgba(95,179,196,.7); opacity: 0; }
.step h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; }
.js .step h3, .js .step p { opacity: 0; transform: translateY(12px); }

.steps.is-in .step h3, .steps.is-in .step p { opacity: 1; transform: none; transition: opacity .7s, transform .8s var(--ease-out); transition-delay: calc(var(--i) * 450ms + 150ms); }
.steps.is-in .step-num { background: var(--teal-light); color: var(--navy); box-shadow: 0 0 0 6px rgba(95,179,196,.15); transition-delay: calc(var(--i) * 450ms); }
.steps.is-in .step-link::before { transform: scaleX(1); transition: transform .5s var(--ease-out); transition-delay: calc(var(--i) * 450ms + 150ms); }
.steps.is-live .step-link i { animation: pulse-x 4.2s var(--ease-out) infinite; animation-delay: calc(var(--i) * 1.4s); }
.steps.is-live .step-num::after { animation: ping 4.2s ease-out infinite; animation-delay: calc(var(--i) * 1.4s); }
@keyframes pulse-x { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 30% { left: 100%; opacity: 1; } 34%, 100% { left: 100%; opacity: 0; } }
@keyframes pulse-y { 0% { top: 0; opacity: 0; } 4% { opacity: 1; } 30% { top: 100%; opacity: 1; } 34%, 100% { top: 100%; opacity: 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 22% { transform: scale(1.7); opacity: 0; } 100% { opacity: 0; } }

.agencies .note { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--navy-2); color: var(--white); font-weight: 500; display: flex; align-items: center; gap: .85rem; }
.agencies .note::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--teal-light); box-shadow: 0 0 0 5px rgba(95,179,196,.18); }

/* ---------- Apps ---------- */
.apps { overflow: hidden; }
.apps .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.apps .section-head { margin-bottom: 2rem; }
.stores { display: flex; flex-wrap: wrap; gap: .75rem; }
.store { display: flex; align-items: center; gap: .7rem; background: var(--navy); color: var(--white); padding: .7rem 1.25rem .7rem 1.05rem; border-radius: 14px; font: 600 .95rem/1.2 var(--font-head); transition: transform .45s var(--ease-out), box-shadow .45s; }
.store:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(27,42,68,.7); }
.store small { display: block; font: 400 .72rem/1.2 var(--font-body); color: #B8C4D6; }
.store svg { width: 22px; height: 22px; fill: var(--white); }

.phones { --mx: 0; --my: 0; position: relative; height: 470px; width: 100%; max-width: 460px; margin: 0 auto; perspective: 1200px; }
.phones::before { content: ""; position: absolute; left: 50%; top: 52%; width: 82%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--mist), rgba(232,242,244,0) 70%); }
.phone { position: absolute; width: 210px; height: 430px; border-radius: 34px; background: var(--navy); padding: 10px; box-shadow: 0 30px 60px -20px rgba(27,42,68,.45), inset 0 0 0 1px rgba(255,255,255,.06); transition: transform 1s var(--ease-out); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 56px; height: 6px; margin-left: -28px; border-radius: 6px; background: rgba(255,255,255,.12); z-index: 1; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 26px; background: var(--white); overflow: hidden; padding: 30px 16px 16px; }
.phone.back { left: 6%; top: 32px; transform: rotate(-6deg) translate3d(calc(var(--mx) * -8px), calc(var(--my) * -6px), 0) rotateY(calc(var(--mx) * 6deg)); animation: float-a 7s ease-in-out infinite; }
.phone.front { left: 40%; top: 0; transform: rotate(4deg) translate3d(calc(var(--mx) * 12px), calc(var(--my) * 9px), 0) rotateY(calc(var(--mx) * 8deg)); animation: float-b 8s ease-in-out infinite; }
@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes float-b { 0%, 100% { translate: 0 -6px; } 50% { translate: 0 8px; } }
.bar { height: 10px; border-radius: 6px; background: var(--line); margin-bottom: 10px; }
.bar.title { width: 55%; height: 14px; background: var(--navy); margin-bottom: 18px; }
.tile { height: 70px; border-radius: 12px; background: var(--mist); margin-bottom: 10px; }
.tile.teal { position: relative; overflow: hidden; background: var(--teal); }
.tile.teal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-100%); animation: shine 4.5s ease-in-out infinite 1.5s; }
@keyframes shine { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.row { display: flex; gap: 8px; }
.row .tile { flex: 1; }
.chart { height: 110px; border-radius: 12px; background: var(--mist); margin-bottom: 12px; display: flex; align-items: flex-end; gap: 8px; padding: 12px; }
.chart i { flex: 1; height: var(--h); background: var(--teal); border-radius: 4px 4px 0 0; transform-origin: 50% 100%; }
.js .chart i { transform: scaleY(0); }
.js .phones.is-in .chart i { transform: scaleY(1); transition: transform 1s var(--ease-spring); }
.js .phones.is-in .chart i:nth-child(2) { transition-delay: .08s; }
.js .phones.is-in .chart i:nth-child(3) { transition-delay: .16s; }
.js .phones.is-in .chart i:nth-child(4) { transition-delay: .24s; }
.js .phones.is-in .chart i:nth-child(5) { transition-delay: .32s; }
.js .phones .phone { opacity: 0; }
.js .phones.is-in .phone { opacity: 1; transition: opacity .9s, transform 1s var(--ease-out); }
.js .phones.is-in .phone.front { transition-delay: .15s; }

/* ---------- Promise ---------- */
.promise { background: var(--white); }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.promise-grid > div { position: relative; padding-top: 1.35rem; }
.promise-grid > div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--line); }
.promise-grid > div::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--teal); transform-origin: 0 50%; }
.js .promise-grid > div::after { transform: scaleX(0); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms + 150ms); }
.js .promise-grid > div.is-in::after { transform: scaleX(1); }
.promise-grid h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }

/* ---------- Contact ---------- */
.contact { padding: var(--section-y) 0; }
.contact-card { position: relative; isolation: isolate; background: var(--mist); border-radius: 28px; padding: clamp(2.25rem, 5vw, 4rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 4vw, 3rem); align-items: center; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; z-index: -1; width: 520px; aspect-ratio: 1; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(95,179,196,.35), rgba(95,179,196,0) 65%); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-80px, 60px); } }
.contact-card h2 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.4rem); line-height: 1.15; }
.contact-card p { margin-top: 1rem; font-size: 1.1rem; }
.address { position: relative; background: var(--white); border-radius: 20px; padding: 2rem 2rem 2rem 2.25rem; font-style: normal; line-height: 1.8; box-shadow: 0 24px 50px -32px rgba(27,42,68,.4); transition: transform .5s var(--ease-out), box-shadow .5s; }
.address::before { content: ""; position: absolute; left: 0; top: 2rem; bottom: 2rem; width: 3px; border-radius: 3px; background: linear-gradient(var(--teal), var(--teal-light)); }
.address:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 32px 60px -32px rgba(27,42,68,.5); }
.address strong { display: block; font: 600 1.05rem/1.4 var(--font-head); color: var(--navy); margin-bottom: .5rem; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #AEBACC; padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom)); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.wordmark { font: 700 1.25rem/1 var(--font-head); color: var(--white); text-decoration: none; }
.wordmark span { color: var(--teal-light); font-weight: 600; }
footer a { color: #D6DEEA; }
footer a:hover { color: var(--white); }
.legal p + p { margin-top: .25rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .circuit { width: 200px; right: -60px; opacity: .2; }
}
@media (max-width: 1100px) {
  .nav-links { gap: 1.6rem; }
  .promise-grid { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 2rem; }
  .apps .wrap { gap: 2.5rem; }
}
@media (max-width: 900px) {
  :root { --nav-h: 88px; --nav-h-small: 68px; }
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -30px rgba(27,42,68,.5);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .45s var(--ease-out), visibility 0s .45s; max-height: calc(100dvh - var(--nav-h-small)); overflow-y: auto; }
  .nav.is-open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .45s var(--ease-out); }
  .nav-links li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .4s var(--ease-out); }
  .nav.is-open .nav-links li { opacity: 1; transform: none; }
  .nav.is-open .nav-links li:nth-child(2) { transition-delay: .04s; }
  .nav.is-open .nav-links li:nth-child(3) { transition-delay: .08s; }
  .nav.is-open .nav-links li:nth-child(4) { transition-delay: .12s; }
  .nav-links a:not(.btn) { display: block; padding: 1rem 0; font-size: 1.1rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links li.nav-cta { border: 0; padding-top: 1.25rem; }
  .nav-links .btn { width: 100%; padding: 1.05rem 1.3rem; }
  .nav.is-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--line); }

  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-bg { -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 80%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 90% 50% at 50% 80%, #000 10%, transparent 70%); }
  .art { max-width: 480px; }
  .service-grid, .steps { grid-template-columns: 1fr; }
  .service-grid { gap: 1rem; }
  .apps .wrap, .contact-card { grid-template-columns: 1fr; }
  .phones { height: 450px; }

  /* Steps become a vertical timeline */
  .steps { gap: 2.25rem; }
  .step { padding: .55rem 0 0 4.25rem; min-height: 48px; }
  .step-link { top: 60px; left: 23px; right: auto; bottom: calc(-2.25rem + 12px); width: 2px; height: auto; }
  .step-link::before { transform: scaleY(0); transform-origin: 50% 0; background: linear-gradient(var(--teal-light), rgba(95,179,196,.55)); }
  .steps.is-in .step-link::before { transform: scaleY(1); }
  .step-link i { left: 50%; top: 0; margin: -5px 0 0 -5px; }
  .steps.is-live .step-link i { animation-name: pulse-y; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { width: 100%; }
  .promise-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .service { padding: 1.75rem 1.5rem 1.9rem; }
  .phones { height: 400px; max-width: 360px; }
  .phone { width: 172px; height: 360px; border-radius: 30px; }
  .phone .screen { border-radius: 22px; padding: 26px 13px 13px; }
  .phone.back { left: 2%; }
  .phone.front { left: 42%; }
  .chart { height: 90px; }
  .tile { height: 56px; }
  .contact-card { border-radius: 22px; }
  .address { padding: 1.6rem 1.6rem 1.6rem 1.9rem; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .phones { height: 360px; }
  .phone { width: 150px; height: 315px; }
  .phone.front { left: 40%; }
}
@media (hover: none) {
  .service:hover, .js .service.reveal.is-in:hover, .address:hover, .store:hover { transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero .lede, .js .hero .actions, .js .art-hounds, .js .art-glow, .js .phones .phone, .js .step h3, .js .step p { opacity: 1; transform: none; scale: 1; }
  .js .hero-title .w > span, .js .chart i { transform: none; }
  .js .art-circuit .t { stroke-dashoffset: 0; }
  .js .art-circuit .nodes circle { scale: 1; }
  .js .service .icon svg > * { stroke-dashoffset: 0; }
  .js .promise-grid > div::after { transform: scaleX(1); }
  .step-link::before { transform: none !important; }
  .pulses, .step-link i { display: none; }
}

/* ---------- Privacy / simple pages ---------- */
.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--section-y); }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.page .updated { margin-top: .75rem; color: #6B778C; font-size: .95rem; }
.page .body { margin-top: 2rem; }
.page .body > p { margin-top: 1rem; }
.page h2 { font-size: 1.2rem; font-weight: 600; margin: 2.5rem 0 .25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.page .back { display: inline-flex; margin-top: 3rem; }
.nav-simple .nav-links { position: static; visibility: visible; opacity: 1; transform: none; flex-direction: row; padding: 0; background: none; border: 0; box-shadow: none; }
.nav-simple .nav-links li { opacity: 1; transform: none; border: 0; padding: 0; }
.nav-simple .nav-links .btn { width: auto; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.notfound img { width: min(380px, 80vw); margin: 0 auto 1.5rem; }
.notfound p { margin: .75rem auto 2rem; max-width: 26rem; }

/* ---------- Detailed app screens (v5) ---------- */
.phones { height: 510px; max-width: 500px; }
.phone { width: 232px; height: 474px; border-radius: 38px; container-type: inline-size; }
.phone.back { left: 1%; top: 34px; }
.phone.front { left: 50%; top: 0; }
.phone .screen.app { display: flex; flex-direction: column; padding: 0 1.15em .9em; border-radius: 29px; font: 400 4.2cqw/1.35 var(--font-body); color: var(--text); background: linear-gradient(180deg, #F6FAFB 0%, var(--white) 32%); }
.phone::before { top: 15px; width: 64px; height: 18px; margin-left: -32px; border-radius: 12px; background: var(--navy); }
.app b, .app strong { font-family: var(--font-head); color: var(--navy); font-weight: 600; }
.app small { display: block; font-size: .82em; color: #7A8699; }
.app svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* status bar */
.sb { display: flex; justify-content: space-between; align-items: center; height: 3.4em; padding: 0 .6em; font: 600 .86em/1 var(--font-head); color: var(--navy); flex: none; }
.sb-i { display: flex; align-items: flex-end; gap: .18em; }
.sb-i i { width: .22em; background: var(--navy); border-radius: 1px; }
.sb-i i:nth-child(1) { height: .4em; } .sb-i i:nth-child(2) { height: .6em; } .sb-i i:nth-child(3) { height: .8em; }
.sb-i b { width: 1.6em; height: .8em; margin-left: .3em; border: 1.5px solid var(--navy); border-radius: .25em; position: relative; background: linear-gradient(90deg, var(--navy) 70%, transparent 70%) content-box; padding: 1px; }

/* tab bar */
.tabs { margin-top: auto; display: flex; justify-content: space-around; align-items: center; padding: .7em .2em 0; border-top: 1px solid var(--line); color: #A7B1C0; flex: none; }
.tabs span { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: .8em; }
.tabs span.on { color: var(--teal); background: var(--mist); }
.tabs .plus { background: var(--navy); color: var(--white); border-radius: 50%; }

/* ---- Household renewals app ---- */
.a-head { display: flex; justify-content: space-between; align-items: center; margin: .2em 0 .8em; }
.a-head strong { display: block; font-size: 1.55em; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.avatar { width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; font: 700 .8em/1 var(--font-head); color: var(--white); background: linear-gradient(135deg, var(--teal), var(--teal-light)); }
.a-card { background: var(--navy); color: #C9D3E2; border-radius: 1.1em; padding: .9em .9em .75em; margin-bottom: .8em; box-shadow: 0 .8em 1.6em -1em rgba(27,42,68,.7); }
.a-card-top { display: flex; justify-content: space-between; align-items: center; font-size: .86em; }
.a-card-top strong { color: var(--white); font-size: 1.9em; line-height: 1; font-weight: 700; }
.app-a .chart { height: 5.2em; margin: .55em 0 .25em; padding: 0; gap: .45em; background: none; border-radius: 0; }
.app-a .chart i { background: rgba(95,179,196,.45); border-radius: .3em .3em .1em .1em; }
.app-a .chart i:nth-child(3) { background: var(--teal-light); }
.months { display: flex; justify-content: space-between; gap: .45em; font-size: .72em; color: #8E9BB0; }
.months span { flex: 1; text-align: center; }
.months span:nth-child(3) { color: var(--white); font-weight: 500; }
.a-total { display: flex; justify-content: space-between; margin-top: .55em; padding-top: .55em; border-top: 1px solid rgba(255,255,255,.1); font-size: .86em; }
.a-total b { color: var(--white); }
.a-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.a-list li { display: flex; align-items: center; gap: .6em; padding: .5em .55em; border: 1px solid var(--line); border-radius: .9em; background: var(--white); }
.a-list .ic { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: .7em; background: var(--mist); color: var(--teal); flex: none; }
.a-list .t { flex: 1; min-width: 0; }
.a-list .t b { display: block; font-size: .92em; line-height: 1.2; }
.pill { font: 600 .74em/1 var(--font-head); padding: .45em .6em; border-radius: 99px; background: var(--mist); color: var(--teal); white-space: nowrap; }
.pill.soon { background: var(--teal); color: var(--white); }
.a-vault { display: flex; align-items: center; gap: .45em; margin: .7em 0 .2em; font-size: .78em; color: #7A8699; }
.a-vault svg { color: var(--teal); width: 1.4em; height: 1.4em; }

.a-members { display: flex; align-items: center; gap: .6em; margin-top: .6em; padding: .55em .6em; border-radius: .9em; background: var(--mist); }
.a-members b { display: block; font-size: .86em; line-height: 1.2; }
.faces { display: flex; }
.faces { font: 700 .6em/1 var(--font-head); }
.faces i { display: grid; place-items: center; width: 3.4em; height: 3.4em; margin-left: -.8em; border-radius: 50%; border: 2px solid var(--mist); font-style: normal; color: var(--white); background: var(--teal); }
.faces i:first-child { margin-left: 0; background: var(--navy); }
.faces i:nth-child(3) { background: var(--teal-light); color: var(--navy); }
.faces i:last-child { background: var(--white); color: var(--navy); }

.a-activity { display: flex; align-items: flex-start; gap: .55em; margin-top: .55em; padding-top: .6em; border-top: 1px dashed var(--line); font-size: .82em; }
.a-activity b { font-size: 1em; }
.a-activity small { font-size: .9em; }
.a-activity .dot { width: .6em; height: .6em; margin-top: .4em; border-radius: 50%; background: var(--teal-light); box-shadow: 0 0 0 .25em rgba(95,179,196,.2); flex: none; }
.guide { display: flex; align-items: center; gap: .6em; padding: .6em .7em; border-radius: 1em; background: var(--navy); margin-bottom: .2em; }
.guide small { color: var(--teal-light); font-size: .72em; }
.guide b { display: block; color: var(--white); font-size: .84em; line-height: 1.25; }
.g-ic { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: .7em; background: rgba(95,179,196,.18); color: var(--teal-light); flex: none; }

/* ---- Placements app ---- */
.app-b { position: relative; }
.b-head { display: flex; justify-content: space-between; align-items: center; margin: .2em 0 .65em; }
.b-head strong { font-size: 1.55em; font-weight: 700; letter-spacing: -.02em; }
.bell { position: relative; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--mist); color: var(--navy); }
.bell em { position: absolute; top: -.15em; right: -.15em; min-width: 1.35em; height: 1.35em; border-radius: 99px; background: var(--teal); color: var(--white); font: 700 .68em/1.35em var(--font-head); font-style: normal; text-align: center; border: 2px solid var(--white); box-sizing: content-box; }
.track { padding: .7em .8em .8em; border-radius: 1em; background: var(--mist); margin-bottom: .55em; }
.track-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5em; }
.track-top b { font-size: .88em; }
.track-top small { font-size: .74em; white-space: nowrap; }
.track ol { list-style: none; margin: .7em 0 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.track ol::before, .track ol::after { content: ""; position: absolute; top: .45em; left: 1.4em; right: 1.4em; height: 2px; border-radius: 2px; background: #C9DCE1; }
.track ol::after { right: auto; width: calc(100% - 2.8em); background: var(--teal); transform-origin: 0 50%; transform: scaleX(.667); }
.track li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .3em; width: 2.8em; font-size: .66em; color: #7A8699; text-align: center; }
.track li i { width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--white); border: 2px solid #C9DCE1; }
.track li.done i { background: var(--teal); border-color: var(--teal); }
.track li.now i { background: var(--white); border-color: var(--teal); box-shadow: 0 0 0 .3em rgba(30,127,146,.18); }
.track li.now span { color: var(--navy); font-weight: 600; }
.toast { position: absolute; z-index: 3; top: 3.2em; left: .8em; right: .8em; display: flex; align-items: center; gap: .6em; padding: .65em .75em; border-radius: 1.1em; background: rgba(27,42,68,.96); box-shadow: 0 1em 2em -1em rgba(27,42,68,.8); }
.toast b { color: var(--white); font-size: .86em; display: block; }
.toast small { color: #B8C4D6; font-size: .74em; }
.toast-ic { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--teal-light); color: var(--navy); flex: none; }


/* agency software screen */
.brand { display: flex; align-items: center; gap: .55em; }
.brand-logo { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: .75em; background: var(--navy); color: var(--white); font: 700 .78em/1 var(--font-head); box-shadow: inset 0 0 0 2px rgba(95,179,196,.6); }
.a-head .brand strong { font-size: 1.3em; }
.app .big { display: block; color: var(--white); font: 700 1.65em/1.1 var(--font-head); letter-spacing: -.02em; margin-top: .1em; }
.up { font: 600 .9em/1 var(--font-head); color: var(--navy); background: var(--teal-light); padding: .35em .5em; border-radius: 99px; }
.sub { font: 600 .78em/1 var(--font-head); color: #7A8699; margin: 0 0 .5em .2em; }
.prog { width: 3.6em; height: .45em; border-radius: 99px; background: var(--mist); overflow: hidden; flex: none; }
.prog i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--teal); transform-origin: 0 50%; }
.js .phones .prog i { transform: scaleX(0); }
.js .phones.is-in .prog i { transform: scaleX(1); transition: transform 1.2s var(--ease-out) .9s; }

/* own apps screen */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; margin-bottom: .75em; }
.stats div { padding: .55em .5em; border-radius: .9em; background: var(--mist); text-align: center; }
.stats b { display: block; font-size: 1em; color: var(--teal); }
.stats small { font-size: .7em; }
.apps-list { list-style: none; margin: 0 0 .65em; padding: 0; display: grid; gap: .4em; }
.apps-list li { display: flex; align-items: center; gap: .6em; padding: .45em .55em; border: 1px solid var(--line); border-radius: .9em; background: var(--white); }
.apps-list .t { flex: 1; min-width: 0; }
.apps-list .t b { display: block; font-size: .9em; line-height: 1.2; }
.app-ic { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: .75em; color: var(--white); flex: none; }
.app-ic.c1 { background: var(--teal); }
.app-ic.c2 { background: var(--navy); }
.app-ic.c3 { background: linear-gradient(135deg, var(--teal-light), var(--teal)); }
.app-ic.c4 { background: var(--navy-2); }
.live { display: inline-flex; align-items: center; gap: .35em; font: 600 .72em/1 var(--font-head); color: var(--teal); }
.live::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: #3BB273; box-shadow: 0 0 0 .22em rgba(59,178,115,.18); }
.live.beta { color: #7A8699; }
.live.beta::before { background: #E9A93B; box-shadow: 0 0 0 .22em rgba(233,169,59,.2); }
.js .phones .apps-list li { opacity: 0; transform: translateX(.8em); }
.js .phones.is-in .apps-list li { opacity: 1; transform: none; transition: opacity .6s, transform .7s var(--ease-out); }
.js .phones.is-in .apps-list li:nth-child(1) { transition-delay: .35s; }
.js .phones.is-in .apps-list li:nth-child(2) { transition-delay: .47s; }
.js .phones.is-in .apps-list li:nth-child(3) { transition-delay: .59s; }
.js .phones.is-in .apps-list li:nth-child(4) { transition-delay: .71s; }
.js .phones.is-in .live:not(.beta)::before { animation: blip 2.6s ease-out 1.5s infinite; }
@keyframes blip { 0% { box-shadow: 0 0 0 0 rgba(59,178,115,.5); } 70%, 100% { box-shadow: 0 0 0 .55em rgba(59,178,115,0); } }

/* screen motion: only once the phones scroll into view */
.js .phones .toast { opacity: 0; transform: translateY(-140%); }
.js .phones .a-list li { opacity: 0; transform: translateX(-.8em); }
.js .phones.is-in .a-list li { opacity: 1; transform: none; transition: opacity .6s, transform .7s var(--ease-out); }
.js .phones.is-in .a-list li:nth-child(1) { transition-delay: .5s; }
.js .phones.is-in .a-list li:nth-child(2) { transition-delay: .62s; }
.js .phones.is-in .a-list li:nth-child(3) { transition-delay: .74s; }

/* ---- Release loop: Build > Test > Review > Live, then the "is live" notification (8s, synced) ---- */
.js .phones .track ol::after { transform: scaleX(0); }
.js .phones.is-in .track ol::after { animation: pipe 8s var(--ease-out) 1s infinite; }
@keyframes pipe { 0%, 8% { transform: scaleX(0); opacity: 1; } 25% { transform: scaleX(.333); } 50% { transform: scaleX(.667); } 75%, 93% { transform: scaleX(1); opacity: 1; } 99% { transform: scaleX(1); opacity: 0; } 100% { transform: scaleX(0); opacity: 0; } }
.js .phones.is-in .track li:nth-child(1) i { animation: dot1 8s ease-out 1s infinite; }
.js .phones.is-in .track li:nth-child(2) i { animation: dot2 8s ease-out 1s infinite; }
.js .phones.is-in .track li:nth-child(3) i { animation: dot3 8s ease-out 1s infinite; }
.js .phones.is-in .track li:nth-child(4) i { animation: dot4 8s ease-out 1s infinite; }
.js .phones.is-in .track li:nth-child(2) span { animation: lab2 8s linear 1s infinite; }
.js .phones.is-in .track li:nth-child(3) span { animation: lab3 8s linear 1s infinite; }
.js .phones.is-in .track li:nth-child(4) span { animation: lab4 8s linear 1s infinite; }
@keyframes dot1 { 0%, 93% { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 0 rgba(30,127,146,0); transform: scale(1); } 100% { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 0 rgba(30,127,146,0); transform: scale(1); } }
@keyframes dot2 { 0%, 24% { background: var(--white); border-color: #C9DCE1; box-shadow: 0 0 0 0 rgba(30,127,146,0); transform: scale(1); } 28% { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 .55em rgba(30,127,146,.18); transform: scale(1.25); } 33%, 93% { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 0 rgba(30,127,146,0); transform: scale(1); } 100% { background: var(--white); border-color: #C9DCE1; box-shadow: 0 0 0 0 rgba(30,127,146,0); transform: scale(1); } }
@keyframes lab2 { 0%, 24% { color: #7A8699; font-weight: 400; } 25%, 93% { color: var(--navy); font-weight: 600; } 100% { color: #7A8699; font-weight: 400; } }
@keyframes dot3 { 0%, 49% { background: var(--white); border-color: #C9DCE1; box-shadow: 0 0 0 0 rgba(30,127,146,0); transform: scale(1); } 53% { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 .55em rgba(30,127,146,.18); transform: scale(1.25); } 58%, 93% { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 0 rgba(30,127,146,0); transform: scale(1); } 100% { background: var(--white); border-color: #C9DCE1; box-shadow: 0 0 0 0 rgba(30,127,146,0); transform: scale(1); } }
@keyframes lab3 { 0%, 49% { color: #7A8699; font-weight: 400; } 50%, 93% { color: var(--navy); font-weight: 600; } 100% { color: #7A8699; font-weight: 400; } }
@keyframes dot4 { 0%, 74% { background: var(--white); border-color: #C9DCE1; box-shadow: 0 0 0 0 rgba(30,127,146,0); transform: scale(1); } 78% { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 .55em rgba(30,127,146,.18); transform: scale(1.25); } 83%, 93% { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 0 rgba(30,127,146,0); transform: scale(1); } 100% { background: var(--white); border-color: #C9DCE1; box-shadow: 0 0 0 0 rgba(30,127,146,0); transform: scale(1); } }
@keyframes lab4 { 0%, 74% { color: #7A8699; font-weight: 400; } 75%, 93% { color: var(--navy); font-weight: 600; } 100% { color: #7A8699; font-weight: 400; } }
.js .phones.is-in .toast { animation: toast 8s var(--ease-out) 1s infinite; }
@keyframes toast { 0%, 76% { opacity: 0; transform: translateY(-140%); } 81%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-140%); } }
.js .phones.is-in .live:not(.beta) { animation: none; }

/* ---- Agency screen: live-feeling chart, report gets sent ---- */
.js .phones.is-in .app-a .chart i { animation: breathe 2.8s ease-in-out infinite alternate; }
.js .phones.is-in .app-a .chart i:nth-child(1) { animation-delay: 1.6s; }
.js .phones.is-in .app-a .chart i:nth-child(2) { animation-delay: 1.9s; }
.js .phones.is-in .app-a .chart i:nth-child(3) { animation-delay: 2.2s; }
.js .phones.is-in .app-a .chart i:nth-child(4) { animation-delay: 2.5s; }
.js .phones.is-in .app-a .chart i:nth-child(5) { animation-delay: 2.8s; }
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.88); } }
.send { display: inline-grid; }
.send > span { grid-area: 1 / 1; text-align: center; }
.send > span:last-child { opacity: 0; }
.js .phones.is-in .send { animation: sendbg 7s ease-in-out 2s infinite; }
.js .phones.is-in .send > span:first-child { animation: sendA 7s ease-in-out 2s infinite; }
.js .phones.is-in .send > span:last-child { animation: sendB 7s ease-in-out 2s infinite; }
@keyframes sendbg { 0%, 38% { background: var(--teal); transform: scale(1); } 42% { transform: scale(1.12); } 46%, 88% { background: #3BB273; transform: scale(1); } 94%, 100% { background: var(--teal); } }
@keyframes sendA { 0%, 38% { opacity: 1; } 42%, 90% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes sendB { 0%, 38% { opacity: 0; } 44%, 88% { opacity: 1; } 93%, 100% { opacity: 0; } }
.js .phones.is-in .up { animation: uptick 3s ease-in-out 2s infinite; }
@keyframes uptick { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-.25em); } 90% { transform: translateY(0); } }
.guide svg path { stroke-dasharray: 60; stroke-dashoffset: 0; }
.js .phones .guide svg path { stroke-dashoffset: 60; }
.js .phones.is-in .guide svg path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-out) 1.2s; }

@media (max-width: 1100px) { .phones { max-width: 450px; } .phone { width: 214px; height: 438px; } }
@media (max-width: 900px) { .phones { height: 500px; } }
@media (max-width: 560px) {
  .phones { height: 420px; max-width: 360px; }
  .phone { width: 178px; height: 364px; border-radius: 30px; padding: 8px; }
  .phone .screen.app { border-radius: 23px; }
  .phone::before { top: 12px; width: 48px; height: 13px; margin-left: -24px; }
  .phone.back { left: 1%; top: 30px; }
  .phone.front { left: 48%; }
}
@media (max-width: 360px) { .phones { height: 380px; } .phone { width: 158px; height: 324px; } .phone.front { left: 47%; } }
@media (prefers-reduced-motion: reduce) {
  .js .phones .track ol::after { transform: scaleX(.667); }
  .js .phones .guide svg path { stroke-dashoffset: 0; }
  .js .phones .prog i { transform: none; }
  .js .phones .apps-list li { opacity: 1; transform: none; }
  .js .phones .toast { opacity: 1; transform: none; }
  .js .phones .a-list li { opacity: 1; transform: none; }
}

/* ---------- What we do: animated vignettes (concept 1) ---------- */
.vig { position: relative; height: 158px; margin-bottom: 1.6rem; border-radius: 14px; background: var(--white); border: 1px solid var(--line); overflow: hidden; font-family: var(--font-body); box-shadow: 0 14px 30px -24px rgba(27,42,68,.45); transition: border-color .4s, box-shadow .4s; }
.service:hover .vig { border-color: rgba(30,127,146,.35); box-shadow: 0 18px 36px -22px rgba(30,127,146,.45); }
.vig svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vig svg.fill { fill: currentColor; stroke: none; }

/* 1: task board */
.vig-board { padding: 12px; }
.vb-head { display: flex; justify-content: space-between; align-items: center; height: 30px; }
.vb-title b { display: block; font: 600 11.5px/1.2 var(--font-head); color: var(--navy); }
.vb-title small { display: block; font-size: 9.5px; color: #7A8699; }
.vb-team { display: flex; }
.vb-team i { width: 20px; height: 20px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--white); display: grid; place-items: center; font: 700 7px/1 var(--font-head); font-style: normal; color: var(--white); background: var(--teal); }
.vb-team i:first-child { background: var(--navy); margin-left: 0; }
.vb-team i:last-child { background: var(--teal-light); color: var(--navy); }
.vb-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.vb-col { display: flex; flex-direction: column; gap: 4px; height: 96px; padding: 6px; border-radius: 9px; background: var(--mist); }
.vb-col small { display: block; height: 13px; font: 600 8.5px/13px var(--font-head); color: #6B778C; }
.vb-card, .vb-mover { display: flex; align-items: center; gap: 5px; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--white); box-shadow: 0 1px 2px rgba(27,42,68,.08); }
.vb-card i, .vb-mover i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.vb-card em, .vb-mover em { height: 4px; width: 62%; border-radius: 4px; background: var(--line); }
.vb-card em.s { width: 42%; }
.c1 { background: var(--teal); } .c2 { background: var(--navy); } .c3 { background: var(--teal-light); }
.vb-sent { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 5px; border-radius: 99px; background: #3BB273; color: var(--white); font: 600 7.5px/1 var(--font-head); white-space: nowrap; overflow: hidden; }
.vb-mover { position: absolute; z-index: 2; width: calc((100% - 36px) / 3 - 12px); left: 18px; top: 117px; }

/* 2: white-label window */
.vig-brand { background: #F3F6F8; }
.vw-bar { display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; background: var(--white); border-bottom: 1px solid var(--line); }
.vw-bar > i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.vw-url { flex: 1; height: 9px; margin-left: 8px; border-radius: 9px; background: var(--mist); }
.vw-stage { position: absolute; inset: 22px 0 0; }
.vw-brand { --ac: var(--teal); position: absolute; inset: 0; padding: 10px 12px; }
.vw-brand.b1 { --ac: #1E7F92; --r: 6px; }
.vw-brand.b2 { --ac: #7A4FA3; --r: 50%; }
.vw-brand.b3 { --ac: #2F7D5B; --r: 2px; }
.vw-top { display: flex; align-items: center; gap: 6px; }
.vw-logo { display: grid; place-items: center; width: 18px; height: 18px; border-radius: var(--r); background: var(--ac); color: var(--white); font: 700 9.5px/1 var(--font-head); }
.vw-top b { font: 700 10.5px/1 var(--font-head); color: var(--navy); letter-spacing: -.01em; }
.vw-nav { margin-left: auto; display: flex; gap: 4px; }
.vw-nav i { width: 16px; height: 4px; border-radius: 4px; background: var(--line); }
.vw-hero { margin-top: 9px; height: 52px; border-radius: 9px; padding: 9px 10px; background: var(--ac); position: relative; overflow: hidden; }
.vw-hero::after { content: ""; position: absolute; right: -14px; top: -14px; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.14); }
.vw-hero em { display: block; height: 6px; width: 58%; border-radius: 6px; background: rgba(255,255,255,.9); }
.vw-hero em.s { width: 38%; margin-top: 5px; background: rgba(255,255,255,.55); }
.vw-btn { position: absolute; left: 10px; bottom: 8px; width: 34px; height: 10px; border-radius: 10px; background: var(--white); }
.vw-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 7px; }
.vw-tiles i { height: 26px; border-radius: 7px; background: color-mix(in srgb, var(--ac) 14%, white); }

/* 3: apps on a phone */
.vig-apps { display: flex; align-items: center; justify-content: center; gap: 18px; background: linear-gradient(160deg, var(--mist), var(--white) 70%); }
.va-phone { position: relative; width: 74px; height: 134px; margin-top: 30px; border-radius: 16px 16px 0 0; border: 5px solid var(--navy); border-bottom: 0; background: var(--white); padding: 18px 8px 0; }
.va-notch { position: absolute; top: 4px; left: 50%; width: 22px; height: 6px; margin-left: -11px; border-radius: 6px; background: var(--navy); }
.va-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.va-grid i { aspect-ratio: 1; border-radius: 3.5px; }
.va-grid .a1 { background: var(--teal); } .va-grid .a2 { background: var(--navy); } .va-grid .a3 { background: var(--teal-light); }
.va-grid .a4 { background: var(--navy-2); } .va-grid .a5 { background: linear-gradient(135deg, var(--teal-light), var(--teal)); } .va-grid .a6 { background: var(--mist); border: 1.5px dashed var(--teal-light); }
.va-dock { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 14px; border-radius: 6px; background: var(--mist); }
.va-side { display: flex; flex-direction: column; gap: 7px; }
.va-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px; border-radius: 8px; background: var(--navy); color: var(--white); font: 600 10px/1 var(--font-head); }
.va-badge svg { width: 12px; height: 12px; }
.va-pub { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; background: rgba(59,178,115,.14); color: #24834F; font: 600 9.5px/1 var(--font-head); }

/* motion: runs once a card has scrolled into view */
.js .service.is-in .vb-mover { animation: vb-move 6.5s var(--ease-out) .6s infinite; }
@keyframes vb-move {
  0% { opacity: 0; left: 18px; top: 117px; transform: none; }
  6%, 16% { opacity: 1; left: 18px; top: 117px; transform: none; box-shadow: 0 1px 2px rgba(27,42,68,.08); }
  22% { transform: rotate(-3deg) scale(1.06); box-shadow: 0 8px 14px -6px rgba(27,42,68,.35); }
  30%, 44% { left: calc(18px + (100% - 36px) / 3 + 6px); top: 95px; transform: none; box-shadow: 0 1px 2px rgba(27,42,68,.08); }
  50% { transform: rotate(3deg) scale(1.06); box-shadow: 0 8px 14px -6px rgba(27,42,68,.35); }
  58%, 92% { opacity: 1; left: calc(18px + 2 * ((100% - 36px) / 3 + 6px)); top: 95px; transform: none; box-shadow: 0 1px 2px rgba(27,42,68,.08); }
  100% { opacity: 0; left: calc(18px + 2 * ((100% - 36px) / 3 + 6px)); top: 95px; }
}
.js .service .vb-sent { opacity: 0; transform: scale(.6); }
.js .service.is-in .vb-sent { animation: vb-sent 6.5s var(--ease-spring) .6s infinite; }
@keyframes vb-sent { 0%, 60% { opacity: 0; transform: scale(.6); } 66%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.9); } }
.js .service.is-in .vb-team i { animation: vb-team 6.5s ease-in-out .6s infinite; }
.js .service.is-in .vb-team i:nth-child(2) { animation-delay: .75s; }
.js .service.is-in .vb-team i:nth-child(3) { animation-delay: .9s; }
@keyframes vb-team { 0%, 20%, 100% { transform: none; } 26% { transform: translateY(-3px); } 32% { transform: none; } }

.js .service .vw-brand { opacity: 0; }
.js .service .vw-brand.b1 { opacity: 1; }
.js .service.is-in .vw-brand { animation: vw-swap 9s ease-in-out infinite; }
.js .service.is-in .vw-brand.b1 { animation-delay: .4s; }
.js .service.is-in .vw-brand.b2 { animation-delay: 3.4s; }
.js .service.is-in .vw-brand.b3 { animation-delay: 6.4s; }
@keyframes vw-swap { 0% { opacity: 0; transform: translateY(8px); filter: blur(3px); } 6%, 30% { opacity: 1; transform: none; filter: none; } 36%, 100% { opacity: 0; transform: translateY(-6px); filter: blur(3px); } }
.js .service.is-in .vw-logo { animation: vw-logo 3s var(--ease-spring) infinite; }
.js .service.is-in .vw-brand.b1 .vw-logo { animation-delay: .4s; }
.js .service.is-in .vw-brand.b2 .vw-logo { animation-delay: 3.4s; }
.js .service.is-in .vw-brand.b3 .vw-logo { animation-delay: 6.4s; }
@keyframes vw-logo { 0% { transform: scale(.4) rotate(-20deg); } 18%, 100% { transform: none; } }

.js .service .va-grid i, .js .service .va-pub { opacity: 0; transform: scale(.3); }
.js .service.is-in .va-grid i, .js .service.is-in .va-pub { animation: va-pop 6s var(--ease-spring) infinite; }
.js .service.is-in .va-grid .a1 { animation-delay: .5s; }
.js .service.is-in .va-grid .a2 { animation-delay: .75s; }
.js .service.is-in .va-grid .a3 { animation-delay: 1s; }
.js .service.is-in .va-grid .a4 { animation-delay: 1.25s; }
.js .service.is-in .va-grid .a5 { animation-delay: 1.5s; }
.js .service.is-in .va-grid .a6 { animation-delay: 1.75s; }
.js .service.is-in .va-pub { animation-delay: 2.2s; }
@keyframes va-pop { 0% { opacity: 0; transform: scale(.3); } 8%, 78% { opacity: 1; transform: none; } 86%, 100% { opacity: 0; transform: scale(.8); } }

@media (prefers-reduced-motion: reduce) {
  .js .service .vb-sent, .js .service .va-grid i, .js .service .va-pub { opacity: 1; transform: none; }
  .vb-mover { display: none; }
}
@media (max-width: 560px) { .vig { height: 150px; } }

/* ---------- What we do: stronger card contrast ---------- */
.services .service {
  --stage: calc(2.25rem + 158px + 1rem);
  border-color: #D2DCE2;
  background-color: var(--white);
  background-image:
    linear-gradient(to bottom, transparent var(--stage), var(--white) var(--stage)),
    radial-gradient(circle, rgba(30,127,146,.14) 1px, transparent 1.5px),
    linear-gradient(170deg, #E3F0F3, #D3E8ED);
  background-size: 100% 100%, 14px 14px, 100% var(--stage);
  background-repeat: no-repeat, repeat, no-repeat;
  box-shadow: 0 1px 2px rgba(27,42,68,.05), 0 22px 44px -30px rgba(27,42,68,.4);
}
.services .service .vig { border-color: rgba(27,42,68,.08); box-shadow: 0 2px 4px rgba(27,42,68,.05), 0 18px 34px -18px rgba(27,42,68,.45); }
.vig-apps { background: var(--white); }
.services .service:hover { border-color: rgba(30,127,146,.45); box-shadow: 0 1px 2px rgba(27,42,68,.05), 0 30px 54px -30px rgba(30,127,146,.5); }
.services .service h3 { margin-top: .2rem; }
@media (max-width: 560px) { .services .service { --stage: calc(1.75rem + 150px + 1rem); } }
