/* ============================================================
   FUTONIX — "Vectr" Monochrome System
   Roboto · Ice-blue #D0E1EB · Near-black navy #050419
   Design · Build · Automation
   ============================================================ */

:root {
  /* Surfaces (light, near-monochrome) */
  --bg:      #D0E1EB;   /* primary ice-blue */
  --bg-2:    #DCE8F0;   /* lighter alt */
  --bg-3:    #C5D8E4;   /* deeper alt */
  --ink:     #050419;   /* near-black navy (text + dark sections) */
  --on-dark: #FCFCFC;   /* text on navy */

  /* Ink alphas */
  --ink-80: rgba(5,4,25,.80);
  --ink-64: rgba(5,4,25,.62);
  --ink-45: rgba(5,4,25,.46);
  --ink-30: rgba(5,4,25,.30);
  --line:   rgba(5,4,25,.12);
  --line-2: rgba(5,4,25,.18);
  --tint:   rgba(5,4,25,.05);
  --tint-2: rgba(5,4,25,.09);

  /* On dark alphas */
  --on-64: rgba(252,252,252,.64);
  --on-30: rgba(252,252,252,.26);
  --on-line: rgba(252,252,252,.14);
  --on-tint: rgba(252,252,252,.06);

  --font: 'Geist', system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --radius: 18px;
  --radius-lg: 28px;
  --pill: 999px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 17px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--ink); color: var(--on-dark); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 28px; }
.section { position: relative; padding: clamp(80px, 11vw, 160px) 0; }
.section--tight { padding: clamp(56px, 7vw, 100px) 0; }
.section--alt { background: var(--bg-2); }
.section--deep { background: var(--bg-3); }
.center { text-align: center; }

/* dark section */
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .eyebrow { color: var(--on-dark); border-color: var(--on-line); }
.section--dark .eyebrow::before { background: var(--on-dark); }
.section--dark .lead { color: var(--on-64); }
.section--dark .muted { color: var(--on-64); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font); font-weight: 500; letter-spacing: -.03em; line-height: 1.02; }
h1 { font-size: clamp(2.9rem, 8.6vw, 6rem); letter-spacing: -.06em; line-height: .9; font-weight: 500; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.045em; line-height: .98; font-weight: 500; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.02em; font-weight: 500; }
.display { font-weight: 500; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.32rem); line-height: 1.45; color: var(--ink-64); max-width: 58ch; font-weight: 400; }
.muted { color: var(--ink-45); }
.grad-text { color: var(--ink); }              /* highlighted words stay mono, like Vectr */
.section--dark .grad-text { color: var(--on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-64);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--ink); display: inline-block; }
.section-head { max-width: 820px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: 20px; }
.section-head .lead { margin-top: 22px; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Buttons (pills) ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 500; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase;
  min-height: 52px; padding: 0 30px; border-radius: var(--pill);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, transform .35s var(--ease-out);
  transform: translate(var(--bx), var(--by));
  white-space: nowrap; border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--ink); color: var(--on-dark); }
.btn--primary:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost { background: var(--tint-2); color: var(--ink); border-color: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); }
.btn--lg { min-height: 58px; padding: 0 36px; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* dark section buttons */
.section--dark .btn--primary { background: var(--on-dark); color: var(--ink); }
.section--dark .btn--primary:hover { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.section--dark .btn--ghost { background: var(--on-tint); color: var(--on-dark); }
.section--dark .btn--ghost:hover { background: var(--on-dark); color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 4px; border-bottom: 1px solid var(--ink-30); transition: border-color .3s, gap .3s var(--ease);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.link-arrow:hover { border-color: var(--ink); gap: 13px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Navbar ---------- */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 20px 0; border-bottom: 1px solid transparent;
  transition: background .45s var(--ease), border-color .45s var(--ease), padding .45s var(--ease); }
.nav-wrap.scrolled { padding: 12px 0; background: rgba(212,227,236,.7); backdrop-filter: blur(20px) saturate(160%); border-bottom-color: var(--line); }
.nav { max-width: var(--container); margin-inline: auto; padding-inline: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.02rem; letter-spacing: .26em; text-transform: uppercase; }
.brand .mark { width: 26px; height: 26px; flex: none;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23050419' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M14 3 L25 9 L14 15 L3 9 Z'/%3E%3Cpath d='M3 9 V19 L14 25 V15'/%3E%3Cpath d='M25 9 V19 L14 25'/%3E%3C/svg%3E");
  transition: transform .5s var(--ease); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }

/* right cluster */
.nav-end { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); }
.nav-menu { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); }
.nav-menu a { position: relative; font-size: .82rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-64); padding: 6px 0; transition: color .25s; }
.nav-menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-menu a:hover { color: var(--ink); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active { color: var(--ink); }
.nav-start { min-height: 44px; padding: 0 22px; font-size: .78rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); align-items: center; justify-content: center; background: transparent; }
.nav-toggle span { display:block; width:18px; height:2px; background: var(--ink); position: relative; transition:.3s; }
.nav-toggle span::before, .nav-toggle span::after { content:""; position:absolute; left:0; width:18px; height:2px; background: var(--ink); transition:.3s; }
.nav-toggle span::before { top:-6px; } .nav-toggle span::after { top:6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top:0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top:0; transform: rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: 2px; position: fixed; z-index: 49;
  top: 76px; left: 16px; right: 16px; padding: 16px; border-radius: var(--radius);
  background: rgba(220,232,240,.96); backdrop-filter: blur(20px); border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(5,4,25,.4);
}
.mobile-menu.show { display: flex; }
.mobile-menu a { padding: 15px 16px; border-radius: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; color: var(--ink-64); }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--tint-2); color: var(--ink); }
.mobile-menu .btn { margin-top: 10px; justify-content: center; }

/* ============================================================
   DROPDOWN NAV (reorc-style, animated) — overrides flat nav
   ============================================================ */
.nav-menu { list-style: none; display: flex; align-items: center; gap: clamp(4px, 1.4vw, 18px); margin: 0; padding: 0; }
.nav-menu > li { position: relative; display: flex; }
.nav-menu > li > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font); font-size: .92rem; font-weight: 500;
  letter-spacing: .005em; color: var(--ink-64); padding: 10px 13px; background: none; border: none; cursor: pointer; line-height: 1;
  transition: color .25s var(--ease); border-radius: 10px;
}
.nav-menu > li > a::after, .nav-trigger::after { display: none !important; }
.nav-menu > li > a:hover, .nav-trigger:hover, .nav-menu > li.open .nav-trigger,
.nav-menu > li > a.active, .nav-menu > li.has-active .nav-trigger { color: var(--ink); }
.nav-trigger svg { width: 11px; height: 11px; transition: transform .4s var(--ease); }
.nav-menu > li.open .nav-trigger svg, .has-dropdown:hover .nav-trigger svg { transform: rotate(180deg); }

/* dropdown panel */
.dropdown { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: 480px; background: rgba(222,232,240,.92); backdrop-filter: blur(22px) saturate(150%); border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); box-shadow: 0 34px 80px -30px rgba(5,4,25,.5); padding: 12px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s var(--ease), transform .4s var(--ease-out), visibility .35s; z-index: 60; }
.dropdown::before { content: ""; position: absolute; top: -16px; left: -8px; right: -8px; height: 20px; } /* hover bridge spans the full gap */
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dd-label { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-45); padding: 8px 14px 8px; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd-grid a { display: block; padding: 11px 14px; border-radius: 12px; opacity: 0; transform: translateY(10px);
  transition: background .25s, opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.has-dropdown:hover .dd-grid a, .has-dropdown.open .dd-grid a, .has-dropdown:focus-within .dd-grid a { opacity: 1; transform: none; }
.has-dropdown:hover .dd-grid a:nth-child(1), .has-dropdown.open .dd-grid a:nth-child(1) { transition-delay: .03s; }
.has-dropdown:hover .dd-grid a:nth-child(2), .has-dropdown.open .dd-grid a:nth-child(2) { transition-delay: .06s; }
.has-dropdown:hover .dd-grid a:nth-child(3), .has-dropdown.open .dd-grid a:nth-child(3) { transition-delay: .09s; }
.has-dropdown:hover .dd-grid a:nth-child(4), .has-dropdown.open .dd-grid a:nth-child(4) { transition-delay: .12s; }
.has-dropdown:hover .dd-grid a:nth-child(5), .has-dropdown.open .dd-grid a:nth-child(5) { transition-delay: .15s; }
.has-dropdown:hover .dd-grid a:nth-child(6), .has-dropdown.open .dd-grid a:nth-child(6) { transition-delay: .18s; }
.has-dropdown:hover .dd-grid a:nth-child(7), .has-dropdown.open .dd-grid a:nth-child(7) { transition-delay: .21s; }
.has-dropdown:hover .dd-grid a:nth-child(8), .has-dropdown.open .dd-grid a:nth-child(8) { transition-delay: .24s; }
.dd-grid a:hover { background: var(--tint-2); }
.dd-grid a b { display: block; font-weight: 500; font-size: .92rem; color: var(--ink); letter-spacing: -.01em; }
.dd-grid a span { display: block; font-size: .77rem; color: var(--ink-45); margin-top: 3px; line-height: 1.35; }

.nav-end { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 18px); }
.nav-contact { font-size: .92rem; font-weight: 500; color: var(--ink-64); transition: color .25s; }
.nav-contact:hover, .nav-contact.active { color: var(--ink); }

/* mobile dropdown accordions */
.m-group > .m-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-radius: 12px;
  font-family: var(--font); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; color: var(--ink-64); background: none; border: none; cursor: pointer; }
.m-group > .m-trigger svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.m-group.open > .m-trigger { color: var(--ink); }
.m-group.open > .m-trigger svg { transform: rotate(180deg); }
.m-sub { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.m-group.open .m-sub { max-height: 640px; }
.m-sub a { display: block !important; padding: 12px 16px 12px 30px !important; font-size: .8rem !important; color: var(--ink-45) !important; text-transform: none !important; letter-spacing: 0 !important; }

@media (max-width: 900px) { .nav-menu, .nav-contact, .nav .nav-start { display: none; } .nav-toggle { display: flex; } }
@media (min-width: 901px) { .mobile-menu { display: none !important; } .nav-toggle { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px 0 70px; overflow: hidden; }
.hero-inner { position: relative; z-index: 3; max-width: 1040px; padding-inline: 28px; }
.hero h1 { margin: 0 0 28px; }
.hero .lead { margin: 0 auto; max-width: 50ch; color: var(--ink-64); }

/* kicker with flanking rules */
.hero-kicker { display: inline-flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 34px;
  font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-64); }
.hero-kicker::before, .hero-kicker::after { content: ""; width: clamp(20px, 5vw, 44px); height: 1px; background: var(--ink-30); }
.hero-kicker i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-30); display: inline-block; }

/* action row */
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 40px; flex-wrap: wrap; }

/* credibility strip */
.hero-proof { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 56px; }
.hero-proof li { display: flex; align-items: baseline; gap: 9px; padding: 4px clamp(16px, 3vw, 30px); border-right: 1px solid var(--line);
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-45); }
.hero-proof li:last-child { border-right: none; }
.hero-proof li strong { font-weight: 600; font-size: 1.18rem; letter-spacing: -.02em; text-transform: none; color: var(--ink); font-family: var(--font); }
@media (max-width: 560px) {
  .hero-proof li { border-right: none; padding: 4px 14px; }
}

/* headline line-mask reveal */
.reveal-mask { display: block; overflow: hidden; }
.reveal-mask > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.reveal-mask > span.in { transform: none; }
.reveal-mask[data-d="1"] > span { transition-delay: .09s; }
.reveal-mask[data-d="2"] > span { transition-delay: .18s; }

/* isometric scene — full-bleed, cinematic (BIM + robotics) */
/* Full-bleed, centered. .hero is a column flex with align-items:center, so a
   plain 100vw child centers on the content box; the old left:50%/-50vw hack
   fought flex centering and pushed the canvas off to the right. */
.scene { position: relative; z-index: 1; width: 100vw; max-width: 100vw; align-self: center; margin-top: clamp(20px, 3.5vw, 48px); }
.scene svg { width: 100%; height: auto; overflow: visible; }
.scene-canvas { width: 100%; aspect-ratio: 16 / 7; max-height: 76vh; min-height: 340px; }
@media (max-width: 700px) { .scene-canvas { aspect-ratio: 4 / 3; min-height: 300px; } }
.scene-canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.scene.webgl .scene-fallback { display: none; }
.scene:not(.webgl) .scene-canvas { display: none; }
.scene .float { animation: floaty 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.scene .float.f2 { animation-duration: 9s; animation-delay: -2s; }
.scene .float.f3 { animation-duration: 8s; animation-delay: -4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-45); }
.scroll-cue .bar { width: 1px; height: 40px; background: var(--ink-30); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content:""; position:absolute; top:-50%; left:0; width:100%; height:50%; background: var(--ink); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { top:-50%; } 100% { top:100%; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; padding-top: clamp(150px, 22vh, 240px); padding-bottom: clamp(40px, 6vw, 80px); }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: var(--ink-45); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scrollX 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-size: 1rem; font-weight: 500; letter-spacing: -.01em; color: var(--ink-64); display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; text-transform: uppercase; }
.marquee-item::after { content:""; width:6px; height:6px; border-radius:50%; background: var(--ink-30); }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- Process (numbered) ---------- */
.process { display: grid; gap: 0; }
.pstep { display: grid; grid-template-columns: 140px 1fr auto; gap: 32px; align-items: start; padding: 38px 0; border-top: 1px solid var(--line); transition: padding .4s var(--ease); }
.pstep:last-child { border-bottom: 1px solid var(--line); }
.pstep .pnum { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: -.04em; color: var(--ink-30); transition: color .4s; }
.pstep .pbody { max-width: 60ch; }
.pstep h3 { margin-bottom: 10px; }
.pstep p { color: var(--ink-64); }
.pstep .picon { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .4s, color .4s, border-color .4s; }
.pstep .picon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.pstep:hover { background: var(--tint); }
.pstep:hover .pnum { color: var(--ink); }
.pstep:hover .picon { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

/* ---------- Scroll-scrubbed build sequence ---------- */
.buildseq { position: relative; height: 320vh; background: var(--bg); }
.buildseq-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.buildseq-canvas { position: absolute; inset: 0; }
.buildseq-canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.buildseq-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; flex-direction: column; align-items: center; padding: clamp(96px, 14vh, 150px) 24px 40px; text-align: center; }
.buildseq-steps { position: relative; width: 100%; max-width: 540px; height: 180px; margin-top: 22px; }
.buildseq-step { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.buildseq-step.active { opacity: 1; transform: none; }
.buildseq-step .n { font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-45); }
.buildseq-step h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.03em; }
.buildseq-step p { color: var(--ink-64); max-width: 34ch; }
.buildseq-hint { margin-top: auto; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-45); position: relative; padding-bottom: 26px; }
.buildseq-hint::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 18px; background: var(--ink-30); animation: cue 2s var(--ease) infinite; }

/* fallback: no WebGL / reduced motion → static 3-step block */
.buildseq--fallback { height: auto; background: var(--bg); }
.buildseq--fallback .buildseq-stage { position: static; height: auto; padding: clamp(72px,9vw,120px) 0; }
.buildseq--fallback .buildseq-canvas { display: none; }
.buildseq--fallback .buildseq-overlay { position: static; padding: 0 24px; }
.buildseq--fallback .buildseq-hint { display: none; }
.buildseq--fallback .buildseq-steps { height: auto; max-width: var(--container); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.buildseq--fallback .buildseq-step { position: static; opacity: 1; transform: none; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
@media (max-width: 760px) { .buildseq--fallback .buildseq-steps { grid-template-columns: 1fr; } }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.card {
  position: relative; border-radius: var(--radius); padding: 32px;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), background .4s, border-color .4s, box-shadow .5s;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 30px 50px -34px rgba(5,4,25,.45); }
.section--dark .card { background: var(--on-tint); border-color: var(--on-line); }

/* sector cards */
.sector-card { display: flex; flex-direction: column; min-height: 320px; }
.sector-card .ico { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; margin-bottom: 26px; transition: background .4s var(--ease), color .4s; }
.sector-card .ico svg { width: 26px; height: 26px; stroke-width: 1.5; }
.sector-card:hover .ico { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.sector-card h3 { margin-bottom: 12px; }
.sector-card p { color: var(--ink-64); flex: 1; }
.sector-card .link-arrow { margin-top: 26px; align-self: flex-start; }
.sector-card .halo { display: none; }

/* features */
.features { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 34px 26px 34px 0; border-right: 1px solid var(--line); }
.feature:last-child { border-right: none; padding-right: 0; }
.feature .fnum { font-size: .72rem; letter-spacing: .14em; color: var(--ink-45); margin-bottom: 22px; }
.feature .tick { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; margin-bottom: 20px; }
.feature .tick svg { width: 20px; height: 20px; stroke-width: 1.5; }
.feature h4 { font-size: 1.1rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 8px; }
.feature p { color: var(--ink-64); font-size: .95rem; }
.section--dark .feature, .section--dark .features { border-color: var(--on-line); }
.section--dark .feature .tick { border-color: var(--on-30); }
.section--dark .feature p { color: var(--on-64); }
.section--dark .feature .fnum { color: var(--on-64); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { padding: 8px 0; }
.stat .num { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.stat .label { margin-top: 12px; color: var(--ink-45); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.section--dark .stat .label { color: var(--on-64); }
.stat-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(40px,5vw,64px) 0; }
.section--dark .stat-band { border-color: var(--on-line); }

/* ---------- Split (about / sector detail) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.rev > .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 440px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; padding: 30px; }
.section--dark .split-media { background: var(--on-tint); border-color: var(--on-line); }
.split-media svg { width: 86%; height: auto; overflow: visible; }
.media-tag { position: absolute; bottom: 22px; left: 22px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-45); display: flex; align-items: center; gap: 8px; }
.media-tag::before { content:""; width: 20px; height:1px; background: var(--ink-45); }
.media-stat { position: absolute; top: 26px; right: 26px; text-align: right; }
.media-stat .num { font-size: 2.4rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.media-stat .label { color: var(--ink-45); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }

/* ---------- Projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.proj {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px;
  border: 1px solid var(--line); background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
  transition: transform .55s var(--ease-out), box-shadow .55s, background .4s;
}
.proj .pscene { position: absolute; inset: 0; display: grid; place-items: center; opacity: .9; transition: transform .8s var(--ease-out); }
.proj .pscene svg { width: 70%; height: auto; }
.proj-content { position: relative; z-index: 2; }
.proj::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, transparent 35%, var(--bg-2) 96%); }
.proj:hover { transform: translateY(-5px); box-shadow: 0 36px 60px -36px rgba(5,4,25,.5); }
.proj:hover .pscene { transform: scale(1.05) translateY(-6px); }
.proj .ptag { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 12px; }
.proj h3 { font-size: 1.5rem; margin-bottom: 8px; }
.proj p { color: var(--ink-64); font-size: .95rem; max-width: 44ch; }
.proj .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.proj .meta span { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-64); padding: 5px 12px; border: 1px solid var(--line-2); border-radius: var(--pill); }
.proj.big { grid-column: span 2; min-height: 320px; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; text-align: left; font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.faq-q .chev { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .4s var(--ease), background .4s, color .4s; }
.faq-q .chev svg { width: 16px; height: 16px; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(45deg); background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .5s var(--ease); }
.faq-a-inner { padding: 0 0 28px; color: var(--ink-64); max-width: 64ch; }
.section--dark .faq-item { border-color: var(--on-line); }
.section--dark .faq-q { color: var(--on-dark); }
.section--dark .faq-a-inner { color: var(--on-64); }

/* ---------- Ratings / reviews ---------- */
.rating-summary { display: inline-flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.stars { color: #C2A36B; letter-spacing: 3px; font-size: 1.05rem; line-height: 1; }
.rating-num { font-family: var(--font); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; }
.rating-meta { color: var(--ink-45); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.review-card { display: flex; flex-direction: column; }
.review-card .stars { display: block; margin-bottom: 16px; }
.review-card blockquote { font-size: 1.15rem; line-height: 1.5; letter-spacing: -.01em; color: var(--ink); }
.review-card figcaption { margin-top: 18px; color: var(--ink-45); font-size: .85rem; letter-spacing: .02em; }

/* ---------- GEO content modules ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* TL;DR / Key takeaways */
.tldr { border: 1px solid var(--line-2); border-left: 3px solid var(--ink); border-radius: var(--radius); background: var(--bg-2); padding: 26px 28px; }
.tldr h2, .tldr h3 { font-size: .76rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-45); margin: 0 0 14px !important; }
.tldr ul { display: grid; gap: 10px; }
.tldr li { position: relative; padding-left: 22px; color: var(--ink); line-height: 1.5; }
.tldr li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.tldr.lead-answer { border-left-color: var(--ink); font-size: 1.15rem; line-height: 1.55; color: var(--ink); }

/* Stat callouts */
.stat-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-callout { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--bg-2); }
.stat-callout .figure { font-family: var(--font); font-weight: 600; font-size: clamp(1.9rem, 3.5vw, 2.6rem); letter-spacing: -.04em; line-height: 1; }
.stat-callout .label { margin-top: 10px; color: var(--ink-64); font-size: .92rem; }
.stat-callout cite { display: block; margin-top: 8px; font-style: normal; color: var(--ink-45); font-size: .78rem; }

/* Pull quote */
.pullquote { border-left: 3px solid var(--ink); padding: 6px 0 6px 26px; margin: 8px 0; }
.pullquote blockquote { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.4; letter-spacing: -.02em; }
.pullquote cite { display: block; margin-top: 14px; font-style: normal; color: var(--ink-45); font-size: .9rem; }

/* Data tables */
.data-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.data-table th, .data-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-weight: 500; color: var(--ink-45); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; width: 38%; }
.data-table td { color: var(--ink); }

/* Trust strip (YMYL) */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.trust-item .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); }
.trust-item .v { font-family: var(--font); font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; }
.section--dark .trust-item { background: var(--on-tint); border-color: var(--on-line); }
.section--dark .trust-item .v { color: var(--on-dark); }

/* Last-updated line */
.updated { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .04em; color: var(--ink-45); }
.updated::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5FB3A1; }

/* Case study layout */
.cs-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cs-meta span { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-64); padding: 6px 14px; border: 1px solid var(--line-2); border-radius: var(--pill); }
.cs-figure { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); display: grid; place-items: center; min-height: 360px; padding: 30px; margin: 8px 0; }
.cs-figure svg { width: 70%; height: auto; }
.cs-body { max-width: 760px; }
.cs-body h2 { margin: 48px 0 16px; }
.cs-body h3 { margin: 28px 0 8px; }
.cs-body p { color: var(--ink-64); margin-bottom: 14px; }
.cs-body p strong { color: var(--ink); font-weight: 500; }

/* Locations */
.loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.loc-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.loc-card .region { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 10px; }
.loc-card h3 { margin-bottom: 12px; }
.loc-card p { color: var(--ink-64); font-size: .95rem; margin-bottom: 16px; }
.loc-card address { font-style: normal; color: var(--ink-45); font-size: .9rem; line-height: 1.6; }

/* ---------- Work showcase (brand-colored, animated) ---------- */
:root { --c-red:#E5484D; --c-blue:#3E6FB0; --c-amber:#C2872B; --c-teal:#1F9E89; --c-steel:#5B6B82; --c-violet:#7C5CD6; }

/* clients marquee — brand-colored wordmarks */
.clients { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients-track { display: flex; gap: 46px; width: max-content; animation: scrollX 32s linear infinite; }
.clients:hover .clients-track { animation-play-state: paused; }
.client-chip { font-family: var(--font); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); transition: transform .3s var(--ease); }
.client-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--chip, var(--ink)); box-shadow: 0 0 12px var(--chip, var(--ink)); }
.client-chip:hover { transform: translateY(-2px); }

/* filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn { font-family: var(--font); font-size: .8rem; font-weight: 500; letter-spacing: .04em; padding: 10px 18px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-64); cursor: pointer; transition: all .3s var(--ease); }
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

/* work grid */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { position: relative; border-radius: var(--radius); overflow: hidden; padding: 28px; background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 240px; transition: transform .5s var(--ease-out), box-shadow .5s, border-color .4s, opacity .4s; }
.work-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent, var(--ink)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.work-card::after { content: ""; position: absolute; width: 180px; height: 180px; top: -90px; right: -60px; border-radius: 50%; background: var(--accent, var(--ink)); opacity: 0; filter: blur(50px); transition: opacity .5s; }
.work-card:hover { transform: translateY(-6px); border-color: var(--accent, var(--line-2)); box-shadow: 0 30px 60px -34px rgba(5,4,25,.5); }
.work-card:hover::before { transform: scaleX(1); }
.work-card:hover::after { opacity: .35; }
.work-card .wc-cat { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent, var(--ink-45)); margin-bottom: 14px; }
.work-card .wc-client { font-family: var(--font); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.1; }
.work-card .wc-does { color: var(--ink-45); font-size: .86rem; margin-top: 6px; }
.work-card .wc-scope { color: var(--ink-64); font-size: .95rem; margin-top: 14px; flex: 1; }
.work-card .wc-loc { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-45); }
.work-card .wc-loc::before { content: ""; width: 14px; height: 1px; background: var(--accent, var(--ink-45)); }
.work-card.is-hidden { display: none; }
.work-card[hidden] { display: none; }

@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { cursor: pointer; text-align: left; font: inherit; color: inherit; }
.work-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Project modal (Apple-style) ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,4,25,.5); backdrop-filter: blur(10px); cursor: pointer; }
.modal-card { position: relative; z-index: 1; width: min(640px, 100%); max-height: 88vh; overflow-y: auto; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 38px;
  transform: translateY(28px) scale(.94); opacity: 0; transition: transform .55s var(--ease-out), opacity .5s var(--ease-out); box-shadow: 0 50px 110px -30px rgba(5,4,25,.65); }
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--accent, var(--ink)); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--bg-2); cursor: pointer; transition: background .3s, color .3s, transform .4s var(--ease); }
.modal-close:hover { background: var(--ink); color: var(--on-dark); transform: rotate(90deg); }
.modal-logo { width: 66px; height: 66px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; margin-bottom: 22px; }
.modal-logo img { width: 42px; height: 42px; object-fit: contain; }
.modal-logo .fallback { font-family: var(--font); font-weight: 700; font-size: 1.6rem; color: var(--accent, var(--ink)); }
.modal-cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent, var(--ink-45)); }
.modal-card h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 8px 0 6px; letter-spacing: -.03em; }
.modal-does { color: var(--ink-45); font-size: .95rem; margin-bottom: 20px; }
.modal-scope { color: var(--ink-64); font-size: 1.05rem; line-height: 1.55; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.modal-meta span:not(:empty) { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-64); padding: 6px 14px; border: 1px solid var(--line-2); border-radius: var(--pill); }
.modal-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .modal, .modal-card, .modal-close { transition: none; } .modal-card { transform: none; } }

/* ---------- Credentials (PMP / OSHA etc.) ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cred-badge { text-align: center; padding: 34px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s; }
.cred-badge:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 26px 50px -34px rgba(5,4,25,.4); }
.cred-badge .seal { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; color: var(--ink); border: 2px solid var(--ink); position: relative; }
.cred-badge .seal::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid var(--line-2); }
.cred-badge .seal.solid { background: var(--ink); color: var(--on-dark); }
.cred-badge h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cred-badge p { color: var(--ink-64); font-size: .9rem; line-height: 1.5; }
@media (max-width: 900px) { .cred-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cred-grid { grid-template-columns: 1fr; } }

/* ---------- Services / expertise ---------- */
.svc-list { display: grid; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 84px 1fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; transition: background .4s var(--ease), padding-left .4s var(--ease); }
.svc:hover { background: var(--tint); padding-left: 14px; }
.svc .svc-n { font-family: var(--font); font-weight: 500; font-size: 1.1rem; color: var(--ink-30); transition: color .4s; }
.svc:hover .svc-n { color: var(--ink); }
.svc h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -.025em; margin-bottom: 8px; }
.svc p { color: var(--ink-64); max-width: 62ch; }
@media (max-width: 620px) { .svc { grid-template-columns: 1fr; gap: 8px; } .svc:hover { padding-left: 0; } }

.markets { display: flex; flex-wrap: wrap; gap: 10px; }
.market-chip { font-size: .85rem; font-weight: 500; padding: 10px 18px; border-radius: var(--pill); border: 1px solid var(--line-2); color: var(--ink-64); transition: background .3s var(--ease), color .3s, transform .3s var(--ease), border-color .3s; }
.market-chip:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); transform: translateY(-2px); }

/* ============================================================
   FUTURE-TECH POLISH — promise band, radar map, estimator
   ============================================================ */
:root { --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace; }

/* 2-business-day promise band */
.promise { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(34px,5vw,52px); background: var(--ink); color: var(--on-dark);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(22px,4vw,48px); }
.promise::after { content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255,255,255,.03) 3px 4px); }
.promise .pulse { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; }
.promise .pulse b { font-family: var(--font); font-weight: 700; font-size: 2.6rem; color: var(--on-dark); position: relative; z-index: 2; }
.promise .pulse::before, .promise .pulse::after { content:""; position:absolute; inset:0; border-radius:50%; border:1.5px solid #2DD4BF; }
.promise .pulse::before { animation: ring 2.4s var(--ease) infinite; }
.promise .pulse::after { animation: ring 2.4s var(--ease) infinite 1.2s; }
@keyframes ring { 0% { transform: scale(.7); opacity:.9; } 100% { transform: scale(1.6); opacity:0; } }
.promise .ptext { position: relative; z-index: 1; }
.promise .ptext .k { font-family: var(--mono); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: #5EEAD4; }
.promise .ptext h3 { font-size: clamp(1.3rem,2.4vw,1.9rem); color: var(--on-dark); margin: 8px 0 6px; letter-spacing: -.02em; }
.promise .ptext p { color: var(--on-64); font-size: .95rem; max-width: 48ch; }
.promise .pcta { position: relative; z-index: 1; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; text-align: left; gap: 20px; } }

/* Radar / reach map */
.radar { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); border: 1px solid var(--glass-brd, rgba(255,255,255,.08)); }
.radar svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar .dot { fill: rgba(94,234,212,.18); }
.radar .sweep { transform-origin: 50% 56%; animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar .pin { cursor: pointer; }
.radar .pin .ping { fill: none; stroke: #2DD4BF; stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ping 2.8s var(--ease) infinite; }
.radar .pin:nth-child(2) .ping { animation-delay: .5s; } .radar .pin:nth-child(3) .ping { animation-delay: 1s; }
.radar .pin:nth-child(4) .ping { animation-delay: 1.5s; } .radar .pin:nth-child(5) .ping { animation-delay: 2s; }
@keyframes ping { 0% { r: 4; opacity:.9; } 100% { r: 26; opacity:0; } }
.radar .pin .core { fill: #5EEAD4; }
.radar .pin .lbl { fill: #EAEEF7; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; opacity: .85; }
.radar .pin:hover .core { fill: #fff; }
.radar-legend { position: absolute; left: 22px; bottom: 18px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #5EEAD4; display: flex; align-items: center; gap: 8px; }
.radar-legend i { width: 7px; height: 7px; border-radius: 50%; background: #5EEAD4; box-shadow: 0 0 10px #2DD4BF; }

/* Estimator console */
.estimator { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.est-controls { display: grid; gap: 22px; align-content: start; }
.est-group .est-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 12px; }
.est-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.est-opt { font-size: .85rem; font-weight: 500; padding: 9px 15px; border-radius: var(--pill); border: 1px solid var(--line-2); background: transparent; color: var(--ink-64); cursor: pointer; transition: all .25s var(--ease); }
.est-opt:hover { border-color: var(--ink); color: var(--ink); }
.est-opt.active { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.est-range input[type=range] { width: 100%; accent-color: #1F9E89; }
.est-range .val { font-family: var(--mono); font-weight: 500; color: var(--ink); margin-top: 8px; }
.est-readout { background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); padding: 32px; position: relative; overflow: hidden; }
.est-readout::after { content:""; position:absolute; inset:0; pointer-events:none; background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255,255,255,.03) 3px 4px); }
.est-readout .ro-k { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #5EEAD4; }
.est-readout .ro-big { font-family: var(--font); font-weight: 600; font-size: clamp(1.8rem,4vw,2.8rem); letter-spacing: -.03em; margin: 6px 0 4px; }
.est-readout .ro-line { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--on-line); font-size: .95rem; }
.est-readout .ro-line:last-of-type { border-bottom: none; }
.est-readout .ro-line .v { font-family: var(--mono); color: var(--on-dark); }
.est-readout .ro-note { color: var(--on-64); font-size: .8rem; margin-top: 18px; line-height: 1.5; }
.est-readout .btn { margin-top: 20px; }
@media (max-width: 760px) { .estimator { grid-template-columns: 1fr; } }
.promise .btn--primary, .est-readout .btn--primary { background: var(--on-dark); color: var(--ink); }
.promise .btn--primary:hover, .est-readout .btn--primary:hover { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }

/* Knowledge base */
.kb-search { position: relative; max-width: 580px; margin: 0 auto 44px; }
.kb-search input { width: 100%; padding: 16px 20px 16px 50px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--bg-2); font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .3s, box-shadow .3s; }
.kb-search input::placeholder { color: var(--ink-45); }
.kb-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--tint-2); }
.kb-search svg { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-45); pointer-events: none; }
.kb-group { margin-bottom: 44px; }
.kb-group > h2 { font-family: var(--mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #1F9E89; margin-bottom: 6px; }
.kb-group.is-empty { display: none; }
.kb-noresults { display: none; text-align: center; color: var(--ink-45); padding: 40px 0; }
.kb-noresults.show { display: block; }

/* ---------- Global reach globe ---------- */
.globe-stage { position: relative; width: min(540px, 92vw); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.globe { --gs: clamp(220px, 50vw, 330px); width: var(--gs); height: var(--gs); border-radius: 50%; position: relative; overflow: hidden;
  background-color: #0A0E1A;
  background-image:
    repeating-linear-gradient(0deg, rgba(94,234,212,.16) 0 1px, transparent 1px, transparent calc(var(--gs) / 9)),
    repeating-linear-gradient(90deg, rgba(94,234,212,.12) 0 1px, transparent 1px, transparent calc(var(--gs) / 9));
  box-shadow: inset -26px -18px 60px rgba(0,0,0,.75), inset 22px 16px 50px rgba(94,234,212,.10), 0 0 70px rgba(45,212,191,.22);
  animation: globeSpin 16s linear infinite; }
@keyframes globeSpin { to { background-position: 0 0, calc(var(--gs) / 9) 0; } }
.globe::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 26%, rgba(94,234,212,.20), transparent 46%); }
.globe::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(94,234,212,.28); }
.globe-orbit { position: absolute; width: calc(clamp(220px, 50vw, 330px) * 1.34); aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(94,234,212,.28); animation: spin 30s linear infinite; }
.globe-orbit.r2 { width: calc(clamp(220px, 50vw, 330px) * 1.62); border-style: dotted; opacity: .5; animation-duration: 46s; animation-direction: reverse; }
.geo-tag { position: absolute; display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #5EEAD4; white-space: nowrap; }
.geo-tag i { width: 9px; height: 9px; border-radius: 50%; background: #5EEAD4; box-shadow: 0 0 12px #2DD4BF; position: relative; flex: none; }
.geo-tag i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #2DD4BF; animation: pingEl 2.6s var(--ease) infinite; }
.geo-tag.t-canada { top: 7%; left: 4%; }
.geo-tag.t-canada i::after { animation-delay: 0s; }
.geo-tag.t-mena { top: 46%; right: 1%; }
.geo-tag.t-mena i::after { animation-delay: .9s; }
.geo-tag.t-africa { bottom: 9%; left: 26%; }
.geo-tag.t-africa i::after { animation-delay: 1.8s; }
@keyframes pingEl { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(2.8); opacity: 0; } }
@media (max-width: 520px) { .geo-tag { font-size: .64rem; } }

/* ---------- "Ask AI" summary band (footer) ---------- */
.ai-summary { border-bottom: 1px solid var(--on-line); padding: 28px 0; margin-bottom: 40px; }
.ai-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.ai-head .ai-k { font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: #5EEAD4; display: block; margin-bottom: 6px; }
.ai-head h4 { font-family: var(--font); font-weight: 500; font-size: 1.18rem; letter-spacing: -.02em; color: var(--on-dark); }
.ai-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-links a { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 500; color: var(--on-dark); padding: 9px 15px; border: 1px solid var(--on-line); border-radius: var(--pill); transition: background .25s var(--ease), border-color .25s, transform .25s var(--ease); }
.ai-links a svg { width: 13px; height: 13px; opacity: .65; }
.ai-links a:hover { background: rgba(94,234,212,.12); border-color: #2DD4BF; transform: translateY(-2px); }
.footer-bottom .legal { color: var(--on-64); }
.footer-bottom .legal a { color: var(--on-64); transition: color .25s; }
.footer-bottom .legal a:hover { color: var(--on-dark); }
@media (max-width: 700px) { .ai-row { flex-direction: column; align-items: flex-start; } }

/* ---------- Language switcher (Weglot target) ---------- */
.lang-switcher, .lang-switcher-m { display: inline-flex; align-items: center; }
.lang-switcher:empty, .lang-switcher-m:empty { display: none; }
.lang-switcher [class^="wg"], .lang-switcher-m [class^="wg"] { font-family: var(--font) !important; }

@media (max-width: 900px) {
  .stat-callouts, .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-callouts, .trust-strip { grid-template-columns: 1fr; }
}

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px,5vw,72px); align-items: start; }
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-64); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 0; border: none; border-bottom: 1px solid var(--line-2);
  background: transparent; color: var(--ink); font-family: inherit; font-size: 1.05rem;
  transition: border-color .3s;
}
.field select { padding-right: 20px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-30); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field .err { color: #B91C1C; font-size: .78rem; min-height: 1em; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #B91C1C; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { display: flex; align-items: center; gap: 10px; color: var(--ink-45); font-size: .84rem; }
.form-success { display: none; padding: 22px 24px; border-radius: var(--radius); background: var(--ink); color: var(--on-dark); }
.form-success.show { display: flex; align-items: center; gap: 12px; }
.form-error { display: none; padding: 14px 18px; border-radius: var(--radius); background: rgba(185,28,28,.1); border: 1px solid rgba(185,28,28,.35); color: #991B1B; font-size: .9rem; }
.form-error.show { display: flex; align-items: center; gap: 10px; }
.btn:disabled, .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { display: grid; gap: 14px; }
.contact-line { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-line:last-of-type { border-bottom: 1px solid var(--line); }
.contact-line .ico { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.contact-line .ico svg { width: 18px; height: 18px; stroke-width: 1.6; }
.contact-line .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 4px; }
.contact-line .v { font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }

/* ---------- CTA ---------- */
.cta-band { text-align: center; padding: clamp(60px,9vw,120px) 0; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lead { margin: 22px auto 36px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding: clamp(64px,8vw,100px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 60px; }
.footer .brand { color: var(--on-dark); margin-bottom: 18px; }
.footer .brand .mark { filter: invert(1) brightness(2.2); }
.footer p.about { color: var(--on-64); max-width: 32ch; font-size: .96rem; }
.footer-col h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-64); margin-bottom: 18px; font-weight: 500; }
.footer-col a { display: block; color: var(--on-dark); padding: 7px 0; font-size: .96rem; opacity: .8; transition: opacity .25s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 28px; border-top: 1px solid var(--on-line); color: var(--on-64); font-size: .82rem; }
.footer-bottom .socials { display: flex; gap: 8px; }
.footer-bottom .socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--on-line); display: grid; place-items: center; transition: background .3s, color .3s; }
.footer-bottom .socials a:hover { background: var(--on-dark); color: var(--ink); }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-reveal][data-d="1"] { transition-delay: .09s; }
[data-reveal][data-d="2"] { transition-delay: .18s; }
[data-reveal][data-d="3"] { transition-delay: .27s; }
[data-reveal][data-d="4"] { transition-delay: .36s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .features { grid-template-columns: repeat(2,1fr); }
  .feature { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; }
  .feature:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 26px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.rev > .split-media { order: 0; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .proj.big { grid-column: span 1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .pstep { grid-template-columns: 80px 1fr; }
  .pstep .picon { display: none; }
}
@media (max-width: 760px) {
  .nav-menu, .nav-start { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4, .proj-grid, .row-2 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(odd) { border-right: none; padding-right: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  body { font-size: 16px; }
}

/* ---------- Capabilities line card ---------- */
.linecard { max-width: 820px; margin-inline: auto; }
.linecard .lc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 36px; }
.linecard .lc-grid h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-45); margin: 18px 0 8px; }
.linecard ul.lc { display: grid; gap: 6px; }
.linecard ul.lc li { padding-left: 18px; position: relative; color: var(--ink); }
.linecard ul.lc li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--ink); }

/* ---------- Print (Save as PDF) ---------- */
@media print {
  .nav-wrap, .mobile-menu, .footer, .no-print, .scroll-cue, .aurora-bg, .grain { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  main, .section, .section--tight, .page-hero { padding: 0 !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  h1 { font-size: 26pt !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .linecard ul.lc li::before { background: #000 !important; }
  @page { margin: 16mm; }
}

/* ---------- Robotics — "coming soon" with chrome-free video background ---------- */
.robotics-hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: #0A1430; color: #EAF1F6; }
.video-bg { position: absolute; inset: 0; overflow: hidden; background: #0A1430; }
/* Cover the area and scale up so the YouTube title/branding sits outside the crop */
.video-bg iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-width: 177.78svh; min-height: 100svh; transform: translate(-50%, -50%) scale(1.34); border: 0; pointer-events: none; }
.video-tint { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 20%, rgba(10,20,48,.35), rgba(5,4,25,.78) 75%), linear-gradient(180deg, rgba(5,4,25,.45), rgba(5,4,25,.35) 40%, rgba(5,4,25,.82)); }
.video-guard { position: absolute; inset: 0; z-index: 2; } /* blocks all interaction with the video */
.robotics-content { position: relative; z-index: 3; padding-top: 80px; padding-bottom: 40px; }
.robotics-hero .breadcrumb, .robotics-hero .breadcrumb a { color: rgba(234,241,246,.72); }
.robotics-hero .breadcrumb a:hover { color: #fff; }
.robotics-hero .eyebrow { color: #5EEAD4; }
.robotics-hero h1 { color: #fff; font-weight: 600; font-size: clamp(2.8rem, 9vw, 7rem); line-height: .92; letter-spacing: -.045em; margin: 16px 0 0; }
.soon-tag { display: inline-block; margin-top: 24px; padding: 10px 20px; border: 1px solid rgba(94,234,212,.5); border-radius: 999px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: #5EEAD4; background: rgba(94,234,212,.08); backdrop-filter: blur(6px); }
.robotics-hero p.lead { max-width: 52ch; margin-top: 26px; color: rgba(234,241,246,.84); font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.62; }
.robotics-hero .hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.robotics-hero .btn--line { color: #fff; border: 1px solid rgba(255,255,255,.42); background: transparent; }
.robotics-hero .btn--line:hover { border-color: #fff; background: rgba(255,255,255,.08); }

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