/* Comptronics Inc — site styles */
:root {
  --bg: #060A13;
  --bg-2: #0A1120;
  --surface: #0F1829;
  --surface-2: #142036;
  --border: #1F2D47;
  --border-2: #2B3C5C;
  --text: #F1F5F9;
  --text-muted: #A3B1C6;
  --text-dim: #7D8BA3;
  --accent: #22D3EE;
  --accent-2: #67E8F9;
  --accent-deep: #0891B2;
  --accent-glow: rgba(34, 211, 238, .18);
  --on-accent: #03121A;
  --ok: #34D399;
  --focus: #FACC15;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-head: "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; z-index: 200; font-weight: 600; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Region switching ---------- */
html[data-region="ca"] [data-region-only="gy"],
html[data-region="gy"] [data-region-only="ca"] { display: none !important; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--text-muted); line-height: 1.6; }
.muted { color: var(--text-muted); }
.grad-text {
  background: linear-gradient(100deg, var(--text) 0%, var(--accent-2) 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 0 var(--accent-glow); }
.btn-primary:hover { color: var(--on-accent); background: var(--accent-2); box-shadow: 0 10px 30px -8px rgba(34, 211, 238, .55); transform: translateY(-1px); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-ghost { color: var(--text); border-color: var(--border-2); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 10, 19, .72);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(6, 10, 19, .9); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 36px; height: 36px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font: 800 19px/1 var(--font-head); letter-spacing: .06em; }
.brand-word small { font: 500 10px/1 var(--font-mono); letter-spacing: .32em; color: var(--accent); margin-top: 5px; }
.brand-mark .ring { transform-origin: 50% 50%; }
.brand:hover .brand-mark .ring { animation: spin 6s linear infinite; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--text-muted); font-weight: 500; font-size: 15.5px; text-decoration: none; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.region-switch {
  display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--bg-2);
}
.region-switch button {
  appearance: none; border: 0; background: transparent; color: var(--text-muted); cursor: pointer;
  font: 600 12.5px/1 var(--font-mono); letter-spacing: .08em; padding: 8px 11px; border-radius: 999px; min-height: 32px;
  transition: background-color .25s, color .25s;
}
.region-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--accent); }
.region-switch button:hover { color: var(--text); }

.menu-toggle {
  display: none; appearance: none; background: transparent; border: 1px solid var(--border-2); color: var(--text);
  width: 46px; height: 46px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(6, 10, 19, .98); border-bottom: 1px solid var(--border); padding: 12px 16px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .menu-open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 15px 8px; font-size: 18px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta-mobile { display: block; padding-top: 18px; }
  .nav-links .nav-cta-mobile a { border: 0; }
  .nav-links .nav-cta-mobile a.btn { color: var(--on-accent); border-radius: 999px; padding: 0 24px; font-size: 17px; font-weight: 600; }
  .nav-links { box-shadow: 0 30px 60px rgba(0,0,0,.6); }
  .nav-actions .btn-header { display: none; }
}
@media (min-width: 1181px) { .nav-cta-mobile { display: none; } }
@media (max-width: 400px) { .brand-word b { font-size: 16px; } .brand-mark { width: 30px; height: 30px; } .region-switch button { padding: 8px 9px; } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 16px 0 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 100px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.hero-bg::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .16), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .22;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 66px); font-weight: 800; margin: 22px 0 24px; letter-spacing: -0.035em; }
.hero .lead { max-width: 580px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; color: var(--text-dim); font-size: 14.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--ok); }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: end; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 380px; order: -1; margin-bottom: -10px; }
}
@media (max-width: 560px) { .hero-visual { max-width: 230px; } .hero-ctas .btn { flex: 1 1 100%; } }

/* Shield visual */
.shield-svg { width: 100%; height: 100%; overflow: visible; }
.shield-svg .orbit { fill: none; stroke: var(--border-2); stroke-width: 1; }
.shield-svg .orbit-dash { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 2 10; opacity: .55; transform-origin: 260px 260px; animation: spin 40s linear infinite; }
.shield-svg .orbit-dash.rev { animation-direction: reverse; animation-duration: 60s; opacity: .35; }
.shield-svg .shield-fill { fill: url(#shieldGrad); }
.shield-svg .shield-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s .2s var(--ease) forwards; }
.shield-svg .check { fill: none; stroke: var(--accent-2); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1s 1.8s var(--ease) forwards; }
.shield-svg .node { fill: var(--accent); }
.shield-svg .node-halo { fill: var(--accent); opacity: .25; transform-box: fill-box; transform-origin: center; animation: pulse 3s ease-out infinite; }
.shield-svg .link { stroke: var(--accent); stroke-width: 1; opacity: .35; }
.shield-svg .scan { fill: url(#scanGrad); transform-origin: 260px 260px; animation: spin 7s linear infinite; }
.shield-svg .tag { font: 500 11px var(--font-mono); fill: var(--text-muted); letter-spacing: .08em; }
.shield-svg .tag-box { fill: rgba(15, 24, 41, .9); stroke: var(--border-2); }
.float-a { animation: float 7s ease-in-out infinite; }
.float-b { animation: float 8s 1s ease-in-out infinite; }
.float-c { animation: float 9s 2s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Logo strip / trust bar ---------- */
.trust-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 800 clamp(34px, 4vw, 48px)/1 var(--font-head); letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat b .unit { color: var(--accent); }
.stat > span { display: block; margin-top: 10px; color: var(--text-muted); font-size: 15px; line-height: 1.4; }
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 420px) { .stat { padding: 26px 14px; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(15, 24, 41, .6) 100%);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .10), transparent 60%);
}
.card:hover { border-color: var(--border-2); transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 22px; letter-spacing: -0.015em; }
.card p { color: var(--text-muted); font-size: 16px; }
.card .card-foot { margin-top: auto; padding-top: 8px; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-link .link-arrow { color: var(--accent); }
.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(34, 211, 238, .16), rgba(34, 211, 238, .03)); border: 1px solid rgba(34, 211, 238, .25); color: var(--accent);
}
.icon-tile svg { width: 26px; height: 26px; }
.card-num { position: absolute; top: 26px; right: 28px; font: 500 13px var(--font-mono); color: var(--text-dim); letter-spacing: .08em; }
.outcome { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); padding-top: 14px; border-top: 1px dashed var(--border-2); }
.outcome svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }

/* Services bento: 3 + 2 */
.services-grid { grid-template-columns: repeat(6, 1fr); }
.services-grid > * { grid-column: span 2; }
.services-grid > *:nth-child(4), .services-grid > *:nth-child(5) { grid-column: span 3; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } .services-grid > *, .services-grid > *:nth-child(4) { grid-column: span 1; } .services-grid > *:nth-child(5) { grid-column: span 2; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } .services-grid > *, .services-grid > *:nth-child(5) { grid-column: span 1; } }

/* ---------- Maturity journey ---------- */
.journey { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: lvl; }
.journey::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px;
  background: linear-gradient(90deg, var(--border-2), var(--accent)); transform-origin: left; transform: scaleX(var(--progress, 0));
  transition: transform 1.6s var(--ease);
}
.journey.in::before { --progress: 1; }
.journey-step { position: relative; text-align: center; padding: 0 6px; }
.journey-dot {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--border-2); font: 700 18px var(--font-mono); color: var(--text-muted);
  transition: border-color .4s, color .4s, box-shadow .4s, background-color .4s;
}
.journey.in .journey-step .journey-dot { border-color: var(--accent); color: var(--accent); }
.journey.in .journey-step:last-child .journey-dot { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 8px var(--accent-glow); }
.journey-step h3 { font-size: 18px; margin-bottom: 8px; }
.journey-step p { color: var(--text-muted); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; transform-origin: top; transform: scaleY(var(--progress, 0)); background: linear-gradient(180deg, var(--border-2), var(--accent)); }
  .journey-step { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; text-align: left; padding: 0 0 26px; }
  .journey-dot { margin: 0; grid-row: span 2; }
  .journey-step h3 { margin-top: 6px; }
}

/* ---------- Frameworks ---------- */
.fw-group { padding: 30px; }
.fw-group header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.fw-group h3 { font-size: 20px; }
.fw-group .count { white-space: nowrap; margin-left: auto; font: 500 12.5px var(--font-mono); color: var(--text-dim); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border-2); font-size: 14px; font-weight: 500; color: var(--text);
  transition: border-color .25s, color .25s, transform .25s var(--ease);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .8; }
.badge:hover { border-color: var(--accent); transform: translateY(-2px); }
.badge.local { border-color: rgba(52, 211, 153, .5); }
.badge.local::before { background: var(--ok); }

.fw-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.fw-filter button {
  appearance: none; cursor: pointer; border: 1px solid var(--border-2); background: transparent; color: var(--text-muted);
  font: 500 14.5px var(--font-body); padding: 10px 16px; border-radius: 999px; min-height: 42px; transition: all .25s;
}
.fw-filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fw-filter button:hover:not([aria-pressed="true"]) { border-color: var(--accent); color: var(--text); }
.fw-table { width: 100%; border-collapse: collapse; }
.fw-table th, .fw-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.fw-table th { font: 500 12.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.fw-table td:first-child { font-weight: 600; white-space: nowrap; }
.fw-table td { color: var(--text-muted); font-size: 15.5px; }
.fw-table tr[hidden] { display: none; }
.fw-table .tag { white-space: nowrap; display: inline-block; font: 500 11.5px var(--font-mono); padding: 4px 9px; border-radius: 6px; border: 1px solid var(--border-2); color: var(--accent); letter-spacing: .06em; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
@media (max-width: 700px) {
  .fw-table thead { display: none; }
  .fw-table, .fw-table tbody, .fw-table tr, .fw-table td { display: block; width: 100%; }
  .fw-table tr { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .fw-table td { border: 0; padding: 4px 14px; white-space: normal !important; }
}

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.rev { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; } }

.portrait { position: relative; max-width: 440px; width: 100%; }
.portrait-frame {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1;
  border: 1px solid var(--border-2); background: var(--surface);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95) contrast(1.03); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 19, .65)); }
.portrait::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px; border-radius: 28px; border: 1px solid rgba(34, 211, 238, .35); z-index: -1;
}
.portrait-tag {
  position: absolute; left: 18px; bottom: 18px; right: 18px; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: rgba(6, 10, 19, .75); border: 1px solid var(--border-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.portrait-tag b { display: block; font: 700 16px var(--font-head); }
.portrait-tag small { color: var(--text-muted); font-size: 13px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); flex: none; }

.cert-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 28px; }
.cert {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-2); font-weight: 600; font-size: 14.5px;
}
.cert svg { width: 18px; height: 18px; color: var(--accent); }
.checks { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.checks li { display: flex; gap: 12px; color: var(--text-muted); }
.checks li b { color: var(--text); font-weight: 600; }
.checks svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }

/* ---------- Offices / map ---------- */
.offices { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .offices { grid-template-columns: 1fr; } }
.map-card { padding: 12px; min-height: 380px; justify-content: center; background: radial-gradient(ellipse at 40% 40%, #0E1A2E, var(--surface) 70%); }
.map-svg { width: 100%; height: auto; max-height: 560px; }
.map-svg .dot { fill: #23324F; }
.map-svg .route { fill: none; stroke: url(#routeGrad); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.map-card.in .route { animation: draw 2.2s .3s var(--ease) forwards; }
.map-svg .route-flow { fill: none; stroke: var(--accent-2); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 6 18; opacity: 0; animation: flow 1.4s linear infinite; }
.map-card.in .route-flow { opacity: .8; transition: opacity .6s 2.4s; }
.map-svg .city { fill: var(--accent); }
.map-svg .city-halo { fill: var(--accent); opacity: .3; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.map-svg .city-label { font: 600 13px var(--font-body); fill: var(--text); }
.map-svg .city-sub { font: 500 10.5px var(--font-mono); fill: var(--text-muted); letter-spacing: .08em; }
.map-svg .label-bg { fill: rgba(6, 10, 19, .85); stroke: var(--border-2); }
@keyframes flow { to { stroke-dashoffset: -48; } }
.office-list { display: grid; gap: 20px; }
.office { padding: 26px; gap: 10px; }
.office h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.office .flag { font-size: 20px; line-height: 1; }
.office address { font-style: normal; color: var(--text-muted); font-size: 15.5px; line-height: 1.6; }
.office .clock { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--font-mono); color: var(--text-dim); }
.office .clock svg { width: 15px; height: 15px; flex: none; }
.office .clock b { color: var(--accent); font-weight: 600; }
.office a { text-decoration: none; }
.office.is-home { border-color: rgba(34, 211, 238, .45); }
.office .home-tag { margin-left: auto; font: 500 11px var(--font-mono); letter-spacing: .1em; color: var(--on-accent); background: var(--accent); padding: 4px 8px; border-radius: 6px; }
.office:not(.is-home) .home-tag { display: none; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 72px);
  background: linear-gradient(135deg, #0C2233 0%, #0A1526 55%, #081120 100%); border: 1px solid rgba(34, 211, 238, .28);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .28), transparent); pointer-events: none;
}
.cta-band h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 14px; position: relative; }
.cta-band p { color: var(--text-muted); position: relative; max-width: 620px; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; position: relative; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { flex-direction: row; flex-wrap: wrap; } .cta-band .actions .btn { flex: 1 1 220px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; margin: 18px 0 20px; max-width: 900px; letter-spacing: -0.03em; }
.page-hero .lead { max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font: 500 13px var(--font-mono); color: var(--text-dim); margin-bottom: 8px; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border-2); }

/* ---------- Service detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 980px) { .detail-grid { grid-template-columns: 1fr; } }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); margin-bottom: 16px; }
.prose p strong { color: var(--text); }
.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin-top: 8px; }
.deliverables li { display: flex; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 15.5px; color: var(--text-muted); }
.deliverables li b { display: block; color: var(--text); margin-bottom: 2px; }
.deliverables svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
@media (max-width: 640px) { .deliverables { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; display: grid; gap: 0; margin-top: 8px; }
.steps li { position: relative; counter-increment: s; padding: 0 0 26px 62px; color: var(--text-muted); }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font: 600 14px var(--font-mono); color: var(--accent); background: var(--surface); border: 1px solid var(--border-2);
}
.steps li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px; width: 1px; background: var(--border-2); }
.steps li:last-child::after { display: none; }
.steps li b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; padding-top: 8px; }
.aside-card { position: sticky; top: 100px; padding: 28px; }
.aside-card h3 { font-size: 19px; }
.aside-card .badges { margin: 6px 0 8px; }
.aside-card .badge { font-size: 13px; padding: 6px 11px; }
.aside-meta { display: grid; gap: 12px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 15px; }
.aside-meta div { display: flex; justify-content: space-between; gap: 12px; }
.aside-meta dt { color: var(--text-dim); }
.aside-meta dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; }
.callout { display: flex; gap: 14px; padding: 20px 22px; border-radius: 14px; background: rgba(52, 211, 153, .06); border: 1px solid rgba(52, 211, 153, .3); color: var(--text-muted); font-size: 15.5px; margin: 24px 0; }
.callout svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 2px; }
.callout b { color: var(--text); }

/* ---------- Insights ---------- */
.post { padding: 0; }
.post-cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.post-cover svg { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.post:hover .post-cover svg { transform: scale(1.04); }
.post-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-meta { display: flex; gap: 12px; font: 500 12.5px var(--font-mono); color: var(--text-dim); letter-spacing: .06em; text-transform: uppercase; }
.post-meta .cat { color: var(--accent); }
.post h3 { font-size: 21px; line-height: 1.25; }
.newsletter { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; max-width: 520px; }
.newsletter input { flex: 1 1 240px; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.field label .opt { color: var(--text-dim); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border-2);
  background: var(--bg); color: var(--text); font: 400 16px var(--font-body); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3B1C6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.field .err { display: none; color: #FCA5A5; font-size: 14px; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: #F87171; }
.field.invalid .err { display: block; }
.hp { position: absolute !important; left: -5000px !important; }
.field label.consent { font-weight: 400; margin: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-status { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 12px; font-size: 15.5px; }
.form-status.ok { display: block; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .4); }
.form-status.bad { display: block; background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .4); }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }

.book-card { padding: 30px; background: linear-gradient(160deg, #0C2233, var(--surface)); border-color: rgba(34, 211, 238, .35); }
.book-card h3 { font-size: 22px; }
.slot-list { list-style: none; display: grid; gap: 10px; margin: 6px 0 8px; }
.slot-list li { display: flex; gap: 12px; align-items: center; color: var(--text-muted); font-size: 15px; }
.slot-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .25s; }
.faq details[open] { border-color: var(--border-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; font: 600 17.5px var(--font-head); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--font-body); color: var(--accent); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: #04070E; padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font: 500 12.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { color: var(--text-muted); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 14px; }
.footer-bottom a { color: var(--text-dim); }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-left { transform: translateX(-30px); }
.js .reveal-scale { transform: scale(.96); }
.hero-enter > * { animation: heroIn 1s var(--ease) both; }
.hero-enter > *:nth-child(2) { animation-delay: .08s; }
.hero-enter > *:nth-child(3) { animation-delay: .16s; }
.hero-enter > *:nth-child(4) { animation-delay: .24s; }
.hero-enter > *:nth-child(5) { animation-delay: .32s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.word-cycle { display: inline-block; position: relative; color: var(--accent); }
.word-cycle .w { display: inline-block; transition: opacity .45s, transform .45s var(--ease); }
.word-cycle .w.out { opacity: 0; transform: translateY(-.35em); }
.word-cycle .w.pre { opacity: 0; transform: translateY(.35em); transition: none; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 150; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-bg canvas { display: none; }
  .shield-svg .shield-line, .shield-svg .check, .map-svg .route { stroke-dashoffset: 0; }
  .scroll-progress { display: none; }
}

@media print {
  .site-header, .site-footer, .hero-bg, .cta-band, .scroll-progress { display: none; }
  body { background: #fff; color: #000; }
}
.social { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-2); color: var(--text-muted); transition: color .2s, border-color .2s, transform .2s var(--ease); }
.social:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.btn-ghost svg { width: 18px; height: 18px; }
.card-cover { margin: -30px -30px 8px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transition: transform .6s var(--ease); }
.card:hover .card-cover img { transform: scale(1.04); }
