/* bytesquad — bytesquad.dev
   Design tokens sourced from design-guidelines.pdf (v1.0, Aug 2024). */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/red-hat-display.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/red-hat-text.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/red-hat-mono.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* Brand palette — do not add colors outside the style guide */
  --primary: #00ae8e;
  --light-green: #72cac3;
  --blue: #00263a;
  --black: #010808;
  --white: #f2f2f2;

  /* Functional color, outside the brand palette by design: error/alert
     states only (diagram alarms). Never for backgrounds or brand elements. */
  --alert: #d96c5f;

  --font-display: "Red Hat Display", Helvetica, Arial, sans-serif;
  --font-text: "Red Hat Text", Helvetica, Arial, sans-serif;
  --font-mono: "Red Hat Mono", "SF Mono", Menlo, monospace;

  --container: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --radius: 6px;

  /* Dark-canvas surface scale — the site runs on black end to end */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --hairline: rgba(242, 242, 242, 0.09);
  --ink-dim: rgba(242, 242, 242, 0.68);
  --surface: rgba(242, 242, 242, 0.04);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.875rem, 4.2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.3;
}

p {
  margin: 0 0 1.15rem;
  max-width: 62ch;
}

a {
  color: inherit;
}

ul {
  margin: 0 0 1.15rem;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.5rem;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--primary);
  color: var(--black);
}

/* ---------- Scrollbar (brand palette on the black canvas) ---------- */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(242, 242, 242, 0.05);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(242, 242, 242, 0.04);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--light-green));
  border-radius: 999px;
  border: 3px solid var(--black); /* inset gutter, so the thumb reads as a slim pill */
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: var(--black);
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--light-green);
  margin-bottom: 1.25rem;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-dim);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--blue);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.15s ease-out;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out;
}

.btn-primary {
  background: var(--primary);
  color: var(--black);
  box-shadow: 0 0 0 0 rgba(0, 174, 142, 0.4), 0 8px 30px rgba(0, 174, 142, 0.28);
  transition: transform 0.2s var(--ease-expo), box-shadow 0.25s var(--ease-expo), background 0.2s;
}

.btn-primary:hover {
  background: #009579; /* primary, one tint step down for hover confirmation */
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 174, 142, 0.4), 0 12px 40px rgba(0, 174, 142, 0.42);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(242, 242, 242, 0.28);
  transition: transform 0.2s var(--ease-expo), border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--light-green);
  color: var(--light-green);
  background: rgba(114, 202, 195, 0.06);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Text links with arrows */
.arrow-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

.arrow-link:hover {
  color: var(--light-green);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(1, 8, 8, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 48px; /* style guide minimum for primary lockup */
  width: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--white);
}

.site-nav a:hover {
  color: var(--light-green);
}

.site-nav a[aria-current="page"] {
  color: var(--primary);
}

.site-nav .btn {
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
}

.site-nav .btn-primary {
  color: var(--black);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--light-green);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--light-green);
  cursor: pointer;
}

@media (max-width: 47.9em) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(1, 8, 8, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
    padding: 1rem var(--gutter) 1.5rem;
  }

  .site-nav.open {
    display: block;
  }

  /* No-JS fallback: keep nav reachable via :focus-within */
  .site-header:focus-within .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav a {
    font-size: 1.05rem;
    padding: 0.35rem 0;
    display: inline-block;
  }
}

/* ---------- Stat block (case study results) ---------- */
.stat {
  border-top: 2px solid var(--primary);
  padding-top: 1.1rem;
}

.stat b {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.stat span {
  font-size: 0.95rem;
  color: rgba(242, 242, 242, 0.75);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
  margin-top: 2.5rem;
}

@media (min-width: 48em) {
  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--white);
  background: rgba(242, 242, 242, 0.05);
  border: 1px solid rgba(242, 242, 242, 0.18);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s, background 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background: rgba(0, 174, 142, 0.06);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 174, 142, 0.22);
}

.contact-direct,
.contact-direct p {
  color: var(--ink-dim);
  max-width: 40ch;
}

.contact-direct a {
  color: var(--light-green);
}

.contact-direct .email {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(242, 242, 242, 0.7);
  padding-block: 3.5rem 2.5rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--hairline);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer img {
  height: 40px;
  width: auto;
}

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer li {
  margin: 0;
}

.site-footer a {
  color: rgba(242, 242, 242, 0.7);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--light-green);
}

/* ---------- Inner page hero ---------- */
.page-hero {
  padding-block: clamp(4rem, 9vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
  position: relative;
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
}

.page-hero .lede {
  max-width: 56ch;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: rgba(242, 242, 242, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--light-green);
}

/* Mono fact rail under an inner-page hero */
.hero-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.5rem;
  margin: 2.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.hero-rail li {
  margin: 0;
  color: rgba(242, 242, 242, 0.45);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.hero-rail b {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Case study layout ---------- */
.case-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 48em) {
  .case-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.case-facts {
  list-style: none;
  margin: 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  font-size: 0.9rem;
  align-self: start;
  position: sticky;
  top: 6rem;
}

.case-facts li {
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-dim);
}

.case-facts li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.case-facts b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light-green);
  margin-bottom: 0.2rem;
}

.case-body h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-top: 3.25rem;
  color: var(--white);
}

.case-body h2:first-child {
  margin-top: 0;
}

.case-body p {
  color: var(--ink-dim);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.result-grid .stat {
  border: 1px solid var(--hairline);
  border-top: 2px solid rgba(0, 174, 142, 0.55);
  border-radius: 12px;
  background: var(--surface);
  padding: 1.1rem 1.1rem 1rem;
}

.result-grid .stat b {
  color: var(--primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.4rem;
}

.result-grid .stat span {
  color: var(--ink-dim);
  font-size: 0.85rem;
  line-height: 1.45;
  display: block;
}

.case-fig {
  margin: 2.25rem 0;
  padding: 1.4rem 1.4rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface);
}

.case-fig figcaption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(242, 242, 242, 0.38);
  text-align: center;
}

/* Before/after ledger — the migration, stated plainly */
.ledger {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  margin: 2rem 0;
}

@media (min-width: 40em) {
  .ledger { grid-template-columns: 1fr 1fr; }
}

.ledger > div {
  background: var(--black);
  padding: 1.4rem 1.5rem;
}

.ledger h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.9rem;
}

.ledger-before h4 { color: rgba(242, 242, 242, 0.4); }
.ledger-after h4 { color: var(--primary); }

.ledger ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
}

.ledger li {
  margin: 0 0 0.55rem;
  display: flex;
  gap: 0.55rem;
}

.ledger li:last-child { margin-bottom: 0; }

.ledger li::before {
  font-weight: 700;
  flex-shrink: 0;
}

.ledger-before li {
  color: rgba(242, 242, 242, 0.4);
}

.ledger-before li::before {
  content: "−";
  color: var(--alert);
}

.ledger-after li {
  color: var(--ink-dim);
}

.ledger-after li::before {
  content: "+";
  color: var(--primary);
}

/* Next/prev case pager */
.case-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
}

.case-pager a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--light-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s, gap 0.2s;
}

.case-pager a:hover { color: var(--primary); gap: 0.75rem; }
.case-pager svg { width: 1rem; height: 1rem; }

/* ---------- Checklist used across services / about ---------- */
.spec-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.spec-list li {
  margin: 0;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-dim);
  font-size: 0.98rem;
  line-height: 1.55;
}

.spec-list svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.28rem;
}

/* ---------- Closing CTA band ---------- */
.cta-band {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(0, 174, 142, 0.1), transparent 70%),
    linear-gradient(140deg, rgba(0, 38, 58, 0.5), rgba(1, 8, 8, 0.4));
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.9rem;
  color: var(--white);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.cta-band p {
  margin-inline: auto;
  color: var(--ink-dim);
}

.cta-band .btn-row {
  justify-content: center;
}

/* ---------- Scroll reveal (JS adds .js to <html>; no-JS stays visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

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

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle {
    display: none;
  }
}

/* ============================================================
   Landing page + shared dark-canvas components
   ============================================================ */

/* Ambient scene: brand-green glow blobs + faint grid */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 38, 58, 0.55), rgba(1, 8, 8, 0) 40rem),
    var(--black);
}

.bg-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 242, 242, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 242, 242, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

.blob {
  position: absolute;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  pointer-events: none;
}

.blob-a {
  top: -16rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(0, 174, 142, 0.16) 0%, transparent 62%);
}

.blob-b {
  top: 8rem;
  right: -18rem;
  background: radial-gradient(circle, rgba(114, 202, 195, 0.10) 0%, transparent 62%);
}

@media (prefers-reduced-motion: no-preference) {
  .blob-a { animation: drift-a 26s ease-in-out infinite alternate; }
  .blob-b { animation: drift-b 32s ease-in-out infinite alternate; }
  @keyframes drift-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(7rem, 5rem, 0) scale(1.15); }
  }
  @keyframes drift-b {
    from { transform: translate3d(0, 0, 0) scale(1.1); }
    to   { transform: translate3d(-8rem, 7rem, 0) scale(0.95); }
  }
}

/* ---------- Hero v3 — the live system ----------
   The hero is a running migration: tangled sources (left) converge
   into ordered infrastructure (right) while the type carries the data. */
.hero-v3 {
  position: relative;
  min-height: min(92svh, 54rem);
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5rem);
  overflow: hidden;
}

.hero-v3 .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-green);
  margin: 0 0 1.6rem;
  max-width: none;
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .pulse-dot { animation: pulse 2.2s ease-in-out infinite; }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 174, 142, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(0, 174, 142, 0); }
  }
}

.hero-title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.7rem, 7.4vw, 5.9rem);
  line-height: 1;
  letter-spacing: -0.028em;
  font-weight: 800;
  color: var(--white);
}

/* Each line masked for the rise-in reveal; padding keeps descenders unclipped */
.hline {
  display: block;
  overflow: hidden;
  padding: 0.06em 0 0.14em;
  margin: -0.06em 0 -0.14em;
}

.hline-in { display: inline-block; }

/* Inline cutover diff chip */
.swap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  vertical-align: middle;
  margin-left: clamp(1rem, 2.4vw, 2rem);
  transform: translateY(-0.1em);
  border-left: 2px solid rgba(0, 174, 142, 0.5);
  padding-left: 0.9em;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1vw, 0.92rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
}

.swap-old,
.swap-new {
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-expo);
}

.swap-old { color: rgba(242, 242, 242, 0.4); }
.swap-old s { text-decoration-color: rgba(242, 242, 242, 0.45); }
.swap-new { color: var(--primary); }

.swap.cut .swap-old,
.swap.cut .swap-new {
  opacity: 0;
  transform: translateY(-0.45em);
}

/* "data-heavy" filled with scrolling data */
.data-word { color: var(--primary); }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .data-word {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='96'%3E%3Cg font-family='Menlo,monospace' font-size='11' fill='%23010808' fill-opacity='.38'%3E%3Ctext x='4' y='12'%3E01 4a f2 0x38 991%3C/text%3E%3Ctext x='4' y='28'%3E7c 22 e1 550 0b10%3C/text%3E%3Ctext x='4' y='44'%3E0x9e 03 71 284 ff%3C/text%3E%3Ctext x='4' y='60'%3E44 b7 0x02 691 1c%3C/text%3E%3Ctext x='4' y='76'%3Ee0 519 2d 0x77 08%3C/text%3E%3Ctext x='4' y='92'%3E90 3f 6a1 24 0xcb%3C/text%3E%3C/g%3E%3C/svg%3E"),
      linear-gradient(100deg, var(--primary) 10%, var(--light-green) 90%);
    background-size: 160px 96px, 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .data-word { animation: data-scroll 9s linear infinite; }
  @keyframes data-scroll {
    from { background-position: 0 0, 0 0; }
    to   { background-position: -160px 96px, 0 0; }
  }
}

.hero-v3 .lede {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

/* Log-style stat rail */
.hero-log {
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.4rem;
  font-family: var(--font-mono);
}

.hero-log li {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--ink-dim);
}

.hero-log b {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.hero-log b::before { content: "["; color: rgba(242, 242, 242, 0.35); font-weight: 400; }
.hero-log b::after  { content: "]"; color: rgba(242, 242, 242, 0.35); font-weight: 400; }

/* Pipeline scene */
.pipes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.pipe-base use {
  fill: none;
  stroke: rgba(242, 242, 242, 0.09);
  stroke-width: 1.5;
}

.pipe-flow use {
  fill: none;
  stroke: rgba(0, 174, 142, 0.55);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 3 130;
}

.pipe-dots circle {
  fill: var(--light-green);
  opacity: 0.9;
}

.node-src .ic {
  fill: none;
  stroke: rgba(242, 242, 242, 0.45);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node-src text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: rgba(242, 242, 242, 0.42);
  letter-spacing: 0.04em;
}

.node-dst .ic {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node-dst text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--light-green);
  letter-spacing: 0.04em;
  text-anchor: end;
}

@media (max-width: 61.9em) {
  .hero-v3 { min-height: 0; }
  /* Oversized + centered: hero's overflow crops the sides, keeping the
     converging mid-section of the diagram visible behind the text */
  .pipes {
    width: 200%;
    left: -50%;
  }
  /* the svg renders at ~0.54 scale here, so thicken strokes to compensate */
  .pipe-base use { stroke: rgba(242, 242, 242, 0.2); stroke-width: 3; }
  .pipe-flow use { stroke-width: 3; stroke-dasharray: 5 220; }
  .pipe-dots circle { r: 4px; }
  .node-src text,
  .node-dst text { display: none; }
}

/* Load choreography */
@media (prefers-reduced-motion: no-preference) {
  .hline-in {
    transform: translateY(115%);
    animation: line-rise 0.85s var(--ease-expo) forwards;
  }

  .hero-title .hline:nth-child(1) .hline-in { animation-delay: 0.12s; }
  .hero-title .hline:nth-child(2) .hline-in { animation-delay: 0.22s; }
  .hero-title .hline:nth-child(3) .hline-in { animation-delay: 0.32s; }

  @keyframes line-rise { to { transform: none; } }

  .hero-status,
  .hero-v3 .lede,
  .hero-v3 .btn-row,
  .hero-log {
    opacity: 0;
    transform: translateY(14px);
    animation: fade-up 0.7s var(--ease-expo) forwards;
  }

  .hero-status { animation-delay: 0.05s; }
  .hero-v3 .lede { animation-delay: 0.5s; }
  .hero-v3 .btn-row { animation-delay: 0.62s; }
  .hero-log { animation-delay: 0.78s; }

  @keyframes fade-up { to { opacity: 1; transform: none; } }

  .pipe-base use {
    stroke-dasharray: 1700;
    stroke-dashoffset: 1700;
    animation: pipe-draw 1.5s var(--ease-expo) forwards;
  }

  .pipe-base use:nth-child(1) { animation-delay: 0.15s; }
  .pipe-base use:nth-child(2) { animation-delay: 0.3s; }
  .pipe-base use:nth-child(3) { animation-delay: 0.45s; }
  .pipe-base use:nth-child(4) { animation-delay: 0.6s; }

  @keyframes pipe-draw { to { stroke-dashoffset: 0; } }

  .pipe-flow use { animation: pipe-flow 4.5s linear infinite; }
  .pipe-flow use:nth-child(2) { animation-delay: -1.2s; animation-duration: 5.2s; }
  .pipe-flow use:nth-child(3) { animation-delay: -2.3s; }
  .pipe-flow use:nth-child(4) { animation-delay: -3.1s; animation-duration: 5.6s; }

  @keyframes pipe-flow { to { stroke-dashoffset: -133; } }

  .pipe-flow,
  .pipe-dots,
  .node-src,
  .node-dst {
    opacity: 0;
    animation: fade-up 0.8s ease 1.2s forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pipe-flow,
  .pipe-dots { display: none; }
}

/* ---------- Marquee client strip ---------- */
.marquee-section {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1.4rem 0;
  background: rgba(242, 242, 242, 0.02);
}

.marquee-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem 4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.marquee-track li { margin: 0; }

.marquee-track img {
  display: block;
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.25s;
}

.marquee-track li:hover img { opacity: 1; }

.marquee-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.35);
  margin: 0 0 1.1rem;
}

/* ---------- Dark section scaffolding ---------- */
.sec {
  padding: var(--section-y) 0;
  position: relative;
}

.sec-head {
  max-width: 44rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}

.sec-head h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0.8rem 0 0.9rem;
}

.sec-head p { color: var(--ink-dim); margin: 0; }

/* ---------- Symptom cards: each failure drawn as a monitoring widget ---------- */
.prob-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 48em) {
  .prob-grid { grid-template-columns: 1fr 1fr; }
}

.prob-card {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface);
  padding: 1.2rem 1.4rem 1.3rem;
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease-expo);
}

.prob-card:hover {
  border-color: rgba(0, 174, 142, 0.4);
  background: rgba(0, 174, 142, 0.04);
  transform: translateY(-3px);
}

.prob-card header {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}

.prob-tag {
  color: rgba(242, 242, 242, 0.55);
  text-transform: uppercase;
}

.prob-src { color: rgba(242, 242, 242, 0.38); }

.prob-card h3 {
  margin: 1rem 0 0;
  font-family: var(--font-text);
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: normal;
}

/* Diagrams — shared vocabulary. Coral = broken, green/teal = ours, grey = context. */
.fig {
  display: block;
  width: 100%;
  height: auto;
}

.prob-fig { margin: 1.15rem 0 0; }

.fig text {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.fig .t-dim   { fill: rgba(242, 242, 242, 0.32); }
.fig .t-mid   { fill: rgba(242, 242, 242, 0.55); }
.fig .t-hi    { fill: rgba(242, 242, 242, 0.8); }
.fig .t-alert { fill: var(--alert); font-weight: 700; }
.fig .t-ok    { fill: var(--light-green); }
.fig .t-key   { fill: var(--primary); font-weight: 700; }

.fig .s-grid {
  fill: none;
  stroke: rgba(242, 242, 242, 0.1);
  stroke-width: 1;
}

.fig .s-dim {
  fill: none;
  stroke: rgba(242, 242, 242, 0.28);
  stroke-width: 1.5;
}

.fig .s-hi {
  fill: none;
  stroke: rgba(242, 242, 242, 0.55);
  stroke-width: 1.5;
}

.fig .s-alert {
  fill: none;
  stroke: var(--alert);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fig .s-ok {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fig .s-ok-soft {
  fill: none;
  stroke: rgba(114, 202, 195, 0.55);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fig .f-ok { fill: rgba(0, 174, 142, 0.12); stroke: none; }
.fig .f-dim { fill: rgba(242, 242, 242, 0.05); stroke: none; }

.fig .s-dashed { stroke-dasharray: 5 5; }

.fig .s-dimline {
  fill: none;
  stroke: rgba(242, 242, 242, 0.35);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fig .s-dash {
  stroke: rgba(242, 242, 242, 0.28);
  stroke-width: 1;
  stroke-dasharray: 5 6;
}

.prob-caret { fill: rgba(242, 242, 242, 0.85); }

@media (prefers-reduced-motion: no-preference) {
  .prob-caret { animation: caret-blink 1.1s steps(1) infinite; }
  @keyframes caret-blink { 50% { opacity: 0; } }

  .fig .alert-blink { animation: alert-blink 1.7s ease-in-out infinite; }
  @keyframes alert-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  .fig .flow-dot { animation: flow-fade 3s ease-in-out infinite; }
  @keyframes flow-fade {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
  }

  .wobble {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: wobble 3.6s ease-in-out infinite;
  }

  @keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
  }

  /* Chart lines draw themselves in when the card scrolls into view */
  html.js .fig .draw {
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
  }

  html.js .in .fig .draw,
  html.js .in.fig .draw {
    animation: fig-draw 1.6s var(--ease-expo) 0.35s forwards;
  }

  html.js .in .fig .draw:nth-of-type(2) { animation-delay: 0.55s; }

  @keyframes fig-draw { to { stroke-dashoffset: 0; } }
}

/* Resolution card — the payoff line. Only card in the section with a
   colored surface, so it reads as the answer without shouting. */
.problem-close {
  position: relative;
  margin: 1.1rem 0 0;
  border: 1px solid rgba(0, 174, 142, 0.3);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(0, 174, 142, 0.09), rgba(0, 38, 58, 0.35) 60%);
  box-shadow: 0 0 44px rgba(0, 174, 142, 0.07);
  padding: 1.5rem 1.7rem 1.6rem;
  overflow: hidden;
}

.problem-close::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--light-green));
}

.fix-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-green);
  margin-bottom: 0.55rem;
}

.fix-label::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--primary);
}

@media (prefers-reduced-motion: no-preference) {
  .fix-label::before { animation: pulse 2.2s ease-in-out infinite; }
}

.problem-close p {
  margin: 0;
  max-width: 46rem;
  color: var(--white);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.5;
}

.problem-close b { color: var(--primary); }

/* ---------- Services: runbook index ---------- */
.svc-index { border-top: 1px solid var(--hairline); }

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 1.35rem;
  padding: 1.3rem 0.9rem 1.3rem 1.15rem;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  transition: background 0.3s;
}

.svc-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--light-green));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease-expo);
}

.svc-row:hover { background: var(--surface); }
.svc-row:hover::before { transform: scaleY(1); }

.svc-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(242, 242, 242, 0.35);
  transition: color 0.3s;
}

.svc-row:hover .svc-num { color: var(--primary); }

.svc-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  color: rgba(242, 242, 242, 0.55);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.svc-icon svg { width: 1.05rem; height: 1.05rem; }

.svc-row:hover .svc-icon {
  color: var(--primary);
  border-color: rgba(0, 174, 142, 0.35);
  background: rgba(0, 174, 142, 0.08);
}

.svc-body { display: block; min-width: 0; }

.svc-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.svc-flag {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(0, 174, 142, 0.4);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.svc-desc {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.svc-cmd {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(242, 242, 242, 0.4);
  white-space: nowrap;
  transition: color 0.3s;
}

.svc-cmd::before { content: "$ "; color: rgba(0, 174, 142, 0.6); }

.svc-row:hover .svc-cmd { color: var(--light-green); }

.svc-go {
  color: rgba(242, 242, 242, 0.35);
  transition: color 0.3s, transform 0.3s var(--ease-expo);
}

.svc-go svg { width: 1.05rem; height: 1.05rem; display: block; }

.svc-row:hover .svc-go { color: var(--primary); transform: translateX(4px); }

@media (max-width: 61.9em) {
  .svc-cmd { display: none; }
}

@media (max-width: 38em) {
  .svc-row { grid-template-columns: auto 1fr auto; gap: 1rem; }
  .svc-icon { display: none; }
}

/* ---------- Case studies: migration ledger ---------- */
.case-grid-v3 {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-card.feat { grid-column: 1 / -1; }

@media (max-width: 47.9em) {
  .case-grid-v3 { grid-template-columns: 1fr; }
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(0, 38, 58, 0.5), rgba(1, 8, 8, 0.3));
  padding: 1.6rem 1.5rem 1.4rem;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.3s var(--ease-expo), box-shadow 0.3s var(--ease-expo);
  --mx: 50%;
  --my: 50%;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(26rem circle at var(--mx) var(--my), rgba(114, 202, 195, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.case-card:hover { border-color: rgba(114, 202, 195, 0.45); transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
.case-card:hover::before { opacity: 1; }

.case-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 1.15rem;
}

.case-tag { color: rgba(242, 242, 242, 0.55); text-transform: uppercase; }

.case-src { color: rgba(242, 242, 242, 0.38); }

.case-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--light-green);
  white-space: nowrap;
}

.case-live .pulse-dot { width: 0.4rem; height: 0.4rem; }

.case-diff {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.5;
  border-left: 2px solid rgba(0, 174, 142, 0.55);
  padding-left: 0.7rem;
  margin: 0 0 1.2rem;
}

.case-diff .d-old {
  color: rgba(242, 242, 242, 0.4);
  text-decoration: line-through;
  text-decoration-color: rgba(242, 242, 242, 0.3);
}

.case-diff .d-new { color: var(--light-green); }

.case-card .metric {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--primary);
  line-height: 1;
  margin: 0 0 0.3rem;
  letter-spacing: -0.02em;
}

.case-card .metric-label {
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin: 0 0 1.2rem;
}

.case-card h3 { color: var(--white); font-size: 1.15rem; margin: 0 0 0.4rem; }

.case-card p.sum {
  color: var(--ink-dim);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1.2rem;
  flex-grow: 1;
}

.case-card .go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--light-green);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}

.case-card .go svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease-expo); }
.case-card:hover .go svg { transform: translateX(4px); }
.case-card:hover .go { color: var(--primary); }

.case-feat-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
}

.case-card.feat h3 { font-size: 1.45rem; margin-bottom: 0.55rem; }

.case-card.feat .sum { flex-grow: 0; }

.case-side {
  display: grid;
  gap: 1.15rem;
  border-left: 1px solid var(--hairline);
  padding-left: 2rem;
  align-self: center;
}

.case-stat b {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.case-stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-dim);
  font-size: 0.85rem;
}

.case-head .case-logo {
  margin-left: auto;
  align-self: center;
  height: 15px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.25s;
}

.case-card:hover .case-logo { opacity: 0.85; }

@media (max-width: 47.9em) {
  .case-feat-cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .case-side {
    border-left: 0;
    padding-left: 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 1.5rem;
    border-top: 1px solid var(--hairline);
    padding-top: 1.2rem;
  }
  .case-head .case-live { display: none; }
}

/* ---------- Quotes v2 ---------- */
.quote-grid-v2 {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 48em) {
  .quote-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}

.quote-card {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface);
  padding: 1.5rem 1.5rem 1.3rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.3s var(--ease-expo);
}

.quote-card:hover { border-color: rgba(114, 202, 195, 0.35); transform: translateY(-3px); }

.quote-card svg { width: 1.4rem; height: 1.4rem; color: var(--primary); margin-bottom: 0.9rem; }

.quote-card blockquote {
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
  color: rgba(242, 242, 242, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.quote-card figcaption { font-size: 0.82rem; color: var(--ink-dim); }
.quote-card figcaption b { display: block; color: var(--light-green); font-family: var(--font-display); font-weight: 600; }

/* ---------- How we work: engagement journey ---------- */
.journey { position: relative; }

.live-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--light-green);
  white-space: nowrap;
}

.live-label .pulse-dot { width: 0.45rem; height: 0.45rem; background: var(--light-green); }

.live-rail {
  position: relative;
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(114, 202, 195, 0.65), rgba(114, 202, 195, 0.08));
}

.live-runner { display: none; }

.journey-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.journey-track::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 10px;
  height: 2px;
  background: rgba(0, 174, 142, 0.4);
}

.journey-track::after {
  content: "";
  position: absolute;
  right: 0;
  top: 2px;
  border-left: 9px solid rgba(0, 174, 142, 0.7);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.jstage { position: relative; z-index: 0; margin: 0; }

.jnode {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2.5px solid var(--primary);
  background: var(--black);
  margin-bottom: 1rem;
  transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
}

.jcut .jnode { background: var(--primary); }

.jweek {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--light-green);
  margin-bottom: 0.5rem;
}

.jstage h3 { color: var(--white); font-size: 1.02rem; margin: 0 0 0.35rem; }

.jstage p { color: var(--ink-dim); font-size: 0.9rem; line-height: 1.55; margin: 0; }

/* Cutover window: dashed maintenance band the uptime line passes through unbroken */
.jcut::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -4rem;
  bottom: -0.6rem;
  left: -0.8rem;
  right: -0.8rem;
  background: rgba(0, 174, 142, 0.05);
  border-left: 1px dashed rgba(0, 174, 142, 0.3);
  border-right: 1px dashed rgba(0, 174, 142, 0.3);
}

@media (prefers-reduced-motion: no-preference) {
  .live-runner {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: var(--light-green);
    box-shadow: 0 0 12px rgba(114, 202, 195, 0.9);
    animation: live-run 7s linear infinite;
  }

  @keyframes live-run {
    0% { left: 0; opacity: 0; }
    6% { opacity: 1; }
    94% { opacity: 1; }
    100% { left: calc(100% - 7px); opacity: 0; }
  }

  .jcut .jnode { animation: pulse 2.2s ease-in-out infinite; }

  /* Active stage: glow steps through the timeline 1→2→3→4→1 (driven by JS) */
  .jactive .jnode {
    animation: none;
    background: var(--light-green);
    border-color: var(--light-green);
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(114, 202, 195, 0.16), 0 0 16px rgba(114, 202, 195, 0.85);
  }

  html.js .journey .journey-track::before,
  html.js .journey .live-rail {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.6s var(--ease-expo) 0.15s;
  }

  html.js .journey.in .journey-track::before,
  html.js .journey.in .live-rail { transform: scaleX(1); }

  html.js .journey .journey-track::after { opacity: 0; transition: opacity 0.4s 1.3s; }
  html.js .journey.in .journey-track::after { opacity: 1; }
}

@media (max-width: 47.9em) {
  .journey-track { grid-template-columns: 1fr; gap: 1.9rem; }

  .journey-track::before {
    top: 0;
    bottom: 0;
    left: 5.5px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .journey-track::after { display: none; }

  .jstage { padding-left: 2.1rem; }

  .jnode { position: absolute; left: 0; top: 0.15rem; margin: 0; }

  .jcut::before { display: none; }
}

/* ---------- Founder band ---------- */
.founder-band {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(0, 38, 58, 0.55), rgba(1, 8, 8, 0.4));
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  gap: 2rem;
}

@media (min-width: 48em) {
  .founder-band { grid-template-columns: auto auto 1fr; gap: 3rem; align-items: center; }
}

.founder-photo { flex-shrink: 0; }
.founder-photo img {
  width: clamp(120px, 30vw, 180px);
  height: clamp(120px, 30vw, 180px);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--hairline);
}

.founder-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--light-green);
  text-decoration: none;
  font-weight: 600;
}
.founder-linkedin:hover { color: var(--primary); }
.founder-linkedin svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

.founder-facts-v2 {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.founder-facts-v2 li {
  margin: 0;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--ink-dim);
  font-size: 0.92rem;
}

.founder-facts-v2 svg { width: 1rem; height: 1rem; color: var(--primary); flex-shrink: 0; }

.founder-band h2 { color: var(--white); margin: 0.6rem 0 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.founder-band .lede { margin-top: 0; }
.founder-band p { color: var(--ink-dim); }
/* Drop the last paragraph's trailing margin so align-items:center optically
   centers the photo/name columns against the visible text, not phantom space. */
.founder-band > div > p:last-child { margin-bottom: 0; }
.founder-band p.lede { color: rgba(242, 242, 242, 0.85); }
.founder-band .arrow-link { color: var(--light-green); }
.founder-band .arrow-link:hover { color: var(--primary); }

/* ---------- Contact v2 ---------- */
.contact-v2 .contact-grid { margin-top: 0; }

/* ============================================================
   Services page — one section per service
   ============================================================ */
.svc-detail {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(3rem, 7vw, 5rem);
  scroll-margin-top: 5.5rem;
}

.svc-detail:first-of-type { border-top: 0; }

.svc-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.svc-detail-head .n { color: var(--primary); font-weight: 700; }
.svc-detail-head .k { color: rgba(242, 242, 242, 0.38); }

.svc-detail-head .flag {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--black);
  background: var(--primary);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-weight: 700;
}

.svc-detail h2 { margin: 0 0 0.6rem; color: var(--white); }
.svc-detail .lede { margin-bottom: 1.25rem; }

.svc-cols { display: grid; gap: 2.5rem; align-items: start; }

@media (min-width: 56em) {
  .svc-cols { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
}

.svc-copy p { color: var(--ink-dim); }
.svc-copy > :last-child { margin-bottom: 0; }

.svc-panel {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface);
  padding: 1.4rem;
}

.svc-panel-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(242, 242, 242, 0.38);
  margin-bottom: 1rem;
}

.svc-panel-tag::before { content: "$ "; color: rgba(0, 174, 142, 0.6); }

.svc-ref {
  font-size: 0.92rem;
  color: rgba(242, 242, 242, 0.45);
  margin: 1.5rem 0 0;
}

.svc-ref a {
  color: var(--light-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(114, 202, 195, 0.35);
}

.svc-ref a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ============================================================
   Work index page
   ============================================================ */
.work-more {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.work-more h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); color: var(--white); }
.work-more > p { color: var(--ink-dim); max-width: 60ch; }

.client-row {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}

.client-row li {
  margin: 0;
  background: var(--black);
  padding: 1.25rem 1.35rem;
}

.client-row img {
  height: 22px;
  width: auto;
  opacity: 0.75;
  margin-bottom: 0.7rem;
}

.client-row span {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-dim);
  line-height: 1.45;
}

/* ============================================================
   About page
   ============================================================ */
.about-cols { display: grid; gap: 2.5rem; align-items: start; }

@media (min-width: 56em) {
  .about-cols { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.about-cols p { color: var(--ink-dim); }

/* Numbers that describe the company */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 2.5rem;
}

.fact-grid > div {
  background: var(--black);
  padding: 1.5rem 1.4rem;
}

.fact-grid b {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.fact-grid span {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-dim);
  line-height: 1.45;
}

/* What we do / don't take — the scope boundary, stated as two columns */
.scope-cols {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 2.5rem;
}

@media (min-width: 40em) {
  .scope-cols { grid-template-columns: 1fr 1fr; }
}

.scope-cols > div { background: var(--black); padding: 1.6rem 1.5rem; }

.scope-cols h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
}

.scope-in h3 { color: var(--primary); }
.scope-out h3 { color: rgba(242, 242, 242, 0.4); }

.scope-cols ul { list-style: none; margin: 0; padding: 0; }

.scope-cols li {
  margin: 0 0 0.6rem;
  display: flex;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.scope-cols li:last-child { margin-bottom: 0; }

.scope-in li { color: var(--ink-dim); }
.scope-in li::before { content: "+"; color: var(--primary); font-weight: 700; }
.scope-out li { color: rgba(242, 242, 242, 0.4); }
.scope-out li::before { content: "−"; color: rgba(242, 242, 242, 0.3); font-weight: 700; }

/* ============================================================
   Utility pages (thanks / 404)
   ============================================================ */
.util-page {
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 10vw, 7rem);
}

.util-page h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.util-page .lede { max-width: 52ch; }
