/* ============================================================
   FLOWKEY — "A Linha de Fluxo" (v6)
   Clean, deep, corporate-tech. A generative flow field and a
   live terminal open the page; a continuous line — drawn by
   scroll — travels it. Bento surfaces with layered depth.
   Navy #0c1f33 / brand blue #59a5f2.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  --navy: #0c1f33;
  --navy-deep: #081521;
  --blue: #59a5f2;
  --cyan: #7dd0f5;
  --blue-link: #1f6fc4;
  --frost: #f0f6fd;
  --white: #ffffff;
  --muted: #4a627b;
  --line: rgba(12, 31, 51, 0.12);
  --ok: #34d399;
  --warn: #fbbf24;

  --grad: linear-gradient(100deg, var(--blue-link), var(--blue) 55%, var(--cyan));
  --card-grad: linear-gradient(180deg, #ffffff, #f7fbff);

  --shadow-card: 0 1px 2px rgba(12, 31, 51, 0.05), 0 12px 32px -16px rgba(12, 31, 51, 0.16);
  --shadow-hover: 0 2px 4px rgba(12, 31, 51, 0.06), 0 28px 64px -24px rgba(31, 111, 196, 0.35);
  --shadow-lift: 0 16px 32px -16px rgba(12, 31, 51, 0.35);

  --r: 6px;

  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "Menlo", monospace;

  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  overflow-x: clip; /* nenhum elemento pode criar scroll horizontal */
}

::selection { background: var(--blue); color: var(--navy); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

p { color: var(--muted); }

.display {
  font-family: var(--font-display);
  font-stretch: 116%;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--navy);
}

/* gradient ink for the word that matters */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-link);
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--blue);
  flex: none;
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--white); }
.section--frost { background: linear-gradient(180deg, #f5faff, #e9f2fc); }
.section--light { background: var(--white); } /* alias (legal pages) */

.section--navy {
  background:
    linear-gradient(rgba(8, 21, 33, 0.85), rgba(8, 21, 33, 0.9)),
    url("../img/banner.jpg") center / cover no-repeat;
  color: var(--white);
}
.section--navy .eyebrow { color: var(--blue); }
.section--navy p { color: rgba(255, 255, 255, 0.72); }
.section--navy h2 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin: 1rem 0 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
}
.btn .btn-node {
  width: 8px;
  height: 8px;
  background: var(--blue);
  flex: none;
  transition: transform 0.3s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:hover .btn-node { transform: rotate(45deg); }
.btn:active { transform: none; box-shadow: none; }

.btn--solid { background: var(--navy); color: var(--white); }
.btn--solid:hover { background: var(--blue-link); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: rgba(255, 255, 255, 0.65); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--inverse { background: var(--white); color: var(--navy); }
.btn--inverse:hover { background: var(--blue); color: var(--navy); }
.btn--inverse:hover .btn-node { background: var(--navy); }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.86rem; gap: 0.55rem; }

.section--navy .btn--ghost { border-color: rgba(255, 255, 255, 0.3); color: var(--white); background: transparent; }
.section--navy .btn--ghost:hover { border-color: var(--white); }

/* ---------- Floating glass header ---------- */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  animation: header-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes header-in {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: none; }
}
.site-header .container {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
  padding-left: 1.4rem;
  padding-right: 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(12, 31, 51, 0.1);
  border-radius: var(--r);
  box-shadow: 0 8px 32px -16px rgba(12, 31, 51, 0.25);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
}
.site-header.is-scrolled .container {
  height: 56px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 40px -16px rgba(12, 31, 51, 0.32);
}

/* the flow reaches the header: scroll progress along the bar */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 0 0 var(--r) var(--r);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
@media (max-width: 1220px) {
  .site-header { top: 0; }
  .site-header .container { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 24px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 1.55rem; }
/* each link is a node on the flow: the square lights up on hover/active */
.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy);
  padding: 0.35rem 0;
  transition: color 0.18s ease;
}
.nav-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--blue);
  opacity: 0;
  transform: scale(0) rotate(45deg);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.nav-list a:hover::before, .nav-list a.is-active::before {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.nav-list a:hover { color: var(--blue-link); }
.nav-list a.is-active { color: var(--navy); }

.nav-list a.nav-cta,
.nav-list a.nav-cta.is-active {
  margin-left: 0.4rem;
  color: var(--white);
  background: var(--navy);
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.18s ease;
}
.nav-list a.nav-cta::before { display: none; }
.nav-list a.nav-cta:hover { background: var(--blue-link); color: var(--white); }

/* language dropdown */
.lang-dropdown { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.lang-btn:hover { border-color: var(--navy); }
.lang-btn svg { transition: transform 0.2s ease; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  padding: 0.4rem;
  display: none;
  z-index: 60;
}
.lang-menu.is-open { display: block; }
/* hover fallback: works even without JS */
.lang-dropdown:hover .lang-menu, .lang-dropdown:focus-within .lang-menu { display: block; }
.lang-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.lang-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}
.lang-menu a::before { display: none !important; }
.lang-menu a::after { display: none !important; }
.lang-menu a:hover { background: var(--frost); color: var(--navy); }
.lang-menu a.is-current { color: var(--blue-link); background: var(--frost); }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- The flow line (signature) ---------- */
.spine {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 5;
}
.spine path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
}
.spine .spine-track {
  stroke: var(--line);
  stroke-width: 1;
}
.spine rect {
  fill: var(--white);
  stroke: var(--navy);
  stroke-width: 1.5;
  transition: fill 0.3s ease;
}
.spine rect.is-lit { fill: var(--blue); }
@media (max-width: 1279px) { .spine { display: none; } }

/* ---------- Hero: flow field + live terminal ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--white);
  padding: 8.5rem 0 6rem;
  overflow: hidden;
}

.flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 82%, var(--white) 100%),
    linear-gradient(90deg, var(--white) 30%, rgba(255, 255, 255, 0.82) 48%, rgba(255, 255, 255, 0) 80%);
}

.hero .container {
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.7rem);
  line-height: 1.07;
  margin: 1.3rem 0 1.4rem;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hero-sub {
  max-width: 33rem;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-stack {
  margin-top: 2.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-stack b { font-weight: 500; color: var(--blue-link); }

/* orchestrated entrance */
[data-rise] { opacity: 0; transform: translateY(20px); animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
[data-rise="1"] { animation-delay: 0.1s; }
[data-rise="2"] { animation-delay: 0.22s; }
[data-rise="3"] { animation-delay: 0.36s; }
[data-rise="4"] { animation-delay: 0.5s; }
[data-rise="5"] { animation-delay: 0.62s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* the terminal window — automation, live */
.terminal-wrap { position: relative; }
.terminal-wrap::before {
  content: "";
  position: absolute;
  inset: -20% -14%;
  background: radial-gradient(closest-side, rgba(89, 165, 242, 0.28), transparent 72%);
  pointer-events: none;
}
.terminal {
  position: relative;
  background: rgba(8, 21, 33, 0.95);
  border: 1px solid rgba(89, 165, 242, 0.32);
  border-radius: var(--r);
  box-shadow:
    0 2px 4px rgba(12, 31, 51, 0.2),
    0 48px 96px -32px rgba(12, 31, 51, 0.55);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  animation: hover-float 7s ease-in-out infinite;
}
@keyframes hover-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(89, 165, 242, 0.16);
}
.terminal-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.terminal-bar .dot:first-child { background: var(--blue); }
.terminal-title {
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}
.terminal-body {
  padding: 1.15rem 1.25rem 1.35rem;
  min-height: 268px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 2.05;
}
.terminal-body .t-line { display: block; }
.t-cmd .t-dollar { color: var(--blue); margin-right: 0.55rem; }
.t-ok { color: var(--ok); }
.t-warn { color: var(--warn); }
.t-dim { color: rgba(255, 255, 255, 0.5); }
.t-mark { margin-right: 0.55rem; }
.terminal-caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--blue);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-scroll {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: 2rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--blue), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(1) translateY(8px); opacity: 0; }
}

/* ---------- Solutions: bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.15rem;
}
.bento-tile {
  position: relative;
  background: var(--card-grad);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bento-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(89, 165, 242, 0.6);
  box-shadow: var(--shadow-hover);
}
.bento .reveal:nth-child(2) { transition-delay: 0.08s; }
.bento .reveal:nth-child(3) { transition-delay: 0.16s; }
.bento .reveal:nth-child(4) { transition-delay: 0.24s; }
.bento .reveal:nth-child(5) { transition-delay: 0.32s; }
.bento .reveal:nth-child(6) { transition-delay: 0.4s; }

.bento-ba { grid-column: span 7; grid-row: span 2; display: flex; flex-direction: column; }
.bento-cx, .bento-it { grid-column: span 5; }
.bento-partners, .bento-stat { grid-column: span 4; }

.bento-tile h3 {
  font-family: var(--font-display);
  font-stretch: 114%;
  font-weight: 750;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}
.bento-ba h3 { font-size: 1.55rem; }
.sol-platform {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.05rem;
}
.bento-tile > p { font-size: 0.98rem; }

.sol-icon { width: 46px; height: 46px; margin-bottom: 1.3rem; }
.bento-ba .sol-icon { width: 56px; height: 56px; }
.sol-icon path { stroke: var(--navy); stroke-width: 1.6; }
.sol-icon .n { fill: var(--white); stroke: var(--navy); stroke-width: 1.6; }
.sol-icon .n--solid { fill: var(--blue); stroke: none; }
.bento-tile:hover .sol-icon .n--solid { fill: var(--blue-link); }

.tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.6rem;
}
.tile-tags span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--blue-link);
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.28rem 0.6rem;
}

.bento-partners {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.partners-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.partners-logos { display: flex; align-items: center; gap: 1.4rem; }
.partners-logos img { height: 40px; width: auto; }

.bento-stat { display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; }
.stat-num {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: 2.7rem;
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.stat-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  55% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

/* ---------- Services: three equal cards, one sentence each ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  align-items: stretch;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-grad);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  padding: 2.2rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(89, 165, 242, 0.6);
  box-shadow: var(--shadow-hover);
}
.service-card .sol-icon { margin-bottom: 1.2rem; }
.service-card h3 {
  font-family: var(--font-display);
  font-stretch: 114%;
  font-weight: 750;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.service-card .sol-platform { margin-bottom: 0.85rem; }
.service-card p { font-size: 0.97rem; }
.service-card--featured {
  border-color: rgba(89, 165, 242, 0.55);
  background: linear-gradient(180deg, #f3f9ff, #e9f2fd);
}
.focus-chip {
  position: absolute;
  top: -12px;
  left: 1.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--white);
  padding: 0.28rem 0.7rem;
  border-radius: 3px;
}
.services-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* practice-flow icon variant for process steps */
.process-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 0.5rem;
}
.process-icon path { stroke: var(--navy); stroke-width: 1.6; }
.process-icon .n { fill: var(--white); stroke: var(--navy); stroke-width: 1.6; }
.process-icon .n--solid { fill: var(--blue); stroke: none; }

/* trust line under the practice flow */
.trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem 2.8rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-row img {
  height: 38px;
  width: auto;
  filter: grayscale(1) contrast(1.15) opacity(0.75);
  transition: filter 0.25s ease;
}
.trust-row img:hover { filter: none; }

/* ---------- Service sections (one block per offer, focus first) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.service-grid--flip .service-media { order: -1; }

.service-list { display: grid; gap: 0.85rem; margin-top: 1.7rem; }
.service-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
  color: var(--muted);
}
.service-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--blue);
}

.service-media { display: grid; gap: 1.1rem; }

.partner-badge {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.partner-badge img { height: 44px; width: auto; }
.partner-badge-text { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.partner-badge-text strong { display: block; color: var(--navy); font-size: 0.98rem; }

.mini-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.mini-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.98rem;
  color: var(--muted);
  padding: 1.1rem 1.2rem;
  background: var(--card-grad);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
}
.mini-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--blue);
}

/* about-on-navy variants */
.section--navy .about-block h3 { color: var(--white); }
.section--navy .value-cell {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}
.section--navy .value-cell:hover {
  border-color: var(--blue);
  box-shadow: none;
  background: rgba(89, 165, 242, 0.12);
}

/* ---------- Use cases: where automation lands ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.case-card {
  background: var(--card-grad);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  padding: 1.7rem 1.6rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.case-card:hover {
  transform: translateY(-3px);
  border-color: rgba(89, 165, 242, 0.55);
  box-shadow: var(--shadow-hover);
}
.case-card h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-stretch: 114%;
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}
.case-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--blue);
}
.case-card p { font-size: 0.92rem; }
.cases-grid .reveal:nth-child(2), .cases-grid .reveal:nth-child(5) { transition-delay: 0.1s; }
.cases-grid .reveal:nth-child(3), .cases-grid .reveal:nth-child(6) { transition-delay: 0.2s; }
.cases-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cases-grid--4 .reveal:nth-child(4) { transition-delay: 0.3s; }
@media (max-width: 991px) { .cases-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cases-grid--4 { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 1.2rem 0;
  font-weight: 600;
  font-size: 1.04rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  list-style: none;
  transition: color 0.18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-link); }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--blue-link);
  flex: none;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 2.5rem 1.3rem 0;
  max-width: 70ch;
  font-size: 0.98rem;
}

/* ---------- Process ---------- */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
/* the line draws itself across the steps when they enter */
.process::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s;
  z-index: 1;
}
.process.is-visible::before { transform: scaleX(1); }

.process-step {
  position: relative;
  padding-top: 1.9rem;
  border-top: 1px solid var(--line);
}
.process-step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--blue);
  z-index: 2;
}
.process-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--blue-link);
}
.process-step h3 {
  font-family: var(--font-display);
  font-stretch: 114%;
  font-weight: 750;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 0.55rem 0 0.55rem;
}
.process-step p { font-size: 0.95rem; }
.process .reveal:nth-child(2) { transition-delay: 0.15s; }
.process .reveal:nth-child(3) { transition-delay: 0.3s; }
.process .reveal:nth-child(4) { transition-delay: 0.45s; }

/* ---------- Vision ---------- */
.vision-statement {
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 880px;
  margin: 1.4rem 0 1.6rem;
  color: var(--white);
}
.vision-statement em { font-style: normal; color: var(--blue); }
.vision-body { max-width: 700px; }
.vision-cta { margin-top: 2.4rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 70% 120% at 85% 50%, rgba(89, 165, 242, 0.18), transparent),
    var(--navy);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.cta-inner h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 22ch;
}
.cta-inner p { color: rgba(255, 255, 255, 0.65); margin-top: 0.6rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4rem);
}
.about-grid--even {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.about-block + .about-block { margin-top: 2.4rem; }
.about-block h3 {
  font-family: var(--font-display);
  font-stretch: 114%;
  font-weight: 750;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0.9rem 0 0.7rem;
}

.about-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  background: var(--navy);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
}
.about-photo img {
  width: 100%;
  height: 114%;
  margin-top: -7%;
  object-fit: cover;
  will-change: transform;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(12, 31, 51, 0) 55%, rgba(12, 31, 51, 0.35));
  pointer-events: none;
}

.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.value-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card-grad);
  box-shadow: var(--shadow-card);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.value-cell::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--blue);
  transition: transform 0.3s ease;
}
.value-cell:hover { border-color: rgba(89, 165, 242, 0.6); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.value-cell:hover::before { transform: rotate(45deg); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin: 1rem 0 1.1rem;
}

.contact-list { margin-top: 2rem; display: grid; gap: 1rem; }
.contact-list a, .contact-list span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: var(--navy);
  overflow-wrap: anywhere;
  transition: color 0.18s ease;
}
.contact-list a:hover { color: var(--blue-link); }
.contact-list .k {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-link);
  min-width: 3.6rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  background: var(--card-grad);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
}
.field input, .field textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--navy);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-link);
  box-shadow: 0 0 0 3px rgba(89, 165, 242, 0.25);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(74, 98, 123, 0.5); }

.form-footer { grid-column: 1 / -1; margin-top: 0.5rem; }

.form-success {
  grid-column: 1 / -1;
  font-weight: 500;
  color: var(--navy);
  border: 1px solid var(--blue);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  background: var(--white);
  padding: 0.9rem 1.1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
}
.site-footer .brand img { height: 26px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-top: 1.1rem;
  max-width: 30ch;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}
.footer-col a, .footer-col span {
  display: block;
  padding: 0.24rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-col a:hover { color: var(--blue); transform: translateX(3px); }

.footer-social { display: flex; gap: 0.7rem; margin-top: 0.9rem; }
.footer-col .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.footer-col .footer-social a:hover {
  color: var(--white);
  border-color: var(--blue);
  background: rgba(89, 165, 242, 0.14);
  transform: none;
}

/* PRR funding bar: the official all-white version sits directly
   on the navy footer, no box needed */
.footer-prr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  padding: 2.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-prr img { height: 54px; width: auto; }
.footer-prr-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  text-align: right;
}
.footer-prr-text a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}
.footer-prr-text a::after { content: " →"; }
.footer-prr-text a:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .footer-prr { justify-content: center; }
  .footer-prr-text { text-align: center; }
  .footer-prr img { height: 40px; }
}

/* project sheet (PRR page) */
.prr-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin: 2rem 0 2.5rem;
}
.prr-grid dt {
  font-weight: 600;
  padding: 0.8rem 1.3rem;
  background: var(--frost);
  border-top: 1px solid var(--line);
}
.prr-grid dd {
  padding: 0.8rem 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.prr-grid dt:first-of-type, .prr-grid dd:first-of-type { border-top: 0; }
.prr-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin: 2.5rem 0 1.5rem;
}
.prr-logos img { height: 52px; width: auto; }
.prr-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 640px) {
  .prr-grid { grid-template-columns: 1fr; }
  .prr-grid dt { border-top: 1px solid var(--line); }
  .prr-grid dd { border-top: 0; }
  .prr-grid dt:first-of-type { border-top: 0; }
  .prr-logos img { height: 44px !important; }
}

/* institutional support logos — swap each slot for an <img> */
.footer-support {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-support-label {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.footer-support-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}
.footer-support-logos img {
  height: 44px;
  width: auto;
  filter: grayscale(1) brightness(4);
  opacity: 0.75;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.footer-support-logos img:hover { filter: none; opacity: 1; }
.support-slot {
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.5rem;
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.footer-links a { color: rgba(255, 255, 255, 0.65); transition: color 0.18s ease; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }

/* legal pages keep the slim one-row footer */
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .nav-list { display: none; }
  .menu-toggle { display: flex; }

  .mobile-nav {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    z-index: 49;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--gutter) 1.25rem;
    display: none;
  }
  .mobile-nav.is-open { display: block; }
  .mobile-nav a {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav a:last-child { border-bottom: 0; }
  .mobile-nav a:hover { color: var(--blue-link); }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 82%, var(--white) 100%),
      rgba(255, 255, 255, 0.72);
  }
  .hero .container { grid-template-columns: 1fr; }
  .terminal-wrap { max-width: 560px; }

  .bento-ba, .bento-cx, .bento-it { grid-column: span 12; grid-row: auto; }
  .bento-partners, .bento-stat { grid-column: span 6; }
  .services-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .process::before { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .bento-partners, .bento-stat { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero { padding-top: 7rem; }
  .hero-scroll { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-rise] { opacity: 1; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .process::before { transform: scaleX(1); }
  .terminal { animation: none; }
}
