/* ==========================================================================
   SERVICES PAGE
   Scoped to services.html only. Loaded AFTER styles.css and overrides nothing
   that other pages rely on — global tokens, header, pills, buttons and the
   reveal/slideDown keyframes all come from styles.css and are reused as-is.
   ========================================================================== */

/* Page-level tokens layered on top of the global ones */
.services-page {
  --hairline: rgba(255, 255, 255, 0.11);
  --hairline-strong: rgba(255, 255, 255, 0.2);
  --surface: rgba(255, 255, 255, 0.026);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --body-text: #d0d0d0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 11vh, 132px);
}

/* The home page locks the viewport; this page scrolls. Only ever applied here. */
html,
body.services-page {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: auto;
  scroll-behavior: smooth;
}

body.services-page {
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html,
  body.services-page {
    scroll-behavior: auto;
  }
}

.services-page ::selection {
  background: rgba(255, 255, 255, 0.85);
  color: #000;
}

/* ---------- SHARED PRIMITIVES ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 820px;
}

.section {
  position: relative;
  padding: var(--section-y) 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(38px, 6vh, 68px);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.1vw, 12.5px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(14px, 2vh, 20px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
  font-size: clamp(30px, 4.6vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
}

.section-copy {
  font-size: clamp(14.5px, 1.35vw, 16px);
  line-height: 1.6;
  color: var(--body-text);
  opacity: 0.78;
  margin: clamp(14px, 2vh, 20px) 0 0;
  max-width: 56ch;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(13.5px, 1.4vw, 14.5px);
  font-weight: 500;
  color: var(--body-text);
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.ghost-link:hover {
  opacity: 1;
}

.ghost-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.ghost-link:hover .ghost-arrow {
  transform: translateY(3px);
}

/* ---------- SCROLL REVEAL (reuses the global `reveal` keyframes) ---------- */
.sr {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  will-change: opacity, transform, filter;
}

.sr.in {
  animation: reveal 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

/* ---------- STICKY HEADER WRAP (the header component itself is untouched) --- */
.svc-header-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: clamp(16px, 2.4vh, 28px) var(--gutter);
  transition: background 0.35s ease, backdrop-filter 0.35s ease,
    padding 0.35s var(--ease);
}

.svc-header-wrap.stuck {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: clamp(10px, 1.4vh, 16px);
  padding-bottom: clamp(10px, 1.4vh, 16px);
}

.services-page .header {
  max-width: 720px;
}

/* ---------- HERO ---------- */
.svc-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(78vh, 720px);
  padding: clamp(48px, 9vh, 96px) 0 clamp(64px, 11vh, 120px);
  margin-top: calc(-1 * (clamp(40px, 4.4vw, 46px) + clamp(32px, 4.8vh, 56px)));
  padding-top: calc(clamp(40px, 4.4vw, 46px) + clamp(72px, 12vh, 128px));
  overflow: hidden;
}

.svc-hero-bg {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
  z-index: 0;
}

.svc-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.svc-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.42) 26%,
      rgba(0, 0, 0, 0.72) 72%,
      #000 100%
    ),
    linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 62%);
}

.svc-hero-inner {
  position: relative;
  z-index: 1;
}

.svc-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.svc-hero-title .line {
  display: block;
  font-size: clamp(40px, 7vw, 84px);
}

.svc-hero-copy {
  max-width: 46ch;
  margin: clamp(18px, 3vh, 28px) 0 0;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.58;
  color: var(--body-text);
  opacity: 0.82;
}

.svc-hero-actions {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
  margin-top: clamp(26px, 4vh, 40px);
  flex-wrap: wrap;
}

/* ==========================================================================
   01 — INTERACTIVE SERVICES SHOWCASE
   Desktop: index list (col 1) + stacked panels (col 2).
   Mobile:  accordion, panels expand under their own trigger.
   ========================================================================== */
.svc-showcase {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) 1.35fr;
  column-gap: clamp(30px, 5vw, 76px);
  align-items: start;
  border-top: 1px solid var(--hairline);
}

.svc-item {
  grid-column: 1;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: clamp(18px, 2.4vh, 24px) 4px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  transition: padding-left 0.4s var(--ease);
}

.svc-item-num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.3s ease;
}

.svc-item-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(17px, 1.9vw, 22px);
  letter-spacing: -0.02em;
  color: #ffffff;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.svc-item-mark {
  position: absolute;
  left: -1px;
  top: 50%;
  width: 2px;
  height: 0;
  background: #fff;
  transform: translateY(-50%);
  transition: height 0.42s var(--ease);
}

.svc-item:hover .svc-item-name,
.svc-item:focus-visible .svc-item-name {
  opacity: 0.8;
}

.svc-item.is-active {
  padding-left: 16px;
}

.svc-item.is-active .svc-item-name {
  opacity: 1;
}

.svc-item.is-active .svc-item-num {
  color: #fff;
}

.svc-item.is-active .svc-item-mark {
  height: 62%;
}

.svc-item:focus-visible {
  outline: 1px solid var(--hairline-strong);
  outline-offset: 3px;
}

/* Panels share one grid cell so the block never resizes between services */
.svc-panel {
  grid-column: 2;
  grid-row: 1 / span 5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
    visibility 0s linear 0.5s;
}

.svc-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
    visibility 0s linear 0s;
}

/* `hidden` is the no-JS fallback only; services.js removes it on boot */
.services-page .svc-panel[hidden] {
  display: none;
}

.svc-panel-body {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.4vh, 34px);
  padding: clamp(24px, 3.4vh, 34px) 0 clamp(24px, 3.4vh, 34px);
}

.svc-panel-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.14;
  margin: 0 0 clamp(12px, 1.8vh, 18px);
  color: var(--text);
}

.svc-panel-copy {
  margin: 0;
  font-size: clamp(14.5px, 1.35vw, 16.5px);
  line-height: 1.62;
  color: var(--body-text);
  opacity: 0.8;
  max-width: 52ch;
}

.svc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: clamp(18px, 2.6vh, 26px) 0 0;
  padding: 0;
}

.svc-chips li {
  padding: 7px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: clamp(11.5px, 1.1vw, 12.5px);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #c4c2c3;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.28s ease, color 0.28s ease, background 0.28s ease;
}

.svc-panel.is-active .svc-chips li:hover {
  border-color: var(--hairline-strong);
  background: var(--surface-hover);
  color: #fff;
}

/* Panel artwork — abstract line drawings, no stock AI imagery */
.svc-panel-visual {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  padding: clamp(16px, 2.4vh, 26px);
  overflow: hidden;
}

.svc-panel-visual svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 190px;
}

.vz-line {
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 1.25;
  fill: none;
}

.vz-dot {
  fill: rgba(255, 255, 255, 0.85);
}

.vz-fill {
  fill: rgba(255, 255, 255, 0.22);
}

.vz-solid {
  fill: rgba(255, 255, 255, 0.9);
}

.vz-knock {
  fill: rgba(0, 0, 0, 0.72);
}

.vz-wave rect {
  fill: rgba(255, 255, 255, 0.55);
  transform-box: fill-box;
  transform-origin: center;
}

.svc-panel.is-active .vz-wave rect {
  animation: vzPulse 1.9s var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

.vz-wave rect:nth-child(2n) {
  animation-delay: 0.12s;
}

.vz-wave rect:nth-child(3n) {
  animation-delay: 0.26s;
}

.vz-wave rect:nth-child(5n) {
  animation-delay: 0.4s;
}

.vz-axis {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}

@keyframes vzPulse {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ==========================================================================
   02 — WHAT WE BUILD
   ========================================================================== */
.build-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.build-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 28px;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding: clamp(20px, 2.8vh, 28px) clamp(10px, 1.6vw, 18px);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.35s ease, padding-left 0.4s var(--ease);
}

.build-row:hover {
  background: var(--surface-hover);
  padding-left: clamp(18px, 2.4vw, 30px);
}

.build-num {
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.3s ease;
}

.build-row:hover .build-num {
  color: #fff;
}

.build-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px clamp(14px, 2.4vw, 28px);
}

.build-text h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(16.5px, 1.75vw, 20px);
  letter-spacing: -0.02em;
  color: #fff;
  flex: 0 0 auto;
  min-width: 190px;
}

.build-text p {
  margin: 0;
  font-size: clamp(13.5px, 1.25vw, 15px);
  line-height: 1.55;
  color: var(--body-text);
  opacity: 0.66;
  transition: opacity 0.3s ease;
}

.build-row:hover .build-text p {
  opacity: 0.9;
}

.build-arrow {
  justify-self: end;
  font-size: 16px;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    color 0.3s ease;
}

.build-row:hover .build-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #fff;
}

/* ==========================================================================
   03 — SYSTEM PIPELINE
   ========================================================================== */
.pipeline {
  --pipe-gap: clamp(8px, 1.4vw, 18px);
  --pipe-r: 26px; /* half the glyph circle */
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--pipe-gap);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pipe;
}

.pipe-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
}

/* connector: spans edge-to-edge between neighbouring glyphs, on their centre line */
.pipe-node::after {
  content: "";
  position: absolute;
  top: calc(8px + var(--pipe-r));
  height: 0;
  left: calc(50% + var(--pipe-r));
  right: calc(var(--pipe-r) - 50% - var(--pipe-gap));
  border-top: 1px solid var(--hairline);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease);
  transition-delay: calc(var(--n) * 0.09s + 0.15s);
  pointer-events: none;
}

.pipe-node:last-child::after {
  display: none;
}

.pipeline.in .pipe-node::after {
  transform: scaleX(1);
}

.pipe-glyph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: #000;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  color: #fff;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease),
    border-color 0.35s ease, background 0.35s ease;
  transition-delay: calc(var(--n) * 0.09s);
}

.pipeline.in .pipe-glyph {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pipe-node:hover .pipe-glyph {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.07);
}

.pipe-name {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13.5px, 1.3vw, 15px);
  letter-spacing: -0.015em;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--n) * 0.09s + 0.08s);
}

.pipe-desc {
  margin-top: 8px;
  font-size: clamp(11.5px, 1.1vw, 12.8px);
  line-height: 1.5;
  color: var(--body-text);
  opacity: 0;
  max-width: 22ch;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--n) * 0.09s + 0.14s);
}

.pipeline.in .pipe-name {
  opacity: 1;
  transform: translateY(0);
}

.pipeline.in .pipe-desc {
  opacity: 0.62;
  transform: translateY(0);
}

/* ==========================================================================
   04 — PROCESS
   ========================================================================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.step {
  display: grid;
  grid-template-columns: clamp(64px, 8vw, 110px) 1fr;
  gap: clamp(14px, 2.6vw, 34px);
  padding: clamp(22px, 3vh, 32px) clamp(4px, 1vw, 12px);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.35s ease;
}

.step:hover {
  background: var(--surface-hover);
}

.step-num {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0.34;
  transition: opacity 0.3s ease;
}

.step:hover .step-num {
  opacity: 0.9;
}

.step-text h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(17px, 1.8vw, 21px);
  letter-spacing: -0.02em;
  color: #fff;
}

.step-text p {
  margin: 0;
  font-size: clamp(13.5px, 1.3vw, 15.5px);
  line-height: 1.58;
  color: var(--body-text);
  opacity: 0.7;
  max-width: 60ch;
}

/* ==========================================================================
   05 — OUTCOMES
   ========================================================================== */
.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.outcome {
  background: #000;
  padding: clamp(26px, 3.6vh, 40px) clamp(20px, 2.4vw, 30px);
  transition: background 0.4s ease;
}

.outcome:hover {
  background: rgba(255, 255, 255, 0.035);
}

.outcome h3 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(16px, 1.65vw, 19px);
  letter-spacing: -0.022em;
  line-height: 1.3;
  color: #fff;
}

.outcome p {
  margin: 0;
  font-size: clamp(13.5px, 1.25vw, 15px);
  line-height: 1.58;
  color: var(--body-text);
  opacity: 0.68;
}

/* ==========================================================================
   06 — FAQ
   ========================================================================== */
.faq {
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item h3 {
  margin: 0;
  font-weight: inherit;
  font-size: inherit;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: clamp(20px, 2.7vh, 26px) 2px;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(15px, 1.55vw, 17.5px);
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0.82;
  transition: opacity 0.28s ease;
}

.faq-q:hover,
.faq-q[aria-expanded="true"] {
  opacity: 1;
}

.faq-q:focus-visible {
  outline: 1px solid var(--hairline-strong);
  outline-offset: 2px;
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #fff;
  transform: translateY(-50%);
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}

.faq-icon::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-q[aria-expanded="true"] .faq-icon::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.faq-a.open {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-a-inner p {
  margin: 0;
  padding: 0 44px clamp(22px, 3vh, 28px) 2px;
  font-size: clamp(13.5px, 1.3vw, 15.5px);
  line-height: 1.65;
  color: var(--body-text);
  opacity: 0.72;
  max-width: 68ch;
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta {
  position: relative;
  padding: clamp(80px, 14vh, 160px) 0 clamp(80px, 14vh, 150px);
  text-align: center;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(760px, 118%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.035) 34%,
    rgba(255, 255, 255, 0) 68%
  );
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.final-title .line {
  display: block;
  font-size: clamp(32px, 5.6vw, 66px);
}

.final-copy {
  margin: clamp(20px, 3vh, 28px) 0 0;
  max-width: 48ch;
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  line-height: 1.6;
  color: var(--body-text);
  opacity: 0.78;
}

.final-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(28px, 4vh, 40px);
}

.final-note {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Showcase collapses to an accordion before the layout gets cramped */
@media (max-width: 900px) {
  .svc-showcase {
    display: block;
  }

  .svc-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .svc-item.is-active {
    padding-left: 16px;
    border-bottom-color: transparent;
  }

  .svc-item-mark {
    height: 0;
  }

  .svc-item.is-active .svc-item-mark {
    height: 56%;
  }

  /* accordion mechanics */
  .svc-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    border-bottom: 1px solid var(--hairline);
    transition: grid-template-rows 0.45s var(--ease);
  }

  .svc-panel.is-active {
    grid-template-rows: 1fr;
    transform: none;
  }

  .svc-panel-inner {
    overflow: hidden;
    min-height: 0;
  }

  .svc-panel-body {
    padding: 4px 0 clamp(22px, 3vh, 30px) 16px;
    gap: clamp(20px, 3vh, 26px);
  }

  .svc-panel-visual svg {
    max-height: 150px;
  }
}

@media (max-width: 900px) {
  .outcomes {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Pipeline goes vertical */
@media (max-width: 860px) {
  .pipeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pipe-node {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
    padding: 0 0 clamp(24px, 3.4vh, 32px);
  }

  .pipe-node::after {
    top: 52px;
    bottom: 0;
    left: calc(var(--pipe-r) - 0.5px);
    right: auto;
    height: auto;
    width: 0;
    border-top: none;
    border-left: 1px solid var(--hairline);
    transform: scaleY(0);
    transform-origin: top center;
  }

  .pipeline.in .pipe-node::after {
    transform: scaleY(1);
  }

  .pipe-node:last-child {
    padding-bottom: 0;
  }

  .pipe-glyph {
    flex: 0 0 auto;
  }

  .pipe-text-wrap {
    display: block;
  }

  .pipe-name {
    margin-top: 12px;
  }

  .pipe-desc {
    max-width: 44ch;
    margin-top: 6px;
  }

  /* stack name + desc beside the glyph */
  .pipe-node {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 2px;
    align-items: start;
  }

  .pipe-glyph {
    grid-row: 1 / span 2;
  }

  .pipe-name {
    grid-column: 2;
    margin-top: 4px;
  }

  .pipe-desc {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .services-page {
    --section-y: clamp(54px, 8vh, 84px);
  }

  .section-head {
    margin-bottom: clamp(28px, 4.4vh, 44px);
  }

  .svc-hero {
    min-height: auto;
    padding-top: calc(48px + clamp(56px, 10vh, 96px));
    padding-bottom: clamp(56px, 9vh, 88px);
    margin-top: calc(-1 * (48px + clamp(28px, 4vh, 44px)));
  }

  .svc-hero-actions {
    gap: 18px;
  }

  .build-row {
    grid-template-columns: 40px 1fr;
    align-items: start;
  }

  .build-arrow {
    display: none;
  }

  .build-text {
    flex-direction: column;
    gap: 6px;
  }

  .build-text h3 {
    min-width: 0;
  }

  .step {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }

  .faq-a-inner p {
    padding-right: 20px;
  }
}

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

  .svc-hero-title .line {
    font-size: clamp(34px, 11vw, 48px);
  }

  .final-title .line {
    font-size: clamp(28px, 9.5vw, 42px);
  }

  .svc-item-name {
    font-size: 16.5px;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .services-page *,
  .services-page *::before,
  .services-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .sr {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .pipe-glyph,
  .pipe-name,
  .pipe-desc {
    opacity: 1;
    transform: none;
  }

  .pipeline .pipe-desc {
    opacity: 0.62;
  }

  .pipe-node::after {
    transform: none !important;
  }

  .svc-panel-visual .vz-wave rect {
    animation: none;
  }
}

/* ==========================================================================
   FOOTER
   Structure follows the supplied footer spec; palette, type and shadows are
   remapped onto the site's dark theme so it reads as one system.
   ========================================================================== */
.footer-section {
  padding: clamp(56px, 9vh, 96px) var(--gutter) clamp(28px, 4vh, 44px);
  background: var(--bg);
  border-top: 1px solid var(--hairline);
}

.footer-wrapper {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 16px;
  align-items: stretch;
}

/* Grid items default to min-width:auto, so a wide child (the subscribe input)
   blows the track out past the wrapper. Let the cards actually shrink. */
.footer-left,
.footer-right {
  min-width: 0;
}

/* ---------- LEFT CARD ---------- */
.footer-left {
  position: relative;
  min-height: 340px;
  border-radius: 28px;
  padding: 32px;
  overflow: hidden;
  background: #0a0a0c;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-left-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.footer-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo-name {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer-tagline-container {
  margin-top: auto;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.footer-tagline {
  margin: 0;
  font-size: 19px;
  font-weight: 400;
  color: #fff;
  line-height: 1.45;
}

.footer-tagline span {
  color: rgba(255, 255, 255, 0.65);
}

.footer-social-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.footer-social-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.footer-social-icons {
  display: flex;
  gap: 7px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
}

.social-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.social-icon:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 3px 10px rgba(0, 0, 0, 0.3);
}

.social-icon:focus-visible {
  outline: 1px solid var(--hairline-strong);
  outline-offset: 2px;
}

/* ---------- RIGHT CARD ---------- */
.footer-right {
  position: relative;
  background: #0d0d0f;
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 40px;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-lucky-graphic {
  position: absolute;
  top: -36px;
  right: 40px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.lucky-cube {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  transform: rotate(-10deg);
  background: linear-gradient(135deg, #ffffff 0%, #d9d9de 55%, #b6b6be 100%);
  box-shadow: inset 3px 3px 8px rgba(255, 255, 255, 0.55),
    inset -3px -3px 12px rgba(0, 0, 0, 0.18), 8px 14px 28px rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
}

.lucky-cube-mark {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 700;
  color: #0a0a0c;
  letter-spacing: -0.04em;
  transform: rotate(10deg);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
  line-height: 1;
}

.lucky-text-row {
  display: flex;
  align-items: center;
  gap: 6px;
  transform: rotate(-4deg);
  margin-top: 4px;
}

.lucky-arrow {
  width: 22px;
  height: 22px;
  color: var(--muted);
  display: block;
}

.lucky-arrow svg {
  width: 100%;
  height: 100%;
}

.lucky-arrow path {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lucky-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

/* nav columns */
.footer-right-top {
  padding-top: 8px;
}

.footer-nav-cols {
  display: flex;
  gap: 72px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.footer-col a {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

/* bottom row */
.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
}

.footer-copyright {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.footer-cta-mini {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-cta-mini h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: #8e8e8e;
  line-height: 1.45;
}

.footer-cta-mini h4 strong {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer-subscribe-row {
  display: flex;
  width: 310px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-subscribe-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: #fff;
}

.footer-subscribe-row input::placeholder {
  color: var(--muted);
}

.footer-subscribe-row button {
  padding: 11px 22px;
  background: #fff;
  color: #000;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.18), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.footer-subscribe-row button:hover {
  background: #f2f2f2;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.3), 0 3px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

/* watermark */
.footer-watermark {
  max-width: 1150px;
  margin: -60px auto 0;
  pointer-events: none;
  user-select: none;
  position: relative;
  z-index: 0;
  line-height: 0;
}

.footer-watermark svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.footer-watermark text {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  fill: rgba(255, 255, 255, 0.05);
}

/* ---------- FOOTER RESPONSIVE ---------- */
@media (max-width: 860px) {
  .footer-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-left {
    min-height: auto;
    gap: 40px;
  }

  .footer-lucky-graphic {
    top: -30px;
  }
}

@media (max-width: 560px) {
  /* extra top padding clears the floating badge so it never sits on the nav */
  .footer-right {
    padding: 92px 24px 24px;
  }

  .footer-nav-cols {
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-subscribe-row {
    width: 100%;
    flex-wrap: wrap;
  }

  /* the input carries a large intrinsic width; give it a small basis so the
     row can shrink instead of forcing the whole footer wider than the screen */
  .footer-subscribe-row input {
    flex: 1 1 120px;
    min-width: 0;
  }

  .footer-subscribe-row button {
    flex: 0 0 auto;
  }

  .footer-lucky-graphic {
    right: 12px;
    top: -28px;
    align-items: flex-end;
    max-width: calc(100% - 24px);
  }

  .lucky-cube {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .lucky-cube-mark {
    font-size: 32px;
  }

  .lucky-text-row {
    transform: rotate(-4deg) scale(0.92);
    transform-origin: right center;
  }

  .footer-watermark {
    margin-top: -24px;
  }
}
