/* =====================================================================
   ThinkBuild Labs — Design System
   Swiss/Helvetica neutral type · electric-blue accent · glass + grid
   ===================================================================== */

/* ---- Tokens ---------------------------------------------------------- */
:root {
  /* Type */
  --font-sans: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  /* Ink */
  --ink:   #0a0e14;
  --ink-2: #3d4751;
  --ink-3: #6e7884;
  --ink-4: #99a1ab;

  /* Surfaces */
  --bg:        #ffffff;
  --bg-soft:   #f3f5f8;
  --bg-softer: #fafbfc;
  --line:      rgba(12, 22, 33, 0.09);
  --line-2:    rgba(12, 22, 33, 0.05);

  /* Accent — royal blue (tweakable) */
  --accent:      #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-line: rgba(37, 99, 235, 0.22);
  --accent-ink:  #fff; /* white text/icons read AA on this blue (~5.2:1) */

  /* Glass */
  --glass-bg:     rgba(255, 255, 255, 0.62);
  --glass-bg-2:   rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-blur:   blur(18px) saturate(150%);
  --shadow-sm: 0 1px 2px rgba(13, 25, 56, 0.06), 0 1px 1px rgba(13, 25, 56, 0.04);
  --shadow:    0 8px 28px rgba(13, 28, 66, 0.08), 0 1px 2px rgba(13, 25, 56, 0.05);
  --shadow-lg: 0 24px 70px rgba(13, 28, 66, 0.13), 0 2px 6px rgba(13, 25, 56, 0.05);
  --shadow-glow: 0 30px 90px rgba(37, 99, 235, 0.16);

  /* Geometry */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --maxw: 1200px;
  --gutter: 32px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink, #fff); }

/* ---- Layout ---------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: clamp(72px, 11vw, 140px); }
.section-soft { background: var(--bg-soft); }

/* ---- Eyebrow / labels ------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.eyebrow.muted { color: var(--ink-3); }
.eyebrow.muted::before { background: var(--ink-3); box-shadow: 0 0 0 4px rgba(117,123,132,.1); }

/* ---- Typography scale ------------------------------------------------ */
.display {
  font-size: clamp(2.55rem, 6.4vw, 5rem);
  line-height: 1.01;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  font-weight: 600;
}
.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.muted { color: var(--ink-3); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { margin-top: 16px; }
.section-head .lede { margin-top: 18px; }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  --pad-y: 14px; --pad-x: 22px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink, #fff);
  box-shadow: 0 8px 22px rgba(37,99,235,.28), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37,99,235,.34), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-ghost {
  background: rgba(255,255,255,.6);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { --pad-y: 10px; --pad-x: 16px; font-size: 0.9rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Header / nav ---------------------------------------------------- */
.nav-shell {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: 14px;
  transition: padding .4s var(--ease);
}
.nav {
  width: min(calc(100% - 32px), var(--maxw));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease),
              box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav-shell.scrolled .nav {
  background: rgba(255,255,255,.72);
  border-color: var(--glass-border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.02em; font-size: 1.02rem; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand-logo { width: auto; height: 34px; display: block; transition: height .4s var(--ease); }
.nav-shell.scrolled .brand-logo { height: 30px; }
.footer .brand-logo, .brand-logo-light { height: 40px; }
.brand b { font-weight: 700; }
.brand span { color: var(--ink-3); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: 0.94rem; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(10,13,20,.04); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---- Background grid / glow ------------------------------------------ */
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
}
.glow {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(60px); opacity: .8;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding-top: clamp(130px, 17vh, 200px); padding-bottom: clamp(64px, 9vw, 120px); overflow: hidden; }
.hero .grid-bg { background-size: 56px 56px; }
.hero-glow-a { width: 620px; height: 620px; top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(37,99,235,.20), transparent 62%); }
.hero-glow-b { width: 520px; height: 520px; bottom: -260px; left: -160px;
  background: radial-gradient(circle, rgba(96,165,250,.16), transparent 60%); }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin-top: 22px; }
.hero h1 .accent { color: var(--accent-deep); }
.hero .lede { margin-top: 24px; max-width: 540px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-meta .stat { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .stat b { font-size: 1.45rem; letter-spacing: -0.03em; }
.hero-meta .stat span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hero-meta .divider { width: 1px; height: 34px; background: var(--line); }

/* ---- Hero visual: layered glass panels ------------------------------- */
.hero-stage {
  position: relative; height: 100%; min-height: 460px;
  perspective: 1400px;
  --px: 0; --py: 0;
}
.hero-stage .ring-orbit { display: none; }

.panel {
  position: absolute;
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.panel-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.panel-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.panel-head .dot.live { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.panel-head .ttl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-left: 2px; }

/* back panel: architecture diagram */
.panel-arch {
  width: 78%; height: 70%; left: 0; top: 6%;
  transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -12px), -60px) rotateY(8deg) rotateX(3deg);
}
.panel-arch .arch-body { padding: 8px 14px 16px; }
.arch-svg { width: 100%; height: auto; }
.arch-svg .node { fill: #fff; stroke: var(--accent); stroke-width: 1.4; }
.arch-svg .node-core { fill: var(--accent); }
.arch-svg .edge { stroke: var(--accent-line); stroke-width: 1.4; fill: none; }
.arch-svg .edge-live { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 4 6; }
.arch-svg .glyph { fill: var(--ink-3); }
.arch-svg text { font-family: var(--font-mono); font-size: 7.5px; fill: var(--ink-3); letter-spacing: .06em; }

/* mid panel: metrics / code */
.panel-metrics {
  width: 46%; right: 2%; top: -2%;
  transform: translate3d(calc(var(--px) * 18px), calc(var(--py) * -16px), 20px) rotateY(-6deg);
}
.metrics-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.metric-row { display: flex; flex-direction: column; gap: 6px; }
.metric-row .ml { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: .04em; }
.metric-row .ml b { color: var(--ink); font-weight: 600; }
.bar { height: 6px; border-radius: 999px; background: rgba(10,13,20,.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #60a5fa); width: var(--w, 60%); }

/* front panel: AI workflow node */
.panel-flow {
  width: 50%; right: 6%; bottom: 4%;
  transform: translate3d(calc(var(--px) * 26px), calc(var(--py) * 20px), 70px) rotateY(-4deg) rotateX(-2deg);
}
.flow-body { padding: 14px 16px 16px; }
.flow-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.flow-row + .flow-row { border-top: 1px solid var(--line-2); }
.flow-ico { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); }
.flow-ico i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.flow-txt b { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; }
.flow-txt span { font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); }
.flow-check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink, #fff); font-size: 10px; }

/* floating chip */
.float-chip {
  position: absolute; left: -4%; bottom: 16%; z-index: 5;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 11px; border-radius: 999px;
  background: rgba(255,255,255,.82); border: 1px solid var(--glass-border);
  box-shadow: var(--shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  font-size: 12.5px; font-weight: 600;
  transform: translate3d(calc(var(--px) * -22px), calc(var(--py) * 16px), 90px);
}
.float-chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.4); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(22,163,74,.4)} 70%{box-shadow:0 0 0 9px rgba(22,163,74,0)} 100%{box-shadow:0 0 0 0 rgba(22,163,74,0)} }

@keyframes floaty { 0%,100%{ translate: 0 0 } 50%{ translate: 0 -10px } }
.panel-arch    { animation: floaty 9s var(--ease) infinite; }
.panel-metrics { animation: floaty 7.5s var(--ease) infinite .4s; }
.panel-flow    { animation: floaty 8.2s var(--ease) infinite .9s; }
@media (prefers-reduced-motion: reduce) { .panel, .float-chip { animation: none !important; } }

/* ---- Hero variant B: orbital grid ------------------------------------ */
.hero-stage[data-hero="orbit"] .panel,
.hero-stage[data-hero="orbit"] .float-chip { display: none; }
.hero-stage[data-hero="orbit"] .ring-orbit { display: block; }
.ring-orbit { position: absolute; inset: 0; display: grid; place-items: center; }
.ring-orbit svg { width: min(100%, 520px); height: auto; overflow: visible;
  transform: translate3d(calc(var(--px) * 10px), calc(var(--py) * 10px), 0); transition: transform .5s var(--ease); }
.ring-orbit .ring { fill: none; stroke: var(--accent-line); stroke-width: 1; }
.ring-orbit .ring.dash { stroke-dasharray: 3 7; stroke: rgba(37,99,235,.32); }
.ring-orbit .spin { transform-origin: 50% 50%; }
.ring-orbit .spin-a { animation: spin 26s linear infinite; }
.ring-orbit .spin-b { animation: spin 38s linear infinite reverse; }
.ring-orbit .spin-c { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring-orbit .sat { fill: var(--accent); }
.ring-orbit .sat-o { fill: #fff; stroke: var(--accent); stroke-width: 1.4; }
.ring-orbit .core { fill: var(--accent); }
.ring-orbit .core-ring { fill: rgba(37,99,235,.1); stroke: var(--accent); stroke-width: 1.2; }
.ring-orbit .gtxt { font-family: var(--font-mono); font-size: 8px; fill: var(--ink-3); letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) { .ring-orbit .spin-a,.ring-orbit .spin-b,.ring-orbit .spin-c { animation: none; } }

/* ---- Logo strip ------------------------------------------------------ */
.logo-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip .wrap { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; padding-block: 26px; }
.logo-strip .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.logo-strip .marks { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; flex: 1; }
.logo-strip .marks span { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-4); }

/* =====================================================================
   POSITIONING / cards
   ===================================================================== */
.posit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 28px; border-radius: var(--r-lg);
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 180px at var(--mx, 50%) 0%, var(--accent-soft), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.card:hover::after { opacity: 1; }
.card .idx { font-family: var(--font-mono); font-size: 11px; color: var(--accent-deep); letter-spacing: .08em; }
.card .h3 { margin-top: 16px; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 0.97rem; }
.card-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--accent-soft), rgba(37,99,235,.02));
  border: 1px solid var(--accent-line); color: var(--accent-deep);
  margin-bottom: 18px;
}
.card-ico svg { width: 22px; height: 22px; }

/* =====================================================================
   SERVICES
   ===================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.service {
  position: relative; background: var(--bg); padding: 32px 28px 36px; min-height: 230px;
  display: flex; flex-direction: column;
  transition: background .35s var(--ease);
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease);
}
.service:hover { background: var(--bg-softer); }
.service:hover::before { transform: scaleY(1); }
.service .num { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-4); letter-spacing: .1em; }
.service .card-ico { margin-top: 18px; }
.service h3 { margin-top: auto; padding-top: 18px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.service p { margin-top: 9px; color: var(--ink-2); font-size: 0.94rem; }
.service .go { margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem;
  font-weight: 600; color: var(--accent-deep); font-family: var(--font-mono); letter-spacing: .04em;
  opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.service:hover .go { opacity: 1; transform: translateY(0); }

/* =====================================================================
   PROCESS
   ===================================================================== */
.process { position: relative; }
.process-track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 10px; }
.process-line { position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); overflow: hidden; }
.process-line i { display: block; height: 100%; width: 100%; transform-origin: left;
  background: linear-gradient(90deg, var(--accent), #60a5fa); transform: scaleX(var(--p, 0)); transition: transform 1.1s var(--ease); }
.step { position: relative; }
.step .node {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1.5px solid var(--line); color: var(--ink-3);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; position: relative; z-index: 2;
  transition: border-color .4s var(--ease), color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.step.on .node { border-color: var(--accent); color: var(--accent-ink, #fff); background: var(--accent); box-shadow: 0 8px 20px rgba(37,99,235,.3); }
.step h3 { margin-top: 22px; font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: 8px; font-size: 0.92rem; color: var(--ink-2); max-width: 200px; }

/* =====================================================================
   CAPABILITIES
   ===================================================================== */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap {
  position: relative; padding: 26px; border-radius: var(--r); background: var(--bg-softer);
  border: 1px solid var(--line); display: flex; align-items: flex-start; gap: 16px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.cap:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow); border-color: var(--accent-line); }
.cap .dotmark { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--accent-deep); box-shadow: var(--shadow-sm); }
.cap .dotmark svg { width: 20px; height: 20px; }
.cap b { font-size: 1.04rem; font-weight: 600; letter-spacing: -0.02em; }
.cap p { margin-top: 6px; font-size: 0.92rem; color: var(--ink-2); }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: 56px; align-items: center; }
.about-copy .h2 { margin-top: 16px; }
.about-copy .lede { margin-top: 22px; }
.about-copy .body { margin-top: 18px; color: var(--ink-2); font-size: 1.02rem; max-width: 520px; }
.about-points { margin-top: 30px; display: grid; gap: 14px; }
.about-points li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--ink-2); }
.about-points .tick { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--accent-soft);
  border: 1px solid var(--accent-line); color: var(--accent-deep); display: grid; place-items: center; font-size: 11px; margin-top: 1px; }

.about-visual { position: relative; }
.placeholder {
  position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden;
  background-color: var(--bg-soft);
  background-image: repeating-linear-gradient(135deg, rgba(37,99,235,.06) 0 1px, transparent 1px 11px);
}
.placeholder .ph-label {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-3);
  background: rgba(255,255,255,.8); padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line);
}
.about-visual .placeholder { aspect-ratio: 4/5; }

/* =====================================================================
   FIGURES — generated, on-brand cover graphics (tweak-reactive)
   ===================================================================== */
.figure {
  position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(120% 95% at 82% 6%, var(--accent-soft), transparent 58%),
    linear-gradient(155deg, var(--bg-softer), var(--bg-soft));
}
.figure::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(120% 95% at 50% 0%, #000 42%, transparent 88%);
  mask-image: radial-gradient(120% 95% at 50% 0%, #000 42%, transparent 88%);
}
.figure svg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.fig-tall { aspect-ratio: 4/5; }
.fig-thumb { aspect-ratio: 16/10; }
.figure .badge {
  position: absolute; left: 14px; top: 14px; z-index: 3;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep); background: rgba(255,255,255,.82); border: 1px solid var(--accent-line);
  padding: 5px 9px; border-radius: 999px; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
/* shared SVG class palette */
.fig .pf { fill: #fff; stroke: var(--line); stroke-width: 1; }
.fig .s  { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fig .sd { fill: none; stroke: var(--accent-line); stroke-width: 1.4; }
.fig .sl { fill: none; stroke: var(--line); stroke-width: 1.4; }
.fig .f  { fill: var(--accent); }
.fig .fs { fill: var(--accent-soft); }
.fig .fl { fill: var(--accent-line); }
.fig .nk { fill: rgba(12,22,33,.10); }
.fig .nk2{ fill: rgba(12,22,33,.06); }
.fig text { font-family: var(--font-mono); fill: var(--ink-3); letter-spacing: .06em; }
.fig .dash { stroke-dasharray: 3 5; }
.fig .live { animation: figDash 1.6s linear infinite; }
@keyframes figDash { to { stroke-dashoffset: -16; } }
html.no-anim .fig .live { animation: none; }
.about-stat {
  position: absolute; left: -24px; bottom: 24px; z-index: 4; padding: 18px 22px; border-radius: var(--r);
  background: rgba(255,255,255,.92); border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.about-stat b { font-size: 1.9rem; letter-spacing: -0.03em; display: block; }
.about-stat span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* =====================================================================
   CASE STUDIES (placeholder)
   ===================================================================== */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden;
  background: var(--bg-softer); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case .ph-thumb { aspect-ratio: 16/10; }
.case .case-body { padding: 20px 22px 24px; }
.case .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); }
.case h3 { margin-top: 10px; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }
.case .soon { margin-top: 14px; display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem;
  font-family: var(--font-mono); color: var(--ink-4); letter-spacing: .04em; }
.case .soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }

/* =====================================================================
   CTA
   ===================================================================== */
.cta { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 88px); }
.cta-card {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(150deg, #0a1326, #122a52 55%, #2563eb);
  color: #fff; padding: clamp(40px, 5vw, 60px) clamp(28px, 5vw, 64px); text-align: center;
  box-shadow: var(--shadow-glow);
}
.cta-card .grid-bg {
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(110% 90% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(110% 90% at 50% 0%, #000 30%, transparent 75%);
}
.cta-card .glow { width: 480px; height: 480px; top: -200px; left: 50%; translate: -50% 0;
  background: radial-gradient(circle, rgba(96,165,250,.4), transparent 60%); }
.cta-card > * { position: relative; z-index: 2; }
.cta-card > .grid-bg, .cta-card > .glow { position: absolute; }
.cta-card .eyebrow { color: #7fb4d8; }
.cta-card .eyebrow::before { background: #60a5fa; box-shadow: 0 0 0 4px rgba(96,165,250,.18); }
.cta-card .h2 { margin: 18px auto 0; max-width: 760px; }
.cta-card .lede { margin: 18px auto 0; max-width: 560px; color: rgba(255,255,255,.72); }
.cta-card .btn-row { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-card .btn-light { background: #fff; color: #04111c; }
.cta-card .btn-light:hover { background: #e2eef5; }
.cta-card .btn-outline { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.cta-card .btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info .h2 { margin-top: 16px; }
.contact-info .lede { margin-top: 18px; max-width: 420px; }
.contact-list { margin-top: 32px; display: grid; gap: 6px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 14px; padding: 16px 4px; border-top: 1px solid var(--line); }
.contact-list .ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--accent-deep); }
.contact-list .ico svg { width: 18px; height: 18px; }
.contact-list .ct-l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.contact-list .ct-v { font-size: 1rem; font-weight: 500; }
.contact-list a:hover .ct-v { color: var(--accent-deep); }

.form-card {
  padding: clamp(28px, 4vw, 40px); border-radius: var(--r-lg);
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
.field label .req { color: var(--accent-deep); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.97rem; color: var(--ink);
  padding: 13px 14px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: rgba(255,255,255,.7); outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,.1); }
.field .err { font-size: 0.78rem; color: #dc2626; display: none; }
.field.invalid .err { display: block; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.form-foot .note { font-size: 0.82rem; color: var(--ink-3); }
.form-success {
  display: none; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r);
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-deep);
  font-weight: 500; margin-bottom: 20px;
}
.form-success.show { display: flex; }
.form-success .check { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-ink, #fff); display: grid; place-items: center; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: #0a0d14; color: rgba(255,255,255,.7); padding-block: 72px 36px; position: relative; overflow: hidden; }
.footer .grid-bg { background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(100% 100% at 0% 0%, #000, transparent 70%);
    mask-image: radial-gradient(100% 100% at 0% 0%, #000, transparent 70%); }
.footer-top { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { color: #fff; }
.footer .brand span { color: rgba(255,255,255,.5); }
.footer-blurb { margin-top: 18px; max-width: 300px; font-size: 0.95rem; color: rgba(255,255,255,.55); }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer-col a { display: block; padding: 7px 0; color: rgba(255,255,255,.7); font-size: 0.96rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; flex-wrap: wrap; }
.footer-bottom .meta { font-size: 0.86rem; color: rgba(255,255,255,.4); }
.footer-bottom .ssl { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.5); }
.footer-bottom .ssl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.18); }

/* =====================================================================
   REVEAL animations
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}
/* Frozen-compositor fallback: if CSS transitions don't advance (offscreen /
   embedded render contexts), reveal everything instantly so nothing stays hidden. */
html.no-anim *, html.no-anim *::before, html.no-anim *::after {
  transition: none !important;
  animation: none !important;
}
html.no-anim .reveal { opacity: 1 !important; transform: none !important; }
html.no-anim .process-line i { transform: scaleX(1) !important; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stage { min-height: 420px; order: 2; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .posit-grid, .cap-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  :root { --gutter: 22px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255,255,255,.7); border: 1px solid var(--line); }
  .nav-cta .btn:not(.nav-toggle) { display: none; }
  .process-track { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
  .process-line { display: none; }
}
@media (max-width: 600px) {
  .posit-grid, .cap-grid, .cases-grid, .services-grid, .form-row, .process-track { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px; }
  .hero-meta .divider { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .about-stat { left: 12px; bottom: 16px; padding: 14px 18px; }
  .about-stat b { font-size: 1.6rem; }

  /* Hero visual: flatten the 3D layered panels into a clean, readable stack */
  .hero-stage { min-height: 340px; perspective: none; }
  .panel { transform: none !important; animation: none !important; }
  .panel-arch    { width: 86%; left: 0; top: 0; }
  .panel-metrics { width: 60%; right: 0; top: 22%; }
  .panel-flow    { width: 68%; right: 3%; bottom: 0; }
  .float-chip { display: none; }
  .process-track { gap: 26px; }
}

@media (max-width: 430px) {
  :root { --gutter: 18px; }
  .display { font-size: clamp(2rem, 8.6vw, 2.7rem); line-height: 1.04; }
  .nav { padding: 8px 8px 8px 14px; gap: 12px; }
  .brand span { font-size: 0.95rem; }
  .brand-logo { height: 28px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-meta { gap: 14px 22px; }
  .hero-meta .stat b { font-size: 1.3rem; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .form-foot .note { text-align: center; }
  .cta-card .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 6px; padding: 96px 28px 28px;
  opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 22px; }

/* ============================ FAQ ============================ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item[open] { border-color: var(--accent-line); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 18px; line-height: 1;
  background: var(--accent-soft); color: var(--accent-deep); border: 1px solid var(--accent-line);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { content: "–"; transform: rotate(180deg); }
.faq-item summary:hover { color: var(--accent-deep); }
.faq-a { padding: 0 22px 20px; color: var(--ink-2); line-height: 1.65; max-width: 68ch; }
.faq-a p { margin: 0; }
.faq-a a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) {
  .faq-item summary { padding: 16px 16px; font-size: 0.98rem; }
  .faq-a { padding: 0 16px 16px; }
}
