/* ============================================================
   IA Enterprise — Sistema Synapse
   Dark Premium Landing · Pure CSS
   ============================================================ */

/* 1. Fonts
   ---------------------------------------------------------- */
@font-face {
  font-family: 'Instrument Serif';
  src: url('../../fonts/Instrument_Serif/InstrumentSerif-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../../fonts/Instrument_Serif/InstrumentSerif-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../../fonts/Geist/Geist-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../../fonts/Geist/Geist-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../../fonts/JetBrains_Mono/JetBrainsMono-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* 2. Design Tokens
   ---------------------------------------------------------- */
:root {
  --ink:       #0A1628;
  --ink-800:   #1a2840;
  --ink-600:   #2d3f5c;
  --ink-400:   #6b7fa3;
  --ink-200:   #a8b4c8;
  --azure:     #2A6FDB;
  --amber:     #F39A1E;
  --amber-dk:  #D97A12;
  --ivory:     #F7F4EE;

  --font-serif:  'Instrument Serif', Georgia, serif;
  --font-sans:   'Geist', system-ui, -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;

  --max-w:       1240px;
  --px:          40px;
  --py:          120px;

  --border-faint:  1px solid rgba(247,244,238,0.06);
  --border-subtle: 1px solid rgba(247,244,238,0.10);
  --border-medium: 1px solid rgba(247,244,238,0.18);
  --border-amber:  1px solid rgba(243,154,30,0.40);

  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:   120ms;
  --dur-base:   200ms;
  --dur-slow:   360ms;
}

/* 3. Reset
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--ink);
  color: rgba(247,244,238,0.72);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* 4. Layout
   ---------------------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* 5. Typography
   ---------------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--amber-dk);
  text-transform: uppercase;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(44px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-weight: 600; font-size: 17px; color: var(--ivory); letter-spacing: -0.01em; }

.em-amber { font-style: italic; color: var(--amber); }

/* 6. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    background-color var(--dur-base) var(--ease-expo),
    border-color     var(--dur-base) var(--ease-expo),
    color            var(--dur-base) var(--ease-expo),
    opacity          var(--dur-base);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--ivory); color: var(--ink); }
.btn-primary:hover { background: rgba(247,244,238,0.88); }

.btn-ghost {
  border: 1px solid rgba(247,244,238,0.22);
  color: var(--ivory);
}
.btn-ghost:hover { border-color: rgba(247,244,238,0.50); }

/* 7. Logo SVG — Synapse Animation
   ---------------------------------------------------------- */

/* Nav logo */
.nav-logo-svg { width: 40px; height: 40px; overflow: visible; }
.nav-logo-svg .logo-lines line   { stroke: rgba(247,244,238,0.42); }
.nav-logo-svg .logo-node--outer  { fill: rgba(247,244,238,0.82); }
.nav-logo-svg .logo-node--center { fill: var(--amber); }
.nav-logo-svg .logo-node--center-inner { fill: var(--ink); }

/* Hero logo */
.hero-logo-svg { width: 100%; height: 100%; overflow: visible; }
.hero-logo-svg .logo-lines line   { stroke: rgba(247,244,238,0.28); }
.hero-logo-svg .logo-node--outer  { fill: rgba(247,244,238,0.88); }
.hero-logo-svg .logo-node--center { fill: var(--amber); }
.hero-logo-svg .logo-node--center-inner { fill: var(--ink); }

/* Footer logo */
.footer-logo-svg { width: 36px; height: 36px; }

/* Line draw-in */
.logo-line {
  stroke-dasharray: var(--ll, 60);
  stroke-dashoffset: var(--ll, 60);
  animation: lineDraw 0.6s var(--ease-expo) forwards;
}

/* Outer frame lines first, then radials */
.logo-line--5 { --ll: 57; animation-delay:   0ms; } /* NW→NE */
.logo-line--7 { --ll: 45; animation-delay:  60ms; } /* NW→SW */
.logo-line--8 { --ll: 56; animation-delay: 120ms; } /* NE→SE */
.logo-line--6 { --ll: 59; animation-delay: 180ms; } /* SW→SE */
.logo-line--1 { --ll: 36; animation-delay:  40ms; } /* NW→CENTER */
.logo-line--2 { --ll: 40; animation-delay: 100ms; } /* NE→CENTER */
.logo-line--3 { --ll: 38; animation-delay: 160ms; } /* SW→CENTER */
.logo-line--4 { --ll: 40; animation-delay: 220ms; } /* SE→CENTER */

@keyframes lineDraw {
  to { stroke-dashoffset: 0; }
}

/* Node pop-in */
.logo-node {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: nodeIn 0.35s var(--ease-expo) forwards;
}

.logo-node--1 { animation-delay: 820ms; }
.logo-node--2 { animation-delay: 860ms; }
.logo-node--3 { animation-delay: 900ms; }
.logo-node--4 { animation-delay: 940ms; }
.logo-node--center       { animation-delay: 1020ms; }
.logo-node--center-inner { animation-delay: 1020ms; }

@keyframes nodeIn {
  0%   { transform: scale(0); }
  65%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Amber center pulse — only hero logo */
.hero-logo-svg .logo-node--center {
  animation:
    nodeIn 0.35s var(--ease-expo) 1020ms forwards,
    amberPulse 3.2s ease-in-out 2s infinite;
  filter: drop-shadow(0 0 6px rgba(243,154,30,0.5));
}

@keyframes amberPulse {
  0%,100% { filter: drop-shadow(0 0 4px rgba(243,154,30,0.45)); }
  50%     { filter: drop-shadow(0 0 16px rgba(243,154,30,0.85)); }
}

/* 8. Navigation
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition:
    background-color var(--dur-slow) var(--ease-expo),
    border-color     var(--dur-slow) var(--ease-expo),
    backdrop-filter  var(--dur-slow) var(--ease-expo);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,22,40,0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(247,244,238,0.07);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__brand-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: rgba(247,244,238,0.55);
  transition: color var(--dur-base);
}
.nav__link:hover { color: var(--ivory); }

.nav__cta { flex-shrink: 0; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  flex-shrink: 0;
}
.nav__hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform var(--dur-base), opacity var(--dur-base);
  transform-origin: center;
}
.nav__hamburger.active .nav__hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.active .nav__hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.active .nav__hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px var(--px) 24px;
  border-top: var(--border-faint);
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  font-size: 16px;
  color: rgba(247,244,238,0.65);
  padding: 14px 0;
  border-bottom: var(--border-faint);
  transition: color var(--dur-base);
}
.nav__mobile-link:last-of-type { border-bottom: none; }
.nav__mobile-link:hover { color: var(--ivory); }
.nav__mobile-cta { margin-top: 20px; align-self: flex-start; }

/* 9. Hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(45,63,92,0.55) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 20%, rgba(10,22,40,0.65) 100%);
}

.hero__container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero__content { max-width: 580px; }

.hero__eyebrow { margin-bottom: 28px; }

.hero__h1 { margin-bottom: 24px; }

.hero__sub {
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 44px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
}

.hero__scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__scroll-line {
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(247,244,238,0.18);
}
.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(247,244,238,0.25);
  text-transform: uppercase;
}

/* Hero visual / diagram */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-diagram {
  position: relative;
  width: 320px;
  height: 320px;
  flex-shrink: 0;
}

.hero-diagram__rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  cursor: default;
}

/* 10. Stats
   ---------------------------------------------------------- */
.stats {
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
  padding: 0;
}

.stats__eyebrow {
  padding: 32px var(--px) 0;
  max-width: var(--max-w);
  margin: 0 auto;
  display: block;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.stats__item {
  padding: 28px 0 40px;
  padding-right: 40px;
  border-right: var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stats__item:first-child { padding-left: 0; }
.stats__item:last-child { border-right: none; padding-right: 0; }

.stats__number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
  display: block;
}

.stats__label {
  font-size: 14px;
  font-weight: 400;
  color: rgba(247,244,238,0.68);
  line-height: 1.35;
}

.stats__detail {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* 11. Services
   ---------------------------------------------------------- */
.services {
  padding: var(--py) 0;
}

.services__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}

.services__eyebrow { margin-bottom: 16px; }

.services__sub {
  font-size: 15px;
  color: rgba(247,244,238,0.50);
  max-width: 400px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(247,244,238,0.07);
  border: var(--border-subtle);
}

.service-card {
  background: var(--ink);
  padding: 40px;
  position: relative;
  transition:
    background-color var(--dur-slow) var(--ease-expo),
    box-shadow       var(--dur-slow) var(--ease-expo);
}
.service-card:hover {
  background: rgba(15,25,45,0.95);
  box-shadow: inset 0 0 0 1px rgba(243,154,30,0.32);
  z-index: 1;
}

.service-card__icon {
  width: 24px;
  height: 24px;
  color: var(--amber);
  margin-bottom: 24px;
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.service-card__title { margin-bottom: 12px; font-size: 18px; }

.service-card__body {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(247,244,238,0.55);
  margin-bottom: 28px;
}

/* 5th card — full-width with horizontal layout */
.service-card--wide {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-card--wide .service-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.service-card--wide .service-card__icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.service-card--wide .service-card__body {
  margin-bottom: 16px;
}

.service-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card__pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-200);
  border: 1px solid rgba(247,244,238,0.12);
  padding: 4px 12px;
  transition: border-color var(--dur-base), color var(--dur-base);
}

.service-card--wide:hover .service-card__pill {
  border-color: rgba(243,154,30,0.25);
}

.service-card__link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--amber-dk);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur-base);
}
.service-card__link:hover { gap: 10px; }

/* 12. Cases
   ---------------------------------------------------------- */
.cases {
  background: var(--ink-800);
  padding: var(--py) 0;
  border-top: var(--border-subtle);
}

.cases__header   { margin-bottom: 56px; }
.cases__eyebrow  { margin-bottom: 14px; }

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(247,244,238,0.07);
  border: var(--border-subtle);
}

.case-card {
  background: var(--ink-800);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background-color var(--dur-slow) var(--ease-expo);
}
.case-card:hover { background: rgba(22,34,56,0.95); }

.case-card__sector {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-200);
}

.case-card__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.25;
}

.case-card__metric {
  padding: 16px 0;
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.case-card__metric-value {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 42px;
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
}
.case-card__metric-before {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.case-card__body {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(247,244,238,0.52);
  flex: 1;
}

.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case-card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-200);
  border: 1px solid rgba(247,244,238,0.11);
  padding: 3px 9px;
}

/* 13. Process
   ---------------------------------------------------------- */
.process {
  padding: var(--py) 0;
  border-top: var(--border-subtle);
}

.process__header  { margin-bottom: 80px; }
.process__eyebrow { margin-bottom: 14px; }

.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}

.process__steps::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(247,244,238,0.07);
  pointer-events: none;
}

.process__step {
  padding-top: 40px;
  padding-right: 28px;
  border-right: var(--border-faint);
  position: relative;
}
.process__step:first-child { padding-left: 0; }
.process__step:last-child  { border-right: none; padding-right: 0; }

.process__step-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  background: var(--ink);
  border: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
.process__step:first-child .process__step-indicator { left: 0; }

.process__step-n {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--amber-dk);
  letter-spacing: 0.05em;
}

.process__step-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.process__step-body {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(247,244,238,0.48);
}

/* 14. Technology
   ---------------------------------------------------------- */
.technology {
  background: var(--ink-800);
  padding: var(--py) 0;
  border-top: var(--border-subtle);
}

.technology__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.technology__eyebrow { margin-bottom: 14px; }
.technology__sub {
  font-size: 15px;
  color: rgba(247,244,238,0.48);
  max-width: 400px;
}

.technology__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(247,244,238,0.07);
  border: var(--border-subtle);
}

.tech-category {
  background: var(--ink-800);
  padding: 36px 32px;
}

.tech-category__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--amber-dk);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.tech-category__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(247,244,238,0.62);
  border: 1px solid rgba(247,244,238,0.11);
  padding: 5px 11px;
  display: inline-block;
  width: fit-content;
  transition: border-color var(--dur-base), color var(--dur-base);
}
.tech-item:hover {
  border-color: rgba(243,154,30,0.30);
  color: rgba(247,244,238,0.88);
}

/* 15. Contact
   ---------------------------------------------------------- */
.contact {
  padding: var(--py) 0;
  border-top: var(--border-subtle);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: start;
}

.contact__intro {
  position: sticky;
  top: 110px;
}

.contact__eyebrow { margin-bottom: 20px; }
.contact__h2      { margin-bottom: 16px; }

.contact__sub {
  font-size: 16px;
  color: rgba(247,244,238,0.52);
  max-width: 360px;
  margin-bottom: 40px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(247,244,238,0.42);
  letter-spacing: 0.04em;
}
.contact__detail-item a:hover { color: rgba(247,244,238,0.72); }
.contact__detail-item svg { flex-shrink: 0; }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-field { position: relative; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 8px;
  transition: color var(--dur-base);
}
.form-field:focus-within .form-label { color: var(--amber-dk); }

.form-input,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(247,244,238,0.18);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  padding: 6px 0 14px;
  outline: none;
  transition: border-color var(--dur-base);
  -webkit-appearance: none;
  border-radius: 0;
}
.form-input:focus,
.form-textarea:focus { border-bottom-color: var(--amber); }
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(247,244,238,0.18); }
.form-textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

/* Remove autofill bg */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:focus {
  transition: background-color 9999s ease-in-out 0s;
  -webkit-text-fill-color: var(--ivory) !important;
}

.form-submit { display: flex; flex-direction: column; gap: 14px; }

.form-disclaimer {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(247,244,238,0.22);
  line-height: 1.6;
}

.form-message {
  display: none;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.form-message.success {
  display: block;
  border: 1px solid rgba(42,111,219,0.38);
  background: rgba(42,111,219,0.07);
  color: rgba(247,244,238,0.80);
}
.form-message.error {
  display: block;
  border: 1px solid rgba(243,154,30,0.38);
  background: rgba(243,154,30,0.06);
  color: rgba(243,154,30,0.90);
}

/* 16. Footer
   ---------------------------------------------------------- */
.footer {
  border-top: var(--border-subtle);
  padding: 64px 0 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 80px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: var(--border-faint);
  margin-bottom: 28px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 220px;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: rgba(247,244,238,0.35);
}

.footer__address {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(247,244,238,0.28);
  line-height: 1.8;
}
.footer__email { transition: color var(--dur-base); }
.footer__email:hover { color: rgba(247,244,238,0.55); }

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-dk);
  margin-bottom: 18px;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }

.footer__link {
  font-size: 14px;
  color: rgba(247,244,238,0.45);
  transition: color var(--dur-base);
}
.footer__link:hover { color: rgba(247,244,238,0.80); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__legal,
.footer__contact-info {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(247,244,238,0.20);
}

/* 17. Scroll Reveal
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity   0.6s var(--ease-expo),
    transform 0.6s var(--ease-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay:  80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* 18. Reduced Motion
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .logo-line {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .logo-node {
    animation: none !important;
    transform: scale(1) !important;
  }
  .hero-logo-svg .logo-node--center {
    animation: none !important;
    filter: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration:  0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 19. Responsive
   ---------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --py: 96px; }

  .hero__grid         { grid-template-columns: 1fr; gap: 0; }
  .hero__visual       { display: none; }
  .hero__content      { max-width: 100%; }

  .services__header   { grid-template-columns: 1fr; gap: 20px; }
  .services__sub      { max-width: 100%; }

  .technology__header { grid-template-columns: 1fr; gap: 20px; }

  .technology__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-category:nth-child(odd) { border-right: none; }

  .process__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(247,244,238,0.07);
  }
  .process__steps::before { display: none; }
  .process__step {
    background: var(--ink);
    padding: 28px 24px;
    border-right: none;
  }
  .process__step-indicator { position: static; margin-bottom: 16px; }
}

@media (max-width: 768px) {
  :root { --px: 20px; --py: 80px; }

  .nav__links,
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats__item { border-right: none; }
  .stats__item:nth-child(odd) { border-right: var(--border-subtle); }
  .stats__item:nth-child(3),
  .stats__item:nth-child(4) { border-top: var(--border-subtle); }

  .services__grid { grid-template-columns: 1fr; }

  .cases__grid { grid-template-columns: 1fr; }

  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .process__step:nth-child(5) { grid-column: 1 / -1; }

  .technology__grid { grid-template-columns: 1fr; }
  .tech-category { border-right: none !important; }

  .contact__grid  { grid-template-columns: 1fr; gap: 56px; }
  .contact__intro { position: static; }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer__brand { max-width: 100%; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { border-right: none !important; border-top: var(--border-subtle); }
  .stats__item:first-child { border-top: none; }
}

/* ============================================================
   Visual enhancements — data-flow, charts, decorations
   ============================================================ */

/* ── Hero data-flow visualization ── */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-flow {
  width: 100%;
  max-width: 460px;
  height: auto;
  overflow: visible;
}

/* Input pipe draw-in */
.hf-pipe {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: hfDraw 1s var(--ease-expo) forwards;
}
.hf-pipe--1 { animation-delay: 0.3s; }
.hf-pipe--2 { animation-delay: 0.5s; }
.hf-pipe--3 { animation-delay: 0.7s; }
.hf-pipe--4 { animation-delay: 1.2s; }
.hf-pipe--5 { animation-delay: 1.4s; }
.hf-pipe--6 { animation-delay: 1.6s; }

@keyframes hfDraw {
  to { stroke-dashoffset: 0; }
}

/* Source node pulse */
.hf-src-dot {
  animation: hfSrcPulse 2.8s ease-in-out 1s infinite;
}
@keyframes hfSrcPulse {
  0%,100% { opacity: 0.55; }
  50%      { opacity: 0.95; }
}

/* Output node pulse */
.hf-out-dot {
  animation: hfOutPulse 3s ease-in-out 1.8s infinite;
}
@keyframes hfOutPulse {
  0%,100% { opacity: 0.5; }
  50%      { opacity: 1.0; }
}

/* Traveling data packets — offset-path along SVG paths */
.hf-packet {
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.hf-packet--1 {
  offset-path: path('M45,105 C130,105 160,185 220,220');
  animation: hfTravel 2.6s ease-in-out 1.2s infinite;
}
.hf-packet--2 {
  offset-path: path('M45,220 C115,220 165,220 220,220');
  animation: hfTravel 2.2s ease-in-out 2.0s infinite;
}
.hf-packet--3 {
  offset-path: path('M45,335 C130,335 160,255 220,220');
  animation: hfTravel 2.8s ease-in-out 1.6s infinite;
}
.hf-packet--4 {
  offset-path: path('M220,220 C280,200 335,130 395,105');
  animation: hfTravel 2.4s ease-in-out 2.4s infinite;
}
.hf-packet--5 {
  offset-path: path('M220,220 C285,220 340,220 395,220');
  animation: hfTravel 2.0s ease-in-out 2.8s infinite;
}
.hf-packet--6 {
  offset-path: path('M220,220 C280,240 335,310 395,335');
  animation: hfTravel 2.6s ease-in-out 3.2s infinite;
}

@keyframes hfTravel {
  0%   { offset-distance: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ── Case card mini-charts ── */
.case-card__chart {
  width: 100%;
  height: 72px;
  margin-bottom: 4px;
}
.case-card__chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Bar chart animation */
.chart-bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
  transition: transform 0.5s var(--ease-expo);
}
.chart-animate .chart-bar { transform: scaleY(1); }

/* Line chart draw-in */
.chart-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 0.9s var(--ease-expo);
}
.chart-area {
  opacity: 0;
  transition: opacity 0.6s ease 0.5s;
}
.chart-animate .chart-line--hist     { stroke-dashoffset: 0; }
.chart-animate .chart-line--forecast { stroke-dashoffset: 0; transition-delay: 0.55s; }
.chart-animate .chart-area           { opacity: 1; }

/* Gauge animation */
.chart-gauge {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s var(--ease-expo) 0.2s;
}
.chart-needle {
  transform-box: fill-box;
  transform-origin: 100% 68px;
  transform: rotate(-144deg);
  transition: transform 1s var(--ease-expo) 0.3s;
}
.chart-animate .chart-gauge  { stroke-dashoffset: 0; }
.chart-animate .chart-needle { transform: rotate(0deg); }

/* ── Service wide card background art ── */
.service-card--wide {
  position: relative;
  overflow: hidden;
}
.service-card__bg-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 480px;
  height: 110px;
  pointer-events: none;
  opacity: 0.6;
}

/* ── Technology circuit band ── */
.tech-circuit {
  width: 100%;
  margin-bottom: 0;
  overflow: hidden;
  border: var(--border-faint);
  border-bottom: none;
}
.tech-circuit svg {
  display: block;
  width: 100%;
  height: 48px;
}

/* ── Reduced motion overrides ── */
@media (prefers-reduced-motion: reduce) {
  .hf-pipe,
  .hf-packet,
  .hf-src-dot,
  .hf-out-dot {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    offset-distance: 100% !important;
    opacity: 0 !important;
  }
  .chart-bar,
  .chart-line,
  .chart-gauge,
  .chart-needle,
  .chart-area {
    transform: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
    transition: none !important;
  }
}
