:root {
  /* Single brand hue: one teal ramp + neutrals. Legacy var names kept so
     every existing call site picks up the consolidated palette. */
  --blue: #08829c;            /* Readable teal for headings/accents on white */
  --blue-bright: #6fdcef;     /* Light teal accent over photos / dark bands */
  --blue-deep: #0e1216;       /* Deep graphite (dark media frames over photos) */
  --steel: #009bb7;           /* (legacy steel) now brand teal, top contact strip */
  --steel-dark: #007e96;      /* (legacy steel-dark) darker brand teal */
  --teal-header: #009bb7;     /* Brand teal for the nav bar (next to logo) */
  --teal-header-dark: #008298;/* Brand teal, darker for scrolled header */
  --blue-soft: rgba(0, 155, 184, 0.11);
  --green: #009bb8;           /* (legacy green) CTA buttons, now brand teal */
  --green-dark: #00758a;      /* (legacy green-dark) darker teal for labels/hover */
  --accent-warm: #f0b429;     /* Amber. The single warm accent, used sparingly */
  --ember: #f0b429;           /* (legacy ember) heading underline, now amber */
  --accent-light: #6fdcef;    /* The one light accent on dark/teal surfaces */
  --ink: #e4f2f5;             /* Page background (soft, airy teal tint) */
  --graphite: #f4fbfc;        /* Card surface (lifts off the tinted page) */
  --muted: #5c6b7a;           /* Cool slate gray text */
  --line: rgba(15, 30, 45, 0.10);
  --line-strong: rgba(15, 30, 45, 0.20);
  --soft: #cfe7ee;            /* Tinted section background (one step deeper) */
  --white: #ffffff;
  --text-primary: #0c1722;    /* High-contrast dark text */
  --text-secondary: #44566a;  /* Medium-contrast dark text */
  --shadow: 0 1px 2px rgba(15, 30, 45, 0.05), 0 10px 28px rgba(15, 30, 45, 0.09);
  --shadow-strong: 0 2px 8px rgba(15, 30, 45, 0.10), 0 28px 64px rgba(15, 30, 45, 0.18);
  --shadow-brand: 0 2px 8px rgba(0, 117, 138, 0.14), 0 20px 44px rgba(0, 155, 184, 0.20);
  --radius: 8px;              /* Rounder corners for a premium feel */
  --max: 1220px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.32, 0.5, 1);
  --font-body: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --step-0: 14px;
  --step-1: 16px;
  --step-2: 18px;
  --step-3: 24px;
  --step-4: clamp(32px, 4.2vw, 46px);
  --step-5: clamp(44px, 6vw, 72px);
  --gap-section: clamp(52px, 6vw, 84px);
  --gutter: 24px;                       /* consistent left/right page gutter */
  --col-gap: clamp(32px, 3.4vw, 44px);  /* consistent grid column gap */
  --card-gap: 16px;                     /* consistent gap between cards in a grid */
  --band-pad: clamp(48px, 6vw, 72px);   /* full-bleed band vertical padding */

  /* Glass variables */
  --glass-bg: rgba(6, 9, 15, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Machine-building page: slightly tighter vertical rhythm between sections */
body.page-machine-building {
  --gap-section: clamp(44px, 5.1vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  /* clip (not hidden): blocks horizontal overflow without creating a scroll
     container, so position:sticky pinning keeps working for descendants */
  overflow-x: clip;
  background-image: radial-gradient(rgba(15, 30, 45, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

body::before {
  content: "";
  position: fixed;
  top: -15%;
  left: -15%;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  bottom: -15%;
  right: -15%;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(0, 155, 184, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 155, 184, 0.5);
  border-radius: var(--radius);
}

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

::selection {
  background: rgba(0, 117, 138, 0.24);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--text-primary);
  background: var(--teal-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.site-header.is-scrolled {
  background: var(--teal-header-dark);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 38px;
  padding: 8px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  background: var(--steel-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-strip a,
.contact-strip span {
  white-space: nowrap;
}

.contact-strip a:hover {
  color: var(--white);
}

.contact-strip a:first-child::before {
  content: "";
  color: var(--accent-light);
  margin-right: 7px;
}

.contact-strip a:nth-child(2)::before {
  content: "";
  color: var(--accent-light);
  margin-right: 7px;
}

.contact-strip span:nth-child(3)::before {
  content: "";
  color: var(--accent-light);
  margin-right: 7px;
  font-size: 9px;
}

.contact-strip span:nth-child(4)::before {
  content: "";
  color: var(--accent-light);
  margin-right: 7px;
}

.nav {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  min-height: 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

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

.brand img {
  width: 212px;
  height: auto;
}

/* Animated logo (Lottie) host — static img shows until the animation loads */
.brand-anim {
  display: block;
  width: 218px;
  line-height: 0;
}

.brand-anim img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-anim svg,
.brand-anim canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.brand-anim.is-anim img {
  display: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.94);
  transition: color 200ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent-warm);
  transition: right 220ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  right: 0;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease), transform 200ms ease, box-shadow 250ms var(--ease);
}

.button:active,
.nav-cta:active {
  transform: translateY(1px);
}

.nav-cta,
.button-primary {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.button-primary:hover,
.nav-cta:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 2px 6px rgba(4, 50, 34, 0.22), 0 12px 26px rgba(0, 155, 184, 0.22);
}

/* On the teal header a teal button disappears; the nav CTA carries the
   amber accent instead. */
.nav-cta {
  color: #063a45;
  background: var(--accent-warm);
  border-color: var(--accent-warm);
}

.nav-cta:hover {
  color: #063a45;
  background: #ffc94d;
  border-color: #ffc94d;
  box-shadow: 0 2px 6px rgba(6, 58, 69, 0.20), 0 12px 26px rgba(240, 180, 41, 0.30);
}

.button-secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
}

.button-secondary:hover {
  background: var(--white);
  color: #082b33;
  border-color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.button-outline {
  color: var(--text-primary);
  background: transparent;
  border-color: var(--line-strong);
}

.button-outline:hover {
  color: var(--ink);
  background: var(--text-primary);
  border-color: var(--text-primary);
  box-shadow: 0 8px 22px rgba(15, 30, 45, 0.18);
}

.button svg {
  width: 16px;
  height: 16px;
  margin-left: 10px;
  flex: none;
}

.menu-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero,
.page-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #0b0f14;
}

.hero img,
.page-hero img,
.page-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06) brightness(0.94);
  transform: scale(1.05);
  animation: heroDrift 18s ease-out both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(4, 32, 38, 0.96) 0%, rgba(4, 32, 38, 0.72) 45%, rgba(4, 32, 38, 0.24) 82%),
    linear-gradient(0deg, rgba(4, 38, 44, 0.7) 0%, rgba(4, 38, 44, 0.08) 55%);
}

.hero-content,
.page-hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  min-height: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 0 88px;
  color: var(--white);
}

.hero h1,
.page-hero h1,
.section-heading h2,
.story-copy h2,
.proof-copy h2,
.contact-card h2,
.footer h2,
.story-panel strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.hero h1,
.page-hero h1 {
  max-width: 20ch;
  margin: 0;
  font-size: var(--step-5);
  font-weight: 700;
}

.hero p,
.page-hero p {
  max-width: 56ch;
  margin: 24px 0 0;
  font-size: var(--step-2);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- Minimalist animated hero ---------- */
.hero-min {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  min-height: 86vh;
  padding: clamp(64px, 10vh, 128px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

main section[id] {
  scroll-margin-top: 128px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero-rotate {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-body);
  font-size: clamp(48px, 9vw, 116px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.03;
  color: var(--ink);
}

.hero-rotate-lead {
  display: block;
}

.hero-rotate-slot {
  position: relative;
  display: block;
  width: 100%;
  height: 1.26em;
  margin-top: 0.04em;
  overflow: hidden;
}

.hero-rotate-slot span {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(116%);
  transition: transform 780ms var(--spring), opacity 520ms ease;
  color: var(--blue);
  font-weight: 600;
}

.hero-rotate-slot span.is-up {
  transform: translateY(-116%);
}

.hero-rotate-slot span.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero-min p {
  max-width: 54ch;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
}

.hero-min .hero-actions {
  justify-content: center;
  margin-top: 40px;
}

/* ---------- Animated hero over image-slideshow banner ---------- */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 12vh, 150px) 24px;
  overflow: hidden;
  background: #04262c;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  background: #04262c;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1400ms var(--ease), transform 6000ms ease-out;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-bg-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 38, 44, 0.6) 0%, rgba(4, 38, 44, 0.5) 45%, rgba(4, 38, 44, 0.78) 100%),
    radial-gradient(circle at 50% 42%, rgba(4, 38, 44, 0.1), rgba(4, 38, 44, 0.66) 90%);
}

.hero-banner .hero-eyebrow {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-banner .hero-eyebrow::before {
  background: var(--blue-bright);
  box-shadow: 0 0 14px rgba(0, 155, 184, 0.9);
}

.hero-banner .hero-rotate {
  color: var(--white);
  max-width: 20ch;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero-banner .hero-rotate-slot span {
  color: var(--accent-light);
}

.hero-banner p {
  max-width: 50ch;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.hero-banner .hero-actions {
  justify-content: center;
  margin-top: 38px;
}

.hero-banner .button-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-banner .button-outline:hover {
  color: var(--blue-deep);
  background: var(--white);
  border-color: var(--white);
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 1;
  display: flex;
  gap: 9px;
  justify-content: center;
}

.hero-dots button {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: background 240ms ease;
}

.hero-dots button.is-active {
  background: var(--blue-bright);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  display: grid;
  justify-items: center;
  padding-top: 8px;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  transition: border-color 220ms ease;
}

.hero-scroll:hover {
  border-color: var(--white);
}

.hero-scroll span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue-bright);
  animation: hero-scroll-dot 1.8s var(--ease) infinite;
}

@keyframes hero-scroll-dot {
  0% { opacity: 0; transform: translateY(-2px); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* ---------- Section wrappers ---------- */
.builder-story,
.capabilities,
.topic-links,
.process,
.faq,
.contact,
.page-section,
.detail-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: var(--gap-section) 0;
}

.builder-story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--col-gap);
  align-items: center;
}

.story-copy {
  display: grid;
  align-content: center;
}

.story-copy h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--blue);
  font-size: var(--step-4);
}

.story-copy p {
  max-width: 52ch;
  margin: 22px 0 0;
  color: var(--text-secondary);
  font-size: var(--step-2);
}

.story-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.story-points article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(15, 30, 45, 0.08);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms var(--ease);
}

.story-points article:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow-brand);
}

.story-points span {
  display: block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.story-points strong {
  display: block;
  color: var(--blue);
  font-size: 17px;
  line-height: 1.18;
}

.story-points p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.story-panel {
  display: grid;
  align-content: end;
  min-height: 430px;
  padding: 36px;
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(6, 9, 15, 0.96) 0%, rgba(6, 9, 15, 0.4) 60%, rgba(6, 9, 15, 0.2) 100%),
    url("assets/machine-build.jpg") center / cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}

.story-panel-visual {
  background:
    url("assets/plm-photos/custom-metal-machine-cutout-900.png") center / 88% auto no-repeat,
    radial-gradient(ellipse at 55% 76%, rgba(0, 155, 184, 0.20) 0%, transparent 44%),
    linear-gradient(150deg, #06323b 0%, #00758a 58%, #041b20 100%);
}

.story-panel:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow-brand);
}

.eyebrow,
.story-panel span,
.topic-links span,
.built-machine-copy span,
.machine-proof-grid span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-panel span {
  color: var(--accent-light);
}

.story-panel strong {
  margin-top: 14px;
  font-size: 40px;
  font-weight: 700;
}

.story-panel p {
  max-width: 44ch;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Built-machine feature ---------- */
.built-machine-feature {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: var(--gap-section) 0;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: var(--col-gap);
  align-items: center;
}

.built-machine-copy {
  display: grid;
  justify-items: start;
}

.built-machine-copy span {
  color: var(--green-dark);
}

.machine-proof-grid span {
  color: var(--blue);
}

.built-machine-copy h2 {
  margin: 14px 0 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
}

.built-machine-copy h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 16px;
  background: var(--ember);
}

.built-machine-copy p {
  margin: 20px 0 26px;
  color: var(--muted);
  font-size: var(--step-1);
  max-width: 46ch;
}

.built-machine-stage {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 68% 75%, rgba(0, 155, 184, 0.22) 0%, transparent 42%),
    linear-gradient(150deg, #06323b 0%, #00758a 58%, #041b20 100%);
  box-shadow: var(--shadow-strong);
  isolation: isolate;
}

.built-machine-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 68% 50%, black, transparent 70%);
  opacity: 0.5;
}

.built-machine-stage::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 160%;
  top: -30%;
  left: -58%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-18deg);
  animation: machineSheen 8s ease-in-out infinite;
  pointer-events: none;
}

.built-machine-stage img {
  position: absolute;
  inset: 5%;
  z-index: 1;
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.34));
}

/* ---------- Machine proof / photo pair grid ---------- */
.machine-proof-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: var(--gap-section) 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.machine-proof-grid article {
  display: grid;
  grid-template-rows: 460px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--graphite);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}

.machine-proof-grid article:hover {
  transform: translateY(-8px);
  border-color: var(--blue);
  box-shadow: var(--shadow-brand);
}

.machine-proof-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05) brightness(0.97);
}

.machine-proof-grid article.is-cutout {
  background: linear-gradient(180deg, #ffffff 0%, var(--graphite) 100%);
}

.machine-proof-grid article.is-cutout img,
.machine-proof-grid img[src*="cutout"] {
  object-fit: contain;
  padding: clamp(22px, 4vw, 44px);
  background:
    radial-gradient(ellipse at 52% 76%, rgba(15, 30, 45, 0.16) 0%, rgba(15, 30, 45, 0.08) 22%, transparent 48%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(212, 237, 242, 0.82) 100%);
  filter: drop-shadow(0 22px 24px rgba(15, 30, 45, 0.18));
}

.machine-proof-grid div {
  padding: 26px;
}

.machine-proof-grid h2 {
  margin: 10px 0 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.02;
}

.machine-proof-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* ---------- Trust / recognition bar ---------- */
.trust-bar {
  width: 100%;
  padding: var(--band-pad) max(24px, calc((100vw - var(--max)) / 2));
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.trust-bar p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Auto-scrolling logo marquee (adapted from Logos3) */
.marquee {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 14px;
  animation: marqueeScroll 38s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 172px;
  height: 86px;
  padding: 16px 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(15, 30, 45, 0.10);
}

.marquee-track img {
  max-height: 40px;
  max-width: 128px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 240ms ease, opacity 240ms ease;
}

.marquee-track span:hover img {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Scroll-driven design carousel (adapted from ScrollXCarousel) ---------- */
.scrollx {
  position: relative;
  height: 220vh;
}

.scrollx-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  overflow: hidden;
}

.scrollx-head {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.scrollx-head span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.scrollx-head h2 {
  margin: 12px 0 0;
  color: var(--blue);
  font-size: var(--step-4);
  line-height: 1;
}

.scrollx-head p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 46ch;
}

.scrollx-viewport {
  position: relative;
  width: 100%;
}

.scrollx-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  will-change: transform;
}

.scrollx-card {
  position: relative;
  flex: 0 0 auto;
  width: 42vw;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}

.scrollx-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05) brightness(0.96);
  transition: transform 600ms var(--ease), filter 600ms var(--ease);
}

.scrollx-card:hover img {
  transform: scale(1.05);
  filter: saturate(0.96) contrast(1.07) brightness(1);
}

.scrollx-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 22px 18px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(6, 9, 15, 0.92));
}

.scrollx-fade {
  position: absolute;
  inset: 0 auto 0 0;
  width: 12vw;
  z-index: 3;
  pointer-events: none;
}

.scrollx-fade-l {
  background: linear-gradient(90deg, var(--ink) 30%, transparent);
}

.scrollx-fade-r {
  inset: 0 0 0 auto;
  width: 15vw;
  background: linear-gradient(270deg, var(--ink) 30%, transparent);
}

.scrollx-progress {
  width: min(var(--max), calc(100% - 48px));
  height: 3px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(15, 30, 45, 0.12);
  overflow: hidden;
}

.scrollx-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

/* ---------- Photo showcase / slideshow ---------- */
.photo-showcase {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: var(--gap-section) 0;
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: var(--col-gap);
  align-items: stretch;
}

.photo-copy {
  display: grid;
  align-content: center;
}

.photo-copy h2 {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
}

.photo-copy h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 16px;
  background: var(--ember);
}

.photo-copy p {
  margin: 20px 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: var(--step-1);
}

.shop-points {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.shop-points li {
  position: relative;
  padding: 16px 18px 16px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 8px 22px rgba(15, 30, 45, 0.07);
}

.shop-points li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(0, 155, 184, 0.14);
}

.slideshow-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue-deep);
  box-shadow: var(--shadow-strong);
}

.slide-stage {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--blue-deep);
}

.slide-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(4, 38, 44, 0.66));
  pointer-events: none;
}

.slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05) brightness(0.96);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1000ms var(--ease), transform 1600ms var(--ease);
}

.slide-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.slide-meta {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  color: var(--white);
}

.slide-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(4, 38, 44, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.slide-caption {
  font-size: var(--step-1);
  font-weight: 500;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.slide-controls {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(4, 38, 44, 0.55);
  backdrop-filter: blur(8px);
}

.slide-controls button {
  min-width: 36px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.slide-controls button:hover {
  color: var(--blue-deep);
  background: var(--white);
}

.slide-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.slide-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent-light);
  transform-origin: left center;
  animation: slideProgress 5s linear infinite;
}

.slideshow-shell.is-paused .slide-progress span {
  animation-play-state: paused;
}

/* ---------- Topic links ---------- */
.topic-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--card-gap);
  padding-top: 0;
}

.topic-links a {
  position: relative;
  min-height: 460px;
  display: grid;
  align-content: end;
  padding: 30px;
  color: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}

.topic-links a:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  box-shadow: var(--shadow-brand);
}

.topic-links img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06) brightness(0.94);
  transition: transform 800ms var(--ease), filter 800ms var(--ease);
}

.topic-links a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 38, 44, 0.2) 0%, rgba(4, 28, 34, 0.64) 46%, rgba(6, 9, 15, 0.94) 88%);
}

.topic-links a.is-product {
  background: linear-gradient(150deg, #06323b 0%, #00758a 56%, #041b20 100%);
}

.topic-links a.is-product img {
  inset: 28px 18px 110px;
  width: calc(100% - 36px);
  height: calc(100% - 138px);
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.32));
}

.topic-links a.is-product::after {
  background:
    radial-gradient(ellipse at 52% 72%, rgba(0, 155, 184, 0.24) 0%, transparent 42%),
    linear-gradient(180deg, rgba(6, 9, 15, 0.06) 0%, rgba(6, 9, 15, 0.9) 88%);
}

.topic-links a:hover img {
  transform: scale(1.06);
  filter: saturate(0.96) contrast(1.08) brightness(1);
}

.topic-links a.is-product:hover img {
  filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.36));
}

.topic-links span {
  color: var(--blue-bright);
}

.topic-links strong {
  max-width: 30ch;
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.08;
}

/* ---------- Section headings ---------- */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading h2,
.proof-copy h2 {
  margin: 0;
  font-size: var(--step-4);
  color: var(--blue);
}

.section-heading h2::after,
.proof-copy h2::after,
.story-copy h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 16px;
  background: var(--ember);
}

.centered h2::after {
  margin-left: auto;
  margin-right: auto;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

/* ---------- Capabilities ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

.service-card {
  min-height: 312px;
  display: grid;
  grid-template-rows: 210px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--graphite);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease), background 320ms var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: var(--shadow-brand);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05) brightness(0.97);
  transition: transform 600ms var(--ease), filter 600ms var(--ease);
}

.service-card:hover img {
  transform: scale(1.05);
  filter: saturate(0.96) contrast(1.07) brightness(1);
}

.service-card div:not(.assembly-icon) {
  position: relative;
  padding: 22px 20px 26px;
}

.service-card h3 {
  margin: 0 0 10px;
  padding-right: 26px;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.25;
}

/* Arrow affordance, slides in on hover */
.service-card h3::after {
  content: "→";
  position: absolute;
  top: 22px;
  right: 18px;
  color: var(--blue);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}

.service-card:hover h3::after {
  opacity: 1;
  transform: translateX(0);
}

.service-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.service-card-dark {
  color: var(--white);
  background: linear-gradient(160deg, #0c8298, #06414c);
  border-color: rgba(0, 130, 156, 0.5);
}

.service-card-dark h3 {
  color: var(--white);
}

.service-card-dark h3::after {
  color: var(--white);
}

.service-card-dark p {
  color: rgba(255, 255, 255, 0.82);
}

.assembly-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #0c8298, #06414c 72%);
}

.assembly-icon svg {
  width: 70px;
  color: var(--accent-light);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

/* ---------- Process ---------- */
.process {
  width: 100%;
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  background: var(--blue-soft);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-steps li {
  position: relative;
  padding: 18px 22px;
  text-align: center;
}

/* Continuous connector line running through the number circles */
.process-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(0, 130, 156, 0.28);
  z-index: 0;
}

.process-steps span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(150deg, var(--teal-header), var(--teal-header-dark));
  box-shadow: 0 6px 16px rgba(0, 130, 156, 0.32);
}

.process-steps h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--blue);
}

.process-steps p {
  margin: 0 auto;
  max-width: 18ch;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---------- Proof ---------- */
.proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--graphite);
}

.proof-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.proof-copy {
  padding: var(--gap-section) max(24px, calc((100vw - var(--max)) / 2)) var(--gap-section) 74px;
  align-self: center;
}

.proof-copy h2 {
  max-width: 18ch;
}

.proof-copy p {
  max-width: 52ch;
  margin-top: 22px;
  color: var(--text-secondary);
  font-size: var(--step-2);
}

.proof-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.proof-highlights span {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.proof-highlights strong {
  display: block;
  color: var(--blue);
  font-size: 15px;
  line-height: 1.15;
}

.proof-copy ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 32px;
  padding: 0;
  list-style: none;
}

.proof-copy li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
}

.proof-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-size: 11px;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--col-gap);
}

.faq .section-heading {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

details + details {
  border-top: 1px solid var(--line);
}

summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 54px 22px 24px;
  font-weight: 600;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 20px;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after {
  content: "\2013";
}

details p {
  margin: -4px 24px 22px;
  color: var(--muted);
}

details a {
  color: var(--blue);
  font-weight: 600;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: var(--col-gap);
  align-items: start;
}

.quote-form form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(0, 155, 184, 0.22);
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 600;
}

.contact-card {
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 4px;
  font-size: 30px;
}

.contact-card a,
.contact-card span {
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--blue);
}

.contact-card img {
  margin-top: 8px;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Inner page sections ---------- */
.page-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--col-gap);
  align-items: start;
  padding-bottom: clamp(36px, 5vw, 64px);
}

.page-section h2 {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
}

.page-section p {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: var(--step-2);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  background: var(--soft);
  font-weight: 500;
}

/* ---------- Detail grids for deeper inner pages ---------- */
.detail-grid {
  display: grid;
  gap: 24px;
  padding-top: clamp(36px, 5vw, 64px);
}

.detail-grid-head {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: var(--col-gap);
  align-items: end;
}

.detail-grid-head h2 {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
}

.detail-grid-head p {
  margin: 0;
  max-width: 58ch;
  color: var(--text-secondary);
  font-size: var(--step-1);
}

.detail-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--card-gap);
}

.detail-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.detail-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-card h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.08;
}

.detail-card p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.page-section + .detail-grid,
.wwd-strip + .detail-grid,
.machine-proof-grid + .detail-grid {
  padding-top: 0;
}

.detail-grid + .machine-proof-grid,
.page-hero + .machine-proof-grid {
  padding-top: clamp(36px, 5vw, 64px);
}

/* ---------- Industries page hero ---------- */
.industry-hero {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: var(--gap-section) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: var(--col-gap);
  align-items: center;
}

.industry-hero-copy h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 1;
}

.industry-hero-copy p {
  max-width: 52ch;
  margin: 24px 0 0;
  color: var(--text-secondary);
  font-size: var(--step-2);
  line-height: 1.55;
}

.industry-hero .hero-actions {
  margin-top: 30px;
}

.industry-hero .page-eyebrow {
  background: var(--blue-soft);
  color: var(--blue);
}

.industry-hero-media {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: repeat(2, minmax(210px, 1fr));
  gap: 16px;
}

.industry-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  filter: saturate(0.9) contrast(1.05) brightness(0.97);
}

.industry-hero-main {
  grid-row: span 2;
}

/* ---------- CTA band ---------- */
.cta-band {
  width: 100%;
  padding: var(--gap-section) max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: linear-gradient(150deg, #06414c 0%, #00758a 100%);
  text-align: center;
}

.cta-band h2 {
  margin: 0 auto;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 1;
}

.cta-band p {
  margin: 18px auto 30px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--step-1);
}

/* Sparkle field on the dark CTA band (adapted from the Sparkles component) */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: 130%;
  height: 90%;
  transform: translateX(-50%);
  border-radius: 100%;
  background: radial-gradient(closest-side, rgba(240, 180, 41, 0.16), rgba(111, 220, 239, 0.10) 55%, transparent 75%);
  pointer-events: none;
}

.sparkles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cta-band > :not(.sparkles-canvas) {
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */
.footer {
  display: grid;
  grid-template-columns: 1.3fr 0.6fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding: var(--band-pad) max(24px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(160deg, var(--teal-header) 0%, var(--teal-header-dark) 100%);
  border-top: 3px solid var(--green);
}

.footer a {
  transition: color 200ms ease;
}

.footer .brand img {
  width: 210px;
}

.footer h2 {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer p {
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.62);
}

.footer div {
  display: grid;
  align-content: start;
  gap: 8px;
}

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

.footer-oldsite {
  margin-top: 10px;
  color: var(--blue-bright);
  font-weight: 600;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 820ms var(--ease), transform 820ms var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Softer, slightly later fade-up: used for the first text block after the
   scroll-video on the process page so it eases in instead of snapping. */
.reveal-soft {
  transform: translateY(36px);
  transition: opacity 1000ms var(--ease), transform 1000ms var(--ease);
  transition-delay: 160ms;
}

.service-card,
.topic-links a,
.process-steps li,
.feature-list li {
  transition-delay: var(--delay, 0ms);
}

/* Staggered child reveals (set up in script.js) */
.reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: none;
}

/* Image zoom-in as cards/sections reveal */
.machine-proof-grid article {
  overflow: hidden;
}

/* Featured builds: a distinctive "swing into place" reveal. Left and right
   cards hinge in from opposite sides and converge with a soft settle, while
   each photo eases out of a slow zoom. */
.machine-proof-grid {
  perspective: 1500px;
}

.machine-proof-grid .reveal-item {
  opacity: 0;
  transform: none;
}

.machine-proof-grid .reveal-item.is-visible {
  opacity: 1;
  animation: proofSwingIn 920ms var(--ease) var(--delay, 0ms) backwards;
}

.machine-proof-grid .reveal-item:nth-child(even).is-visible {
  animation-name: proofSwingInAlt;
}

@keyframes proofSwingIn {
  0%   { opacity: 0; transform: translate3d(-54px, 36px, 0) rotateY(10deg) scale(0.95); }
  62%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

@keyframes proofSwingInAlt {
  0%   { opacity: 0; transform: translate3d(54px, 36px, 0) rotateY(-10deg) scale(0.95); }
  62%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

.machine-proof-grid .reveal-item img {
  transform: scale(1.12);
  transition: transform 1500ms var(--ease);
}

.machine-proof-grid .reveal-item.is-visible img {
  transform: scale(1);
}

.proof-image {
  overflow: hidden;
}

.proof .proof-image img {
  transform: scale(1.08);
  transition: transform 1500ms var(--ease);
}

.proof.is-visible .proof-image img {
  transform: scale(1);
}

/* Scroll progress bar (appended by script.js) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

@keyframes heroDrift {
  from {
    transform: scale(1.1) translateY(16px);
  }
  to {
    transform: scale(1.05) translateY(0);
  }
}

@keyframes machineSheen {
  0%, 42% {
    left: -58%;
  }
  78%, 100% {
    left: 116%;
  }
}

@keyframes slideProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  /* Hide the looping video; the poster frame stays visible underneath. */
  .hero-video {
    display: none;
  }
  .hero-banner {
    background: #04262c url("assets/plm-hero-poster.jpg") center / cover;
  }

  .reveal,
  .reveal-item {
    opacity: 1;
    transform: none;
  }

  .machine-proof-grid .reveal-item img,
  .proof .proof-image img {
    transform: none;
  }

  .scrollx {
    height: auto;
  }

  .scrollx-sticky {
    position: static;
    height: auto;
    padding: var(--gap-section) 0;
  }

  .scrollx-viewport {
    overflow-x: auto;
  }

  .scrollx-track {
    transform: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .contact-strip {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-links {
    gap: 22px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scrollx-card {
    width: 60vw;
  }
}

@media (max-width: 900px) {
  .nav {
    width: min(100% - 32px, var(--max));
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .brand img {
    width: 184px;
  }

  .menu-toggle {
    display: inline-grid;
    grid-template-columns: 20px auto;
    gap: 4px 8px;
    align-items: center;
    border: 0;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.06em;
    cursor: pointer;
  }

  .menu-toggle span {
    grid-column: 1;
    display: block;
    height: 2px;
    background: currentColor;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 2px;
    margin-bottom: 16px;
    padding: 8px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-links.is-open a {
    padding: 14px 16px;
  }

  .nav-links.is-open a::after {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 48px;
  }

  .builder-story,
  .industry-hero,
  .built-machine-feature,
  .photo-showcase,
  .machine-proof-grid,
  .detail-grid,
  .topic-links,
  .process-steps,
  .proof,
  .faq,
  .contact,
  .footer,
  .page-section {
    grid-template-columns: 1fr;
  }

  .process-steps li + li::before {
    display: none;
  }

  .proof-copy {
    padding: 48px 24px;
  }

  .proof-image img {
    min-height: 320px;
  }

  .industry-hero {
    padding-top: var(--gap-section);
  }

  .industry-hero-media {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 320px 220px;
  }

  .industry-hero-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .proof-highlights {
    grid-template-columns: 1fr;
  }

  .story-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-strip {
    font-size: 12px;
  }

  .contact-strip span {
    display: none;
  }

  .brand img {
    width: 156px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-actions,
  .quote-form form {
    grid-template-columns: 1fr;
    display: grid;
    width: 100%;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .builder-story,
  .industry-hero,
  .built-machine-feature,
  .photo-showcase,
  .capabilities,
  .machine-proof-grid,
  .detail-grid,
  .topic-links,
  .process,
  .faq,
  .contact,
  .page-section {
    width: min(100% - 32px, var(--max));
  }

  .built-machine-stage {
    min-height: 300px;
  }

  .machine-proof-grid article {
    grid-template-rows: 240px 1fr;
  }

  .scrollx-card {
    width: 78vw;
  }

  .marquee-track span {
    width: 132px;
    height: 72px;
  }

  .section-heading {
    display: grid;
  }

  .service-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .slide-stage {
    min-height: 360px;
  }

  .slide-meta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer {
    gap: 32px;
  }

  .industry-hero-media {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 220px);
  }
}

/* ---------- Page hero eyebrow ---------- */
.page-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(95, 224, 245, 0.16);
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Our Process: step-by-step grid ---------- */
.process-detail {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: var(--gap-section) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.process-detail article {
  position: relative;
  display: grid;
  grid-template-rows: 300px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.process-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05) brightness(0.97);
}

.process-step-num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.process-detail article > div {
  padding: 24px 26px 28px;
}

.process-detail h2 {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.04;
}

.process-detail p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* ---------- Why PLM: stats / pillars ---------- */
.stats-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: var(--gap-section) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.stats-grid article {
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  background: var(--graphite);
  backdrop-filter: blur(8px);
}

.stats-grid strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.02;
  color: var(--text-primary);
}

.stats-grid p {
  margin: 12px 0 0;
  color: var(--text-secondary);
}

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

  .detail-grid-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .process-detail,
  .stats-grid,
  .detail-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Animated stat counters (light band) ---------- */
.stat-counters {
  width: 100%;
  margin: 0;
  padding: var(--band-pad) max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  background: linear-gradient(180deg, var(--soft) 0%, #c2dfe8 100%);
  border-top: 3px solid var(--steel);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}

.stat-counter {
  position: relative;
  padding: 4px 12px;
}

.stat-counter + .stat-counter::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -14px;
  width: 1px;
  background: rgba(11, 22, 32, 0.12);
}

.stat-counter strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  color: var(--steel-dark);
  font-variant-numeric: tabular-nums;
}

.stat-counter span {
  display: block;
  margin-top: 12px;
  color: #46586a;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

@media (max-width: 760px) {
  .stat-counters {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .stat-counter:nth-child(odd)::before {
    display: none;
  }
}

/* ---------- Contact page: form-first layout ---------- */
.contact-top .section-heading h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: var(--step-4);
}

/* ---------- Scroll-Driven Parallax and Reveals (Progressive Enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-in {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
    }
    
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 40%;
    }
    
    @keyframes hero-parallax {
      to {
        transform: translateY(25%);
      }
    }
    
    @keyframes hero-fade {
      to {
        opacity: 0.35;
      }
    }
    
    .hero-bg,
    .hero-video {
      animation: hero-parallax linear both;
      animation-timeline: view();
      animation-range: exit;
    }
    
    .hero-bg-shade {
      animation: hero-fade linear both;
      animation-timeline: view();
      animation-range: exit;
    }
  }
}

/* ---------- What We Do page ---------- */
.wwd-intro {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: var(--gap-section) 0;
  text-align: center;
}

.wwd-eyebrow {
  display: inline-block;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wwd-intro h1,
.wwd-intro h2 {
  max-width: 22ch;
  margin: 16px auto 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.wwd-intro p {
  max-width: 58ch;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: var(--step-2);
}

.wwd-bento {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(460px, auto);
  gap: 16px;
}

.wwd-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease), border-color 360ms var(--ease);
}

.wwd-tile-lead {
  grid-column: auto;
  grid-row: auto;
}

.wwd-tile-wide {
  grid-column: auto;
}

.wwd-tile > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06) brightness(0.94);
  transition: transform 800ms var(--ease), filter 800ms var(--ease);
}

.wwd-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 38, 44, 0.22) 0%, rgba(4, 22, 26, 0.62) 50%, rgba(2, 12, 15, 0.94) 100%);
}

.wwd-tile:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  box-shadow: var(--shadow-brand);
}

.wwd-tile:hover > img {
  transform: scale(1.06);
  filter: saturate(0.96) contrast(1.08) brightness(1);
}

.wwd-num {
  position: absolute;
  top: 22px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.88);
}

.wwd-num::before {
  content: "";
  width: 22px;
  height: 2px;
  margin-right: 10px;
  background: var(--blue-bright);
}

.wwd-body {
  padding: 26px;
}

.wwd-kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.wwd-tile h3 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.wwd-tile-lead h3 {
  font-size: 23px;
}

.wwd-tile p {
  margin: 10px 0 0;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.5;
}

.wwd-tile-lead p {
  font-size: 14px;
  max-width: 44ch;
}

.wwd-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.wwd-tile:hover .wwd-link,
.wwd-tile:focus-visible .wwd-link {
  opacity: 1;
  transform: none;
}

.wwd-link svg {
  width: 16px;
  height: 16px;
}

.wwd-strip {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: var(--gap-section) 0;
}

.wwd-strip-head h2 {
  max-width: 24ch;
  margin: 16px 0 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.wwd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.wwd-chips li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.wwd-chips li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.wwd-chips li:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .wwd-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(360px, auto);
  }

  .wwd-tile-lead {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .wwd-tile-wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .wwd-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(330px, auto);
  }

  .wwd-tile-lead,
  .wwd-tile-wide {
    grid-column: span 1;
  }

  .wwd-link {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Scroll-scrubbed build video (process page) ---------- */
.scrollvid {
  position: relative;
  height: 300vh;
  background: #0b2a30;
}

.scrollvid-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  /* page colour underneath so the scene lifts away INTO the turquoise page */
  background: var(--ink);
  isolation: isolate;
}

/* Wraps the visual layers so they can lift away together on exit */
.scrollvid-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0b2a30 url("assets/process-build-poster.jpg") center / cover no-repeat;
  will-change: transform;
}

.scrollvid-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.scrollvid-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(60% 52% at 50% 52%, rgba(4, 28, 33, 0.58) 0%, rgba(4, 28, 33, 0) 76%),
    linear-gradient(0deg, rgba(4, 28, 33, 0.42), rgba(4, 28, 33, 0.12) 50%, rgba(4, 28, 33, 0.42));
}

.scrollvid-copy {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  color: var(--white);
}

.scrollvid-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scrollvid-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 14px rgba(0, 155, 184, 0.9);
}

.scrollvid-stages {
  position: relative;
  width: min(880px, 94vw);
  min-height: 220px;
}

.scrollvid-stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
  pointer-events: none;
}

.scrollvid-stage.is-active {
  opacity: 1;
  transform: none;
}

.scrollvid-stage strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(52px, 7.2vw, 100px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.scrollvid-stage p {
  margin: 20px 0 0;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.scrollvid-hint {
  display: inline-block;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: scrollvid-hint-pulse 2.4s ease-in-out infinite;
}

@keyframes scrollvid-hint-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.scrollvid-progress {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.scrollvid-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--blue-bright);
  box-shadow: 0 0 16px rgba(0, 155, 184, 0.8);
}

/* Softens only the bottom seam so the dark scene blends into the
   turquoise section below as it scrolls away, instead of a hard line.
   Opacity is driven by scroll (JS) so it only appears in the final
   stretch; the machine stays fully visible until then. */
.scrollvid-seam {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 82vh;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  background: linear-gradient(to bottom, rgba(212, 237, 242, 0) 0%, rgba(212, 237, 242, 0.2) 30%, rgba(212, 237, 242, 0.55) 60%, rgba(212, 237, 242, 0.85) 82%, var(--ink) 100%);
}

/* Teal scroll-hero variant: brand-teal scene background to match the generated
   clips, and copy left-aligned into the empty left third (subject sits right). */
.scrollvid--teal .scrollvid-scene {
  background: #2596be;
}

/* Contain-fit pages show the scene background around the frame, so match it to
   the frames' actual flat blue (#2591b7) — the seam where they meet vanishes. */
.scrollvid[data-fit="contain"] .scrollvid-scene {
  background: #2591b7;
}

.scrollvid--teal .scrollvid-sticky {
  background: var(--ink);
}

.scrollvid--teal .scrollvid-copy {
  align-items: flex-start;
  text-align: left;
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
}

.scrollvid--teal .scrollvid-stages {
  width: min(760px, 92vw);
}

.scrollvid--teal .scrollvid-stage strong {
  font-size: clamp(48px, 6.6vw, 88px);
}

/* Used when the section directly below the hero is dark (no light seam blend). */
.scrollvid--flush .scrollvid-seam {
  display: none;
}

@media (max-width: 720px) {
  .scrollvid { height: 260vh; }
  .scrollvid-stages { width: 100%; }
  .scrollvid--teal .scrollvid-copy { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .scrollvid { height: auto; }
  .scrollvid-sticky { position: static; height: 70vh; }
  .scrollvid-hint { display: none; }
  .scrollvid-stage { position: relative; opacity: 1; transform: none; }
  .scrollvid-stage:not(:last-child) { display: none; }
}

/* Relocated process hero heading uses h2 */
.page-hero h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 20ch;
  margin: 0;
  font-size: var(--step-5);
  font-weight: 700;
}

/* ---------- Scroll-driven word reveal (adapted from TextGradientScroll) ---------- */
.word-reveal .wr-word {
  opacity: 0.16;
  transition: opacity 180ms linear;
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-link svg {
  width: 16px;
  height: 16px;
  transition: transform 240ms var(--ease);
}

.story-link:hover svg {
  transform: translateX(5px);
}

/* ---------- Story card deck (adapted from DisplayCards) ---------- */
.story-deck {
  position: relative;
  display: grid;
  grid-template-areas: "stack";
  place-items: center;
  min-height: 470px;
}

.story-card {
  grid-area: stack;
  position: relative;
  width: min(21.5rem, 100%);
  display: grid;
  gap: 9px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 38px rgba(15, 30, 45, 0.16);
  transform: skewY(-8deg) translate(var(--deck-x, 0), var(--deck-y, 0));
  transition: transform 480ms var(--spring), box-shadow 320ms var(--ease), border-color 320ms var(--ease), filter 320ms var(--ease);
}

.story-card:nth-child(1) {
  --deck-x: -3.2rem;
  --deck-y: -6.2rem;
}

.story-card:nth-child(3) {
  --deck-x: 3.2rem;
  --deck-y: 6.2rem;
}

/* Back cards sit muted under a tint and fade out toward the right edge,
   exactly like the DisplayCards stack; hover clears them to full color. */
.story-card:nth-child(-n + 2) {
  filter: grayscale(1);
}

.story-card:nth-child(-n + 2)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: rgba(212, 237, 242, 0.5);
  pointer-events: none;
  transition: opacity 700ms var(--ease);
}

.story-card:nth-child(-n + 2)::after {
  content: "";
  position: absolute;
  top: -5%;
  right: -1px;
  height: 110%;
  width: 55%;
  z-index: 3;
  background: linear-gradient(to left, var(--ink), transparent);
  pointer-events: none;
  transition: opacity 700ms var(--ease);
}

.story-card:hover {
  z-index: 4;
  border-color: var(--blue);
  box-shadow: var(--shadow-brand);
  filter: none;
  transform: skewY(-8deg) translate(var(--deck-x, 0), calc(var(--deck-y, 0px) - 14px));
}

.story-card:nth-child(-n + 2):hover {
  transform: skewY(-8deg) translate(var(--deck-x, 0), calc(var(--deck-y, 0px) - 28px));
}

.story-card:nth-child(-n + 2):hover::before,
.story-card:nth-child(-n + 2):hover::after {
  opacity: 0;
}

.story-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-card-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
}

.story-card-icon svg {
  width: 17px;
  height: 17px;
}

.story-card-num {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.story-card strong {
  color: var(--blue);
  font-size: 17px;
  line-height: 1.2;
}

.story-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .story-deck {
    grid-template-areas: none;
    gap: 12px;
    min-height: 0;
    margin-top: 10px;
  }

  .story-card,
  .story-card:hover {
    grid-area: auto;
    width: 100%;
    transform: none;
    filter: none;
  }

  .story-card:nth-child(-n + 2)::before,
  .story-card:nth-child(-n + 2)::after {
    display: none;
  }
}

/* ---------- Gooey word morph (adapted from GooeyText) ---------- */
.gooey-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.process-head {
  text-align: center;
  margin-bottom: 38px;
}

.process-eyebrow {
  color: var(--green-dark);
}

.process-head p {
  max-width: 46ch;
  margin: 18px auto 0;
  color: var(--muted);
}

.process-head p:last-child {
  margin-top: 26px;
}

/* Big centered morphing display (matches the GooeyText demo) */
.gooey-display {
  position: relative;
  height: 1.16em;
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--blue);
}

/* Threshold filter only during the morph, so resting text stays crisp */
.gooey-display.is-morphing {
  filter: url(#gooey-threshold);
}

/* Gooey display inside the dark CTA band (brand line morph) */
.cta-band .gooey-display {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(32px, 5vw, 64px);
  color: var(--white);
}

.gooey-display .gooey-a,
.gooey-display .gooey-b {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  white-space: nowrap;
  text-align: center;
  user-select: none;
}

.gooey-display .gooey-b {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .word-reveal .wr-word {
    opacity: 1;
  }

  .gooey-display {
    filter: none;
  }

  .gooey-display .gooey-b {
    display: none;
  }
}

/* ---------- Post-animation intro + mid-page photo band ---------- */
.wwd-intro .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.page-hero-mid,
.page-hero-mid .page-hero-content {
  min-height: 480px;
}

/* Inset content needs a full section gap before the full-bleed photo band.
   Each margin tops up the preceding section's bottom padding to --gap-section
   (bands like .proof and .trust-bar stay flush against it on purpose). */
.wwd-bento + .page-hero-mid {
  margin-top: var(--gap-section);
}

.builder-story + .page-hero-mid {
  margin-top: calc(var(--gap-section) * 0.34);
}

.page-section + .page-hero-mid {
  margin-top: calc(var(--gap-section) - clamp(36px, 5vw, 64px));
}

/* =====================================================================
   Review revisions — June 2026 (company feedback on beta homepage)
   ===================================================================== */

/* Task 17 — Mobile: stop horizontal scroll / drift into side margin.
   Use clip, not hidden: hidden makes <html> a scroll container and kills
   position:sticky, breaking every pinned scroll animation (carousel, build
   sequence). clip blocks the same horizontal drift without that side effect. */
html {
  overflow-x: clip;
  max-width: 100vw;
}
html,
body {
  width: 100%;
}

/* Task 18 — Bigger logo + larger nav text (match old site weight) */
.brand img {
  width: 240px;
}
.brand-anim,
.brand-anim img {
  width: 248px;
}
.nav-links {
  font-size: 14px;
  gap: 26px;
}

/* Task 4 — Mini slogan: a touch larger */
.hero-banner .hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.12em;
}

/* Task 6 — "anything" stands out in the rotating hero list */
.hero-banner .hero-rotate-slot span.hero-rotate-anything {
  color: var(--accent-warm);
}

/* Task 8 — Second banner: a bit narrower (less empty top/bottom) */
.builder-story {
  padding-top: calc(var(--gap-section) * 0.66);
  padding-bottom: calc(var(--gap-section) * 0.66);
}

/* Task 9 — Numbers banner: narrower band */
.stat-counters {
  padding-top: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

/* Task 10 — Design-to-delivery: trim empty scroll space at the bottom */
.scrollx {
  height: 175vh;
}

/* Task 16 — Footer: 4 links beside 4, full-width copyright, tighter band */
.footer {
  padding-top: clamp(36px, 4vw, 52px);
  padding-bottom: clamp(28px, 3vw, 40px);
}
.footer .footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}
.footer .footer-copy {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.footer .footer-copy p {
  max-width: none;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 720px) {
  .footer .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* Task 15 — Partners: show logos in original colors, not grey */
.marquee-track img {
  filter: none;
  opacity: 1;
}

/* Hero rotator fix — keep multi-word phrases on one line so no wrapped
   second line peeks out of the clipped slot before it animates in. */
.hero-rotate-slot span {
  white-space: nowrap;
  transform: translateY(125%);
}
.hero-rotate-slot span.is-up {
  transform: translateY(-125%);
}
.hero-rotate-slot span.is-active {
  transform: translateY(0);
}
.hero-banner .hero-rotate {
  max-width: 20ch;
}
/* Each rotating word is auto-fit by JS (.hero-rotate-slot) so long phrases
   never clip on the right while short words keep the full hero size. */
.hero-rotate-slot span {
  transform-origin: left center;
}

/* Keep SVG "to be provided" placeholders clean white (cards normally dim photos) */
.scrollx-card img[src$=".svg"] {
  filter: none;
  object-fit: contain;
  background: #ffffff;
}
.scrollx-card:hover img[src$=".svg"] {
  filter: none;
  transform: none;
}
