/* Eetu Heino
   Grammar: typographic poster. Type is the image on the home page; photos live on service pages.
   Grounds: white paper and brand navy. Hard cuts only between them (no interpolated grounds),
   so every text element always sits on a settled ground. */

:root {
  color-scheme: light;
  --navy: #0b1f3a;        /* brand */
  --navy-2: #13305a;
  --deep: #071529;        /* darkest value, brand-tinted, never black */
  --paper: #ffffff;       /* brand white */
  --mist: #f3f6fa;        /* surface */
  --ink: #0b1f3a;
  --ink-2: #44587a;       /* secondary, tinted toward navy */
  --line: #d5dde9;
  --accent: #1f4f8f;      /* ice blue tuned for light grounds */
  --accent-d: #a9c8f2;    /* ice blue tuned for dark grounds */
  --on-dark: #ffffff;
  --on-dark-2: #b9c7dc;
  --line-d: rgba(255, 255, 255, .16);
  --g: clamp(16px, 5vw, 64px);
  --pad: clamp(72px, 11vw, 168px);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: Manrope, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 1px 2px rgba(7, 21, 41, .06), 0 12px 32px -12px rgba(7, 21, 41, .22);
}

*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[data-lang="fi"] [lang="en"], html[data-lang="en"] [lang="fi"] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
h1, h2, .display { font-family: var(--serif); font-weight: 500; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(48px, 8.4vw, 136px); letter-spacing: -.03em; }
h2 { font-size: clamp(36px, 5vw, 72px); letter-spacing: -.02em; line-height: 1.02; }
h3 { font: 600 19px/1.3 var(--sans); letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.dark .eyebrow { color: var(--accent-d); }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--g); }
.sec { padding-block: var(--pad); }
.dark { background: var(--navy); color: var(--on-dark); }
.dark .lead, .dark .muted { color: var(--on-dark-2); }
/* light-on-dark compensation: looser tracking, taller leading */
.dark p { letter-spacing: .01em; line-height: 1.65; }
.muted { color: var(--ink-2); }

/* grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* focus + skip */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dark :focus-visible, .index :focus-visible, .foot :focus-visible { outline-color: var(--accent-d); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 3px; text-decoration: none; }
.skip:focus { top: 12px; }

/* buttons: flat, small radius, one arrow */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 24px;
  background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: 3px;
  font: 600 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn .arw { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: #e7eef8; border-color: #e7eef8; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { background: var(--mist); border-color: var(--ink-2); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: currentColor; transition: text-underline-offset .2s;
}
.link:hover { text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
@supports (backdrop-filter: blur(8px)) { .bar { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); } }
.bar.is-scrolled { border-bottom-color: var(--line); }
.bar__in { max-width: 1320px; margin: 0 auto; padding: 12px var(--g); display: flex; align-items: center; gap: 28px; min-height: 72px; }
.bar__logo img { width: 128px; height: auto; }
.bar__links { display: flex; gap: 26px; margin-left: auto; }
.bar__links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.bar__links a:hover { color: var(--ink); }
.bar__links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.bar__end { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 3px; }
.lang button { background: none; border: 0; min-width: 40px; min-height: 36px; font: 600 12px var(--sans); letter-spacing: .08em; color: var(--ink-2); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lang--dark { border-color: var(--line-d); }
.lang--dark button { color: var(--on-dark-2); }
.lang--dark button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.bar__menu { display: none; background: none; border: 1px solid var(--line); border-radius: 3px; min-height: 42px; padding: 0 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
@media (max-width: 1120px) {
  .bar__links, .bar__end > .lang { display: none; }
  .bar__menu { display: inline-flex; align-items: center; }
  .bar__end { margin-left: auto; }
}
@media (max-width: 520px) { .bar__cta { display: none; } .bar__logo img { width: 112px; } }

/* full-screen typographic index (menu) */
.index { position: fixed; inset: 0; z-index: 45; background: var(--navy); color: #fff; padding-top: 72px; overflow-y: auto; }
.index[hidden] { display: none; }
.index__in { max-width: 1320px; margin: 0 auto; padding: clamp(24px, 6vh, 64px) var(--g) 40px; display: grid; gap: 28px; min-height: calc(100svh - 72px); align-content: space-between; }
.index .eyebrow { color: var(--accent-d); }
.index__list a { display: block; font: 500 clamp(40px, 9vw, 88px)/1.08 var(--serif); letter-spacing: -.02em; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line-d); }
.index__list a:hover, .index__list a[aria-current="page"] { color: var(--accent-d); }
.index__foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; font-weight: 600; }
.index__foot a { text-decoration: none; }
body.menu-open { overflow: hidden; }
body.menu-open .bar { background: var(--navy); border-bottom-color: var(--line-d); }
body.menu-open .bar__logo img { filter: brightness(0) invert(1); }
body.menu-open .bar__menu { color: #fff; border-color: var(--line-d); }
body.menu-open .bar__cta { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- reveal and line assembly (html.js gates hidden states) ---------- */
.ln { display: block; overflow: hidden; padding: .08em 0 .12em; margin: -.08em 0 -.12em; }
.ln > span { display: block; }
html.js .ln > span { transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 80ms); }
html.js .is-in .ln > span, html.js .ln.is-in > span { transform: none; }
html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
html.js .rv.is-in { opacity: 1; transform: none; }
.rule { height: 1px; background: var(--line); transform-origin: left; }
html.js .rule { transform: scaleX(0); transition: transform 1.4s var(--ease) .5s; }
html.js .is-in .rule, html.js .rule.is-in { transform: none; }

/* ---------- home hero: type poster ---------- */
.poster { padding-block: clamp(48px, 9vh, 112px) clamp(56px, 8vw, 112px); }
.poster__top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 5vh, 56px); }
.poster__top .muted { font-size: 14px; }
.poster h1 { font-size: clamp(50px, 9.2vw, 150px); line-height: .94; }
.poster h1 em { font-style: italic; color: var(--accent); }
.poster .rule { margin: clamp(32px, 5vh, 56px) 0 clamp(28px, 4vh, 40px); }
.poster__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.poster__grid .lead { margin-bottom: 28px; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts b { font: 600 26px/1.1 var(--serif); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.facts span { color: var(--ink-2); }
@media (max-width: 860px) { .poster__grid { grid-template-columns: minmax(0, 1fr); } }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- health report (seuranta) ---------- */
.audit { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 6px; padding: clamp(20px, 3.4vw, 48px); }
.audit__scan { position: absolute; left: 0; right: 0; top: 0; height: 90px; margin-top: -45px; pointer-events: none; background: linear-gradient(rgba(31, 79, 143, 0), rgba(31, 79, 143, .08) 48%, rgba(31, 79, 143, .5) 50%, rgba(31, 79, 143, .08) 52%, rgba(31, 79, 143, 0)); opacity: 0; }
.audit__top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.audit__site { font: 500 clamp(28px, 3.4vw, 44px)/1.1 var(--serif); margin-top: 8px; }
.audit__meta { display: grid; gap: 4px; text-align: right; font-size: 14px; color: var(--ink-2); align-content: end; }
.audit__scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 16px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.score { text-align: center; }
.score svg { width: 100%; max-width: 108px; height: auto; display: block; margin: 0 auto 10px; }
.score b { font-size: 14px; font-weight: 600; }
.score .bg { fill: none; stroke: #e6ecf4; stroke-width: 6; }
.score .old { fill: none; stroke: #9aa9be; stroke-width: 6; stroke-linecap: round; }
.score .new { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; }
.audit__legend { display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); justify-self: end; }
.audit__legend span::before { content: ""; display: inline-block; width: 22px; height: 5px; border-radius: 3px; margin-right: 10px; vertical-align: middle; background: var(--navy); }
.audit__legend span.o::before { background: #9aa9be; }
.audit__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(24px, 4vw, 56px); padding-top: 24px; }
.agroup h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 16px 0 6px; }
.agroup li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.agroup li::after { content: "···"; font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; color: var(--ink-2); background: var(--mist); min-width: 104px; text-align: center; }
.agroup li.is-on[data-s="ok"]::after { content: "Kunnossa"; background: #e3f3ea; color: #1d6b43; }
.agroup li.is-on[data-s="warn"]::after { content: "Parannettavaa"; background: #fdf1de; color: #8a5300; }
.agroup li.is-on[data-s="fail"]::after { content: "Korjattava"; background: #fbe4e2; color: #9b2119; }
html[data-lang="en"] .agroup li.is-on[data-s="ok"]::after { content: "Fine"; }
html[data-lang="en"] .agroup li.is-on[data-s="warn"]::after { content: "Improve"; }
html[data-lang="en"] .agroup li.is-on[data-s="fail"]::after { content: "Fix"; }
.audit__sum { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 24px; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.sum b { font: 600 34px/1 var(--serif); margin-right: 6px; vertical-align: -4px; font-variant-numeric: lining-nums; }
.sum--fail b { color: #9b2119; } .sum--warn b { color: #8a5300; } .sum--ok b { color: #1d6b43; }
@media (max-width: 860px) {
  .audit__scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit__legend { grid-column: 1 / -1; justify-self: start; display: flex; gap: 20px; }
  .audit__groups { grid-template-columns: minmax(0, 1fr); }
  .audit__meta { text-align: left; }
}
@media (max-width: 420px) { .agroup li { font-size: 14px; } .agroup li::after { min-width: 0; } }

/* ---------- seo page ---------- */
.seo-show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.seo-pane { margin: 0; display: grid; gap: 12px; align-content: start; }
.seo-pane .scene { min-height: 380px; align-content: start; }
.serp__bar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 11px 18px; font-size: 15px; color: var(--ink); box-shadow: 0 1px 2px rgba(7, 21, 41, .06); }
.serp__bar svg { color: var(--ink-2); flex: none; }
.serp__map { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 1px 2px rgba(7, 21, 41, .08); }
.serp__pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--navy); transform: rotate(-45deg); margin: 4px 4px 0; grid-row: span 2; }
.serp__map > div:first-of-type { display: grid; gap: 3px; font-size: 14px; color: var(--ink-2); }
.serp__map b { color: var(--ink); font-size: 16px; }
.serp__stars { color: #8a5300; letter-spacing: .04em; }
.serp__stars em { font-style: normal; color: var(--ink); font-weight: 600; margin-left: 4px; }
.serp__btns { grid-column: 2; display: flex; gap: 8px; margin-top: 8px; }
.serp__btns i { font-style: normal; font-size: 13px; font-weight: 600; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--accent); }
.serp__res { display: grid; gap: 4px; padding: 4px 4px 0; }
.serp__res small { font-size: 13px; color: var(--ink-2); }
.serp__res b { font-size: 18px; color: var(--accent); font-weight: 600; line-height: 1.3; }
.serp__res span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.cite { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cite i { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--mist); color: var(--accent); }
.meter { font-size: 15px; color: var(--ink-2); margin: 14px 0 10px; }
.meter b { font: 600 48px/1 var(--serif); color: var(--ink); margin-right: 4px; font-variant-numeric: lining-nums; }
.meter__bar { height: 6px; border-radius: 3px; background: #dfe6ef; overflow: hidden; margin-bottom: 20px; }
.meter__bar i { display: block; height: 100%; width: 0; background: var(--navy); transition: width .5s var(--ease); }
.result__sub { font-weight: 600; margin-bottom: 4px; }
.result__list--plain li { padding: 12px 0; font-size: 15px; }
@media (max-width: 860px) { .seo-show { grid-template-columns: minmax(0, 1fr); } .seo-pane .scene { min-height: 0; } }

/* ---------- agent builder ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px clamp(32px, 5vw, 72px); margin-top: clamp(28px, 4vw, 48px); align-items: start; }
.builder .chips { margin-top: 0; }
.stack { background: var(--navy); color: #fff; padding: clamp(22px, 3vw, 36px); border-radius: 4px; box-shadow: var(--shadow); }
.stack__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.stack .eyebrow { color: var(--accent-d); }
.stack__count { color: var(--on-dark-2); font-size: 14px; }
.stack__count b { font: 600 28px/1 var(--serif); color: #fff; margin-right: 4px; font-variant-numeric: lining-nums; }
.stack__list { display: grid; gap: 6px; margin-bottom: 24px; }
.layer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-radius: 3px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-d); }
.layer b { font-weight: 600; font-size: 15px; }
.layer > span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); align-self: center; }
.layer p { grid-column: 1 / -1; font-size: 14px; color: var(--on-dark-2); line-height: 1.45; }
.layer--add { background: rgba(169, 200, 242, .12); border-color: rgba(169, 200, 242, .4); animation: layerIn .5s var(--ease) both; }
.layer--add > span { color: var(--accent-d); }
@keyframes layerIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .builder { grid-template-columns: minmax(0, 1fr); } }

/* ---------- contact details page ---------- */
.person { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: center; }
.person__photo { margin: 0; }
.person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--mist); }
.person__photo figcaption { font-size: 13px; color: var(--ink-2); margin-top: 10px; letter-spacing: .02em; }
.person h1 { font-size: clamp(52px, 7vw, 112px); margin-bottom: 20px; }
.person .lead { margin-bottom: 28px; }
@media (max-width: 860px) { .person { grid-template-columns: minmax(0, 1fr); } .person__photo { max-width: 420px; } }

/* ---------- home services index ---------- */
.svc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.svc-head .lead { justify-self: end; }
@media (max-width: 860px) { .svc-head { grid-template-columns: minmax(0, 1fr); } .svc-head .lead { justify-self: start; } }
.svc { border-top: 1px solid var(--ink); }
.svc a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18em) 200px; gap: 24px 40px; align-items: center; padding: clamp(20px, 3vw, 32px) 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.svc__name { font: 500 clamp(38px, 6.2vw, 96px)/1 var(--serif); letter-spacing: -.025em; transition: transform .5s var(--ease), color .3s; }
.svc__name i { font-style: normal; font-family: var(--sans); font-size: .22em; letter-spacing: .02em; margin-left: .6em; vertical-align: middle; color: var(--accent); opacity: 0; transition: opacity .3s; }
.svc a:hover .svc__name { transform: translateX(14px); color: var(--accent); }
.svc a:hover .svc__name i { opacity: 1; }
.svc__txt { color: var(--ink-2); font-size: 16px; }
.svc__img { width: 200px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--navy); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc a:hover .svc__img img { transform: scale(1.06); }
.svc__tile { width: 100%; height: 100%; display: grid; place-content: center; gap: 6px; padding: 14px; }
.svc__tile span { display: block; max-width: 100%; overflow-wrap: anywhere; background: #fff; color: var(--navy); font-size: 11px; line-height: 1.3; padding: 6px 9px; border-radius: 10px 10px 10px 2px; max-width: 150px; }
.svc__tile span + span { background: var(--accent-d); justify-self: end; border-radius: 10px 10px 2px 10px; }
@media (max-width: 960px) { .svc__tile { padding: 8px; gap: 4px; } .svc__tile span { font-size: 10px; padding: 4px 7px; } .svc a { grid-template-columns: minmax(0, 1fr) 120px; } .svc__txt { grid-column: 1; grid-row: 2; } .svc__img { width: 120px; grid-row: 1 / 3; grid-column: 2; } }

/* ---------- leak finder ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); }
.finder h2 { margin: 14px 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 3px; background: #fff; text-align: left; font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.chip::before { content: ""; width: 14px; height: 14px; flex: none; border: 1px solid var(--ink-2); border-radius: 2px; transition: background .2s, border-color .2s; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip[aria-pressed="true"]::before { background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%230b1f3a' stroke-width='1.8'/></svg>") center/12px no-repeat; border-color: #fff; }
.result { background: var(--mist); border-top: 2px solid var(--navy); padding: clamp(24px, 3vw, 40px); align-self: start; }
.result__list { margin: 16px 0 24px; }
.result__list li { border-bottom: 1px solid var(--line); }
.result__list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; text-decoration: none; font-weight: 600; }
.result__list a span:last-child { color: var(--accent); }
.result__list a:hover { color: var(--accent); }
.result__empty { color: var(--ink-2); margin: 16px 0 24px; }
@media (max-width: 860px) { .finder { grid-template-columns: minmax(0, 1fr); } }

/* ---------- process line ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 6vw, 72px); --pf: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.steps::after { background: var(--navy); transform-origin: left; transform: scaleX(var(--pf)); }
.step { position: relative; padding-top: 36px; opacity: .35; transition: opacity .5s; }
.step.is-reached { opacity: 1; }
html:not(.js) .step { opacity: 1; }
.step::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 1px solid var(--navy); z-index: 1; transition: background .3s; }
.step.is-reached::before { background: var(--navy); }
.step small { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; font-weight: 600; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-left: 36px; }
  .steps::before, .steps::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--pf)); }
  .step { padding-top: 0; }
  .step::before { left: -36px; top: 2px; }
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.about h2 { margin: 14px 0 24px; }
.about p + p { margin-top: 16px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before { content: ""; width: 14px; height: 8px; margin-top: 7px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.dark .ticks li { border-color: var(--line-d); }
.dark .ticks li::before { border-color: var(--accent-d); }
.ticks b { display: block; font-weight: 600; }
.ticks span { color: var(--ink-2); font-size: 16px; }
.dark .ticks span { color: var(--on-dark-2); }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }

/* ---------- close: lifted navy sheet ---------- */
.close { position: relative; margin-top: -32px; border-radius: 28px 28px 0 0; box-shadow: 0 -24px 48px -28px rgba(7, 21, 41, .5), inset 0 1px 0 rgba(255, 255, 255, .12); }
.close__sig { width: clamp(180px, 22vw, 300px); margin-bottom: clamp(32px, 5vw, 56px); opacity: .95; }
html.js .close__sig { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease) .2s; }
html.js .close.is-in .close__sig, html.js .close__sig.is-in { clip-path: inset(0 0 0 0); }
.close h2 { font-size: clamp(42px, 7vw, 112px); max-width: 12em; margin-bottom: 28px; }
.close .lead { margin-bottom: 36px; }
.close .link { color: #fff; }

/* ---------- footer ---------- */
.foot { background: var(--deep); color: var(--on-dark-2); font-size: 15px; padding-top: clamp(56px, 7vw, 96px); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot__brand img { width: 150px; margin-bottom: 18px; }
.foot__brand p { max-width: 22em; }
.foot__h { color: #fff; font-weight: 600; margin-bottom: 14px; }
.foot li { margin: 8px 0; }
.foot a, .foot__btn { text-decoration: none; color: var(--on-dark-2); }
.foot a:hover, .foot__btn:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot__btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 15px; text-align: left; }
.foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-block: 24px; border-top: 1px solid var(--line-d); font-size: 14px; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- consent ---------- */
.consent { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 460px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 20px; box-shadow: var(--shadow); font-size: 15px; }
.consent[hidden] { display: none; }
.consent p { margin-bottom: 16px; line-height: 1.5; }
.consent a { color: var(--accent); font-weight: 600; }
.consent__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.consent__btns .btn { flex: 1 1 160px; justify-content: center; }

/* ---------- service pages ---------- */
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: clamp(24px, 4vh, 40px); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.phero { padding-block: clamp(40px, 8vh, 96px) clamp(40px, 6vw, 72px); }
.phero h1 { font-size: clamp(46px, 8vw, 128px); max-width: 11em; }
.phero__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-top: clamp(28px, 4vw, 48px); }
.phero__row .lead { margin: 0; }
.phero__row .actions { justify-content: flex-end; }
@media (max-width: 860px) { .phero__row { grid-template-columns: minmax(0, 1fr); } .phero__row .actions { justify-content: flex-start; } }
.plate { margin: 0; }
.plate__img { overflow: hidden; background: var(--mist); }
.plate__img img { width: 100%; height: clamp(320px, 62vw, 760px); object-fit: cover; }
html.js .plate__img { clip-path: inset(0 var(--g)); transition: clip-path 1.4s var(--ease); }
html.js .plate.is-in .plate__img { clip-path: inset(0 0); }
.plate figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px var(--g) 0; font-size: 13px; color: var(--ink-2); letter-spacing: .02em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: center; }
.split h2 { margin: 14px 0 20px; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split .stage-col { order: 2; } }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 3px; padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 18px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f9e64; }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--ink); margin-top: clamp(32px, 5vw, 56px); }
.compare > div { padding: 28px 28px 32px 0; }
.compare > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.compare h3 { margin-bottom: 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.compare .old h3 { color: var(--ink-2); }
.compare .new h3 { color: var(--accent); }
.compare li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.compare .old li { color: var(--ink-2); }
@media (max-width: 700px) { .compare { grid-template-columns: minmax(0, 1fr); } .compare > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .compare > div { padding-right: 0; } }
.band-cta { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.band-cta h2 { max-width: 13em; }
.next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.next a { text-decoration: none; }
.next span { display: block; font-size: 13px; color: var(--ink-2); letter-spacing: .1em; text-transform: uppercase; }
.next b { font: 500 clamp(30px, 4vw, 52px)/1.1 var(--serif); letter-spacing: -.02em; }
.next a:hover b { color: var(--accent); }

/* showcase: browser build (websites) */
.browser { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; --b: 0; }
.browser__top { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--mist); border-bottom: 1px solid var(--line); }
.browser__top i { width: 9px; height: 9px; border-radius: 50%; background: #c6d1e0; }
.browser__url { margin-left: 10px; flex: 1; background: #fff; border-radius: 4px; font-size: 12px; color: var(--ink-2); padding: 4px 10px; }
.browser__body { padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 14px; }
.bpart { position: relative; }
.bpart > .wire, .bpart > .real { transition: opacity .5s, transform .6s var(--ease); }
.bpart > .real { position: absolute; inset: 0; opacity: 0; transform: translateY(6px); }
.bpart.is-real > .wire { opacity: 0; }
.bpart.is-real > .real { opacity: 1; transform: none; }
.wire { background: repeating-linear-gradient(135deg, #eef2f7 0 6px, #e6ecf4 6px 12px); border-radius: 4px; height: 100%; }
.b-nav { height: 30px; }
.b-nav .real { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; }
.b-nav .real em { font-style: normal; background: var(--navy); color: #fff; padding: 5px 10px; border-radius: 3px; }
.b-hero { height: clamp(120px, 14vw, 170px); }
.b-hero .real { background: var(--navy); color: #fff; border-radius: 6px; padding: clamp(14px, 2vw, 24px); display: grid; align-content: end; gap: 10px; }
.b-hero .real strong { font: 500 clamp(20px, 2.4vw, 32px)/1.05 var(--serif); }
.b-hero .real span { display: flex; gap: 8px; font-size: 12px; font-weight: 600; }
.b-hero .real span i { font-style: normal; background: #fff; color: var(--navy); padding: 6px 10px; border-radius: 3px; }
.b-hero .real span i + i { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.b-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.b-form { height: 118px; }
.b-form .real { border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: grid; gap: 7px; font-size: 11px; color: var(--ink-2); }
.b-form .real i { display: block; height: 20px; border: 1px solid var(--line); border-radius: 3px; }
.b-form .real em { font-style: normal; justify-self: start; background: var(--navy); color: #fff; padding: 5px 10px; border-radius: 3px; font-weight: 600; }
.b-speed { height: 118px; }
.b-speed .real { border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: grid; place-items: center; text-align: center; font-size: 11px; color: var(--ink-2); gap: 6px; }
.b-speed svg { width: 56px; height: 56px; }
.b-speed circle.arc { stroke-dasharray: 126; stroke-dashoffset: calc(126 - 126 * var(--b)); transition: stroke-dashoffset .1s linear; }
.showcase-note { font-size: 13px; color: var(--ink-2); margin-top: 12px; }

/* showcase: agents */
.scene { background: var(--mist); border-radius: 6px; padding: clamp(18px, 3vw, 32px); min-height: 340px; display: grid; align-content: center; gap: 12px; }
.dark .scene { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-d); }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 12px; font-size: 15px; line-height: 1.4; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(7, 21, 41, .08); }
.msg small { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; font-weight: 600; letter-spacing: .02em; }
.msg--out { justify-self: end; background: var(--navy); color: #fff; border-radius: 12px 12px 3px 12px; }
.msg--out small { color: var(--on-dark-2); }
.msg--in { border-radius: 12px 12px 12px 3px; }
.msg--sys { justify-self: center; background: transparent; box-shadow: none; border: 1px dashed var(--ink-2); font-size: 13px; color: var(--ink-2); padding: 6px 12px; border-radius: 99px; }
.dark .msg--sys { border-color: var(--on-dark-2); color: var(--on-dark-2); }
html.js .scene .step-in { opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .5s var(--ease); }
html.js .scene .step-in.is-on { opacity: 1; transform: none; }
.draft-lines { display: grid; gap: 6px; margin-top: 8px; }
.draft-lines i { display: block; height: 7px; border-radius: 4px; background: #c9d6ea; transform-origin: left; }
html.js .draft-lines i { transform: scaleX(0); transition: transform .6s var(--ease); }
html.js .is-on .draft-lines i { transform: scaleX(1); }
html.js .is-on .draft-lines i:nth-child(2) { transition-delay: .15s; } html.js .is-on .draft-lines i:nth-child(3) { transition-delay: .3s; }
.sheet { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 4px; overflow: hidden; color: var(--ink); }
.sheet th, .sheet td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); }
.sheet th { background: #e9eef6; font-weight: 600; font-size: 12px; }
.tl { display: grid; gap: 0; position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl li { position: relative; padding: 10px 0; }
.tl li::before { content: ""; position: absolute; left: -26px; top: 15px; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--navy); background: var(--mist); }
.tl li.is-on::before { background: var(--navy); }
.tl b { display: block; font-size: 13px; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.agent + .agent { border-top: 1px solid var(--line); }
.dark .msg--out { background: var(--navy-2); border: 1px solid var(--line-d); }
.dark .tl::before { background: var(--line-d); }
.dark .tl li::before { border-color: var(--on-dark-2); background: var(--navy); }
.dark .tl li.is-on::before { background: #fff; border-color: #fff; }
.dark .tl b { color: var(--accent-d); }

/* showcase: automation flow */
.flow { width: 100%; height: auto; display: block; }
.flow .node rect { fill: #fff; stroke: var(--line); }
.flow .node text { font: 600 14px var(--sans); fill: var(--ink); }
.flow .node--hub rect { fill: var(--navy); stroke: var(--navy); }
.flow .node--hub text { fill: #fff; }
.flow path.wirepath { fill: none; stroke: var(--line); stroke-width: 1.5; }
.flow path.lit { fill: none; stroke: var(--navy); stroke-width: 2; }
.flow circle.pulse { fill: var(--accent); }

/* showcase: report */
.report { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 32px); border-radius: 4px; }
.report__h { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; font-size: 13px; color: var(--ink-2); }
.report__h b { color: var(--ink); font-size: 15px; }
.rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: center; font-size: 12px; color: var(--ink-2); }
.rings svg { width: 100%; max-width: 76px; height: auto; margin: 0 auto 6px; display: block; }
.rings .bg { fill: none; stroke: #e6ecf4; stroke-width: 6; }
.rings .old { fill: none; stroke: #9aa9be; stroke-width: 6; stroke-linecap: round; }
.rings .new { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; }
.report__legend { display: flex; gap: 18px; margin-top: 16px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.report__legend span::before { content: ""; display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 8px; vertical-align: middle; background: var(--navy); }
.report__legend span.o::before { background: #9aa9be; }
@media (max-width: 460px) { .rings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- contact page + form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.direct li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.direct li:first-child { border-top: 1px solid var(--line); }
.direct span { color: var(--ink-2); }
.direct a, .direct b { font-weight: 600; text-decoration: none; }
.direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.form { display: grid; gap: 20px; background: var(--mist); padding: clamp(22px, 3.4vw, 44px); border-top: 2px solid var(--navy); }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field label, .field legend { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #b9c5d6; border-radius: 3px; padding: 12px 14px; min-height: 50px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .err { color: #b3261e; font-size: 14px; margin-top: 6px; min-height: 0; }
.field .err:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset .chips { margin-top: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 14px; color: var(--ink-2); }
.form__note a { color: var(--accent); }
.form__alert { background: #fdecea; color: #7a1c15; padding: 12px 14px; border-radius: 3px; font-size: 15px; }
.form__alert:empty { display: none; }
.done { background: var(--navy); color: #fff; padding: clamp(24px, 4vw, 48px); }
.done[hidden] { display: none; }
.done h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 16px; }
.done p { color: var(--on-dark-2); }

/* ---------- legal + 404 ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(44px, 6.4vw, 88px); margin-bottom: 20px; }
.legal h2 { font-size: clamp(28px, 3vw, 38px); margin: 48px 0 14px; }
.legal p, .legal li { color: #2b3f5e; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); }
.legal .updated { color: var(--ink-2); font-size: 15px; }
.nf { min-height: 70svh; display: grid; align-content: center; }
.nf h1 { margin: 16px 0 24px; }
.nf ul { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .layer--add { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  html.js .ln > span, html.js .rv, html.js .rule { transform: none; opacity: 1; }
  html.js .close__sig, html.js .plate__img { clip-path: none; }
}
