/* ==========================================================================
   LUCEA SPACE — Design system & site styles
   Light tech-startup interface. Fonts: Geist (UI) + JetBrains Mono (labels/code).
   ========================================================================== */

@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #ffffff;
  --bg-2: #f5f9fd;
  --card: #ffffff;
  --card-2: #f6f9fd;
  --card-3: #eaf4fc;
  --line: #e8eef5;
  --line-2: #dde6f0;
  --line-3: #c9d7e6;

  /* Text */
  --text: #0b1b2e;
  --text-2: #475a70;
  --text-3: #606f80;

  /* Accents (from the logo) */
  --steel: #0a73b0;
  --steel-2: #2196d6;
  --blue: #0a73b0;
  --cyan: #2196d6;
  --green: #0c8151;
  --amber: #9b661a;
  --red: #d64545;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(11,27,46,.05), 0 2px 8px -2px rgba(11,27,46,.06);
  --shadow: 0 1px 2px rgba(11,27,46,.04), 0 12px 32px -12px rgba(11,60,110,.18);
  --shadow-lg: 0 30px 70px -30px rgba(11,60,110,.35);

  /* Brand (from the LUCEA SPACE logo) */
  --brand-deep: #0b76b4;
  --brand: #2196d6;
  --brand-light: #c4e9fc;
  --brand-grad: linear-gradient(100deg, #0a6fae 0%, #1b8fd0 55%, #3aa6e2 100%);
  --brand-grad-text: linear-gradient(100deg, #0a6fae 0%, #2196d6 55%, #5dbcef 100%);

  /* Type */
  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --container: 1440px;
  --gutter: 16px;
  --header-h: 84px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --section-y: 120px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 64px; } }
@media (max-width: 899px) { :root { --section-y: 80px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
::selection { background: #cfe9fa; color: #0b1b2e; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--steel); color: #fff; padding: 8px 14px; border-radius: 8px;
  font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }
.section--flush { border-top: 0; }
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(11,120,184, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,120,184, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- Typography ---------- */
.mono { font-family: var(--font-mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font: 600 11.5px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel);
}
.eyebrow .dim { color: var(--text-3); font-weight: 500; }
.eyebrow .rule { width: 40px; height: 1px; background: var(--line-3); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(33,150,214,.15); }

.h-display, .h1, .h2, .h3 { font-weight: 700; text-transform: none; color: var(--text); }
.h-display {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700;
}
.h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.035em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -0.02em; }
.h4 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.accent { color: var(--steel); background: var(--brand-grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.muted { color: var(--text-3); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--text-2); font-weight: 400; max-width: 46rem; }
.body-sm { font-size: .9rem; line-height: 1.55; color: var(--text-2); }
.label {
  font: 500 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
}
.value { font: 600 13px/1.4 var(--font-mono); color: var(--text); letter-spacing: .02em; }

.section-head { display: grid; gap: 20px; margin-bottom: 56px; }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.3fr 1fr; gap: 48px; } }
.section-head .lead { margin-top: 4px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px;
  font: 600 14px/1 var(--font-sans); letter-spacing: -0.005em; text-transform: none; white-space: nowrap;
  border: 1px solid var(--line-3); background: #fff; color: var(--text); box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .arr { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn:hover { border-color: var(--steel); transform: translateY(-1px); }
.btn--primary { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -10px rgba(11,118,180,.55); }
.btn--primary:hover { background: linear-gradient(100deg, #0a6aa3 0%, #1b8bcb 50%, #5dbcef 100%); border-color: transparent; box-shadow: 0 16px 34px -12px rgba(11,118,180,.6); }
.btn--white { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px rgba(11,118,180,.55); }
.btn--white:hover { border-color: transparent; box-shadow: 0 14px 30px -12px rgba(11,118,180,.6); }
.btn--ghost { background: transparent; box-shadow: none; }
.btn--sm { min-height: 38px; padding: 9px 16px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--steel);
  transition: color .2s, gap .25s var(--ease);
}
.link-arrow:hover { color: var(--blue); gap: 12px; }
.text-link { color: var(--steel); border-bottom: 1px solid rgba(11,120,184,.3); transition: border-color .2s, color .2s; }
.text-link:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- Tags / indicators ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid var(--line-2); background: var(--bg-2);
  font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
  border-radius: 999px;
}
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); animation: pulse 2.4s ease-in-out infinite; }
.status--cyan { color: var(--cyan); }
.status--amber { color: var(--amber); }
.status--steel { color: var(--steel); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.placeholder {
  color: var(--amber); font-family: var(--font-mono); font-size: .85em; letter-spacing: .02em;
  border-bottom: 1px dashed rgba(242,184,75,.45);
}
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid #f3d9a8; background: #fff8eb; border-radius: var(--radius-sm);
  font: 500 12px/1.6 var(--font-mono); color: #7a5414; letter-spacing: .02em;
}
.notice strong { color: var(--amber); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; padding-top: 12px; pointer-events: none;
  transition: padding .3s var(--ease);
}
.site-header .container { pointer-events: none; }
.navbar {
  pointer-events: auto; position: relative; height: 60px; display: flex; align-items: center; gap: 16px;
  padding: 0 8px 0 18px; border-radius: 999px;
  background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(201,215,230,.7);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 30px -18px rgba(11,60,110,.35);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.navbar::before { /* thin brand line that glows under the pill */
  content: ""; position: absolute; left: 28px; right: 28px; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(33,150,214,.55), transparent); opacity: .7;
}
.site-header.is-scrolled { padding-top: 8px; }
.site-header.is-scrolled .navbar { background: rgba(255,255,255,.9); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 40px -22px rgba(11,60,110,.45); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__logo { height: 30px; width: auto; flex: 0 0 auto; transition: filter .3s var(--ease), transform .4s var(--ease); }
.brand:hover .brand__logo { filter: drop-shadow(0 4px 10px rgba(11,118,180,.35)); transform: rotate(-8deg) scale(1.05); }
.brand__slash { display: none; }
.brand__name { font-weight: 800; font-size: 15.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text); transition: color .2s; }

/* Desktop link track */
.nav { display: none; flex: 1; justify-content: center; }
@media (min-width: 1100px) { .nav { display: flex; } }
.nav__track { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(234,244,252,.85); border: 1px solid rgba(201,215,230,.55); }
.nav__item { position: relative; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px;
  font: 500 14px/1 var(--font-sans); color: var(--text-2); text-transform: none; letter-spacing: -0.005em;
  transition: color .2s, background .25s var(--ease), box-shadow .25s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,.7); }
.nav__link[aria-current="page"], .nav__item.is-active > .nav__link {
  color: var(--blue); background: #fff; font-weight: 600;
  box-shadow: 0 1px 2px rgba(11,27,46,.06), 0 6px 14px -8px rgba(11,118,180,.45);
}
.nav__link::after { content: none; }
.nav__item.is-dimmed > .nav__link[aria-current="page"] { color: var(--text-2); background: transparent; box-shadow: none; font-weight: 500; }
.nav__link svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav__item.is-open .nav__link svg, .nav__item:hover .nav__link svg { transform: rotate(180deg); }
.nav__item::before { content: ""; position: absolute; left: -10px; right: -10px; top: 100%; height: 18px; }
.nav__cta { display: none; flex: 0 0 auto; border-radius: 999px !important; height: 44px; padding: 0 20px !important; }
@media (min-width: 1100px) { .nav__cta { display: inline-flex; } }

/* Services mega menu */
.dropdown.mega {
  position: absolute; top: calc(100% + 16px); left: 50%; width: 680px; transform: translate(-50%, 8px) scale(.98); transform-origin: top center;
  padding: 18px; border-radius: 24px; background: #fff; border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(11,60,110,.45), 0 0 0 1px rgba(255,255,255,.6) inset;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .3s var(--ease), visibility .2s;
}
.nav__item:hover .dropdown.mega, .nav__item.is-open .dropdown.mega, .nav__item:focus-within .dropdown.mega { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.mega__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 14px; }
.mega__kicker { font: 600 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.mega__count { font: 700 11px/1 var(--font-mono); padding: 5px 9px; border-radius: 999px; color: #fff; background: var(--brand-grad); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dropdown.mega a.mega__item {
  display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 14px; text-transform: none; letter-spacing: 0;
  font: inherit; color: var(--text); transition: background .2s, transform .2s var(--ease);
}
.mega__num {
  flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  font: 700 11.5px/1 var(--font-mono); color: var(--blue); background: linear-gradient(140deg, #e3f2fc, #f4faff); border: 1px solid #d3e8f7;
  transition: color .2s, background .2s, border-color .2s;
}
.mega__txt { display: grid; gap: 3px; min-width: 0; }
.mega__txt b { font-size: 14px; font-weight: 650; color: var(--text); }
.mega__txt small { font-size: 12px; line-height: 1.4; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dropdown.mega a.mega__item:hover, .dropdown.mega a.mega__item[aria-current="page"] { background: var(--bg-2); color: var(--text); transform: translateX(2px); }
.dropdown.mega a.mega__item:hover .mega__num, .dropdown.mega a.mega__item[aria-current="page"] .mega__num { color: #fff; background: var(--brand-grad); border-color: transparent; }
.dropdown.mega a.mega__all {
  margin-top: 12px; display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-radius: 14px;
  font: 600 13.5px/1 var(--font-sans); text-transform: none; letter-spacing: 0; color: #fff; background: var(--brand-grad);
  box-shadow: 0 12px 24px -14px rgba(11,118,180,.7); transition: filter .2s;
}
.dropdown.mega a.mega__all:hover { filter: brightness(1.07); color: #fff; }

/* Menu button: round, morphs into an X */
.menu-btn {
  margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--text); color: #fff; border: 0; box-shadow: 0 8px 18px -10px rgba(11,27,46,.6); transition: background .25s, transform .25s var(--ease);
}
.menu-btn:hover { background: var(--blue); }
.menu-btn__bars { display: grid; gap: 4px; width: 16px; }
.menu-btn__bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s, width .3s var(--ease); }
.menu-btn__bars span:nth-child(2) { width: 70%; margin-left: auto; }
.menu-btn[aria-expanded="true"] { background: var(--blue); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1100px) { .menu-btn { display: none; } }

/* Mobile menu: a panel that drops down from the floating header */
.drawer { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(11,27,46,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 82px; left: 12px; right: 12px; max-width: 560px; margin-left: auto;
  max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 6px; padding: 10px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 26px;
  box-shadow: 0 40px 80px -30px rgba(11,60,110,.5);
  opacity: 0; transform: translateY(-14px) scale(.97); transform-origin: top right;
  transition: opacity .25s, transform .4s var(--ease);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { opacity: 1; transform: none; }
.drawer__nav { display: grid; gap: 4px; }
.drawer__row {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 16px;
  font: 600 16px/1.2 var(--font-sans); color: var(--text); text-align: left; background: transparent; border: 0;
  transition: background .2s, color .2s;
  opacity: 0; transform: translateY(-6px);
}
.drawer.is-open .drawer__row { opacity: 1; transform: none; transition: background .2s, color .2s, opacity .35s, transform .45s var(--ease); }
.drawer.is-open .drawer__nav > :nth-child(1) .drawer__row, .drawer.is-open .drawer__nav > .drawer__row:nth-child(1) { transition-delay: .03s; }
.drawer.is-open .drawer__nav > .drawer__row:nth-child(2) { transition-delay: .06s; }
.drawer.is-open .drawer__nav > :nth-child(3) .drawer__row { transition-delay: .09s; }
.drawer.is-open .drawer__nav > .drawer__row:nth-child(4) { transition-delay: .12s; }
.drawer.is-open .drawer__nav > .drawer__row:nth-child(5) { transition-delay: .15s; }
.drawer.is-open .drawer__nav > .drawer__row:nth-child(6) { transition-delay: .18s; }
.drawer__row .ico {
  flex: 0 0 38px; width: 38px; height: 38px; padding: 9px; border-radius: 12px;
  color: var(--blue); background: var(--card-3); transition: color .2s, background .2s;
}
.drawer__label { flex: 1; }
.drawer__go { color: var(--text-3); transition: transform .25s var(--ease), color .2s; }
.drawer__row:hover, .drawer__row:focus-visible { background: var(--bg-2); outline: none; }
.drawer__row:hover .drawer__go { transform: translateX(3px); color: var(--blue); }
.drawer__row[aria-current="page"] { background: var(--bg-2); color: var(--blue); }
.drawer__row[aria-current="page"] .ico, .drawer__toggle[aria-expanded="true"] .ico { color: #fff; background: var(--brand-grad); }
.drawer__badge { font: 700 10.5px/1 var(--font-mono); padding: 4px 7px; border-radius: 999px; color: var(--blue); background: var(--card-3); }
.drawer__toggle > svg:last-child { width: 14px; height: 14px; color: var(--text-3); transition: transform .3s var(--ease); }
.drawer__toggle[aria-expanded="true"] { color: var(--blue); background: var(--bg-2); }
.drawer__toggle[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); color: var(--blue); }

/* Services: dropdown inside the dropdown */
.drawer__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.drawer__sub > div { overflow: hidden; }
.drawer__group.is-open .drawer__sub { grid-template-rows: 1fr; }
.drawer__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 4px 4px 4px; }
.drawer__tile {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--line-2);
  font: 500 13.5px/1.25 var(--font-sans); color: var(--text-2); background: #fff;
  transition: border-color .2s, color .2s, background .2s, transform .2s var(--ease);
}
.drawer__tile span {
  flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 9px;
  font: 700 10.5px/1 var(--font-mono); color: var(--blue); background: var(--card-3);
}
.drawer__tile:hover, .drawer__tile[aria-current="page"] { border-color: #bfe0f5; color: var(--text); background: var(--bg-2); transform: translateY(-1px); }
.drawer__tile[aria-current="page"] span { color: #fff; background: var(--brand-grad); }
.drawer__all { display: flex; justify-content: space-between; margin: 6px 4px 6px; padding: 11px 14px; border-radius: 14px; font: 600 13.5px/1 var(--font-sans); color: var(--blue); background: var(--card-3); }
.drawer__all:hover { filter: brightness(.98); }
.drawer__foot { margin-top: 4px; padding: 12px 6px 6px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__foot .btn { border-radius: 16px; height: 50px; }
.drawer__tag { text-align: center; font: 600 10.5px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 380px) { .drawer__tiles { grid-template-columns: 1fr; } }
body.no-scroll { overflow: hidden; }
body.no-scroll .lc { opacity: 0; pointer-events: none; transition: opacity .2s; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; padding-top: var(--header-h);
  display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(143,211,247,.35), transparent 70%),
    radial-gradient(45% 50% at 8% 90%, rgba(33,150,214,.12), transparent 70%),
    linear-gradient(180deg, #f3f9fe 0%, #ffffff 75%);
}
.hero__canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; }
.hero__vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 65% at 18% 55%, rgba(255,255,255,.85), transparent 70%),
    linear-gradient(to bottom, rgba(255,255,255,0) 75%, var(--bg) 100%);
}
.hero .container { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; }
.telemetry {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0 14px; border-bottom: 1px solid var(--line-2);
  font: 500 11px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}
.telemetry__mid { display: none; color: var(--text-2); }
.telemetry__live { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; padding: 6px 12px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.8); box-shadow: var(--shadow-sm); }
.telemetry__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); position: relative; }
.telemetry__live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--steel); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@media (min-width: 900px) { .telemetry__mid { display: block; } }
@media (max-width: 560px) { .telemetry__right { display: none; } }

.hero__body {
  flex: 1; display: grid; align-content: center; gap: 28px; padding: 56px 0 48px;
}
.hero__title { font-size: clamp(2.7rem, 7.2vw, 5.6rem); line-height: 1; letter-spacing: -0.045em; font-weight: 700; text-transform: none; color: var(--text); }
.hero__title .l { display: block; }
.hero__title .hl { color: var(--steel); font-weight: 800; background: var(--brand-grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__title .thin { color: #8aa0b8; font-weight: 300; }
.hero__split { display: grid; gap: 28px; }
.hero__right { display: grid; gap: 22px; }
.hero__tagline { display: flex; align-items: center; gap: 12px; font: 600 11px/1.4 var(--font-mono); letter-spacing: .2em; color: var(--steel); text-transform: uppercase; }
.hero__tagline::before { content: ""; width: 40px; height: 2px; border-radius: 2px; background: var(--brand-grad); }
.hero__text { max-width: 34rem; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.65; color: var(--text-2); font-weight: 400; }
@media (min-width: 1000px) {
  .hero__split { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 6vw; }
  .hero__right { padding-bottom: 6px; }
}
.hero__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: 22px 0 30px; border-top: 1px solid var(--line-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { display: none; align-items: center; gap: 10px; font: 500 11px/1 var(--font-mono); letter-spacing: .18em; color: var(--text-2); text-transform: uppercase; }
.hero__scroll svg { width: 14px; height: 14px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.hero__meta { text-align: right; font: 500 11px/1.7 var(--font-mono); letter-spacing: .16em; color: var(--text-3); text-transform: uppercase; }
.hero__meta strong { color: var(--text); font-weight: 600; }
@media (min-width: 1100px) { .hero__scroll { display: inline-flex; } }
@media (max-width: 720px) { .hero__meta { text-align: left; } .hero__actions .btn { flex: 1 1 100%; } }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--header-h) + 72px) 0 72px; overflow: hidden; background: radial-gradient(55% 70% at 90% 10%, rgba(143,211,247,.3), transparent 70%), linear-gradient(180deg, #f3f9fe, #fff); }
.page-hero__canvas { position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.page-hero__canvas::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 22%, rgba(255,255,255,.2) 70%, rgba(255,255,255,.4)); }
.page-hero .container { position: relative; z-index: 2; display: grid; gap: 26px; }
.page-hero .h1 { max-width: 16ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.breadcrumb { display: flex; gap: 10px; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; color: var(--text-3); text-transform: uppercase; }
.breadcrumb a:hover { color: var(--steel); }

/* ==========================================================================
   Cards — What we build
   ========================================================================== */
.build-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .build-grid { grid-template-columns: repeat(3, 1fr); } }
.build-card {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 340px;
  padding: 32px 28px; background: var(--card); overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.build-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bfe0f5; }
.build-card__top { display: flex; justify-content: space-between; align-items: center; }
.build-card__num { font: 600 12px/1 var(--font-mono); letter-spacing: .16em; color: var(--steel); }
.build-card__glyph { width: 60px; height: 60px; padding: 10px; border-radius: 16px; background: linear-gradient(140deg, #e6f4fd, #f5fbff); color: var(--steel); }
.build-card h3 { font-size: 1.4rem; letter-spacing: -0.02em; text-transform: none; font-weight: 700; margin-top: auto; }
.build-card p { color: var(--text-2); font-size: .95rem; }
.build-card ul { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.build-card li { font: 500 11.5px/1.4 var(--font-mono); color: var(--text-3); letter-spacing: .04em; display: flex; gap: 8px; }
.build-card li::before { content: "+"; color: var(--steel); }
.build-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.build-card:hover::after { transform: scaleX(1); }
.intro-split { display: grid; gap: 28px; margin-bottom: 56px; }
@media (min-width: 900px) { .intro-split { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; } }

/* ==========================================================================
   Services grid (home + services page index)
   ========================================================================== */
.svc-grid { display: grid; border-top: 1px solid var(--line-2); }
@media (min-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc-row:nth-child(odd) { border-right: 1px solid var(--line-2); } }
.svc-row {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px;
  padding: 30px 24px 28px 4px; border-bottom: 1px solid var(--line-2);
  transition: background .3s var(--ease);
}
@media (min-width: 900px) { .svc-row { padding: 34px 32px 32px 8px; } .svc-row:nth-child(even) { padding-left: 32px; } }
.svc-row:hover { background: linear-gradient(90deg, rgba(33,150,214,.06), transparent 70%); }
.svc-row__num { font: 600 12px/1.9 var(--font-mono); letter-spacing: .12em; color: var(--text-3); transition: color .2s; }
.svc-row:hover .svc-row__num { color: var(--cyan); }
.svc-row__body { display: grid; gap: 12px; }
.svc-row h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.svc-row p { color: var(--text-2); font-size: .94rem; max-width: 34rem; }
.svc-row__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 4px; }
.svc-row .stretched::after { content: ""; position: absolute; inset: 0; }

/* ==========================================================================
   Capability deck (home section 05)
   ========================================================================== */
.deck-head { display: grid; gap: 24px; margin-bottom: 32px; }
@media (min-width: 900px) { .deck-head { grid-template-columns: 1fr auto; align-items: end; } }
.deck-ctrl { display: flex; align-items: center; gap: 8px; }
.deck-index { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 18px; border: 1px solid var(--line-3); background: var(--card); border-radius: 12px; font: 600 13px/1 var(--font-mono); letter-spacing: .14em; min-width: 160px; }
.deck-index b { color: var(--steel); font-weight: 600; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-3); background: var(--card); color: var(--text); border-radius: 12px; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--steel); background: var(--card-3); }
.icon-btn svg { width: 18px; height: 18px; }

.deck-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); scrollbar-width: none; }
.deck-tabs::-webkit-scrollbar { display: none; }
.deck-tab {
  flex: 0 0 auto; padding: 11px 18px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 13.5px/1 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--text-2);
  transition: background .2s, color .2s, border-color .2s;
}
.deck-tab:hover { color: var(--text); border-color: var(--line-3); }
.deck-tab[aria-selected="true"] { background: var(--brand-grad); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 8px 18px -10px rgba(11,118,180,.6); }

.deck-panel { display: grid; gap: 40px; padding-top: 48px; }
.deck-panel[hidden] { display: none; }
@media (min-width: 1000px) { .deck-panel { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; } }
.deck-panel.is-entering .deck-copy, .deck-panel.is-entering .device { animation: deckIn .6s var(--ease) both; }
.deck-panel.is-entering .device { animation-delay: .06s; }
@keyframes deckIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.deck-copy { display: grid; gap: 22px; align-content: start; }
.deck-copy .eyebrow { color: var(--text-2); }
.deck-copy .h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding: 20px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.spec > div { display: grid; gap: 4px; }
.spec .value { font-size: 12.5px; line-height: 1.45; }
.deck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.deck-dots { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.deck-dots button { width: 14px; height: 4px; border-radius: 4px; background: var(--line-3); transition: width .3s var(--ease), background .3s; }
.deck-dots button[aria-current="true"] { width: 40px; background: var(--brand-grad); }

/* Device frame */
.device { position: relative; border: 1px solid var(--line-3); border-radius: 14px; background: linear-gradient(180deg, #151a24, #0c1017); padding: 14px; box-shadow: 0 50px 90px -40px rgba(11,60,110,.45), inset 0 1px 0 rgba(255,255,255,.04); }
.device::before { content: ""; position: absolute; top: 6px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: #2b3240; transform: translateX(-50%); }
.device__base { height: 14px; margin: 0 -14px -14px; border-top: 1px solid var(--line-2); border-radius: 0 0 14px 14px; background: #10141c; position: relative; }
.device__base::after { content: ""; position: absolute; left: 50%; top: 4px; width: 70px; height: 3px; border-radius: 3px; background: #232a36; transform: translateX(-50%); }

/* ==========================================================================
   Technical visual panels (shared by deck + service pages)
   ========================================================================== */
.viz { position: relative; background: #03060b; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); }
.viz--page { border-radius: var(--radius); }
.viz__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: #0b0e14; }
.viz__bar .lights { display: inline-flex; gap: 6px; margin-right: 10px; }
.viz__bar .lights i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.viz__bar .lights i:nth-child(2) { background: #febc2e; }
.viz__bar .lights i:nth-child(3) { background: #28c840; }
.viz__title { display: inline-flex; align-items: center; color: var(--text); font-size: 11px; letter-spacing: .04em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz__body { padding: 14px; display: grid; gap: 12px; }
.viz__foot { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line-2); font-size: 10.5px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.viz__note { display: block; padding: 6px 14px 7px; border-top: 1px solid #12171f; text-align: right; font-size: 9px; letter-spacing: .18em; color: #737984; text-transform: uppercase; background: #03060b; }
.viz-box { border: 1px solid var(--line-2); background: #070d16; border-radius: 3px; padding: 10px 12px; }
.viz-box__label { font-size: 9.5px; letter-spacing: .14em; color: var(--text-3); text-transform: uppercase; }
.viz-box__value { margin-top: 4px; color: var(--text); font-weight: 600; font-size: 11.5px; }
.viz-cols { display: grid; gap: 12px; }
@media (min-width: 640px) { .viz-cols--2 { grid-template-columns: 1.6fr 1fr; } .viz-cols--3 { grid-template-columns: repeat(3, 1fr); } }
.ok { color: var(--green); }
.cy { color: var(--cyan); }
.st { color: var(--steel); }
.am { color: var(--amber); }

/* code */
.code { display: grid; gap: 2px; padding: 4px 0; line-height: 1.75; white-space: pre; overflow: hidden; color: #c9d1dd; }
.code .ln { color: #3d4553; display: inline-block; width: 22px; }
.code .k { color: #8fb3ff; } .code .f { color: var(--cyan); } .code .s { color: #a8e6c1; } .code .c { color: #747c89; }
.cursor { display: inline-block; width: 7px; height: 13px; background: var(--steel); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tree { display: grid; gap: 5px; color: var(--text-2); }
.tree .d { color: var(--text); }
.tree .i1 { padding-left: 12px; } .tree .i2 { padding-left: 24px; color: var(--text-3); }
.check { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid rgba(61,220,151,.28); background: rgba(61,220,151,.06); color: var(--green); border-radius: 3px; font-size: 10.5px; }

/* bars / meters */
.meter { height: 4px; background: #161b25; border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w, 60%); background: linear-gradient(90deg, var(--steel), #fff); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.is-in .meter i, .meter.is-in i { transform: scaleX(1); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 80px; }
.bars i { flex: 1; height: var(--h, 50%); background: linear-gradient(180deg, rgba(58,166,226,.7), rgba(19,132,198,.15)); border-top: 1px solid var(--cyan); transform-origin: bottom; transform: scaleY(.1); transition: transform 1.2s var(--ease); }
.is-in .bars i { transform: scaleY(1); }
.bars i:nth-child(2n) { transition-delay: .08s; } .bars i:nth-child(3n) { transition-delay: .16s; }

/* svg flow animation */
.flow { stroke-dasharray: 4 7; animation: flow 1.6s linear infinite; }
.flow--slow { animation-duration: 3s; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.node-pulse { animation: nodePulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes nodePulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }
.spin-slow { animation: spin 18s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.svg-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; fill: var(--text-3); text-transform: uppercase; }
.svg-label--hi { fill: var(--text); font-weight: 600; }

/* phone mockup */
.phone-stage { display: grid; gap: 18px; align-items: center; padding: 18px; }
@media (min-width: 640px) { .phone-stage { grid-template-columns: 1.3fr 0.8fr; } }
.phone { width: 100%; max-width: 220px; margin: 0 auto; aspect-ratio: 9 / 18; border: 1px solid var(--line-3); border-radius: 30px; background: #090c12; padding: 12px; position: relative; box-shadow: 0 40px 70px -30px rgba(11,60,110,.45); }
.phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 60px; height: 16px; border-radius: 10px; background: #000; transform: translateX(-50%); }
.phone__screen { height: 100%; border-radius: 20px; background: linear-gradient(180deg, #0f1420, #070d16); padding: 34px 12px 12px; display: grid; gap: 8px; align-content: start; font-size: 10px; }
.slot { display: flex; justify-content: space-between; align-items: center; padding: 8px 9px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text-2); }
.slot.is-sel { border-color: var(--steel); color: var(--text); background: rgba(143,211,247,.06); }
.phone__cta { margin-top: 6px; padding: 9px; text-align: center; border-radius: 999px; background: var(--steel); color: #04111d; font-weight: 700; letter-spacing: .1em; font-size: 9.5px; text-transform: uppercase; }

/* stage chain (data pipeline / process) */
.chain { display: grid; gap: 10px; }
@media (min-width: 640px) { .chain { grid-template-columns: repeat(5, 1fr); } }
.chain__step { position: relative; border: 1px solid var(--line-2); background: #070d16; padding: 10px; border-radius: 3px; }
.chain__step b { display: block; color: var(--text); font-size: 10.5px; letter-spacing: .06em; margin-top: 4px; }
.chain__step small { color: var(--text-3); font-size: 9.5px; letter-spacing: .12em; }
@media (min-width: 640px) {
  .chain__step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -11px; width: 10px; height: 1px; background: var(--steel); }
}

/* swatches (ui/ux visual) */
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.swatches i { aspect-ratio: 1; border: 1px solid var(--line-3); border-radius: 2px; }
.wire { border: 1px dashed var(--line-3); border-radius: 3px; padding: 8px; display: grid; gap: 6px; }
.wire i { display: block; height: 6px; background: #14202e; border-radius: 1px; }
.wire i.w60 { width: 60%; } .wire i.w40 { width: 40%; } .wire i.hi { background: var(--steel); width: 34%; height: 14px; }
.type-scale { display: grid; gap: 2px; color: var(--text); font-family: var(--font-sans); line-height: 1.1; }

/* log */
.log { display: grid; gap: 6px; font-size: 10.5px; }
.log div { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; padding: 6px 0; border-bottom: 1px solid #12171f; }
.log span:first-child { color: var(--text-3); }

/* ==========================================================================
   Technology stack panels
   ========================================================================== */
.stack-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .stack-grid { grid-template-columns: repeat(4, 1fr); } }
.stack-panel { border: 1px solid var(--line-2); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; display: grid; gap: 16px; align-content: start; transition: border-color .3s, transform .3s var(--ease); }
.stack-panel:hover { border-color: #bfe0f5; transform: translateY(-3px); box-shadow: var(--shadow); }
.stack-panel__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.stack-panel__head h3 { font: 600 12px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.stack-panel__head span { font: 500 10.5px/1 var(--font-mono); color: var(--text-3); letter-spacing: .1em; }
.stack-list { display: grid; gap: 1px; }
.stack-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font: 500 13px/1.3 var(--font-mono); color: var(--text-2); border-bottom: 1px dashed var(--line-2); }
.stack-list li:last-child { border-bottom: 0; }
.stack-list li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-3); transition: background .2s; }
.stack-list li:hover { color: var(--text); }
.stack-list li:hover::after { background: var(--cyan); box-shadow: 0 0 0 3px rgba(33,150,214,.18); }
.stack-panel--wide { grid-column: 1 / -1; }
@media (min-width: 1100px) { .stack-panel--span2 { grid-column: span 2; } }
.stack-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding: 18px 22px; border: 1px solid var(--line-2); background: var(--bg-2); border-radius: var(--radius); }

/* ==========================================================================
   Process timeline
   ========================================================================== */
.timeline { position: relative; display: grid; gap: 0; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 1px; background: var(--line-3); }
.timeline__progress { position: absolute; left: 19px; top: 20px; width: 2px; height: 0; background: var(--brand-grad); transition: height .2s linear; }
.tl-step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 0 0 32px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step__dot { position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-3); border-radius: 50%; background: var(--bg); font: 600 11px/1 var(--font-mono); color: var(--text-2); transition: border-color .4s, color .4s, box-shadow .4s; }
.tl-step.is-in .tl-step__dot { border-color: transparent; background: var(--brand-grad); color: #fff; box-shadow: 0 0 0 5px rgba(33,150,214,.14); }
.tl-step__body { padding-top: 8px; display: grid; gap: 8px; }
.tl-step__body h3 { font-size: 1.1rem; text-transform: none; letter-spacing: -0.01em; font-weight: 700; }
.tl-step__body p { color: var(--text-2); font-size: .93rem; max-width: 40rem; }
.tl-step__out { font: 500 11px/1.5 var(--font-mono); color: var(--text-3); letter-spacing: .06em; }
.tl-step__out b { color: var(--steel); font-weight: 600; }
@media (min-width: 1100px) {
  .timeline { grid-template-columns: repeat(7, 1fr); gap: 0; }
  .timeline::before { left: 0; right: 0; top: 19px; bottom: auto; width: auto; height: 1px; }
  .timeline__progress { left: 0; top: 19px; height: 1px !important; width: var(--p, 0%); transition: width .2s linear; }
  .tl-step { grid-template-columns: 1fr; gap: 18px; padding: 0 18px 0 0; }
  .tl-step__body { padding-top: 0; }
  .tl-step__body h3 { font-size: 1rem; }
  .tl-step__body p { font-size: .86rem; }
}

/* ==========================================================================
   Enquiry form
   ========================================================================== */
.enquiry { display: grid; gap: 48px; }
@media (min-width: 1000px) { .enquiry { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; } }
.enquiry__info { display: grid; gap: 26px; align-content: start; }
.contact-lines { display: grid; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line-2); font: 500 12px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.contact-lines div { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.contact-lines b { color: var(--text); font-weight: 600; text-transform: none; letter-spacing: .02em; }
.form-card { border: 1px solid var(--line-2); background: var(--card); padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 36px 40px; } }
.form-card__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line-2); font: 600 12px/1.4 var(--font-mono); letter-spacing: .16em; color: var(--text); text-transform: uppercase; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field .field__label { font: 500 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.field label .req { color: var(--steel); }
.field label .opt { color: var(--text-3); letter-spacing: .08em; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-3); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font: 400 15px/1.4 var(--font-sans); letter-spacing: 0;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder, .textarea::placeholder { color: #9aabbd; }
.input:hover, .select:hover, .textarea:hover { border-color: #a9bed3; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 4px rgba(33,150,214,.15); background: #fff; }
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2374869b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.select option { background: #fff; color: var(--text); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--red); }
.field__error { min-height: 0; font: 500 11px/1.4 var(--font-mono); color: var(--red); letter-spacing: .04em; }
.field__error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--text-2); line-height: 1.5; cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; border: 1px solid var(--line-3); border-radius: 5px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.consent input:checked { background: var(--steel); border-color: var(--steel); }
.consent input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.field.is-invalid .consent input { border-color: var(--red); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.form-foot .label { max-width: 26rem; line-height: 1.6; }
.form-status { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line-3); border-radius: var(--radius-sm); font: 500 12px/1.6 var(--font-mono); letter-spacing: .02em; color: var(--text-2); }
.form-status[hidden] { display: none; }
.form-status--error { border-color: rgba(255,122,122,.4); background: #fdf0f0; color: #a83232; }
.form-status--warn { border-color: rgba(242,184,75,.35); background: #fff8eb; color: #7a5414; }
.form-status--ok { border-color: rgba(61,220,151,.4); background: #ecfaf3; color: #0b7046; }
.form-status--pending { color: var(--steel); }
.spinner { display: inline-block; width: 12px; height: 12px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 8px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line-2); background: var(--bg-2); padding: 72px 0 32px; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 0.8fr 1.2fr 1fr; gap: 48px; } }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand p { font: 600 12px/1.6 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); max-width: 22rem; }
.footer-col h2 { font: 600 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: .9rem; color: var(--text-2); transition: color .2s; }
.footer-col a:hover { color: var(--steel); }
.footer-col li { font-size: .9rem; color: var(--text-2); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); font: 500 11px/1.5 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--steel); }
@media (max-width: 699px) { .site-footer { padding-bottom: 96px; } }

/* ==========================================================================
   Inner-page components
   ========================================================================== */
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.statement { font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.3; letter-spacing: -0.025em; font-weight: 600; color: var(--text); }
.statement em { font-style: normal; color: var(--steel); }

.vm-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .vm-grid { grid-template-columns: 1fr 1fr; } }
.vm-card { background: linear-gradient(160deg, #f1f8fe, #fff 60%); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 36px 32px; display: grid; gap: 18px; align-content: start; }
.vm-card p { font-size: 1.15rem; line-height: 1.6; color: var(--text); font-weight: 400; }

.obj-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .obj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .obj-grid { grid-template-columns: repeat(4, 1fr); } }
.obj { border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; display: grid; gap: 14px; background: var(--card); min-height: 150px; align-content: space-between; transition: border-color .3s; }
.obj:hover { border-color: #bfe0f5; box-shadow: var(--shadow); }
.obj span { font: 600 11px/1 var(--font-mono); color: var(--steel); letter-spacing: .14em; }
.obj p { color: var(--text); font-size: .98rem; line-height: 1.45; }

.model-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .model-grid { grid-template-columns: repeat(3, 1fr); } }
.model { border: 1px solid var(--line-2); background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; display: grid; align-content: start; }
.model__head { padding: 22px 24px; border-bottom: 1px solid var(--line-2); background: var(--bg-2); display: grid; gap: 10px; }
.model__body { padding: 20px 24px 24px; display: grid; gap: 14px; }
.model__body ul { display: grid; gap: 6px; }
.model__body li { font: 500 12px/1.5 var(--font-mono); color: var(--text-2); display: flex; gap: 8px; }
.model__body li::before { content: "—"; color: var(--text-3); }

.list-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; box-shadow: var(--shadow-sm); font: 500 12px/1.2 var(--font-mono); color: var(--text-2); letter-spacing: .04em; }
.chip b { color: var(--steel); margin-right: 8px; font-weight: 600; }

.roadmap { display: grid; gap: 12px; }
@media (min-width: 900px) { .roadmap { grid-template-columns: repeat(4, 1fr); } }
.road { position: relative; border: 1px solid var(--line-2); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; padding: 24px; display: grid; gap: 12px; align-content: start; }
.road::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-grad); }
.road ul { display: grid; gap: 6px; }
.road li { font-size: .88rem; color: var(--text-2); }

/* Deliverables accordion (service detail pages) */
.deliver { border-top: 1px solid var(--line-2); }
.acc { border-bottom: 1px solid var(--line-2); }
.acc__btn { width: 100%; display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 26px 4px; text-align: left; transition: background .25s; }
.acc__btn:hover { background: linear-gradient(90deg, rgba(33,150,214,.05), transparent 70%); }
.acc__num { font: 500 12px/1 var(--font-mono); color: var(--text-3); letter-spacing: .1em; }
.acc__title { font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.acc__meta { display: inline-flex; align-items: center; gap: 14px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.acc__icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-3); border-radius: 50%; transition: border-color .2s, color .2s; }
.acc__icon svg { width: 12px; height: 12px; }
.acc__icon svg { transition: transform .3s var(--ease); }
.acc__btn[aria-expanded="true"] .acc__icon { border-color: var(--steel); color: var(--steel); }
.acc__btn[aria-expanded="true"] .acc__icon svg { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__list { display: grid; gap: 8px 32px; padding: 0 4px 28px 76px; }
@media (min-width: 700px) { .acc__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 699px) { .acc__list { padding-left: 4px; } .acc__btn { grid-template-columns: 40px 1fr auto; } .acc__meta .hide-sm { display: none; } }
.acc__list li { display: flex; gap: 10px; font: 500 12.5px/1.5 var(--font-mono); color: var(--text-2); }
.acc__list li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--cyan); }

.svc-detail-hero { display: grid; gap: 44px; }
.outputs { display: grid; gap: 12px; }
@media (min-width: 900px) { .outputs { grid-template-columns: 1fr 1fr; gap: 48px; } }
.output-box { border: 1px solid var(--line-2); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; display: grid; gap: 16px; align-content: start; }

.pager { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line-2); }
.pager a { font: 600 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); transition: color .2s; }
.pager a:hover { color: var(--steel); }
.pager a span { display: block; color: var(--text-3); font-weight: 500; font-size: 10px; margin-bottom: 4px; }
.pager .next { text-align: right; }

/* Services page index list */
.svc-index { display: grid; gap: 14px; }
@media (min-width: 700px) { .svc-index { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc-index { grid-template-columns: repeat(4, 1fr); } }
.svc-index a { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; display: grid; gap: 28px; transition: background .25s, transform .25s var(--ease), box-shadow .25s; }
.svc-index a:hover { background: var(--card-3); transform: translateY(-3px); box-shadow: var(--shadow); }
.svc-index b { font-size: 1rem; line-height: 1.3; font-weight: 600; }
.svc-index span { font: 600 11px/1 var(--font-mono); color: var(--steel); letter-spacing: .14em; }

.division { padding: 64px 0; border-top: 1px solid var(--line-2); display: grid; gap: 32px; }
@media (min-width: 1000px) { .division { grid-template-columns: 0.75fr 1.25fr; gap: 64px; } }
.division__aside { display: grid; gap: 18px; align-content: start; }
@media (min-width: 1000px) { .division__aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.division__subs { display: grid; gap: 12px; }
@media (min-width: 700px) { .division__subs { grid-template-columns: 1fr 1fr; } }
.sub { border: 1px solid var(--line-2); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px; display: grid; gap: 12px; align-content: start; }
.sub h3, .sub h4 { font: 600 12px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.sub h3 span, .sub h4 span { color: var(--steel); margin-right: 8px; }
.sub ul { display: grid; gap: 4px; }
.sub li { font-size: .86rem; color: var(--text-2); line-height: 1.5; padding-left: 14px; position: relative; }
.sub li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 1px; background: var(--text-3); }

/* Projects */
.proj-grid { display: grid; gap: 12px; }
@media (min-width: 800px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } }
.proj { border: 1px solid var(--line-2); background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: border-color .3s; }
.proj:hover { border-color: #bfe0f5; box-shadow: var(--shadow); transform: translateY(-3px); }
.proj__viz { position: relative; height: 180px; border-bottom: 1px dashed var(--line-3); background: #03060b; overflow: hidden; }
.proj__viz svg { width: 100%; height: 100%; }
.proj__flag { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border-radius: 999px; background: rgba(242,184,75,.14); border: 1px solid rgba(242,184,75,.45); font: 600 9.5px/1 var(--font-mono); letter-spacing: .16em; color: #f2b84b; text-transform: uppercase; }
.proj__body { padding: 22px; display: grid; gap: 14px; align-content: start; }
.proj__body p { color: var(--text-2); font-size: .92rem; }

/* CTA band */
.cta-band { display: grid; gap: 28px; align-items: center; padding: 56px; border: 0; border-radius: var(--radius-lg); background: radial-gradient(60% 120% at 100% 0%, rgba(143,211,247,.55), transparent 60%), linear-gradient(120deg, #0b76b4, #1b8fd0 60%, #3aa6e2); color: #fff; position: relative; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(11,118,180,.7); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }
@media (max-width: 640px) { .cta-band { padding: 28px 22px; } }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Technology mapping table */
.tech-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.tech-table th { text-align: left; padding: 14px 18px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line-2); }
.tech-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .94rem; }
.tech-table tr:last-child td { border-bottom: 0; }
.tech-table td.mono { color: var(--steel); font-size: 12px; width: 60px; }
.tech-table tr:hover td { background: rgba(33,150,214,.05); }
code.mono { font-size: .85em; color: var(--steel); }
.nav__item.is-dimmed > .nav__link[aria-current="page"] { color: var(--text-2); }
.nav__item.is-dimmed > .nav__link[aria-current="page"]::after { transform: scaleX(0); }
[data-three] canvas { display: block; width: 100% !important; height: 100% !important; }
.tl-step, .tl-step__body { align-content: start; }
.field label.consent { font: 400 .88rem/1.55 var(--font-sans); text-transform: none; letter-spacing: 0; color: var(--text-2); }

/* Prevent wide technical content (code, diagrams) from forcing grid overflow on small screens */
.deck-panel > *, .svc-detail-hero > *, .viz-cols > *, .enquiry > *, .split > *, .outputs > *, .phone-stage > * { min-width: 0; }
.code { overflow-x: auto; scrollbar-width: none; }
.code::-webkit-scrollbar { display: none; }
@media (max-width: 480px) { .viz { font-size: 10.5px; } .spec { grid-template-columns: 1fr; } }
@media (min-width: 1100px) { .svc-detail-hero { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 56px; } }

/* ==========================================================================
   Light theme — product mockups stay dark (code windows, devices, phones)
   for contrast, like a startup product shot on a light marketing page.
   ========================================================================== */
.viz, .device, .phone, .proj__viz {
  --text: #eef4fa; --text-2: #a3b3c6; --text-3: #788799;
  --line: #142030; --line-2: #1d2b3d; --line-3: #2a3a50;
  --card: #0a111b; --card-2: #0e1622; --card-3: #131d2c;
  --bg: #04070c; --bg-2: #0a111b;
  --steel: #8fd3f7; --steel-2: #c4e9fc; --cyan: #3aa6e2; --green: #3ddc97; --amber: #f2b84b;
  color-scheme: dark;
}
.viz { border-radius: 12px; }
.viz--page { box-shadow: var(--shadow-lg); }
.proj__viz { border-bottom: 0; }

/* CTA band sits on the brand gradient */
.cta-band, .cta-band .h2, .cta-band .h3, .cta-band .lead, .cta-band .eyebrow, .cta-band p { color: #fff; }
.cta-band .lead, .cta-band p { color: rgba(255,255,255,.86); }
.cta-band .eyebrow .dim, .cta-band .label { color: rgba(255,255,255,.7); }
.cta-band .accent { -webkit-text-fill-color: #fff; background: none; color: #fff; }
.cta-band .btn--primary { background: #fff; color: var(--blue); box-shadow: 0 12px 28px -12px rgba(3,30,60,.5); }
.cta-band .btn--primary:hover { background: #f0f8fe; }
.cta-band .btn:not(.btn--primary) { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); color: #fff; box-shadow: none; }

/* Section rhythm */
.section { border-top: 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), #fff); }

/* Terms & Conditions page */
.terms { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .terms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .terms { grid-template-columns: repeat(3, 1fr); } }
.terms__note, .terms__contact { grid-column: 1 / -1; }
.term { display: grid; grid-template-columns: 56px 1fr; height: 100%; gap: 8px 20px; align-items: start; padding: 30px 34px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.term:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #bfe0f5; }
.term__num { font: 800 1.6rem/1.15 var(--font-sans); letter-spacing: -0.02em; background: var(--brand-grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--steel); }
.term__title { font-size: 1.25rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--text); margin-bottom: 8px; }
.term p { color: var(--text-2); font-size: 1rem; line-height: 1.65; }
.terms__note { margin-top: 8px; padding: 22px 28px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--bg-2); color: var(--text-2); font-size: .95rem; line-height: 1.6; }
.terms__contact { color: var(--text-2); font-size: .95rem; margin-top: 4px; }
@media (max-width: 560px) { .term { grid-template-columns: 1fr; padding: 24px 22px; } }

/* Phones: lighter wash behind the hero text so the orbit rings stay visible */
@media (max-width: 999px) {
  .hero__vignette { background: radial-gradient(ellipse 80% 45% at 20% 50%, rgba(255,255,255,.55), transparent 75%), linear-gradient(to bottom, rgba(255,255,255,0) 80%, var(--bg) 100%); }
}

/* Performance: hero content paints immediately (it is the Largest Contentful Paint) */
.js .hero .reveal, .js .page-hero .reveal { opacity: 1; transform: none; transition: none; }
/* 3D scenes load after the page is ready, then fade in */
[data-three] { transition: opacity 1.1s ease; }
[data-three]:not(.is-live) { opacity: 0; }
/* Performance: skip layout/paint of off-screen sections until they scroll near the viewport */
.section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
/* Accessible tap targets for the slide dots (24x24 hit area, same thin bar look) */
.deck-dots { gap: 2px; }
.deck-dots button { position: relative; width: 24px; height: 24px; background: none; border-radius: 6px; transition: width .3s var(--ease); }
.deck-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 4px; border-radius: 4px; background: var(--line-3); transform: translate(-50%, -50%); transition: width .3s var(--ease), background .3s; }
.deck-dots button[aria-current="true"] { width: 46px; background: none; }
.deck-dots button[aria-current="true"]::before { width: 40px; background: var(--brand-grad); }

/* Animated orbit poster: instant, lightweight motion shown until the full 3D scene
   has loaded, then it cross-fades to the WebGL version. Each part is its own layer
   rotated with CSS transforms, so the animation runs on the GPU compositor. */
.orbit-poster { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; container-type: size; transition: opacity 1.1s ease, visibility 0s linear 1.2s; }
.page-hero .orbit-poster { opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 62%); mask-image: linear-gradient(90deg, transparent 18%, #000 62%); }
[data-three].is-live ~ .orbit-poster { opacity: 0; visibility: hidden; }
[data-three].is-live ~ .orbit-poster .op-layer { animation-play-state: paused; }
.op-root { --u: min(100cqh / 68, 100cqw / 120); position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 84); height: calc(var(--u) * 84);
  transform: translate(-50%, -50%) translate(calc(var(--u) * 20), calc(var(--u) * -2)); }
.page-hero .op-root { transform: translate(-50%, -50%) translate(calc(var(--u) * 30), 0) scale(.82); }
@media (max-width: 999px) {
  .hero .op-root { transform: translate(-50%, -50%) translate(0, calc(var(--u) * -4)) scale(1.65); }
  .page-hero .op-root { transform: translate(-50%, -50%) scale(1.6); }
  .page-hero .orbit-poster { opacity: .6; -webkit-mask-image: none; mask-image: none; }
}
.op-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.op-ring ellipse { fill: none; stroke: url(#opSpectrum); stroke-width: .16; opacity: .7; }
.op-ring--2 ellipse { opacity: .6; }
.op-ring--3 ellipse { opacity: .5; }
.op-sphere circle { fill: rgba(207, 232, 248, .35); stroke: none; }
.op-sphere path { fill: none; stroke: #2196d6; stroke-width: .1; opacity: .55; }
.op-sphere .op-back { opacity: .2; }
.op-dots { fill: #0b76b4; opacity: .5; }
.op-ring--1 { animation: opSpin1 24s linear infinite; }
.op-ring--2 { animation: opSpin2 32s linear infinite; }
.op-ring--3 { animation: opSpin3 44s linear infinite; }
.op-dots { animation: opSpinDots 90s linear infinite; }
.op-sphere { animation: opSphere 18s ease-in-out infinite; }
@keyframes opSpin1 { from { transform: rotate(24deg); } to { transform: rotate(384deg); } }
@keyframes opSpin2 { from { transform: rotate(-28deg); } to { transform: rotate(-388deg); } }
@keyframes opSpin3 { from { transform: rotate(63deg); } to { transform: rotate(423deg); } }
@keyframes opSpinDots { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes opSphere { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(18deg) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .op-layer { animation: none; } }

/* FAQ answers (reuse the deliverables accordion) */
.faq__a { padding: 0 4px 28px 76px; max-width: 72ch; color: var(--text-2); font-size: 1rem; line-height: 1.7; }
@media (max-width: 699px) { .faq__a { padding-left: 4px; } }
