/* Certavale — IEQ-inspired design system (original implementation) */

:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cabin", "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --max: 1440px;
  --nav-h: 76px;
  --brand-blue: #0d91d0;
  --brand-teal: #074a6a;
  --brand-navy: #003e71;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --bg-2: #fafafa;
  --bg-3: #f4f6f8;
  --card: #fff;
  --card-2: #fbfcfd;
  --fg: #0a0a0a;
  --fg-2: #3f3f46;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #0a141e17;
  --line-2: #0a141e29;
  --line-3: #0a141e47;
  --brand: #0d91d0;
  --brand-ink: #074a6a;
  --brand-soft: #0d91d01a;
  --brand-line: #0d91d061;
  --btn-grad: linear-gradient(160deg, #0b80bd 0%, #0a6ca4 50%, #06547f 100%);
  --btn-glow: #0a6ca4bf;
  --shadow: 0 1px 1px #00000008, 0 4px 12px -4px #0000000f, 0 18px 40px -20px #074a6a2e;
  --glow: #0d91d029;
  --grid-dot: #0a141e21;
  --ok: #16a34a;
  --warn: #d97706;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a0c;
  --bg-2: #0b0f12;
  --bg-3: #10161a;
  --card: #0b1013;
  --card-2: #0e1418;
  --fg: #ededed;
  --fg-2: #c7cdd2;
  --muted: #8b949c;
  --faint: #5d666e;
  --line: #dcebf514;
  --line-2: #dcebf524;
  --line-3: #dcebf542;
  --brand: #35ade6;
  --brand-ink: #7ccbf2;
  --brand-soft: #35ade61f;
  --brand-line: #35ade66b;
  --btn-grad: linear-gradient(160deg, #1683c1 0%, #0f72ab 50%, #0a5a8a 100%);
  --btn-glow: #35ade680;
  --shadow: 0 0 0 1px #ffffff05, 0 20px 50px -24px #000c;
  --glow: #35ade633;
  --grid-dot: #dcebf51f;
  --ok: #3ddc84;
  --warn: #f5a524;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
ul { list-style: none; margin: 0; padding: 0; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 16px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
.eyebrow {
  font: 500 11.5px/1 var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow i {
  width: 6px; height: 6px; background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft); display: block; transform: rotate(45deg);
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.025em; margin: 0; font-weight: 600; line-height: 1.02; }
.h2 { letter-spacing: -.035em; font-size: clamp(34px, 4.6vw, 60px); }
.lede { color: var(--muted); max-width: 56ch; margin: 0; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; }
.lede strong { color: var(--fg); font-weight: 500; }
.grad {
  background: linear-gradient(100deg, var(--fg) 20%, var(--brand) 120%);
  color: transparent; -webkit-background-clip: text; background-clip: text;
}

.shell { max-width: var(--max); margin: 0 auto; position: relative; overflow-x: clip; }
.block { position: relative; }
.pad { padding: clamp(40px, 5.5vw, 76px) clamp(20px, 4vw, 56px); }
.sec-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 64px);
}
.sec-head .lede { max-width: 46ch; }
.sec-head h2 { margin-top: 18px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  --h: 44px; height: var(--h);
  font: 500 14.5px/1 var(--font-sans); letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 18px;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .25s;
}
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { --h: 38px; font-size: 13.5px; padding: 0 14px; }
.btn-primary {
  background: var(--btn-grad); color: #fff;
  text-shadow: 0 1px 1px #03263c59;
  box-shadow: inset 0 1px 0 #ffffff38, 0 10px 24px -12px var(--btn-glow);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 #ffffff42, 0 14px 28px -12px var(--btn-glow), 0 0 0 4px var(--brand-soft); }
.btn-ghost {
  background: transparent; color: var(--fg);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--brand-line); background: var(--brand-soft); }

.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--brand-line); }
.theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .moon { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: block; }

.tag {
  display: inline-flex; align-items: center;
  font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2);
}
.tag.brand { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-ink); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s, backdrop-filter .25s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}
.nav-in {
  width: 100%;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  object-fit: contain; flex: none; display: block;
  box-shadow: 0 8px 18px -10px var(--btn-glow);
  background: transparent;
}
.core-logo {
  width: min(72px, 58%); height: auto; aspect-ratio: 1;
  border-radius: 18px; object-fit: contain; display: block;
  box-shadow: 0 10px 24px -12px var(--btn-glow);
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a, .has-sub > a {
  padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--fg-2);
  transition: background .2s, color .2s;
}
.nav-links > a:hover, .has-sub > a:hover { background: var(--brand-soft); color: var(--fg); }
.has-sub { position: relative; }
.has-sub > a { display: inline-flex; align-items: center; gap: 4px; }
.has-sub .chev { width: 14px; height: 14px; }
.sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 8px; opacity: 0; pointer-events: none;
  transform: translateY(6px); transition: .2s var(--ease);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; pointer-events: auto; transform: none; }
.sub a {
  display: block; padding: 10px 12px; border-radius: 10px; font-weight: 500;
}
.sub a small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.sub a:hover { background: var(--bg-3); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--fg-2);
}
.phone svg { width: 16px; height: 16px; }
.menu-btn { display: none; }

.mobile-menu {
  display: none; position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(16px);
  padding: 20px clamp(20px, 4vw, 56px); overflow: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
}
.mobile-menu .sub { position: static; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; min-width: 0; }
.mobile-menu .sub a { font-size: 1rem; font-weight: 500; color: var(--muted); border: 0; padding: 8px 0; }

@media (max-width: 1024px) {
  .nav-links, .phone .ph-txt { display: none; }
  .menu-btn { display: grid; }
}

/* Hero */
.hero { position: relative; padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 56px) 24px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at var(--gx, 70%) var(--gy, 30%), var(--glow), transparent 42%),
    linear-gradient(var(--grid-dot) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dot) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  mask-image: radial-gradient(ellipse 70% 65% at 72% 35%, #000 10%, transparent 72%);
  opacity: 0; transition: opacity .8s var(--ease);
}
.hero-bg.ready { opacity: 1; }
.hero-glow {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  filter: blur(10px); transform: translate3d(0, 0, 0);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 48px);
  align-items: center; min-height: min(720px, calc(100vh - var(--nav-h) - 80px));
}
.hero-copy { min-width: 0; position: relative; z-index: 2; }
.award-pill {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 500; margin-bottom: 18px;
}
.award-pill .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff; border-radius: 999px; padding: 4px 8px; font-size: 12px;
}
.award-pill .badge svg { width: 14px; height: 14px; }
.award-pill .sep { opacity: .5; }
.award-pill > .i { width: 14px; height: 14px; }

.h1 {
  font-size: clamp(42px, 7vw, 78px); letter-spacing: -.04em; line-height: .98;
  display: flex; flex-direction: column; gap: .08em; margin-bottom: 18px;
}
.h1 .ln { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.h1 em {
  font-style: normal; color: var(--brand); font-weight: 700;
}
.q-note {
  font-size: clamp(14px, 1.4vw, 18px); color: var(--muted); font-family: var(--font-sans);
  font-weight: 500; letter-spacing: 0; line-height: 1.35; margin-left: 8px;
}
.hero-sub { margin-bottom: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 14px 20px; color: var(--muted);
  font-size: 14px; font-weight: 500; margin-bottom: 16px;
}
.hero-meta div { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--brand); }

.g-reviews {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600;
}
.g-reviews .score { font-size: 16px; }
.stars5 {
  width: 80px; height: 14px;
  background: linear-gradient(90deg, #eab308 var(--p, 94%), #d4d4d8 var(--p, 94%));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath fill='black' d='M12 2l2.9 6.9L22 10l-5 4.6L18.2 22 12 18.2 5.8 22 7 14.6 2 10l7.1-1.1zM36 2l2.9 6.9L46 10l-5 4.6L42.2 22 36 18.2 29.8 22 31 14.6 26 10l7.1-1.1zM60 2l2.9 6.9L70 10l-5 4.6L66.2 22 60 18.2 53.8 22 55 14.6 50 10l7.1-1.1zM84 2l2.9 6.9L94 10l-5 4.6L90.2 22 84 18.2 77.8 22 79 14.6 74 10l7.1-1.1zM108 2l2.9 6.9L118 10l-5 4.6L114.2 22 108 18.2 101.8 22 103 14.6 98 10l7.1-1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath fill='black' d='M12 2l2.9 6.9L22 10l-5 4.6L18.2 22 12 18.2 5.8 22 7 14.6 2 10l7.1-1.1zM36 2l2.9 6.9L46 10l-5 4.6L42.2 22 36 18.2 29.8 22 31 14.6 26 10l7.1-1.1zM60 2l2.9 6.9L70 10l-5 4.6L66.2 22 60 18.2 53.8 22 55 14.6 50 10l7.1-1.1zM84 2l2.9 6.9L94 10l-5 4.6L90.2 22 84 18.2 77.8 22 79 14.6 74 10l7.1-1.1zM108 2l2.9 6.9L118 10l-5 4.6L114.2 22 108 18.2 101.8 22 103 14.6 98 10l7.1-1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.g-reviews .count { color: var(--muted); font-weight: 500; }
.g-reviews .go { width: 14px; height: 14px; color: var(--muted); }

/* System map */
.sysmap {
  position: relative; aspect-ratio: 1; width: min(100%, 520px); margin: 0 auto;
  transform-style: preserve-3d; z-index: 1;
  max-width: 100%;
}
.sysmap .map { width: 100%; height: 100%; }
.sysmap .ring { fill: none; stroke: var(--line-3); stroke-width: 1; }
.sysmap .ring.dash { stroke-dasharray: 4 6; }
.sysmap .ring.brand { stroke: var(--brand); opacity: .55; }
.sysmap .ring.faint { stroke: var(--line-2); }
.sysmap .spin { transform-origin: 300px 300px; animation: spin 48s linear infinite; }
.sysmap .spin.rev { animation-direction: reverse; animation-duration: 64s; }
.sysmap .spin.fwd { animation-duration: 36s; }
@keyframes spin { to { transform: rotate(360deg); } }
.sysmap .spoke, .sysmap .lead { fill: none; stroke: var(--line-3); stroke-width: 1; transition: stroke .25s; }
.sysmap .spoke.hl, .sysmap .lead.hl { stroke: var(--brand); }
.sysmap .packet { fill: var(--brand); }
.sysmap .node { fill: var(--card); stroke: var(--line-3); stroke-width: 1; transition: fill .25s, stroke .25s; }
.sysmap .node.hl { stroke: var(--brand); fill: var(--brand-soft); }
.sysmap .node-core { fill: var(--brand); }
.sysmap.lit .core-glow { opacity: .9; }

.core-glow {
  position: absolute; inset: 34%; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  opacity: .55; transition: opacity .3s; pointer-events: none;
}
.core {
  position: absolute; inset: 38%; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  display: grid; place-items: center; text-align: center; z-index: 2; padding: 12px;
}
.core strong { display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.02em; }
.core small { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.co {
  position: absolute; z-index: 3; width: min(46%, 190px);
  padding: 12px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.co:hover, .co:focus-visible { border-color: var(--brand-line); transform: translateY(-2px); box-shadow: var(--shadow), 0 0 0 4px var(--brand-soft); }
.co .k { font: 600 11px/1 var(--font-mono); color: var(--brand); letter-spacing: .08em; display: block; margin-bottom: 4px; }
.co .t { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; }
.co .s { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.co .s svg { width: 13px; height: 13px; }
.co .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); display: inline-block; }
.co.nw { top: 4%; left: 50%; transform: translateX(-50%); }
.co.ne { top: 38%; right: 2%; }
.co.sw { bottom: 4%; left: 50%; transform: translateX(-50%); }
.co.se { top: 38%; left: 2%; }
.co.nw:hover, .co.sw:hover { transform: translateX(-50%) translateY(-2px); }
.hud {
  position: absolute; z-index: 2;
  font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.hud b { color: var(--muted); font-weight: 500; }
.hud.top { top: 10%; left: 50%; transform: translateX(-50%); }
.hud.bot { bottom: 10%; left: 50%; transform: translateX(-50%); }
.hud.l { left: 2%; top: 50%; writing-mode: vertical-rl; transform: rotate(180deg); }
.hud.r { right: 2%; top: 50%; writing-mode: vertical-rl; }
.sweep {
  position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 70%, color-mix(in srgb, var(--brand) 18%, transparent) 85%, transparent 100%);
  animation: spin 10s linear infinite; opacity: .55;
}

/* Clients */
.clients {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center;
  padding: 28px clamp(20px, 4vw, 56px) 48px;
}
.clients .lbl { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--muted); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track {
  display: flex; gap: 36px; width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee .track span {
  font-family: var(--font-display); font-weight: 650; font-size: 17px;
  color: var(--fg-2); opacity: .45; white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 720px) {
  .clients { grid-template-columns: 1fr; }
}

/* Services bento */
.bento {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
}
.svc {
  grid-column: span 6;
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--brand-soft), transparent 45%);
}
.svc.w7 { grid-column: span 7; }
.svc.w5 { grid-column: span 5; }
.svc:hover { transform: translateY(-3px); border-color: var(--brand-line); }
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc .go { color: var(--muted); }
.svc-body h3 { font-size: 24px; margin-bottom: 8px; }
.svc-body p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.viz {
  margin-top: auto; border-radius: 14px; border: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--brand-soft), transparent),
    repeating-linear-gradient(0deg, transparent, transparent 11px, var(--line) 12px),
    repeating-linear-gradient(90deg, transparent, transparent 11px, var(--line) 12px);
  padding: 14px; min-height: 160px;
}
.board-h {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 12.5px; font-weight: 600; color: var(--fg-2);
}
.board-h .clock { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.board-rows { display: grid; gap: 6px; }
.brow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--card) 80%, transparent);
  border: 1px solid var(--line); font-size: 12.5px;
}
.brow .st { color: var(--ok); font: 700 10px/1 var(--font-mono); letter-spacing: .08em; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 28px; margin-top: 10px; }
.bars i {
  flex: 1; border-radius: 2px 2px 0 0; background: var(--brand);
  opacity: .35; height: 40%;
  animation: barPulse 1.8s ease-in-out infinite;
}
@keyframes barPulse { 50% { height: 95%; opacity: .85; } }

.bridge { display: flex; align-items: center; gap: 10px; height: 100%; }
.stack {
  flex: 1; padding: 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  font-size: 12.5px;
}
.stack .mono { display: block; margin-bottom: 8px; color: var(--muted); }
.stack div { padding: 4px 0; border-top: 1px dashed var(--line); }
.pipe { width: 56px; flex: none; }
.pipe svg { width: 100%; height: 48px; overflow: visible; }
.pipe .ln { fill: none; stroke: var(--brand-line); stroke-width: 1.5; stroke-dasharray: 3 3; }
.pipe .pk { fill: var(--brand); }

.editor {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.55;
}
.editor-h {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 11px;
}
.editor-h i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-3); }
.editor pre { margin: 0; padding: 12px; white-space: pre-wrap; color: var(--fg-2); }
.editor .c { color: var(--muted); }
.editor .k { color: var(--brand-ink); }
.editor .f { color: var(--brand); }
.editor .s { color: #b7891a; }
.editor .p { color: var(--ok); }
.editor .caret {
  display: inline-block; width: 7px; height: 1.1em; background: var(--brand); margin-left: 2px; vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.devices { display: grid; grid-template-columns: 1.3fr .7fr; gap: 10px; align-items: end; }
.browser, .phone-d {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.browser-h, .p-nav {
  display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.browser-h i, .p-nav .burger {
  width: 7px; height: 7px; border-radius: 50%; background: var(--line-3);
}
.browser-h .url { margin-left: 8px; font-size: 10px; color: var(--muted); font-family: var(--font-mono); }
.site { padding: 10px; display: grid; gap: 8px; }
.s-nav { display: flex; gap: 6px; align-items: center; }
.s-nav b { width: 18px; height: 10px; border-radius: 3px; background: var(--brand); }
.s-nav span { width: 18px; height: 4px; border-radius: 2px; background: var(--line-2); }
.s-hero .l, .s-sec .l { height: 8px; border-radius: 999px; background: var(--line-2); margin: 6px 0; }
.l.w60 { width: 60%; } .l.w40 { width: 40%; } .l.w70 { width: 70%; } .l.w50 { width: 50%; } .l.w30 { width: 30%; }
.l.soft { opacity: .6; }
.s-btn { display: inline-block; width: 48px; height: 14px; border-radius: 999px; background: var(--brand); margin-top: 4px; }
.s-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.s-cols div { height: 36px; border-radius: 6px; border: 1px dashed var(--line-2); }
.phone-d { min-height: 120px; }
.p-card { height: 22px; margin: 8px; border-radius: 6px; background: var(--bg-3); }
.dev-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--muted); }
.htag {
  display: inline-block; font: 600 9px/1 var(--font-mono); padding: 2px 5px; border-radius: 4px;
  background: var(--brand-soft); color: var(--brand-ink); margin-right: 4px;
}

@media (max-width: 980px) {
  .svc, .svc.w7, .svc.w5 { grid-column: span 12; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hide-sm { display: none; }
}

/* Work */
.roster { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ro {
  appearance: none; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: transparent; text-align: left; min-width: 140px;
  transition: .2s var(--ease);
}
.ro b { display: block; font-family: var(--font-display); font-size: 14px; }
.ro small { color: var(--muted); font-size: 12px; }
.ro[aria-selected="true"], .ro:hover {
  background: var(--fg); color: var(--bg); border-color: var(--fg);
}
.ro[aria-selected="true"] small, .ro:hover small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
html[data-theme="dark"] .ro[aria-selected="true"],
html[data-theme="dark"] .ro:hover { background: var(--brand); border-color: var(--brand); color: #041018; }

.dossier {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px;
  padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.d-visual {
  position: relative; min-height: 300px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 80%, #003e71), var(--brand-teal));
  color: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end;
}
.d-visual .glow {
  position: absolute; inset: -20%; background: radial-gradient(circle at 30% 20%, #fff5, transparent 45%); pointer-events: none;
}
.d-mono {
  position: absolute; top: 18px; left: 18px;
  font: 600 12px/1 var(--font-mono); letter-spacing: .14em; padding: 6px 10px;
  border-radius: 999px; background: #ffffff22; backdrop-filter: blur(8px);
}
.d-visual h3, .d-info h3 { font-size: clamp(22px, 2.4vw, 30px); }
.d-info .sector { color: var(--muted); margin: 8px 0 14px; font-size: 14px; }
.d-info .sum { color: var(--muted); margin: 0 0 16px; }
.attrs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.attrs div { padding: 10px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); }
.attrs dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.attrs dd { margin: 0; font-weight: 600; font-size: 13.5px; }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 900px) {
  .dossier, .attrs { grid-template-columns: 1fr; }
}

/* Industries */
.ind {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.ind a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 170px; padding: 18px; border-radius: 14px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 70%, transparent);
  transition: .25s var(--ease);
}
.ind a:hover { transform: translateY(-3px); border-color: var(--brand-line); background: var(--card); }
.ind .top { display: flex; justify-content: space-between; align-items: flex-start; }
.ind .ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink);
}
.ind .arr { width: 16px; height: 16px; color: var(--faint); }
.ind h4 { font-size: 17px; margin-bottom: 6px; }
.ind p { margin: 0; color: var(--muted); font-size: 14px; }
.ind a.cta { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ind a.cta p { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.ind a.cta .ico { background: #ffffff22; color: var(--bg); }
@media (max-width: 980px) { .ind { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ind { grid-template-columns: 1fr; } }

/* Why */
.why {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 48px); align-items: start;
}
.why .sticky .h2 { margin: 16px 0; }
.why .lede { margin-bottom: 18px; }
.proto { display: grid; gap: 12px; margin-top: 28px; }
.prow {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
}
.prow h3 { font-size: 20px; margin-bottom: 6px; }
.prow p { margin: 0; color: var(--muted); font-size: 14.5px; }
.seal {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-line);
}
.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.stat {
  padding: 22px; border-radius: 16px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--btn-grad); color: #fff;
}
.stat:nth-child(2), .stat:nth-child(3) {
  background: var(--card); color: var(--fg); border: 1px solid var(--line);
}
.stat .n { font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); letter-spacing: -.03em; line-height: 1; }
.stat .n small { font-size: .45em; letter-spacing: 0; }
.stat p { margin: 10px 0 0; font-size: 14px; opacity: .9; }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-item {
  padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
}
.faq-item h3 { font-size: 18px; margin-bottom: 6px; }
.faq-item p { margin: 0; color: var(--muted); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rev {
  margin: 0; padding: 18px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--card); box-shadow: var(--shadow);
}
.rev.feature { grid-column: span 3; }
.rh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rstars::before { content: "★★★★★"; color: #eab308; letter-spacing: 1px; font-size: 13px; }
.rev blockquote { margin: 0 0 14px; }
.rev blockquote p { margin: 0 0 10px; color: var(--fg-2); font-size: 15px; }
.who { display: flex; align-items: center; gap: 10px; }
.av {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); font: 700 12px/1 var(--font-mono);
}
.who b { display: block; font-size: 14px; }
.who small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) {
  .reviews, .rev.feature { grid-template-columns: 1fr; grid-column: auto; }
}

/* Contact */
.contact {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px;
  padding: 20px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 14px;
}
.status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent);
}
.status .dot.off { background: var(--faint); box-shadow: none; }
.cards { display: grid; gap: 8px; margin-top: 20px; }
.cline {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .2s;
}
.cline:hover { border-color: var(--brand-line); }
.cline .ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink);
}
.cline b { display: block; font-size: 14.5px; }
.cline small { color: var(--muted); font-size: 12.5px; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line);
}
.form-h, .field.full, .form-foot { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line-2); background: var(--card);
  border-radius: 12px; padding: 12px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.field textarea { min-height: 100px; resize: vertical; }
.field .count { justify-self: end; color: var(--muted); font-size: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label {
  cursor: pointer; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card);
  padding: 10px 12px; font-size: 13.5px; font-weight: 500; transition: .2s;
}
.seg label span { display: flex; align-items: center; gap: 8px; }
.seg label em {
  font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--brand); font-weight: 600;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.seg-other {
  grid-column: 1 / -1; display: none; width: 100%;
  border: 1px solid var(--line-2); background: var(--card); border-radius: 12px; padding: 12px 14px;
}
.seg:has(input[value="other"]:checked) .seg-other { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px;
}
.form-foot small { color: var(--muted); max-width: 36ch; }
@media (max-width: 900px) {
  .contact, .form, .seg { grid-template-columns: 1fr; }
}

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px clamp(20px, 4vw, 56px) 28px; background: var(--bg-2); }
.foot-top {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; margin-bottom: 28px;
}
.site-foot .about p { margin: 12px 0 0; color: var(--muted); max-width: 36ch; font-size: 14.5px; }
.site-foot h5 { margin: 0 0 12px; font-family: var(--font-display); font-size: 14px; }
.site-foot h5.sub { margin-top: 20px; }
.site-foot li a, .site-foot li {
  display: block; padding: 4px 0; color: var(--muted); font-size: 14px;
}
.site-foot li a:hover { color: var(--brand); }
.site-foot .loc { display: block; color: var(--fg); font-weight: 600; margin-bottom: 2px; }
.foot-bot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.foot-bot .links { display: flex; gap: 14px; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-top { grid-template-columns: 1fr; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  z-index: 300; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px; background: var(--fg); color: var(--bg);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s var(--ease);
  max-width: min(92vw, 480px); font-size: 14px; font-weight: 500;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.warn { background: #7f1d1d; color: #fff; }
.toast svg { width: 16px; height: 16px; flex: none; }

/* Reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; }
.rv.d2 { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rv { opacity: 1; transform: none; }
}
