/* Wave 115 - full audit implementation: shorter routes, one signal layer, preserved context. */
:root {
  --wave115-cyan: #5dc9d6;
  --wave115-gold: #e6b84f;
  --wave115-red: #ff5d54;
  --wave115-ink: #f7f4ea;
  --wave115-muted: #b9c5d3;
  --wave115-panel: rgba(7, 19, 34, 0.96);
  --wave115-line: rgba(93, 201, 214, 0.24);
}

body.wave115-ready {
  --wave22a-signal-height: 0px;
}

body.wave115-ready .skip-link {
  position: fixed !important;
  z-index: 10000 !important;
  top: -100px !important;
  left: 1rem !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  clip: auto !important;
  overflow: visible !important;
  padding: 0.75rem 1rem !important;
  color: #030912 !important;
  background: var(--wave115-cyan) !important;
  border: 2px solid #fff !important;
  border-radius: 4px !important;
  font: 800 0.85rem/1.2 "JetBrains Mono", ui-monospace, monospace !important;
  transition: top 160ms ease !important;
}

body.wave115-ready .skip-link:focus,
body.wave115-ready .skip-link:focus-visible {
  top: 1rem !important;
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
}

body.wave115-ready > .b2b-commerce-note {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.wave115-ready [data-wave22a-signal-strip],
body.wave115-ready [data-execution-signal-strip],
body.wave115-ready .wave22a-signal-strip,
body.wave115-ready .execution-signal-strip {
  display: none !important;
}

body.wave115-conversion-page:not(.wave115-route-home) .wave23d-companion__bubble,
body.wave115-conversion-page:not(.wave115-route-home) .wave23e-companion__signal-controls {
  display: none !important;
}

body.wave115-conversion-page .wave23d-companion__dock {
  z-index: 19 !important;
}

body.wave115-conversion-page .site-nav {
  font-size: clamp(0.78rem, 0.74vw, 0.92rem) !important;
}

body.wave115-conversion-page .site-nav a,
body.wave115-conversion-page .header-cta {
  min-height: 44px;
}

body.wave115-route-home .hero {
  min-height: min(860px, 88svh) !important;
  padding-bottom: clamp(2.75rem, 5vw, 5rem) !important;
}

body.wave115-route-home .hero-actions .button-primary ~ .button-primary {
  color: var(--wave115-ink) !important;
  background: transparent !important;
  border-color: rgba(247, 244, 234, 0.4) !important;
}

body.wave115-route-services .system-page-hero,
body.wave115-route-diagnosis .system-page-hero,
body.wave115-route-use-cases .system-page-hero {
  min-height: auto !important;
  padding-top: calc(var(--header-height, 78px) + clamp(3rem, 6vw, 6.5rem)) !important;
  padding-bottom: clamp(3.5rem, 7vw, 7rem) !important;
}

body.wave115-route-services .system-page-hero h1,
body.wave115-route-diagnosis .system-page-hero h1,
body.wave115-route-use-cases .system-page-hero h1 {
  max-width: 14ch !important;
  font-size: clamp(3rem, 5vw, 6.2rem) !important;
  line-height: 0.97 !important;
}

body.wave115-route-services :is(.section, section),
body.wave115-route-diagnosis :is(.section, section),
body.wave115-route-use-cases :is(.section, section) {
  scroll-margin-top: calc(var(--header-height, 78px) + 1.5rem) !important;
}

.wave115-progressive-deep-dive {
  width: min(100%, 1520px);
  margin: clamp(2rem, 4vw, 4rem) auto;
  border: 1px solid var(--wave115-line);
  background:
    linear-gradient(145deg, rgba(93, 201, 214, 0.08), transparent 36%),
    var(--wave115-panel);
}

.wave115-progressive-deep-dive > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 88px;
  padding: 1.25rem clamp(1.25rem, 3vw, 2.5rem);
  cursor: pointer;
  list-style: none;
}

.wave115-progressive-deep-dive > summary::-webkit-details-marker {
  display: none;
}

.wave115-progressive-deep-dive > summary::before {
  content: "+";
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--wave115-cyan);
  border: 1px solid var(--wave115-line);
  border-radius: 50%;
  font: 700 1.25rem/1 "JetBrains Mono", ui-monospace, monospace;
}

.wave115-progressive-deep-dive[open] > summary::before {
  content: "−";
}

.wave115-progressive-deep-dive > summary strong,
.wave115-progressive-deep-dive > summary span {
  display: block;
}

.wave115-progressive-deep-dive > summary strong {
  color: var(--wave115-ink);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.wave115-progressive-deep-dive > summary span span {
  color: var(--wave115-muted);
  font-size: 0.82rem;
}

.wave115-progressive-deep-dive > summary em {
  color: var(--wave115-cyan);
  font: 700 0.7rem/1.3 "JetBrains Mono", ui-monospace, monospace;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wave115-progressive-deep-dive > :not(summary) {
  margin-inline: 0 !important;
}

.wave115-progressive-deep-dive:focus-within {
  border-color: rgba(93, 201, 214, 0.62);
}

.wave115-route-services #service-map {
  min-height: 0 !important;
  padding-top: clamp(3.5rem, 6vw, 6rem) !important;
  padding-bottom: clamp(3.5rem, 6vw, 6rem) !important;
}

.wave115-route-services #service-map :is(h2, h3) {
  text-wrap: balance;
}

.wave115-route-services #service-map :is(a, button) {
  min-height: 44px;
}

.wave115-fingerprint-advanced {
  margin: 1rem clamp(0.75rem, 2vw, 1.5rem) 1.5rem;
  border: 1px solid rgba(93, 201, 214, 0.2);
  background: rgba(4, 13, 24, 0.6);
}

.wave115-fingerprint-advanced > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.9rem 1.15rem;
  color: var(--wave115-cyan);
  cursor: pointer;
  list-style: none;
  font: 800 0.76rem/1.4 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wave115-fingerprint-advanced > summary::-webkit-details-marker {
  display: none;
}

.wave115-fingerprint-advanced > summary::after {
  content: "+";
  font-size: 1.25rem;
}

.wave115-fingerprint-advanced[open] > summary::after {
  content: "−";
}

.wave115-fingerprint-advanced .signal-lab__fingerprints {
  margin: 0 !important;
  border: 0 !important;
}

.wave115-result-focus {
  outline: 2px solid var(--wave115-cyan) !important;
  outline-offset: 8px !important;
  box-shadow: 0 0 0 12px rgba(93, 201, 214, 0.08) !important;
}

body.wave115-route-contact .contact-intake-section {
  min-height: auto !important;
  padding-top: calc(var(--header-height, 78px) + clamp(2.5rem, 5vw, 5rem)) !important;
  padding-bottom: clamp(4rem, 7vw, 7rem) !important;
}

body.wave115-route-contact .executive-intake-opening {
  max-width: 1180px;
}

body.wave115-route-contact .executive-intake-opening h1 {
  max-width: 15ch !important;
  font-size: clamp(3rem, 5.1vw, 6rem) !important;
  line-height: 0.98 !important;
}

body.wave115-route-contact .executive-intake-opening .section-lead {
  max-width: 780px;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
}

body.wave115-route-contact .executive-intake-trust {
  margin-top: 1.25rem !important;
}

.wave115-offer-context {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(145px, 0.55fr));
  gap: 1px;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(230, 184, 79, 0.34);
  background: rgba(230, 184, 79, 0.28);
}

.wave115-offer-context > div {
  min-width: 0;
  padding: 1rem 1.1rem;
  background: rgba(5, 17, 31, 0.97);
}

.wave115-offer-context > div:first-child {
  background:
    linear-gradient(135deg, rgba(230, 184, 79, 0.12), transparent),
    rgba(5, 17, 31, 0.98);
}

.wave115-offer-context span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--wave115-muted);
  font: 700 0.65rem/1.3 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wave115-offer-context strong {
  display: block;
  color: var(--wave115-ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

.wave115-offer-context > div:first-child strong {
  color: var(--wave115-gold);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

body.wave115-route-contact .executive-intake-grid {
  align-items: start;
  margin-top: clamp(1.25rem, 2.5vw, 2.5rem) !important;
}

body.wave115-route-contact .intake-architecture-note {
  display: none !important;
}

.wave115-data-disclosure {
  margin: 1rem 0 1.25rem;
  border: 1px solid rgba(93, 201, 214, 0.2);
  background: rgba(4, 13, 24, 0.5);
}

.wave115-data-disclosure > summary {
  padding: 0.85rem 1rem;
  color: var(--wave115-cyan);
  cursor: pointer;
  font: 750 0.72rem/1.4 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wave115-data-disclosure > div {
  padding: 0 1rem 1rem;
  color: var(--wave115-muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

body.wave115-route-contact .contact-intake-form :is(input, select, textarea, button) {
  min-height: 48px;
}

body.wave115-route-contact .contact-intake-form textarea {
  min-height: 132px;
}

body.wave115-route-contact .executive-intake-guidance {
  position: sticky;
  top: calc(var(--header-height, 78px) + 1.25rem);
}

@media (max-width: 980px) {
  .wave115-offer-context {
    grid-template-columns: 1fr 1fr;
  }

  .wave115-offer-context > div:first-child {
    grid-column: 1 / -1;
  }

  body.wave115-route-contact .executive-intake-guidance {
    position: static;
  }
}

@media (max-width: 760px) {
  body.wave115-route-home .hero {
    min-height: auto !important;
    padding-top: calc(var(--header-height, 70px) + 2.25rem) !important;
  }

  body.wave115-route-services .system-page-hero,
  body.wave115-route-diagnosis .system-page-hero,
  body.wave115-route-use-cases .system-page-hero,
  body.wave115-route-contact .contact-intake-section {
    padding-top: calc(var(--header-height, 70px) + 2.25rem) !important;
    padding-bottom: 3.25rem !important;
  }

  body.wave115-route-services .system-page-hero h1,
  body.wave115-route-diagnosis .system-page-hero h1,
  body.wave115-route-use-cases .system-page-hero h1,
  body.wave115-route-contact .executive-intake-opening h1 {
    font-size: clamp(2.55rem, 12vw, 4.5rem) !important;
  }

  .wave115-progressive-deep-dive {
    margin-block: 1.5rem;
  }

  .wave115-progressive-deep-dive > summary {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 76px;
    padding: 1rem;
  }

  .wave115-progressive-deep-dive > summary em {
    display: none;
  }

  .wave115-offer-context {
    grid-template-columns: 1fr;
    margin-top: 1.15rem;
  }

  .wave115-offer-context > div:first-child {
    grid-column: auto;
  }

  body.wave115-route-contact .executive-intake-trust {
    display: none !important;
  }

  body.wave115-route-contact .executive-intake-grid {
    margin-top: 1rem !important;
  }

  body.wave115-route-contact .executive-intake-form-head {
    margin-bottom: 1rem !important;
  }

  body.wave115-route-contact .executive-intake-form-head > p:not(.eyebrow) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.wave115-ready .skip-link {
    transition: none !important;
  }
}
