/* =========================================================
   OS IT Solutions — main stylesheet
   ========================================================= */

/* Self-hosted fonts (SIL Open Font License), latin subset */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/caveat-500-latin.woff2") format("woff2");
}

:root {
  --bg: #040a18;
  --bg-2: #061230;
  --surface: #0a1835;
  --surface-2: #0d1f44;
  --line: rgba(110, 160, 255, 0.16);
  --line-strong: rgba(110, 160, 255, 0.34);
  --text: #eaf1fc;
  --muted: #9fb0cc;
  --muted-2: #7f91b0;
  --primary: #1f74ff;
  --primary-600: #155ee0;
  --accent: #33a8ff;
  --cyan: #4cc3ff;
  --ok: #4ade80;
  --paper: #f3f6fb;
  --ink: #0b1a33;
  --ink-muted: #4a5a78;

  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.65);
  --header-h: 76px;
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body:has(dialog[open]), body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a[href^="tel:"] { white-space: nowrap; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* Sections far below the fold skip rendering until they get close to the screen (faster first
   load on phones). .cv-off, set before an in-page jump, renders everything so anchors land exactly. */
html:not(.cv-off) main > section:nth-child(n+4),
html:not(.cv-off) .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }

.eyebrow {
  font: 700 12px/1.4 var(--font-body);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.text-gradient {
  background: linear-gradient(90deg, #2f86ff 0%, #4cc3ff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.glass {
  background: linear-gradient(180deg, rgba(22, 44, 92, 0.58), rgba(8, 20, 48, 0.62));
  border: 1px solid rgba(120, 170, 255, 0.22);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-body); white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(180deg, #2573f2, #1352cc);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(31, 116, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(31, 116, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.04); color: #fff; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-block { width: 100%; }

.round-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong); color: #fff;
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.round-btn .icon { width: 20px; height: 20px; }
.round-btn:hover:not(:disabled) { background: var(--primary); border-color: var(--primary); }
.round-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile nav. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(4, 10, 24, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .8);
  opacity: 0; transition: opacity .3s ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
/* The header row (logo, menu, language switch, CTA) gets a little more width than the content. */
.site-header .container { width: min(1340px, 100% - var(--gutter) * 2); }
.brand img { height: 40px; width: auto; }
.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border: 0; background: none; border-radius: 8px;
  font: 500 14.5px/1 var(--font-body); color: #d3def2; white-space: nowrap;
  transition: color .2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: #fff; }
.nav-link.is-active { color: var(--accent); }
.nav-link .caret { width: 14px; height: 14px; transition: transform .2s; }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; min-width: 290px;
  padding: 8px; border-radius: 14px;
  background: rgba(8, 20, 46, 0.97); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; }
.dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 9px; font-size: 14.5px; color: #d3def2;
  transition: background-color .15s, color .15s;
}
.dropdown a .icon { width: 18px; height: 18px; color: var(--accent); }
.dropdown a:hover { background: rgba(31, 116, 255, 0.14); color: #fff; }
.dropdown-toggle[aria-expanded="true"] + .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1081px) {
  .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-dropdown:hover .caret { transform: rotate(180deg); }
}
.nav-mobile-extra { display: none; }
.lang-switch {
  display: inline-flex; flex: none; padding: 3px; gap: 2px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-strong);
}
.lang-switch a {
  color: var(--muted);
  font: 700 12.5px/1 var(--font-body); letter-spacing: .06em;
  padding: 7px 10px; border-radius: 999px;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"] {
  background: linear-gradient(180deg, #2573f2, #1352cc); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(31,116,255,.9);
}
.header-cta { margin-left: 4px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: 4px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04);
  place-items: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(2, 6, 16, .6); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 190px;
  background:
    radial-gradient(900px 560px at 78% 28%, rgba(31, 116, 255, 0.30), transparent 62%),
    radial-gradient(700px 420px at 8% 0%, rgba(51, 168, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #030914 0%, #061430 58%, #0a1c42 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(90, 140, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 140, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 10%, transparent 75%);
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 70% center;
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(3,9,20,.94) 0%, rgba(3,9,20,.78) 38%, rgba(3,9,20,.35) 70%, rgba(3,9,20,.2) 100%);
}
.hero-grid { z-index: 1; }
.hero-bg::after { z-index: 1; }
.hero-bg::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.14fr 0.86fr; gap: 48px; align-items: center;
}
.hero-kicker {
  font: 700 12.5px/1.4 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
  color: #cfe0ff; margin-bottom: 22px; display: block; text-wrap: wrap;
}
.hero-title { display: block; }
.hero-kicker span { color: var(--accent); margin: 0 6px; }
.hero h1 { font-size: clamp(2.5rem, 4.7vw, 3.9rem); line-height: 1.06; margin-bottom: 24px; }
.hero h1 .text-gradient { display: block; }
.lead { font-size: 1.1rem; color: #b9c8e1; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-visual { position: relative; padding: 56px 0 36px; }
.script-note {
  position: absolute; top: -18px; right: 0; max-width: 320px; text-align: right;
  font: 500 27px/1.05 var(--font-script); color: #dce8ff; text-wrap: balance;
  transform: rotate(-4deg);
  text-shadow: 0 2px 20px rgba(31, 116, 255, .5);
}

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -120px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 32, 70, .82), rgba(7, 18, 42, .9));
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--accent);
  border: 1px solid rgba(51, 168, 255, .45);
  background: radial-gradient(circle, rgba(31,116,255,.25), rgba(31,116,255,.05));
  box-shadow: 0 0 24px -6px rgba(51,168,255,.6);
}
.stat-icon .icon { width: 26px; height: 26px; }
.stat-num { font: 800 28px/1.05 var(--font-head); font-variant-numeric: tabular-nums; }
.stat-num [data-count] { display: inline-block; text-align: right; }
.stat-label { font-weight: 600; font-size: 15px; margin-top: 2px; }
.stat-text { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; max-width: 880px; margin-inline: auto; }
.section-head.center h2 { margin-bottom: 18px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.04rem; }
.section-head.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.section-head.split > p { max-width: 460px; justify-self: end; }

/* ---------- Services ---------- */
.services { padding-top: 120px; }
/* Both panels share the parent's three rows (head / tiles / CTA) through subgrid,
   so their headers, tile grids and buttons line up exactly side by side. */
.svc-columns { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; column-gap: 24px; }
.svc-panel {
  position: relative; overflow: hidden;
  display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 24px;
  padding: 28px; border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(31,116,255,.14), transparent 60%),
    linear-gradient(180deg, #0b1a3a, #071430);
  border: 1px solid var(--line-strong);
}
.svc-panel > .btn { justify-self: start; align-self: start; }
.svc-panel-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: stretch; }
.svc-panel-copy { align-self: start; }
.svc-panel h3 { font-size: clamp(1.3rem, 1.65vw, 1.5rem); line-height: 1.18; margin-bottom: 12px; }
.svc-panel-copy p:not(.eyebrow) { color: var(--muted); font-size: 14.5px; }
.svc-panel-media {
  margin: 0; min-height: 200px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-strong); position: relative;
  box-shadow: 0 20px 50px -20px rgba(31,116,255,.45);
}
.svc-panel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.svc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.svc-tile {
  width: 100%; height: 100%; min-height: 118px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 10px; border-radius: 14px; text-align: center;
  background: rgba(255,255,255,.025); border: 1px solid var(--line);
  font: 600 13.5px/1.3 var(--font-body); color: #dbe6f7;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.svc-tile .icon { width: 30px; height: 30px; color: var(--accent); stroke-width: 1.5; transition: filter .2s; }
.svc-tile:hover {
  transform: translateY(-3px); border-color: rgba(51,168,255,.6);
  background: rgba(31,116,255,.09);
  box-shadow: 0 16px 30px -18px rgba(31,116,255,.7);
}
.svc-tile:hover .icon { filter: drop-shadow(0 0 8px rgba(76,195,255,.8)); }
@supports not (grid-template-rows: subgrid) {
  .svc-panel { display: flex; flex-direction: column; gap: 24px; }
  .svc-panel > .btn { margin-top: auto; align-self: flex-start; }
}

/* ---------- Why ---------- */
.why {
  background: linear-gradient(180deg, #050d22, #061330);
  border-block: 1px solid var(--line);
  padding: 90px 0;
}
.why-grid { display: grid; grid-template-columns: 0.95fr 2fr; gap: 56px; align-items: start; }
.why-intro h2 { font-size: clamp(1.8rem, 2.8vw, 2.35rem); margin-bottom: 16px; }
.why-intro p:not(.eyebrow) { color: var(--muted); font-size: 15px; }
.why-intro .why-lead { margin-top: 14px; }
.why-lead a { color: var(--cyan); font-weight: 600; border-bottom: 1px solid rgba(76,195,255,.4); transition: border-color .2s; }
.why-lead a:hover { border-color: var(--cyan); }
.why-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why-list li { position: relative; padding-left: 0; }
.why-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: var(--accent); margin-bottom: 18px;
  background: rgba(31,116,255,.1); border: 1px solid rgba(51,168,255,.3);
}
.why-icon .icon { width: 26px; height: 26px; }
.why-list h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.01em; }
.why-list p { font-size: 14px; color: var(--muted); }

/* ---------- Industries ---------- */
.industry-grid { --cols: 6; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.industry-card {
  flex: 0 0 calc((100% - (var(--cols) - 1) * 14px) / var(--cols));
  position: relative; overflow: hidden; border-radius: 14px;
  aspect-ratio: 4 / 4.2; border: 1px solid var(--line-strong);
  background: var(--surface);
}
.industry-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.industry-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,10,24,0) 40%, rgba(4,10,24,.92) 100%);
}
.industry-card:hover img { transform: scale(1.06); }
.industry-label {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  font: 600 14px/1.25 var(--font-body);
}
.industry-icon {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
  border: 1px solid rgba(255,255,255,.55); background: rgba(4,10,24,.4);
}
.industry-icon .icon { width: 17px; height: 17px; }

/* ---------- Process ---------- */
.process { background: linear-gradient(180deg, #061330, #050d22); border-block: 1px solid var(--line); padding: 90px 0; }
.process-grid { display: grid; grid-template-columns: 0.9fr 2.1fr; gap: 56px; align-items: center; }
.process-intro h2 { margin-bottom: 16px; }
.process-intro p:not(.eyebrow) { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; left: 62px; right: -16px; height: 1px;
  background: linear-gradient(90deg, rgba(51,168,255,.6), rgba(51,168,255,.15));
}
.step:not(:last-child)::before {
  content: ""; position: absolute; top: 18px; right: -16px; width: 8px; height: 8px;
  border-top: 1px solid rgba(51,168,255,.5); border-right: 1px solid rgba(51,168,255,.5);
  transform: rotate(45deg);
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font: 800 17px/1 var(--font-head); color: #fff;
  background: linear-gradient(180deg, #2b82ff, #155ee0);
  box-shadow: 0 0 0 6px rgba(31,116,255,.14), 0 10px 24px -8px rgba(31,116,255,.8);
}
.step-icon { width: 30px; height: 30px; color: var(--accent); margin: 22px 0 12px; stroke-width: 1.5; }
.step h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.projects-intro h2 { margin-bottom: 16px; font-size: clamp(2rem, 2.7vw, 2.4rem); }
.projects-intro > p:not(.eyebrow) { color: var(--muted); font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.filter {
  padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); color: #cfdbf0;
  transition: background-color .2s, border-color .2s, color .2s;
}
.filter:hover { border-color: rgba(51,168,255,.6); color: #fff; }
.filter[aria-pressed="true"] { background: #1a62e6; border-color: #1a62e6; color: #fff; }
.carousel-nav { display: flex; gap: 10px; margin-top: 26px; }
.project-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 288px; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 10px; margin-bottom: -10px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.project-track::-webkit-scrollbar { display: none; }
/* While JS drives the continuous scroll, snapping and smooth scrolling would fight it. */
.project-track.is-auto {
  scroll-snap-type: none; scroll-behavior: auto;
  padding-top: 10px; margin-top: -10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 88%, transparent);
}
.project-card { scroll-snap-align: start; }
.project-card[hidden] { display: none; }
.project-open {
  width: 100%; height: 100%; padding: 0; text-align: left;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0b1a3a, #081530);
  border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.project-open:hover { transform: translateY(-4px); border-color: rgba(51,168,255,.6); box-shadow: 0 20px 40px -20px rgba(31,116,255,.6); }
.project-open img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-meta { display: flex; gap: 10px; align-items: flex-start; padding: 14px 14px 6px; }
.project-icon { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; background: rgba(31,116,255,.14); color: var(--accent); }
.project-icon .icon { width: 16px; height: 16px; }
.project-meta strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.project-meta small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.project-link { display: inline-flex; align-items: center; gap: 6px; margin: auto 14px 14px 54px; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.project-link .icon { width: 15px; height: 15px; transition: transform .2s; }
.project-open:hover .project-link .icon { transform: translateX(3px); }

/* ---------- FAQ ---------- */
.faq { background: linear-gradient(180deg, #040a18, #061330); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.6fr; gap: 56px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro h2 { font-size: clamp(1.8rem, 2.8vw, 2.35rem); margin-bottom: 16px; }
.faq-intro p:not(.eyebrow) { color: var(--muted); margin-bottom: 26px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14,32,70,.55), rgba(7,18,42,.6));
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.faq-item:hover { border-color: rgba(51,168,255,.45); }
.faq-item[open] { border-color: rgba(51,168,255,.55); box-shadow: 0 22px 44px -28px rgba(31,116,255,.75); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -2px; border-radius: var(--radius); }
.faq-item h3 { font-size: 16.5px; line-height: 1.35; letter-spacing: -0.01em; }
.faq-toggle {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(31,116,255,.1);
  transition: transform .35s cubic-bezier(.3,1.4,.5,1), background-color .3s ease;
}
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px;
  background: var(--cyan); transform: translate(-50%, -50%);
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s ease; }
.faq-item[open] .faq-toggle { transform: rotate(180deg); background-color: var(--primary); }
.faq-item[open] .faq-toggle::before, .faq-item[open] .faq-toggle::after { background: #fff; }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 22px 22px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.motion .faq-item[open] .faq-answer { animation: rise .45s cubic-bezier(.2,.7,.2,1); }

/* ---------- Service pages (generated by tools/build_services.py) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 88px;
  background:
    radial-gradient(800px 480px at 82% 30%, rgba(31,116,255,.28), transparent 62%),
    radial-gradient(600px 380px at 0% 0%, rgba(51,168,255,.12), transparent 60%),
    linear-gradient(180deg, #030914 0%, #061430 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1.08; margin-bottom: 20px; }
.page-hero .lead { margin-bottom: 0; }
.motion .page-hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.motion .page-hero-copy > :nth-child(2) { animation-delay: .06s; }
.motion .page-hero-copy > :nth-child(3) { animation-delay: .12s; }
.motion .page-hero-copy > :nth-child(4) { animation-delay: .2s; }
.motion .page-hero-copy > :nth-child(5) { animation-delay: .28s; }
.motion .page-hero-copy > :nth-child(6) { animation-delay: .36s; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 22px; font-size: 13px; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "/"; color: var(--muted-2); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #cfe0ff; }
.page-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.page-hero-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: #d6e3f8;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-strong);
}
.page-hero-chips .icon { width: 16px; height: 16px; color: var(--cyan); }
.page-hero-media {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(31,116,255,.55); aspect-ratio: 4 / 3;
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media.is-wide { aspect-ratio: 16 / 9; align-self: center; }
.motion .page-hero-media { animation: rise 1s .15s cubic-bezier(.2,.7,.2,1) both; }

.overview-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.overview-copy h2 { font-size: clamp(1.8rem, 2.8vw, 2.35rem); margin-bottom: 18px; }
.overview-copy p:not(.eyebrow) { color: var(--muted); margin-bottom: 16px; }
.overview-copy .overview-areas {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px 18px;
  border-radius: var(--radius); background: rgba(31,116,255,.08); border: 1px solid var(--line-strong); color: #d6e3f8;
}
.overview-areas .icon { width: 20px; height: 20px; color: var(--cyan); margin-top: 2px; }
.benefit-list { display: grid; gap: 14px; }
.benefit {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14,32,70,.6), rgba(7,18,42,.65)); border: 1px solid var(--line);
  transition: border-color .3s ease, transform .3s ease;
}
.benefit:hover { border-color: rgba(51,168,255,.5); transform: translateX(4px); }
.benefit-icon, .incl-icon {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(31,116,255,.16); color: var(--cyan);
}
.benefit-icon .icon, .incl-icon .icon { width: 20px; height: 20px; }
.benefit h3 { font-size: 16.5px; margin-bottom: 4px; }
.benefit p { font-size: 14.5px; color: var(--muted); }

.svc-included { background: linear-gradient(180deg, #050d22, #061330); border-block: 1px solid var(--line); }
.incl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.incl-card {
  padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.025); border: 1px solid var(--line);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.incl-card:hover { transform: translateY(-5px); border-color: rgba(51,168,255,.55); box-shadow: 0 24px 40px -24px rgba(31,116,255,.75); }
.incl-card .incl-icon { margin-bottom: 16px; }
.incl-card h3 { font-size: 17px; margin-bottom: 8px; }
.incl-card p { font-size: 14.5px; color: var(--muted); }

.work-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.work-card { flex: 0 1 calc((100% - 36px) / 3); min-width: 240px; }
.work-card figure { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); }
.work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.work-card.is-square img { aspect-ratio: 1 / 1; }
.work-card.is-wide img { aspect-ratio: 3 / 2; }
/* Highlighted full-width portfolio card */
.work-card.is-featured { flex: 1 1 100%; min-width: 0; margin-bottom: 8px; }
.work-card.is-featured figure {
  position: relative; max-width: 720px; margin-inline: auto; border-color: rgba(76, 195, 255, .55);
  box-shadow: 0 0 0 1px rgba(76, 195, 255, .2), 0 30px 80px -30px rgba(31, 116, 255, .75);
}
.work-card.is-featured img { aspect-ratio: 16 / 9; }
.work-card.is-featured:hover img { transform: scale(1.02); }
.work-card.is-featured figcaption { padding: 18px 22px; }
.work-card.is-featured strong { font-size: 19px; }
.work-card.is-featured small { font-size: 14px; }
.work-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: linear-gradient(90deg, #2b82ff, #22b8ff); box-shadow: 0 8px 22px -8px rgba(31, 116, 255, .9);
}
.work-card:hover img { transform: scale(1.05); }
.work-card figcaption { padding: 14px 16px; }
.work-card strong { display: block; font-size: 15px; }
.work-card small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card {
  height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14,32,70,.6), rgba(7,18,42,.65)); border: 1px solid var(--line);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.related-card:hover { transform: translateY(-5px); border-color: rgba(51,168,255,.55); box-shadow: 0 24px 40px -24px rgba(31,116,255,.75); }
.related-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(31,116,255,.16); color: var(--cyan); }
.related-icon .icon { width: 22px; height: 22px; }
.related-card strong { font: 700 17px/1.3 var(--font-head); }
.related-text { font-size: 14.5px; color: var(--muted); flex: 1; }
.related-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--cyan); }
.related-more .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.related-card:hover .related-more .icon { transform: translateX(3px); }

/* ---------- Testimonials (light) ---------- */
.testimonials { background: var(--paper); color: var(--ink); padding: 100px 0; }
.testimonials .eyebrow { color: #1553c7; }
.testi-intro { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.testi-intro h2 { color: var(--ink); margin-bottom: 16px; font-size: clamp(1.8rem, 2.6vw, 2.25rem); }
.testi-intro p:not(.eyebrow) { color: var(--ink-muted); }
.testi-rating { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; font-weight: 600; color: var(--ink); }
.testi-actions { display: flex; justify-content: center; margin-top: 24px; }

/* Auto-scrolling marquee: JS clones the cards once, then the track slides left by exactly
   one set (half its width plus half a gap) and loops seamlessly. Hover/focus pauses it. */
.testi-marquee {
  --testi-gap: 20px;
  overflow: hidden; padding: 8px 0 52px; margin-bottom: -20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.testi-track { display: flex; align-items: stretch; gap: var(--testi-gap); width: max-content; }
.testi-marquee.is-running .testi-track { animation: testi-scroll var(--testi-dur, 70s) linear infinite; }
.testi-marquee:hover .testi-track,
.testi-marquee:focus-within .testi-track { animation-play-state: paused; }
@keyframes testi-scroll { to { transform: translateX(calc(-50% - var(--testi-gap) / 2)); } }
/* Without JS (or with reduced motion) it falls back to a plain swipeable row. */
.testi-marquee:not(.is-running) { overflow-x: auto; scrollbar-width: none; }
.testi-marquee::-webkit-scrollbar { display: none; }
.testi-card {
  margin: 0; padding: 26px; border-radius: var(--radius); width: 360px; flex: none;
  background: #fff; border: 1px solid #e2e8f2;
  box-shadow: 0 24px 44px -28px rgba(16, 40, 90, .35);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -26px rgba(16, 40, 90, .45); }
.testi-card blockquote { flex: 1; }
.stars { display: flex; gap: 3px; color: #f5b301; }
.stars .icon { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.testi-card blockquote { margin: 0; font-size: 14.5px; color: #33415c; line-height: 1.6; }
.testi-card figcaption { display: flex; align-items: flex-start; gap: 12px; padding-top: 14px; border-top: 1px solid #edf1f7; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font: 700 13px/1 var(--font-head); color: #fff;
  background: linear-gradient(135deg, #1553c7, #1f6fe0);
}
.testi-card strong { display: block; font-size: 14.5px; color: var(--ink); }
.testi-card small { display: block; font-size: 12.5px; color: var(--ink-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; padding: 96px 0;
  background:
    radial-gradient(700px 400px at 80% 40%, rgba(31,116,255,.3), transparent 65%),
    linear-gradient(180deg, #061430, #0b2152);
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,10,24,.85) 0%, rgba(4,10,24,.45) 45%, rgba(4,10,24,.1) 100%); }
.cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.cta-copy h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); margin-bottom: 16px; max-width: 620px; }
.cta-copy p:not(.eyebrow) { color: #c3d1e8; max-width: 560px; }
.cta-card { padding: 26px; max-width: 400px; justify-self: end; width: 100%; }
.cta-phone { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.cta-phone-icon {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--cyan);
  border: 1px solid rgba(76,195,255,.5); background: rgba(31,116,255,.15);
}
.cta-phone-icon .icon { width: 26px; height: 26px; }
.cta-phone small { display: block; font-size: 13px; color: var(--muted); }
.cta-phone strong { display: block; font: 800 30px/1.1 var(--font-head); letter-spacing: -0.01em; }
.cta-phone:hover strong { color: var(--cyan); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg), #050e24); }
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p:not(.eyebrow) { color: var(--muted); margin-bottom: 30px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.contact-list small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.contact-list a { overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--cyan); }
.contact-icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: var(--accent);
  background: rgba(31,116,255,.1); border: 1px solid rgba(51,168,255,.3);
}
.contact-icon .icon { width: 21px; height: 21px; }
.contact-form { padding: 28px; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: #cdd9ee; }
.optional { font-weight: 400; color: var(--muted-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  background: rgba(3, 10, 24, .6); border: 1px solid rgba(120,170,255,.24);
  color: #fff; font: 400 15px/1.4 var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9fb0cc 50%), linear-gradient(135deg, #9fb0cc 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select option, .field select optgroup { background: #0a1835; color: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(51,168,255,.18); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #f87171; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12.5px; color: var(--muted-2); margin-top: -4px; }
.form-note a { color: var(--muted); text-decoration: underline; }
.form-note a:hover { color: #fff; }
.form-status { font-size: 14px; min-height: 1.4em; }
/* Empty status takes no room but stays in the accessibility tree for announcements */
.form-status:empty { min-height: 0; margin-top: -16px; }
.form-status[data-state="success"] { color: var(--ok); }
.form-status[data-state="error"] { color: #fca5a5; }
.form-status a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #030914; border-top: 1px solid var(--line); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 0.8fr 1.05fr 1.55fr 0.85fr; gap: 32px; }
.footer-brand img { width: 190px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 300px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: #dbe6f7;
  transition: background-color .2s, border-color .2s, color .2s;
}
.socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.socials .icon { width: 18px; height: 18px; }
.footer-col h2 { font: 700 15px/1.3 var(--font-head); color: var(--accent); margin-bottom: 16px; letter-spacing: 0; }
.footer-col li + li { margin-top: 9px; }
.footer-col a { font-size: 14px; color: #c2cfe4; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #c2cfe4; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.footer-contact a { overflow-wrap: anywhere; }
address { font-style: normal; }
.footer-map svg { width: 100%; max-width: 190px; margin-left: auto; overflow: visible; }
.fl-shape { fill: url(#flDots); stroke: #3a7bff; stroke-width: 1.4; stroke-linejoin: round; }
.fl-shape-glow { fill: url(#flGlow); stroke: none; }
.fl-keys { fill: none; stroke: #3a7bff; stroke-width: 1.4; stroke-dasharray: 2 4; stroke-linecap: round; }
.fl-pin { fill: #1f74ff; stroke: #9fd3ff; stroke-width: 1; filter: drop-shadow(0 0 6px rgba(76,195,255,.9)); }
.fl-pulse { fill: rgba(76,195,255,.35); transform-origin: 183px 152px; animation: ping 2.4s ease-out infinite; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted-2);
}
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: #fff; }

.call-fab {
  display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  width: 56px; height: 56px; border-radius: 50%; place-items: center; color: #fff;
  background: linear-gradient(180deg, #2b82ff, #155ee0);
  box-shadow: 0 14px 30px -10px rgba(31,116,255,.9);
}
.call-fab .icon { width: 24px; height: 24px; }

/* ---------- Dialogs ---------- */
.modal, .lightbox {
  padding: 0; border: 0; background: transparent; color: var(--text);
  max-width: none; max-height: none;
}
.modal::backdrop, .lightbox::backdrop { background: rgba(2, 6, 16, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .22s ease-out; }
.modal-card {
  position: relative; width: min(580px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px); overflow-y: auto;
  padding: 32px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0d1f46, #081530);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(4,10,24,.6); color: #fff;
}
.modal-close:hover { background: var(--primary); border-color: var(--primary); }
.modal-close .icon { width: 18px; height: 18px; }
.modal-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  color: var(--accent); background: rgba(31,116,255,.12); border: 1px solid rgba(51,168,255,.35);
}
.modal-icon .icon { width: 28px; height: 28px; }
.modal-card h2 { font-size: 1.6rem; margin-bottom: 14px; }
.modal-body p { color: #c3d1e8; font-size: 15px; }
.modal-body ul { display: grid; gap: 9px; margin-top: 18px; }
.modal-body li { position: relative; padding-left: 28px; font-size: 14.5px; color: #dbe6f7; }
.modal-body li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(31,116,255,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234cc3ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.lightbox-card {
  position: relative; width: min(1100px, calc(100vw - 32px));
  border-radius: var(--radius-lg); overflow: hidden;
  background: #050c1d; border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.lightbox img { width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; background: #02060f; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; }
.lightbox-bar strong { display: block; font-size: 16px; }
.lightbox-bar small { display: block; font-size: 13px; color: var(--muted); }
.lightbox-nav { display: flex; align-items: center; gap: 10px; }
.lb-count { font-size: 13px; color: var(--muted); margin-right: 4px; }

/* ---------- Reveal animations ---------- */
/* Reveal on scroll. JS drops the data-reveal attribute once an element has arrived,
   so hover transforms defined elsewhere take over again. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* =========================================================
   Motion & interaction
   Everything animated lives under .motion, which JS adds only when the
   visitor has no reduced-motion preference.
   ========================================================= */

/* Scroll progress bar + back-to-top */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; z-index: 70; height: 3px; pointer-events: none;
  transform-origin: left; transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  box-shadow: 0 0 12px rgba(76,195,255,.7);
}
.to-top {
  position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #2573f2, #1352cc);
  box-shadow: 0 14px 30px -10px rgba(31,116,255,.9);
  opacity: 0; transform: translateY(16px) scale(.85); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top .icon { width: 22px; height: 22px; transform: rotate(180deg); }

/* Hero: staggered entrance, slow zoom on the photo, handwriting reveal, shimmering headline */
.motion .hero-copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
/* The kicker lives inside the <h1>; each line still rises in on its own beat. */
.motion .hero-copy > h1 { animation: none; }
.motion .hero-kicker { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.motion .hero-title { animation: rise .9s .12s cubic-bezier(.2,.7,.2,1) both; }
.motion .hero-copy > .lead { animation-delay: .26s; }
.motion .hero-copy > .hero-actions { animation-delay: .4s; }
.motion .hero-photo { animation: hero-zoom 2.6s cubic-bezier(.2,.7,.2,1) both; translate: 0 var(--parallax, 0px); }
.motion .script-note { animation: write-in 1.4s .8s cubic-bezier(.4,0,.2,1) both; }
/* On phones this line is the largest text on the first screen (Google's LCP element):
   show it right away instead of after the handwriting reveal. */
@media (max-width: 1080px) { .motion .script-note { animation: none; } }
.motion .hero h1 .text-gradient {
  background-image: linear-gradient(90deg, #2f86ff 0%, #4cc3ff 25%, #a8e6ff 50%, #4cc3ff 75%, #2f86ff 100%);
  background-size: 200% auto; animation: shimmer 7s linear infinite;
}
.hero-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(520px circle at var(--hx, 70%) var(--hy, 40%), rgba(76,195,255,.13), transparent 60%);
}
.motion .hero:hover .hero-glow { opacity: 1; }
.motion .stats .stat-icon .icon { animation: bob 3.6s ease-in-out infinite; }
.motion .stats .stat:nth-child(2) .stat-icon .icon { animation-delay: -.9s; }
.motion .stats .stat:nth-child(3) .stat-icon .icon { animation-delay: -1.8s; }
.motion .stats .stat:nth-child(4) .stat-icon .icon { animation-delay: -2.7s; }

/* Buttons: light sweep on hover (and on a loop for the hero CTA), magnetic pull via JS */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%);
  transform: translateX(-130%);
}
.motion .btn-primary:hover::after { transition: transform .75s ease; transform: translateX(130%); }
.motion .hero-actions .btn-primary::after { animation: shine 4.5s 2.4s ease-in-out infinite; }
.magnetic { transition: translate .25s ease-out, transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }

/* Cursor spotlight on panels and cards (position set by JS) */
.spotlight { position: relative; }
.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(76,195,255,.16), transparent 50%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .35s ease;
}
.spotlight:hover::after { opacity: 1; }

/* 3D tilt on image cards (angles set by JS) */
.motion .tilt:not([data-reveal]) {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.motion .tilt:hover { --lift: -6px; }

/* Stats, services, why, steps: hover life */
.stat { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.stat:hover { transform: translateY(-6px); border-color: rgba(51,168,255,.55); box-shadow: 0 26px 44px -26px rgba(31,116,255,.85); }
.stat-icon { transition: transform .5s cubic-bezier(.3,1.6,.5,1), background-color .3s ease; }
.stat:hover .stat-icon { transform: rotate(-10deg) scale(1.1); background-color: rgba(31,116,255,.2); }
.svc-tile .icon { transition: transform .45s cubic-bezier(.3,1.6,.5,1), filter .2s; }
.svc-tile:hover .icon { transform: scale(1.18) rotate(-6deg); }
.svc-panel-media img { transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.svc-panel:hover .svc-panel-media img { transform: scale(1.07); }
.why-icon { transition: transform .5s cubic-bezier(.3,1.6,.5,1), box-shadow .3s ease; }
.why-list li:hover .why-icon { transform: translateY(-5px) rotate(-8deg); box-shadow: 0 14px 26px -12px rgba(31,116,255,.8); }
.step-icon { transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.step:hover .step-icon { transform: translateY(-4px) scale(1.12); }
.industry-label { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.industry-card:hover .industry-label { transform: translateY(-6px); }
.industry-icon { transition: background-color .3s ease, box-shadow .3s ease; }
.industry-card:hover .industry-icon { background-color: var(--primary); box-shadow: 0 0 18px rgba(76,195,255,.7); }

/* Process: connectors draw in once the step is on screen, numbers pulse */
.motion .step:not(:last-child)::after { transform: scaleX(0); transform-origin: left; transition: transform 1s .35s cubic-bezier(.2,.7,.2,1); }
.motion .step:not(:last-child)::before { opacity: 0; transition: opacity .4s 1.2s ease; }
.motion .step.is-visible:not(:last-child)::after { transform: scaleX(1); }
.motion .step.is-visible:not(:last-child)::before { opacity: 1; }
.motion .step.is-visible .step-num { animation: ring 2.8s 1.2s ease-out infinite; }

/* Slow ambient drift behind services and contact; Ken Burns on the CTA photo */
.motion .services::before, .motion .contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 12% 18%, rgba(31,116,255,.16), transparent 60%),
    radial-gradient(520px 380px at 88% 72%, rgba(76,195,255,.1), transparent 60%);
  animation: aurora 16s ease-in-out infinite alternate;
}
.motion .services, .motion .contact { overflow: clip; }
.services > *, .contact > * { position: relative; }
.motion .cta-photo { animation: kenburns 26s ease-in-out infinite alternate; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.12); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@keyframes write-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes shimmer { to { background-position: -200% center; } }
@keyframes shine { 0% { transform: translateX(-130%); } 28%, 100% { transform: translateX(130%); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
/* Keeps .step-num's own halo and glow, adds an expanding ring on top */
@keyframes ring {
  0% { box-shadow: 0 0 0 6px rgba(31,116,255,.14), 0 10px 24px -8px rgba(31,116,255,.8), 0 0 0 0 rgba(51,168,255,.55); }
  70%, 100% { box-shadow: 0 0 0 6px rgba(31,116,255,.14), 0 10px 24px -8px rgba(31,116,255,.8), 0 0 0 18px rgba(51,168,255,0); }
}
@keyframes aurora { from { transform: translate(0, 0) scale(1); } to { transform: translate(4%, -3%) scale(1.12); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1) translate(-2%, -1%); } }

/* =========================================================
   Soft gradient borders
   Cards, panels and photo frames trade their flat 1px border for a ring that fades between the
   brand blues. The ring is a masked pseudo-element sitting on the padding edge, so it works over
   translucent "glass" fills and inside overflow:hidden. It turns half a circle on hover and
   sweeps once when the card scrolls into view. Colours are the existing palette only.
   ========================================================= */
@property --ring-a { syntax: "<angle>"; inherits: false; initial-value: 135deg; }

:root {
  --ring-1: rgba(76, 195, 255, .75);   /* --cyan */
  --ring-2: rgba(31, 116, 255, .28);   /* --primary */
  --ring-3: rgba(110, 160, 255, .12);  /* --line */
  --ring-4: rgba(51, 168, 255, .6);    /* --accent */
}
/* On the light reviews section the same blues need a little more weight to read on white. */
.testimonials {
  --ring-1: rgba(21, 83, 199, .5); --ring-2: rgba(31, 116, 255, .22);
  --ring-3: rgba(16, 40, 90, .14); --ring-4: rgba(76, 195, 255, .7);
}

@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  :is(.stat, .svc-panel, .svc-tile, .svc-panel-media, .glass, .industry-card, .project-open, .benefit, .incl-card, .related-card, .work-card figure, .page-hero-media, .testi-card) {
    position: relative; border-color: transparent; background-clip: padding-box;
  }
  :is(.stat, .svc-panel, .svc-tile, .svc-panel-media, .glass, .industry-card, .project-open, .benefit, .incl-card, .related-card, .work-card figure, .page-hero-media, .testi-card)::before {
    content: ""; position: absolute; inset: 0; z-index: 1; padding: 1px; border-radius: inherit;
    pointer-events: none; opacity: .8;
    background: linear-gradient(var(--ring-a), var(--ring-1), var(--ring-2) 30%, var(--ring-3) 58%, var(--ring-4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    transition: --ring-a 1.4s cubic-bezier(.2,.7,.2,1), opacity .35s ease;
  }
  /* The hover states defined above used to recolour the flat border; the ring replaces that. */
  :is(.stat, .svc-panel, .svc-tile, .svc-panel-media, .glass, .industry-card, .project-open, .benefit, .incl-card, .related-card, .work-card figure, .page-hero-media, .testi-card):hover { border-color: transparent; }
  @media (hover: hover) {
    :is(.stat, .svc-panel, .svc-tile, .svc-panel-media, .glass, .industry-card, .project-open, .benefit, .incl-card, .related-card, .work-card figure, .page-hero-media, .testi-card):hover::before { opacity: 1; }
    .motion :is(.stat, .svc-panel, .svc-tile, .svc-panel-media, .glass, .industry-card, .project-open, .benefit, .incl-card, .related-card, .work-card figure, .page-hero-media, .testi-card):hover::before { --ring-a: 315deg; }
  }
  /* One sweep as the card arrives (JS adds .is-visible to it or to its list item). */
  .motion .is-visible:is(.stat, .svc-panel, .svc-tile, .svc-panel-media, .glass, .industry-card, .project-open, .benefit, .incl-card, .related-card, .work-card figure, .page-hero-media, .testi-card)::before,
  .motion .is-visible > :is(.stat, .svc-panel, .svc-tile, .svc-panel-media, .glass, .industry-card, .project-open, .benefit, .incl-card, .related-card, .work-card figure, .page-hero-media, .testi-card)::before { --ring-a: 495deg; }
  @media (hover: hover) {
    .motion .is-visible:is(.stat, .svc-panel, .svc-tile, .svc-panel-media, .glass, .industry-card, .project-open, .benefit, .incl-card, .related-card, .work-card figure, .page-hero-media, .testi-card):hover::before,
    .motion .is-visible > :is(.stat, .svc-panel, .svc-tile, .svc-panel-media, .glass, .industry-card, .project-open, .benefit, .incl-card, .related-card, .work-card figure, .page-hero-media, .testi-card):hover::before { --ring-a: 675deg; }
  }
  /* The call card keeps flowing slowly; it is the one place the eye should land. */
  .motion .cta-card::before { opacity: 1; animation: ring-flow 9s linear infinite; }
}
@keyframes ring-flow { to { --ring-a: 495deg; } }

/* Solid-filled boxes get the same border with two background layers (no pseudo-element needed,
   which also keeps it safe on <details> and on the scrolling dialog). */
.faq-item {
  border-color: transparent;
  background:
    linear-gradient(180deg, #0a1837, #07122c) padding-box,
    linear-gradient(135deg, var(--ring-1), var(--ring-2) 30%, var(--ring-3) 58%, var(--ring-4)) border-box;
}
.faq-item:hover, .faq-item[open] { border-color: transparent; }
.faq-item[open] {
  background:
    linear-gradient(180deg, #0c1d42, #081632) padding-box,
    linear-gradient(135deg, var(--cyan), rgba(31,116,255,.45) 38%, rgba(51,168,255,.3) 64%, var(--cyan)) border-box;
}
.modal-card {
  border-color: transparent;
  background:
    linear-gradient(180deg, #0d1f46, #081530) padding-box,
    linear-gradient(135deg, var(--ring-1), var(--ring-2) 30%, var(--ring-3) 58%, var(--ring-4)) border-box;
}
.lightbox-card {
  border-color: transparent;
  background:
    linear-gradient(#050c1d, #050c1d) padding-box,
    linear-gradient(135deg, var(--ring-1), var(--ring-2) 30%, var(--ring-3) 58%, var(--ring-4)) border-box;
}
@media (min-width: 1081px) {
  .dropdown {
    border-color: transparent;
    background:
      linear-gradient(#08142e, #08142e) padding-box,
      linear-gradient(135deg, var(--ring-1), var(--ring-2) 30%, var(--ring-3) 58%, var(--ring-4)) border-box;
  }
}

/* Section dividers fade out toward the edges instead of running as hard full-width lines. */
:is(.why, .process, .svc-included, .faq, .page-hero, .site-footer, .footer-bottom, .legal-header, .legal-footer),
.site-header::before {
  border-image: linear-gradient(90deg, transparent, rgba(110,160,255,.34) 18%, rgba(76,195,255,.5) 50%, rgba(110,160,255,.34) 82%, transparent) 1;
}

/* Eyebrow labels: a short gradient dash that draws in with the heading. */
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow::before, .section-head.center .eyebrow::after, .testi-intro .eyebrow::after {
  content: ""; flex: none; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform-origin: left; transition: transform .9s .25s cubic-bezier(.2,.7,.2,1);
}
.section-head.center .eyebrow, .testi-intro .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after, .testi-intro .eyebrow::after {
  background: linear-gradient(90deg, var(--cyan), var(--primary)); transform-origin: right;
}
.eyebrow:empty::before { display: none; }
.motion.js [data-reveal]:not(.is-visible) .eyebrow::before,
.motion.js .eyebrow[data-reveal]:not(.is-visible)::before,
.motion.js [data-reveal]:not(.is-visible) .eyebrow::after { transform: scaleX(0); }

/* Desktop menu: gradient underline that grows from the left. */
@media (min-width: 1081px) {
  .nav-link { position: relative; }
  .nav-link::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1);
  }
  .nav-link:hover::after, .nav-link.is-active::after, .nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
}

/* Footer links nudge forward on hover. */
@media (hover: hover) {
  nav.footer-col a { display: inline-block; transition: color .2s, transform .25s ease; }
  nav.footer-col a:hover { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 1081px) and (max-width: 1380px) {
  .header-cta { display: none; }
}

@media (max-width: 1180px) {
  .nav-link { padding: 10px 9px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; }
  .footer-map { display: none; }
}

@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: grid; }
  .header-inner { gap: 12px; }
  .lang-switch { margin-left: auto; }
  .lang-switch a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 11px; }
  .filter { min-height: 40px; padding: 9px 14px; font-size: 13px; }
  .main-nav {
    position: fixed; top: 0; right: 0; z-index: 60;
    width: min(380px, 88vw); height: 100dvh; overflow-y: auto;
    padding: calc(var(--header-h) + 12px) 20px 28px;
    background: #06122b; border-left: 1px solid var(--line-strong);
    box-shadow: -30px 0 60px -20px rgba(0,0,0,.7);
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-toggle { position: relative; z-index: 70; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 16px; }
  .dropdown {
    position: static; transform: none; min-width: 0; display: none;
    opacity: 1; visibility: visible; box-shadow: none;
    background: rgba(255,255,255,.03); margin: 2px 0 8px;
  }
  .dropdown-toggle[aria-expanded="true"] + .dropdown { display: block; transform: none; }
  .nav-mobile-extra { display: grid; gap: 10px; margin-top: 22px; }
  .header-cta { margin-left: auto; }

  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .script-note { position: static; text-align: center; max-width: none; margin-bottom: 18px; transform: rotate(-2deg); }
  .hero-visual { padding-top: 10px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-columns { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 24px; }
  .svc-panel { grid-row: auto; display: flex; flex-direction: column; gap: 24px; }
  .why-grid, .process-grid, .projects-grid, .faq-grid, .contact-grid, .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .page-hero-inner, .overview-grid { grid-template-columns: 1fr; gap: 36px; }
  .page-hero-media { max-width: 640px; }
  .incl-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card { flex-basis: calc((100% - 18px) / 2); }
  .faq-intro { position: static; }
  .why-list { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { --cols: 3; }
  .section-head.split { grid-template-columns: 1fr; gap: 14px; }
  .section-head.split > p { justify-self: start; }
  .projects-intro { max-width: 640px; }
  .project-track { -webkit-mask-image: none; mask-image: none; }
  .testi-marquee:focus-visible { outline-offset: -4px; }
  .cta-card { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .br-desktop { display: none; }
  .header-cta { display: none; }
  .nav-toggle { margin-left: 0; }
  .brand img { height: 34px; }
  .section { padding: 64px 0; }
  .services { padding-top: 72px; }
  .section-head { margin-bottom: 32px; }
  .testimonials { padding: 64px 0; }
  .cta-band { padding: 64px 0; }
  .hero { padding-bottom: 170px; }
  .hero-photo { object-position: 78% center; }
  .hero-bg::before { background: linear-gradient(180deg, rgba(3,9,20,.88) 0%, rgba(3,9,20,.7) 60%, rgba(3,9,20,.5) 100%); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .step::after, .step::before { display: none; }
  .svc-panel { padding: 22px; }
  .svc-panel-head { grid-template-columns: 1fr; }
  .svc-panel-media { min-height: 190px; }
  .form-row { grid-template-columns: 1fr; }
  .call-fab { display: grid; }
  .to-top { right: 20px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }

  /* Touch targets: at least 40px tall, and no auto-zoom when a form field gets focus on iOS */
  nav.footer-col li + li { margin-top: 0; }
  nav.footer-col a { display: inline-block; padding: 9px 0; }
  .footer-contact li { align-items: center; }
  .footer-contact a { display: inline-block; padding: 8px 0; }
  .footer-bottom nav a { display: inline-block; padding: 10px 0; }
  .field input, .field select, .field textarea { font-size: 16px; }
}

/* Phones: use the width (2-3 columns) instead of stacking everything, so the page is
   about half as long to scroll. */
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head.center h2, .why-intro h2, .process-intro h2, .projects-intro h2, .faq-intro h2, .contact-info h2 { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(2.15rem, 9.5vw, 2.6rem); }
  .hero-kicker { font-size: 12px; letter-spacing: .1em; }
  .hero-kicker span { margin: 0 3px; }
  .hero-actions .btn { width: 100%; }
  .hero { padding-bottom: 130px; }

  /* Stats: 2 x 2, number and label only */
  .stats { margin-top: -96px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { flex-direction: column; gap: 10px; padding: 16px 14px; }
  .stat-icon { width: 40px; height: 40px; }
  .stat-icon .icon { width: 20px; height: 20px; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 13.5px; }
  .stat-text { display: none; }

  /* Services: two compact tiles per row, shorter photo */
  .svc-panel { padding: 18px; gap: 18px; }
  .svc-panel-head { gap: 14px; }
  .svc-panel h3 { font-size: 1.2rem; margin-bottom: 8px; }
  .svc-panel-copy p:not(.eyebrow) { font-size: 14px; }
  .svc-panel-media { min-height: 0; aspect-ratio: 2 / 1; }
  .svc-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .svc-tile {
    flex-direction: row; justify-content: flex-start; gap: 9px; min-height: 58px;
    padding: 10px 10px; text-align: left; font-size: 13px; line-height: 1.25; border-radius: 12px;
  }
  .svc-tile .icon { width: 20px; height: 20px; }
  .svc-panel > .btn { width: 100%; }

  /* Why us and process: 2 x 2 */
  .why { padding: 52px 0; }
  .why-grid { gap: 26px; }
  .why-list { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .why-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 10px; }
  .why-icon .icon { width: 20px; height: 20px; }
  .why-list h3 { font-size: 15px; margin-bottom: 4px; }
  .why-list p { font-size: 13px; line-height: 1.5; }
  .process { padding: 52px 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .step-num { width: 34px; height: 34px; font-size: 15px; }
  .step-icon { display: none; }
  .step h3 { font-size: 15px; margin: 10px 0 4px; }
  .step p { font-size: 13px; line-height: 1.5; }

  /* Industries: 3 per row, label only */
  .industry-grid { --cols: 3; gap: 8px; }
  .industry-card { flex-basis: calc((100% - 16px) / 3); aspect-ratio: 1 / 1.05; border-radius: 12px; }
  .industry-label { font-size: 12.5px; left: 8px; right: 8px; bottom: 8px; gap: 0; line-height: 1.2; }
  .industry-icon { display: none; }

  .projects-intro p:not(.eyebrow) { font-size: 14.5px; }
  .project-track { grid-auto-columns: 72%; }
  .testi-intro { margin-bottom: 28px; }
  .testi-marquee { --testi-gap: 14px; }
  .testi-card { width: min(78vw, 300px); padding: 20px; }

  .faq-intro p:not(.eyebrow) { font-size: 14.5px; margin-bottom: 18px; }
  .faq-item summary { padding: 15px 16px; }
  .faq-item h3 { font-size: 15px; }
  .faq-toggle { width: 26px; height: 26px; }
  .faq-answer { padding: 0 16px 16px; font-size: 14px; }

  .cta-phone strong { font-size: 24px; }
  .cta-copy p:not(.eyebrow) { font-size: 14.5px; }

  /* Contact: tighter list, shorter message box */
  .contact-info > p:not(.eyebrow) { margin-bottom: 20px; font-size: 14.5px; }
  .contact-list { gap: 10px; }
  .contact-list li { font-size: 14px; gap: 12px; }
  .contact-icon { width: 38px; height: 38px; border-radius: 10px; }
  .contact-icon .icon { width: 18px; height: 18px; }
  .contact-form { padding: 20px; gap: 12px; }
  .contact-form textarea { min-height: 96px; height: 96px; }

  /* Footer: link lists side by side */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .footer-brand, .footer-grid > div.footer-col { grid-column: 1 / -1; }
  .footer-brand img { width: 150px; margin-bottom: 12px; }
  .footer-col h2 { margin-bottom: 10px; }
  .footer-contact li + li { margin-top: 4px; }
  .footer-col a, .footer-contact li { font-size: 13.5px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 32px; }
  .footer-bottom nav { flex-wrap: wrap; gap: 8px 18px; }

  .modal-card { padding: 26px 20px; }
  .modal-actions .btn { width: 100%; }

  /* Service pages: two "what's included" cards per row, compact cards */
  .page-hero { padding-bottom: 52px; }
  .page-hero .hero-actions .btn { width: 100%; }
  .page-hero-chips { gap: 8px; margin-top: 20px; }
  .page-hero-chips li { padding: 7px 12px; font-size: 13px; }
  .overview-grid { gap: 26px; }
  .benefit { padding: 14px; gap: 12px; }
  .benefit p { font-size: 13.5px; }
  .incl-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .incl-card { padding: 14px; }
  .incl-card .incl-icon { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 10px; }
  .incl-card .incl-icon .icon { width: 17px; height: 17px; }
  .incl-card h3 { font-size: 14.5px; margin-bottom: 4px; }
  .incl-card p { font-size: 13px; line-height: 1.5; }
  .work-grid { gap: 10px; }
  .work-card { flex-basis: calc((100% - 10px) / 2); min-width: 0; }
  .work-card figcaption { padding: 10px 12px; }
  .work-card strong { font-size: 13.5px; }
  .work-card small { font-size: 12.5px; }
  .work-card.is-featured { margin-bottom: 4px; }
  .work-card.is-featured figcaption { padding: 12px 14px; }
  .work-card.is-featured strong { font-size: 16px; }
  .work-card.is-featured small { font-size: 13px; }
  .work-badge { top: 10px; left: 10px; padding: 5px 10px; font-size: 10.5px; }
  .related-grid { grid-template-columns: 1fr; gap: 10px; }
  .related-card { padding: 16px; gap: 6px; }
  .related-text { font-size: 13.5px; }
}

/* ---------- Legal pages ---------- */
.legal-header { border-bottom: 1px solid var(--line); }
.legal-header .btn { margin-left: auto; }
.legal { max-width: 760px; padding: 64px 0 40px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 8px; }
.legal-updated { color: var(--muted-2); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 1.2rem; margin: 30px 0 10px; letter-spacing: -0.01em; }
.legal p { color: #c3d1e8; }
.legal a, .legal-footer a { color: var(--accent); text-decoration: underline; }
.legal-footer { padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); }
.not-found { padding-top: 96px; padding-bottom: 120px; }
.not-found h1 { margin-bottom: 14px; }
