/* ============================================================
   Cambridge Collaborative — modern site (v2)
   Dark, Linear-inspired design system. Brand teal accent.
   ============================================================ */

:root {
  --bg: #08090a;
  --bg-elev: #0d0e10;
  --surface: #101114;
  --surface-2: #16181c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --ink: #f7f8f8;
  --body: #b4bcc2;
  --muted: #8a9298;
  --dim: #62686e;
  --accent: #45c4d6;
  --accent-strong: #6fd6e5;
  --accent-ink: #04262b;
  --accent-glow: rgba(0, 136, 153, 0.32);
  --radius: 14px;
  --radius-sm: 9px;
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-nav: 100;
  --z-menu: 110;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film-grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

::selection { background: rgba(69, 196, 214, 0.28); color: var(--ink); }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

h1, h2, h3 { color: var(--ink); text-wrap: balance; }

.dim { color: var(--muted); }

.container {
  width: min(100% - 3rem, 1080px);
  margin-inline: auto;
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: var(--z-nav);
  background: rgba(8, 9, 10, 0.65);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.site-nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8, 9, 10, 0.82);
}

.nav-inner {
  width: min(100% - 3rem, 1080px);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.08em;
  font-size: 1.02rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-links a.nav-cta {
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 600;
  margin-left: 0.5rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  transition: background-color 0.18s ease;
}
.nav-links a.nav-cta:hover { background: var(--accent-strong); color: var(--accent-ink); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: var(--z-menu);
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(9, 10, 12, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; padding: 0.7rem 0.9rem; }
  .nav-links a.nav-cta { margin: 0.5rem 0 0; text-align: center; }
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.62rem 1.35rem;
  border-radius: 999px;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out);
}
.btn:active { transform: scale(0.98); }

.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 24px -6px rgba(69, 196, 214, 0.5);
}
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--ink); background: rgba(255, 255, 255, 0.06); }

/* ------------------------------------------------------------
   Home hero
   ------------------------------------------------------------ */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(4rem, 9vh, 6.5rem)) 0 clamp(3rem, 6vh, 4.5rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 640px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, rgba(0, 136, 153, 0.07) 45%, transparent 70%);
  filter: blur(48px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
  position: relative;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .hero-visual { margin-top: 2.5rem; }
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2rem, 3.3vw, 2.8rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.hero .lede {
  margin-top: 1.3rem;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.9rem;
  flex-wrap: wrap;
}

/* Hero visual: prediction vs. test data analysis panel */
.hero-visual {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-frame {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #101215 0%, #0a0c0e 100%);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 30px 90px -30px rgba(0, 136, 153, 0.4),
    0 20px 60px rgba(0, 0, 0, 0.55);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.app-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.app-bar .app-mark {
  margin-left: auto;
  color: var(--dim);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.app-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(0.8rem, 2.5vw, 1.4rem) clamp(0.6rem, 2vw, 1.4rem) 0.2rem;
}

.app-body svg { width: 100%; height: auto; display: block; }

.chart-grid-line { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.chart-axis { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.chart-tick {
  fill: var(--dim);
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 11px;
}
.eq-bar { fill: rgba(69, 196, 214, 0.09); }
.line-pred { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.line-test { stroke: #7d858c; stroke-width: 1.8; fill: none; stroke-dasharray: 5 6; stroke-linecap: round; }
.pt-test { fill: #a7aeb4; }

html.js .draw-on {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-line 1.7s var(--ease-out) forwards;
}
html.js .line-test.draw-on { animation-delay: 0.55s; stroke-dasharray: 5 6; }
html.js .line-pred.draw-on { animation-delay: 0.25s; }

/* dashed line draws via a mask so its dash pattern is preserved */
@keyframes draw-line { to { stroke-dashoffset: 0; } }

html.js .eq-bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: eq-pulse var(--eq-dur, 3s) ease-in-out var(--eq-delay, 0s) infinite alternate;
}

@keyframes eq-pulse {
  from { transform: scaleY(0.78); }
  to { transform: scaleY(1.04); }
}

.app-legend {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 1.4rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.app-legend .key {
  width: 18px;
  height: 0;
  border-top: 2.5px solid var(--accent);
  border-radius: 2px;
}

.app-legend .key-test { border-top: 2px dashed #7d858c; }

.app-legend .sep { width: 1.2rem; }

.app-status {
  padding: 0.75rem 1.4rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.81rem;
  color: var(--dim);
}

/* Hero entrance choreography */
html.js .hero-enter > * {
  opacity: 0;
  animation: rise-in 0.9s var(--ease-out) forwards;
}
html.js .hero-enter > *:nth-child(1) { animation-delay: 0.05s; }
html.js .hero-enter > *:nth-child(2) { animation-delay: 0.16s; }
html.js .hero-enter > *:nth-child(3) { animation-delay: 0.27s; }
html.js .hero-enter > *:nth-child(4) { animation-delay: 0.38s; }

html.js .hero-visual {
  opacity: 0;
  animation: rise-in 1.1s var(--ease-out) 0.5s forwards;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ------------------------------------------------------------
   Client wheel
   ------------------------------------------------------------ */

.clients {
  padding: clamp(2rem, 4.5vh, 2.8rem) 0 clamp(1.4rem, 3vh, 1.8rem);
  border-top: 1px solid var(--border);
}

.clients-caption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--dim);
  margin-bottom: 1.8rem;
  padding-inline: 1.5rem;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
}

html.js .marquee-track { animation: marquee 110s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* track holds two identical groups; one full group per cycle */
@keyframes marquee { to { transform: translateX(calc(-50% - 2.25rem)); } }

/* Client marks: official logo artwork (Wikimedia Commons files, greyscaled
   via CSS) with the company name set below in the site's own typeface. */
.client-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.client-logo {
  height: 26px;
  width: auto;
  /* uniform light-grey silhouette on the dark background */
  filter: grayscale(1) brightness(0) invert(0.72);
  opacity: 0.9;
}

/* logos whose lettering is knocked out of a filled shape keep their
   internal contrast instead of being silhouetted */
.logo-ford, .logo-york { filter: grayscale(1) brightness(1.35); opacity: 0.8; }

/* NUWC badge: silhouetted like the rest, but taller so its small
   lettering stays legible */
.logo-nuwc { height: 34px; }

/* detailed emblems (seals, roundels) keep their internal artwork and
   get a little more room to stay legible */
.logo-emblem {
  height: 34px;
  filter: grayscale(1) brightness(1.3);
  opacity: 0.8;
}

/* white lettering knocked out of a black plate: the plate melts into
   the page background, leaving the wordmark */
.logo-onblack { filter: grayscale(1) brightness(0.85); opacity: 0.85; }

/* clients with no logo artwork available: the name is the mark */
.wordmark-solo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #7d858c;
  white-space: nowrap;
}

.wordmark {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--dim);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hero banner strip: sits with the headline as part of the copy block.
   The source PNG carries large transparent margins (right side especially);
   the oversize + shift crops them so the photos fill the band. */
.hero-banner {
  width: min(100%, 460px);
  margin-top: 1.9rem;
  aspect-ratio: 3.15 / 1;
  overflow: hidden;
}

.hero-banner img {
  width: 134.7%;
  max-width: none;
  height: auto;
  transform: translate(-3.75%, -9%);
}

/* ------------------------------------------------------------
   Bento panels
   ------------------------------------------------------------ */

.bento-section { padding: clamp(2rem, 4.5vh, 3rem) 0 clamp(3.5rem, 9vh, 6rem); }

.section-head {
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 620;
  letter-spacing: -0.024em;
  line-height: 1.2;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.bento-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.35s var(--ease-out);
}

.bento-panel:hover {
  border-color: rgba(69, 196, 214, 0.35);
  transform: translateY(-2px);
}

.bento-panel > :last-child { margin-bottom: 0; }

/* whole panel is clickable: the title link stretches over the card */
.bento-panel h3 a {
  color: inherit;
  display: inline-block;
}

.bento-panel h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bento-panel h3 a:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius);
}

/* interactive elements inside a panel sit above the stretched link */
.bento-panel .chip,
.bento-panel .contact-inline a { position: relative; z-index: 1; }

/* Panel displays: a recessed instrument strip built into the top of
   each card. The panel's animation lives inside it. */
.panel-display {
  position: relative;
  height: 64px;
  margin: -1.8rem -1.7rem 1.4rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  opacity: 0.6;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bento-panel:hover .panel-display { opacity: 1; }

.panel-display svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Software: frequency curve; a dot rides the curve under the cursor (JS) */
html.js .js-curve:hover .disp-curve {
  stroke-dasharray: 1;
  animation: disp-draw 1.1s var(--ease-out);
}

@keyframes disp-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.disp-dot {
  position: absolute;
  left: -20px;
  top: 0;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.js-curve:hover .disp-dot { opacity: 1; }

/* Testing: meter bars track the cursor across the panel (JS) */
html.js .disp-bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.18s ease-out;
}

/* Consulting: a still signal trace; a single bright pulse travels the
   wire while hovered — movement without flicker */
.disp-sig { opacity: 0.75; }

.disp-pulse { opacity: 0; }

html.js .js-signal:hover .disp-pulse,
html.js .page-display.js-signal.near .disp-pulse {
  opacity: var(--near, 1);
  stroke-dasharray: 0.06 0.94;
  animation: disp-travel 3.8s linear infinite;
}

@keyframes disp-travel {
  from { stroke-dashoffset: 1.06; }
  to { stroke-dashoffset: 0.06; }
}

/* Support: concentric beacon at rest; a wide ping expands on hover */
html.js .disp-ring {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.4;
}
html.js .js-sonar:hover .disp-ring,
html.js .page-display.js-sonar.near .disp-ring { animation: disp-pulse 3s ease-out infinite; }
html.js .js-sonar:hover .disp-ring-2,
html.js .page-display.js-sonar.near .disp-ring-2 { animation-delay: 1s; }
html.js .js-sonar:hover .disp-ring-3,
html.js .page-display.js-sonar.near .disp-ring-3 { animation-delay: 2s; }

@keyframes disp-pulse {
  0% { transform: scale(0.5); opacity: 0; }
  12% { opacity: var(--near, 1); }
  100% { transform: scale(11); opacity: 0; }
}

.b-software { grid-column: span 4; }
.b-testing { grid-column: span 2; }
.b-consulting { grid-column: span 3; }
.b-support { grid-column: span 3; }

@media (max-width: 860px) {
  .b-software, .b-testing, .b-consulting, .b-support { grid-column: span 6; }
}

/* mouse-tracked spotlight */
.card-spot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(69, 196, 214, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card-spot:hover::before { opacity: 1; }

.bento-panel h3 {
  font-size: 1.1rem;
  font-weight: 620;
  letter-spacing: -0.012em;
  margin-bottom: 0.75rem;
}

.bento-panel p {
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.bento-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.bento-panel li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 1.05rem;
  position: relative;
}

.bento-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.chip-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.chip:hover { border-color: rgba(69, 196, 214, 0.5); color: var(--ink); background: #1a1d22; }

.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.chip .ext { color: var(--muted); font-weight: 400; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

.card-link .arrow { transition: transform 0.25s var(--ease-out); }
.card-link:hover .arrow, .bento-panel:hover > .card-link .arrow { transform: translateX(4px); }

.contact-inline {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.contact-inline a { font-weight: 600; }
.contact-inline .phone { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------
   Closing band: quote + invitation in one section
   ------------------------------------------------------------ */

.closing {
  padding: clamp(3rem, 7vh, 4.5rem) 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.closing .cta-glow {
  position: absolute;
  bottom: -340px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 480px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 68%);
  filter: blur(44px);
  pointer-events: none;
}

.closing .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 760px) {
  .closing .container { grid-template-columns: 1fr; }
}

.closing blockquote {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--ink);
  max-width: 34ch;
  text-wrap: balance;
}

.closing-cta {
  border-left: 1px solid var(--border);
  padding-left: clamp(2rem, 5vw, 4.5rem);
}

@media (max-width: 760px) {
  .closing-cta { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 2rem; }
}

.closing-cta h2 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--body);
  max-width: 34ch;
  margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------
   Inner pages
   ------------------------------------------------------------ */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(3rem, 8vh, 4.5rem)) 0 clamp(2rem, 5vh, 3rem);
  overflow: hidden;
}

.page-hero .hero-glow { opacity: 0.5; }

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 24ch;
  position: relative;
}

.page-hero .lede {
  margin-top: 1.1rem;
  font-size: 1.03rem;
  color: var(--muted);
  max-width: 52ch;
  position: relative;
}

/* Signal divider: the page's instrument strip, full container width.
   --near (set by JS) is cursor proximity, 0 far → 1 inside the strip. */
.page-display {
  position: relative;
  height: 56px;
  margin-top: clamp(1.8rem, 4vh, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  color: var(--accent);
  opacity: calc(0.7 + 0.3 * var(--near, 0));
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.page-display:hover { opacity: 1; }

.page-display svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Two-column page body: reading column + sticky rail */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.page-main { min-width: 0; }

.side-rail {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 860px) {
  .page-grid { grid-template-columns: 1fr; }
  .side-rail { position: static; max-width: 420px; }
}

.rail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}

.rail-card h4 {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.rail-card .chip-row { margin-bottom: 0; }
.rail-card .test-extra { margin-top: 0; }
.rail-card .contact-inline { margin-bottom: 1.1rem; }
.rail-card .btn { font-size: 0.88rem; padding: 0.55rem 1.2rem; }

/* Closing band on single-column pages: invitation + contact action.
   Replaces the old photo side rail — one tight group left, one action right. */
.page-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2.5rem;
  flex-wrap: wrap;
  margin-top: clamp(2.4rem, 6vh, 3.6rem);
  padding-top: clamp(1.8rem, 4vh, 2.4rem);
  border-top: 1px solid var(--border);
}

.page-cta p {
  font-size: 1.02rem;
  color: var(--body);
  max-width: 44ch;
  margin: 0;
  text-wrap: pretty;
}

.page-cta .contact-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
}

/* Product jump chips sitting directly under intro prose */
.prose + .chip-row { margin-top: 1.8rem; margin-bottom: 0; }

/* Inner-page hero photos */
.page-photo {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 6px rgba(69, 196, 214, 0.05), 0 24px 60px -20px rgba(0, 0, 0, 0.65);
}

.page-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

/* Prose body */
.page-body { padding-bottom: clamp(4rem, 10vh, 7rem); }

.prose { max-width: 68ch; }

.prose p { margin-bottom: 1.35rem; font-size: 1.01rem; }

.prose p:last-child { margin-bottom: 0; }

.prose strong, .prose b { color: var(--ink); font-weight: 600; }

.prose a { border-bottom: 1px solid rgba(69, 196, 214, 0.35); }
.prose a:hover { border-bottom-color: var(--accent-strong); }

/* Product cards (software page) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin: 2.2rem 0;
}

.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.product-card:hover { border-color: rgba(69, 196, 214, 0.4); }

.product-card h2 {
  font-size: 1.22rem;
  font-weight: 620;
  letter-spacing: -0.015em;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.product-card h2::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  flex-shrink: 0;
}

.product-card p { font-size: 0.95rem; margin-bottom: 1.1rem; }

.product-card .card-link { font-size: 0.9rem; margin-top: 0; }
.product-card:hover .card-link .arrow { transform: translateX(4px); }

/* ------------------------------------------------------------
   Product showcase bands (software page)
   ------------------------------------------------------------ */

.product-showcase {
  border-top: 1px solid var(--border);
  padding: clamp(2.8rem, 7vh, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}

.showcase-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}

.showcase-title-row h2 {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.showcase-title-row h2::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  flex-shrink: 0;
}

.showcase-badges { display: flex; gap: 0.5rem; }

.badge {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
}

.showcase-tagline {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.028em;
  line-height: 1.14;
  color: var(--ink);
  max-width: 26ch;
  text-wrap: balance;
}

.showcase-desc {
  margin-top: 1.1rem;
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 60ch;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 14px;
  margin-top: 2.4rem;
  align-items: stretch;
}

@media (max-width: 860px) {
  .showcase-grid { grid-template-columns: 1fr; }
}

/* live-array readout mockup */
.readout-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #101215 0%, #0a0c0e 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.readout-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8rem;
  color: var(--muted);
}

.readout-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.readout-bar .label { margin-left: 0.35rem; }

.readout-sonar {
  height: 84px;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.readout-sonar svg { width: 100%; height: 100%; display: block; }

html.js .live-ring {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: disp-pulse 3.4s ease-out infinite;
}
html.js .live-ring-2 { animation-delay: 1.15s; }
html.js .live-ring-3 { animation-delay: 2.3s; }

/* Site Acoustics noise-map illustration: framed feature image */
.map-frame {
  align-self: center;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 6px rgba(69, 196, 214, 0.05), 0 22px 60px -24px rgba(0, 0, 0, 0.7);
}

.map-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.readout-rows { padding: 0.4rem 1.2rem 0.9rem; flex: 1; }

.readout-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.readout-row:last-child { border-bottom: 0; }

.readout-row .k { color: var(--dim); }
.readout-row .v { color: var(--ink); font-weight: 600; }
.readout-row .v-accent { color: var(--accent); font-weight: 650; }

/* capability tiles */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr; }
}

.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  transition: border-color 0.25s ease;
}

.cap-card:hover { border-color: rgba(69, 196, 214, 0.3); }

.cap-card h3 {
  font-size: 0.96rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.cap-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

/* environment cards */
.env-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .env-grid { grid-template-columns: 1fr; }
}

.env-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: border-color 0.25s ease;
}

.env-card:hover { border-color: rgba(69, 196, 214, 0.3); }

.env-card h3 {
  font-size: 1.05rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.env-card .env-sub {
  display: block;
  font-size: 0.83rem;
  color: var(--accent);
  margin: 0.3rem 0 0.75rem;
}

.env-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.showcase-note {
  margin-top: 1.8rem;
  font-size: 0.92rem;
  color: var(--dim);
  max-width: 62ch;
}

.showcase-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.showcase-cta .fine {
  font-size: 0.85rem;
  color: var(--dim);
}

/* trailing prose band (software history) */
.prose-band {
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(3.5rem, 8vh, 5.5rem);
}


/* Testing service sections */
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 2.2rem;
}

.test-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.test-card:hover { border-color: rgba(69, 196, 214, 0.35); }

/* two-up variant: full-span siblings keep auto-fit from collapsing its
   empty tracks, so pin the column count explicitly */
.test-grid.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 720px) {
  .test-grid.grid-2 { grid-template-columns: 1fr; }
}

.test-card h2 {
  font-size: 1.06rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.test-card p { font-size: 0.93rem; margin-bottom: 0.9rem; }
.test-card p:last-child { margin-bottom: 0; }

.test-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.test-card li {
  font-size: 0.92rem;
  line-height: 1.5;
  padding-left: 1.15rem;
  position: relative;
}

.test-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.test-card strong { color: var(--ink); font-weight: 600; }
.test-card em { color: var(--body); }

/* emphasized service card (exec-highlighted content, in the site's own accent) */
.test-card.card-featured {
  background: rgba(69, 196, 214, 0.06);
  border-color: rgba(69, 196, 214, 0.35);
}

.test-card.card-featured:hover { border-color: rgba(69, 196, 214, 0.55); }

.test-card.card-featured ul { margin-top: 0.4rem; }

.test-extra {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.test-extra span {
  font-size: 0.89rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}

/* Related-page mini cards (fills out shorter pages) */
.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 2.6rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--border);
}

.more-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem;
  transition: border-color 0.25s ease, transform 0.35s var(--ease-out);
}

.more-card:hover {
  border-color: rgba(69, 196, 214, 0.35);
  transform: translateY(-2px);
}

.more-card h3 {
  font-size: 0.98rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.more-card h3 a { color: inherit; }

.more-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.more-card h3 a:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius);
}

.more-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.more-card .arrow {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  color: var(--accent);
  transition: transform 0.25s var(--ease-out);
}

.more-card:hover .arrow { transform: translateX(3px); }

/* Contact / support panel */
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 560px;
  margin-top: 2.2rem;
}

.contact-row { margin-bottom: 1.5rem; }
.contact-row:last-child { margin-bottom: 0; }

.contact-row .label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact-row .value {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 550;
}

.contact-row a.value { color: var(--accent); }
.contact-row a.value:hover { color: var(--accent-strong); }

/* contact tiles (support page): the two contact channels as large
   clickable cards sized to match the grid below */
.contact-tile {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-tile .label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-tile .value {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.contact-tile .value.accent { color: var(--accent); }

a.contact-tile:hover .value.accent { color: var(--accent-strong); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 3.5rem 0 2.5rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-brand { max-width: 34ch; }

.footer-brand .brand { margin-bottom: 0.9rem; }

.footer-brand p {
  font-size: 0.89rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-cols { display: flex; gap: 4rem; flex-wrap: wrap; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }

.footer-col a, .footer-col li {
  font-size: 0.87rem;
  color: var(--muted);
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Reveal motion (JS-enhanced; content fully visible without JS)
   ------------------------------------------------------------ */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

html.js .reveal-d1 { transition-delay: 0.08s; }
html.js .reveal-d2 { transition-delay: 0.16s; }
html.js .reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .hero-enter > *, html.js .hero-visual { opacity: 1; animation: none; }
  html.js .draw-on { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  html.js .line-test.draw-on { stroke-dasharray: 5 6; }
  html.js .eq-bar { animation: none; }
  html.js .marquee-track { animation: none; }
  html.js .js-curve:hover .disp-curve,
  html.js .js-signal:hover .disp-pulse,
  html.js .page-display.js-signal.near .disp-pulse,
  html.js .js-sonar:hover .disp-ring,
  html.js .page-display.js-sonar.near .disp-ring { animation: none; }
  html.js .js-signal:hover .disp-pulse,
  html.js .page-display.js-signal.near .disp-pulse { opacity: 0; }
  .page-display { opacity: 0.7; }
  .disp-dot { display: none; }
  html.js .disp-ring { opacity: 0.5; }
  html.js .disp-bar { transition: none; }
  .btn, .btn .arrow, .card-link .arrow { transition: none; }
}

/* ============================================================
   Site Acoustics page additions
   ============================================================ */

main > section[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

.sa-mark { flex-shrink: 0; }

.sa-section {
  padding: clamp(3rem, 8vh, 5.5rem) 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.section-head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-copy > .chip { margin-bottom: 1.5rem; align-self: flex-start; }

.hero-sub strong { color: var(--ink); font-weight: 650; }

/* Hero visual: the field map sits unframed on the page; its own dark
   plot background blends into the hero. */
.hero-grid { align-items: center; }

.hero-map {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Overview bento: three equal panels, instrument strip on top */
.bento-3 { margin-top: 2.4rem; }

.bento-3 .bento-panel { grid-column: span 2; }

@media (max-width: 860px) {
  .bento-3 .bento-panel { grid-column: span 6; }
}

/* Feature matrix: all nine capabilities in one framed panel with
   hairline internal rules — a single instrument, not nine buttons.
   The grid is either exactly 3×3 (above 720px) or a single ruled
   column (below), so the layout is symmetric at every width. */
.feature-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature {
  padding: clamp(1.2rem, 2vw, 1.6rem) clamp(1.2rem, 2vw, 1.5rem);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.feature:nth-child(-n+3) { border-top: 0; }
.feature:nth-child(3n+1) { border-left: 0; }

.feature h3 {
  font-size: 0.98rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.feature h3::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  margin-right: 0.55rem;
  vertical-align: 0.09em;
}

.feature p {
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 720px) {
  .feature-matrix { grid-template-columns: 1fr; }
  .feature,
  .feature:nth-child(-n+3),
  .feature:nth-child(3n+1) { border-left: 0; border-top: 1px solid var(--border); }
  .feature:first-child { border-top: 0; }
}

/* frameless figure: transparent artwork sits directly on the page */
.figure-plain img { width: 100%; height: auto; display: block; }

/* standards split + table */
.split {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  align-items: center;
  margin-top: 2.4rem;
}

@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.split .map-frame { margin: 0; }

.badge-figure { max-width: 310px; margin-inline: auto; }
.badge-figure img { width: 100%; display: block; }

table.std {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.4rem;
  font-size: 0.95rem;
}

table.std th,
table.std td {
  text-align: left;
  padding: 0.95rem 1rem 0.95rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.std th {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  padding-right: 2rem;
}

table.std td { color: var(--muted); }
table.std tr:hover td { color: var(--body); }

@media (max-width: 640px) { table.std th { white-space: normal; } }

/* validation layers */
.layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 980px) { .layers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .layers { grid-template-columns: 1fr; } }

.layer-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(69, 196, 214, 0.08);
  border: 1px solid rgba(69, 196, 214, 0.3);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.85rem;
}

.metric {
  color: var(--accent);
  font-weight: 650;
  font-size: 0.92rem;
  margin-top: 0.85rem;
}

.note {
  background: rgba(69, 196, 214, 0.06);
  border: 1px solid rgba(69, 196, 214, 0.22);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  color: var(--muted);
  font-size: 0.93rem;
  margin-top: 2rem;
  max-width: 78ch;
}

.note b { color: var(--ink); }

/* under-the-hood cards */
.test-card h3 {
  font-size: 1.06rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

/* closing band */
.closing-cta .hero-actions { margin-top: 0; }

/* contact modal: "more info" form that composes an email to info@ccinc.com */
.contact-modal {
  margin: auto; /* restore centering removed by the global reset */
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--body);
  padding: 0;
  width: min(480px, calc(100vw - 2rem));
  box-shadow: 0 0 0 6px rgba(69, 196, 214, 0.05), 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}

.contact-modal::backdrop {
  background: rgba(4, 5, 6, 0.65);
  backdrop-filter: blur(4px);
}

.modal-inner { position: relative; padding: 2rem 1.9rem; }

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.modal-close:hover { color: var(--ink); }

.contact-modal h3 {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.modal-sub {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.contact-modal form {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-modal form[hidden],
.modal-done[hidden] { display: none; }

.contact-modal label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-modal label .optional {
  display: inline;
  font-weight: 400;
  color: var(--dim);
}

.contact-modal input,
.contact-modal textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  resize: vertical;
}

.contact-modal input:focus,
.contact-modal textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(69, 196, 214, 0.15);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.modal-actions .fine {
  font-size: 0.8rem;
  color: var(--dim);
}

/* post-send confirmation with copy fallbacks */
.modal-done { margin-top: 1.4rem; }

.modal-done .done-lede {
  color: var(--body);
  font-size: 0.97rem;
}

.modal-done .done-alt {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.done-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

.done-mail {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.97rem;
}

.done-mail:hover { color: var(--accent-strong); }

.btn-sm {
  padding: 0.4rem 0.95rem;
  font-size: 0.83rem;
}

.modal-done .modal-actions { margin-top: 1.5rem; }
