/* =========================================================
   BLOOOM — Awwwards-Grade B2B AI & Automation Design System
   Typography: Bricolage Grotesque + Public Sans + IBM Plex Mono
   Palette: Paper / Ink / Teal / Wine / Gold (Light & Dark Mode)
   Clean, zero-noise dark surfaces & full-page interactive depth
========================================================== */

:root {
  --ink: #221f1a;
  --ink-soft: #4a4640;
  --paper: #f7f3ea;
  --paper-shade: #efe8d8;
  --plate: #fcfbf8;
  --line: rgba(34, 31, 26, 0.14);
  --line-strong: rgba(34, 31, 26, 0.28);

  --teal: #1c5b70;
  --wine: #7c2246;
  --brass: #8f6a17;

  --teal-tint: #e4eef0;
  --wine-tint: #f1e2e8;
  --brass-tint: #f1e9d6;

  --band-ink: #1b1712;
  --band-paper: #efe6d4;

  --shadow: 0 1px 2px rgba(34, 31, 26, 0.08), 0 12px 32px -18px rgba(34, 31, 26, 0.35);

  --s-bg: #f4f1e9;
  --s-surface: #fbfaf6;
  --s-surface-2: #ebe8df;
  --s-ink: #141718;
  --s-muted: #5d6260;
  --s-line: rgba(20, 23, 24, 0.11);
  --s-line-strong: rgba(20, 23, 24, 0.22);
  --s-teal: #0a7d89;
  --s-teal-bright: #42c8c4;
  --s-wine: #8d3158;
  --s-gold: #a07718;

  --s-bg-86: rgba(244, 241, 233, 0.86);
  --s-surface-95: rgba(251, 250, 246, 0.95);
  --s-surface2-90: rgba(235, 232, 223, 0.90);
  --s-surface-76: rgba(251, 250, 246, 0.76);
  --s-surface-64: rgba(251, 250, 246, 0.64);
  --s-surface-45: rgba(251, 250, 246, 0.45);

  --s-dark: #0b0e10;
  --s-dark-soft: #13181b;
  --s-dark-text: #f3f1e9;
  --s-radius: 24px;
  --s-shadow: 0 28px 80px rgba(20, 23, 24, 0.10), 0 3px 12px rgba(20, 23, 24, 0.05);
  --card-glow: rgba(10, 125, 137, 0.11);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #efe8db;
    --ink-soft: #c9c0ae;
    --paper: #12100d;
    --paper-shade: #1a1712;
    --plate: #fcfbf8;
    --line: rgba(239, 232, 219, 0.14);
    --line-strong: rgba(239, 232, 219, 0.28);

    --teal: #5aa3b8;
    --wine: #d17ea1;
    --brass: #d1a949;

    --teal-tint: #16272b;
    --wine-tint: #28171f;
    --brass-tint: #271f0d;

    --band-ink: #090908;
    --band-paper: #efe6d4;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 20px 44px -20px rgba(0, 0, 0, 0.75);

    --s-bg: #110f0c;
    --s-surface: #191611;
    --s-surface-2: #221d16;
    --s-ink: #f3ede2;
    --s-muted: #a69d8c;
    --s-line: rgba(239, 232, 219, 0.11);
    --s-line-strong: rgba(239, 232, 219, 0.24);
    --s-teal: #58b4c9;
    --s-teal-bright: #7fd6de;
    --s-wine: #d982a5;
    --s-gold: #deb450;

    --s-bg-86: rgba(17, 15, 12, 0.86);
    --s-surface-95: rgba(25, 22, 17, 0.96);
    --s-surface2-90: rgba(34, 29, 22, 0.92);
    --s-surface-76: rgba(25, 22, 17, 0.78);
    --s-surface-64: rgba(25, 22, 17, 0.66);
    --s-surface-45: rgba(25, 22, 17, 0.45);
    --card-glow: rgba(88, 180, 201, 0.14);
  }
}

:root[data-theme="dark"] {
  --ink: #efe8db;
  --ink-soft: #c9c0ae;
  --paper: #12100d;
  --paper-shade: #1a1712;
  --plate: #fcfbf8;
  --line: rgba(239, 232, 219, 0.14);
  --line-strong: rgba(239, 232, 219, 0.28);

  --teal: #5aa3b8;
  --wine: #d17ea1;
  --brass: #d1a949;

  --teal-tint: #16272b;
  --wine-tint: #28171f;
  --brass-tint: #271f0d;

  --band-ink: #090908;
  --band-paper: #efe6d4;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 20px 44px -20px rgba(0, 0, 0, 0.75);

  --s-bg: #110f0c;
  --s-surface: #191611;
  --s-surface-2: #221d16;
  --s-ink: #f3ede2;
  --s-muted: #a69d8c;
  --s-line: rgba(239, 232, 219, 0.11);
  --s-line-strong: rgba(239, 232, 219, 0.24);
  --s-teal: #58b4c9;
  --s-teal-bright: #7fd6de;
  --s-wine: #d982a5;
  --s-gold: #deb450;

  --s-bg-86: rgba(17, 15, 12, 0.86);
  --s-surface-95: rgba(25, 22, 17, 0.96);
  --s-surface2-90: rgba(34, 29, 22, 0.92);
  --s-surface-76: rgba(25, 22, 17, 0.78);
  --s-surface-64: rgba(25, 22, 17, 0.66);
  --s-surface-45: rgba(25, 22, 17, 0.45);
  --card-glow: rgba(88, 180, 201, 0.14);
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  position: relative;
  margin: 0;
  background: var(--s-bg);
  color: var(--s-ink);
  font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--brass-tint); color: var(--ink); }

a { color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  color: inherit;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0;
  color: var(--s-muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wrap {
  width: min(100%, 1260px);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }
.prose p { margin: 0; color: var(--s-muted); font-size: 1.05rem; }

.rule {
  height: 1px;
  background: var(--s-line);
  border: 0;
  margin: 0 auto;
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 100;
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll-p, 0));
  background: linear-gradient(90deg, var(--s-teal), var(--s-wine) 52%, var(--s-gold));
  pointer-events: none;
}

/* ---------- Header & Floating Glass Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--s-line);
  background: var(--s-bg-86);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  --h: 28px;
  height: var(--h);
  width: calc(var(--h) * 804 / 140);
  overflow: hidden;
  position: relative;
  display: block;
}

.brand-logo img {
  position: absolute;
  max-width: none;
}

.brand-logo .logo-on-light {
  display: block;
  height: calc(var(--h) * 1080 / 128);
  width: calc(var(--h) * 1080 / 128);
  left: calc(var(--h) * -183 / 128);
  top: calc(var(--h) * -463 / 128);
}

.brand-logo .logo-on-dark {
  display: none;
  height: calc(var(--h) * 1080 / 140);
  width: calc(var(--h) * 1080 / 140);
  left: calc(var(--h) * -138 / 140);
  top: calc(var(--h) * -464 / 140);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .brand-logo .logo-on-dark { display: block; }
}
:root[data-theme="dark"] .brand-logo .logo-on-light { display: none; }
:root[data-theme="dark"] .brand-logo .logo-on-dark { display: block; }

.nav-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 24px);
}

nav.links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--s-line);
  background: var(--s-surface-64);
}

nav.links a {
  position: relative;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--s-muted);
  font-size: 0.83rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

nav.links a:hover,
nav.links a:focus-visible {
  color: var(--s-ink);
  background: var(--s-surface);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--s-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Public Sans", ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  min-height: 54px;
  padding: 14px 26px;
  background: var(--s-ink);
  color: var(--s-bg);
  box-shadow: 0 16px 38px rgba(20, 23, 24, 0.18);
}

.btn-secondary {
  min-height: 54px;
  padding: 14px 24px;
  background: var(--s-surface);
  color: var(--s-ink);
  border-color: var(--s-line-strong);
}

.btn-secondary:hover {
  background: var(--s-surface-2);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.82rem;
  border-radius: 999px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--s-line-strong);
  border-radius: 50%;
  background: var(--s-surface-64);
  color: var(--s-ink);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.2s ease;
}

.theme-toggle:hover { background: var(--s-surface-2); transform: rotate(12deg); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  padding-block: clamp(64px, 8vw, 108px) clamp(56px, 7vw, 88px);
  background:
    radial-gradient(circle at 80% 16%, rgba(10, 125, 137, 0.15), transparent 36%),
    radial-gradient(circle at 72% 45%, rgba(141, 49, 88, 0.10), transparent 38%),
    var(--s-bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--s-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--s-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 82%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 82%);
  opacity: 0.32;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
  gap: clamp(40px, 5.5vw, 76px);
  align-items: center;
  text-align: left;
}

.hero-copy { min-width: 0; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--s-line-strong);
  background: var(--s-surface-76);
  backdrop-filter: blur(8px);
}

.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--s-teal);
  box-shadow: 0 0 0 6px rgba(10, 125, 137, 0.16);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(10, 125, 137, 0.18); }
  50% { box-shadow: 0 0 0 9px rgba(10, 125, 137, 0.04); }
}

h1.headline {
  max-width: 13.5ch;
  margin-top: 22px;
  font-size: clamp(2.4rem, 4.3vw, 4.25rem);
  line-height: 0.99;
  letter-spacing: -0.048em;
}

h1.headline em {
  font-style: normal;
  display: block;
  margin-top: 12px;
  background: linear-gradient(104deg, var(--s-teal), var(--s-wine) 54%, var(--s-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.72em;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-sub {
  max-width: 56ch;
  margin: 24px 0 0;
  color: var(--s-muted);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.13rem);
  line-height: 1.64;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--s-line);
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--s-muted);
  font-weight: 500;
}

.hero-badge-item strong {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--s-surface-2);
  color: var(--s-ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

/* ---------- Hero System Command Visual (7-Node Constellation) ---------- */
.hero-system {
  position: relative;
  isolation: isolate;
  min-height: 540px;
  padding: 24px;
  border: 1px solid var(--s-line-strong);
  border-radius: 28px;
  background: linear-gradient(150deg, var(--s-surface-95), var(--s-surface2-90));
  box-shadow: var(--s-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: hero-float 7s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@keyframes hero-float {
  0%, 100% { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(-1deg) rotateX(0.5deg) translateY(-10px); }
}

.hero-system::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 125, 137, 0.22), rgba(141, 49, 88, 0.12) 55%, transparent 72%);
  pointer-events: none;
}

.system-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--s-line);
}

.system-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.system-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--s-line-strong);
}
.system-dots span:nth-child(1) { background: var(--s-teal); }
.system-dots span:nth-child(2) { background: var(--s-wine); }
.system-dots span:nth-child(3) { background: var(--s-gold); }

.system-label {
  color: var(--s-muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--s-teal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
}

.system-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.system-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 310px;
  margin-block: 6px;
}

.orbit-ring {
  position: absolute;
  border: 1px solid var(--s-line-strong);
  border-radius: 50%;
}

.orbit-ring.one {
  width: 280px;
  height: 280px;
  border-style: dashed;
  animation: startup-spin 38s linear infinite;
}

.orbit-ring.two {
  width: 192px;
  height: 192px;
  animation: startup-spin-reverse 30s linear infinite;
}

.orbit-ring.three {
  width: 108px;
  height: 108px;
  border-color: rgba(10, 125, 137, 0.36);
}

.system-core-3d {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  user-select: none;
}

#core-canvas {
  width: 132px;
  height: 132px;
  display: block;
  cursor: grab;
}

#core-canvas:active {
  cursor: grabbing;
}

.core-caption {
  position: absolute;
  bottom: -4px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--s-line-strong);
  background: var(--s-surface-95);
  backdrop-filter: blur(8px);
  color: var(--s-ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.system-node {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--s-line-strong);
  border-radius: 999px;
  background: var(--s-surface);
  color: var(--s-ink);
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(20, 23, 24, 0.08);
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.system-node:hover {
  transform: scale(1.05);
  border-color: var(--s-teal);
}

.system-node::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s-teal);
}

.system-node.node-a { top: 8px; left: 8px; }
.system-node.node-b { top: 12px; right: 6px; }
.system-node.node-b::before { background: var(--s-wine); }
.system-node.node-c { top: 105px; left: -6px; }
.system-node.node-c::before { background: var(--s-gold); }
.system-node.node-d { top: 112px; right: -6px; }
.system-node.node-e { bottom: 68px; left: 2px; }
.system-node.node-e::before { background: var(--s-wine); }
.system-node.node-f { bottom: 62px; right: 4px; }
.system-node.node-f::before { background: var(--s-gold); }
.system-node.node-g { bottom: 4px; left: 50%; transform: translateX(-50%); }

/* Live Telemetry Feed inside Hero Card */
.system-telemetry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--s-line);
  background: var(--s-bg);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--s-muted);
}

.telemetry-badge {
  color: var(--s-teal);
  font-weight: 600;
  flex-shrink: 0;
}

.system-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.flow-step {
  min-width: 0;
  padding: 12px;
  border-top: 2px solid var(--s-teal);
  border-radius: 0 0 10px 10px;
  background: var(--s-surface-64);
}

.flow-step:nth-child(2) { border-color: var(--s-wine); }
.flow-step:nth-child(3) { border-color: var(--s-gold); }
.flow-step span {
  color: var(--s-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.flow-step strong {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
}

@keyframes startup-spin { to { transform: rotate(360deg); } }
@keyframes startup-spin-reverse { to { transform: rotate(-360deg); } }

/* ---------- Infinite Kinetic Marquee Ticker ---------- */
.marquee-band {
  position: relative;
  overflow: hidden;
  padding-block: 16px;
  background: var(--s-dark);
  color: var(--s-dark-text);
  border-top: 1px solid rgba(243, 241, 233, 0.08);
  border-bottom: 1px solid rgba(243, 241, 233, 0.08);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 36px;
  animation: marquee-scroll 38s linear infinite;
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 241, 233, 0.82);
  white-space: nowrap;
}

.marquee-item i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s-teal-bright);
}

.marquee-item:nth-child(3n+2) i { background: #d982a5; }
.marquee-item:nth-child(3n) i { background: #deb450; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Impact Metrics Strip (Upgraded with Top Progress Accent) ---------- */
.metrics-strip {
  padding-block: clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--s-line);
  background: var(--s-surface);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-item {
  position: relative;
  overflow: hidden;
  padding: 26px 24px;
  border: 1px solid var(--s-line);
  background: var(--s-bg);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(20, 23, 24, 0.03);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.metric-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--s-teal), transparent 85%);
}

.metric-item:nth-child(2)::before { background: linear-gradient(90deg, var(--s-wine), transparent 85%); }
.metric-item:nth-child(3)::before { background: linear-gradient(90deg, var(--s-gold), transparent 85%); }
.metric-item:nth-child(4)::before { background: linear-gradient(90deg, var(--s-teal), transparent 85%); }

.metric-item:hover {
  transform: translateY(-4px);
  border-color: var(--s-line-strong);
  box-shadow: 0 20px 44px rgba(20, 23, 24, 0.08);
}

.metric-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.metric-value {
  font-family: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  font-size: clamp(2.3rem, 3.6vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--s-ink);
}

.metric-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--s-surface-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  color: var(--s-teal);
  font-weight: 600;
}

.metric-item:nth-child(2) .metric-tag { color: var(--s-wine); }
.metric-item:nth-child(3) .metric-tag { color: var(--s-gold); }

.metric-label {
  margin-top: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--s-ink);
  font-weight: 600;
}

.metric-desc {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--s-muted);
  line-height: 1.5;
}

/* ---------- Section Shell ---------- */
section:not(.hero):not(.marquee-band):not(.metrics-strip):not(.closing-cta):not(.newsletter):not(.about-hero):not(.training-hero):not(.training-catalog) {
  padding-block: clamp(84px, 9.5vw, 128px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 30px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-head h2 {
  max-width: 18ch;
  margin-top: 10px;
  font-size: clamp(2.15rem, 3.9vw, 3.7rem);
  line-height: 1.01;
}

.section-intro {
  max-width: 50ch;
  justify-self: end;
  margin: 0;
  color: var(--s-muted);
  font-size: 0.98rem;
}

/* ---------- Spotlight Card Hover Effect ---------- */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(480px circle at var(--cx, 50%) var(--cy, 50%), var(--card-glow), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.spotlight-card:hover::after {
  opacity: 1;
}

/* ---------- Architecture & Bento Ecosystem Grid (Soluções) ---------- */
.work-story-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 52px);
  margin-bottom: 22px;
  border-radius: var(--s-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 90% 15%, rgba(66, 200, 196, 0.16), transparent 42%),
    radial-gradient(circle at 65% 85%, rgba(141, 49, 88, 0.14), transparent 45%),
    linear-gradient(160deg, #111618 0%, #0b0e10 100%);
  color: var(--s-dark-text);
  box-shadow: var(--s-shadow);
}

.work-story-banner .eyebrow { color: rgba(243, 241, 233, 0.62); }

.work-story-banner h3 {
  max-width: 18ch;
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.1vw, 2.85rem);
  line-height: 1.04;
}

.work-story-banner .prose {
  max-width: 58ch;
  margin-top: 18px;
}

.work-story-banner .prose p {
  color: rgba(243, 241, 233, 0.76);
  font-size: 0.96rem;
}

.method-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(243, 241, 233, 0.12);
  border-radius: 16px;
  background: rgba(243, 241, 233, 0.12);
}

.method-step {
  padding: 18px;
  background: #0e1214;
  transition: background-color 0.2s ease;
}

.method-step:hover {
  background: #14191c;
}

.method-step span {
  color: var(--s-teal-bright);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.method-step:nth-child(2) span { color: #d982a5; }
.method-step:nth-child(3) span { color: #deb450; }
.method-step:nth-child(4) span { color: var(--s-teal-bright); }

.method-step strong {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--s-dark-text);
}

.method-step small {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: rgba(243, 241, 233, 0.58);
  line-height: 1.4;
}

/* Bento Grid of Architecture Capabilities */
.bento-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  background: var(--s-surface);
  box-shadow: 0 14px 40px rgba(20, 23, 24, 0.04);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.bento-card:hover {
  border-color: var(--s-line-strong);
  box-shadow: 0 24px 58px rgba(20, 23, 24, 0.10);
  transform: translateY(-5px);
}

.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-8 { grid-column: span 8; }
.bento-card.span-12 {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, var(--s-surface), var(--s-surface-2));
  border-color: var(--s-line-strong);
}

.bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.deliverable-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--s-teal);
}

.bento-card[data-accent="wine"] .deliverable-tag { color: var(--s-wine); }
.bento-card[data-accent="gold"] .deliverable-tag { color: var(--s-gold); }

.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--s-bg);
  border: 1px solid var(--s-line);
  color: var(--s-ink);
}

.bento-icon svg { width: 18px; height: 18px; }

.bento-card h3 {
  margin-top: 12px;
  font-size: 1.38rem;
  line-height: 1.12;
  color: var(--s-ink);
}

.bento-card p {
  margin: 10px 0 0;
  font-size: 0.91rem;
  color: var(--s-muted);
  line-height: 1.58;
}

.bento-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.bento-pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--s-line);
  background: var(--s-bg);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  color: var(--s-muted);
}

/* Terminal / API Preview inside NFS-e Featured Bento Card */
.nfse-terminal {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #121618 0%, #0b0e10 100%);
  color: #e9e5da;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.nfse-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  color: rgba(243, 241, 233, 0.65);
}

.nfse-terminal-body {
  padding: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.65;
  overflow-x: auto;
}

.nfse-terminal-body .k { color: #7fd6de; }
.nfse-terminal-body .s { color: #deb450; }
.nfse-terminal-body .ok { color: #6be39b; }
.nfse-terminal-body .c { color: rgba(243, 241, 233, 0.45); }

/* ---------- 6-Stage Strategic Process (Upgraded with Deliverables & Icons) ---------- */
#processo {
  background: var(--s-surface-2);
}

.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: process-step;
}

.process-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  background: var(--s-surface);
  counter-increment: process-step;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.process-card:hover {
  transform: translateY(-5px);
  border-color: var(--s-line-strong);
  box-shadow: 0 22px 52px rgba(20, 23, 24, 0.09);
}

.process-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--s-teal), transparent);
}

.process-card:nth-child(3n+2)::before {
  background: linear-gradient(90deg, var(--s-wine), transparent);
}

.process-card:nth-child(3n)::before {
  background: linear-gradient(90deg, var(--s-gold), transparent);
}

.process-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.process-step-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--s-bg);
  border: 1px solid var(--s-line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--s-teal);
}

.process-card:nth-child(3n+2) .process-step-num { color: var(--s-wine); }
.process-card:nth-child(3n) .process-step-num { color: var(--s-gold); }

.process-num-watermark {
  font-family: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--s-muted);
  opacity: 0.35;
}

.process-card h3 {
  margin-top: 16px;
  font-size: 1.42rem;
  line-height: 1.12;
}

.process-card p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: var(--s-muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.process-deliverable {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--s-line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  color: var(--s-muted);
}

.process-deliverable strong {
  color: var(--s-ink);
  font-weight: 600;
}

/* ---------- Benchmark & Performance Cases (Upgraded Telemetry Cards) ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  padding: 30px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  background: var(--s-surface);
  box-shadow: 0 12px 34px rgba(20, 23, 24, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--s-line-strong);
  box-shadow: 0 22px 50px rgba(20, 23, 24, 0.08);
}

.case-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.case-head h3 {
  font-size: 1.4rem;
  margin-top: 6px;
}

.case-delta {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--s-teal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.case-card:nth-child(2) .case-delta {
  background: var(--wine-tint);
  color: var(--s-wine);
}

.case-card:nth-child(3) .case-delta {
  background: var(--brass-tint);
  color: var(--s-gold);
}

.case-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: var(--s-bg);
  border: 1px solid var(--s-line);
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--s-muted);
}

.bar-meta strong {
  color: var(--s-ink);
  font-size: 0.8rem;
}

.bar-track {
  height: 9px;
  border-radius: 999px;
  background: var(--s-surface-2);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--s-line-strong);
}

.bar-fill.after-teal { background: linear-gradient(90deg, var(--s-teal), var(--s-teal-bright)); }
.bar-fill.after-wine { background: linear-gradient(90deg, var(--s-wine), #d982a5); }
.bar-fill.after-gold { background: linear-gradient(90deg, var(--s-gold), #deb450); }

.case-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  color: var(--s-muted);
}

/* ---------- Principles (Upgraded Architectural Cards) ---------- */
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  counter-reset: principle;
}

.principles li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  background: var(--s-surface);
  counter-increment: principle;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.principles li:hover {
  transform: translateY(-4px);
  border-color: var(--s-line-strong);
  box-shadow: 0 20px 48px rgba(20, 23, 24, 0.08);
}

.principle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.principle-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--s-muted);
}

.principles .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--s-teal);
  box-shadow: 0 0 0 6px rgba(10, 125, 137, 0.12);
}

.principles li:nth-child(2) .dot {
  background: var(--s-wine);
  box-shadow: 0 0 0 6px rgba(141, 49, 88, 0.12);
}

.principles li:nth-child(3) .dot {
  background: var(--s-gold);
  box-shadow: 0 0 0 6px rgba(160, 119, 24, 0.12);
}

.principles h3 {
  max-width: 22ch;
  margin-bottom: 10px;
  font-size: 1.42rem;
  line-height: 1.12;
}

.principles p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 50ch;
  color: var(--s-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Founders / Pillars ---------- */
.founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: founder;
}

.founder-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 30px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  background: var(--s-surface);
  box-shadow: 0 14px 42px rgba(20, 23, 24, 0.05);
  counter-increment: founder;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.founder-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(20, 23, 24, 0.09);
}

.founder-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--s-teal), transparent);
}

.founder-card:nth-child(2)::before { background: linear-gradient(90deg, var(--s-wine), transparent); }
.founder-card:nth-child(3)::before { background: linear-gradient(90deg, var(--s-gold), transparent); }

.founder-card .role {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  color: var(--s-teal);
}

.founder-card:nth-child(2) .role { color: var(--s-wine); }
.founder-card:nth-child(3) .role { color: var(--s-gold); }

.founder-card h3 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin-top: 28px;
  font-size: 1.85rem;
  line-height: 1.05;
}

.founder-card p:last-child {
  position: relative;
  z-index: 1;
  max-width: 32ch;
  margin-top: 16px;
  color: var(--s-muted);
  font-size: 0.92rem;
}

/* ---------- Diagnostic / Contact Form Section (Upgraded Awwwards Split) ---------- */
#diagnostico {
  background: var(--s-surface-2);
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.diagnostic-sla {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.sla-box {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--s-line);
  background: var(--s-surface);
}

.sla-box span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--s-muted);
}

.sla-box strong {
  display: block;
  margin-top: 4px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.05rem;
  color: var(--s-ink);
}

.diagnostic-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--s-line);
  border-radius: 16px;
  background: var(--s-surface);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--s-line-strong);
  box-shadow: 0 12px 28px rgba(20, 23, 24, 0.06);
}

.channel-card span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--s-muted);
}

.channel-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  color: var(--s-ink);
}

.diagnostic-form-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--s-line-strong);
  border-radius: var(--s-radius);
  background: var(--s-surface);
  box-shadow: var(--s-shadow);
}

.diagnostic-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--s-teal), var(--s-wine) 52%, var(--s-gold));
}

.diagnostic-form-card h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.diagnostic-form-card > p {
  margin: 0 0 24px;
  color: var(--s-muted);
  font-size: 0.92rem;
}

.diag-form {
  display: grid;
  gap: 16px;
}

.diag-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.diag-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.diag-field label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-muted);
}

.diag-field input,
.diag-field select,
.diag-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--s-line-strong);
  background: var(--s-bg);
  color: var(--s-ink);
  font-family: "Public Sans", ui-sans-serif, sans-serif;
  font-size: 0.94rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.diag-field input:focus,
.diag-field select:focus,
.diag-field textarea:focus {
  border-color: var(--s-teal);
  box-shadow: 0 0 0 4px rgba(10, 125, 137, 0.12);
  outline: none;
}

.diag-field textarea {
  resize: vertical;
  min-height: 104px;
}

/* ---------- FAQ (Upgraded Card Accordion Style) ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.faq-item {
  border: 1px solid var(--s-line);
  border-radius: 18px;
  padding: 20px 26px;
  background: var(--s-surface);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.faq-item:hover {
  border-color: var(--s-line-strong);
}

.faq-item[open] {
  border-color: var(--s-line-strong);
  box-shadow: 0 14px 36px rgba(20, 23, 24, 0.06);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-family: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--s-ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--s-line);
  background: var(--s-bg);
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  color: var(--s-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
  background: var(--s-ink);
  color: var(--s-bg);
}

.faq-item p {
  max-width: 72ch;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--s-line);
  color: var(--s-muted);
  line-height: 1.65;
}

/* ---------- Closing CTA (Clean, Noise-Free Deep Architectural Banner) ---------- */
.closing-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(76px, 9.5vw, 128px);
  background:
    radial-gradient(circle at 18% 110%, rgba(10, 125, 137, 0.26), transparent 42%),
    radial-gradient(circle at 85% -10%, rgba(141, 49, 88, 0.22), transparent 42%),
    linear-gradient(160deg, #101416 0%, #090b0c 100%);
  color: var(--s-dark-text);
}

.closing-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
}

.closing-copy .eyebrow { color: rgba(243, 241, 233, 0.6); }

.closing-copy h2 {
  max-width: 16ch;
  margin-top: 16px;
  font-size: clamp(2.3rem, 4.6vw, 4.4rem);
  line-height: 1;
}

.closing-copy p {
  max-width: 52ch;
  margin: 20px 0 0;
  color: rgba(243, 241, 233, 0.72);
  font-size: 1.04rem;
}

.closing-cta .btn-primary {
  background: var(--s-dark-text);
  color: var(--s-dark);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--s-surface);
  border-top: 1px solid var(--s-line);
  border-bottom: 1px solid var(--s-line);
  padding-block: clamp(48px, 6vw, 72px);
}

.newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.newsletter-copy h2 { margin-top: 8px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.newsletter-copy p { margin-top: 10px; color: var(--s-muted); max-width: 46ch; }

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  min-width: 260px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--s-line-strong);
  background: var(--s-bg);
  color: var(--s-ink);
  font-family: "Public Sans", ui-sans-serif, sans-serif;
  font-size: 0.95rem;
}

.newsletter-form input::placeholder { color: var(--s-muted); }
.newsletter-success { font-size: 1rem; color: var(--s-teal); font-weight: 600; }

/* ---------- About Page Specifics ---------- */
.about-hero {
  min-height: 44vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(72px, 10vw, 120px) clamp(44px, 5vw, 68px);
}

.about-hero .eyebrow { display: flex; justify-content: center; }

.about-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  max-width: 18ch;
  margin-inline: auto;
}

.about-lede {
  margin: 20px auto 0;
  max-width: 60ch;
  color: var(--s-muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

/* ---------- Footer Band ---------- */
.band {
  background: #080a0b;
  color: var(--s-dark-text);
}

.band .wrap { padding-block: clamp(48px, 6vw, 76px); }

.band-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid rgba(239, 230, 212, 0.12);
}

.band-logo {
  --h: clamp(36px, 5.2vw, 56px);
  height: var(--h);
  width: calc(var(--h) * 804 / 140);
  overflow: hidden;
  position: relative;
  display: block;
}

.band-logo img {
  position: absolute;
  height: calc(var(--h) * 1080 / 140);
  width: calc(var(--h) * 1080 / 140);
  left: calc(var(--h) * -138 / 140);
  top: calc(var(--h) * -464 / 140);
  max-width: none;
}

.band-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(243, 241, 233, 0.58);
  text-align: right;
  max-width: 34ch;
  margin: 0;
}

.band-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.88rem;
  color: rgba(243, 241, 233, 0.5);
}

.band-bottom a {
  text-decoration: none;
  color: rgba(243, 241, 233, 0.85);
}

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 241, 233, 0.16);
  border-radius: 50%;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.2s ease;
}
.social-row a:hover {
  background: rgba(239, 230, 212, 0.1);
  border-color: rgba(239, 230, 212, 0.42);
  transform: translateY(-2px);
}
.social-row svg { width: 16px; height: 16px; }

/* ---------- Cursor Glow & Motion (Clean without blend-mode banding) ---------- */
#cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(10, 125, 137, 0.045), transparent 65%);
}
#cursor-glow.is-active { opacity: 1; }

.reveal {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

body.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.35s ease;
}

body.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  h1.headline { max-width: 14ch; }
  .hero-system { width: min(100%, 680px); min-height: 480px; transform: none; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-story-banner { grid-template-columns: 1fr; }
  .bento-card, .bento-card.span-6, .bento-card.span-8 { grid-column: span 6; }
  .bento-card.span-12 { grid-column: span 12; grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases-grid { grid-template-columns: 1fr; }
  .diagnostic-grid { grid-template-columns: 1fr; }
  .closing-inner { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 760px) {
  nav.links { display: none; }
  section:not(.hero):not(.marquee-band):not(.metrics-strip):not(.closing-cta):not(.newsletter):not(.about-hero) { padding-block: 68px; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-intro { justify-self: start; }
  .bento-card, .bento-card.span-6, .bento-card.span-8, .bento-card.span-12 { grid-column: span 12; }
  .process-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .founders { grid-template-columns: 1fr; }
  .diag-row { grid-template-columns: 1fr; }
  .diagnostic-sla { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
}

@media (max-width: 560px) {
  .nav { flex-direction: row; align-items: center; gap: 12px; }
  .nav-cta-header { display: none; }
  .hero { padding-top: 44px; }
  h1.headline { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  .hero-system { min-height: 440px; padding: 18px; border-radius: 22px; }
  .system-orbit { min-height: 270px; }
  .orbit-ring.one { width: 220px; height: 220px; }
  .orbit-ring.two { width: 146px; height: 146px; }
  .system-node { padding: 6px 10px; font-size: 0.62rem; }
  .system-flow { grid-template-columns: 1fr; }
  .flow-step { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .flow-step strong { margin-top: 0; }
  .metrics-grid { grid-template-columns: 1fr; }
  .method-rail { grid-template-columns: 1fr; }
  .closing-cta .btn { width: 100%; }
  .band-top { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .band-status { text-align: center; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-system, .orbit-ring, .marquee-track { animation: none !important; }
  .reveal { opacity: 1 !important; filter: none !important; transition: none !important; transform: none !important; }
}
