/* =================================================================
   Pragmatech — High-Fidelity Website
   Tokens: see ../colors_and_type.css. Styles below extend tokens
   with full marketing-site styles.
   ================================================================= */
@import url('./colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--pg-bg);
  color: var(--pg-fg-2);
  font-family: var(--pg-font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(59,130,246,0.35); color: #fff; }

/* ---------------- Global ambient background ---------------- */
.scene-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: var(--pg-bg); }
.scene-bg::before {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask: radial-gradient(70% 80% at 50% 30%, black, transparent);
  -webkit-mask: radial-gradient(70% 80% at 50% 30%, black, transparent);
}
.scene-bg__halos {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.scene-bg__halos::before, .scene-bg__halos::after {
  content:""; position:absolute; border-radius: 50%; filter: blur(80px);
}
.scene-bg__halos::before { width: 50vw; height: 50vw; left:-12vw; top:-10vw; background: radial-gradient(circle, rgba(59,130,246,0.28), transparent 60%); }
.scene-bg__halos::after  { width: 60vw; height: 60vw; right:-18vw; top: 30vh; background: radial-gradient(circle, rgba(34,211,238,0.18), transparent 60%); }
.scene-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.scene-particles span { position:absolute; width: 2px; height: 2px; border-radius: 50%; background: rgba(255,255,255,0.55); box-shadow: 0 0 8px rgba(255,255,255,0.55); animation: float 18s linear infinite; opacity: 0.5; }
.scene-particles span:nth-child(1)  { left: 8%;  top: 12%; animation-duration: 22s; }
.scene-particles span:nth-child(2)  { left: 22%; top: 78%; animation-duration: 26s; }
.scene-particles span:nth-child(3)  { left: 42%; top: 32%; animation-duration: 19s; }
.scene-particles span:nth-child(4)  { left: 58%; top: 65%; animation-duration: 24s; }
.scene-particles span:nth-child(5)  { left: 74%; top: 18%; animation-duration: 28s; }
.scene-particles span:nth-child(6)  { left: 88%; top: 82%; animation-duration: 21s; }
.scene-particles span:nth-child(7)  { left: 12%; top: 48%; animation-duration: 30s; }
.scene-particles span:nth-child(8)  { left: 92%; top: 38%; animation-duration: 17s; }
@keyframes float { 0% { transform: translateY(0); opacity: 0.3; } 50% { opacity: 0.7; } 100% { transform: translateY(-90px); opacity: 0; } }

main { position: relative; z-index: 1; }

/* ---------------- Layout primitives ---------------- */
.container { max-width: var(--pg-max); margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 920px; }
.section { padding: 112px 0; position: relative; }
.section--sm { padding: 72px 0; }
.section--lg { padding: 144px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--pg-fg-3);
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
}
.eyebrow .num { color: var(--pg-cyan-ink); font-family: var(--pg-font-mono); }
.eyebrow .bar { display:inline-block; width: 28px; height: 1px; background: rgba(255,255,255,0.20); }

.section-head { max-width: 800px; }
.section-head h2 {
  font-size: clamp(34px, 3.6vw, 52px); font-weight: 600;
  color: var(--pg-fg-1); margin: 18px 0 16px;
  letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance;
}
.section-head h2 em { font-style: normal; background: var(--pg-gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head p {
  font-size: 17px; color: var(--pg-fg-3);
  max-width: 64ch; line-height: 1.55; margin: 0;
}
.section-head--center { margin: 0 auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center p { margin: 0 auto; }

/* ---------------- Brand pill ---------------- */
.brand-pill {
  position: fixed; top: 30px; left: 30px; z-index: 60;
  display:flex; align-items:center; gap: 10px;
  padding: 6px 16px 6px 6px;
  /* Glass — same recipe as the nav pill (see there for the contrast reasoning). */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 60%),
    rgba(10,15,34,0.40);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(1.4) brightness(0.60);
  -webkit-backdrop-filter: blur(14px) saturate(1.4) brightness(0.60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 12px 32px -14px rgba(0,0,0,0.6);
  text-decoration: none;
  transition: all 320ms var(--pg-ease);
}
.brand-pill:hover { border-color: rgba(255,255,255,0.22); }
.brand-pill img { width: 22px; height: 22px; filter: drop-shadow(0 0 8px rgba(77,172,191,0.6)); }
.brand-pill strong { color: var(--pg-fg-1); font-size: 12px; letter-spacing: 0.20em; font-weight: 600; }

/* ---------------- Menu toggle (top right) ---------------- */
.menu-toggle {
  position: fixed; top: 30px; right: 30px; z-index: 60;
  width: 44px; height: 44px; padding: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 60%),
    rgba(10,15,34,0.40);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(1.4) brightness(0.60);
  -webkit-backdrop-filter: blur(14px) saturate(1.4) brightness(0.60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 12px 32px -14px rgba(0,0,0,0.6);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--pg-fg-1);
  transition: all 320ms var(--pg-ease);
}
.menu-toggle:hover { border-color: rgba(255,255,255,0.22); }
.menu-toggle svg { width: 18px; height: 18px; }

/* ---------------- Menu drawer (slide-in from right) ---------------- */
.menu-drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; transition: visibility 0s linear 420ms; }
.menu-drawer[aria-hidden="false"] { pointer-events: auto; visibility: visible; transition-delay: 0s; }
.menu-drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(5,8,22,0.42);
  opacity: 0;
  transition: opacity 320ms var(--pg-ease);
}
.menu-drawer[aria-hidden="false"] .menu-drawer__backdrop { opacity: 1; }
.menu-drawer__panel {
  position: absolute; top: 16px; right: 16px; bottom: 16px;
  width: 440px; max-width: calc(100vw - 32px);
  /* Glass over the dimmed scrim: light tint + modest blur, so the page behind stays faintly
     visible; primary text stays 8:1+ over any realistic backdrop. */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 30%),
    rgba(10,15,34,0.50);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  backdrop-filter: blur(20px) saturate(1.4) brightness(0.75);
  -webkit-backdrop-filter: blur(20px) saturate(1.4) brightness(0.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 40px 100px -30px rgba(0,0,0,0.7);
  padding: 28px;
  display: flex; flex-direction: column; gap: 28px;
  transform: translateX(calc(100% + 24px));
  transition: transform 420ms var(--pg-ease);
  overflow: hidden;
}
.menu-drawer__panel::before {
  content:""; position:absolute; inset:0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(34,211,238,0.14), transparent 60%),
    radial-gradient(50% 40% at 0% 100%, rgba(59,130,246,0.14), transparent 70%);
}
.menu-drawer[aria-hidden="false"] .menu-drawer__panel { transform: translateX(0); }
.menu-drawer__head { display: flex; justify-content: space-between; align-items: center; position: relative; }
.menu-drawer__mark { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); border-radius: 999px; }
.menu-drawer__mark img { width: 22px; height: 22px; filter: drop-shadow(0 0 8px rgba(77,172,191,0.6)); }
.menu-drawer__mark strong { color: var(--pg-fg-1); font-size: 12px; letter-spacing: 0.20em; font-weight: 600; }
.menu-drawer__close {
  width: 36px; height: 36px; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px; color: var(--pg-fg-1);
  display: flex; align-items: center; justify-content: center;
  transition: all 200ms var(--pg-ease);
}
.menu-drawer__close:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }
.menu-drawer__close svg { width: 16px; height: 16px; }
.menu-drawer__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; position: relative; }
.menu-drawer__nav a {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--pg-fg-1); text-decoration: none;
  font-size: 26px; font-weight: 500; letter-spacing: -0.018em;
  transition: color 200ms var(--pg-ease), padding-left 320ms var(--pg-ease);
}
.menu-drawer__nav a span {
  font-family: var(--pg-font-mono); font-size: 11px; color: var(--pg-cyan-ink);
  letter-spacing: 0.16em; min-width: 28px;
}
.menu-drawer__nav a svg { width: 18px; height: 18px; margin-left: auto; color: var(--pg-fg-3); transition: color 200ms var(--pg-ease), transform 320ms var(--pg-ease); }
.menu-drawer__nav a:hover { color: var(--pg-cyan-ink); padding-left: 12px; }
.menu-drawer__nav a:hover svg { color: var(--pg-cyan-ink); transform: translate(2px, -2px); }
.menu-drawer__foot { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.menu-drawer__eyebrow { font-size: 11px; color: var(--pg-fg-3); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.menu-drawer__email { color: var(--pg-fg-1); font-size: 16px; text-decoration: none; }
.menu-drawer__email:hover { color: var(--pg-cyan-ink); }
.menu-drawer__social { display: flex; gap: 14px; margin-top: 10px; }
.menu-drawer__social a { color: var(--pg-fg-3); font-size: 13px; text-decoration: none; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; transition: all 200ms var(--pg-ease); }
.menu-drawer__social a:hover { color: var(--pg-fg-1); border-color: rgba(255,255,255,0.22); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .menu-drawer__panel { transition: none; }
  .menu-drawer__backdrop { transition: none; }
}

/* ---------------- Nav pill (bottom) ---------------- */
.nav-pill {
  /* Dark ink for text on the blue→cyan accent gradient (white fails: 3.7:1 → 1.8:1). */
  --nav-ink: #050816;
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 4px;
  padding: 6px;
  /* Glass: a top sheen over a light tint; the backdrop is only blurred a little and dimmed
     (brightness) so shapes behind stay faintly visible while labels keep >= 5.9:1 (fg-2)
     over the brightest real UI behind (the cyan button) and ~4:1 over pure white. */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 60%),
    rgba(10,15,34,0.40);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(1.4) brightness(0.60);
  -webkit-backdrop-filter: blur(14px) saturate(1.4) brightness(0.60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(255,255,255,0.04), 0 18px 50px -16px rgba(0,0,0,0.7);
}
.nav-pill__mark { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #050816, #0A0F22); border: 1px solid rgba(255,255,255,0.10); display:flex; align-items:center; justify-content:center; }
.nav-pill__mark img { width: 18px; height: 18px; }
.nav-link {
  padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--pg-fg-2);
  border-radius: 999px; text-decoration: none; transition: color 200ms var(--pg-ease);
  cursor: pointer; border: 0; background: transparent;
  font-family: var(--pg-font-sans);
}
.nav-link:hover { color: var(--pg-fg-1); }
.nav-link.is-active {
  color: var(--nav-ink);
  background: var(--pg-gradient-accent);
  box-shadow: 0 0 0 1px rgba(77,172,191,0.45), 0 8px 22px -8px rgba(34,211,238,0.55);
  font-weight: 600;
}
.nav-link.is-active:hover { color: var(--nav-ink); }

/* ---------------- Buttons ---------------- */
.btn {
  font-family: var(--pg-font-sans);
  font-size: 14px; font-weight: 500;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 200ms var(--pg-ease);
  text-decoration: none;
}
.btn--primary { background: var(--pg-gradient-accent); color:#fff; box-shadow: 0 0 0 1px rgba(77,172,191,0.40), 0 12px 32px -10px rgba(77,172,191,0.55); }
.btn--primary:hover { background: var(--pg-gradient-accent-hi); box-shadow: 0 0 0 1px rgba(77,172,191,0.55), 0 18px 48px -12px rgba(77,172,191,0.75); }
.btn--primary:active { background: var(--pg-gradient-accent-lo); }
.btn--secondary { background: rgba(255,255,255,0.04); color: var(--pg-fg-1); border-color: rgba(255,255,255,0.14); }
.btn--secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }
.btn--ghost { background: transparent; color: var(--pg-fg-2); }
.btn--ghost:hover { color: var(--pg-fg-1); }
.btn svg { width: 16px; height: 16px; }
.btn--circle { width: 56px; height: 56px; padding: 0; justify-content: center; }
.btn--circle svg { width: 22px; height: 22px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  margin: 16px 16px 64px;
  padding: 124px 8px 88px;
  border-radius: 40px;
  background: rgba(10,15,34,0.42);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.55);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(77,172,191,0.20), transparent 60%),
    radial-gradient(55% 60% at 100% 100%, rgba(59,130,246,0.16), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask: radial-gradient(70% 80% at 30% 30%, black, transparent);
  -webkit-mask: radial-gradient(70% 80% at 30% 30%, black, transparent);
}
.hero > .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 5.3vw, 76px); font-weight: 600;
  color: var(--pg-fg-1); letter-spacing: -0.028em; line-height: 1.0;
  margin: 22px 0 28px; text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: var(--pg-gradient-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: 18px; line-height: 1.6; color: var(--pg-fg-3); max-width: 54ch; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items:center; }
.hero__trust { display: flex; gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.06); }
.hero__trust div { display:flex; flex-direction:column; gap:4px; }
.hero__trust strong { color: var(--pg-fg-1); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.hero__trust strong em { font-style: normal; background: var(--pg-gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__trust span { color: var(--pg-fg-4); font-size: 12px; letter-spacing: 0.03em; }

/* ---------------- Pipeline panel (hero right side) ---------------- */
.pipeline-panel {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 32px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 40px 80px -30px rgba(0,0,0,0.55);
  overflow: hidden;
}
.pipeline-panel::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(50% 60% at 20% 10%, rgba(59,130,246,0.25), transparent 70%),
    radial-gradient(50% 70% at 80% 100%, rgba(34,211,238,0.20), transparent 70%);
  pointer-events: none;
}
.pipeline-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; position: relative; }
.pipeline-panel__tag { font-size: 11px; color: var(--pg-cyan-ink); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; display:flex; align-items:center; gap: 8px; }
.pipeline-panel__tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pg-cyan); box-shadow: 0 0 10px var(--pg-cyan); animation: pulse 2.4s ease-in-out infinite; }
.pipeline-panel__build { font-family: var(--pg-font-mono); font-size: 11px; color: var(--pg-fg-4); }
@keyframes pulse { 50% { opacity: 0.4; } }

.pipeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-top: 60px; }
.pipeline__track { content:""; position: absolute; top: 22px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, rgba(34,211,238,0.5), rgba(59,130,246,0.7), rgba(34,211,238,0.5), transparent); z-index: 1; }
/* The cube travels the track via transform (compositor) — animating `left` forced layout every frame.
   The element is the track-length lane (8% → 84%); ::before is the cube itself. */
.pipeline__cube { position: absolute; top: 16px; left: 8%; width: 76%; height: 14px; pointer-events: none; animation: travel 14s linear infinite; z-index: 1; }
.pipeline__cube::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--pg-cyan), var(--pg-accent)); box-shadow: 0 0 18px var(--pg-cyan); }
@keyframes travel { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(100%); } }

@property --glow { syntax: '<number>'; initial-value: 0; inherits: false; }
.pipeline__node { position: relative; background: transparent; border: 0; border-radius: 0; padding: 0; text-align: center; transition: all 320ms var(--pg-ease); z-index: 0; }
.pipeline__node:hover { background: transparent; }
.pipeline__node .dot {
  --glow: 0;
  width: 48px; height: 48px; border-radius: 14px;
  background: #0A0F22;
  border: 1px solid rgba(59,130,246, calc(0.40 + 0.45 * var(--glow)));
  display: flex; align-items: center; justify-content: center;
  color: rgb(calc(147 + 108 * var(--glow)), calc(197 + 58 * var(--glow)), 253);
  box-shadow:
    0 0 calc(14px + 12px * var(--glow)) rgba(59,130,246, calc(0.30 + 0.45 * var(--glow))),
    0 0 calc(2px + 28px * var(--glow)) rgba(34,211,238, calc(0.0 + 0.55 * var(--glow)));
  transition: none;
  position: relative; z-index: 3; margin: 0 auto 14px;
}
.pipeline__node .dot svg { width: 20px; height: 20px; stroke-width: 1.5; }
.pipeline__node.active { background: transparent; }
.pipeline__node.active .dot { color: #fff; }
.pipeline__node:nth-of-type(1) .dot { animation: pulse-d1 14s linear infinite; }
.pipeline__node:nth-of-type(2) .dot { animation: pulse-d2 14s linear infinite; }
.pipeline__node:nth-of-type(3) .dot { animation: pulse-d3 14s linear infinite; }
.pipeline__node:nth-of-type(4) .dot { animation: pulse-d4 14s linear infinite; }
.pipeline__node:nth-of-type(5) .dot { animation: pulse-d5 14s linear infinite; }
@keyframes pulse-d1 {
  0%   { --glow: 1; }
  6%   { --glow: 0.45; }
  14%  { --glow: 0; }
  86%  { --glow: 0; }
  94%  { --glow: 0.45; }
  100% { --glow: 1; }
}
@keyframes pulse-d2 {
  0%, 6%   { --glow: 0; }
  10%      { --glow: 0.55; }
  12.5%    { --glow: 1; }
  18.5%    { --glow: 0.45; }
  26%      { --glow: 0; }
  74%      { --glow: 0; }
  81.5%    { --glow: 0.45; }
  87.5%    { --glow: 1; }
  90%      { --glow: 0.55; }
  94%, 100%{ --glow: 0; }
}
@keyframes pulse-d3 {
  0%, 18%  { --glow: 0; }
  22%      { --glow: 0.55; }
  25%      { --glow: 1; }
  31%      { --glow: 0.45; }
  38%      { --glow: 0; }
  62%      { --glow: 0; }
  69%      { --glow: 0.45; }
  75%      { --glow: 1; }
  78%      { --glow: 0.55; }
  82%, 100%{ --glow: 0; }
}
@keyframes pulse-d4 {
  0%, 31%  { --glow: 0; }
  34.5%    { --glow: 0.55; }
  37.5%    { --glow: 1; }
  43.5%    { --glow: 0.45; }
  50%      { --glow: 0; }
  50%      { --glow: 0; }
  56.5%    { --glow: 0.45; }
  62.5%    { --glow: 1; }
  65.5%    { --glow: 0.55; }
  69%, 100%{ --glow: 0; }
}
@keyframes pulse-d5 {
  0%, 43%  { --glow: 0; }
  47%      { --glow: 0.55; }
  50%      { --glow: 1; }
  56%      { --glow: 0.45; }
  63%, 100%{ --glow: 0; }
}
.pipeline__node .lab { font-size: 13px; color: var(--pg-fg-2); font-weight: 500; letter-spacing: -0.005em; }

/* ---------------- StoryFlow ---------------- */
.storyflow__rail {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  margin-top: 56px;
}
.storyflow__rail::before {
  content:""; position:absolute; top: 36px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), rgba(34,211,238,0.5), transparent);
}
.story-step {
  background: rgba(10,15,34,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 32px 22px 24px;
  position: relative;
  transition: all 320ms var(--pg-ease);
}
.story-step:hover { border-color: rgba(255,255,255,0.16); }
.story-step .dot {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,15,34,0.95);
  border: 1px solid rgba(59,130,246,0.40); color: #93C5FD;
  display:flex; align-items:center; justify-content:center;
  margin: -54px auto 16px;
  box-shadow: 0 0 24px rgba(59,130,246,0.45);
}
.story-step .dot svg { width: 18px; height: 18px; stroke-width: 1.5; }
.story-step .num { font-family: var(--pg-font-mono); font-size: 11px; color: var(--pg-cyan-ink); letter-spacing: 0.10em; }
.story-step h4 { color: var(--pg-fg-1); font-weight: 500; font-size: 16px; margin: 8px 0 8px; }
.story-step p { color: var(--pg-fg-3); font-size: 13px; line-height: 1.5; margin: 0; }

/* ---------------- Service cards (3-up) ---------------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.service-card {
  position: relative;
  background: rgba(10,15,34,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 32px 28px 28px;
  overflow: hidden;
  transition: border-color 320ms var(--pg-ease), box-shadow 320ms var(--pg-ease);
  min-height: 360px;
  display: flex; flex-direction: column;
}
.service-card::before { content:""; position:absolute; inset:0; border-radius: inherit; padding: 1px; background: linear-gradient(180deg, rgba(255,255,255,0.10), transparent 60%); -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none;}
.service-card::after { content:""; position:absolute; top:-30%; left:-20%; width: 140%; height: 80%; background: radial-gradient(50% 100% at 50% 0%, rgba(59,130,246,0.18), transparent 70%); pointer-events: none; opacity: 0; transition: opacity 320ms var(--pg-ease); }
.service-card.cy::after { background: radial-gradient(50% 100% at 50% 0%, rgba(34,211,238,0.18), transparent 70%); }
.service-card.vi::after { background: radial-gradient(50% 100% at 50% 0%, rgba(139,92,246,0.18), transparent 70%); }
.service-card:hover { border-color: rgba(255,255,255,0.18); box-shadow: 0 0 0 1px rgba(59,130,246,0.20), 0 28px 60px -28px rgba(59,130,246,0.45); }
.service-card:hover::after { opacity: 1; }
.service-card .chip { position: relative; width: 48px; height: 48px; border-radius: 14px; background: rgba(59,130,246,0.10); border: 1px solid rgba(59,130,246,0.30); display:flex; align-items:center; justify-content:center; color: #60A5FA; }
.service-card .chip svg { width: 22px; height: 22px; stroke-width: 1.5; }
.service-card.cy .chip { background: rgba(34,211,238,0.10); border-color: rgba(34,211,238,0.30); color: var(--pg-cyan-hi); }
.service-card.vi .chip { background: rgba(139,92,246,0.10); border-color: rgba(139,92,246,0.30); color: #C4B5FD; }
.service-card .plus { position: absolute; top: 26px; right: 26px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); color: var(--pg-fg-3); display:flex; align-items:center; justify-content:center; font-size: 16px; font-weight: 300; transition: all 200ms var(--pg-ease); cursor: pointer; background: transparent; }
.service-card:hover .plus { color: var(--pg-fg-1); border-color: rgba(255,255,255,0.30); transform: rotate(90deg); }
.service-card h3 { position: relative; color: var(--pg-fg-1); font-weight: 500; font-size: 22px; margin: 28px 0 10px; letter-spacing: -0.01em; }
.service-card p { position: relative; color: var(--pg-fg-3); font-size: 14.5px; line-height: 1.6; margin: 0 0 24px; }
.chip-list { position: relative; display:flex; flex-wrap:wrap; gap: 6px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: auto; }
.chip-list span { font-size: 11px; color: var(--pg-fg-3); padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.02); }

/* ---------------- Capabilities grid (4 cols) ---------------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.cap-card {
  background: rgba(255,255,255,0.012);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all 200ms var(--pg-ease);
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.cap-card::before {
  content:""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask: radial-gradient(80% 100% at 50% 50%, black, transparent);
  -webkit-mask: radial-gradient(80% 100% at 50% 50%, black, transparent);
  opacity: 0.6;
}
.cap-card > * { position: relative; }
.cap-card:hover { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.16); }
.cap-card .chip-sm { width: 32px; height: 32px; border-radius: 9px; background: rgba(34,211,238,0.10); border:1px solid rgba(34,211,238,0.25); color: var(--pg-cyan-hi); display:flex;align-items:center;justify-content:center; }
.cap-card .chip-sm svg { width: 15px; height: 15px; stroke-width: 1.5; }
.cap-card h4 { color: var(--pg-fg-1); font-weight: 500; font-size: 15.5px; margin: 8px 0 6px; letter-spacing: -0.005em; }
.cap-card p { color: var(--pg-fg-3); font-size: 13px; line-height: 1.55; margin: 0; }

/* ---------------- Smart development split ---------------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.split__text h2 {
  font-size: clamp(32px, 3.4vw, 46px); font-weight: 600;
  color: var(--pg-fg-1); margin: 18px 0 18px;
  letter-spacing: -0.022em; line-height: 1.1; text-wrap: balance;
}
.split__text h2 em { font-style: normal; background: var(--pg-gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.split__text p {
  font-size: 17px; color: var(--pg-fg-3); line-height: 1.6;
  max-width: 54ch; margin: 0 0 28px;
}
.split__media {
  position: relative; aspect-ratio: 1.2; border-radius: 28px; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 50%, rgba(59,130,246,0.20), transparent 70%), #0A0F22;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.split__media svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------------- Magnetic assembly (Smart IT delivery) ---------------- */
.assembly { position: absolute; inset: 0; }

/* ambient: masked technical grid */
.assembly__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  -webkit-mask-image: radial-gradient(72% 72% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(72% 72% at 50% 50%, #000 30%, transparent 100%);
}
/* ambient: cyan/blue/violet bloom, brightens with assembly progress */
.assembly__bloom {
  position: absolute; inset: 0; z-index: 0; opacity: 0.25;
  background:
    radial-gradient(42% 42% at 50% 50%, rgba(34,211,238,0.22), transparent 70%),
    radial-gradient(60% 55% at 38% 40%, rgba(59,130,246,0.16), transparent 70%),
    radial-gradient(55% 55% at 64% 62%, rgba(139,92,246,0.13), transparent 72%);
}
/* ambient: signal dots travelling the grid lines */
.assembly__flow { position: absolute; inset: 0; z-index: 1; }
.flow-dot {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #3DE3FF; opacity: 0;
  box-shadow: 0 0 6px rgba(61,227,255,0.9);
  transform: translate(-50%, -50%);
}

/* tether lines */
.assembly__links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.assembly__link {
  stroke: #3DE3FF; stroke-width: 1.2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  filter: drop-shadow(0 0 3px rgba(61,227,255,0.8));
}

/* core: the cube that constructs itself */
.assembly__core {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 36%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  --ignite: 0;
}
.assembly__core::before {
  content: ""; position: absolute; inset: -18%;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(34,211,238,0.35), transparent 70%);
  opacity: var(--ignite);
}
/* scoped tighter than the generic .split__media svg rule (see handoff) */
.assembly__core .core-cube { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cube-face  { opacity: 0; }
.cube-top   { fill: rgba(56,224,255,0.52); }
.cube-right { fill: rgba(59,130,246,0.46); }
.cube-left  { fill: rgba(139,92,246,0.44); }
.cube-edges line {
  stroke: #7BEEFF; stroke-width: 1; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 2.5px rgba(123,238,255,0.9));
}
.core-label {
  position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%); margin-top: 2px;
  font-family: var(--pg-font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pg-fg-3); white-space: nowrap;
}
.core-label--done { color: var(--pg-cyan); opacity: 0; text-shadow: 0 0 12px rgba(34,211,238,0.6); }

/* the six ingredient pills */
.assembly__node {
  position: absolute; z-index: 4; opacity: 0;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(10,15,34,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 18px rgba(34,211,238,0.10);
  font-family: var(--pg-font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pg-fg-2); white-space: nowrap;
}
.assembly__node svg { position: static; inset: auto; width: 12px; height: 12px; color: var(--pg-cyan-ink); flex: none; }

/* caption pill */
.xform-tag {
  position: absolute; left: 18px; bottom: 10px; z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(5,8,22,0.62);
  border: 1px solid rgba(255,255,255,0.10);
  font-family: var(--pg-font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pg-fg-3);
}
.xform-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pg-cyan); box-shadow: 0 0 8px rgba(34,211,238,0.8); }
.xform-tag span:last-child { transition: opacity 240ms var(--pg-ease); }

/* ---------------- Review section ---------------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.review-card {
  background: rgba(10,15,34,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 240px;
}
.review-card .quote { font-family: var(--pg-font-mono); font-size: 11px; color: var(--pg-cyan-ink); letter-spacing: 0.10em; text-transform: uppercase; }
.review-card p { color: var(--pg-fg-2); font-size: 15px; line-height: 1.6; margin: 0; flex: 1; }
.review-card strong { color: var(--pg-fg-1); font-size: 14px; font-weight: 500; letter-spacing: -0.005em; }
.review-card strong span { display: block; color: var(--pg-fg-4); font-size: 12px; font-weight: 400; margin-top: 4px; }

/* ---------------- Principles ---------------- */
.principles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 56px; }
.principle {
  position: relative; padding: 32px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.principle::before { content:""; position:absolute; left:0; top:0; width: 60px; height: 2px; background: linear-gradient(90deg, var(--pg-accent), var(--pg-cyan)); }
.principle .num { font-family: var(--pg-font-mono); font-size: 12px; color: var(--pg-cyan-ink); letter-spacing: 0.12em; }
.principle h3 { color: var(--pg-fg-1); font-weight: 500; font-size: 20px; margin: 12px 0 10px; letter-spacing: -0.01em; }
.principle p { color: var(--pg-fg-3); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------------- CTA ---------------- */
.cta {
  position: relative; margin: 96px 24px; padding: 80px 56px;
  border-radius: 36px;
  background: rgba(10,15,34,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.cta::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(40% 60% at 0% 100%, rgba(59,130,246,0.30), transparent 70%),
    radial-gradient(40% 60% at 100% 0%, rgba(34,211,238,0.22), transparent 70%);
  pointer-events: none;
}
/* Accent variant — teal-forward, screenshot 2 reference */
.cta--accent {
  background:
    radial-gradient(70% 90% at 20% 50%, rgba(34,211,238,0.42), transparent 70%),
    radial-gradient(60% 80% at 80% 50%, rgba(77,172,191,0.38), transparent 70%),
    rgba(10,15,34,0.85);
  border-color: rgba(34,211,238,0.20);
}
.cta--accent::before {
  background:
    radial-gradient(40% 60% at 0% 100%, rgba(34,211,238,0.30), transparent 70%),
    radial-gradient(40% 60% at 100% 0%, rgba(77,172,191,0.25), transparent 70%);
}
.cta__inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.cta__text { display: flex; flex-direction: column; gap: 0; }
.cta__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.cta__media { position: relative; aspect-ratio: 1; max-width: 380px; margin-left: auto; }
.cta__media svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45)); }
.cta h2 { font-size: clamp(34px, 4.4vw, 64px); font-weight: 600; color: var(--pg-fg-1); letter-spacing: -0.028em; line-height: 1.04; margin: 16px 0 18px; text-wrap: balance; }
.cta p { font-size: 16px; color: var(--pg-fg-2); max-width: 52ch; margin: 0; }
.cta--accent h2 { color: #F4FBFD; }
.cta--accent p { color: rgba(244,251,253,0.85); }
.cta .arrow {
  width: 112px; height: 112px; border-radius: 50%;
  background: rgba(59,130,246,0.10); border: 1px solid rgba(59,130,246,0.35); color: #fff;
  display:flex; align-items:center; justify-content:center;
  margin-left: auto; cursor: pointer; transition: all 320ms var(--pg-ease);
  text-decoration: none; flex-shrink: 0;
}
.cta .arrow:hover { background: var(--pg-accent); transform: scale(1.05); box-shadow: 0 0 0 1px rgba(59,130,246,0.4), 0 22px 60px -14px rgba(59,130,246,0.65); }
.cta .arrow svg { width: 36px; height: 36px; stroke-width: 1.5; }

/* ---------------- Footer ---------------- */
.footer {
  background: #030610; border-top: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0 32px; position: relative; overflow: hidden;
}
.footer::before { content:""; position:absolute; inset:0; background:
  radial-gradient(30% 60% at 10% 0%, rgba(59,130,246,0.10), transparent 70%),
  radial-gradient(30% 60% at 90% 100%, rgba(34,211,238,0.06), transparent 70%);
  pointer-events:none;
}
.footer__lockup { position: relative; display: flex; align-items: center; justify-content: space-between; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer__lockup h3 { font-size: clamp(28px, 3.4vw, 48px); font-weight: 600; color: var(--pg-fg-1); letter-spacing: -0.025em; line-height: 1.1; margin: 0; max-width: 22ch; text-wrap: balance; }
.footer__lockup a { color: var(--pg-cyan-ink); font-size: 14px; text-decoration: none; display:inline-flex; align-items:center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(34,211,238,0.30); background: rgba(34,211,238,0.06); transition: all 200ms var(--pg-ease); }
.footer__lockup a:hover { background: rgba(34,211,238,0.14); color: var(--pg-cyan-hi); }
.footer__inner { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.footer__brand .mark { display:flex; align-items:center; gap: 10px; }
.footer__brand .mark img { width: 28px; height: 28px; }
.footer__brand .mark strong { color: #fff; letter-spacing: 0.22em; font-weight: 600; font-size: 13px; }
.footer__brand p { color: var(--pg-fg-3); font-size: 13.5px; line-height: 1.6; margin: 0; }
.footer__group h4 { color: var(--pg-fg-1); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; margin: 6px 0 16px; }
.footer__group a, .footer__group span { display: block; color: var(--pg-fg-3); font-size: 14px; text-decoration: none; padding: 5px 0; transition: color 200ms; }
.footer__group a:hover { color: var(--pg-fg-1); }
.footer__bottom { position: relative; display:flex; justify-content:space-between; align-items:center; padding-top: 40px; margin-top: 56px; border-top: 1px solid rgba(255,255,255,0.06); flex-wrap: wrap; gap: 16px; }
.footer__bottom span { color: var(--pg-fg-4); font-size: 12px; }
.footer__bottom .links { display: flex; gap: 24px; }
.footer__bottom .links a { color: var(--pg-fg-4); font-size: 12px; text-decoration: none; transition: color 200ms; }
.footer__bottom .links a:hover { color: var(--pg-fg-2); }

/* ---------------- Page heroes (inner pages) ---------------- */
.page-hero { padding: 168px 0 80px; position: relative; }
.page-hero h1 { font-size: clamp(44px, 5.6vw, 76px); font-weight: 600; color: var(--pg-fg-1); letter-spacing: -0.028em; line-height: 1.04; margin: 20px 0 22px; text-wrap: balance; max-width: 22ch; }
.page-hero h1 em { font-style: normal; background: var(--pg-gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { font-size: 18px; color: var(--pg-fg-3); max-width: 60ch; line-height: 1.55; margin: 0; }

/* ---------------- Detailed service rows (services page) ---------------- */
.svc-row {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: flex-start;
  padding: 56px 0; border-top: 1px solid rgba(255,255,255,0.06);
}
.svc-row:first-child { border-top: 0; }
.svc-row__head { position: sticky; top: 32px; }
.svc-row__head .chip { display:inline-flex; width: 52px; height: 52px; border-radius: 14px; background: rgba(59,130,246,0.10); border: 1px solid rgba(59,130,246,0.30); color: #60A5FA; align-items:center; justify-content:center; margin-bottom: 18px; }
.svc-row__head .chip svg { width: 22px; height: 22px; stroke-width: 1.5; }
.svc-row.cy .svc-row__head .chip { background: rgba(34,211,238,0.10); border-color: rgba(34,211,238,0.30); color: var(--pg-cyan-hi); }
.svc-row.vi .svc-row__head .chip { background: rgba(139,92,246,0.10); border-color: rgba(139,92,246,0.30); color: #C4B5FD; }
.svc-row__head h2 { font-size: clamp(28px, 3vw, 40px); color: var(--pg-fg-1); font-weight: 600; letter-spacing: -0.022em; line-height: 1.1; margin: 0 0 14px; }
.svc-row__head p { font-size: 15px; color: var(--pg-fg-3); line-height: 1.6; margin: 0; max-width: 36ch; }
.svc-row__items { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 22px; transition: all 200ms var(--pg-ease); }
.svc-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.18); }
.svc-item .chip-sm { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); display:flex; align-items:center; justify-content:center; color: var(--pg-fg-3); }
.svc-item .chip-sm svg { width: 14px; height: 14px; stroke-width: 1.5; }
.svc-item h4 { color: var(--pg-fg-1); font-weight: 500; font-size: 15px; margin: 12px 0 6px; }
.svc-item p { color: var(--pg-fg-3); font-size: 13px; line-height: 1.55; margin: 0; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-form {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
}
.contact-form::before { content:""; position:absolute; inset:0; border-radius:inherit; background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 60%); pointer-events:none;}
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 11px; color: var(--pg-fg-3); font-weight: 500; letter-spacing: 0.10em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px; padding: 13px 14px; color: var(--pg-fg-1);
  font-family: var(--pg-font-sans); font-size: 14px; outline: none;
  transition: all 200ms var(--pg-ease); resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--pg-fg-4); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(59,130,246,0.6); box-shadow: 0 0 0 3px rgba(59,130,246,0.18); background: rgba(255,255,255,0.06); }
.contact-info { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.contact-info .eyebrow { margin-bottom: 8px; }
.contact-info .item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .item .chip { width: 40px; height: 40px; border-radius: 11px; background: rgba(34,211,238,0.10); border: 1px solid rgba(34,211,238,0.25); color: var(--pg-cyan-hi); display:flex; align-items:center; justify-content:center; flex-shrink: 0; }
.contact-info .item .chip svg { width: 16px; height: 16px; stroke-width: 1.5; }
.contact-info .item h5 { color: var(--pg-fg-1); margin: 0 0 4px; font-size: 14px; font-weight: 500; }
.contact-info .item p { color: var(--pg-fg-3); font-size: 13.5px; line-height: 1.55; margin: 0; }
.contact-info .item a { color: var(--pg-cyan-ink); text-decoration: none; }
.contact-info .item a:hover { color: var(--pg-cyan-hi); }

/* ---------------- About specifics ---------------- */
.about-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 48px; }
.about-strip .number { background: rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.07); border-radius: 18px; padding: 28px; }
.about-strip .number strong { display:block; color: var(--pg-fg-1); font-size: 44px; font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.about-strip .number strong em { font-style: normal; background: var(--pg-gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-strip .number span { display: block; color: var(--pg-fg-3); font-size: 13px; line-height: 1.5; margin-top: 12px; }
.about-list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.about-list article { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.about-list article .num { font-family: var(--pg-font-mono); font-size: 11px; color: var(--pg-cyan-ink); letter-spacing: 0.10em; }
.about-list article h3 { color: var(--pg-fg-1); font-weight: 500; font-size: 22px; margin: 12px 0 12px; letter-spacing: -0.01em; }
.about-list article p { color: var(--pg-fg-3); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ---------------- Reveal-on-scroll ---------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--pg-ease-out), transform 700ms var(--pg-ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Focus visible ---------------- */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 3px; }

.btn:focus-visible,
.btn--primary:focus-visible,
.btn--secondary:focus-visible,
.btn--ghost:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(59,130,246,0.18); }

.nav-link:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 2px; border-radius: 999px; }

.theme-toggle:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 3px; }

.service-card .plus:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 3px; }

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =================================================================
   LIGHT MODE OVERRIDES
   Recolors hard-coded dark-mode surfaces, hairlines, and glows.
   Tokens already swap via [data-theme="light"] in colors_and_type.css.
   ================================================================= */
[data-theme="light"] ::selection { background: rgba(59,130,246,0.22); color: #0A0F22; }

/* Scene background — soft daylight */
[data-theme="light"] .scene-bg::before {
  background-image:
    linear-gradient(rgba(10,15,34,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,15,34,0.04) 1px, transparent 1px);
}
[data-theme="light"] .scene-bg__halos::before { background: radial-gradient(circle, rgba(59,130,246,0.14), transparent 60%); }
[data-theme="light"] .scene-bg__halos::after  { background: radial-gradient(circle, rgba(34,211,238,0.10), transparent 60%); }
[data-theme="light"] .scene-particles span { background: rgba(10,15,34,0.35); box-shadow: 0 0 8px rgba(59,130,246,0.35); opacity: 0.35; }

/* Brand pill */
[data-theme="light"] .brand-pill {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 60%),
    rgba(255,255,255,0.55);
  border-color: rgba(10,15,34,0.14);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 24px -12px rgba(10,15,34,0.28);
}
[data-theme="light"] .brand-pill:hover { border-color: rgba(10,15,34,0.22); }
[data-theme="light"] .brand-pill strong { color: #0A0F22; }

/* Nav pill */
[data-theme="light"] .nav-pill {
  /* Tint kept a little firmer than dark: dark ink needs a light surface behind it
     (>= 4.8:1 even over a solid dark block). */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 60%),
    rgba(255,255,255,0.55);
  border-color: rgba(10,15,34,0.14);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 18px 48px -20px rgba(10,15,34,0.28);
}
[data-theme="light"] .nav-pill__mark { background: linear-gradient(135deg, #F4F6FB, #FFFFFF); border-color: rgba(10,15,34,0.10); }
[data-theme="light"] .nav-link.is-active {
  color: var(--nav-ink);
  background: var(--pg-gradient-accent);
  box-shadow: 0 0 0 1px rgba(77,172,191,0.40), 0 8px 22px -10px rgba(34,211,238,0.35);
}

/* Menu toggle (light) */
[data-theme="light"] .menu-toggle {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 60%),
    rgba(255,255,255,0.55);
  border-color: rgba(10,15,34,0.14);
  color: var(--pg-fg-1);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 24px -12px rgba(10,15,34,0.28);
}
[data-theme="light"] .menu-toggle:hover { border-color: rgba(10,15,34,0.22); }

/* Menu drawer (light) */
[data-theme="light"] .menu-drawer__backdrop {
  background: rgba(10,15,34,0.12);
}
[data-theme="light"] .menu-drawer__panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0) 30%),
    rgba(255,255,255,0.62);
  border-color: rgba(10,15,34,0.12);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 40px 100px -30px rgba(10,15,34,0.32);
}
[data-theme="light"] .menu-drawer__panel::before {
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(34,211,238,0.10), transparent 60%),
    radial-gradient(50% 40% at 0% 100%, rgba(59,130,246,0.10), transparent 70%);
}
[data-theme="light"] .menu-drawer__mark {
  background: rgba(10,15,34,0.03);
  border-color: rgba(10,15,34,0.10);
}
[data-theme="light"] .menu-drawer__mark strong { color: #0A0F22; }
[data-theme="light"] .menu-drawer__close {
  background: rgba(10,15,34,0.03);
  border-color: rgba(10,15,34,0.10);
  color: var(--pg-fg-1);
}
[data-theme="light"] .menu-drawer__close:hover {
  background: rgba(10,15,34,0.06);
  border-color: rgba(10,15,34,0.22);
}
[data-theme="light"] .menu-drawer__nav a {
  color: var(--pg-fg-1);
  border-bottom-color: rgba(10,15,34,0.08);
}
[data-theme="light"] .menu-drawer__nav a span { color: var(--pg-fg-3); }
[data-theme="light"] .menu-drawer__nav a:hover { color: #1E40AF; }
[data-theme="light"] .menu-drawer__nav a svg { color: var(--pg-fg-3); }
[data-theme="light"] .menu-drawer__nav a:hover svg { color: #1E40AF; }
[data-theme="light"] .menu-drawer__foot { border-top-color: rgba(10,15,34,0.08); }
[data-theme="light"] .menu-drawer__email { color: var(--pg-fg-1); }
[data-theme="light"] .menu-drawer__email:hover { color: #1E40AF; }
[data-theme="light"] .menu-drawer__social a {
  color: var(--pg-fg-2);
  border-color: rgba(10,15,34,0.10);
}
[data-theme="light"] .menu-drawer__social a:hover { color: #0A0F22; border-color: rgba(10,15,34,0.24); }

/* Hero container (light) */
[data-theme="light"] .hero {
  background: rgba(255,255,255,0.55);
  border-color: rgba(10,15,34,0.06);
  box-shadow: 0 50px 120px -50px rgba(10,15,34,0.18);
}
[data-theme="light"] .hero::before {
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(77,172,191,0.16), transparent 60%),
    radial-gradient(55% 60% at 100% 100%, rgba(59,130,246,0.10), transparent 70%);
}
[data-theme="light"] .hero::after {
  background-image:
    linear-gradient(rgba(10,15,34,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,15,34,0.04) 1px, transparent 1px);
}

/* Cap-card grid pattern (light) */
[data-theme="light"] .cap-card { background: rgba(255,255,255,0.5); }
[data-theme="light"] .cap-card::before {
  background-image:
    linear-gradient(rgba(10,15,34,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,15,34,0.035) 1px, transparent 1px);
}
[data-theme="light"] .cap-card:hover { background: rgba(255,255,255,0.85); }

/* CTA accent variant (light) */
[data-theme="light"] .cta--accent {
  background:
    radial-gradient(70% 90% at 20% 50%, rgba(34,211,238,0.28), transparent 70%),
    radial-gradient(60% 80% at 80% 50%, rgba(77,172,191,0.26), transparent 70%),
    #E8F7FA;
  border-color: rgba(34,211,238,0.30);
  box-shadow: 0 40px 100px -40px rgba(15,90,110,0.22);
}
[data-theme="light"] .cta--accent::before {
  background:
    radial-gradient(40% 60% at 0% 100%, rgba(34,211,238,0.20), transparent 70%),
    radial-gradient(40% 60% at 100% 0%, rgba(77,172,191,0.18), transparent 70%);
}
[data-theme="light"] .cta--accent h2 { color: #06303A; }
[data-theme="light"] .cta--accent p { color: rgba(6,48,58,0.80); }

/* Theme toggle button */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--pg-fg-2);
  display:flex; align-items:center; justify-content:center;
  cursor: pointer; transition: all 200ms var(--pg-ease);
  margin-left: 4px;
}
.theme-toggle:hover { color: var(--pg-fg-1); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.08); }
.theme-toggle svg { width: 15px; height: 15px; stroke-width: 1.75; }
.theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle { background: rgba(10,15,34,0.04); border-color: rgba(10,15,34,0.10); }
[data-theme="light"] .theme-toggle:hover { background: rgba(10,15,34,0.08); border-color: rgba(10,15,34,0.22); }
[data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }

/* Buttons */
[data-theme="light"] .btn--secondary { background: rgba(10,15,34,0.04); color: var(--pg-fg-1); border-color: rgba(10,15,34,0.12); }
[data-theme="light"] .btn--secondary:hover { background: rgba(10,15,34,0.08); border-color: rgba(10,15,34,0.22); }

/* Hero trust */
[data-theme="light"] .hero__trust { border-top-color: rgba(10,15,34,0.08); }

/* Pipeline panel */
[data-theme="light"] .pipeline-panel {
  background: rgba(255,255,255,0.7);
  border-color: rgba(10,15,34,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 40px 80px -40px rgba(10,15,34,0.15);
}
[data-theme="light"] .pipeline-panel::before {
  background:
    radial-gradient(50% 60% at 20% 10%, rgba(59,130,246,0.12), transparent 70%),
    radial-gradient(50% 70% at 80% 100%, rgba(34,211,238,0.10), transparent 70%);
}
[data-theme="light"] .pipeline__node .dot {
  background: #FFFFFF;
  border-color: rgba(59,130,246, calc(0.50 + 0.40 * var(--glow)));
  color: rgb(calc(59 - 12 * var(--glow)), calc(130 - 30 * var(--glow)), calc(246 - 40 * var(--glow)));
  box-shadow:
    0 0 calc(10px + 14px * var(--glow)) rgba(59,130,246, calc(0.20 + 0.45 * var(--glow))),
    0 0 calc(2px + 24px * var(--glow)) rgba(34,211,238, calc(0.0 + 0.40 * var(--glow))),
    0 4px 12px -6px rgba(10,15,34,0.12);
}
[data-theme="light"] .pipeline__node.active .dot { color: #1E40AF; }

/* StoryFlow + story-step */
[data-theme="light"] .storyflow__rail::before {
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), rgba(34,211,238,0.4), transparent);
}
[data-theme="light"] .story-step {
  background: rgba(255,255,255,0.85);
  border-color: rgba(10,15,34,0.08);
  box-shadow: 0 8px 24px -16px rgba(10,15,34,0.10);
}
[data-theme="light"] .story-step:hover { border-color: rgba(10,15,34,0.20); }
[data-theme="light"] .story-step .dot {
  background: #FFFFFF;
  border-color: rgba(59,130,246,0.45);
  color: #1E40AF;
  box-shadow: 0 0 24px rgba(59,130,246,0.30), 0 4px 12px -6px rgba(10,15,34,0.12);
}

/* Service cards */
[data-theme="light"] .service-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(10,15,34,0.08);
  box-shadow: 0 12px 32px -16px rgba(10,15,34,0.10);
}
[data-theme="light"] .service-card::before { background: linear-gradient(180deg, rgba(255,255,255,0.9), transparent 60%); }
[data-theme="light"] .service-card:hover { border-color: rgba(59,130,246,0.30); box-shadow: 0 0 0 1px rgba(59,130,246,0.18), 0 28px 60px -24px rgba(59,130,246,0.25); }
[data-theme="light"] .service-card .plus { border-color: rgba(10,15,34,0.14); }
[data-theme="light"] .service-card:hover .plus { border-color: rgba(10,15,34,0.30); }
[data-theme="light"] .chip-list { border-top-color: rgba(10,15,34,0.08); }
[data-theme="light"] .chip-list span { border-color: rgba(10,15,34,0.10); background: rgba(10,15,34,0.02); }

/* Capabilities */
[data-theme="light"] .cap-card { background: rgba(255,255,255,0.7); border-color: rgba(10,15,34,0.08); }
[data-theme="light"] .cap-card:hover { background: rgba(255,255,255,0.95); border-color: rgba(10,15,34,0.18); }

/* Split media */
[data-theme="light"] .split__media {
  background: radial-gradient(60% 50% at 50% 50%, rgba(59,130,246,0.10), transparent 70%), #FFFFFF;
  border-color: rgba(10,15,34,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Magnetic assembly (light) */
[data-theme="light"] .assembly__grid {
  background-image:
    linear-gradient(rgba(10,15,34,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,15,34,0.06) 1px, transparent 1px);
}
[data-theme="light"] .assembly__bloom {
  background:
    radial-gradient(42% 42% at 50% 50%, rgba(34,211,238,0.18), transparent 70%),
    radial-gradient(60% 55% at 38% 40%, rgba(59,130,246,0.12), transparent 70%),
    radial-gradient(55% 55% at 64% 62%, rgba(139,92,246,0.10), transparent 72%);
}
[data-theme="light"] .assembly__core .cube-edges line {
  stroke: #0891B2;
  filter: drop-shadow(0 0 2px rgba(8,145,178,0.5));
}
[data-theme="light"] .assembly__link {
  stroke: #0891B2;
  filter: drop-shadow(0 0 2px rgba(8,145,178,0.45));
}
[data-theme="light"] .flow-dot { background: #0891B2; box-shadow: 0 0 6px rgba(8,145,178,0.7); }
[data-theme="light"] .assembly__node {
  background: rgba(255,255,255,0.88);
  border-color: rgba(10,15,34,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 0 18px rgba(34,211,238,0.10);
}
[data-theme="light"] .assembly__node svg { color: #0891B2; }
[data-theme="light"] .core-label--done { color: #0891B2; text-shadow: 0 0 12px rgba(8,145,178,0.4); }
[data-theme="light"] .xform-tag {
  background: rgba(255,255,255,0.78);
  border-color: rgba(10,15,34,0.10);
}
[data-theme="light"] .xform-tag .dot { background: #0891B2; box-shadow: 0 0 8px rgba(8,145,178,0.6); }

/* Review cards */
[data-theme="light"] .review-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(10,15,34,0.08);
  box-shadow: 0 8px 24px -16px rgba(10,15,34,0.10);
}

/* Principles */
[data-theme="light"] .principle { background: rgba(255,255,255,0.7); border-color: rgba(10,15,34,0.08); }

/* CTA */
[data-theme="light"] .cta {
  background: rgba(255,255,255,0.85);
  border-color: rgba(10,15,34,0.08);
  box-shadow: 0 40px 80px -40px rgba(10,15,34,0.18);
}
[data-theme="light"] .cta::before {
  background:
    radial-gradient(40% 60% at 0% 100%, rgba(59,130,246,0.18), transparent 70%),
    radial-gradient(40% 60% at 100% 0%, rgba(34,211,238,0.14), transparent 70%);
}
[data-theme="light"] .cta .arrow { background: rgba(59,130,246,0.10); border-color: rgba(59,130,246,0.35); color: #1E40AF; }
[data-theme="light"] .cta .arrow:hover { color: #fff; }

/* Footer */
[data-theme="light"] .footer { background: #EEF2F8; border-top-color: rgba(10,15,34,0.08); }
[data-theme="light"] .footer::before {
  background:
    radial-gradient(30% 60% at 10% 0%, rgba(59,130,246,0.08), transparent 70%),
    radial-gradient(30% 60% at 90% 100%, rgba(34,211,238,0.05), transparent 70%);
}
[data-theme="light"] .footer__lockup { border-bottom-color: rgba(10,15,34,0.08); }
[data-theme="light"] .footer__brand .mark strong { color: #0A0F22; }
[data-theme="light"] .footer__bottom { border-top-color: rgba(10,15,34,0.08); }

/* Services page rows */
[data-theme="light"] .svc-row { border-top-color: rgba(10,15,34,0.08); }
[data-theme="light"] .svc-item { background: rgba(255,255,255,0.7); border-color: rgba(10,15,34,0.08); }
[data-theme="light"] .svc-item:hover { background: #FFFFFF; border-color: rgba(10,15,34,0.18); }
[data-theme="light"] .svc-item .chip-sm { background: rgba(10,15,34,0.04); border-color: rgba(10,15,34,0.10); }

/* Contact */
[data-theme="light"] .contact-form {
  background: rgba(255,255,255,0.85);
  border-color: rgba(10,15,34,0.10);
  box-shadow: 0 24px 60px -32px rgba(10,15,34,0.16);
}
[data-theme="light"] .contact-form::before { background: linear-gradient(180deg, rgba(255,255,255,0.9), transparent 60%); }
[data-theme="light"] .field input,
[data-theme="light"] .field textarea,
[data-theme="light"] .field select {
  background: #FFFFFF; border-color: rgba(10,15,34,0.12); color: var(--pg-fg-1);
}
[data-theme="light"] .field input:focus,
[data-theme="light"] .field textarea:focus,
[data-theme="light"] .field select:focus {
  border-color: rgba(59,130,246,0.6); background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.14);
}

/* About strip */
[data-theme="light"] .about-strip .number { background: rgba(255,255,255,0.7); border-color: rgba(10,15,34,0.08); }
[data-theme="light"] .about-list article { border-top-color: rgba(10,15,34,0.10); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: 1fr 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .container { padding: 0 22px; }
  .hero { padding: 132px 0 60px; }
  .hero__grid, .cta__inner, .contact-grid, .footer__inner, .footer__lockup, .split, .svc-row, .about-strip, .about-list { grid-template-columns: 1fr; gap: 32px; }
  .service-grid, .cap-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .storyflow__rail { grid-template-columns: 1fr; gap: 24px; }
  .storyflow__rail::before { display: none; }
  .story-step .dot { margin: -38px auto 12px; }
  .svc-row__items { grid-template-columns: 1fr; }
  .svc-row__head { position: static; }
  .cta { margin: 48px 16px; padding: 56px 28px; }
  .cta .arrow { width: 80px; height: 80px; margin: 0; }
  .contact-grid > *, .field-row > * { min-width: 0; }
}
@media (max-width: 560px) {
  .nav-pill { bottom: 16px; gap: 2px; max-width: calc(100vw - 24px); }
  .nav-pill__mark { display: none; }
  .nav-link { padding: 10px 12px; font-size: 12.5px; }
  .theme-toggle { flex: none; width: 38px; height: 38px; }   /* stays round; the pill budget is met by link padding */
  .brand-pill { padding: 8px 16px 8px 8px; }
  .split__media.assembly-media { aspect-ratio: 0.78; }
  .contact-form { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .field input, .field textarea, .field select { width: 100%; min-width: 0; box-sizing: border-box; }
}
@media (max-width: 360px) {
  .split__media.assembly-media { aspect-ratio: 0.7; }
  .xform-tag { left: 12px; bottom: 6px; padding: 6px 12px; }
  .nav-link { padding: 10px 7px; font-size: 12px; }
}


/* ---------------- Globe panel (hero right side) ----------------
   Reuses the .pipeline-panel glass surface. The globe (assets/js/globe-network.js)
   reads the --globe-* variables, so it follows the light/dark toggle. */
.globe-panel { padding: 24px 24px 8px; }
.globe-panel .pipeline-panel__head { margin-bottom: 0; flex-wrap: wrap; gap: 6px 16px; }
.globe-panel .pipeline-panel__tag,
.globe-panel .pipeline-panel__build { white-space: nowrap; }
.globe-panel__stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  --globe-grid: var(--pg-border-hi);
  --globe-node-fill: var(--pg-bg-elev-1);
  --globe-node-ring: var(--pg-border-hi);
  --globe-node-dot: var(--pg-fg-3);
  --globe-beam: var(--pg-fg-1);
  --globe-label: var(--pg-fg-4);
  --globe-node-glow: var(--pg-cyan);
}
.globe-panel__stage canvas { max-width: none; }
[data-theme="light"] .globe-panel__stage {
  --globe-beam: var(--pg-accent);
  --globe-node-glow: var(--pg-accent);
}
/* Cyan text on white fails contrast; the dot keeps the cyan. */
[data-theme="light"] .globe-panel .pipeline-panel__tag { color: var(--pg-fg-3); }

/* ---------------- Storyflow intro with the Live Build panel ---------------- */
.storyflow__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 64px;
  align-items: center;
}
.storyflow__intro .section-head { max-width: 640px; }
@media (max-width: 1024px) {
  .storyflow__intro { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ---------------- Glass fallbacks (kept last so they beat the light-mode glass rules) ---------------- */
/* No blur available, or the user asked for less transparency: go solid. Tokens flip with the theme. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-pill, .brand-pill, .menu-toggle, .menu-drawer__panel,
  [data-theme="light"] .nav-pill, [data-theme="light"] .brand-pill,
  [data-theme="light"] .menu-toggle, [data-theme="light"] .menu-drawer__panel { background: var(--pg-bg-elev-1); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-pill, .brand-pill, .menu-toggle, .menu-drawer__panel,
  [data-theme="light"] .nav-pill, [data-theme="light"] .brand-pill,
  [data-theme="light"] .menu-toggle, [data-theme="light"] .menu-drawer__panel {
    background: var(--pg-bg-elev-1);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}

/* =================================================================
   STORY COMPONENTS — a day in the life (.tale), the letter (.letter),
   and the honest fit check (.fit). Token-driven, so light mode follows.
   ================================================================= */
.tale { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.tale__head { position: sticky; top: 120px; }
.tale__head h2 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; color: var(--pg-fg-1); letter-spacing: -0.025em; line-height: 1.08; margin: 18px 0 18px; text-wrap: balance; }
.tale__head h2 em { font-style: normal; background: var(--pg-gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tale__head > p:not(.tale__note) { font-size: 17px; line-height: 1.6; color: var(--pg-fg-3); max-width: 40ch; margin: 0; text-wrap: pretty; }
.tale__note { margin: 28px 0 0; padding-left: 14px; border-left: 1px solid var(--pg-border-hi); font-family: var(--pg-font-mono); font-size: 12px; line-height: 1.6; color: var(--pg-fg-4); max-width: 36ch; }

.tale__beats { list-style: none; margin: 0; padding: 0; position: relative; }
.tale__beats::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 1px; background: var(--pg-border-hi); }
.beat { position: relative; padding: 0 0 40px 44px; }
.beat:last-child { padding-bottom: 0; }
.beat::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--pg-bg); border: 1px solid var(--pg-border-strong); }
.beat time { display: block; font-family: var(--pg-font-mono); font-size: 12px; letter-spacing: 0.10em; color: var(--pg-cyan-ink); margin-bottom: 10px; }
.beat p { margin: 0; max-width: 44ch; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.5; color: var(--pg-fg-2); text-wrap: pretty; }
.beat p strong { color: var(--pg-fg-1); font-weight: 500; }
.beat--turn { padding-top: 12px; }
.beat--turn::before { top: 18px; background: var(--pg-cyan); border-color: var(--pg-cyan); box-shadow: 0 0 0 5px rgba(34,211,238,0.14); }
.beat--turn p { color: var(--pg-fg-1); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; letter-spacing: -0.01em; }

.letter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.letter__side { position: sticky; top: 120px; }
.letter__side h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 600; color: var(--pg-fg-1); letter-spacing: -0.025em; line-height: 1.1; margin: 18px 0 20px; text-wrap: balance; }
.letter__where { font-family: var(--pg-font-mono); font-size: 12px; letter-spacing: 0.08em; line-height: 1.7; color: var(--pg-fg-4); margin: 0; }
.letter__body p { font-size: 19px; line-height: 1.7; color: var(--pg-fg-2); max-width: 58ch; margin: 0 0 1.25em; text-wrap: pretty; }
.letter__body p:first-child { font-size: 22px; color: var(--pg-fg-1); line-height: 1.55; }
.letter__pull { margin: 44px 0 !important; padding-left: 24px; border-left: 2px solid var(--pg-accent); font-size: clamp(24px, 2.6vw, 34px) !important; line-height: 1.25 !important; font-weight: 500; letter-spacing: -0.02em; color: var(--pg-fg-1) !important; max-width: 24ch !important; text-wrap: balance; }
.letter__sign { margin-top: 40px !important; font-family: var(--pg-font-mono); font-size: 12px !important; letter-spacing: 0.10em; text-transform: uppercase; color: var(--pg-fg-3) !important; }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.fit__col { background: var(--pg-bg-elev-1); border: 1px solid var(--pg-border); border-radius: var(--pg-r-4); padding: 36px; box-shadow: var(--pg-glow-inner); }
.fit__col h3 { color: var(--pg-fg-1); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin: 0; }
.fit__col ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.fit__col li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; color: var(--pg-fg-2); font-size: 15.5px; line-height: 1.55; }
.fit__col li svg { width: 18px; height: 18px; stroke-width: 1.6; margin-top: 3px; color: var(--pg-cyan-ink); }
.fit__col--no li svg { color: var(--pg-fg-4); }
.fit__col--no h3 { color: var(--pg-fg-2); }

@media (max-width: 860px) {
  .tale, .letter, .fit { grid-template-columns: 1fr; gap: 40px; }
  .tale__head, .letter__side { position: static; }
  .fit { gap: 20px; }
  .fit__col { padding: 26px; }
}

/* =================================================================
   STORY VISUALS — each illustration carries one beat of the story.
   Hero: workaround -> connected.  Tuesday: the desk ledger.
   Pipeline caption.  CTA: the first exchange.
   Resting state of every piece is the finished state, so reduced
   motion (animations and transitions off) still reads correctly.
   ================================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Hero: Before / After ---- */
.workaround { padding: 24px; }
.workaround .pipeline-panel__head { margin-bottom: 14px; gap: 10px 16px; flex-wrap: wrap; }
.workaround .pipeline-panel__tag { white-space: nowrap; }

.seg { position: relative; display: inline-flex; padding: 3px; border-radius: var(--pg-r-pill); border: 1px solid var(--pg-border); background: rgba(255,255,255,0.03); }
.seg__btn { font: 500 11px/1 var(--pg-font-mono); letter-spacing: 0.04em; padding: 7px 14px; border-radius: var(--pg-r-pill); border: 0; background: transparent; color: var(--pg-fg-3); cursor: pointer; transition: background 240ms var(--pg-ease), color 240ms var(--pg-ease); }
.seg__btn:hover { color: var(--pg-fg-1); }
.seg__btn.is-on { background: rgba(34,211,238,0.14); color: var(--pg-cyan-ink); }
.seg__btn:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 2px; }

.wa { position: relative; aspect-ratio: 1; container-type: inline-size; }
.wa__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; }

/* before: hand-made links, a courier carrying data by hand */
.wa__wire { fill: none; stroke: var(--pg-fg-4); stroke-width: 1.3; stroke-dasharray: 3 6; stroke-linecap: round; opacity: 0.8; animation: wa-march 1.4s linear infinite; transition: opacity 520ms var(--pg-ease); }
@keyframes wa-march { to { stroke-dashoffset: -18; } }
.wa__courier { fill: var(--pg-fg-1); transition: opacity 300ms var(--pg-ease); }

/* after: one clean flow through a single hub */
.wa__line { fill: none; stroke: var(--pg-cyan-ink); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 700ms var(--pg-ease) calc(var(--i, 0) * 120ms); }
.wa__flow { fill: var(--pg-cyan-ink); transition: opacity 400ms var(--pg-ease) 700ms; }
.wa__hub { transform-box: fill-box; transform-origin: center; transition: opacity 500ms var(--pg-ease) 500ms, transform 700ms var(--pg-ease) 500ms; }
.wa__hub-core { fill: url(#wa-hub-fill); }
.wa__hub-halo { fill: var(--pg-cyan-ink); opacity: 0.16; }

/* default (and no-JS) state is "after"; .is-before is the story's opening */
.wa:not(.is-before) .wa__wire,
.wa:not(.is-before) .wa__courier { opacity: 0; animation-play-state: paused; }
.wa.is-before .wa__line { stroke-dashoffset: 1; transition-delay: 0s; }
.wa.is-before .wa__flow { opacity: 0; transition-delay: 0s; }
.wa.is-before .wa__hub { opacity: 0; transform: scale(0.4); transition-delay: 0s; }

.wa__node {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 26%; z-index: 2;
  transform: translate(-50%, -50%) rotate(0deg);
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  padding: 10px 6px 9px; border-radius: 14px;
  background: var(--pg-bg-elev-1); border: 1px solid rgba(34,211,238,0.35);
  box-shadow: 0 0 24px -8px rgba(34,211,238,0.45);
  transition: transform 760ms var(--pg-ease), border-color 520ms var(--pg-ease), box-shadow 520ms var(--pg-ease);
}
.wa.is-before .wa__node { transform: translate(-50%, -50%) rotate(var(--r, 0deg)); border-color: var(--pg-border-hi); box-shadow: none; }
.wa__node svg { width: 16px; height: 16px; stroke-width: 1.6; color: var(--pg-cyan-ink); }
.wa__node b { font-size: max(11px, 3.2cqw); font-weight: 500; letter-spacing: -0.005em; color: var(--pg-fg-1); }
.wa__badge { display: grid; font: 400 max(10px, 2.6cqw)/1.25 var(--pg-font-mono); white-space: nowrap; }
.wa__badge > span { grid-area: 1 / 1; transition: opacity 420ms var(--pg-ease); }
.wa__badge .b-before { color: var(--pg-fg-3); opacity: 0; }
.wa__badge .b-after  { color: var(--pg-cyan-ink); opacity: 1; }
.wa.is-before .wa__badge .b-before { opacity: 1; }
.wa.is-before .wa__badge .b-after  { opacity: 0; }
.wa.is-before .wa__node--sheet .b-before { animation: wa-flicker 2.6s steps(1) infinite; }
@keyframes wa-flicker { 0%, 100% { opacity: 1; } 44% { opacity: 0.35; } 48% { opacity: 1; } 51% { opacity: 0.55; } 54% { opacity: 1; } }

/* ---- Tuesday: the desk ledger (beside the beats, tracks scroll) ---- */
.ledger { position: relative; margin-top: 32px; max-width: 400px; padding: 16px 18px 6px; border: 1px solid var(--pg-border); border-radius: 16px; background: rgba(255,255,255,0.02); overflow: hidden; }
.ledger__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; font-family: var(--pg-font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--pg-fg-4); }
.ledger__clock { display: inline-flex; align-items: center; gap: 8px; color: var(--pg-cyan-ink); }
.ledger__clock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pg-cyan); box-shadow: 0 0 8px var(--pg-cyan); }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--pg-divider); }
.ledger li span { font-size: 13px; line-height: 1.4; color: var(--pg-fg-4); transition: color 420ms var(--pg-ease); }
.ledger li b { font: 500 13px/1.4 var(--pg-font-mono); color: var(--pg-fg-1); white-space: nowrap; transition: opacity 420ms var(--pg-ease), transform 420ms var(--pg-ease), color 600ms var(--pg-ease); }
.js-story .ledger li:not(.on) b { opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 420ms var(--pg-ease), transform 420ms var(--pg-ease), visibility 0s linear 420ms; }
.ledger li.on span { color: var(--pg-fg-2); }
.ledger.is-watching li b { color: var(--pg-fg-3); }
.ledger::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--pg-cyan), transparent); opacity: 0; pointer-events: none; }
.ledger.is-watching::after { animation: ledger-scan 1.6s var(--pg-ease) 1 both; }
@keyframes ledger-scan { 0% { top: 0; opacity: 0; } 15% { opacity: 0.9; } 85% { opacity: 0.9; } 100% { top: 100%; opacity: 0; } }
.beat { transition: none; }
.beat::before { transition: background 300ms var(--pg-ease), border-color 300ms var(--pg-ease), box-shadow 300ms var(--pg-ease); }
.beat.is-active::before { background: var(--pg-cyan); border-color: var(--pg-cyan); box-shadow: 0 0 0 4px rgba(34,211,238,0.14); }
@media (max-width: 860px), (max-height: 700px) { .ledger { display: none; } }

/* ---- Pipeline: say what each phase means, in time with the cube ---- */
.pipeline__caption { position: relative; margin: 22px 0 0; min-height: 3.2em; font-size: 13px; line-height: 1.55; color: var(--pg-fg-3); text-align: center; transition: opacity 240ms var(--pg-ease); }
.pipeline__caption strong { color: var(--pg-fg-1); font-weight: 500; }

/* ---- CTA: the first exchange, instead of an orb ---- */
.cta-chat { --chat-ink: #06303A; position: relative; aspect-ratio: 1; max-width: 380px; margin-left: auto; width: 100%; }
.cta-chat__panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 8% 7%;
  border-radius: 11%;
  background:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(135deg, rgba(103,232,249,0.95), rgba(15,90,110,0.92));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.30), 0 30px 60px rgba(0,0,0,0.45);
}
.cta-chat__msg { width: 86%; padding: 14px 16px 15px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.cta-chat__msg p { margin: 4px 0 0; font-size: 14px; max-width: none; color: inherit; }
.cta-chat__who { display: flex; align-items: center; gap: 6px; font: 500 11px/1 var(--pg-font-mono); letter-spacing: 0.06em; }
.cta-chat__who svg { width: 13px; height: 13px; stroke-width: 2; filter: none; }
.cta-chat__msg--in  { align-self: flex-start; background: rgba(5,8,22,0.88); color: #F4FBFD; border-bottom-left-radius: 4px; }
.cta-chat__msg--in .cta-chat__who { color: #A8BCD0; }
.cta-chat__msg--out { align-self: flex-end; background: #F4FBFD; color: var(--chat-ink); border-bottom-right-radius: 4px; }
.cta-chat__msg--out .cta-chat__who { color: #2F5C69; }
.cta-chat__meta { align-self: flex-end; width: 86%; margin: -4px 0 0; padding-right: 4px; font: 500 11px/1.2 var(--pg-font-mono); letter-spacing: 0.04em; color: #F4FBFD; text-align: right; text-shadow: 0 1px 8px rgba(6,48,58,0.6); }
.cta-chat__out { position: relative; align-self: flex-end; width: 86%; }
.cta-chat__out .cta-chat__msg { width: 100%; }
.cta-chat__dots { position: absolute; top: 0; right: 0; display: inline-flex; gap: 5px; padding: 10px 14px; border-radius: 14px; background: #F4FBFD; opacity: 0; }
.cta-chat__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--chat-ink); opacity: 0.5; }

.cta.in .cta-chat__msg--in  { animation: chat-pop 500ms var(--pg-ease) 300ms both; }
.cta.in .cta-chat__msg--in p { animation: chat-type 1300ms linear 700ms both; }
.cta.in .cta-chat__dots { animation: chat-dots 1300ms linear 2000ms both; }
.cta.in .cta-chat__msg--out { animation: chat-pop 500ms var(--pg-ease) 3300ms both; }
.cta.in .cta-chat__msg--out p { animation: chat-type 1500ms linear 3700ms both; }
.cta.in .cta-chat__meta { animation: chat-pop 500ms var(--pg-ease) 5200ms both; }
.cta.in .cta-chat__dots i:nth-child(2) { animation: chat-blink 900ms ease-in-out 200ms infinite; }
.cta.in .cta-chat__dots i:nth-child(1) { animation: chat-blink 900ms ease-in-out 0ms infinite; }
.cta.in .cta-chat__dots i:nth-child(3) { animation: chat-blink 900ms ease-in-out 400ms infinite; }
@keyframes chat-pop  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes chat-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes chat-dots { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes chat-blink { 50% { opacity: 1; } }
@media (max-width: 860px) { .cta-chat { margin: 8px auto 0; max-width: 340px; } }

/* ---- Remote-first: globe beside the story of how distance is handled ---- */
.split--flip > .globe-panel { order: -1; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; max-width: 52ch; }
.facts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; font-size: 15.5px; line-height: 1.55; color: var(--pg-fg-3); }
.facts li svg { width: 18px; height: 18px; stroke-width: 1.6; margin-top: 3px; color: var(--pg-cyan-ink); }
.facts strong { color: var(--pg-fg-1); font-weight: 500; }
@media (max-width: 860px) { .split--flip > .globe-panel { order: 0; } }
.split__text .tale__note { margin: 28px 0 0; font-size: 12px; line-height: 1.6; max-width: 36ch; }
