/* Design B: dark technical. Navy surfaces, blue and teal glows, mono accents. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-variable.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-variable.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-2: #0f172a;
  --bg-3: #141d31;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #e6ecf5;
  --text-2: #aab4c5;
  --muted: #7b8698;
  --brand: #1174af;
  --brand-bright: #3aa0e6;
  --teal: #2ed4bf;
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Subtle grain so the big flat surfaces don't band. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  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='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main,
header,
footer {
  position: relative;
  z-index: 1;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: var(--brand-bright);
}
h1,
h2,
h3 {
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  font-weight: 650;
}
h2 {
  font-size: clamp(30px, 3.4vw, 46px);
}
h3 {
  font-size: 22px;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
dl,
dd {
  margin: 0;
}
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  top: 16px;
}
.mono-tag {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.button:active {
  transform: translateY(1px);
}
.button-primary {
  background: linear-gradient(180deg, #2b8fd0, var(--brand));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 30px -12px rgba(58, 160, 230, 0.8);
}
.button-primary:hover {
  background: linear-gradient(180deg, #3aa0e6, #1480c2);
}
.button-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--line-strong);
}
.button-outline:hover {
  border-color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.logo img,
.site-footer img {
  width: 160px;
  height: auto;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a:not(.button) {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  transition: color 0.2s var(--ease);
}
.nav-links a:not(.button):hover {
  color: var(--text);
}
.nav-links .button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Sections */
.section {
  padding: clamp(80px, 9vw, 130px) 0;
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 {
  margin-top: 16px;
}
.section-intro {
  margin-top: 20px;
  color: var(--text-2);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.6) contrast(1.1);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      900px 600px at 15% 20%,
      rgba(17, 116, 175, 0.45),
      transparent 60%
    ),
    radial-gradient(
      700px 500px at 90% 80%,
      rgba(46, 212, 191, 0.22),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(11, 18, 32, 0.55),
      rgba(11, 18, 32, 0.9) 70%,
      var(--bg)
    );
}
.hero-inner {
  padding: clamp(56px, 10vh, 120px) 0 56px;
  max-width: 860px;
  margin-left: max(24px, calc((100% - var(--container)) / 2));
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.grad {
  background: linear-gradient(90deg, var(--brand-bright), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  color: var(--text);
}
.hero-body {
  margin-top: 12px;
  font-size: 18px;
  max-width: 560px;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.marquee {
  margin-top: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.5);
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 14px 0;
  animation: marquee 60s linear infinite;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}
.bento-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -40px rgba(58, 160, 230, 0.5);
}
.bento-featured {
  grid-column: span 2;
  grid-row: span 2;
  background:
    radial-gradient(
      600px 300px at 100% 0%,
      rgba(46, 212, 191, 0.18),
      transparent 60%
    ),
    radial-gradient(
      500px 300px at 0% 100%,
      rgba(17, 116, 175, 0.35),
      transparent 60%
    ),
    var(--bg-3);
  border-color: rgba(58, 160, 230, 0.35);
}
.bento-featured h3 {
  font-size: clamp(28px, 2.6vw, 36px);
}
.bento-wide {
  grid-column: span 2;
}
.bullets {
  display: grid;
  gap: 10px;
  color: var(--text-2);
  font-size: 15px;
}
.bullets li {
  position: relative;
  padding-left: 18px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.bullets-row {
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
.bento-art {
  margin-top: auto;
  align-self: flex-end;
  width: min(320px, 70%);
  opacity: 0.9;
}
.bento-art .nodes circle {
  fill: var(--bg);
  stroke: var(--teal);
  stroke-width: 2;
}
.bento-art .nodes circle:last-child {
  fill: var(--teal);
}
.bento-art .edges path {
  fill: none;
  stroke: rgba(58, 160, 230, 0.6);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  animation: flow 3s linear infinite;
}
@keyframes flow {
  to {
    stroke-dashoffset: -40;
  }
}

/* Metrics */
.section-evidence {
  background:
    radial-gradient(
      1000px 500px at 50% 0%,
      rgba(17, 116, 175, 0.18),
      transparent 70%
    ),
    var(--bg-2);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(11, 18, 32, 0.5);
}
.metrics li {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.metrics li:last-child {
  border-right: 0;
}
.metric-value {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(42px, 4.4vw, 60px);
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin: 20px 0 16px;
  font-variant-numeric: tabular-nums;
}
.metrics p {
  font-size: 14.5px;
}
.sources {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* Case studies */
.case-scroller {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.case-outcome {
  margin-top: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(26px, 2.2vw, 32px);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}
.case-outcome small {
  display: block;
  margin-top: 8px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 13.5px;
  letter-spacing: 0;
  color: var(--muted);
}
.case-card dl {
  display: grid;
  gap: 12px;
}
.case-card dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-bright);
}
.case-card dd {
  font-size: 14.5px;
  margin-top: 2px;
}

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.industry-slide {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.industry-slide:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
/* The tiles are blue line art on white; inverting and rotating the hue puts
   them on a dark ground with the blues intact. The name lives in alt text. */
.industry-slide img {
  width: 100%;
  aspect-ratio: 336 / 249;
  object-fit: cover;
  filter: invert(0.92) hue-rotate(180deg) saturate(1.1);
  opacity: 0.85;
  transition: opacity 0.4s var(--ease);
}
.industry-slide:hover img {
  opacity: 1;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.team-member {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s var(--ease);
}
.team-member:hover {
  border-color: var(--line-strong);
}
.portrait {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
  background:
    radial-gradient(
      60% 60% at 30% 30%,
      rgba(58, 160, 230, 0.6),
      transparent 70%
    ),
    linear-gradient(180deg, var(--bg-3), #1b2742);
  border: 1px solid var(--line-strong);
}
.team-member h3 {
  font-size: 19px;
}
.team-member .role {
  margin-top: 4px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.team-member .bio {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-2);
}
.team-member .bio.placeholder {
  color: var(--muted);
  font-style: italic;
}
/* A real headshot fills the circle; the initials fallback is a <span>. */
img.portrait {
  object-fit: cover;
}
.credentials {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.credentials li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  font-size: 13.5px;
  color: var(--text-2);
  display: grid;
  gap: 6px;
}
.credentials .mono-tag {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
}

/* Contact */
.section-contact {
  background:
    radial-gradient(
      800px 500px at 100% 100%,
      rgba(46, 212, 191, 0.14),
      transparent 60%
    ),
    var(--bg-2);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-copy h2 {
  margin-top: 16px;
  font-size: clamp(28px, 3vw, 40px);
}
.contact-copy p {
  margin-top: 18px;
}
.contact-copy address {
  margin-top: 28px;
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
}
.contact-copy address strong {
  color: var(--text);
}
.contact-form {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-3);
  width: 100%;
  transition: border-color 0.2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(46, 212, 191, 0.15);
}
.contact-form textarea {
  resize: vertical;
}
.contact-form .button {
  justify-self: start;
}
.form-status {
  font-size: 14px;
  min-height: 1.4em;
}
.form-status.is-error {
  color: #f97066;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  font-size: 14.5px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.footer-grid p {
  margin-top: 20px;
  max-width: 560px;
}
.footer-grid nav {
  display: grid;
  gap: 10px;
  justify-content: end;
  text-align: right;
}
.footer-grid nav a {
  color: var(--text-2);
  text-decoration: none;
}
.footer-grid nav a:hover {
  color: var(--text);
}
.footer-meta {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
}
.footer-meta a {
  text-decoration: none;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-featured {
    grid-column: span 2;
    grid-row: auto;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics li:nth-child(2n) {
    border-right: 0;
  }
  .metrics li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .industry-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .credentials {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .hero-inner {
    margin-left: 24px;
    margin-right: 24px;
  }
  .case-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-inline: -24px;
    padding: 4px 24px 12px;
    scrollbar-width: none;
  }
  .case-scroller::-webkit-scrollbar {
    display: none;
  }
  .case-card {
    flex: 0 0 min(86vw, 420px);
    scroll-snap-align: start;
  }
  .team-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid nav {
    justify-content: start;
    text-align: left;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 18, 32, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a:not(.button) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links .button {
    margin-top: 16px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .container {
    width: min(var(--container), 100% - 40px);
  }
  .hero {
    min-height: auto;
  }
  .hero-inner {
    margin-inline: 20px;
    padding-top: 48px;
  }
  .bento,
  .metrics {
    grid-template-columns: 1fr;
  }
  .bento-featured,
  .bento-wide {
    grid-column: auto;
  }
  .bullets-row {
    grid-template-columns: 1fr;
  }
  .metrics li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .metrics li:last-child {
    border-bottom: 0;
  }
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .credentials {
    grid-template-columns: repeat(2, 1fr);
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 24px 20px;
  }
  .team-member {
    gap: 16px;
  }
  .portrait {
    width: 72px;
    height: 72px;
    font-size: 20px;
  }
  .case-scroller {
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .footer-meta {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Contact form spam trap: kept out of view and out of the tab order. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
