/* ==========================================================
   BoldWire — editorial brutalism with a pulse.
   Static White carries the page; Ink and Bold Blue are the
   full-bleed counter-bands. Pulse Lime appears ONLY as the
   pulse mark / signal lines — never as text (brand rule).
   Display: Archivo variable (wght 900, wdth 125), tight.
   Body: Space Grotesk, 14px minimum.
   ========================================================== */

:root {
  --ink: #0B0E14;
  --ink-2: #1C2534;
  --white: #F2F6FA;
  --grey: #6B7686;
  --grey-2: #AEB9C7;
  --blue: #2491FF;
  --lime: #91F535;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-transform: uppercase;
}
a { color: inherit; text-decoration: none; }

/* ---------- logo-reveal opener ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease;
}
#preVideo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  /* shift the footage's teal-green onto Pulse Lime */
  filter: hue-rotate(-48deg) saturate(1.2);
}
#preloader.playing #preVideo { opacity: 1; }
.pre-logo {
  position: relative; z-index: 1;
  text-align: center;
  color: var(--white);
  opacity: 0;
  transform: scale(0.9);
  filter: blur(10px);
}
#preloader.logo-in .pre-logo {
  opacity: 1; transform: scale(1); filter: blur(0);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1.2), filter 0.55s ease;
}
.wordmark.xl { font-size: clamp(2.6rem, 9vw, 6.5rem); }
.descriptor.xl { font-size: clamp(0.62rem, 1.6vw, 1.05rem); letter-spacing: 0.38em; color: var(--grey-2); margin-top: 0.5rem; }
#preloader.logo-in .pulse polyline {
  stroke-dasharray: 90; stroke-dashoffset: 90;
  animation: pulseTrace 0.6s 0.25s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}
@keyframes pulseTrace { to { stroke-dashoffset: 0; } }
body.loaded #preloader { opacity: 0; pointer-events: none; }

/* ---------- EKG scroll progress ---------- */
#progressEkg {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 26px;
  z-index: 120; pointer-events: none;
}

/* ---------- custom cursor ---------- */
#cursorDot {
  position: fixed; top: 0; left: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--white);
  mix-blend-mode: difference;
  pointer-events: none; z-index: 300;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
}
#cursorDot.big { width: 46px; height: 46px; }
@media (hover: none), (pointer: coarse) { #cursorDot { display: none; } }

/* ---------- wordmark ---------- */
.wordmark {
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-size: 1.45rem;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; line-height: 1;
}
.wordmark .pulse { height: 1em; width: auto; color: var(--lime); margin: 0 -0.02em; }
.descriptor {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.55rem; font-weight: 500;
  letter-spacing: 0.34em; color: var(--grey);
  margin-top: 0.22rem;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 110;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(242, 246, 250, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--ink);
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-links a {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--blue); color: var(--ink);
  padding: 0.65rem 1.4rem; border-radius: 999px;
}
.nav-toggle { display: none; }

/* ---------- full-screen menu ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 105;
  background: var(--ink); color: var(--white);
  padding: calc(var(--nav-h) + 4vh) var(--pad) 4vh;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.5s cubic-bezier(0.7, 0, 0.2, 1);
  visibility: hidden;
}
body.menu-open .menu-overlay { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-overlay a {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-stretch: 115%;
  font-size: clamp(2.2rem, 9vh, 4.6rem);
  text-transform: uppercase; line-height: 1.06;
  letter-spacing: -0.02em;
}
.menu-overlay a:hover { color: var(--blue); }
.menu-overlay a em {
  font-style: normal; font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem; font-weight: 500; color: var(--grey);
  vertical-align: super; margin-right: 0.8rem;
}
.menu-mail a { font-size: 1rem; color: var(--grey-2); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv.in { opacity: 1; transform: translateY(0); }

/* ---------- hero (split layout) ---------- */
.hero {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 3vh) var(--pad) 5vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bgwrap {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bgvid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s linear;
  filter: saturate(0.85) brightness(1.03);
}
.hero-bgvid.live { opacity: 1; }
/* white veil + pool behind the copy so text stays effortless to read */
.hero-bg-fade {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 55% at 30% 52%, rgba(242, 246, 250, 0.95) 0%, rgba(242, 246, 250, 0.74) 55%, rgba(242, 246, 250, 0.48) 100%);
}
@media (max-width: 700px) { .hero-bgwrap { display: none; } }
.hero-grid { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.26em; color: var(--grey);
  margin-bottom: 2.4rem;
}
.hero-title {
  font-stretch: 116%;
  font-size: clamp(2.6rem, 4.9vw, 4.9rem);
  line-height: 1.0;
  letter-spacing: -0.028em;
}
.word-pulse { color: var(--blue); white-space: nowrap; }
.hero-glyph {
  height: 0.62em; width: auto;
  color: var(--lime);
  margin-left: 0.06em;
  vertical-align: baseline;
  animation: glyphBeat 2.2s ease-in-out infinite 3s;
  transform-origin: 50% 60%;
}
@keyframes glyphBeat {
  0%, 30%, 100% { transform: scale(1); }
  6% { transform: scale(1.18); }
  13% { transform: scale(1); }
  19% { transform: scale(1.1); }
}
.hero-sub {
  max-width: 30rem;
  margin-top: 1.6rem;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--grey);
}
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2.2rem; }

.hero-visual { position: relative; }
.hero-media {
  position: relative;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 24px 24px 0 -12px var(--blue);
}
.hero-media video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* pull the footage toward the brand: cool it down, deepen the ink */
  filter: saturate(0.82) contrast(1.06) brightness(0.92);
}
.hero-ekg {
  position: absolute;
  left: 0; right: 0; bottom: 9%;
  width: 100%; height: clamp(40px, 5vw, 70px);
}
.hero-ekg path {
  stroke: var(--lime); stroke-width: 3;
  stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(145, 245, 53, 0.7));
}

/* floating cards over the media panel */
.float-card {
  position: absolute;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(11, 14, 20, 0.18);
  animation: floaty 6s ease-in-out infinite;
}
.fc-metric {
  top: 7%; left: -2.2rem;
  padding: 0.9rem 1.2rem;
}
.fc-metric strong {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-stretch: 118%;
  font-size: 1.7rem; letter-spacing: -0.02em;
  color: var(--blue); line-height: 1;
}
.fc-metric span { font-size: 0.72rem; color: var(--grey); }
.fc-live {
  bottom: 6%; right: -1.6rem;
  padding: 0.65rem 1rem;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.03em;
  display: flex; align-items: center; gap: 0.5rem;
  animation-delay: 3s;
}
.fc-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(145, 245, 53, 0.9);
  animation: dotBeat 2.2s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes dotBeat {
  0%, 30%, 100% { transform: scale(1); opacity: 1; }
  10% { transform: scale(1.45); opacity: 0.75; }
}

/* ---------- hero stats ---------- */
.hero-stats {
  list-style: none;
  display: flex; gap: clamp(1.4rem, 3vw, 3rem);
  flex-wrap: wrap;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1.5px solid var(--ink);
}
.hero-stats strong {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-stretch: 118%;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}
.hero-stats span { font-size: 0.78rem; color: var(--grey); }

/* ---------- who we are ---------- */
.who-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.who-sub { color: var(--grey); margin: 1.2rem 0 2rem; max-width: 36rem; }
.who-facts { list-style: none; border-top: 1.5px solid var(--ink); }
.who-facts li {
  display: grid; grid-template-columns: 6.5rem 1fr;
  align-items: baseline; gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1.5px solid var(--ink);
}
.who-facts strong {
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-stretch: 120%;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.02em; color: var(--blue);
}
.who-facts span { font-size: 0.9rem; color: var(--grey); }

/* ---------- differentiators ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.diff-card {
  border: 1.5px solid var(--ink); border-radius: 14px;
  padding: 1.6rem 1.5rem 1.8rem;
  position: relative; overflow: hidden;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.diff-card:hover { background: var(--ink); color: var(--white); transform: translateY(-4px); }
.diff-num {
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-stretch: 125%;
  font-size: 2.6rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue);
  display: block; margin-bottom: 1.6rem;
}
.diff-card h3 { font-stretch: 112%; font-size: 1.12rem; margin-bottom: 0.5rem; }
.diff-card p { font-size: 0.88rem; color: var(--grey); }
.diff-card:hover p { color: var(--grey-2); }

/* ---------- case cards ---------- */
.cases {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.case-card {
  border: 1px solid rgba(242, 246, 250, 0.16);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.7rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.case-card:hover { border-color: var(--blue); transform: translateY(-4px); }
.case-card strong {
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-stretch: 120%;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em; color: var(--blue);
  display: block; margin-bottom: 0.9rem;
}
.case-card h3 { font-stretch: 112%; font-size: 1.05rem; margin-bottom: 0.4rem; }
.case-card p { font-size: 0.88rem; color: var(--grey-2); }

/* ---------- contact check pills ---------- */
.check-row {
  list-style: none;
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.check-row li {
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(242, 246, 250, 0.3);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  color: var(--grey-2);
}
.check-row li::before { content: "✓ "; color: var(--lime); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.95rem 1.9rem; border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.btn-blue:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- bands & sections ---------- */
.section { padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.band { padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.band-ink { background: var(--ink); color: var(--white); }
.band-blue { background: var(--blue); color: var(--ink); }
.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head h2 {
  font-stretch: 116%;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  max-width: 24ch;
}
.kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3em; margin-bottom: 1.2rem; color: var(--blue); }
.band-blue .kicker { color: var(--ink); opacity: 0.55; }
.sec-sub { margin-top: 1.2rem; max-width: 34rem; color: var(--grey-2); }
.section .sec-sub { color: var(--grey); }

/* ---------- manifesto marquee ---------- */
.marquee-band { padding: clamp(1.6rem, 3vw, 2.6rem) 0; overflow: hidden; }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span {
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-stretch: 120%;
  font-size: clamp(2rem, 5.5vw, 4.6rem);
  text-transform: uppercase; letter-spacing: -0.02em;
  line-height: 1.1;
}
.mq-beat { font-style: normal; color: var(--lime); }

/* ---------- services index ---------- */
.index { list-style: none; border-top: 1.5px solid var(--ink); }
.index-row a {
  display: grid;
  grid-template-columns: 3.2rem 1fr minmax(0, 34ch);
  align-items: baseline; gap: 1.5rem;
  padding: clamp(1.1rem, 2.2vw, 1.7rem) 0.5rem;
  border-bottom: 1.5px solid var(--ink);
  position: relative;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.index-row a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--blue);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.28s cubic-bezier(0.6, 0, 0.3, 1);
}
.index-row a:hover::before { transform: scaleY(1); }
.index-row a:hover { padding-left: 1.2rem; }
.index-row em { font-style: normal; font-size: 0.85rem; font-weight: 500; color: var(--grey); }
.index-row a:hover em { color: var(--ink); }
.index-row strong {
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-stretch: 115%;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  text-transform: uppercase; letter-spacing: -0.015em;
  line-height: 1.05;
}
.index-row span { font-size: 0.88rem; color: var(--grey); text-align: right; }
.index-row a:hover span { color: var(--ink); }
.audit {
  margin-top: 3rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  border: 1.5px solid var(--ink); border-radius: 14px;
  padding: 1.6rem 2rem;
}
.audit p { max-width: 46rem; font-size: 0.95rem; }

/* ---------- approach layout: timeline + visual cluster ---------- */
.appr-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.appr-visual {
  position: sticky;
  top: calc(var(--nav-h) + 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1rem;
}
.av-tile {
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
}
.av-tile img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}
.av-1 { aspect-ratio: 4 / 5; transform: rotate(-2deg); }
.av-2 { aspect-ratio: 4 / 5; transform: rotate(2deg) translateY(1.6rem); }
.av-3 {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 8;
  transform: rotate(-1deg) translateY(0.6rem);
  box-shadow: 12px 12px 0 -4px var(--ink);
}
.av-tile { transition: transform 0.3s ease; }
.av-tile:hover { transform: rotate(0deg) translateY(0) scale(1.02); }
.av-chip {
  position: absolute;
  top: -0.6rem; right: 4%;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  display: flex; align-items: center; gap: 0.45rem;
  box-shadow: 0 10px 26px rgba(11, 14, 20, 0.25);
}

/* ---------- approach timeline ---------- */
.timeline { position: relative; padding-left: clamp(4.6rem, 8vw, 6.5rem); }
.tl-track {
  position: absolute;
  left: clamp(1.6rem, 3vw, 2.4rem);
  top: 0.5rem; bottom: 0.5rem;
  width: 2px;
  background: rgba(11, 14, 20, 0.25);
}
.tl-fill {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 0;
  background: var(--ink);
}
.tl-item { position: relative; padding: clamp(1.8rem, 4vw, 3rem) 0; }
.tl-node {
  position: absolute;
  left: calc(-1 * clamp(4.6rem, 8vw, 6.5rem) + clamp(1.6rem, 3vw, 2.4rem));
  top: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: clamp(3rem, 5vw, 3.8rem); height: clamp(3rem, 5vw, 3.8rem);
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--blue);
  display: grid; place-items: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-size: 0.95rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1.4);
  z-index: 1;
}
.tl-item.on .tl-node {
  background: var(--ink); color: var(--white);
  transform: translate(-50%, -50%) scale(1);
}
.tl-body {
  opacity: 0; transform: translateX(28px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  max-width: 46rem;
}
.tl-item.on .tl-body { opacity: 1; transform: translateX(0); }
.tl-body h3 { font-stretch: 115%; font-size: clamp(1.5rem, 3.2vw, 2.4rem); margin-bottom: 0.7rem; }
.tl-body p { font-size: 1rem; }

/* ---------- service cards ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.svc-card {
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex; flex-direction: column;
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 10px 10px 0 -3px var(--blue);
}
.svc-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.svc-top em {
  font-style: normal;
  font-size: 0.8rem; font-weight: 700;
  color: var(--grey);
  transition: color 0.25s ease;
}
.svc-card:hover .svc-top em { color: var(--blue); }
.svc-wave { width: 96px; height: 26px; flex: none; }
.svc-wave polyline {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 5 4;
  animation: waveMarch 1.8s linear infinite;
}
.svc-card:hover .svc-wave polyline { animation-duration: 0.45s; }
@keyframes waveMarch { to { stroke-dashoffset: -18; } }
.svc-card h3 { font-stretch: 112%; font-size: 1.06rem; margin-bottom: 0.45rem; }
.svc-card p { font-size: 0.88rem; color: var(--grey); flex: 1; }
.svc-link {
  margin-top: 1.2rem;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--blue);
  align-self: flex-start;
  padding-bottom: 0.15rem;
}
.svc-link:hover { color: var(--blue); }

/* ---------- results / EKG ---------- */
.ekg-wrap {
  position: relative;
  padding: 1.5rem 0 5.5rem;
  border: 1px solid rgba(242, 246, 250, 0.14);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
#ekgCanvas { display: block; width: 100%; height: 170px; }
.ekg-label {
  position: absolute; bottom: 1.1rem; left: var(--x);
  transform: translateX(-50%); text-align: center;
  opacity: 0; transition: opacity 0.5s ease;
}
.ekg-label.on { opacity: 1; }
.ekg-label strong {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-stretch: 118%;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em; white-space: nowrap;
}
.ekg-label span { font-size: 0.75rem; color: var(--grey-2); white-space: nowrap; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.quotes blockquote { border-top: 1.5px solid rgba(242, 246, 250, 0.2); padding-top: 1.4rem; }
.quotes p { font-size: 1.02rem; line-height: 1.5; }
.quotes footer { margin-top: 1rem; font-size: 0.8rem; color: var(--grey-2); letter-spacing: 0.04em; }

/* ---------- industries live index ---------- */
.ind-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.ind-list { list-style: none; border-top: 1.5px solid var(--ink); }
.ind-list li { border-bottom: 1.5px solid var(--ink); }
.ind-row {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  align-items: baseline;
  gap: 0.8rem;
  width: 100%;
  padding: clamp(0.85rem, 1.8vw, 1.2rem) 0.4rem;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 900; font-stretch: 115%;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  text-transform: uppercase; letter-spacing: -0.015em;
  line-height: 1.05;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(11, 14, 20, 0.5);
  transition: color 0.25s ease, transform 0.25s ease, -webkit-text-stroke-color 0.25s ease;
}
.ind-row em {
  font-family: 'Space Grotesk', sans-serif;
  font-style: normal; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--grey);
  -webkit-text-stroke: 0;
  transition: color 0.25s ease;
}
.ind-row:hover, li.on .ind-row {
  color: var(--ink);
  -webkit-text-stroke-color: var(--ink);
  transform: translateX(10px);
}
li.on .ind-row em { color: var(--blue); }
.ind-inline { display: none; }

.ind-panel {
  position: sticky;
  top: calc(var(--nav-h) + 2.5rem);
  background: var(--ink);
  color: var(--white);
  border-radius: 20px;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  overflow: hidden;
  min-height: 21rem;
  box-shadow: 16px 16px 0 -6px var(--blue);
}
.ind-num {
  position: absolute;
  top: -1.4rem; right: 0.6rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-stretch: 125%;
  font-size: 7.5rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 246, 250, 0.14);
  pointer-events: none;
}
.ind-copy h3 {
  font-stretch: 116%;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin-bottom: 0.8rem;
}
.ind-copy p { color: var(--grey-2); max-width: 26rem; font-size: 1rem; }
.ind-tags {
  margin-top: 1.4rem;
  font-size: 0.72rem !important; font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--blue-soft, #6FB4FF) !important;
}
.ind-wave { width: 100%; height: 56px; margin-top: 2rem; }
.ind-wave polyline {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.5;
  stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(145, 245, 53, 0.6));
}

/* ---------- ROI ---------- */
.roi {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  border: 1.5px solid var(--ink); border-radius: 14px;
  padding: clamp(1.6rem, 4vw, 3rem);
}
.roi-inputs label { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.7rem; }
.roi-inputs output { float: right; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 1rem; }
.roi-inputs input[type="range"] { width: 100%; margin-top: 0.7rem; accent-color: var(--blue); }
.roi-cap { font-size: 0.95rem; color: var(--grey); max-width: 30rem; }
.roi-big {
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-stretch: 122%;
  font-size: clamp(3.4rem, 8.5vw, 7.5rem);
  letter-spacing: -0.03em; line-height: 1;
  color: var(--blue);
  margin: 0.6rem 0;
}
.roi-cap-sm { font-size: 0.95rem; color: var(--grey); }
.roi-cap-sm strong { color: var(--ink); }
.roi-note { margin-top: 1.6rem; font-size: 0.8rem; color: var(--grey); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.about-lede { font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.5; }
.creed { list-style: none; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.creed li { padding: 1.1rem 0; border-bottom: 1.5px solid var(--ink); font-size: 0.95rem; color: var(--grey); }
.creed strong { color: var(--ink); display: block; font-family: 'Archivo', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 1.02rem; letter-spacing: 0.01em; margin-bottom: 0.15rem; }

/* ---------- contact CTA panel ---------- */
.cta-panel {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  border: 1px solid rgba(242, 246, 250, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(70% 90% at 85% 20%, rgba(36, 145, 255, 0.14), transparent 65%),
    rgba(242, 246, 250, 0.03);
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
}
.cta-title {
  font-stretch: 116%;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.05; letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
}
.cta-title b { color: var(--blue); }
.contact-sub { color: var(--grey-2); max-width: 28rem; margin-bottom: 1.6rem; }
.cta-actions {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  border-left: 1px solid rgba(242, 246, 250, 0.14);
  padding-left: clamp(1.5rem, 3vw, 3rem);
}
.btn-big { padding: 1.05rem 2.1rem; font-size: 0.95rem; }
.cta-mail {
  font-family: 'Archivo', sans-serif;
  font-weight: 800; font-stretch: 110%;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  letter-spacing: -0.01em;
  color: var(--white);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.15rem;
}
.cta-mail:hover { color: var(--blue); }
.cta-note { font-size: 0.8rem; color: var(--grey); }
.cta-ekg { width: min(260px, 100%); height: 34px; margin-top: 0.6rem; }
.cta-ekg path {
  stroke: var(--lime); stroke-width: 2.5;
  stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(145, 245, 53, 0.55));
}

/* ---------- contact page ---------- */
.contact-page {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 6vh) var(--pad) clamp(4rem, 8vw, 7rem);
}
.cp-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}
.cp-title {
  font-stretch: 116%;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.03; letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
}
.cp-title b { color: var(--blue); }
.cp-sub { color: var(--grey); max-width: 26rem; margin-bottom: 1.6rem; }
.cp-checks li { border-color: rgba(11, 14, 20, 0.35); color: var(--grey); }
.cp-mail {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-weight: 800; font-stretch: 110%;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.15rem;
  margin-bottom: 1.8rem;
}
.cp-mail:hover { color: var(--blue); }
.socials { display: flex; gap: 0.8rem; margin-bottom: 2rem; }
.soc {
  width: 2.8rem; height: 2.8rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: default;
}
.soc svg { width: 1.25rem; height: 1.25rem; }
.soc:hover { background: var(--ink); color: var(--white); transform: translateY(-3px); }
.cp-ekg { margin-top: 0; }
.cp-form {
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 16px 16px 0 -6px var(--blue);
  padding: 0.6rem;
  height: 1020px;
}
.cp-form iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }

/* ---------- form lightbox ---------- */
.form-modal { position: fixed; inset: 0; z-index: 250; }
.form-modal[hidden] { display: none; }
.fm-backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 14, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.fm-box {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, 94vw);
  height: min(78vh, 760px);
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 18px 18px 0 -6px var(--blue), 0 30px 80px rgba(11, 14, 20, 0.5);
  animation: fmIn 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes fmIn {
  from { opacity: 0; transform: translate(-50%, -47%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.fm-close {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  z-index: 1;
  width: 2.2rem; height: 2.2rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.fm-close:hover { background: var(--ink); color: var(--white); }
#formFrame { width: 100%; height: 100%; border: 0; display: block; }
@media (prefers-reduced-motion: reduce) { .fm-box { animation: none; } }

/* ---------- legal pages ---------- */
.legal-page {
  max-width: 46rem;
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) var(--pad) clamp(4rem, 8vw, 6rem);
}
.legal-head { margin-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1.5px solid var(--ink); padding-bottom: 2rem; }
.legal-head h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-stretch: 116%;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  text-transform: uppercase; letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.legal-org { font-style: normal; font-size: 0.95rem; line-height: 1.7; color: var(--grey); }
.legal-org strong { color: var(--ink); }
.legal-org a { color: var(--blue); }
.legal-date { margin-top: 0.8rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.legal-body section { margin-bottom: 2.2rem; }
.legal-body h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-stretch: 112%;
  font-size: 1.15rem; text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}
.legal-body p, .legal-body li { font-size: 0.97rem; line-height: 1.7; color: #2a3342; }
.legal-body ul { padding-left: 1.2rem; }
.legal-body li { margin-bottom: 0.4rem; }
.legal-body a { color: var(--blue); }
.legal-foot { border-top: 1.5px solid var(--ink); padding-top: 1.6rem; margin-top: 3rem; font-size: 0.95rem; }
.legal-foot a { color: var(--blue); }

/* ---------- footer ---------- */
.footer {
  background: var(--ink); color: var(--white);
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem;
  display: grid;
  grid-template-columns: 1.2fr 2.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid rgba(242, 246, 250, 0.12);
}
.foot-tag {
  margin-top: 1.2rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 800; font-stretch: 112%;
  font-size: 1.15rem; text-transform: uppercase;
  letter-spacing: -0.01em;
}
.foot-cols {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.foot-cols h4 {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 1rem;
}
.foot-cols a, .foot-loc {
  display: block;
  font-size: 0.88rem; color: var(--grey-2);
  margin-bottom: 0.55rem;
}
.foot-cols a:hover { color: var(--white); }
.foot-loc { color: var(--grey); }
.foot-legal {
  grid-column: 1 / -1;
  margin-top: 2rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(242, 246, 250, 0.1);
  font-size: 0.75rem; color: var(--grey);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #preloader { display: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-glyph, .float-card, .fc-dot { animation: none; }
  .svc-wave polyline { animation: none; }
  .tl-body { opacity: 1; transform: none; transition: none; }
  .tl-node { transform: translate(-50%, -50%); transition: none; }
  .ekg-label { opacity: 1; transition: none; }
  .marquee-track { transform: none !important; }
  #cursorDot { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); display: block; transition: transform 0.3s ease; }
  body.menu-open .nav-toggle span:first-child { transform: translateY(4.2px) rotate(45deg); }
  body.menu-open .nav-toggle span:last-child { transform: translateY(-4.2px) rotate(-45deg); }
  body.menu-open .nav { background: var(--ink); border-color: rgba(242,246,250,0.15); }
  body.menu-open .nav .wordmark, body.menu-open .nav-toggle span { color: var(--white); background: var(--white); }
  body.menu-open .nav .wordmark { background: none; }
  .index-row a { grid-template-columns: 2.4rem 1fr; }
  .index-row span { grid-column: 2; text-align: left; }
  .quotes, .cases { grid-template-columns: 1fr; }
  .roi, .about-grid, .who-grid, .cta-panel, .cp-grid { grid-template-columns: 1fr; }
  .cta-actions { border-left: 0; padding-left: 0; border-top: 1px solid rgba(242, 246, 250, 0.14); padding-top: 1.6rem; }
  .diff-grid, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .appr-grid { grid-template-columns: 1fr; }
  .appr-visual { position: static; margin-top: 2.5rem; }
  .ind-grid { grid-template-columns: 1fr; }
  .ind-panel { display: none; }
  .ind-inline { display: block; padding: 0 0.4rem 1rem; font-size: 0.88rem; color: var(--grey); }
  .ind-row { color: var(--ink); -webkit-text-stroke: 0; }
  .footer { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero { padding-top: calc(var(--nav-h) + 4vh); }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-media { box-shadow: 14px 14px 0 -8px var(--blue); }
  .hero-media video { aspect-ratio: 16 / 10; }
  .fc-metric { left: 0.8rem; top: -1.2rem; }
  .fc-live { right: 0.8rem; bottom: -1rem; }
}
@media (max-width: 560px) {
  .diff-grid, .svc-grid { grid-template-columns: 1fr; }
}
