/* ============================================================
   Engentic — design tokens
   ============================================================ */
:root{
  --ink: #0B111A;
  --ink-rgb: 11,17,26;
  --panel: #131B27;
  --panel-2: #19222F;
  --line: #263242;
  --steel: #8996A6;
  --steel-dim: #55647A;
  --offwhite: #EDEFEF;
  --signal: #2F6FED;   /* confident engineering blue — agents / active state */
  --signal-dim: rgba(47,111,237,0.16);
  --amber: #F2A93B;    /* warm amber — CTA / secondary accent */
  --amber-dim: rgba(242,169,59,0.15);
  --btn-amber: #F2A93B; /* constant vibrant amber for solid button fills, regardless of theme */
  --btn-amber-hover: #F7B95A;
  --tag-integrate-color: #8FB8FF;
  --tag-integrate-bg: rgba(143,184,255,0.14);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --wrap: 1180px;
  --radius: 10px;
}

/* ---- Light theme override ---- */
:root[data-theme="light"]{
  --ink: #F5F7FA;
  --ink-rgb: 245,247,250;
  --panel: #FFFFFF;
  --panel-2: #ECEFF3;
  --line: #DCE2E9;
  --steel: #4B5768;
  --steel-dim: #7C8794;
  --offwhite: #0E1520;
  --signal: #1D4ED8;
  --signal-dim: rgba(29,78,216,0.10);
  --amber: #B96F00;
  --amber-dim: rgba(185,111,0,0.12);
  --tag-integrate-color: #2F4FAE;
  --tag-integrate-bg: rgba(47,79,174,0.10);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--ink);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
body, body *{
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; color: var(--steel); }
a{ color: inherit; }
ul{ list-style:none; margin:0; padding:0; }
img,svg{ display:block; max-width:100%; }
:focus-visible{
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--signal);
  margin: 0 0 14px;
  text-transform: uppercase;
}

/* faint schematic grid backdrop */
.grid-overlay{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary{
  background: var(--btn-amber);
  color: #1A1300;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.btn-primary:hover{ transform: translateY(-1px); background: var(--btn-amber-hover); }
.btn-ghost{
  background: transparent;
  color: var(--offwhite);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--signal); color: var(--signal); }
.btn-small{ padding: 9px 16px; }

/* ============================================================
   Header
   ============================================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--ink-rgb), 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  gap: 32px;
  height: 99px;
}
.header-left{
  display:flex;
  align-items:center;
  gap: 22px;
  margin-right:auto;
  flex-shrink: 0;
  min-width: 0;
}
.logo{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.header-cta{ flex-shrink:0; }
.logo:hover{ transform: translateY(-1px); }
.logo-mark{
  display:flex;
  line-height:0;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(47,111,237,0.4)) drop-shadow(0 0 8px rgba(47,111,237,0.25));
  animation: logoGlow 3.6s ease-in-out infinite;
  transition: filter .25s ease;
}
.logo:hover .logo-mark{
  filter: drop-shadow(0 2px 8px rgba(47,111,237,0.6)) drop-shadow(0 0 22px rgba(94,168,255,0.65));
  animation-play-state: paused;
}
@keyframes logoGlow{
  0%, 100%{ filter: drop-shadow(0 2px 6px rgba(47,111,237,0.4)) drop-shadow(0 0 8px rgba(47,111,237,0.25)); }
  50%{ filter: drop-shadow(0 2px 8px rgba(47,111,237,0.55)) drop-shadow(0 0 16px rgba(94,168,255,0.45)); }
}
@media (prefers-reduced-motion: reduce){
  .logo-mark{ animation: none; }
}
.accent-bar{ fill: #2F6FED; }
@keyframes logoPulse{
  0%, 100%{ transform: scale(1); opacity: 1; }
  50%{ transform: scale(1.28); opacity: .75; }
}
.logo-word{
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.wordmark-svg{ display:block; }
.wordmark-svg g[fill]{ fill: var(--offwhite); }
.logo-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.logo-tagline{
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--signal);
  width: 255px;
  text-align: justify;
  text-align-last: justify;
  -moz-text-align-last: justify;
}
.logo-tagline-pinned{
  position: relative;
  display: block;
  height: 19px;
  font-size: 14px;
}
.logo-tagline-pinned .tagline-lead{
  position: absolute;
  left: 0;
}
.logo-tagline-pinned .tagline-pinned-word{
  position: absolute;
}
.footer-logo{ display:flex; align-items:center; gap:10px; }
.main-nav{ display:flex; gap:28px; }
.main-nav a{
  text-decoration:none;
  color: var(--offwhite);
  opacity: 0.75;
  font-size: 14.5px;
  transition: color .15s ease, opacity .15s ease;
}
.main-nav a:hover{ color: var(--offwhite); opacity: 1; }

.nav-toggle{
  display:none;
  flex-direction: column;
  gap: 5px;
  background:none;
  border:none;
  cursor:pointer;
  padding: 6px;
}
.nav-toggle span{
  width: 22px; height: 2px; background: var(--offwhite); display:block;
}

/* ---- Header controls: language switcher + theme toggle ---- */
.header-controls{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Language switcher */
.lang-switch{ position: relative; }
.lang-toggle{
  display:flex;
  align-items:center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--offwhite);
  border-radius: 20px;
  padding: 6px 11px 6px 8px;
  cursor:pointer;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.lang-toggle:hover{ border-color: var(--steel-dim); }
.lang-toggle .chevron{ color: var(--steel); margin-left: 1px; }
.flag{
  display:inline-block;
  width: 18px; height: 12px;
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.flag svg{ width:100%; height:100%; display:block; }

.lang-menu{
  position:absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  display:none;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}
.lang-menu.is-open{ display:flex; }
.lang-menu li{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  cursor:pointer;
  font-size: 13.5px;
  color: var(--offwhite);
}
.lang-menu li:hover,
.lang-menu li:focus{
  background: var(--panel-2);
  outline: none;
}
.lang-menu li.is-selected{ color: var(--signal); }

/* Theme toggle */
.theme-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--offwhite);
  cursor:pointer;
  transition: transform .18s ease, border-color .18s ease, background .15s ease;
}
.theme-toggle:hover{ border-color: var(--steel-dim); transform: rotate(12deg); }
.theme-toggle .icon-moon{ display:none; }
:root[data-theme="light"] .theme-toggle .icon-sun{ display:none; }
:root[data-theme="light"] .theme-toggle .icon-moon{ display:block; color: var(--amber); }
:root:not([data-theme="light"]) .theme-toggle .icon-sun{ color: var(--amber); }

/* ============================================================
   Hero
   ============================================================ */
.hero{
  position: relative;
  z-index: 1;
  padding: 88px 0 64px;
  overflow: hidden;
}
.particle-field{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1{
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  color: var(--offwhite);
  max-width: 15ch;
}
.hero-sub{
  font-size: 17px;
  max-width: 46ch;
  color: var(--steel);
}
.hero-cta{
  display:flex; gap:14px; margin: 28px 0 40px;
  flex-wrap: wrap;
}
.hero-stats{
  display:flex;
  gap: 36px;
  margin:0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stats dt{
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--offwhite);
  font-weight: 700;
}
.hero-stats dd{
  margin:4px 0 0;
  font-size: 12.5px;
  color: var(--steel-dim);
  max-width: 16ch;
}

.hero-graphic{ position:relative; }
.hero-graphic svg{ width:100%; height:auto; }
.node-ring{
  fill: var(--panel);
  stroke: var(--line);
  stroke-width: 1.4;
}
.node-ring.dim{ fill: var(--ink); stroke: var(--line); }
.node-ring.core{
  fill: var(--signal-dim);
  stroke: var(--signal);
  stroke-width: 1.6;
}
.node-label{
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--steel);
  letter-spacing: 0.03em;
}
.node-label.small{ font-size: 10px; fill: var(--steel-dim); }
.node-label.core-label{ fill: var(--signal); font-size: 12px; font-weight: 600; }
.hero-brand-mark{
  filter: drop-shadow(0 0 5px rgba(47,111,237,0.55)) drop-shadow(0 0 12px rgba(94,168,255,0.35));
  animation: logoGlow 3.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce){
  .hero-brand-mark{ animation: none; }
}

@media (prefers-reduced-motion: reduce){
  #agentGraph animateMotion{ display:none; }
}

/* ============================================================
   Trust bar
   ============================================================ */
.trust{
  position: relative; z-index:1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 22px 0;
}
.trust-inner{ display:flex; align-items:center; gap: 18px 26px; flex-wrap:wrap; }
.trust-label{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel-dim);
  margin:0;
  white-space: nowrap;
}
.trust-list{
  display:flex; flex-wrap:wrap; gap: 10px;
}
.trust-list li{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--steel);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: color .15s ease, border-color .15s ease;
}
.trust-list li:hover{
  color: var(--signal);
  border-color: var(--signal);
}

/* ============================================================
   Section head (shared)
   ============================================================ */
.section-head{ max-width: 640px; margin-bottom: 40px; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--offwhite); }
.headline-stretch{
  white-space: nowrap;
  font-size: clamp(1.1rem, 2.4vw, 2.1rem);
}
.section-head:has(.headline-stretch){ max-width: none; }
@media (max-width: 720px){
  .headline-stretch{ white-space: normal; }
}
.approach .section-head{ max-width: 760px; }
.approach .section-head h2{ font-size: clamp(1.3rem, 2.6vw, 2.1rem); white-space: nowrap; }
@media (max-width: 640px){
  .approach .section-head h2{ white-space: normal; }
}
.section-sub{ font-size: 15.5px; }

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

/* ============================================================
   Services
   ============================================================ */
.services{ padding: 96px 0; }

.filter-bar{
  display:flex; gap: 8px; margin-bottom: 36px; flex-wrap:wrap;
}
.filter-btn{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--steel);
  padding: 9px 16px;
  border-radius: 20px;
  cursor:pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.filter-icon{
  transition: transform .5s cubic-bezier(.16,.8,.3,1), color .15s ease;
  flex-shrink: 0;
}
.filter-btn:hover .filter-icon{ transform: rotate(180deg); }
.filter-btn.is-active .filter-icon{ transform: rotate(360deg); color: var(--signal); }
.filter-btn:hover{ color: var(--offwhite); border-color: var(--steel); }
.filter-btn.is-active{
  background: var(--signal-dim);
  border-color: var(--signal);
  color: var(--signal);
}
@media (prefers-reduced-motion: reduce){
  .filter-icon{ transition: color .15s ease; }
  .filter-btn:hover .filter-icon,
  .filter-btn.is-active .filter-icon{ transform: none; }
}

.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.service-card:hover{
  transform: translateY(-3px);
  border-color: var(--signal);
  box-shadow: 0 10px 24px rgba(47,111,237,0.15);
}
.service-card:focus-visible{
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}
.service-card.is-hidden{ display:none; }
.service-card h3{
  font-size: 18px;
  color: var(--offwhite);
  margin-bottom: 8px;
}
.service-card p{ font-size: 14px; margin-bottom: 0; }
.card-benefits{
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-benefits li{
  position: relative;
  padding-left: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--steel);
}
.card-benefits li::before{
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
}
.card-example-hint{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--signal);
  margin-top: 16px;
  opacity: 0.75;
  transition: opacity .18s ease, transform .18s ease;
}
.service-card:hover .card-example-hint,
.service-card:focus-visible .card-example-hint{
  opacity: 1;
  transform: translateX(2px);
}
.card-icon{
  width: 40px; height: 40px;
  margin-bottom: 16px;
  color: var(--steel);
}
.card-icon svg{ width:100%; height:100%; }
.service-card:hover .card-icon{ color: var(--signal); }

.tag{
  display:inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.tag-build{ background: var(--amber-dim); color: var(--amber); }
.tag-integrate{ background: var(--tag-integrate-bg); color: var(--tag-integrate-color); }
.tag-govern{ background: var(--signal-dim); color: var(--signal); }
.tag-operate{ background: rgba(237,239,239,0.08); color: var(--offwhite); }

/* ============================================================
   Approach
   ============================================================ */
.approach{
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.priority-wall{
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.priority-wall-logo{
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 0 16px rgba(47,111,237,0.55));
}
.wall-grid{
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 820px;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 2px;
}
.wall-row{
  display: flex;
  gap: 5px;
}
.wall-row-offset{ margin-left: -22px; margin-right: -22px; }
.wall-cell{
  height: 56px;
  background: var(--signal-dim);
  border: 1px solid var(--signal);
  border-radius: 2px;
  opacity: 0;
  transform: scale(0.6);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
  transition-delay: var(--d);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: default;
}
.wall-cell:has(.wall-blur){ cursor: pointer; }
.priority-wall.is-visible .wall-cell{ opacity: 1; transform: scale(1); }
.wall-blur{
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--offwhite);
  filter: blur(2.5px);
  user-select: none;
  white-space: nowrap;
  transition: filter .2s ease, color .2s ease;
}
.wall-cell.is-revealed .wall-blur{
  filter: blur(0);
}
.wall-cell-priority{
  position: relative;
  background: var(--signal-dim);
  border-width: 2px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  cursor: default;
}
.wall-cell-cta{
  background: var(--amber);
  border-color: var(--amber);
  border-width: 2px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.wall-cell-cta span{
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: #1A1300;
  white-space: nowrap;
}
.wall-cell-cta:hover{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(242,169,59,0.4);
}
.wall-word{
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--offwhite);
  text-align: center;
}
.wall-tooltip{
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--offwhite);
  border: 1px solid var(--signal);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 5;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.wall-cell-priority:hover .wall-tooltip,
.wall-cell-priority:focus-within .wall-tooltip{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .wall-cell{ opacity: 1; transform: scale(1); transition: none; }
}
@media (max-width: 640px){
  .wall-row{ flex-wrap: wrap; }
  .wall-row-offset{ margin-left: 0; margin-right: 0; }
}

/* ============================================================
   Stack
   ============================================================ */
.stack{ padding: 48px 0 96px; }
.innovation-wall{
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}
.innovation-wall-label{
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--signal);
  text-align: center;
  margin: 0 0 20px;
}
.innovation-label-highlight{
  color: var(--amber);
  text-shadow: 0 0 16px rgba(242,169,59,0.5);
}
.innovation-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}
.innovation-chip{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--offwhite);
  background: var(--signal-dim);
  border: 2px solid var(--signal);
  border-radius: 3px;
  padding: 12px 10px;
}
@media (max-width: 720px){
  .innovation-row{ grid-template-columns: repeat(2, 1fr); }
}
.stack-groups{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stack-group h4{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-bottom: 14px;
  font-weight: 500;
}
.chip-list{ display:flex; flex-wrap: wrap; gap: 8px; }
.chip-list li{
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--offwhite);
  background: var(--signal-dim);
  border: 1px solid var(--signal);
  border-radius: 3px;
  padding: 9px 12px;
}

/* ============================================================
   Governance block (nested within Platform section)
   ============================================================ */
.governance-block{
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.governance-subeyebrow{ font-size: 11px; margin-bottom: 10px; }
.governance-block h3{ font-size: 18px; color: var(--offwhite); margin: 0 0 10px; }
.governance-block > p{ font-size: 14.5px; margin-bottom: 22px; }
.governance-logo{
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 12px rgba(47,111,237,0.5));
}
.governance-bricks{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 620px;
}
.gov-brick{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--offwhite);
  background: var(--signal-dim);
  border: 2px solid var(--signal);
  border-radius: 4px;
  padding: 14px 10px;
}
@media (max-width: 480px){
  .governance-bricks{ grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Contact
   ============================================================ */
.contact{ padding: 96px 0 110px; }
.contact-inner{
  display: block;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.contact-details{ text-align: left; }
.contact-copy h2{ font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--offwhite); }
.contact-details{ margin-top: 28px; display:grid; gap: 16px; }
.contact-details dt{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--steel-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-details dd{ margin: 3px 0 0; font-size: 15px; color: var(--offwhite); }
.contact-details a{ text-decoration:none; }
.contact-details a:hover{ color: var(--signal); }

.reveal-contact{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  color: var(--offwhite);
  text-align: left;
}
.reveal-contact .reveal-icon{ color: var(--steel-dim); flex-shrink:0; transition: color .15s ease; }
.reveal-contact .reveal-text{ font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.reveal-contact .reveal-hint{
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.reveal-contact:hover .reveal-icon{ color: var(--signal); }
.reveal-contact:hover .reveal-text{ color: var(--signal); }
.reveal-contact.is-revealed{ cursor: text; }
.reveal-contact.is-revealed .reveal-hint{ display:none; }

.contact-primary{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
}
.reveal-contact-primary{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--signal-dim);
  border-radius: 14px;
  padding: 22px 32px;
  min-width: 220px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.reveal-contact-primary:hover{
  transform: translateY(-3px);
  border-color: var(--signal);
  box-shadow: 0 10px 28px rgba(47,111,237,0.18);
}
.reveal-contact-primary .reveal-icon{ color: var(--signal); width: 20px; height: 20px; }
.reveal-contact-primary .reveal-label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-top: 2px;
}
.reveal-contact-primary .reveal-text{
  font-size: 19px;
  font-weight: 600;
  color: var(--offwhite);
}
.reveal-contact-primary:hover .reveal-text{ color: var(--signal); }
.reveal-contact-primary .reveal-hint{ margin-top: 2px; }
@media (max-width: 480px){
  .reveal-contact-primary{ min-width: 0; width: 100%; }
}
.reveal-contact.is-revealed .reveal-icon{ display:none; }
.reveal-contact.is-revealed a{ color: var(--offwhite); text-decoration: none; }
.reveal-contact.is-revealed a:hover{ color: var(--signal); }

.privacy-note{
  margin-top: 14px;
  font-size: 12px;
  color: var(--steel-dim);
}

.contact-form{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display:flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label{ display:flex; flex-direction:column; gap:8px; font-size: 13.5px; color: var(--steel); }
.contact-form input,
.contact-form textarea{
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--offwhite);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus{ border-color: var(--signal); }
.contact-form .btn{ margin-top: 6px; }
.form-note{
  font-size: 13px;
  color: var(--signal);
  margin: 0;
  min-height: 18px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  position: relative; z-index:1;
}
.footer-inner{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand p{ font-size: 13.5px; margin-top: 8px; max-width: 32ch; }
.footer-nav{ display:flex; gap: 20px; flex-wrap:wrap; }
.footer-nav a{ text-decoration:none; color: var(--steel); font-size: 13.5px; }
.footer-nav a:hover{ color: var(--offwhite); }
.footer-legal{
  width:100%;
  font-size: 12px;
  color: var(--steel-dim);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-graphic{ order: -1; max-width: 420px; margin: 0 auto; }
  .service-grid{ grid-template-columns: repeat(2, 1fr); }
  .stack-groups{ grid-template-columns: repeat(2, 1fr); }
  .governance-inner{ grid-template-columns: 1fr; }
  .contact-inner{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .main-nav{
    position: absolute;
    top: 99px; left:0; right:0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 18px 28px;
    display:none;
    gap: 16px;
  }
  .main-nav.is-open{ display:flex; }
  .nav-toggle{ display:flex; }
  .header-inner .btn-small{ display:none; }
  .logo-tagline{ display:none; }
  .header-controls{ gap: 8px; }
  .lang-toggle .lang-code{ display:none; }
  .lang-toggle{ padding: 6px 8px; }
  .service-grid{ grid-template-columns: 1fr; }
  .stack-groups{ grid-template-columns: 1fr; }
  .hero-stats{ flex-wrap: wrap; row-gap: 18px; }
}

/* ============================================================
   Motion & interaction layer
   ============================================================ */

/* Respect reduced motion globally for the custom interaction layer */
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
  .hero-animate > *{ animation:none !important; opacity:1 !important; }
  .blob{ animation:none !important; }
}

/* Scroll progress bar */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--signal), var(--amber));
  z-index: 100;
  transition: width .1s linear;
}

/* Cursor glow (desktop only, subtle) */
.cursor-glow{
  position: fixed;
  top:0; left:0;
  width: 420px; height: 420px;
  margin-left: -210px; margin-top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--signal-dim) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .4s ease;
  will-change: transform;
}
.cursor-glow.is-active{ opacity: 1; }
@media (max-width: 980px), (hover: none){
  .cursor-glow{ display:none; }
}

/* Scroll-reveal */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

.service-grid .service-card:nth-child(1){ transition-delay: .02s; }
.service-grid .service-card:nth-child(2){ transition-delay: .06s; }
.service-grid .service-card:nth-child(3){ transition-delay: .10s; }
.service-grid .service-card:nth-child(4){ transition-delay: .02s; }
.service-grid .service-card:nth-child(5){ transition-delay: .06s; }
.service-grid .service-card:nth-child(6){ transition-delay: .10s; }
.service-grid .service-card:nth-child(7){ transition-delay: .02s; }
.service-grid .service-card:nth-child(8){ transition-delay: .06s; }
.service-grid .service-card:nth-child(9){ transition-delay: .10s; }
.service-grid .service-card:nth-child(10){ transition-delay: .02s; }
.service-grid .service-card:nth-child(11){ transition-delay: .06s; }
.service-grid .service-card:nth-child(12){ transition-delay: .10s; }


.stack-groups .stack-group:nth-child(1){ transition-delay: 0s; }
.stack-groups .stack-group:nth-child(2){ transition-delay: .08s; }
.stack-groups .stack-group:nth-child(3){ transition-delay: .16s; }
.stack-groups .stack-group:nth-child(4){ transition-delay: .24s; }

.governance-list li:nth-child(1){ transition-delay: 0s; }
.governance-list li:nth-child(2){ transition-delay: .06s; }
.governance-list li:nth-child(3){ transition-delay: .12s; }
.governance-list li:nth-child(4){ transition-delay: .18s; }
.governance-list li:nth-child(5){ transition-delay: .24s; }
.governance-list li:nth-child(6){ transition-delay: .30s; }

/* Hero entrance animation (runs once on load, no JS needed) */
@keyframes heroFadeUp{
  from{ opacity:0; transform: translateY(22px); }
  to{ opacity:1; transform: translateY(0); }
}
.hero-animate > *{
  opacity: 0;
  animation: heroFadeUp .8s cubic-bezier(.16,.8,.3,1) forwards;
}
.hero-animate > *:nth-child(1){ animation-delay: .05s; }
.hero-animate > *:nth-child(2){ animation-delay: .15s; }
.hero-animate > *:nth-child(3){ animation-delay: .25s; }
.hero-animate > *:nth-child(4){ animation-delay: .35s; }
.hero-animate > *:nth-child(5){ animation-delay: .46s; }
.hero-animate > *:nth-child(6){ animation-delay: .58s; }

/* Accent gradient text (used inside the hero headline) */
.accent-text{
  background: linear-gradient(100deg, var(--signal) 20%, var(--amber) 50%, var(--signal) 80%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

/* Magnetic buttons */
.magnetic{ will-change: transform; }

/* Nav scroll-spy */
.main-nav a{ position: relative; }
.main-nav a::after{
  content:'';
  position: absolute;
  left:0; bottom: -4px;
  width: 0%;
  height: 1.5px;
  background: var(--signal);
  transition: width .25s ease;
}
.main-nav a.is-current{ color: var(--offwhite); }
.main-nav a.is-current::after{ width: 100%; }

/* Floating background blobs */
.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: .35;
}
.blob-signal{ background: var(--signal); }
.blob-amber{ background: var(--amber); }
.blob-approach{ width: 320px; height: 320px; top: -120px; right: -80px; animation: floatBlob 22s ease-in-out infinite; }
.blob-contact{ width: 360px; height: 360px; bottom: -140px; left: -100px; animation: floatBlob 26s ease-in-out infinite reverse; }
@keyframes floatBlob{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(30px,-24px) scale(1.12); }
}
.approach, .governance, .contact{ overflow: hidden; }

/* Back to top */
.back-to-top{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--offwhite);
  display:flex; align-items:center; justify-content:center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, border-color .2s ease;
  z-index: 45;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.back-to-top.is-visible{ opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover{ border-color: var(--signal); color: var(--signal); }

/* Filter transition states (JS-driven) */
.service-card{ transition: opacity .28s ease, transform .28s ease, border-color .18s ease; }
.service-card.is-filtering-out{ opacity: 0; transform: scale(.94); }
.service-card.is-hidden{ display: none; }

/* Tilt-ready cards: remove the flat lift, JS supplies rotation + lift together */
.service-card:hover{ transform: none; border-color: var(--steel-dim); }

/* ============================================================
   Live operations: terminal + sparkline stats
   ============================================================ */
.ops{ padding: 96px 0; position: relative; overflow: hidden; }
.ops .headline-stretch{ white-space: nowrap; }
.ops .blob-signal{ width: 300px; height: 300px; top: -80px; left: 10%; animation: floatBlob 24s ease-in-out infinite; }
.ops .blob-amber{ width: 260px; height: 260px; bottom: -100px; right: 8%; animation: floatBlob 20s ease-in-out infinite reverse; }
.ops-inner{
  position: relative;
  z-index: 1;
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.ops-copy h2{ font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--offwhite); max-width: 16ch; }
.ops-stats{
  display:grid;
  gap: 18px;
  margin-top: 28px;
}
.ops-stats li{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ops-stats .count-num{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--offwhite);
  min-width: 4.5ch;
}
.ops-stats small{
  font-size: 12.5px;
  color: var(--steel);
  line-height: 1.3;
}
.spark{
  display:flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}
.spark i{
  display:block;
  width: 4px;
  border-radius: 2px;
  background: var(--signal);
  animation: sparkPulse 1.8s ease-in-out infinite;
}
.spark i:nth-child(1){ height: 40%; animation-delay: 0s; }
.spark i:nth-child(2){ height: 70%; animation-delay: .15s; background: var(--amber); }
.spark i:nth-child(3){ height: 55%; animation-delay: .3s; }
.spark i:nth-child(4){ height: 90%; animation-delay: .45s; background: var(--amber); }
.spark i:nth-child(5){ height: 35%; animation-delay: .6s; }
@keyframes sparkPulse{
  0%, 100%{ transform: scaleY(0.6); opacity: .7; }
  50%{ transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce){
  .spark i{ animation: none; }
}

/* Terminal panel */
.terminal{
  background: #0A0E13;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
:root[data-theme="light"] .terminal{ background: #10151A; }
.terminal-bar{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.term-dot{ width: 10px; height: 10px; border-radius: 50%; display:inline-block; }
.term-dot-r{ background: #ff5f57; }
.term-dot-a{ background: #febc2e; }
.term-dot-g{ background: #28c840; }
.terminal-title{
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(237,239,239,0.55);
  margin-left: 6px;
}
.terminal-body{
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  padding: 18px 20px;
  height: 260px;
  overflow: hidden;
  color: rgba(237,239,239,0.85);
}
.term-line{ white-space: pre-wrap; word-break: break-word; }
.term-line .term-ts{ color: rgba(237,239,239,0.4); }
.term-line .term-agent{ color: var(--signal); }
.term-line .term-cursor{
  display:inline-block;
  width: 7px; height: 13px;
  background: var(--signal);
  margin-left: 2px;
  vertical-align: middle;
  animation: cursorBlink 1s steps(1) infinite;
}
@keyframes cursorBlink{ 50%{ opacity: 0; } }
@media (prefers-reduced-motion: reduce){
  .term-line .term-cursor{ animation: none; }
}

@media (max-width: 980px){
  .ops-inner{ grid-template-columns: 1fr; }
  .terminal-body{ height: 220px; }
}

/* Hero capability strip — a quick, self-explanatory "what we do" row */
.capability-strip{
  display:flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: -6px 0 22px;
}
.cap-item{
  display:flex;
  align-items:center;
  gap: 7px;
  padding: 6px 16px 6px 0;
  margin-right: 16px;
  border-right: 1px solid var(--line);
  color: var(--steel);
}
.cap-item:last-child{ border-right:none; margin-right:0; }
.cap-item svg{ color: var(--signal); flex-shrink:0; }
.cap-item span{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}
@media (max-width: 640px){
  .cap-item{ padding: 5px 10px 5px 0; margin-right: 10px; }
}

/* ============================================================
   Ops visuals stack (terminal + chart panel) and mini chart
   ============================================================ */
.ops-visuals{
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chart-panel{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px 20px;
}
.chart-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--steel);
  margin-bottom: 10px;
}
.chart-live{
  display:flex; align-items:center; gap:6px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  color: var(--signal);
}
.chart-live i{
  width:6px; height:6px; border-radius:50%;
  background: var(--signal);
  display:inline-block;
  animation: logoPulse 2s ease-in-out infinite;
}
.chart-svg{ width: 100%; height: 90px; display:block; margin-bottom: 14px; }
.chart-line{
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  transition: stroke-dashoffset 1.8s cubic-bezier(.16,.8,.3,1);
}
.chart-panel.is-visible .chart-line{ stroke-dashoffset: 0; }
.chart-area{ opacity: 0; transition: opacity 1s ease .6s; }
.chart-panel.is-visible .chart-area{ opacity: 1; }
.chart-dot{
  animation: logoPulse 2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.chart-bars{ display:flex; flex-direction:column; gap: 10px; }
.chart-bars li{
  display:grid;
  grid-template-columns: 110px 1fr;
  align-items:center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--steel);
}
.bar-track{
  height: 6px;
  border-radius: 3px;
  background: var(--panel-2);
  overflow: hidden;
}
.bar-fill{
  display:block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--signal), var(--amber));
  transition: width 1.1s cubic-bezier(.16,.8,.3,1);
}
.chart-panel.is-visible .bar-fill{ width: var(--w); }

@media (prefers-reduced-motion: reduce){
  .chart-line{ stroke-dashoffset: 0; transition: none; }
  .chart-area{ opacity: 1; transition: none; }
  .chart-dot{ animation: none; }
  .chart-live i{ animation: none; }
  .bar-fill{ width: var(--w); transition: none; }
}

/* Dashboard gauge (success-rate ring) + bottom row layout */
.chart-bottom{
  display:flex;
  align-items:center;
  gap: 18px;
}
.chart-bottom .chart-bars{ flex:1; }
.gauge-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 6px;
  flex-shrink:0;
  text-align:center;
}
.gauge-wrap{ position:relative; width:70px; height:70px; }
.gauge-svg{ width:100%; height:100%; transform: rotate(0deg); }
.gauge-fill{
  transition: stroke-dashoffset 1.6s cubic-bezier(.16,.8,.3,1);
}
.chart-panel.is-visible .gauge-fill{ stroke-dashoffset: var(--offset); }
.gauge-value{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family: var(--font-display);
  font-weight:700;
  font-size: 14px;
  color: var(--offwhite);
}
.gauge-block small{
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--steel);
  max-width: 11ch;
  line-height: 1.25;
}
@media (prefers-reduced-motion: reduce){
  .gauge-fill{ stroke-dashoffset: var(--offset); transition:none; }
}
@media (max-width: 560px){
  .chart-bottom{ flex-direction: column; align-items: flex-start; gap: 16px; }
  .gauge-block{ align-self: center; }
}

/* ============================================================
   Journey — 5-stage engagement timeline
   ============================================================ */
.journey{ padding: 96px 0; }
.journey-track{
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.journey-step{
  flex: 1 1 0;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 18px;
  transition: transform .18s ease, border-color .18s ease;
}
.journey-step:hover{
  transform: translateY(-3px);
  border-color: var(--steel-dim);
}
.journey-num{
  display: inline-flex;
  color: var(--signal);
}
.journey-num svg{ width: 20px; height: 20px; }
.journey-step h3{
  font-size: 15px;
  color: var(--offwhite);
  margin: 8px 0 8px;
}
.journey-step p{
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
.journey-arrow{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  color: var(--signal);
  animation: journeyFlow 2.4s ease-in-out infinite;
}
@keyframes journeyFlow{
  0%, 100%{ opacity: .3; color: var(--steel-dim); }
  50%{ opacity: 1; color: var(--signal); }
}
.journey-dot{
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 5px rgba(47,111,237,0.7);
  transform: translate(-50%, -50%);
  animation: journeyDotX 2.4s ease-in-out infinite;
}
@keyframes journeyDotX{
  0%{ left: 0%; opacity: 0; }
  15%{ opacity: 1; }
  85%{ opacity: 1; }
  100%{ left: 100%; opacity: 0; }
}
.journey-track .journey-arrow:nth-of-type(2){ animation-delay: 0s; }
.journey-track .journey-arrow:nth-of-type(4){ animation-delay: .3s; }
.journey-track .journey-arrow:nth-of-type(6){ animation-delay: .6s; }
.journey-track .journey-arrow:nth-of-type(8){ animation-delay: .9s; }
.journey-track .journey-arrow:nth-of-type(2) .journey-dot{ animation-delay: 0s; }
.journey-track .journey-arrow:nth-of-type(4) .journey-dot{ animation-delay: .3s; }
.journey-track .journey-arrow:nth-of-type(6) .journey-dot{ animation-delay: .6s; }
.journey-track .journey-arrow:nth-of-type(8) .journey-dot{ animation-delay: .9s; }
@media (prefers-reduced-motion: reduce){
  .journey-arrow{ animation: none; opacity: 1; color: var(--signal); }
  .journey-dot{ display: none; }
}

.journey-track .journey-step:nth-child(1){ transition-delay: 0s; }
.journey-track .journey-step:nth-child(3){ transition-delay: .08s; }
.journey-track .journey-step:nth-child(5){ transition-delay: .16s; }
.journey-track .journey-step:nth-child(7){ transition-delay: .24s; }
.journey-track .journey-step:nth-child(9){ transition-delay: .32s; }

@media (max-width: 980px){
  .journey-step{ flex-basis: 30%; }
  .journey-track{ flex-wrap: wrap; row-gap: 28px; }
  .journey-arrow{ display: none; }
}

@media (max-width: 720px){
  .journey-track{ flex-direction: column; }
  .journey-step{ flex-basis: auto; }
  .journey-arrow{
    display: flex;
    width: auto;
    height: 22px;
    align-self: center;
  }
  .journey-arrow svg{ transform: rotate(90deg); }
  .journey-dot{
    left: 50%;
    top: 0;
    animation-name: journeyDotY;
  }
  @keyframes journeyDotY{
    0%{ top: 0%; opacity: 0; }
    15%{ opacity: 1; }
    85%{ opacity: 1; }
    100%{ top: 100%; opacity: 0; }
  }
}

/* ============================================================
   Philosophy / Engineering-first section
   ============================================================ */
.philosophy{ padding: 96px 0 48px; }

.priorities-label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin: 0 0 12px;
}

.specialization-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 40px;
}
.specialization-badges li{
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--offwhite);
  background: var(--panel);
  border: 1.5px solid var(--signal);
  border-radius: 8px;
  padding: 12px 20px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.specialization-badges li:hover{
  transform: translateY(-2px);
  background: var(--signal-dim);
  box-shadow: 0 6px 16px rgba(47,111,237,0.2);
}

.philosophy-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.philosophy-feature{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .18s ease, border-color .18s ease;
}
.philosophy-feature:hover{
  transform: translateY(-3px);
  border-color: var(--steel-dim);
}
.philosophy-feature svg{ color: var(--signal); margin-bottom: 16px; }
.philosophy-feature h3{ font-size: 18px; color: var(--offwhite); margin-bottom: 8px; }
.philosophy-feature p{ font-size: 14px; margin: 0; }

.depth-chart .chart-bars{ margin-top: 4px; }

@media (max-width: 720px){
  .philosophy-grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   Depth chart — vertical column chart, highest first (AI leads)
   ============================================================ */
.depth-columns{
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 228px;
}
.depth-col{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
}
.depth-col .depth-icon{
  color: var(--signal);
  flex-shrink: 0;
  height: 15px;
}
.depth-col .depth-pct{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--offwhite);
  height: 16px;
  display: flex;
  align-items: center;
}
.col-track{
  width: 100%;
  max-width: 30px;
  height: 130px;
  background: var(--panel-2);
  border-radius: 5px 5px 0 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  flex-shrink: 0;
}
.col-fill{
  display: block;
  width: 100%;
  height: 0;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--amber), var(--signal));
  transition: height 1.1s cubic-bezier(.34,1.56,.64,1);
}
.chart-panel.is-visible .col-fill{ height: var(--h); }
.depth-col .depth-label{
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--offwhite);
  text-align: center;
  line-height: 1.25;
  max-width: 13ch;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  border: 1px solid var(--signal);
  border-radius: 18px;
  padding: 6px 14px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.depth-col:hover .depth-label{
  transform: translateY(-2px);
  border-color: var(--signal);
  background: var(--signal-dim);
  color: var(--signal);
}
.depth-col:hover .depth-pct,
.depth-col:hover .depth-icon{ color: var(--signal); }

.depth-columns .depth-col:nth-child(1) .col-fill{ transition-delay: .05s; }
.depth-columns .depth-col:nth-child(2) .col-fill{ transition-delay: .15s; }
.depth-columns .depth-col:nth-child(3) .col-fill{ transition-delay: .25s; }
.depth-columns .depth-col:nth-child(4) .col-fill{ transition-delay: .35s; }
.depth-columns .depth-col:nth-child(5) .col-fill{ transition-delay: .45s; }
.depth-columns .depth-col:nth-child(6) .col-fill{ transition-delay: .55s; }
.depth-columns .depth-col:nth-child(7) .col-fill{ transition-delay: .65s; }
.depth-columns .depth-col:nth-child(8) .col-fill{ transition-delay: .75s; }

@media (prefers-reduced-motion: reduce){
  .col-fill{ transition: none; }
}
@media (max-width: 860px){
  .depth-columns{ height: 190px; flex-wrap: wrap; }
  .depth-col{ flex: 1 1 21%; height: auto; }
  .col-track{ height: 100px; }
}
@media (max-width: 560px){
  .depth-col{ flex: 1 1 42%; }
  .depth-label{ max-width: 14ch; }
}

/* ============================================================
   Foundation banner — brick wall fills the whole box as a
   background texture; logo + "ENGINEERING" overlaid on top,
   theme-aware bricks (white on dark theme, blue on light theme)
   ============================================================ */
.foundation-banner-wide{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 24px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(47,111,237,0.25);
  transform: scale(0.97);
  opacity: 0;
  transition: transform .7s cubic-bezier(.16,.8,.3,1), opacity .7s ease;
}
.foundation-banner-wide.is-visible{
  transform: scale(1);
  opacity: 1;
}
.brick-wall-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.brick{
  fill: var(--panel-2);
  stroke: var(--signal);
  stroke-width: 1.5;
  stroke-opacity: 0.55;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.4);
  opacity: 0;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
  transition-delay: var(--d);
}
:root[data-theme="light"] .brick{ fill: rgba(29,78,216,0.14); stroke: var(--signal); }
.foundation-banner-wide.is-visible .brick{
  transform: scale(1);
  opacity: 1;
}
.foundation-overlay{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
  background: radial-gradient(ellipse at center, rgba(11,17,26,0.25) 0%, rgba(11,17,26,0.55) 100%);
  border-radius: var(--radius);
  width: 100%;
}
:root[data-theme="light"] .foundation-overlay{
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.6) 100%);
}
.foundation-mini-icon{
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 16px rgba(47,111,237,0.5));
}
.foundation-eyebrow{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 3.8rem);
  letter-spacing: 0.06em;
  color: var(--offwhite);
  margin: 16px 0 0;
  text-shadow: 0 0 30px rgba(47,111,237,0.7), 0 2px 12px rgba(0,0,0,0.4);
}
.foundation-caption{
  font-size: 14.5px;
  color: var(--steel);
  margin: 16px 0 0;
}
@media (prefers-reduced-motion: reduce){
  .foundation-banner-wide{ transform: scale(1); opacity: 1; transition: none; }
  .brick{ transform: scale(1); opacity: 1; transition: none; }
}

/* ============================================================
   Case-study & stats modals
   ============================================================ */
.modal-open{ overflow: hidden; }

.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(11,17,26,0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.modal-overlay.is-open{
  opacity: 1;
  visibility: visible;
}
.modal-panel{
  position: relative;
  background: var(--panel);
  border: 1px solid var(--signal-dim);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 40px 36px 32px;
  transform: translateY(16px) scale(0.98);
  transition: transform .25s cubic-bezier(.16,.8,.3,1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.modal-overlay.is-open .modal-panel{
  transform: translateY(0) scale(1);
}
.modal-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--steel);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.modal-close:hover{ color: var(--signal); border-color: var(--signal); }
.modal-eyebrow{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--signal);
  margin: 0 0 10px;
}
.modal-title{
  font-size: 22px;
  color: var(--offwhite);
  margin: 0 0 20px;
  line-height: 1.3;
  padding-right: 20px;
}
.modal-body{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modal-field-label{
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-bottom: 5px;
}
.modal-field-value{
  font-size: 14.5px;
  color: var(--offwhite);
  margin: 0;
  line-height: 1.55;
}
.modal-benefits-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-benefits-list li{
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--offwhite);
}
.modal-benefits-list li::before{
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--signal);
  font-size: 12px;
}
.modal-field-result{
  background: var(--signal-dim);
  border-radius: 10px;
  padding: 14px 16px;
}
.modal-field-result .modal-field-label{ color: var(--signal); }
.modal-cta{
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid var(--signal-dim);
  padding-bottom: 2px;
  transition: border-color .15s ease;
}
.modal-cta:hover{ border-color: var(--signal); }

.stats-trigger{
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel-dim);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-top: 14px;
}
.stats-trigger:hover{ color: var(--signal); }

.modal-panel-stats{ max-width: 480px; }
.modal-note{
  font-size: 13px;
  color: var(--steel-dim);
  margin: 0 0 20px;
  line-height: 1.5;
}
.stats-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.stats-table th{
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-dim);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.stats-table td{
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--offwhite);
}
.stats-table td:last-child,
.stats-table th:last-child{
  text-align: right;
  color: var(--signal);
  font-family: var(--font-mono);
}
.modal-reset{
  margin-top: 18px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.modal-reset:hover{ border-color: var(--signal); color: var(--signal); }

@media (max-width: 560px){
  .modal-panel{ padding: 32px 22px 26px; }
  .modal-title{ font-size: 19px; }
}

/* ============================================================
   Engineering obsessions block — logo + square brick grid
   ============================================================ */
.obsessions-block{
  text-align: center;
  margin: 0 0 36px;
}
.obsessions-logo{
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(47,111,237,0.5));
}
.obsessions-strip{
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
}
.obsessions-strip li{
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--offwhite);
  background: var(--signal-dim);
  border: 2px solid var(--signal);
  border-radius: 4px;
  padding: 8px;
}
@media (max-width: 480px){
  .obsessions-strip{ grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Wordplay — Engineering / Energetic / Agentic / Engentic
   ============================================================ */
.wordplay{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--steel);
  margin: 0 0 40px;
}
.wordplay span{ font-weight: 600; }
.wordplay-highlight{
  color: var(--signal);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(47,111,237,0.35);
}

